/** 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; }
/** 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; }
/** 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; }
/** 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; }
/** 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; }
/** * 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())); } }
/** * 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()); } }
/** * 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())); } }
/** * 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()); } }
/** * 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())); } }