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

Added missing field id for TokenQrRequestIdeal. (bunq/sdk_java#65) #67

Merged
merged 2 commits into from
Jan 3, 2018
Merged
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
Expand Up @@ -46,6 +46,13 @@ public class TokenQrRequestIdeal extends BunqModel {
*/
private static final String OBJECT_TYPE = "TokenQrRequestIdeal";

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

/**
* The timestamp of when the RequestResponse was responded to.
*/
Expand Down Expand Up @@ -204,6 +211,17 @@ public static BunqResponse<TokenQrRequestIdeal> create(ApiContext apiContext, Ma
return fromJson(TokenQrRequestIdeal.class, responseRaw, OBJECT_TYPE);
}

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

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

/**
* The timestamp of when the RequestResponse was responded to.
*/
Expand Down Expand Up @@ -430,6 +448,10 @@ public void setEligibleWhitelistId(Integer eligibleWhitelistId) {
/**
*/
public boolean isAllFieldNull() {
if (this.id != null) {
return false;
}

if (this.timeResponded != null) {
return false;
}
Expand Down