Skip to content

Commit

Permalink
feat: add missing account fields (#53)
Browse files Browse the repository at this point in the history
* chore: map holder type and credit card status

* chore: map automatically invested balance
  • Loading branch information
lucasrafagnin authored Oct 10, 2024
1 parent 501079a commit 641c679
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/ai/pluggy/client/response/BankData.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ public class BankData {

String transferNumber;
Double closingBalance;
Double automaticallyInvestedBalance;
}
18 changes: 18 additions & 0 deletions src/main/java/ai/pluggy/client/response/CreditCardStatus.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package ai.pluggy.client.response;

import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
public enum CreditCardStatus {
@SerializedName("ACTIVE")
ACTIVE("ACTIVE"),
@SerializedName("BLOCKED")
BLOCKED("BLOCKED"),
@SerializedName("CANCELLED")
CANCELLED("CANCELLED");

@Getter
private String value;
}
2 changes: 2 additions & 0 deletions src/main/java/ai/pluggy/client/response/CreditData.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ public class CreditData {
Double balanceForeignCurrency;
Double minimumPayment;
Double creditLimit;
HolderType holderType;
CreditCardStatus status;
}
16 changes: 16 additions & 0 deletions src/main/java/ai/pluggy/client/response/HolderType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package ai.pluggy.client.response;

import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
public enum HolderType {
@SerializedName("MAIN")
MAIN("MAIN"),
@SerializedName("ADDITIONAL")
ADDITIONAL("ADDITIONAL");

@Getter
private String value;
}

0 comments on commit 641c679

Please sign in to comment.