/* setProviderCreditDetails - sets the provider credit details sent via the Capture or Authorize API calls
@param provider_id - [String]
@param credit_amount - [String]
@optional currency_code - [String]
512353
private function setProviderCreditDetails($parameters, $providerCreditInfo)
    {
        $providerIndex = 0;
        $providerString = 'ProviderCreditList.member.';

        $fieldMappings = array(
            'provider_id'   => 'ProviderId',
            'credit_amount' => 'CreditAmount.Amount',
            'currency_code' => 'CreditAmount.CurrencyCode'
        );

        foreach ($providerCreditInfo as $key => $value) {
            $value = array_change_key_case($value, CASE_LOWER);
            $providerIndex = $providerIndex + 1;

            foreach ($value as $param => $val) {
                if (array_key_exists($param, $fieldMappings) && trim($val)!='') {
                    $parameters[$providerString.$providerIndex. '.' .$fieldMappings[$param]] = $val;
                 }
            }

            // If currency code is not entered take it from the config array
            if (empty($parameters[$providerString.$providerIndex. '.' .$fieldMappings['currency_code']])) {
                $parameters[$providerString.$providerIndex. '.' .$fieldMappings['currency_code']] = strtoupper($this->config['currency_code']);
            }
        }

        return $parameters;
    }
175344
func (s *ForgotPasswordOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *ForgotPasswordOutput {
	s.CodeDeliveryDetails = v
	return s
}
991139
function addProviderIcon(providerId) {
  var pElt = $('<i>').addClass('fa ' + providersIcons[providerId])
      .attr('title', providerId)
      .data({
        'toggle': 'tooltip',
        'placement': 'bottom'
      });
  $('.profile-providers').append(pElt);
  pElt.tooltip();
}
704503
protected void setSuspended(boolean value, int detail)
	{
		suspended = value;
		if (value)
		{
			++modificationsCount;
		}

		if (value)
		{
			handler.handleSuspend(detail);
		} else
		{
			handler.handleResume(detail);
		}
	}
392697
func (u unstableAPI) TxDetails(txHash *chainhash.Hash) (*wtxmgr.TxDetails, error) {
	var details *wtxmgr.TxDetails
	err := walletdb.View(u.w.db, func(dbtx walletdb.ReadTx) error {
		txmgrNs := dbtx.ReadBucket(wtxmgrNamespaceKey)
		var err error
		details, err = u.w.TxStore.TxDetails(txmgrNs, txHash)
		return err
	})
	return details, err
}
284154
def payment_detail(payment_id)
      payment_id = payment_id.payment_id if payment_id.instance_of? Instamojo::Payment
      get("payments/#{payment_id}")
      @response.success? ? Instamojo::Payment.new(@response.body[:payment], self) : @response
    end
708905
def __set_client_detail(self, *args, **kwargs):
        

        client_detail = self.client.factory.create('ClientDetail')
        client_detail.AccountNumber = self.config_obj.account_number
        client_detail.MeterNumber = self.config_obj.meter_number
        client_detail.IntegratorId = self.config_obj.integrator_id
        if hasattr(client_detail, 'Region'):
            client_detail.Region = self.config_obj.express_region_code

        client_language_code = kwargs.get('client_language_code', None)
        client_locale_code = kwargs.get('client_locale_code', None)

        if hasattr(client_detail, 'Localization') and (client_language_code or client_locale_code):
            localization = self.client.factory.create('Localization')

            if client_language_code:
                localization.LanguageCode = client_language_code

            if client_locale_code:
                localization.LocaleCode = client_locale_code

            client_detail.Localization = localization

        self.ClientDetail = client_detail
910141
@com.fasterxml.jackson.annotation.JsonProperty("ErrorDetails")
    public void setErrorDetails(java.util.Collection<ErrorDetail> errorDetails) {
        if (errorDetails == null) {
            this.errorDetails = null;
            return;
        }

        this.errorDetails = new java.util.ArrayList<ErrorDetail>(errorDetails);
    }
1165858
function setAccountDetail (commandOptions, { accountId, key, value }) {
  return command(
    commandOptions,
    txHelper.addCommand(
      txHelper.emptyTransaction(),
      'setAccountDetail',
      {
        accountId,
        key,
        value
      }
    )
  )
}
1191152
@SuppressWarnings("unused")
    @Override
    public void onPaymentSuccess(String razorpayPaymentID) {
        try {
            Toast.makeText(this, "Payment Successful: " + razorpayPaymentID, Toast.LENGTH_SHORT).show();
        } catch (Exception e) {
            Log.e(TAG, "Exception in onPaymentSuccess", e);
        }
    }
1246790
public final void createPrepayment(final Map<String, Object> pReqVars,
    final BankStatementLine pBsl, final DateFormat pDateFormat,
      final String pLangDef, final IRequestData pRequestData) throws Exception {
    BigDecimal foreignTotal;
    DebtorCreditor dc;
    Account accCash;
    Date itsDate;
    try {
      String forTotStr = pRequestData.getParameter("foreignTotal");
      if (forTotStr == null || "".equals(forTotStr)) {
        foreignTotal = BigDecimal.ZERO;
      } else {
        String dsep = (String) pReqVars.get("decSepv");
        if (dsep != null) {
          String dgsep = (String) pReqVars.get("decGrSepv");
          forTotStr = forTotStr.replace(dgsep, "").replace(dsep, ".");
        }
        foreignTotal = new BigDecimal(forTotStr);
      }
      String dcIdStr = pRequestData.getParameter("debtorCreditor");
      dc = new DebtorCreditor();
      dc.setItsId(Long.parseLong(dcIdStr));
      dc = getSrvOrm().retrieveEntity(pReqVars, dc);
      if (dc == null) {
        throw new Exception("cant_find_debtor_creditor");
      }
      String accCashStr = pRequestData.getParameter("accCash");
      accCash = new Account();
      accCash.setItsId(accCashStr);
      accCash = getSrvOrm().retrieveEntity(pReqVars, accCash);
      if (accCash == null) {
        throw new Exception("cant_find_account");
      }
      String itsDateStr = pRequestData.getParameter("itsDate");
      itsDate = this.dateTimeNoTzFormatIso8601.parse(itsDateStr);
    } catch (Exception e) {
      throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER,
        "wrong_paramaters", e);
    }
    EBankEntryResultType resultRecordType = null;
    EBankEntryResultAction resultAction = EBankEntryResultAction.CREATE;
    String resultDescription = null;
    Long resultRecordId = null;
    if (pBsl.getItsAmount().compareTo(BigDecimal.ZERO) > 0) {
      resultRecordType = EBankEntryResultType.PREPAYMENTFROM;
      PrepaymentFrom prep = new PrepaymentFrom();
      prep.setIdDatabaseBirth(getSrvOrm().getIdDatabase());
      prep.setItsDate(itsDate);
      prep.setCustomer(dc);
      prep.setAccCash(accCash);
      prep.setSubaccCash(pBsl.getItsOwner().getBankAccount().getItsName());
      prep.setSubaccCashId(pBsl.getItsOwner().getBankAccount().getItsId());
      prep.setSubaccCashType(2002);
      prep.setItsTotal(pBsl.getItsAmount().abs());
      prep.setForeignTotal(foreignTotal);
      prep.setDescription(makeDescrForCreated(pBsl, pDateFormat, pLangDef));
      getSrvOrm().insertEntity(pReqVars, prep);
      this.srvAccEntry.makeEntries(pReqVars, prep);
      resultRecordId = prep.getItsId();
      resultDescription = makeBslResDescr(resultAction, pDateFormat, prep,
        prep.getItsDate(), pLangDef);
    } else {
      resultRecordType = EBankEntryResultType.PREPAYMENTTO;
      PrepaymentTo prep = new PrepaymentTo();
      prep.setIdDatabaseBirth(getSrvOrm().getIdDatabase());
      prep.setVendor(dc);
      prep.setItsDate(itsDate);
      prep.setAccCash(accCash);
      prep.setSubaccCash(pBsl.getItsOwner().getBankAccount().getItsName());
      prep.setSubaccCashId(pBsl.getItsOwner().getBankAccount().getItsId());
      prep.setSubaccCashType(2002);
      prep.setItsTotal(pBsl.getItsAmount().abs());
      prep.setForeignTotal(foreignTotal);
      prep.setDescription(makeDescrForCreated(pBsl, pDateFormat, pLangDef));
      getSrvOrm().insertEntity(pReqVars, prep);
      this.srvAccEntry.makeEntries(pReqVars, prep);
      resultRecordId = prep.getItsId();
      resultDescription = makeBslResDescr(resultAction, pDateFormat, prep,
        prep.getItsDate(), pLangDef);
    }
    pBsl.setResultAction(resultAction);
    pBsl.setResultRecordType(resultRecordType);
    pBsl.setResultRecordId(resultRecordId);
    pBsl.setResultDescription(resultDescription);
    getSrvOrm().updateEntity(pReqVars, pBsl);
  }
1051453
func (s *ListProvisioningArtifactsOutput) SetProvisioningArtifactDetails(v []*ProvisioningArtifactDetail) *ListProvisioningArtifactsOutput {
	s.ProvisioningArtifactDetails = v
	return s
}
517994
public ComplianceItem withDetails(java.util.Map<String, String> details) {
        setDetails(details);
        return this;
    }
584162
protected String getDetail(T data) {
        String ien = getLogicalId(data);
        return detailRPC == null || ien == null || ien.isEmpty() ? null
                : fromList(getBroker().callRPCList(detailRPC, null, patient.getIdElement().getIdPart(), ien));
    }
240754
func (s *DeviceStatusInfo) SetDeviceStatusDetails(v []*DeviceStatusDetail) *DeviceStatusInfo {
	s.DeviceStatusDetails = v
	return s
}
1240610
public void setDetails(java.util.Collection<ResourceChangeDetail> details) {
        if (details == null) {
            this.details = null;
            return;
        }

        this.details = new java.util.ArrayList<ResourceChangeDetail>(details);
    }
259271
public void paymentMean_deferredPaymentAccount_id_PUT(Long id, OvhDeferredPaymentAccount body) throws IOException {
		String qPath = "/me/paymentMean/deferredPaymentAccount/{id}";
		StringBuilder sb = path(qPath, id);
		exec(qPath, "PUT", sb.toString(), body);
	}