com.shell.apitest.models.AutoRenewCardRequest 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 java.util.List;
/**
* This is a model class for AutoRenewCardRequest type.
*/
public class AutoRenewCardRequest {
private Integer colCoId;
private Integer colCoCode;
private String payerNumber;
private Integer payerId;
private List autoRenewCards;
/**
* Default constructor.
*/
public AutoRenewCardRequest() {
}
/**
* Initialization constructor.
* @param colCoId Integer value for colCoId.
* @param colCoCode Integer value for colCoCode.
* @param payerNumber String value for payerNumber.
* @param payerId Integer value for payerId.
* @param autoRenewCards List of AutoRenewCardRequestAutoRenewCardsItems value for
* autoRenewCards.
*/
public AutoRenewCardRequest(
Integer colCoId,
Integer colCoCode,
String payerNumber,
Integer payerId,
List autoRenewCards) {
this.colCoId = colCoId;
this.colCoCode = colCoCode;
this.payerNumber = payerNumber;
this.payerId = payerId;
this.autoRenewCards = autoRenewCards;
}
/**
* Getter for ColCoId.
* Collecting Company Id of the selected payer. Optional if ColCoCode is passed else Mandatory.
* Example: 1-Philippines 5-UK
* @return Returns the Integer
*/
@JsonGetter("ColCoId")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Integer getColCoId() {
return colCoId;
}
/**
* Setter for ColCoId.
* Collecting Company Id of the selected payer. Optional if ColCoCode is passed else Mandatory.
* Example: 1-Philippines 5-UK
* @param colCoId Value for Integer
*/
@JsonSetter("ColCoId")
public void setColCoId(Integer colCoId) {
this.colCoId = colCoId;
}
/**
* Getter for ColCoCode.
* Collecting Company Code (Shell Code) of the selected payer. Mandatory for serviced OUs such
* as Romania, Latvia, Lithuania, Estonia, Ukraine etc. It is optional for other countries if
* ColCoID is provided. Example: 86-Philippines 5-UK
* @return Returns the Integer
*/
@JsonGetter("ColCoCode")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Integer getColCoCode() {
return colCoCode;
}
/**
* Setter for ColCoCode.
* Collecting Company Code (Shell Code) of the selected payer. Mandatory for serviced OUs such
* as Romania, Latvia, Lithuania, Estonia, Ukraine etc. It is optional for other countries if
* ColCoID is provided. Example: 86-Philippines 5-UK
* @param colCoCode Value for Integer
*/
@JsonSetter("ColCoCode")
public void setColCoCode(Integer colCoCode) {
this.colCoCode = colCoCode;
}
/**
* Getter for PayerNumber.
* Payer Number (Ex: GB000000123) of the selected payer. Optional if PayerId is passed else
* Mandatory
* @return Returns the String
*/
@JsonGetter("PayerNumber")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getPayerNumber() {
return payerNumber;
}
/**
* Setter for PayerNumber.
* Payer Number (Ex: GB000000123) of the selected payer. Optional if PayerId is passed else
* Mandatory
* @param payerNumber Value for String
*/
@JsonSetter("PayerNumber")
public void setPayerNumber(String payerNumber) {
this.payerNumber = payerNumber;
}
/**
* Getter for PayerId.
* Payer Id of the selected payer. Optional if PayerNumber is passed else Mandatory
* @return Returns the Integer
*/
@JsonGetter("PayerId")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Integer getPayerId() {
return payerId;
}
/**
* Setter for PayerId.
* Payer Id of the selected payer. Optional if PayerNumber is passed else Mandatory
* @param payerId Value for Integer
*/
@JsonSetter("PayerId")
public void setPayerId(Integer payerId) {
this.payerId = payerId;
}
/**
* Getter for AutoRenewCards.
* @return Returns the List of AutoRenewCardRequestAutoRenewCardsItems
*/
@JsonGetter("AutoRenewCards")
@JsonInclude(JsonInclude.Include.NON_NULL)
public List getAutoRenewCards() {
return autoRenewCards;
}
/**
* Setter for AutoRenewCards.
* @param autoRenewCards Value for List of AutoRenewCardRequestAutoRenewCardsItems
*/
@JsonSetter("AutoRenewCards")
public void setAutoRenewCards(List autoRenewCards) {
this.autoRenewCards = autoRenewCards;
}
/**
* Converts this AutoRenewCardRequest into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "AutoRenewCardRequest [" + "colCoId=" + colCoId + ", colCoCode=" + colCoCode
+ ", payerNumber=" + payerNumber + ", payerId=" + payerId + ", autoRenewCards="
+ autoRenewCards + "]";
}
/**
* Builds a new {@link AutoRenewCardRequest.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link AutoRenewCardRequest.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.colCoId(getColCoId())
.colCoCode(getColCoCode())
.payerNumber(getPayerNumber())
.payerId(getPayerId())
.autoRenewCards(getAutoRenewCards());
return builder;
}
/**
* Class to build instances of {@link AutoRenewCardRequest}.
*/
public static class Builder {
private Integer colCoId;
private Integer colCoCode;
private String payerNumber;
private Integer payerId;
private List autoRenewCards;
/**
* Setter for colCoId.
* @param colCoId Integer value for colCoId.
* @return Builder
*/
public Builder colCoId(Integer colCoId) {
this.colCoId = colCoId;
return this;
}
/**
* Setter for colCoCode.
* @param colCoCode Integer value for colCoCode.
* @return Builder
*/
public Builder colCoCode(Integer colCoCode) {
this.colCoCode = colCoCode;
return this;
}
/**
* Setter for payerNumber.
* @param payerNumber String value for payerNumber.
* @return Builder
*/
public Builder payerNumber(String payerNumber) {
this.payerNumber = payerNumber;
return this;
}
/**
* Setter for payerId.
* @param payerId Integer value for payerId.
* @return Builder
*/
public Builder payerId(Integer payerId) {
this.payerId = payerId;
return this;
}
/**
* Setter for autoRenewCards.
* @param autoRenewCards List of AutoRenewCardRequestAutoRenewCardsItems value for
* autoRenewCards.
* @return Builder
*/
public Builder autoRenewCards(
List autoRenewCards) {
this.autoRenewCards = autoRenewCards;
return this;
}
/**
* Builds a new {@link AutoRenewCardRequest} object using the set fields.
* @return {@link AutoRenewCardRequest}
*/
public AutoRenewCardRequest build() {
return new AutoRenewCardRequest(colCoId, colCoCode, payerNumber, payerId,
autoRenewCards);
}
}
}