/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://code.google.com/p/google-apis-client-generator/
* (build: 2015-05-05 20:00:12 UTC)
* on 2015-05-07 at 22:27:28 UTC
* Modify at your own risk.
*/
package com.appspot.ocr_backend.backend.model;
/**
* Response to Prepay event creation request ok: (Boolean) Reading creation successful or failed
* amount_to_pay: (Integer) Amount in currency to pay for the solicited m3_to_prepay (see class
* NewPrepay on messages.py) error: (String) If creation failed, contains the reason, otherwise
* empty.
* <p/>
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the backend. For a detailed explanation see:
* <a href="http://code.google.com/p/google-http-java-client/wiki/JSON">http://code.google.com/p/google-http-java-client/wiki/JSON</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class MessagesNewPrepayResponse extends com.google.api.client.json.GenericJson {
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key("amount_to_pay")
@com.google.api.client.json.JsonString
private java.lang.Long amountToPay;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String error;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean ok;
/**
* @return value or {@code null} for none
*/
public java.lang.Long getAmountToPay() {
return amountToPay;
}
/**
* @param amountToPay amountToPay or {@code null} for none
*/
public MessagesNewPrepayResponse setAmountToPay(java.lang.Long amountToPay) {
this.amountToPay = amountToPay;
return this;
}
/**
* @return value or {@code null} for none
*/
public java.lang.String getError() {
return error;
}
/**
* @param error error or {@code null} for none
*/
public MessagesNewPrepayResponse setError(java.lang.String error) {
this.error = error;
return this;
}
/**
* @return value or {@code null} for none
*/
public java.lang.Boolean getOk() {
return ok;
}
/**
* @param ok ok or {@code null} for none
*/
public MessagesNewPrepayResponse setOk(java.lang.Boolean ok) {
this.ok = ok;
return this;
}
@Override
public MessagesNewPrepayResponse set(String fieldName, Object value) {
return (MessagesNewPrepayResponse) super.set(fieldName, value);
}
@Override
public MessagesNewPrepayResponse clone() {
return (MessagesNewPrepayResponse) super.clone();
}
}