com.maxio.advancedbilling.models.InvoiceTaxBreakout Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of advanced-billing-sdk Show documentation
Show all versions of advanced-billing-sdk Show documentation
Ultimate billing and pricing flexibility for B2B SaaS.
Maxio integrates directly into your product, so you can seamlessly manage your product catalog, bill customers, and collect payments.
The newest version!
/*
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.maxio.advancedbilling.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import io.apimatic.core.types.BaseModel;
/**
* This is a model class for InvoiceTaxBreakout type.
*/
public class InvoiceTaxBreakout
extends BaseModel {
private String uid;
private String taxableAmount;
private String taxAmount;
private String taxExemptAmount;
/**
* Default constructor.
*/
public InvoiceTaxBreakout() {
}
/**
* Initialization constructor.
* @param uid String value for uid.
* @param taxableAmount String value for taxableAmount.
* @param taxAmount String value for taxAmount.
* @param taxExemptAmount String value for taxExemptAmount.
*/
public InvoiceTaxBreakout(
String uid,
String taxableAmount,
String taxAmount,
String taxExemptAmount) {
this.uid = uid;
this.taxableAmount = taxableAmount;
this.taxAmount = taxAmount;
this.taxExemptAmount = taxExemptAmount;
}
/**
* Getter for Uid.
* @return Returns the String
*/
@JsonGetter("uid")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getUid() {
return uid;
}
/**
* Setter for Uid.
* @param uid Value for String
*/
@JsonSetter("uid")
public void setUid(String uid) {
this.uid = uid;
}
/**
* Getter for TaxableAmount.
* @return Returns the String
*/
@JsonGetter("taxable_amount")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getTaxableAmount() {
return taxableAmount;
}
/**
* Setter for TaxableAmount.
* @param taxableAmount Value for String
*/
@JsonSetter("taxable_amount")
public void setTaxableAmount(String taxableAmount) {
this.taxableAmount = taxableAmount;
}
/**
* Getter for TaxAmount.
* @return Returns the String
*/
@JsonGetter("tax_amount")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getTaxAmount() {
return taxAmount;
}
/**
* Setter for TaxAmount.
* @param taxAmount Value for String
*/
@JsonSetter("tax_amount")
public void setTaxAmount(String taxAmount) {
this.taxAmount = taxAmount;
}
/**
* Getter for TaxExemptAmount.
* @return Returns the String
*/
@JsonGetter("tax_exempt_amount")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getTaxExemptAmount() {
return taxExemptAmount;
}
/**
* Setter for TaxExemptAmount.
* @param taxExemptAmount Value for String
*/
@JsonSetter("tax_exempt_amount")
public void setTaxExemptAmount(String taxExemptAmount) {
this.taxExemptAmount = taxExemptAmount;
}
/**
* Converts this InvoiceTaxBreakout into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "InvoiceTaxBreakout [" + "uid=" + uid + ", taxableAmount=" + taxableAmount
+ ", taxAmount=" + taxAmount + ", taxExemptAmount=" + taxExemptAmount
+ ", additionalProperties=" + getAdditionalProperties() + "]";
}
/**
* Builds a new {@link InvoiceTaxBreakout.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link InvoiceTaxBreakout.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.uid(getUid())
.taxableAmount(getTaxableAmount())
.taxAmount(getTaxAmount())
.taxExemptAmount(getTaxExemptAmount());
return builder;
}
/**
* Class to build instances of {@link InvoiceTaxBreakout}.
*/
public static class Builder {
private String uid;
private String taxableAmount;
private String taxAmount;
private String taxExemptAmount;
/**
* Setter for uid.
* @param uid String value for uid.
* @return Builder
*/
public Builder uid(String uid) {
this.uid = uid;
return this;
}
/**
* Setter for taxableAmount.
* @param taxableAmount String value for taxableAmount.
* @return Builder
*/
public Builder taxableAmount(String taxableAmount) {
this.taxableAmount = taxableAmount;
return this;
}
/**
* Setter for taxAmount.
* @param taxAmount String value for taxAmount.
* @return Builder
*/
public Builder taxAmount(String taxAmount) {
this.taxAmount = taxAmount;
return this;
}
/**
* Setter for taxExemptAmount.
* @param taxExemptAmount String value for taxExemptAmount.
* @return Builder
*/
public Builder taxExemptAmount(String taxExemptAmount) {
this.taxExemptAmount = taxExemptAmount;
return this;
}
/**
* Builds a new {@link InvoiceTaxBreakout} object using the set fields.
* @return {@link InvoiceTaxBreakout}
*/
public InvoiceTaxBreakout build() {
return new InvoiceTaxBreakout(uid, taxableAmount, taxAmount, taxExemptAmount);
}
}
}