Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented @Getter/@Setter #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,40 +1,15 @@
package org.mifos.connector.common.gsma.dto;

import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class AccessTokenDTO {

private String access_token;
private int expires_in;

public AccessTokenDTO() {

}

@Override
public String toString() {
return "AccessTokenDTO{" +
"access_token='" + access_token + '\'' +
", expires_in=" + expires_in +
'}';
}

public String getAccess_token() {
return access_token;
}

public void setAccess_token(String access_token) {
this.access_token = access_token;
}

public int getExpires_in() {
return expires_in;
}

public void setExpires_in(int expires_in) {
this.expires_in = expires_in;
}

public AccessTokenDTO(String access_token, int expires_in) {
this.access_token = access_token;
this.expires_in = expires_in;
}
}
Original file line number Diff line number Diff line change
@@ -1,70 +1,17 @@
package org.mifos.connector.common.gsma.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class AccountBalanceResponseDTO {
private String currentBalance;
private String availableBalance;
private String reservedBalance;
private String unclearedBalance;
private String currency;
private String accountStatus;

public String getCurrentBalance() {
return currentBalance;
}

public void setCurrentBalance(String currentBalance) {
this.currentBalance = currentBalance;
}

public String getAvailableBalance() {
return availableBalance;
}

public void setAvailableBalance(String availableBalance) {
this.availableBalance = availableBalance;
}

public String getReservedBalance() {
return reservedBalance;
}

public void setReservedBalance(String reservedBalance) {
this.reservedBalance = reservedBalance;
}

public String getUnclearedBalance() {
return unclearedBalance;
}

public void setUnclearedBalance(String unclearedBalance) {
this.unclearedBalance = unclearedBalance;
}

public String getCurrency() {
return currency;
}

public void setCurrency(String currency) {
this.currency = currency;
}

public String getAccountStatus() {
return accountStatus;
}

public void setAccountStatus(String accountStatus) {
this.accountStatus = accountStatus;
}

@Override
public String toString() {
return "AccountBalanceResponseDTO{" +
"currentBalance='" + currentBalance + '\'' +
", availableBalance='" + availableBalance + '\'' +
", reservedBalance='" + reservedBalance + '\'' +
", unclearedBalance='" + unclearedBalance + '\'' +
", currency='" + currency + '\'' +
", accountStatus='" + accountStatus + '\'' +
'}';
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package org.mifos.connector.common.gsma.dto;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class AccountNameResponseDTO {

private Name name;

public Name getName() {
return name;
}

public void setName(Name name) {
this.name = name;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,15 @@
}
*/
//Refactor to use interoperability APIs instead.

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class AccountStatus {

String status;
String subStatus;
String lei;

public String getStatus() {
return status;
}

public void setStatus(String status) {
this.status = status;
}

public String getSubStatus() {
return subStatus;
}

public void setSubStatus(String subStatus) {
this.subStatus = subStatus;
}

public String getLei() {
return lei;
}

public void setLei(String lei) {
this.lei = lei;
}
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
package org.mifos.connector.common.gsma.dto;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class AccountStatusRequest {
public String identifierType;
public String identifier;

public String getIdentifierType() {
return identifierType;
}

public void setIdentifierType(String identifierType) {
this.identifierType = identifierType;
}

public String getIdentifier() {
return identifier;
}

public void setIdentifier(String identifier) {
this.identifier = identifier;
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package org.mifos.connector.common.gsma.dto;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class AccountStatusResponseDTO {

public String accountStatus;

public String getAccountStatus() {
return accountStatus;
}

public void setAccountStatus(String accountStatus) {
this.accountStatus = accountStatus;
}
}
Original file line number Diff line number Diff line change
@@ -1,32 +1,16 @@
package org.mifos.connector.common.gsma.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class AuthErrorDTO {

private String errorCode;
private String errorMessage;

public AuthErrorDTO(){

}

public AuthErrorDTO(String errorCode, String errorMessage) {
this.errorCode = errorCode;
this.errorMessage = errorMessage;
}

public String getErrorCode() {
return errorCode;
}

public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}

public String getErrorMessage() {
return errorMessage;
}

public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
}
Loading