Skip to content

Commit

Permalink
Merge pull request #456 from AuthorizeNet/may-2024
Browse files Browse the repository at this point in the history
May 2024 Changes
  • Loading branch information
gnongsie authored May 29, 2024
2 parents a3e76f9 + 065461d commit e1acf55
Show file tree
Hide file tree
Showing 225 changed files with 528 additions and 352 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Packagist Stable Version](https://poser.pugx.org/authorizenet/authorizenet/v/stable.svg)](https://packagist.org/packages/authorizenet/authorizenet)

## Requirements
* PHP 5.6+
* PHP 5.6 to 8.x.x
* cURL PHP Extension
* JSON PHP Extension
* An Authorize.Net account (see _Registration & Configuration_ section below)
Expand Down Expand Up @@ -56,7 +56,7 @@ override the new secure-http default setting)*.
{
"require": {
"php": ">=5.6",
"authorizenet/authorizenet": "2.0.2"
"authorizenet/authorizenet": "2.0.3"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "authorizenet/authorizenet",
"type": "library",
"version": "2.0.2",
"version": "2.0.3",
"description": "Official PHP SDK for Authorize.Net",
"keywords": ["authorizenet", "authorize.net", "payment", "ecommerce"],
"license": "proprietary",
Expand Down
5 changes: 3 additions & 2 deletions lib/net/authorize/api/contract/v1/ANetApiRequestType.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,15 @@ public function setRefId($refId)


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down Expand Up @@ -131,7 +132,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
5 changes: 3 additions & 2 deletions lib/net/authorize/api/contract/v1/ANetApiResponseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,15 @@ public function setSessionToken($sessionToken)


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down Expand Up @@ -129,7 +130,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ public function setSubscriptionId($subscriptionId)


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ public function setSubscription(\net\authorize\api\contract\v1\ARBSubscriptionTy


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,15 @@ public function setPaging(\net\authorize\api\contract\v1\PagingType $paging)


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ public function setOrderDescending($orderDescending)


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down Expand Up @@ -102,7 +103,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@ public function setIncludeTransactions($includeTransactions)


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ public function setSubscriptionId($subscriptionId)


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,15 @@ public function setArbTransactions(array $arbTransactions)


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down Expand Up @@ -299,7 +300,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
5 changes: 3 additions & 2 deletions lib/net/authorize/api/contract/v1/ARBSubscriptionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,15 @@ public function setProfile(\net\authorize\api\contract\v1\CustomerProfileIdType


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down Expand Up @@ -318,7 +319,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@ public function setSubscription(\net\authorize\api\contract\v1\ARBSubscriptionTy


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
5 changes: 3 additions & 2 deletions lib/net/authorize/api/contract/v1/ArbTransactionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,15 @@ public function setAttemptNum($attemptNum)


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down Expand Up @@ -183,7 +184,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
5 changes: 3 additions & 2 deletions lib/net/authorize/api/contract/v1/ArrayOfSettingType.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@ public function setSetting(array $setting)


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down Expand Up @@ -109,7 +110,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
5 changes: 3 additions & 2 deletions lib/net/authorize/api/contract/v1/AuDeleteType.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ public function setCreditCard(\net\authorize\api\contract\v1\CreditCardMaskedTyp


// Json Serialize Code
#[\ReturnTypeWillChange]
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);
if (isset($value)){
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
Expand Down Expand Up @@ -75,7 +76,7 @@ public function set($data)
if(is_array($data) || is_object($data)) {
$mapper = \net\authorize\util\Mapper::Instance();
foreach($data AS $key => $value) {
$classDetails = $mapper->getClass(get_class() , $key);
$classDetails = $mapper->getClass(get_class($this) , $key);

if($classDetails !== NULL ) {
if ($classDetails->isArray) {
Expand Down
Loading

0 comments on commit e1acf55

Please sign in to comment.