/**
   * JSON fragment representation of this object
   *
   * @return JSON fragment for this object. Name for outer object expected to be set by calling
   *     method. This fragment returns inner properties representation only
   */
  protected String toJSONFragment() {
    StringBuffer json = new StringBuffer();
    boolean first = true;
    if (isSetMarketplace()) {
      if (!first) json.append(", ");
      json.append(quoteJSON("Marketplace"));
      json.append(" : ");
      json.append(quoteJSON(getMarketplace()));
      first = false;
    }
    if (isSetMerchant()) {
      if (!first) json.append(", ");
      json.append(quoteJSON("Merchant"));
      json.append(" : ");
      json.append(quoteJSON(getMerchant()));
      first = false;
    }
    if (isSetReportIdList()) {
      if (!first) json.append(", ");
      json.append("\"ReportIdList\" : {");
      IdList reportIdList = getReportIdList();

      json.append(reportIdList.toJSONFragment());
      json.append("}");
      first = false;
    }
    if (isSetAcknowledged()) {
      if (!first) json.append(", ");
      json.append(quoteJSON("Acknowledged"));
      json.append(" : ");
      json.append(quoteJSON(isAcknowledged() + ""));
      first = false;
    }
    return json.toString();
  }
Ejemplo n.º 2
0
  protected static long getCPtrAndDisown(IdList obj) {
    long ptr = 0;

    if (obj != null) {
      ptr = obj.swigCPtr;
      obj.swigCMemOwn = false;
    }

    return ptr;
  }