コード例 #1
0
  /** Sets the field 'name'. */
  public TipSuggestion setName(java.lang.String name) {
    logChange("name");

    try {
      getJSONObject()
          .put(
              "name",
              name == null ? org.json.JSONObject.NULL : com.clover.sdk.v3.JsonHelper.toJSON(name));
    } catch (org.json.JSONException e) {
      throw new java.lang.IllegalArgumentException(e);
    }

    cacheMarkDirty(CacheKey.name);
    return this;
  }
コード例 #2
0
  /** Sets the field 'isEnabled'. */
  public TipSuggestion setIsEnabled(java.lang.Boolean isEnabled) {
    logChange("isEnabled");

    try {
      getJSONObject()
          .put(
              "isEnabled",
              isEnabled == null
                  ? org.json.JSONObject.NULL
                  : com.clover.sdk.v3.JsonHelper.toJSON(isEnabled));
    } catch (org.json.JSONException e) {
      throw new java.lang.IllegalArgumentException(e);
    }

    cacheMarkDirty(CacheKey.isEnabled);
    return this;
  }
コード例 #3
0
  /** Sets the field 'deviceSerial'. */
  public GiftCard setDeviceSerial(java.lang.String deviceSerial) {
    logChange("deviceSerial");

    try {
      getJSONObject()
          .put(
              "deviceSerial",
              deviceSerial == null
                  ? org.json.JSONObject.NULL
                  : com.clover.sdk.v3.JsonHelper.toJSON(deviceSerial));
    } catch (org.json.JSONException e) {
      throw new java.lang.IllegalArgumentException(e);
    }

    cacheMarkDirty(CacheKey.deviceSerial);
    return this;
  }
コード例 #4
0
  /** Sets the field 'cardNumber'. */
  public GiftCard setCardNumber(java.lang.String cardNumber) {
    logChange("cardNumber");

    try {
      getJSONObject()
          .put(
              "cardNumber",
              cardNumber == null
                  ? org.json.JSONObject.NULL
                  : com.clover.sdk.v3.JsonHelper.toJSON(cardNumber));
    } catch (org.json.JSONException e) {
      throw new java.lang.IllegalArgumentException(e);
    }

    cacheMarkDirty(CacheKey.cardNumber);
    return this;
  }
コード例 #5
0
  /** Sets the field 'track2'. */
  public GiftCard setTrack2(java.lang.String track2) {
    logChange("track2");

    try {
      getJSONObject()
          .put(
              "track2",
              track2 == null
                  ? org.json.JSONObject.NULL
                  : com.clover.sdk.v3.JsonHelper.toJSON(track2));
    } catch (org.json.JSONException e) {
      throw new java.lang.IllegalArgumentException(e);
    }

    cacheMarkDirty(CacheKey.track2);
    return this;
  }
コード例 #6
0
 /**
  * Constructs a new instance that is a deep copy of the source instance. It does not copy the
  * bundle or changelog.
  */
 public Item(Item src) {
   if (src.genClient.getJsonObject() != null) {
     genClient.setJsonObject(com.clover.sdk.v3.JsonHelper.deepCopy(src.genClient.getJSONObject()));
   }
 }
コード例 #7
0
 /**
  * Constructs a new instance that is a deep copy of the source instance. It does not copy the
  * bundle or changelog.
  */
 public TipSuggestion(TipSuggestion src) {
   if (src.jsonObject != null) {
     this.jsonObject = com.clover.sdk.v3.JsonHelper.deepCopy(src.getJSONObject());
   }
 }
コード例 #8
0
 /**
  * Constructs a new instance that is a deep copy of the source instance. It does not copy the
  * bundle or changelog.
  */
 public AndroidVersion(AndroidVersion src) {
   if (src.genClient.getJsonObject() != null) {
     genClient.setJsonObject(com.clover.sdk.v3.JsonHelper.deepCopy(src.genClient.getJSONObject()));
   }
 }
コード例 #9
0
 /**
  * Constructs a new instance that is a deep copy of the source instance. It does not copy the
  * bundle or changelog.
  */
 public GiftCard(GiftCard src) {
   if (src.jsonObject != null) {
     this.jsonObject = com.clover.sdk.v3.JsonHelper.deepCopy(src.getJSONObject());
   }
 }
コード例 #10
0
 /**
  * Constructs a new instance that is a deep copy of the source instance. It does not copy the
  * bundle or changelog.
  */
 public BusinessType(BusinessType src) {
   if (src.genClient.getJsonObject() != null) {
     genClient.setJsonObject(com.clover.sdk.v3.JsonHelper.deepCopy(src.genClient.getJSONObject()));
   }
 }