Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed docs error for magento 2.3.x usage. #386

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions lib/net/authorize/api/contract/v1/ANetApiRequestType.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ public function setRefId($refId)
}


// Json Serialize Code
/**
* Json Serialize Code
*
* @return array|mixed
*/
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
Expand Down Expand Up @@ -129,8 +133,15 @@ function ($val){
return array_merge(parent::jsonSerialize(), $values);
}
}

// Json Set Code

/**
* Json Set Code
*
* @param $data
* @throws \Exception
*
* @return void
*/
public function set($data)
{
if(is_array($data) || is_object($data)) {
Expand Down
19 changes: 15 additions & 4 deletions lib/net/authorize/api/contract/v1/ANetApiResponseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ public function setSessionToken($sessionToken)
}


// Json Serialize Code
/**
* Json Serialize Code
*
* @return array|mixed
*/
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
Expand Down Expand Up @@ -126,9 +130,16 @@ function ($val){
else{
return array_merge(parent::jsonSerialize(), $values);
}
}

// Json Set Code
}

/**
* Json Set Code
*
* @param $data
* @throws \Exception
*
* @return void
*/
public function set($data)
{
if(is_array($data) || is_object($data)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ public function setSubscriptionId($subscriptionId)
}


// Json Serialize Code
/**
* Json Serialize Code
*
* @return array|mixed
*/
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
class ARBCancelSubscriptionResponse extends ANetApiResponseType
{


// Json Set Code
/**
* Json Set Code
*
* @param $data
* @throws \Exception
*
* @return void
*/
public function set($data)
{
if(is_array($data) || is_object($data)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ public function setSubscription(\net\authorize\api\contract\v1\ARBSubscriptionTy
}


// Json Serialize Code
/**
* Json Serialize Code
*
* @return array|mixed
*/
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,14 @@ public function setProfile(\net\authorize\api\contract\v1\CustomerProfileIdType
return $this;
}


// Json Set Code
/**
* Json Set Code
*
* @param $data
* @throws \Exception
*
* @return void
*/
public function set($data)
{
if(is_array($data) || is_object($data)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ public function setPaging(\net\authorize\api\contract\v1\PagingType $paging)
}


// Json Serialize Code
/**
* Json Serialize Code
*
* @return array|mixed
*/
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,14 @@ public function setSubscriptionDetails(array $subscriptionDetails)
return $this;
}


// Json Set Code
/**
* Json Set Code
*
* @param $data
* @throws \Exception
*
* @return void
*/
public function set($data)
{
if(is_array($data) || is_object($data)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ public function setOrderDescending($orderDescending)
}


// Json Serialize Code
/**
* Json Serialize Code
*
* @return array|mixed
*/
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
Expand Down Expand Up @@ -100,8 +104,15 @@ function ($val){
return array_merge(parent::jsonSerialize(), $values);
}
}

// Json Set Code

/**
* Json Set Code
*
* @param $data
* @throws \Exception
*
* @return void
*/
public function set($data)
{
if(is_array($data) || is_object($data)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ public function setIncludeTransactions($includeTransactions)
}


// Json Serialize Code
/**
* Json Serialize Code
*
* @return array|mixed
*/
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
Expand Down
10 changes: 8 additions & 2 deletions lib/net/authorize/api/contract/v1/ARBGetSubscriptionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ public function setSubscription(\net\authorize\api\contract\v1\ARBSubscriptionMa
return $this;
}


// Json Set Code
/**
* Json Set Code
*
* @param $data
* @throws \Exception
*
* @return void
*/
public function set($data)
{
if(is_array($data) || is_object($data)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ public function setSubscriptionId($subscriptionId)
}


// Json Serialize Code
/**
* Json Serialize Code
*
* @return array|mixed
*/
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,16 @@ public function setStatus($status)
{
$this->status = $status;
return $this;
}

}

// Json Set Code
/**
* Json Set Code
*
* @param $data
* @throws \Exception
*
* @return void
*/
public function set($data)
{
if(is_array($data) || is_object($data)) {
Expand Down
19 changes: 15 additions & 4 deletions lib/net/authorize/api/contract/v1/ARBSubscriptionMaskedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,11 @@ public function setArbTransactions(array $arbTransactions)
}


// Json Serialize Code
/**
* Json Serialize Code
*
* @return array|mixed
*/
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
Expand Down Expand Up @@ -296,9 +300,16 @@ function ($val){
else{
return array_merge(parent::jsonSerialize(), $values);
}
}

// Json Set Code
}

/**
* Json Set Code
*
* @param $data
* @throws \Exception
*
* @return void
*/
public function set($data)
{
if(is_array($data) || is_object($data)) {
Expand Down
17 changes: 14 additions & 3 deletions lib/net/authorize/api/contract/v1/ARBSubscriptionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,11 @@ public function setProfile(\net\authorize\api\contract\v1\CustomerProfileIdType
}


// Json Serialize Code
/**
* Json Serialize Code
*
* @return array|mixed
*/
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
Expand Down Expand Up @@ -316,8 +320,15 @@ function ($val){
return array_merge(parent::jsonSerialize(), $values);
}
}

// Json Set Code

/**
* Json Set Code
*
* @param $data
* @throws \Exception
*
* @return void
*/
public function set($data)
{
if(is_array($data) || is_object($data)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ public function setSubscription(\net\authorize\api\contract\v1\ARBSubscriptionTy
}


// Json Serialize Code
/**
* Json Serialize Code
*
* @return array|mixed
*/
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,16 @@ public function setProfile(\net\authorize\api\contract\v1\CustomerProfileIdType
{
$this->profile = $profile;
return $this;
}

}

// Json Set Code
/**
* Json Set Code
*
* @param $data
* @throws \Exception
*
* @return void
*/
public function set($data)
{
if(is_array($data) || is_object($data)) {
Expand Down
19 changes: 15 additions & 4 deletions lib/net/authorize/api/contract/v1/ArbTransactionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ public function setAttemptNum($attemptNum)
}


// Json Serialize Code
/**
* Json Serialize Code
*
* @return array|mixed
*/
public function jsonSerialize(){
$values = array_filter((array)get_object_vars($this),
function ($val){
Expand Down Expand Up @@ -180,9 +184,16 @@ function ($val){
else{
return array_merge(parent::jsonSerialize(), $values);
}
}

// Json Set Code
}

/**
* Json Set Code
*
* @param $data
* @throws \Exception
*
* @return void
*/
public function set($data)
{
if(is_array($data) || is_object($data)) {
Expand Down
Loading