Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.paypal.api.payments;
 
 
 public class ChargeModels  extends PayPalModel {

Identifier of the charge model. 128 characters max.
 
	private String id;

Type of charge model. Allowed values: `SHIPPING`, `TAX`.
	private String type;

Specific amount for this charge model.
	private Currency amount;

Default Constructor
	public ChargeModels() {
	}

Parameterized Constructor
	public ChargeModels(String typeCurrency amount) {
		this. = type;
		this. = amount;
	}


Setter for id
	public ChargeModels setId(String id) {
		this. = id;
		return this;
	}

Getter for id
	public String getId() {
		return this.;
	}


Setter for type
	public ChargeModels setType(String type) {
		this. = type;
		return this;
	}

Getter for type
	public String getType() {
		return this.;
	}


Setter for amount
	public ChargeModels setAmount(Currency amount) {
		this. = amount;
		return this;
	}

Getter for amount
	public Currency getAmount() {
		return this.;
	}
New to GrepCode? Check out our FAQ X