Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.paypal.api.payments;
 
 
 public class OverrideChargeModel  {

ID of charge model.
	private String chargeId;

Updated Amount to be associated with this charge model.
	private Currency amount;

Default Constructor
	public OverrideChargeModel() {
	}

Parameterized Constructor
	public OverrideChargeModel(String chargeIdCurrency amount) {
		this. = chargeId;
		this. = amount;
	}


Setter for chargeId
	public OverrideChargeModel setChargeId(String chargeId) {
		this. = chargeId;
		return this;
	}

Getter for chargeId
	public String getChargeId() {
		return this.;
	}


Setter for amount
		this. = amount;
		return this;
	}

Getter for amount
	public Currency getAmount() {
		return this.;
	}

Returns a JSON string corresponding to object state

Returns:
JSON representation
	public String toJSON() {
		return JSONFormatter.toJSON(this);
	}
	public String toString() {
		return toJSON();
	}
New to GrepCode? Check out our FAQ X