com.blockchyp.client.dto.TransactionDisplayTransaction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blockchyp-java Show documentation
Show all versions of blockchyp-java Show documentation
This is the recommended means for Java developers to access the BlockChyp gateway and BlockChyp terminals.
/**
* Copyright 2019-2024 BlockChyp, Inc. All rights reserved. Use of this code is governed
* by a license that can be found in the LICENSE file.
*
* This file was generated automatically by the BlockChyp SDK Generator. Changes to this
* file will be lost every time the code is regenerated.
*/
package com.blockchyp.client.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.Collection;
/**
* The items to display on a terminal.
*/
@SuppressWarnings({"rawtypes", "unchecked"})
public class TransactionDisplayTransaction {
private String subtotal;
private String tax;
private String total;
private Collection items;
/**
* Sets the subtotal to display.
* @param value the subtotal to display.
*/
public void setSubtotal(String value) {
this.subtotal = value;
}
/**
* Gets the subtotal to display.
* @return the subtotal to display.
*/
@JsonProperty("subtotal")
public String getSubtotal() {
return this.subtotal;
}
/**
* Sets the tax to display.
* @param value the tax to display.
*/
public void setTax(String value) {
this.tax = value;
}
/**
* Gets the tax to display.
* @return the tax to display.
*/
@JsonProperty("tax")
public String getTax() {
return this.tax;
}
/**
* Sets the total to display.
* @param value the total to display.
*/
public void setTotal(String value) {
this.total = value;
}
/**
* Gets the total to display.
* @return the total to display.
*/
@JsonProperty("total")
public String getTotal() {
return this.total;
}
/**
* Sets an item to display.
* @param value an item to display. Can be overwritten or appended, based on the
* request type.
*/
public void setItems(Collection value) {
this.items = value;
}
/**
* Gets an item to display.
* @return an item to display. Can be overwritten or appended, based on the request
* type.
*/
@JsonProperty("items")
public Collection getItems() {
return this.items;
}
/**
* Adds a an item to display.
* @param value an item to display. Can be overwritten or appended, based on the
* request type.
*/
public void addItem(TransactionDisplayItem value) {
if (this.items == null) {
this.items = new ArrayList();
}
this.items.add(value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy