com.shell.apitest.models.BudleDetailsRequest 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;
/**
* This is a model class for BudleDetailsRequest type.
*/
public class BudleDetailsRequest {
private Integer colCoId;
private Integer colCoCode;
private String payerId;
private String payerNumber;
private Integer accountId;
private String accountNumber;
private String bundleId;
/**
* Default constructor.
*/
public BudleDetailsRequest() {
}
/**
* Initialization constructor.
* @param colCoId Integer value for colCoId.
* @param colCoCode Integer value for colCoCode.
* @param payerId String value for payerId.
* @param payerNumber String value for payerNumber.
* @param accountId Integer value for accountId.
* @param accountNumber String value for accountNumber.
* @param bundleId String value for bundleId.
*/
public BudleDetailsRequest(
Integer colCoId,
Integer colCoCode,
String payerId,
String payerNumber,
Integer accountId,
String accountNumber,
String bundleId) {
this.colCoId = colCoId;
this.colCoCode = colCoCode;
this.payerId = payerId;
this.payerNumber = payerNumber;
this.accountId = accountId;
this.accountNumber = accountNumber;
this.bundleId = bundleId;
}
/**
* Getter for ColCoId.
* Collecting Company Id of the selected payer. Optional if ColCoCode is passed else Mandatory.
* Example: 1 for Philippines 5 for 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 for Philippines 5 for 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 for Philippines 5 for 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 for Philippines 5 for UK
* @param colCoCode Value for Integer
*/
@JsonSetter("ColCoCode")
public void setColCoCode(Integer colCoCode) {
this.colCoCode = colCoCode;
}
/**
* Getter for PayerId.
* Payer Id of the selected payer. Optional if PayerNumber is passed else Mandatory Example:
* 123456
* @return Returns the String
*/
@JsonGetter("PayerId")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getPayerId() {
return payerId;
}
/**
* Setter for PayerId.
* Payer Id of the selected payer. Optional if PayerNumber is passed else Mandatory Example:
* 123456
* @param payerId Value for String
*/
@JsonSetter("PayerId")
public void setPayerId(String payerId) {
this.payerId = payerId;
}
/**
* Getter for PayerNumber.
* Payer Number of the selected payer. Optional if PayerId is passed else Mandatory Example:
* GB000000123
* @return Returns the String
*/
@JsonGetter("PayerNumber")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getPayerNumber() {
return payerNumber;
}
/**
* Setter for PayerNumber.
* Payer Number of the selected payer. Optional if PayerId is passed else Mandatory Example:
* GB000000123
* @param payerNumber Value for String
*/
@JsonSetter("PayerNumber")
public void setPayerNumber(String payerNumber) {
this.payerNumber = payerNumber;
}
/**
* Getter for AccountId.
* Account Id of the customer. Optional if Account Number is passed else Mandatory Example:
* 123456
* @return Returns the Integer
*/
@JsonGetter("AccountId")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Integer getAccountId() {
return accountId;
}
/**
* Setter for AccountId.
* Account Id of the customer. Optional if Account Number is passed else Mandatory Example:
* 123456
* @param accountId Value for Integer
*/
@JsonSetter("AccountId")
public void setAccountId(Integer accountId) {
this.accountId = accountId;
}
/**
* Getter for AccountNumber.
* Account Number of the customer. Optional if Account Id is passed else Mandatory Example:
* GB000000123
* @return Returns the String
*/
@JsonGetter("AccountNumber")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getAccountNumber() {
return accountNumber;
}
/**
* Setter for AccountNumber.
* Account Number of the customer. Optional if Account Id is passed else Mandatory Example:
* GB000000123
* @param accountNumber Value for String
*/
@JsonSetter("AccountNumber")
public void setAccountNumber(String accountNumber) {
this.accountNumber = accountNumber;
}
/**
* Getter for BundleId.
* Bundle Id associated with account Mandatory. Example: 835662721
* @return Returns the String
*/
@JsonGetter("BundleId")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getBundleId() {
return bundleId;
}
/**
* Setter for BundleId.
* Bundle Id associated with account Mandatory. Example: 835662721
* @param bundleId Value for String
*/
@JsonSetter("BundleId")
public void setBundleId(String bundleId) {
this.bundleId = bundleId;
}
/**
* Converts this BudleDetailsRequest into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "BudleDetailsRequest [" + "colCoId=" + colCoId + ", colCoCode=" + colCoCode
+ ", payerId=" + payerId + ", payerNumber=" + payerNumber + ", accountId="
+ accountId + ", accountNumber=" + accountNumber + ", bundleId=" + bundleId + "]";
}
/**
* Builds a new {@link BudleDetailsRequest.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link BudleDetailsRequest.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.colCoId(getColCoId())
.colCoCode(getColCoCode())
.payerId(getPayerId())
.payerNumber(getPayerNumber())
.accountId(getAccountId())
.accountNumber(getAccountNumber())
.bundleId(getBundleId());
return builder;
}
/**
* Class to build instances of {@link BudleDetailsRequest}.
*/
public static class Builder {
private Integer colCoId;
private Integer colCoCode;
private String payerId;
private String payerNumber;
private Integer accountId;
private String accountNumber;
private String bundleId;
/**
* 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 payerId.
* @param payerId String value for payerId.
* @return Builder
*/
public Builder payerId(String payerId) {
this.payerId = payerId;
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 accountId.
* @param accountId Integer value for accountId.
* @return Builder
*/
public Builder accountId(Integer accountId) {
this.accountId = accountId;
return this;
}
/**
* Setter for accountNumber.
* @param accountNumber String value for accountNumber.
* @return Builder
*/
public Builder accountNumber(String accountNumber) {
this.accountNumber = accountNumber;
return this;
}
/**
* Setter for bundleId.
* @param bundleId String value for bundleId.
* @return Builder
*/
public Builder bundleId(String bundleId) {
this.bundleId = bundleId;
return this;
}
/**
* Builds a new {@link BudleDetailsRequest} object using the set fields.
* @return {@link BudleDetailsRequest}
*/
public BudleDetailsRequest build() {
return new BudleDetailsRequest(colCoId, colCoCode, payerId, payerNumber, accountId,
accountNumber, bundleId);
}
}
}