com.bitpay.sdk.model.bill.Item Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bitpay_sdk Show documentation
Show all versions of bitpay_sdk Show documentation
Full implementation of the BitPay Payment Gateway. This library implements BitPay's Cryptographically
Secure RESTful API.
The newest version!
/*
* Copyright (c) 2019 BitPay.
* All rights reserved.
*/
package com.bitpay.sdk.model.bill;
import static com.bitpay.sdk.model.ModelConfiguration.DEFAULT_NON_SENT_VALUE;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The type Item.
*
* @see REST API Bills
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Item {
protected String id;
protected String description = DEFAULT_NON_SENT_VALUE;
protected Double price;
protected Integer quantity;
/**
* Instantiates a new Item.
*/
public Item() {
}
/**
* Gets item resource Id.
*
* @return the id
*/
@JsonProperty("id")
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public String getId() {
return this.id;
}
/**
* Sets item resource Id.
*
* @param id the id
*/
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
/**
* Gets line item description.
*
* @return the description
*/
@JsonProperty("description")
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public String getDescription() {
return this.description;
}
/**
* Sets line item description.
*
* @param description the description
*/
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
/**
* Gets line item unit price for the corresponding currency.
*
* @return the price
*/
@JsonProperty("price")
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public Double getPrice() {
return this.price;
}
/**
* Sets line item unit price for the corresponding currency.
*
* @param price the price
*/
@JsonProperty("price")
public void setPrice(Double price) {
this.price = price;
}
/**
* Gets line item number of units.
*
* @return the quantity
*/
@JsonProperty("quantity")
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public Integer getQuantity() {
return this.quantity;
}
/**
* Sets line item number of units.
*
* @param quantity the quantity
*/
@JsonProperty("quantity")
public void setQuantity(Integer quantity) {
this.quantity = quantity;
}
}