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

Feature/add missing cvc fields #30 #31

Merged
merged 2 commits into from
Nov 6, 2017
Merged
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
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Steps to reproduce:
1.

## What should happen:
1.

## What happens:
1.

## Logs
- Logs

## Extra info:
- Tested on

Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,27 @@ public class CardGeneratedCvc2 extends BunqModel {
*/
private static final String OBJECT_TYPE = "CardGeneratedCvc2";

/**
* The id of the cvc code.
*/
@Expose
@SerializedName("id")
private Integer id;

/**
* The timestamp of the cvc code's creation.
*/
@Expose
@SerializedName("created")
private String created;

/**
* The timestamp of the cvc code's last update.
*/
@Expose
@SerializedName("updated")
private String updated;

/**
* The cvc2 code.
*/
Expand Down Expand Up @@ -102,6 +123,39 @@ public static BunqResponse<List<CardGeneratedCvc2>> list(ApiContext apiContext,
return fromJsonList(CardGeneratedCvc2.class, responseRaw, OBJECT_TYPE);
}

/**
* The id of the cvc code.
*/
public Integer getId() {
return this.id;
}

public void setId(Integer id) {
this.id = id;
}

/**
* The timestamp of the cvc code's creation.
*/
public String getCreated() {
return this.created;
}

public void setCreated(String created) {
this.created = created;
}

/**
* The timestamp of the cvc code's last update.
*/
public String getUpdated() {
return this.updated;
}

public void setUpdated(String updated) {
this.updated = updated;
}

/**
* The cvc2 code.
*/
Expand Down