Skip to content
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
@@ -0,0 +1,73 @@
// DO NOT EDIT: File is generated by code generator.
package jp.pokepay.pokepaylib.BankAPI.autogen.requests;

import java.util.HashMap;
import java.util.Map;

import jp.pokepay.pokepaylib.BankAPI.BankRequest;
import jp.pokepay.pokepaylib.BankAPI.BankRequestError;
import jp.pokepay.pokepaylib.ProcessingError;
import jp.pokepay.pokepaylib.Request;
import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*;

public class CVSAuthorizeRequest extends BankRequest {
private String serviceOptionType;
private Integer amount;
private String name1;
private String name2;
private String tel;
private Integer topupQuotaId;
private Uuid accountId;

public CVSAuthorizeRequest(Uuid accountId, String serviceOptionType, int amount, String name1, String name2, String tel) {
this.accountId = accountId;
this.serviceOptionType = serviceOptionType;
this.amount = amount;
this.name1 = name1;
this.name2 = name2;
this.tel = tel;
}

public CVSAuthorizeRequest topupQuotaId(Integer topupQuotaId) {
this.topupQuotaId = topupQuotaId;
return this;
}

@Override
protected final Request.Method method() {
return Request.Method.POST;
}

@Override
public String path() {
return "/accounts" + "/" + this.accountId + "/cvs";
}

@Override
protected final Map<String, Object> parameters() {
return new HashMap<String, Object>() {{
if (serviceOptionType != null) {
put("service_option_type", serviceOptionType);
}
if (amount != null) {
put("amount", amount);
}
if (name1 != null) {
put("name1", name1);
}
if (name2 != null) {
put("name2", name2);
}
if (tel != null) {
put("tel", tel);
}
if (topupQuotaId != null) {
put("topup_quota_id", topupQuotaId);
}
}};
}

public final CVSAuthorization send(String accessToken) throws ProcessingError, BankRequestError {
return super.send(CVSAuthorization.class, accessToken);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// DO NOT EDIT: File is generated by code generator.
package jp.pokepay.pokepaylib.BankAPI.autogen.requests;

import java.util.HashMap;
import java.util.Map;

import jp.pokepay.pokepaylib.BankAPI.BankRequest;
import jp.pokepay.pokepaylib.BankAPI.BankRequestError;
import jp.pokepay.pokepaylib.ProcessingError;
import jp.pokepay.pokepaylib.Request;
import jp.pokepay.pokepaylib.Responses.NoContent;

public class CancelCVSAuthorization extends BankRequest {
private String accountId;
private String orderId;

public CancelCVSAuthorization(String accountId, String orderId) {
this.accountId = accountId;
this.orderId = orderId;
}

@Override
protected final Request.Method method() {
return Request.Method.DELETE;
}

@Override
public String path() {
return "/accounts" + "/" + this.accountId + "/cvs" + "/" + this.orderId;
}

@Override
protected final Map<String, Object> parameters() {
return new HashMap<String, Object>() {{
}};
}

public final NoContent send(String accessToken) throws ProcessingError, BankRequestError {
return super.send(NoContent.class, accessToken);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// DO NOT EDIT: File is generated by code generator.
package jp.pokepay.pokepaylib.BankAPI.autogen.requests;

import java.util.HashMap;
import java.util.Map;

import jp.pokepay.pokepaylib.BankAPI.BankRequest;
import jp.pokepay.pokepaylib.BankAPI.BankRequestError;
import jp.pokepay.pokepaylib.ProcessingError;
import jp.pokepay.pokepaylib.Request;
import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*;

public class CreateJihanpiTransaction extends BankRequest {
private String nfcTagId;
private String accountId;
private String requestId;
private String strategy;

public CreateJihanpiTransaction(String nfcTagId, String accountId) {
this.nfcTagId = nfcTagId;
this.accountId = accountId;
}

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

public CreateJihanpiTransaction strategy(String strategy) {
this.strategy = strategy;
return this;
}

@Override
protected final Request.Method method() {
return Request.Method.POST;
}

@Override
public String path() {
return "/jihanpi-transactions";
}

@Override
protected final Map<String, Object> parameters() {
return new HashMap<String, Object>() {{
if (nfcTagId != null) {
put("nfc_tag_id", nfcTagId);
}
if (accountId != null) {
put("account_id", accountId);
}
if (requestId != null) {
put("request_id", requestId);
}
if (strategy != null) {
put("strategy", strategy);
}
}};
}

public final JihanpiTransaction send(String accessToken) throws ProcessingError, BankRequestError {
return super.send(JihanpiTransaction.class, accessToken);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
// DO NOT EDIT: File is generated by code generator.
package jp.pokepay.pokepaylib.BankAPI.autogen.requests;

import java.util.HashMap;
import java.util.Map;

import jp.pokepay.pokepaylib.BankAPI.BankRequest;
import jp.pokepay.pokepaylib.BankAPI.BankRequestError;
import jp.pokepay.pokepaylib.ProcessingError;
import jp.pokepay.pokepaylib.Request;
import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*;

public class GetAccountTopupQuotas extends BankRequest {
private String accountId;
private String status;
private Boolean showExpiredForFixedPeriod;
private Boolean showStartedQuotas;
private Boolean isWithinApplicablePeriod;
private Boolean isUsableAmountLeft;

public GetAccountTopupQuotas(String accountId) {
this.accountId = accountId;
}

public GetAccountTopupQuotas status(String status) {
this.status = status;
return this;
}

public GetAccountTopupQuotas showExpiredForFixedPeriod(Boolean showExpiredForFixedPeriod) {
this.showExpiredForFixedPeriod = showExpiredForFixedPeriod;
return this;
}

public GetAccountTopupQuotas showStartedQuotas(Boolean showStartedQuotas) {
this.showStartedQuotas = showStartedQuotas;
return this;
}

public GetAccountTopupQuotas isWithinApplicablePeriod(Boolean withinApplicablePeriod) {
isWithinApplicablePeriod = withinApplicablePeriod;
return this;
}

public GetAccountTopupQuotas isUsableAmountLeft(Boolean usableAmountLeft) {
isUsableAmountLeft = usableAmountLeft;
return this;
}

@Override
protected final Request.Method method() {
return Request.Method.GET;
}

@Override
public String path() {
return "/accounts" + "/" + this.accountId + "/topup-quotas";
}

@Override
protected final Map<String, Object> parameters() {
return new HashMap<String, Object>() {{
if (status != null) {
put("status", status);
}
if (showExpiredForFixedPeriod != null) {
put("show_expired_for_fixed_period", showExpiredForFixedPeriod);
}
if (showStartedQuotas != null) {
put("show_started_quotas", showStartedQuotas);
}
if (isWithinApplicablePeriod != null) {
put("is_within_applicable_period", isWithinApplicablePeriod);
}
if (isUsableAmountLeft != null) {
put("is_usable_amount_left", isUsableAmountLeft);
}
}};
}

public final NIL send(String accessToken) throws ProcessingError, BankRequestError {
return super.send(NIL.class, accessToken);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// DO NOT EDIT: File is generated by code generator.
package jp.pokepay.pokepaylib.BankAPI.autogen.requests;

import java.util.HashMap;
import java.util.Map;

import jp.pokepay.pokepaylib.BankAPI.BankRequest;
import jp.pokepay.pokepaylib.BankAPI.BankRequestError;
import jp.pokepay.pokepaylib.ProcessingError;
import jp.pokepay.pokepaylib.Request;
import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*;

public class GetCVSAuthorization extends BankRequest {
private String accountId;
private String orderId;

public GetCVSAuthorization(String accountId, String orderId) {
this.accountId = accountId;
this.orderId = orderId;
}

@Override
protected final Request.Method method() {
return Request.Method.GET;
}

@Override
public String path() {
return "/accounts" + "/" + this.accountId + "/cvs" + "/" + this.orderId;
}

@Override
protected final Map<String, Object> parameters() {
return new HashMap<String, Object>() {{
}};
}

public final CVSAuthorization send(String accessToken) throws ProcessingError, BankRequestError {
return super.send(CVSAuthorization.class, accessToken);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// DO NOT EDIT: File is generated by code generator.
package jp.pokepay.pokepaylib.BankAPI.autogen.requests;

import java.util.HashMap;
import java.util.Map;

import jp.pokepay.pokepaylib.BankAPI.BankRequest;
import jp.pokepay.pokepaylib.BankAPI.BankRequestError;
import jp.pokepay.pokepaylib.ProcessingError;
import jp.pokepay.pokepaylib.Request;
import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*;

public class GetCVSAuthorizations extends BankRequest {
private Uuid accountId;
private String before;
private String after;
private Integer perPage;

public GetCVSAuthorizations(Uuid accountId) {
this.accountId = accountId;
}

public GetCVSAuthorizations before(String before) {
this.before = before;
return this;
}

public GetCVSAuthorizations after(String after) {
this.after = after;
return this;
}

public GetCVSAuthorizations perPage(Integer perPage) {
this.perPage = perPage;
return this;
}

@Override
protected final Request.Method method() {
return Request.Method.GET;
}

@Override
public String path() {
return "/accounts" + "/" + this.accountId + "/cvs";
}

@Override
protected final Map<String, Object> parameters() {
return new HashMap<String, Object>() {{
if (before != null) {
put("before", before);
}
if (after != null) {
put("after", after);
}
if (perPage != null) {
put("per_page", perPage);
}
}};
}

public final PaginatedCVSAuthorizations send(String accessToken) throws ProcessingError, BankRequestError {
return super.send(PaginatedCVSAuthorizations.class, accessToken);
}
}
Loading