-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e936b4
commit 641274b
Showing
31 changed files
with
1,976 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ composer | |
/docs/ | ||
/docs-cache/ | ||
|
||
.idea | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<xml> | ||
<releaseNumber>2.4.2</releaseNumber> | ||
<releaseNumber>2.4.3</releaseNumber> | ||
</xml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
namespace GlobalPayments\Api\Terminals\UPA\Builders; | ||
|
||
use GlobalPayments\Api\Entities\Enums\TransactionModifier; | ||
use GlobalPayments\Api\Entities\Enums\TransactionType; | ||
use GlobalPayments\Api\Terminals\Builders\TerminalManageBuilder; | ||
|
||
class UpaTerminalManageBuilder extends TerminalManageBuilder | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
* | ||
* @param TransactionType $transactionType Request transaction type | ||
* @param PaymentMethodType $paymentMethodType Request payment method | ||
* | ||
* @return | ||
*/ | ||
public function __construct($transactionType, $paymentMethodType = null) | ||
{ | ||
parent::__construct($transactionType, $paymentMethodType); | ||
} | ||
|
||
protected function setupValidations() | ||
{ | ||
$this->validations->of( | ||
TransactionType::CAPTURE | ||
) | ||
->with(TransactionModifier::NONE) | ||
->check('amount')->isNotNull() | ||
->check('terminalRefNumber')->isNotNull(); | ||
|
||
$this->validations->of( | ||
TransactionType::VOID | ||
) | ||
->with(TransactionModifier::NONE) | ||
->check('terminalRefNumber')->isNotNull(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace GlobalPayments\Api\Terminals\UPA\Entities; | ||
|
||
class CancelParameters | ||
{ | ||
|
||
/* | ||
* Display change after exiting the screen currently displayed (e.g. timeout | ||
* or cancel). | ||
*/ | ||
public $displayOption; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace GlobalPayments\Api\Terminals\UPA\Entities\Enums; | ||
|
||
use GlobalPayments\Api\Entities\Enum; | ||
|
||
class UpaMessageId extends Enum | ||
{ | ||
|
||
const SALE = "Sale"; | ||
const VOID = "Void"; | ||
const REFUND = "Refund"; | ||
const EOD = "EODProcessing"; | ||
const SENDSAF = "SendSAF"; | ||
const TIPADJUST = "TipAdjust"; | ||
const CARD_VERIFY = "CardVerify"; | ||
const GET_SAF_REPORT = "GetSAFReport"; | ||
const CANCEL = "CancelTransaction"; | ||
const REBOOT = "Reboot"; | ||
const LINEITEM = "LineItemDisplay"; | ||
const REVERSAL = "Reversal"; | ||
const GET_BATCH_REPORT = "GetBatchReport"; | ||
const BALANCE_INQUIRY = "BalanceInquiry"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace GlobalPayments\Api\Terminals\UPA\Entities; | ||
|
||
class LineItem | ||
{ | ||
|
||
/* | ||
* Left justified text to display for each line item (Mandatory) | ||
* Contains the left-justified display characters, for example, the purchased | ||
* items. | ||
*/ | ||
public $lineItemLeft; | ||
|
||
/* | ||
* Contains the right-justified display characters, for example, the item’s price.(Optional)s | ||
*/ | ||
public $lineItemRight = null; | ||
} |
Oops, something went wrong.