Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.shell.apitest.models.UsageRestrictionsCard Maven / Gradle / Ivy
/*
* ShellCardManagementAPIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.shell.apitest.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.apimatic.core.types.OptionalNullable;
/**
* This is a model class for UsageRestrictionsCard type.
*/
public class UsageRestrictionsCard {
private OptionalNullable dailySpend;
private OptionalNullable weeklySpend;
private OptionalNullable monthlySpend;
private OptionalNullable perTransactionSpend;
private OptionalNullable annualSpend;
private OptionalNullable lifeTimeSpend;
private OptionalNullable dailyVolume;
private OptionalNullable weeklyVolume;
private OptionalNullable monthlyVolume;
private Double perTransactionVolume;
private OptionalNullable annualVolume;
private Double lifeTimeVolume;
private OptionalNullable dailyTransactionCount;
private OptionalNullable weeklyTransactionCount;
private OptionalNullable monthlyTransactionCount;
private OptionalNullable annualTransactionCount;
private OptionalNullable lifeTimeTransactionCount;
/**
* Default constructor.
*/
public UsageRestrictionsCard() {
}
/**
* Initialization constructor.
* @param dailySpend Double value for dailySpend.
* @param weeklySpend Double value for weeklySpend.
* @param monthlySpend Double value for monthlySpend.
* @param perTransactionSpend Double value for perTransactionSpend.
* @param annualSpend Double value for annualSpend.
* @param lifeTimeSpend Double value for lifeTimeSpend.
* @param dailyVolume Double value for dailyVolume.
* @param weeklyVolume Double value for weeklyVolume.
* @param monthlyVolume Double value for monthlyVolume.
* @param perTransactionVolume Double value for perTransactionVolume.
* @param annualVolume Double value for annualVolume.
* @param lifeTimeVolume Double value for lifeTimeVolume.
* @param dailyTransactionCount Double value for dailyTransactionCount.
* @param weeklyTransactionCount Double value for weeklyTransactionCount.
* @param monthlyTransactionCount Double value for monthlyTransactionCount.
* @param annualTransactionCount Double value for annualTransactionCount.
* @param lifeTimeTransactionCount Double value for lifeTimeTransactionCount.
*/
public UsageRestrictionsCard(
Double dailySpend,
Double weeklySpend,
Double monthlySpend,
Double perTransactionSpend,
Double annualSpend,
Double lifeTimeSpend,
Double dailyVolume,
Double weeklyVolume,
Double monthlyVolume,
Double perTransactionVolume,
Double annualVolume,
Double lifeTimeVolume,
Double dailyTransactionCount,
Double weeklyTransactionCount,
Double monthlyTransactionCount,
Double annualTransactionCount,
Double lifeTimeTransactionCount) {
this.dailySpend = OptionalNullable.of(dailySpend);
this.weeklySpend = OptionalNullable.of(weeklySpend);
this.monthlySpend = OptionalNullable.of(monthlySpend);
this.perTransactionSpend = OptionalNullable.of(perTransactionSpend);
this.annualSpend = OptionalNullable.of(annualSpend);
this.lifeTimeSpend = OptionalNullable.of(lifeTimeSpend);
this.dailyVolume = OptionalNullable.of(dailyVolume);
this.weeklyVolume = OptionalNullable.of(weeklyVolume);
this.monthlyVolume = OptionalNullable.of(monthlyVolume);
this.perTransactionVolume = perTransactionVolume;
this.annualVolume = OptionalNullable.of(annualVolume);
this.lifeTimeVolume = lifeTimeVolume;
this.dailyTransactionCount = OptionalNullable.of(dailyTransactionCount);
this.weeklyTransactionCount = OptionalNullable.of(weeklyTransactionCount);
this.monthlyTransactionCount = OptionalNullable.of(monthlyTransactionCount);
this.annualTransactionCount = OptionalNullable.of(annualTransactionCount);
this.lifeTimeTransactionCount = OptionalNullable.of(lifeTimeTransactionCount);
}
/**
* Initialization constructor.
* @param dailySpend Double value for dailySpend.
* @param weeklySpend Double value for weeklySpend.
* @param monthlySpend Double value for monthlySpend.
* @param perTransactionSpend Double value for perTransactionSpend.
* @param annualSpend Double value for annualSpend.
* @param lifeTimeSpend Double value for lifeTimeSpend.
* @param dailyVolume Double value for dailyVolume.
* @param weeklyVolume Double value for weeklyVolume.
* @param monthlyVolume Double value for monthlyVolume.
* @param perTransactionVolume Double value for perTransactionVolume.
* @param annualVolume Double value for annualVolume.
* @param lifeTimeVolume Double value for lifeTimeVolume.
* @param dailyTransactionCount Double value for dailyTransactionCount.
* @param weeklyTransactionCount Double value for weeklyTransactionCount.
* @param monthlyTransactionCount Double value for monthlyTransactionCount.
* @param annualTransactionCount Double value for annualTransactionCount.
* @param lifeTimeTransactionCount Double value for lifeTimeTransactionCount.
*/
protected UsageRestrictionsCard(OptionalNullable dailySpend,
OptionalNullable weeklySpend, OptionalNullable monthlySpend,
OptionalNullable perTransactionSpend, OptionalNullable annualSpend,
OptionalNullable lifeTimeSpend, OptionalNullable dailyVolume,
OptionalNullable weeklyVolume, OptionalNullable monthlyVolume,
Double perTransactionVolume, OptionalNullable annualVolume,
Double lifeTimeVolume, OptionalNullable dailyTransactionCount,
OptionalNullable weeklyTransactionCount,
OptionalNullable monthlyTransactionCount,
OptionalNullable annualTransactionCount,
OptionalNullable lifeTimeTransactionCount) {
this.dailySpend = dailySpend;
this.weeklySpend = weeklySpend;
this.monthlySpend = monthlySpend;
this.perTransactionSpend = perTransactionSpend;
this.annualSpend = annualSpend;
this.lifeTimeSpend = lifeTimeSpend;
this.dailyVolume = dailyVolume;
this.weeklyVolume = weeklyVolume;
this.monthlyVolume = monthlyVolume;
this.perTransactionVolume = perTransactionVolume;
this.annualVolume = annualVolume;
this.lifeTimeVolume = lifeTimeVolume;
this.dailyTransactionCount = dailyTransactionCount;
this.weeklyTransactionCount = weeklyTransactionCount;
this.monthlyTransactionCount = monthlyTransactionCount;
this.annualTransactionCount = annualTransactionCount;
this.lifeTimeTransactionCount = lifeTimeTransactionCount;
}
/**
* Internal Getter for DailySpend.
* Maximum spend value (amount) allowed per day. Optional It allows null in the input field. If
* Values is passed as null, apply the card type limit. However, if the card type limit is NULL
* for the same field then No limit will be applied in Gateway.
* @return Returns the Internal Double
*/
@JsonGetter("DailySpend")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetDailySpend() {
return this.dailySpend;
}
/**
* Getter for DailySpend.
* Maximum spend value (amount) allowed per day. Optional It allows null in the input field. If
* Values is passed as null, apply the card type limit. However, if the card type limit is NULL
* for the same field then No limit will be applied in Gateway.
* @return Returns the Double
*/
public Double getDailySpend() {
return OptionalNullable.getFrom(dailySpend);
}
/**
* Setter for DailySpend.
* Maximum spend value (amount) allowed per day. Optional It allows null in the input field. If
* Values is passed as null, apply the card type limit. However, if the card type limit is NULL
* for the same field then No limit will be applied in Gateway.
* @param dailySpend Value for Double
*/
@JsonSetter("DailySpend")
public void setDailySpend(Double dailySpend) {
this.dailySpend = OptionalNullable.of(dailySpend);
}
/**
* UnSetter for DailySpend.
* Maximum spend value (amount) allowed per day. Optional It allows null in the input field. If
* Values is passed as null, apply the card type limit. However, if the card type limit is NULL
* for the same field then No limit will be applied in Gateway.
*/
public void unsetDailySpend() {
dailySpend = null;
}
/**
* Internal Getter for WeeklySpend.
* Maximum spend value (amount) allowed per week. Optional
* @return Returns the Internal Double
*/
@JsonGetter("WeeklySpend")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetWeeklySpend() {
return this.weeklySpend;
}
/**
* Getter for WeeklySpend.
* Maximum spend value (amount) allowed per week. Optional
* @return Returns the Double
*/
public Double getWeeklySpend() {
return OptionalNullable.getFrom(weeklySpend);
}
/**
* Setter for WeeklySpend.
* Maximum spend value (amount) allowed per week. Optional
* @param weeklySpend Value for Double
*/
@JsonSetter("WeeklySpend")
public void setWeeklySpend(Double weeklySpend) {
this.weeklySpend = OptionalNullable.of(weeklySpend);
}
/**
* UnSetter for WeeklySpend.
* Maximum spend value (amount) allowed per week. Optional
*/
public void unsetWeeklySpend() {
weeklySpend = null;
}
/**
* Internal Getter for MonthlySpend.
* Maximum spend value (amount) allowed per month. Optional
* @return Returns the Internal Double
*/
@JsonGetter("MonthlySpend")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetMonthlySpend() {
return this.monthlySpend;
}
/**
* Getter for MonthlySpend.
* Maximum spend value (amount) allowed per month. Optional
* @return Returns the Double
*/
public Double getMonthlySpend() {
return OptionalNullable.getFrom(monthlySpend);
}
/**
* Setter for MonthlySpend.
* Maximum spend value (amount) allowed per month. Optional
* @param monthlySpend Value for Double
*/
@JsonSetter("MonthlySpend")
public void setMonthlySpend(Double monthlySpend) {
this.monthlySpend = OptionalNullable.of(monthlySpend);
}
/**
* UnSetter for MonthlySpend.
* Maximum spend value (amount) allowed per month. Optional
*/
public void unsetMonthlySpend() {
monthlySpend = null;
}
/**
* Internal Getter for PerTransactionSpend.
* Maximum spend value (amount) allowed per transaction. Optional
* @return Returns the Internal Double
*/
@JsonGetter("PerTransactionSpend")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetPerTransactionSpend() {
return this.perTransactionSpend;
}
/**
* Getter for PerTransactionSpend.
* Maximum spend value (amount) allowed per transaction. Optional
* @return Returns the Double
*/
public Double getPerTransactionSpend() {
return OptionalNullable.getFrom(perTransactionSpend);
}
/**
* Setter for PerTransactionSpend.
* Maximum spend value (amount) allowed per transaction. Optional
* @param perTransactionSpend Value for Double
*/
@JsonSetter("PerTransactionSpend")
public void setPerTransactionSpend(Double perTransactionSpend) {
this.perTransactionSpend = OptionalNullable.of(perTransactionSpend);
}
/**
* UnSetter for PerTransactionSpend.
* Maximum spend value (amount) allowed per transaction. Optional
*/
public void unsetPerTransactionSpend() {
perTransactionSpend = null;
}
/**
* Internal Getter for AnnualSpend.
* Maximum spend value (amount) allowed per annum. Optional
* @return Returns the Internal Double
*/
@JsonGetter("AnnualSpend")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetAnnualSpend() {
return this.annualSpend;
}
/**
* Getter for AnnualSpend.
* Maximum spend value (amount) allowed per annum. Optional
* @return Returns the Double
*/
public Double getAnnualSpend() {
return OptionalNullable.getFrom(annualSpend);
}
/**
* Setter for AnnualSpend.
* Maximum spend value (amount) allowed per annum. Optional
* @param annualSpend Value for Double
*/
@JsonSetter("AnnualSpend")
public void setAnnualSpend(Double annualSpend) {
this.annualSpend = OptionalNullable.of(annualSpend);
}
/**
* UnSetter for AnnualSpend.
* Maximum spend value (amount) allowed per annum. Optional
*/
public void unsetAnnualSpend() {
annualSpend = null;
}
/**
* Internal Getter for LifeTimeSpend.
* Maximum spend value (amount) allowed in card’s life time. Optional
* @return Returns the Internal Double
*/
@JsonGetter("LifeTimeSpend")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetLifeTimeSpend() {
return this.lifeTimeSpend;
}
/**
* Getter for LifeTimeSpend.
* Maximum spend value (amount) allowed in card’s life time. Optional
* @return Returns the Double
*/
public Double getLifeTimeSpend() {
return OptionalNullable.getFrom(lifeTimeSpend);
}
/**
* Setter for LifeTimeSpend.
* Maximum spend value (amount) allowed in card’s life time. Optional
* @param lifeTimeSpend Value for Double
*/
@JsonSetter("LifeTimeSpend")
public void setLifeTimeSpend(Double lifeTimeSpend) {
this.lifeTimeSpend = OptionalNullable.of(lifeTimeSpend);
}
/**
* UnSetter for LifeTimeSpend.
* Maximum spend value (amount) allowed in card’s life time. Optional
*/
public void unsetLifeTimeSpend() {
lifeTimeSpend = null;
}
/**
* Internal Getter for DailyVolume.
* Maximum volume (quantity) allowed per day. Optional
* @return Returns the Internal Double
*/
@JsonGetter("DailyVolume")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetDailyVolume() {
return this.dailyVolume;
}
/**
* Getter for DailyVolume.
* Maximum volume (quantity) allowed per day. Optional
* @return Returns the Double
*/
public Double getDailyVolume() {
return OptionalNullable.getFrom(dailyVolume);
}
/**
* Setter for DailyVolume.
* Maximum volume (quantity) allowed per day. Optional
* @param dailyVolume Value for Double
*/
@JsonSetter("DailyVolume")
public void setDailyVolume(Double dailyVolume) {
this.dailyVolume = OptionalNullable.of(dailyVolume);
}
/**
* UnSetter for DailyVolume.
* Maximum volume (quantity) allowed per day. Optional
*/
public void unsetDailyVolume() {
dailyVolume = null;
}
/**
* Internal Getter for WeeklyVolume.
* Maximum volume (quantity) allowed per week. Optional
* @return Returns the Internal Double
*/
@JsonGetter("WeeklyVolume")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetWeeklyVolume() {
return this.weeklyVolume;
}
/**
* Getter for WeeklyVolume.
* Maximum volume (quantity) allowed per week. Optional
* @return Returns the Double
*/
public Double getWeeklyVolume() {
return OptionalNullable.getFrom(weeklyVolume);
}
/**
* Setter for WeeklyVolume.
* Maximum volume (quantity) allowed per week. Optional
* @param weeklyVolume Value for Double
*/
@JsonSetter("WeeklyVolume")
public void setWeeklyVolume(Double weeklyVolume) {
this.weeklyVolume = OptionalNullable.of(weeklyVolume);
}
/**
* UnSetter for WeeklyVolume.
* Maximum volume (quantity) allowed per week. Optional
*/
public void unsetWeeklyVolume() {
weeklyVolume = null;
}
/**
* Internal Getter for MonthlyVolume.
* Maximum volume (quantity) allowed per month. Optional
* @return Returns the Internal Double
*/
@JsonGetter("MonthlyVolume")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetMonthlyVolume() {
return this.monthlyVolume;
}
/**
* Getter for MonthlyVolume.
* Maximum volume (quantity) allowed per month. Optional
* @return Returns the Double
*/
public Double getMonthlyVolume() {
return OptionalNullable.getFrom(monthlyVolume);
}
/**
* Setter for MonthlyVolume.
* Maximum volume (quantity) allowed per month. Optional
* @param monthlyVolume Value for Double
*/
@JsonSetter("MonthlyVolume")
public void setMonthlyVolume(Double monthlyVolume) {
this.monthlyVolume = OptionalNullable.of(monthlyVolume);
}
/**
* UnSetter for MonthlyVolume.
* Maximum volume (quantity) allowed per month. Optional
*/
public void unsetMonthlyVolume() {
monthlyVolume = null;
}
/**
* Getter for PerTransactionVolume.
* Maximum volume (quantity) allowed per transaction. Optional
* @return Returns the Double
*/
@JsonGetter("PerTransactionVolume")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Double getPerTransactionVolume() {
return perTransactionVolume;
}
/**
* Setter for PerTransactionVolume.
* Maximum volume (quantity) allowed per transaction. Optional
* @param perTransactionVolume Value for Double
*/
@JsonSetter("PerTransactionVolume")
public void setPerTransactionVolume(Double perTransactionVolume) {
this.perTransactionVolume = perTransactionVolume;
}
/**
* Internal Getter for AnnualVolume.
* Maximum volume (quantity) allowed per annum. Optional
* @return Returns the Internal Double
*/
@JsonGetter("AnnualVolume")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetAnnualVolume() {
return this.annualVolume;
}
/**
* Getter for AnnualVolume.
* Maximum volume (quantity) allowed per annum. Optional
* @return Returns the Double
*/
public Double getAnnualVolume() {
return OptionalNullable.getFrom(annualVolume);
}
/**
* Setter for AnnualVolume.
* Maximum volume (quantity) allowed per annum. Optional
* @param annualVolume Value for Double
*/
@JsonSetter("AnnualVolume")
public void setAnnualVolume(Double annualVolume) {
this.annualVolume = OptionalNullable.of(annualVolume);
}
/**
* UnSetter for AnnualVolume.
* Maximum volume (quantity) allowed per annum. Optional
*/
public void unsetAnnualVolume() {
annualVolume = null;
}
/**
* Getter for LifeTimeVolume.
* Maximum volume (quantity) allowed in card’s life time. Optional
* @return Returns the Double
*/
@JsonGetter("LifeTimeVolume")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Double getLifeTimeVolume() {
return lifeTimeVolume;
}
/**
* Setter for LifeTimeVolume.
* Maximum volume (quantity) allowed in card’s life time. Optional
* @param lifeTimeVolume Value for Double
*/
@JsonSetter("LifeTimeVolume")
public void setLifeTimeVolume(Double lifeTimeVolume) {
this.lifeTimeVolume = lifeTimeVolume;
}
/**
* Internal Getter for DailyTransactionCount.
* Maximum number of transactions allowed per day. Optional
* @return Returns the Internal Double
*/
@JsonGetter("DailyTransactionCount")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetDailyTransactionCount() {
return this.dailyTransactionCount;
}
/**
* Getter for DailyTransactionCount.
* Maximum number of transactions allowed per day. Optional
* @return Returns the Double
*/
public Double getDailyTransactionCount() {
return OptionalNullable.getFrom(dailyTransactionCount);
}
/**
* Setter for DailyTransactionCount.
* Maximum number of transactions allowed per day. Optional
* @param dailyTransactionCount Value for Double
*/
@JsonSetter("DailyTransactionCount")
public void setDailyTransactionCount(Double dailyTransactionCount) {
this.dailyTransactionCount = OptionalNullable.of(dailyTransactionCount);
}
/**
* UnSetter for DailyTransactionCount.
* Maximum number of transactions allowed per day. Optional
*/
public void unsetDailyTransactionCount() {
dailyTransactionCount = null;
}
/**
* Internal Getter for WeeklyTransactionCount.
* Maximum number of transactions allowed per week. Optional
* @return Returns the Internal Double
*/
@JsonGetter("WeeklyTransactionCount")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetWeeklyTransactionCount() {
return this.weeklyTransactionCount;
}
/**
* Getter for WeeklyTransactionCount.
* Maximum number of transactions allowed per week. Optional
* @return Returns the Double
*/
public Double getWeeklyTransactionCount() {
return OptionalNullable.getFrom(weeklyTransactionCount);
}
/**
* Setter for WeeklyTransactionCount.
* Maximum number of transactions allowed per week. Optional
* @param weeklyTransactionCount Value for Double
*/
@JsonSetter("WeeklyTransactionCount")
public void setWeeklyTransactionCount(Double weeklyTransactionCount) {
this.weeklyTransactionCount = OptionalNullable.of(weeklyTransactionCount);
}
/**
* UnSetter for WeeklyTransactionCount.
* Maximum number of transactions allowed per week. Optional
*/
public void unsetWeeklyTransactionCount() {
weeklyTransactionCount = null;
}
/**
* Internal Getter for MonthlyTransactionCount.
* Maximum number of transactions allowed per month. Optional.
* @return Returns the Internal Double
*/
@JsonGetter("MonthlyTransactionCount")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetMonthlyTransactionCount() {
return this.monthlyTransactionCount;
}
/**
* Getter for MonthlyTransactionCount.
* Maximum number of transactions allowed per month. Optional.
* @return Returns the Double
*/
public Double getMonthlyTransactionCount() {
return OptionalNullable.getFrom(monthlyTransactionCount);
}
/**
* Setter for MonthlyTransactionCount.
* Maximum number of transactions allowed per month. Optional.
* @param monthlyTransactionCount Value for Double
*/
@JsonSetter("MonthlyTransactionCount")
public void setMonthlyTransactionCount(Double monthlyTransactionCount) {
this.monthlyTransactionCount = OptionalNullable.of(monthlyTransactionCount);
}
/**
* UnSetter for MonthlyTransactionCount.
* Maximum number of transactions allowed per month. Optional.
*/
public void unsetMonthlyTransactionCount() {
monthlyTransactionCount = null;
}
/**
* Internal Getter for AnnualTransactionCount.
* Maximum number of transactions allowed per annum.
* @return Returns the Internal Double
*/
@JsonGetter("AnnualTransactionCount")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetAnnualTransactionCount() {
return this.annualTransactionCount;
}
/**
* Getter for AnnualTransactionCount.
* Maximum number of transactions allowed per annum.
* @return Returns the Double
*/
public Double getAnnualTransactionCount() {
return OptionalNullable.getFrom(annualTransactionCount);
}
/**
* Setter for AnnualTransactionCount.
* Maximum number of transactions allowed per annum.
* @param annualTransactionCount Value for Double
*/
@JsonSetter("AnnualTransactionCount")
public void setAnnualTransactionCount(Double annualTransactionCount) {
this.annualTransactionCount = OptionalNullable.of(annualTransactionCount);
}
/**
* UnSetter for AnnualTransactionCount.
* Maximum number of transactions allowed per annum.
*/
public void unsetAnnualTransactionCount() {
annualTransactionCount = null;
}
/**
* Internal Getter for LifeTimeTransactionCount.
* Maximum number of transactions allowed in card’s lifetime. Optional
* @return Returns the Internal Double
*/
@JsonGetter("LifeTimeTransactionCount")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = OptionalNullable.Serializer.class)
protected OptionalNullable internalGetLifeTimeTransactionCount() {
return this.lifeTimeTransactionCount;
}
/**
* Getter for LifeTimeTransactionCount.
* Maximum number of transactions allowed in card’s lifetime. Optional
* @return Returns the Double
*/
public Double getLifeTimeTransactionCount() {
return OptionalNullable.getFrom(lifeTimeTransactionCount);
}
/**
* Setter for LifeTimeTransactionCount.
* Maximum number of transactions allowed in card’s lifetime. Optional
* @param lifeTimeTransactionCount Value for Double
*/
@JsonSetter("LifeTimeTransactionCount")
public void setLifeTimeTransactionCount(Double lifeTimeTransactionCount) {
this.lifeTimeTransactionCount = OptionalNullable.of(lifeTimeTransactionCount);
}
/**
* UnSetter for LifeTimeTransactionCount.
* Maximum number of transactions allowed in card’s lifetime. Optional
*/
public void unsetLifeTimeTransactionCount() {
lifeTimeTransactionCount = null;
}
/**
* Converts this UsageRestrictionsCard into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "UsageRestrictionsCard [" + "dailySpend=" + dailySpend + ", weeklySpend="
+ weeklySpend + ", monthlySpend=" + monthlySpend + ", perTransactionSpend="
+ perTransactionSpend + ", annualSpend=" + annualSpend + ", lifeTimeSpend="
+ lifeTimeSpend + ", dailyVolume=" + dailyVolume + ", weeklyVolume=" + weeklyVolume
+ ", monthlyVolume=" + monthlyVolume + ", perTransactionVolume="
+ perTransactionVolume + ", annualVolume=" + annualVolume + ", lifeTimeVolume="
+ lifeTimeVolume + ", dailyTransactionCount=" + dailyTransactionCount
+ ", weeklyTransactionCount=" + weeklyTransactionCount
+ ", monthlyTransactionCount=" + monthlyTransactionCount
+ ", annualTransactionCount=" + annualTransactionCount
+ ", lifeTimeTransactionCount=" + lifeTimeTransactionCount + "]";
}
/**
* Builds a new {@link UsageRestrictionsCard.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link UsageRestrictionsCard.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.perTransactionVolume(getPerTransactionVolume())
.lifeTimeVolume(getLifeTimeVolume());
builder.dailySpend = internalGetDailySpend();
builder.weeklySpend = internalGetWeeklySpend();
builder.monthlySpend = internalGetMonthlySpend();
builder.perTransactionSpend = internalGetPerTransactionSpend();
builder.annualSpend = internalGetAnnualSpend();
builder.lifeTimeSpend = internalGetLifeTimeSpend();
builder.dailyVolume = internalGetDailyVolume();
builder.weeklyVolume = internalGetWeeklyVolume();
builder.monthlyVolume = internalGetMonthlyVolume();
builder.annualVolume = internalGetAnnualVolume();
builder.dailyTransactionCount = internalGetDailyTransactionCount();
builder.weeklyTransactionCount = internalGetWeeklyTransactionCount();
builder.monthlyTransactionCount = internalGetMonthlyTransactionCount();
builder.annualTransactionCount = internalGetAnnualTransactionCount();
builder.lifeTimeTransactionCount = internalGetLifeTimeTransactionCount();
return builder;
}
/**
* Class to build instances of {@link UsageRestrictionsCard}.
*/
public static class Builder {
private OptionalNullable dailySpend;
private OptionalNullable weeklySpend;
private OptionalNullable monthlySpend;
private OptionalNullable perTransactionSpend;
private OptionalNullable annualSpend;
private OptionalNullable lifeTimeSpend;
private OptionalNullable dailyVolume;
private OptionalNullable weeklyVolume;
private OptionalNullable monthlyVolume;
private Double perTransactionVolume;
private OptionalNullable annualVolume;
private Double lifeTimeVolume;
private OptionalNullable dailyTransactionCount;
private OptionalNullable weeklyTransactionCount;
private OptionalNullable monthlyTransactionCount;
private OptionalNullable annualTransactionCount;
private OptionalNullable lifeTimeTransactionCount;
/**
* Setter for dailySpend.
* @param dailySpend Double value for dailySpend.
* @return Builder
*/
public Builder dailySpend(Double dailySpend) {
this.dailySpend = OptionalNullable.of(dailySpend);
return this;
}
/**
* UnSetter for dailySpend.
* @return Builder
*/
public Builder unsetDailySpend() {
dailySpend = null;
return this;
}
/**
* Setter for weeklySpend.
* @param weeklySpend Double value for weeklySpend.
* @return Builder
*/
public Builder weeklySpend(Double weeklySpend) {
this.weeklySpend = OptionalNullable.of(weeklySpend);
return this;
}
/**
* UnSetter for weeklySpend.
* @return Builder
*/
public Builder unsetWeeklySpend() {
weeklySpend = null;
return this;
}
/**
* Setter for monthlySpend.
* @param monthlySpend Double value for monthlySpend.
* @return Builder
*/
public Builder monthlySpend(Double monthlySpend) {
this.monthlySpend = OptionalNullable.of(monthlySpend);
return this;
}
/**
* UnSetter for monthlySpend.
* @return Builder
*/
public Builder unsetMonthlySpend() {
monthlySpend = null;
return this;
}
/**
* Setter for perTransactionSpend.
* @param perTransactionSpend Double value for perTransactionSpend.
* @return Builder
*/
public Builder perTransactionSpend(Double perTransactionSpend) {
this.perTransactionSpend = OptionalNullable.of(perTransactionSpend);
return this;
}
/**
* UnSetter for perTransactionSpend.
* @return Builder
*/
public Builder unsetPerTransactionSpend() {
perTransactionSpend = null;
return this;
}
/**
* Setter for annualSpend.
* @param annualSpend Double value for annualSpend.
* @return Builder
*/
public Builder annualSpend(Double annualSpend) {
this.annualSpend = OptionalNullable.of(annualSpend);
return this;
}
/**
* UnSetter for annualSpend.
* @return Builder
*/
public Builder unsetAnnualSpend() {
annualSpend = null;
return this;
}
/**
* Setter for lifeTimeSpend.
* @param lifeTimeSpend Double value for lifeTimeSpend.
* @return Builder
*/
public Builder lifeTimeSpend(Double lifeTimeSpend) {
this.lifeTimeSpend = OptionalNullable.of(lifeTimeSpend);
return this;
}
/**
* UnSetter for lifeTimeSpend.
* @return Builder
*/
public Builder unsetLifeTimeSpend() {
lifeTimeSpend = null;
return this;
}
/**
* Setter for dailyVolume.
* @param dailyVolume Double value for dailyVolume.
* @return Builder
*/
public Builder dailyVolume(Double dailyVolume) {
this.dailyVolume = OptionalNullable.of(dailyVolume);
return this;
}
/**
* UnSetter for dailyVolume.
* @return Builder
*/
public Builder unsetDailyVolume() {
dailyVolume = null;
return this;
}
/**
* Setter for weeklyVolume.
* @param weeklyVolume Double value for weeklyVolume.
* @return Builder
*/
public Builder weeklyVolume(Double weeklyVolume) {
this.weeklyVolume = OptionalNullable.of(weeklyVolume);
return this;
}
/**
* UnSetter for weeklyVolume.
* @return Builder
*/
public Builder unsetWeeklyVolume() {
weeklyVolume = null;
return this;
}
/**
* Setter for monthlyVolume.
* @param monthlyVolume Double value for monthlyVolume.
* @return Builder
*/
public Builder monthlyVolume(Double monthlyVolume) {
this.monthlyVolume = OptionalNullable.of(monthlyVolume);
return this;
}
/**
* UnSetter for monthlyVolume.
* @return Builder
*/
public Builder unsetMonthlyVolume() {
monthlyVolume = null;
return this;
}
/**
* Setter for perTransactionVolume.
* @param perTransactionVolume Double value for perTransactionVolume.
* @return Builder
*/
public Builder perTransactionVolume(Double perTransactionVolume) {
this.perTransactionVolume = perTransactionVolume;
return this;
}
/**
* Setter for annualVolume.
* @param annualVolume Double value for annualVolume.
* @return Builder
*/
public Builder annualVolume(Double annualVolume) {
this.annualVolume = OptionalNullable.of(annualVolume);
return this;
}
/**
* UnSetter for annualVolume.
* @return Builder
*/
public Builder unsetAnnualVolume() {
annualVolume = null;
return this;
}
/**
* Setter for lifeTimeVolume.
* @param lifeTimeVolume Double value for lifeTimeVolume.
* @return Builder
*/
public Builder lifeTimeVolume(Double lifeTimeVolume) {
this.lifeTimeVolume = lifeTimeVolume;
return this;
}
/**
* Setter for dailyTransactionCount.
* @param dailyTransactionCount Double value for dailyTransactionCount.
* @return Builder
*/
public Builder dailyTransactionCount(Double dailyTransactionCount) {
this.dailyTransactionCount = OptionalNullable.of(dailyTransactionCount);
return this;
}
/**
* UnSetter for dailyTransactionCount.
* @return Builder
*/
public Builder unsetDailyTransactionCount() {
dailyTransactionCount = null;
return this;
}
/**
* Setter for weeklyTransactionCount.
* @param weeklyTransactionCount Double value for weeklyTransactionCount.
* @return Builder
*/
public Builder weeklyTransactionCount(Double weeklyTransactionCount) {
this.weeklyTransactionCount = OptionalNullable.of(weeklyTransactionCount);
return this;
}
/**
* UnSetter for weeklyTransactionCount.
* @return Builder
*/
public Builder unsetWeeklyTransactionCount() {
weeklyTransactionCount = null;
return this;
}
/**
* Setter for monthlyTransactionCount.
* @param monthlyTransactionCount Double value for monthlyTransactionCount.
* @return Builder
*/
public Builder monthlyTransactionCount(Double monthlyTransactionCount) {
this.monthlyTransactionCount = OptionalNullable.of(monthlyTransactionCount);
return this;
}
/**
* UnSetter for monthlyTransactionCount.
* @return Builder
*/
public Builder unsetMonthlyTransactionCount() {
monthlyTransactionCount = null;
return this;
}
/**
* Setter for annualTransactionCount.
* @param annualTransactionCount Double value for annualTransactionCount.
* @return Builder
*/
public Builder annualTransactionCount(Double annualTransactionCount) {
this.annualTransactionCount = OptionalNullable.of(annualTransactionCount);
return this;
}
/**
* UnSetter for annualTransactionCount.
* @return Builder
*/
public Builder unsetAnnualTransactionCount() {
annualTransactionCount = null;
return this;
}
/**
* Setter for lifeTimeTransactionCount.
* @param lifeTimeTransactionCount Double value for lifeTimeTransactionCount.
* @return Builder
*/
public Builder lifeTimeTransactionCount(Double lifeTimeTransactionCount) {
this.lifeTimeTransactionCount = OptionalNullable.of(lifeTimeTransactionCount);
return this;
}
/**
* UnSetter for lifeTimeTransactionCount.
* @return Builder
*/
public Builder unsetLifeTimeTransactionCount() {
lifeTimeTransactionCount = null;
return this;
}
/**
* Builds a new {@link UsageRestrictionsCard} object using the set fields.
* @return {@link UsageRestrictionsCard}
*/
public UsageRestrictionsCard build() {
return new UsageRestrictionsCard(dailySpend, weeklySpend, monthlySpend,
perTransactionSpend, annualSpend, lifeTimeSpend, dailyVolume, weeklyVolume,
monthlyVolume, perTransactionVolume, annualVolume, lifeTimeVolume,
dailyTransactionCount, weeklyTransactionCount, monthlyTransactionCount,
annualTransactionCount, lifeTimeTransactionCount);
}
}
}