Return Wallet Transactions for a Corporation.

@param int  $corporation_id
@param bool $get
@param int  $chunk

@return mixed
341275
public function getCorporationWalletTransactions(
        int $corporation_id, bool $get = true, int $chunk = 50)
    {

        $transactions = CorporationWalletTransaction::where('corporation_id', $corporation_id);

        if ($get)
            return $transactions->orderBy('date', 'desc')
                ->paginate($chunk);

        return $transactions;
    }
1015905
public function getTransaction(string $txid): GetTransactionResponse
    {
        $command = new GetTransactionCommand($txid);
        $response = $this->driver->executeCommand($command);

        return new GetTransactionResponse($response->getRawData());
    }
1032433
def get_block_transactions(
            self,
            header: BlockHeader,
            transaction_class: Type['BaseTransaction']) -> Iterable['BaseTransaction']:
        
        return self._get_block_transactions(header.transaction_root, transaction_class)
1071463
public static function get(
        int $schedulePaymentBatchId,
        int $noteAttachmentSchedulePaymentBatchId,
        int $monetaryAccountId = null,
        array $customHeaders = []
    ): BunqResponseNoteAttachmentSchedulePaymentBatch {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->get(
            vsprintf(
                self::ENDPOINT_URL_READ,
                [
                    static::determineUserId(),
                    static::determineMonetaryAccountId($monetaryAccountId),
                    $schedulePaymentBatchId,
                    $noteAttachmentSchedulePaymentBatchId,
                ]
            ),
            [],
            $customHeaders
        );

        return BunqResponseNoteAttachmentSchedulePaymentBatch::castFromBunqResponse(
            static::fromJson($responseRaw, self::OBJECT_TYPE_GET)
        );
    }
4279
public function get($key = null, $cache_cb = null, &$cas_token = null)
    {

        if (isset($this->cacheListing [$key])) {
            return parent::get($key, $cache_cb, $cas_token);
        }

        return false;
    }
169694
def get_transaction(self, account_id, transaction_id, **params):
        """"""
        response = self._get(
            'v2', 'accounts', account_id, 'transactions', transaction_id, params=params)
        return self._make_api_object(response, Transaction)
346660
public function getCompanyById($id)
    {
        $id = (int) $id;
        $id = max(0, $id);

        return $this->request('companies/'.$id);
    }
862323
public function chunkById($count, callable $callback, $column = null, $alias = null)
    {
        $this->query->addSelect($this->shouldSelect());

        $column = $column ?? $this->getRelated()->qualifyColumn(
            $this->getRelatedKeyName()
        );

        $alias = $alias ?? $this->getRelatedKeyName();

        return $this->query->chunkById($count, function ($results) use ($callback) {
            $this->hydratePivotRelation($results->all());

            return $callback($results);
        }, $column, $alias);
    }
377024
public function getCorporationLedger(int $corporation_id, int $year, int $month, bool $get = true)
    {

        $ledger = CharacterMining::select('character_minings.character_id', 'year', 'month', DB::raw('SUM(quantity) as quantity'), DB::raw('SUM(quantity * volume) as volumes'), DB::raw('SUM(quantity * adjusted_price) as amounts'))
            ->join('corporation_member_trackings', 'corporation_member_trackings.character_id', 'character_minings.character_id')
            ->join('invTypes', 'invTypes.typeID', 'character_minings.type_id')
            ->leftJoin('historical_prices', function ($join) {
                $join->on('historical_prices.type_id', '=', 'character_minings.type_id')
                     ->on('historical_prices.date', '=', 'character_minings.date');
            })
            ->where('corporation_id', $corporation_id)
            ->where('year', $year)
            ->where('month', $month)
            ->groupBy('character_id', 'year', 'month');

        if (! $get)
            return $ledger;

        return $ledger->get();
    }
673527
public function getTransactionsData(int $corporation_id)
    {

        $transactions = $this->getCorporationWalletTransactions($corporation_id, false);

        return DataTables::of($transactions)
            ->editColumn('is_buy', function ($row) {

                return view('web::partials.transactiontype', compact('row'))
                    ->render();
            })
            ->editColumn('unit_price', function ($row) {

                return number($row->unit_price);
            })
            ->addColumn('total', function ($row) {

                return number($row->unit_price * $row->quantity);
            })
            ->editColumn('client_id', function ($row) {

                return view('web::partials.transactionclient', compact('row'))
                    ->render();
            })
            ->rawColumns(['is_buy', 'client_id'])
            ->make(true);

    }
1215091
public function getContractsData(int $corporation_id)
    {

        $contracts = $this->getCorporationContracts($corporation_id, false);

        return DataTables::of($contracts)
            ->editColumn('issuer_id', function ($row) {

                return view('web::partials.contractissuer', compact('row'))
                    ->render();
            })
            ->editColumn('type', function ($row) {

                return view('web::partials.contracttype', compact('row'))
                    ->render();
            })
            ->editColumn('status', function ($row) {

                return ucfirst($row->status);

            })
            ->editColumn('price', function ($row) {

                return number($row->price);
            })
            ->editColumn('reward', function ($row) {

                return number($row->reward);
            })
            ->addColumn('contents', function ($row) {

                return view('web::partials.contractcontentsbutton', compact('row'));
            })
            ->filterColumn('issuer_id', function ($query, $keyword) {

                $query->whereIn('a.issuer_id', $this->getIdsForNames($keyword)->toArray());
            })
            ->filterColumn('assignee_id', function ($query, $keyword) {

                $query->whereIn('a.assignee_id', $this->getIdsForNames($keyword)->toArray());
            })
            ->filterColumn('acceptor_id', function ($query, $keyword) {

                $query->whereIn('a.acceptor_id', $this->getIdsForNames($keyword)->toArray());
            })
            ->rawColumns(['issuer_id', 'type', 'contents'])
            ->make(true);
    }
83522
function getTransactionSuccess(web3, hash, callback) {
  const receiptInterval = setInterval(() => {
    web3.eth.getTransactionReceipt(hash, (receiptError, receipt) => {
      if (receiptError) {
        clearInterval(receiptInterval);
        return callback(`while getting receipt for hash '${hash}: ${receiptError}'`, false);
      }

      // this is probably wrong
      if (receipt.blockHash !== '0x') {
        clearInterval(receiptInterval);
        return callback(null, receipt);
      }

      // return false
      return false;
    });
  }, 100);
}
1354894
public function getTransactionDetail($transaction_id){
        $url = $this->authenticationService->getServerEndPoint() . Endpoints::VERSION . Endpoints::BASE_WALLET . Endpoints::WALLET_TRANSACTION;
        $url = sprintf($url,$transaction_id);
        $result = $this->authenticationService->getTransport()->fetch($url);

        if($result["code"] == APIResponse::RESPONSE_SUCCESS){
            // Wrap it in a array since maskData takes an Array of Array
            $maskWrapper = array($result['results']);
            $this->maskData($maskWrapper);
            return $maskWrapper[0];
        }else{
            return 0;
        }
    }
855257
public static function get($uuid, $client = null) {
    return Recurly_Base::_get(Recurly_Transaction::uriForTransaction($uuid), $client);
  }
1344309
public function chunk($count, callable $callback)
	{
		$this->query->addSelect($this->getSelectColumns());

		return $this->query->chunk($count, function ($results) use ($callback) {
			$this->hydratePivotRelation($results->all());

			return $callback($results);
		});
	}
148130
@Override
	public CorpInfo getCorpInfo(String CorpNum, String UserID) throws PopbillException {
		
		return httpget("/CorpInfo", CorpNum, UserID, CorpInfo.class);
	}
306888
public static Company get(final long _id)
        throws CacheReloadException
    {
        final Cache<Long, Company> cache = InfinispanCache.get().<Long, Company>getCache(Company.IDCACHE);
        if (!cache.containsKey(_id) && !Company.getCompanyFromDB(Company.SQL_ID, _id)) {
            cache.put(_id, Company.NULL, 100, TimeUnit.SECONDS);
        }
        final Company ret = cache.get(_id);
        return ret.equals(Company.NULL) ? null : ret;
    }