Name of the issuing bank.

@param int $orderIndex
@return mixed|null
424288
public function getBankName($orderIndex = 0)
    {
        $bankInfo = $this->getBankInfo($orderIndex);
        return array_key_exists('bankName', $bankInfo) ? $bankInfo['bankName'] : null;
    }
1053217
public function getIndex($indexname) {
        $i = $this->findIndexInArray($indexname);
        if ($i !== null) {
            return $this->indexes[$i];
        }
        return null;
    }
341105
public function getBankCountryCode($orderIndex = 0)
    {
        $bankInfo = $this->getBankInfo($orderIndex);
        return array_key_exists('bankCountryCode', $bankInfo) ? $bankInfo['bankCountryCode'] : null;
    }
149179
public function getTransactionDataFromOrder(
        $sTransactionType = TPkgShopPaymentTransactionData::TYPE_PAYMENT,
        $aProductAmountRestriction = null,
        $bUseConfirmedTransactionsOnly = true
    ) {
        $dSignMultiplier = 1;
        if (TPkgShopPaymentTransactionData::TYPE_PAYMENT === $sTransactionType) {
            $aItemBaseToUse = $this->getBillableProducts($bUseConfirmedTransactionsOnly);
        } else {
            $aItemBaseToUse = $this->getRefundableProducts($bUseConfirmedTransactionsOnly);
        }

        $oTransactionData = new TPkgShopPaymentTransactionData($this->order, $sTransactionType);
        $dOrderTotal = 0;
        $dProductValue = 0;
        $bAllRemainingItemsSelected = true;
        $dDiscount = 0;

        $orderItems = $this->order->GetFieldShopOrderItemList();
        foreach ($aItemBaseToUse as $sShopOrderItemId => $iAmountAllowedForUse) {
            $iAmountForTransaction = $iAmountAllowedForUse;
            if (null !== $aProductAmountRestriction) {
                if (false === isset($aProductAmountRestriction[$sShopOrderItemId])) {
                    $bAllRemainingItemsSelected = false; // some items were skipped
                    continue;
                }

                $iAmountForTransaction = $dSignMultiplier * $aProductAmountRestriction[$sShopOrderItemId];

                if ($iAmountForTransaction > $iAmountAllowedForUse) {
                    $sMsg = "trying to use {$iAmountForTransaction} from item {$sShopOrderItemId} when only {$iAmountAllowedForUse} are available";
                    throw new TPkgCmsException_LogAndMessage(
                        TPkgShopPaymentTransactionManager::MESSAGE_ERROR,
                        array('sMessage' => $sMsg),
                        $sMsg,
                        array('order' => $this->order->sqlData)
                    );
                }
            }
            $oOrderItem = $orderItems->FindItemWithProperty('id', $sShopOrderItemId);
            if (false === $oOrderItem) {
                $sMsg = "unable to load the shop_order_item [{$this->order->id}] in order [{$sShopOrderItemId}]";
                throw new TPkgCmsException_LogAndMessage(
                    TPkgShopPaymentTransactionManager::MESSAGE_ERROR,
                    array('sMessage' => $sMsg),
                    $sMsg,
                    array('order' => $this->order->sqlData)
                );
            }

            //$totalQuantityForTransaction = $this->gettot
            $oItem = new TPkgShopPaymentTransactionItemData();
            $oItem
                ->setType(TPkgShopPaymentTransactionItemData::TYPE_PRODUCT)
                ->setAmount($dSignMultiplier * $iAmountForTransaction)
                ->setOrderItemId($sShopOrderItemId)
                ->setValue($oOrderItem->fieldOrderPrice);
            if (0 != $oItem->getAmount()) {
                $oTransactionData->addItem($oItem);
                $dOrderTotal += $oItem->getAmount() * $oItem->getValue();
                $dProductValue += $oItem->getAmount() * $oItem->getValue();
                $dDiscount += round(
                        (($oOrderItem->fieldOrderPriceAfterDiscounts / $oOrderItem->fieldOrderAmount) * $iAmountForTransaction),
                        2
                    ) - ($dSignMultiplier * $oItem->getAmount() * $oItem->getValue());
            }
            $bAllRemainingItemsSelected = $bAllRemainingItemsSelected && ($iAmountForTransaction == $iAmountAllowedForUse);
        }

        if ($dDiscount > 0 || $dDiscount < 0) {
            $oItem = new TPkgShopPaymentTransactionItemData();
            $oItem
                ->setType(TPkgShopPaymentTransactionItemData::TYPE_DISCOUNT)
                ->setAmount($dSignMultiplier)
                ->setValue($dDiscount);
            $oTransactionData->addItem($oItem);
            $dOrderTotal = $dOrderTotal + ($oItem->getAmount() * $oItem->getValue());
        }

        // shipping, payment, vouchers and "other" should always be used as quickly as possible
        $dShippingPrice = $this->order->fieldShopShippingGroupPrice - $this->getTransactionPositionTotalForType(
                TPkgShopPaymentTransactionItemData::TYPE_SHIPPING,
                true
            );
        if ($dShippingPrice > 0 || $dShippingPrice < 0) {
            $oItem = new TPkgShopPaymentTransactionItemData();
            $oItem
                ->setType(TPkgShopPaymentTransactionItemData::TYPE_SHIPPING)
                ->setAmount($dSignMultiplier)
                ->setValue($dShippingPrice);
            $oTransactionData->addItem($oItem);
            $dOrderTotal = $dOrderTotal + ($oItem->getAmount() * $oItem->getValue());
        }

        $dPaymentMethodPrice = $this->order->fieldShopPaymentMethodPrice - $this->getTransactionPositionTotalForType(
                TPkgShopPaymentTransactionItemData::TYPE_PAYMENT,
                true
            );
        if ($dPaymentMethodPrice > 0 || $dPaymentMethodPrice < 0) {
            $oItem = new TPkgShopPaymentTransactionItemData();
            $oItem
                ->setType(TPkgShopPaymentTransactionItemData::TYPE_PAYMENT)
                ->setAmount($dSignMultiplier)
                ->setValue($dPaymentMethodPrice);
            $oTransactionData->addItem($oItem);
            $dOrderTotal = $dOrderTotal + ($oItem->getAmount() * $oItem->getValue());
        }

        $dVoucher = $this->getTransactionOrderDataVoucherValue($sTransactionType, $dOrderTotal);

        if ($dVoucher > 0 || $dVoucher < 0) {
            $oItem = new TPkgShopPaymentTransactionItemData();
            $oItem
                ->setType(TPkgShopPaymentTransactionItemData::TYPE_VOUCHER)
                ->setAmount($dSignMultiplier)
                ->setValue($dVoucher);
            $oTransactionData->addItem($oItem);
            $dOrderTotal = $dOrderTotal + ($oItem->getAmount() * $oItem->getValue());
        }

        $dExpectedTotal = $dSignMultiplier * $this->getOrderTotalOtherValue();

        $dOther = $dExpectedTotal - $this->getTransactionPositionTotalForType(
                TPkgShopPaymentTransactionItemData::TYPE_OTHER,
                true
            );

        if ($dOther > 0 || $dOther < 0) {
            $oItem = new TPkgShopPaymentTransactionItemData();
            $oItem
                ->setType(TPkgShopPaymentTransactionItemData::TYPE_OTHER)
                ->setAmount($dSignMultiplier)
                ->setValue($dOther);
            $oTransactionData->addItem($oItem);
            $dOrderTotal = $dOrderTotal + ($oItem->getAmount() * $oItem->getValue());
        }

        $oTransactionData->setTotalValue($dOrderTotal);

        return $oTransactionData;
    }
889327
public function transact($amount, $orderId, $invoiceNumber = null)
    {
        $this->transaction = [
            'amount' => $amount,
            'orderId' => $orderId,
            'invoiceNumber' => $invoiceNumber ?: $orderId,
        ];

        return $this->initiateTransaction();
    }
1082938
public function getOrderErrorCode($orderIndex = 0)
    {
        $orderStatuses = $this->getOrderStatuses();
        return array_key_exists('errorCode', $orderStatuses[$orderIndex])
            ? $orderStatuses[$orderIndex]['errorCode'] : null;
    }
1329092
public function getIndex($indexName)
    {
        if (isset($this->indexes[$indexName])) {
            return $this->indexes[$indexName];
        }
        return null;
    }
77704
public function getFieldName(int $index)
    {
        $keyArray = array_keys($this->record);

        if ($index > 0 && $index < $this->count()) {
            return $keyArray[$index];
        }

        return null;
    }
1332547
public function &Row($RowIndex) {
		$Result = &$this->Result();
      if(isset($Result[$RowIndex]))
			return $Result[$RowIndex];
      return $this->_EOF;
   }
1300950
public function getPaymentState($orderIndex = 0)
    {
        $paymentAmountInfo = $this->getPaymentAmountInfo($orderIndex);
        return array_key_exists('paymentState', $paymentAmountInfo) ? $paymentAmountInfo['paymentState'] : null;
    }
936948
public function getOrderNumber($orderIndex = 0)
    {
        $orderStatuses = $this->getOrderStatuses();
        return array_key_exists('orderNumber', $orderStatuses[$orderIndex])
            ? $orderStatuses[$orderIndex]['orderNumber'] : null;
    }
403330
public function getPayPalOxOrder()
    {
        if (is_null($this->payPalOxOrder)) {
            $order = oxNew(\OxidEsales\Eshop\Application\Model\Order::class);
            $order->loadPayPalOrder();
            $this->setPayPalOxOrder($order);
        }

        return $this->payPalOxOrder;
    }
416263
public function getType()
    {
        if ($this->entity && $this->entity->getType()) {
            return new OrderType($this->entity->getType(), $this->locale);
        } else {
            return null;
        }
    }
823486
public function getNewAddressPair($chainIndex = null) {
        $path = $this->getNewDerivation($chainIndex);
        $address = $this->getAddressByPath($path);

        return [$path, $address];
    }
1179239
public static function getOrder($orderId) {
        $response = self::requestApi("get", null, $orderId);
        $body = $response->getBodyAsJson();
        $order = new Order($body["order"]);
        return $order;
    }
925318
private function _sortIndex()
    {
        $collection = ResourceTable::collection();
        $sort = $collection->getSort();

        return $sort['index'] ? $sort['index'] : null;
    }
82482
private function getSent($orderId)
    {
        //Getting connection
        $connection  = $this->_resource->getConnection();
        //Getting full table name
        $tableName = $this->_resource->getTableName('pagseguro_orders');
        //Update sales_order_grid query
        $mapsDeleteQuery = "SELECT sent FROM {$tableName} WHERE order_id={$orderId}";
        return $connection->query($mapsDeleteQuery)->fetch();
    }