Get Map of transactions (withdrawals/deposits) from DSX exchange. Not all parameters are
required.

@param fromId
@param toId
@param type
@param status
@param currency
@return
@throws IOException
487598
public Map<Long, DSXTransHistoryResult> getDSXTransHistory(
      Integer count,
      Long fromId,
      Long toId,
      DSXAuthenticatedV2.SortOrder sortOrder,
      Long since,
      Long end,
      DSXTransHistoryResult.Type type,
      DSXTransHistoryResult.Status status,
      String currency)
      throws IOException {
    DSXTransHistoryReturn dsxTransHistory =
        dsx.transHistory(
            apiKey,
            signatureCreator,
            exchange.getNonceFactory(),
            count,
            fromId,
            toId,
            sortOrder,
            since,
            end,
            type,
            status,
            currency);
    checkResult(dsxTransHistory);
    return dsxTransHistory.getReturnValue();
  }
1053822
public ArrayList<Long> payment_transaction_GET(Long paymentMethodId, net.minidev.ovh.api.me.payment.method.transaction.OvhStatus status) throws IOException {
		String qPath = "/me/payment/transaction";
		StringBuilder sb = path(qPath);
		query(sb, "paymentMethodId", paymentMethodId);
		query(sb, "status", status);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t2);
	}
1329323
private void addCurrencyInfoMethod(TypeSpec.Builder type, String name, Map<String, String> mapping) {
    MethodSpec.Builder method = MethodSpec.methodBuilder(name)
        .addModifiers(PUBLIC)
        .addParameter(Types.CLDR_CURRENCY_ENUM, "code")
        .returns(String.class);

    method.beginControlFlow("if (code == null)");
    method.addStatement("return $S", "");
    method.endControlFlow();
    
    method.beginControlFlow("switch (code)");
    for (Map.Entry<String, String> entry : mapping.entrySet()) {
      String key = entry.getKey();
      String val = entry.getValue();
      if (!key.equals(val)) {
        method.addStatement("case $L: return $S", key, val);
      }
    }
    
    method.addStatement("default: return code.name()");
    method.endControlFlow();
    type.addMethod(method.build());
  }
546825
public static List<LimitOrder> adaptOrders(
      List<ANXOrder> anxOrders,
      String tradedCurrency,
      String currency,
      String orderType,
      String id) {

    List<LimitOrder> limitOrders = new ArrayList<>();

    for (ANXOrder anxOrder : anxOrders) {
      limitOrders.add(
          adaptOrder(
              anxOrder.getAmount(),
              anxOrder.getPrice(),
              tradedCurrency,
              currency,
              orderType,
              id,
              new Date(anxOrder.getStamp())));
    }

    return limitOrders;
  }
144966
protected int getTransactionIsolation() {
		String val = props.get(PROPS_TRANSACTION_ISOLATION);
		return val == null ? -1 : Integer.parseInt(val);
	}
91064
@NonNull
    Map<String, Object> hashMapFromBankAccount(@NonNull BankAccount bankAccount) {
        Map<String, Object> tokenParams = new HashMap<>();
        AbstractMap<String, Object> accountParams = new HashMap<>();

        accountParams.put("country", bankAccount.getCountryCode());
        accountParams.put("currency", bankAccount.getCurrency());
        accountParams.put("account_number", bankAccount.getAccountNumber());
        accountParams.put("routing_number",
                StripeTextUtils.nullIfBlank(bankAccount.getRoutingNumber()));
        accountParams.put("account_holder_name",
                StripeTextUtils.nullIfBlank(bankAccount.getAccountHolderName()));
        accountParams.put("account_holder_type",
                StripeTextUtils.nullIfBlank(bankAccount.getAccountHolderType()));

        // Remove all null values; they cause validation errors
        removeNullAndEmptyParams(accountParams);

        tokenParams.put(Token.TYPE_BANK_ACCOUNT, accountParams);
        addUidParams(tokenParams);
        return tokenParams;
    }
47836
public List<OkCoinKline> getKlines(CurrencyPair currencyPair, OkCoinKlineType type)
      throws IOException {
    return getKlines(currencyPair, type, null, null);
  }
604739
private void writeTransaction(Definition def, Writer out, int indent) throws IOException
   {
      writeWithIndent(out, indent, "/**\n");
      writeWithIndent(out, indent, " * Returns an <code>javax.resource.spi.LocalTransaction</code> instance.\n");
      writeWithIndent(out, indent, " *\n");
      writeWithIndent(out, indent, " * @return LocalTransaction instance\n");
      writeWithIndent(out, indent, " * @throws ResourceException generic exception if operation fails\n");
      writeWithIndent(out, indent, " */\n");

      writeWithIndent(out, indent, "public LocalTransaction getLocalTransaction() throws ResourceException");
      writeLeftCurlyBracket(out, indent);
      if (def.getSupportTransaction().equals("NoTransaction"))
      {
         writeWithIndent(out, indent + 1, "throw new NotSupportedException(\"getLocalTransaction() not supported\");");
      }
      else
      {
         writeLogging(def, out, indent + 1, "trace", "getLocalTransaction");
         writeWithIndent(out, indent + 1, "return null;");
      }
      writeRightCurlyBracket(out, indent);
      writeEol(out);

      writeWithIndent(out, indent, "/**\n");
      writeWithIndent(out, indent, " * Returns an <code>javax.transaction.xa.XAresource</code> instance. \n");
      writeWithIndent(out, indent, " *\n");
      writeWithIndent(out, indent, " * @return XAResource instance\n");
      writeWithIndent(out, indent, " * @throws ResourceException generic exception if operation fails\n");
      writeWithIndent(out, indent, " */\n");

      writeWithIndent(out, indent, "public XAResource getXAResource() throws ResourceException");
      writeLeftCurlyBracket(out, indent);
      if (def.getSupportTransaction().equals("NoTransaction"))
      {
         writeWithIndent(out, indent + 1, "throw new NotSupportedException(\"getXAResource() not supported\");");
      }
      else
      {
         writeLogging(def, out, indent + 1, "trace", "getXAResource");
         writeWithIndent(out, indent + 1, "return null;");
      }

      writeRightCurlyBracket(out, indent);
      writeEol(out);
   }
367542
public static Collection<CurrencyUnit> getCurrencies(CurrencyQuery query) {
        return Optional.ofNullable(MONETARY_CURRENCIES_SINGLETON_SPI()).orElseThrow(
                () -> new MonetaryException("No MonetaryCurrenciesSingletonSpi loaded, check your system setup."))
                .getCurrencies(query);
    }
376361
@ReadOperation
    public Map<String, Object> getSsoSessions(final String type) {
        val sessionsMap = new HashMap<String, Object>(1);
        val option = SsoSessionReportOptions.valueOf(type);
        val activeSsoSessions = getActiveSsoSessions(option);
        sessionsMap.put("activeSsoSessions", activeSsoSessions);
        val totalTicketGrantingTickets = new AtomicLong();
        val totalProxyGrantingTickets = new AtomicLong();
        val totalUsageCount = new AtomicLong();
        val uniquePrincipals = new HashSet<Object>();
        for (val activeSsoSession : activeSsoSessions) {
            if (activeSsoSession.containsKey(SsoSessionAttributeKeys.IS_PROXIED.toString())) {
                val isProxied = Boolean.valueOf(activeSsoSession.get(SsoSessionAttributeKeys.IS_PROXIED.toString()).toString());
                if (isProxied) {
                    totalProxyGrantingTickets.incrementAndGet();
                } else {
                    totalTicketGrantingTickets.incrementAndGet();
                    val principal = activeSsoSession.get(SsoSessionAttributeKeys.AUTHENTICATED_PRINCIPAL.toString()).toString();
                    uniquePrincipals.add(principal);
                }
            } else {
                totalTicketGrantingTickets.incrementAndGet();
                val principal = activeSsoSession.get(SsoSessionAttributeKeys.AUTHENTICATED_PRINCIPAL.toString()).toString();
                uniquePrincipals.add(principal);
            }
            val uses = Long.parseLong(activeSsoSession.get(SsoSessionAttributeKeys.NUMBER_OF_USES.toString()).toString());
            totalUsageCount.getAndAdd(uses);
        }
        sessionsMap.put("totalProxyGrantingTickets", totalProxyGrantingTickets);
        sessionsMap.put("totalTicketGrantingTickets", totalTicketGrantingTickets);
        sessionsMap.put("totalTickets", totalTicketGrantingTickets.longValue() + totalProxyGrantingTickets.longValue());
        sessionsMap.put("totalPrincipals", uniquePrincipals.size());
        sessionsMap.put("totalUsageCount", totalUsageCount);
        return sessionsMap;
    }
860039
public ArrayList<String> credit_balance_GET(OvhType type) throws IOException {
		String qPath = "/me/credit/balance";
		StringBuilder sb = path(qPath);
		query(sb, "type", type);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t1);
	}
480392
public BitZTrades getOrder(CurrencyPair currencyPair) throws IOException {
    BitZTradesResult result = bitz.getOrder(BitZUtils.toPairString(currencyPair));
    return result.getData();
  }
454615
public Response getTransactionsKeys(String key, int account) {
        Response operation = new Response();
        if (walletDAO.hasWallet(key)) {
            V2Wallet wallet = wallets.getWallet(key);
            if (wallet == null) {
                wallet = init(key);
            }
            operation.setPayload(wallet.getTransactionsKeys(account));
        } else {
            operation.addError(new Error(3));
        }
        return operation;
    }
329192
public ArrayList<Long> deposit_depositId_paidBills_billId_debt_operation_GET(String depositId, String billId, Long depositOrderId) throws IOException {
		String qPath = "/me/deposit/{depositId}/paidBills/{billId}/debt/operation";
		StringBuilder sb = path(qPath, depositId, billId);
		query(sb, "depositOrderId", depositOrderId);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t2);
	}
1368118
private function _submitTransaction($transaction, $txnType, $clientTxnId = null, $cardData = null)
    {
        $options = array();
        if ($clientTxnId !== null) {
            $options['clientTransactionId'] = $clientTxnId;
        }

        try {
            $response = $this->doRequest($transaction, $options);
        } catch (HpsException $e) {
            if ($e->innerException != null && $e->innerException->getMessage() == 'gateway_time-out') {
                if ($txnType == 'DebitSale') {
                    try {
                        $this->reverse($cardData, $this->_amount, $this->_currency);
                    } catch (Exception $e) {
                        throw new HpsGatewayException('0', HpsExceptionCodes::GATEWAY_TIMEOUT_REVERSAL_ERROR);
                    }
                }
                throw new HpsException('An error occurred and the gateway has timed out', 'gateway_timeout', $e, 'gateway_timeout');
            }
            throw $e;
        }

        $this->_processChargeGatewayResponse($response, $txnType);
        $this->_processChargeIssuerResponse($response, $txnType);

        $rvalue = null;
        switch ($txnType) {
            case 'DebitSale':
                $rvalue = HpsDebitSale::fromDict($response, $txnType);
                break;
            case 'DebitAddValue':
                $rvalue = HpsDebitAddValue::fromDict($response, $txnType);
                break;
            case 'DebitReturn':
                $rvalue = HpsDebitReturn::fromDict($response, $txnType);
                break;
            case 'DebitReversal':
                $rvalue = HpsDebitReversal::fromDict($response, $txnType);
                break;
            default:
                break;
        }

        return $rvalue;
    }
1088527
public OvhPayment withdrawal_withdrawalId_payment_GET(String withdrawalId) throws IOException {
		String qPath = "/me/withdrawal/{withdrawalId}/payment";
		StringBuilder sb = path(qPath, withdrawalId);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhPayment.class);
	}
1204668
public WePayOrder queryByTransactionId(String transactionId){
        checkNotNullAndEmpty(transactionId, "transactionId");
        Map<String, String> queryParams = new TreeMap<>();
        put(queryParams, WepayField.TRANSACTION_ID, transactionId);
        return doQueryOrder(queryParams);
    }