Skip to content
New issue

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

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

Already on GitHub? # to your account

Add request_id to topup endpoints #76

Merged
merged 2 commits into from
Oct 17, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ public class TopupWithCreditCardMdkToken extends BankRequest {
private Integer amount;
private String organizationCode;
private Boolean isCardholderNameSpecified;
private String requestId;

public TopupWithCreditCardMdkToken(String userId, String token, String accountId, int amount, String organizationCode) {
public TopupWithCreditCardMdkToken(String userId, String token, String accountId, Integer amount, String organizationCode) {
this.userId = userId;
this.token = token;
this.accountId = accountId;
Expand All @@ -30,6 +31,11 @@ public TopupWithCreditCardMdkToken isCardholderNameSpecified(Boolean cardholderN
return this;
}

public TopupWithCreditCardMdkToken requestId(String requestId) {
this.requestId = requestId;
return this;
}

@Override
protected final Request.Method method() {
return Request.Method.POST;
Expand Down Expand Up @@ -61,6 +67,9 @@ protected final Map<String, Object> parameters() {
if (isCardholderNameSpecified != null) {
put("is_cardholder_name_specified", isCardholderNameSpecified);
}
if (requestId != null) {
put("request_id", requestId);
}
}};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ public class TopupWithCreditCardMembership extends BankRequest {
private Integer amount;
private Boolean deleteCardIfAuthFail;
private String organizationCode;
private String requestId;

public TopupWithCreditCardMembership(String userId, String cardRegisteredAt, String accountId, int amount, String organizationCode) {
public TopupWithCreditCardMembership(String userId, String cardRegisteredAt, String accountId, Integer amount, String organizationCode) {
this.userId = userId;
this.cardRegisteredAt = cardRegisteredAt;
this.accountId = accountId;
Expand All @@ -30,6 +31,11 @@ public TopupWithCreditCardMembership deleteCardIfAuthFail(Boolean deleteCardIfAu
return this;
}

public TopupWithCreditCardMembership requestId(String requestId) {
this.requestId = requestId;
return this;
}

@Override
protected final Request.Method method() {
return Request.Method.POST;
Expand Down Expand Up @@ -61,6 +67,9 @@ protected final Map<String, Object> parameters() {
if (organizationCode != null) {
put("organization_code", organizationCode);
}
if (requestId != null) {
put("request_id", requestId);
}
}};
}

Expand Down