Skip to content

Commit

Permalink
ADD:// Missing PaymentState response fields
Browse files Browse the repository at this point in the history
  • Loading branch information
attilabotz committed Apr 15, 2021
1 parent 90baa68 commit a956fe9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/common/Enumerations.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ abstract class FundingSourceType
const All = "All";
const Balance = "Balance";
const Bankcard = "Bankcard";
const BankTransfer = "BankTransfer";
}

abstract class PaymentStatus
Expand Down Expand Up @@ -98,6 +99,7 @@ abstract class CardType
const AmericanExpress = "AmericanExpress";
}


// --------------------
// 3D Secure properties
// --------------------
Expand Down
3 changes: 3 additions & 0 deletions library/models/common/FundingInformationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ class FundingInformationModel implements iBarionModel
{
public $BankCard;
public $AuthorizationCode;
public $ProcessResult;

function __construct()
{
$this->BankCard = new BankCardModel();
$this->AuthorizationCode = "";
$this->ProcessResult = "";
}

public function fromJson($json)
Expand All @@ -32,6 +34,7 @@ public function fromJson($json)
$this->BankCard = new BankCardModel();
$this->BankCard->fromJson(jget($json, 'BankCard'));
$this->AuthorizationCode = jget($json, 'AuthorizationCode');
$this->ProcessResult = jget($json, 'ProcessResult');
}
}
}
6 changes: 6 additions & 0 deletions library/models/payment/PaymentStateResponseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class PaymentStateResponseModel extends BaseResponseModel implements iBarionMode
public $POSId;
public $POSName;
public $POSOwnerEmail;
public $POSOwnerCountry;
public $Status;
public $PaymentType;
public $FundingSource;
Expand All @@ -33,6 +34,7 @@ class PaymentStateResponseModel extends BaseResponseModel implements iBarionMode
public $ValidUntil;
public $CompletedAt;
public $ReservedUntil;
public $DelayedCaptureUntil;
public $Total;
public $Currency;
public $Transactions;
Expand All @@ -53,6 +55,7 @@ function __construct()
$this->POSId = "";
$this->POSName = "";
$this->POSOwnerEmail = "";
$this->POSOwnerCountry = "";
$this->Status = "";
$this->PaymentType = "";
$this->FundingSource = "";
Expand All @@ -63,6 +66,7 @@ function __construct()
$this->ValidUntil = "";
$this->CompletedAt = "";
$this->ReservedUntil = "";
$this->DelayedCaptureUntil = "";
$this->Total = 0;
$this->Currency = "";
$this->Transactions = array();
Expand All @@ -86,6 +90,7 @@ public function fromJson($json)
$this->POSId = jget($json, 'POSId');
$this->POSName = jget($json, 'POSName');
$this->POSOwnerEmail = jget($json, 'POSOwnerEmail');
$this->POSOwnerCountry = jget($json, 'POSOwnerCountry');
$this->Status = jget($json, 'Status');
$this->PaymentType = jget($json, 'PaymentType');
$this->FundingSource = jget($json, 'FundingSource');
Expand All @@ -99,6 +104,7 @@ public function fromJson($json)
$this->ValidUntil = jget($json, 'ValidUntil');
$this->CompletedAt = jget($json, 'CompletedAt');
$this->ReservedUntil = jget($json, 'ReservedUntil');
$this->DelayedCaptureUntil = jget($json, 'DelayedCaptureUntil');
$this->Total = jget($json, 'Total');
$this->Currency = jget($json, 'Currency');
$this->RecurrenceResult = jget($json, 'RecurrenceResult');
Expand Down

0 comments on commit a956fe9

Please sign in to comment.