diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/BankPayTopUp.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/BankPayTopUp.java new file mode 100644 index 0000000..4586736 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/BankPayTopUp.java @@ -0,0 +1,72 @@ +// 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 BankPayTopUp extends BankRequest { + private String accountId; + private String bankId; + private Integer amount; + private String requestId; + private Integer topupQuotaId; + private String userId; + + public BankPayTopUp(String userId, String accountId, String bankId, int amount) { + this.userId = userId; + this.accountId = accountId; + this.bankId = bankId; + this.amount = amount; + } + + public BankPayTopUp requestId(String requestId) { + this.requestId = requestId; + return this; + } + + public BankPayTopUp topupQuotaId(Integer topupQuotaId) { + this.topupQuotaId = topupQuotaId; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/users" + "/" + this.userId + "/banks" + "/topup"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (accountId != null) { + put("account_id", accountId); + } + if (bankId != null) { + put("bank_id", bankId); + } + if (amount != null) { + put("amount", amount); + } + if (requestId != null) { + put("request_id", requestId); + } + if (topupQuotaId != null) { + put("topup_quota_id", topupQuotaId); + } + }}; + } + + public final UserTransaction send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserTransaction.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateAccount.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateAccount.java new file mode 100644 index 0000000..99e98d8 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateAccount.java @@ -0,0 +1,60 @@ +// 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 CreateAccount extends BankRequest { + private String name; + private String privateMoneyId; + private String externalId; + + public CreateAccount(String privateMoneyId) { + this.privateMoneyId = privateMoneyId; + } + + public CreateAccount name(String name) { + this.name = name; + return this; + } + + public CreateAccount externalId(String externalId) { + this.externalId = externalId; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/accounts"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (name != null) { + put("name", name); + } + if (privateMoneyId != null) { + put("private_money_id", privateMoneyId); + } + if (externalId != null) { + put("external_id", externalId); + } + }}; + } + + public final AccountDetail send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(AccountDetail.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateAccountCpmToken.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateAccountCpmToken.java new file mode 100644 index 0000000..725af89 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateAccountCpmToken.java @@ -0,0 +1,102 @@ +// 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 CreateAccountCpmToken extends BankRequest { + private String[] scopes; + private Integer expiresIn; + private String metadata; + private Boolean keepAlive; + private Boolean isShortToken; + private String strategy; + private String couponId; + private String accountId; + + public CreateAccountCpmToken(String accountId) { + this.accountId = accountId; + } + + public CreateAccountCpmToken scopes(String[] scopes) { + this.scopes = scopes; + return this; + } + + public CreateAccountCpmToken expiresIn(Integer expiresIn) { + this.expiresIn = expiresIn; + return this; + } + + public CreateAccountCpmToken metadata(String metadata) { + this.metadata = metadata; + return this; + } + + public CreateAccountCpmToken keepAlive(Boolean keepAlive) { + this.keepAlive = keepAlive; + return this; + } + + public CreateAccountCpmToken isShortToken(Boolean shortToken) { + isShortToken = shortToken; + return this; + } + + public CreateAccountCpmToken strategy(String strategy) { + this.strategy = strategy; + return this; + } + + public CreateAccountCpmToken couponId(String couponId) { + this.couponId = couponId; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/accounts" + "/" + this.accountId + "/cpm"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (scopes != null) { + put("scopes", scopes); + } + if (expiresIn != null) { + put("expires_in", expiresIn); + } + if (metadata != null) { + put("metadata", metadata); + } + if (keepAlive != null) { + put("keep_alive", keepAlive); + } + if (isShortToken != null) { + put("is_short_token", isShortToken); + } + if (strategy != null) { + put("strategy", strategy); + } + if (couponId != null) { + put("coupon_id", couponId); + } + }}; + } + + public final CpmToken send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(CpmToken.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateBankPay.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateBankPay.java new file mode 100644 index 0000000..722256a --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateBankPay.java @@ -0,0 +1,58 @@ +// 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 CreateBankPay extends BankRequest { + private String privateMoneyId; + private String callbackUrl; + private String kana; + private String userId; + + public CreateBankPay(String userId, String privateMoneyId, String callbackUrl) { + this.userId = userId; + this.privateMoneyId = privateMoneyId; + this.callbackUrl = callbackUrl; + } + + public CreateBankPay kana(String kana) { + this.kana = kana; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/users" + "/" + this.userId + "/banks"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (privateMoneyId != null) { + put("private_money_id", privateMoneyId); + } + if (callbackUrl != null) { + put("callback_url", callbackUrl); + } + if (kana != null) { + put("kana", kana); + } + }}; + } + + public final BankPaySession send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(BankPaySession.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateBill.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateBill.java new file mode 100644 index 0000000..f9b060d --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateBill.java @@ -0,0 +1,119 @@ +// 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.Parameters.Product; +import jp.pokepay.pokepaylib.ProcessingError; +import jp.pokepay.pokepaylib.Request; +import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*; + +public class CreateBill extends BankRequest { + private Double amount; + private String accountId; + private String[] additionalAccountIds; + private String description; + private Boolean isOnetime; + private Double minAmount; + private Double maxAmount; + private Product[] products; + private String metadata; + + public CreateBill() { + } + + public CreateBill amount(Double amount) { + this.amount = amount; + return this; + } + + public CreateBill accountId(String accountId) { + this.accountId = accountId; + return this; + } + + public CreateBill additionalAccountIds(String[] additionalAccountIds) { + this.additionalAccountIds = additionalAccountIds; + return this; + } + + public CreateBill description(String description) { + this.description = description; + return this; + } + + public CreateBill isOnetime(Boolean onetime) { + isOnetime = onetime; + return this; + } + + public CreateBill minAmount(Double minAmount) { + this.minAmount = minAmount; + return this; + } + + public CreateBill maxAmount(Double maxAmount) { + this.maxAmount = maxAmount; + return this; + } + + public CreateBill products(Product[] products) { + this.products = products; + return this; + } + + public CreateBill metadata(String metadata) { + this.metadata = metadata; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/bills"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (amount != null) { + put("amount", amount); + } + if (accountId != null) { + put("account_id", accountId); + } + if (additionalAccountIds != null) { + put("additional_account_ids", additionalAccountIds); + } + if (description != null) { + put("description", description); + } + if (isOnetime != null) { + put("is_onetime", isOnetime); + } + if (minAmount != null) { + put("min_amount", minAmount); + } + if (maxAmount != null) { + put("max_amount", maxAmount); + } + if (products != null) { + put("products", products); + } + if (metadata != null) { + put("metadata", metadata); + } + }}; + } + + public final Bill send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(Bill.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCashtray.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCashtray.java new file mode 100644 index 0000000..7d7d872 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCashtray.java @@ -0,0 +1,79 @@ +// 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.Parameters.Product; +import jp.pokepay.pokepaylib.ProcessingError; +import jp.pokepay.pokepaylib.Request; +import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*; + +public class CreateCashtray extends BankRequest { + private Double amount; + private String description; + private Integer expiresIn; + private Product[] products; + private String metadata; + + public CreateCashtray(double amount) { + this.amount = amount; + } + + public CreateCashtray description(String description) { + this.description = description; + return this; + } + + public CreateCashtray expiresIn(Integer expiresIn) { + this.expiresIn = expiresIn; + return this; + } + + public CreateCashtray products(Product[] products) { + this.products = products; + return this; + } + + public CreateCashtray metadata(String metadata) { + this.metadata = metadata; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/cashtrays"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (amount != null) { + put("amount", amount); + } + if (description != null) { + put("description", description); + } + if (expiresIn != null) { + put("expires_in", expiresIn); + } + if (products != null) { + put("products", products); + } + if (metadata != null) { + put("metadata", metadata); + } + }}; + } + + public final Cashtray send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(Cashtray.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCheck.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCheck.java new file mode 100644 index 0000000..33abbe3 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCheck.java @@ -0,0 +1,136 @@ +// 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 CreateCheck extends BankRequest { + private Double amount; + private Double moneyAmount; + private Double pointAmount; + private String accountId; + private String description; + private Boolean isOnetime; + private Integer usageLimit; + private String expiresAt; + private String pointExpiresAt; + private Integer pointExpiresInDays; + private String metadata; + + public CreateCheck() { + } + + public CreateCheck amount(Double amount) { + this.amount = amount; + return this; + } + + public CreateCheck moneyAmount(Double moneyAmount) { + this.moneyAmount = moneyAmount; + return this; + } + + public CreateCheck pointAmount(Double pointAmount) { + this.pointAmount = pointAmount; + return this; + } + + public CreateCheck accountId(String accountId) { + this.accountId = accountId; + return this; + } + + public CreateCheck description(String description) { + this.description = description; + return this; + } + + public CreateCheck isOnetime(Boolean onetime) { + isOnetime = onetime; + return this; + } + + public CreateCheck usageLimit(Integer usageLimit) { + this.usageLimit = usageLimit; + return this; + } + + public CreateCheck expiresAt(String expiresAt) { + this.expiresAt = expiresAt; + return this; + } + + public CreateCheck pointExpiresAt(String pointExpiresAt) { + this.pointExpiresAt = pointExpiresAt; + return this; + } + + public CreateCheck pointExpiresInDays(Integer pointExpiresInDays) { + this.pointExpiresInDays = pointExpiresInDays; + return this; + } + + public CreateCheck metadata(String metadata) { + this.metadata = metadata; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/checks"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (amount != null) { + put("amount", amount); + } + if (moneyAmount != null) { + put("money_amount", moneyAmount); + } + if (pointAmount != null) { + put("point_amount", pointAmount); + } + if (accountId != null) { + put("account_id", accountId); + } + if (description != null) { + put("description", description); + } + if (isOnetime != null) { + put("is_onetime", isOnetime); + } + if (usageLimit != null) { + put("usage_limit", usageLimit); + } + if (expiresAt != null) { + put("expires_at", expiresAt); + } + if (pointExpiresAt != null) { + put("point_expires_at", pointExpiresAt); + } + if (pointExpiresInDays != null) { + put("point_expires_in_days", pointExpiresInDays); + } + if (metadata != null) { + put("metadata", metadata); + } + }}; + } + + public final Check send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(Check.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateBillTransaction.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateTransactionWithBill.java similarity index 83% rename from pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateBillTransaction.java rename to pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateTransactionWithBill.java index 297ce5d..d6efc42 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateBillTransaction.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateTransactionWithBill.java @@ -10,7 +10,7 @@ import jp.pokepay.pokepaylib.Request; import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*; -public class CreateBillTransaction extends BankRequest { +public class CreateTransactionWithBill extends BankRequest { private String requestId; private String billId; private String accountId; @@ -18,27 +18,27 @@ public class CreateBillTransaction extends BankRequest { private String couponId; private String strategy; - public CreateBillTransaction(String requestId, String billId) { + public CreateTransactionWithBill(String requestId, String billId) { this.requestId = requestId; this.billId = billId; } - public CreateBillTransaction accountId(String accountId) { + public CreateTransactionWithBill accountId(String accountId) { this.accountId = accountId; return this; } - public CreateBillTransaction amount(Double amount) { + public CreateTransactionWithBill amount(Double amount) { this.amount = amount; return this; } - public CreateBillTransaction couponId(String couponId) { + public CreateTransactionWithBill couponId(String couponId) { this.couponId = couponId; return this; } - public CreateBillTransaction strategy(String strategy) { + public CreateTransactionWithBill strategy(String strategy) { this.strategy = strategy; return this; } diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCashtrayTransaction.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateTransactionWithCashtray.java similarity index 82% rename from pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCashtrayTransaction.java rename to pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateTransactionWithCashtray.java index db796ae..a4551e3 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCashtrayTransaction.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateTransactionWithCashtray.java @@ -10,7 +10,7 @@ import jp.pokepay.pokepaylib.Request; import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*; -public class CreateCashtrayTransaction extends BankRequest { +public class CreateTransactionWithCashtray extends BankRequest { private String requestId; private String cashtrayId; private String accountId; @@ -18,27 +18,27 @@ public class CreateCashtrayTransaction extends BankRequest { private String strategy; private Integer topupQuotaId; - public CreateCashtrayTransaction(String requestId, String cashtrayId) { + public CreateTransactionWithCashtray(String requestId, String cashtrayId) { this.requestId = requestId; this.cashtrayId = cashtrayId; } - public CreateCashtrayTransaction accountId(String accountId) { + public CreateTransactionWithCashtray accountId(String accountId) { this.accountId = accountId; return this; } - public CreateCashtrayTransaction couponId(String couponId) { + public CreateTransactionWithCashtray couponId(String couponId) { this.couponId = couponId; return this; } - public CreateCashtrayTransaction strategy(String strategy) { + public CreateTransactionWithCashtray strategy(String strategy) { this.strategy = strategy; return this; } - public CreateCashtrayTransaction topupQuotaId(Integer topupQuotaId) { + public CreateTransactionWithCashtray topupQuotaId(Integer topupQuotaId) { this.topupQuotaId = topupQuotaId; return this; } diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCheckTransaction.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateTransactionWithCheck.java similarity index 83% rename from pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCheckTransaction.java rename to pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateTransactionWithCheck.java index fbe9c63..e877e87 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCheckTransaction.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateTransactionWithCheck.java @@ -10,27 +10,27 @@ import jp.pokepay.pokepaylib.Request; import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*; -public class CreateCheckTransaction extends BankRequest { +public class CreateTransactionWithCheck extends BankRequest { private String requestId; private String checkId; private String accountId; private Integer topupQuotaId; - public CreateCheckTransaction(String checkId) { + public CreateTransactionWithCheck(String checkId) { this.checkId = checkId; } - public CreateCheckTransaction requestId(String requestId) { + public CreateTransactionWithCheck requestId(String requestId) { this.requestId = requestId; return this; } - public CreateCheckTransaction accountId(String accountId) { + public CreateTransactionWithCheck accountId(String accountId) { this.accountId = accountId; return this; } - public CreateCheckTransaction topupQuotaId(Integer topupQuotaId) { + public CreateTransactionWithCheck topupQuotaId(Integer topupQuotaId) { this.topupQuotaId = topupQuotaId; return this; } diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCpmTransaction.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateTransactionWithCpm.java similarity index 76% rename from pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCpmTransaction.java rename to pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateTransactionWithCpm.java index 699368e..c4049df 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCpmTransaction.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateTransactionWithCpm.java @@ -11,7 +11,7 @@ import jp.pokepay.pokepaylib.Request; import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*; -public class CreateCpmTransaction extends BankRequest { +public class CreateTransactionWithCpm extends BankRequest { private String requestId; private String cpmToken; private String accountId; @@ -19,23 +19,23 @@ public class CreateCpmTransaction extends BankRequest { private Product[] products; private Integer topupQuotaId; - public CreateCpmTransaction(String requestId, String cpmToken, double amount) { + public CreateTransactionWithCpm(String requestId, String cpmToken, double amount) { this.requestId = requestId; this.cpmToken = cpmToken; this.amount = amount; } - public CreateCpmTransaction accountId(String accountId) { + public CreateTransactionWithCpm accountId(String accountId) { this.accountId = accountId; return this; } - public CreateCpmTransaction products(Product[] products) { + public CreateTransactionWithCpm products(Product[] products) { this.products = products; return this; } - public CreateCpmTransaction topupQuotaId(Integer topupQuotaId) { + public CreateTransactionWithCpm topupQuotaId(Integer topupQuotaId) { this.topupQuotaId = topupQuotaId; return this; } @@ -74,7 +74,7 @@ protected final Map parameters() { }}; } - public final UserTransactionWithFallback send(String accessToken) throws ProcessingError, BankRequestError { - return super.send(UserTransactionWithFallback.class, accessToken); + public final UserTransactionWithFallbackAndCustomerBalance send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserTransactionWithFallbackAndCustomerBalance.class, accessToken); } } diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreditWithCreditCardMembership.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreditWithCreditCardMembership.java new file mode 100644 index 0000000..7aee15c --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreditWithCreditCardMembership.java @@ -0,0 +1,68 @@ +// 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; + +public class CreditWithCreditCardMembership extends BankRequest { + private String userId; + private String cardRegisteredAt; + private String cardUuid; + private String organizationCode; + + public CreditWithCreditCardMembership(String userId) { + this.userId = userId; + } + + public CreditWithCreditCardMembership cardRegisteredAt(String cardRegisteredAt) { + this.cardRegisteredAt = cardRegisteredAt; + return this; + } + + public CreditWithCreditCardMembership cardUuid(String cardUuid) { + this.cardUuid = cardUuid; + return this; + } + + public CreditWithCreditCardMembership organizationCode(String organizationCode) { + this.organizationCode = organizationCode; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/veritrans" + "/card-authorize" + "/credit-with-membership"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (userId != null) { + put("user_id", userId); + } + if (cardRegisteredAt != null) { + put("card_registered_at", cardRegisteredAt); + } + if (cardUuid != null) { + put("card_uuid", cardUuid); + } + if (organizationCode != null) { + put("organization_code", organizationCode); + } + }}; + } + + public final String send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(String.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteBankPay.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteBankPay.java new file mode 100644 index 0000000..476875b --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteBankPay.java @@ -0,0 +1,44 @@ +// 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 DeleteBankPay extends BankRequest { + private String bankId; + private String userId; + + public DeleteBankPay(String userId, String bankId) { + this.userId = userId; + this.bankId = bankId; + } + + @Override + protected final Request.Method method() { + return Request.Method.DELETE; + } + + @Override + public String path() { + return "/users" + "/" + this.userId + "/banks"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (bankId != null) { + put("bank_id", bankId); + } + }}; + } + + public final NoContent send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(NoContent.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteBill.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteBill.java new file mode 100644 index 0000000..7abb815 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteBill.java @@ -0,0 +1,39 @@ +// 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 DeleteBill extends BankRequest { + private String billId; + + public DeleteBill(String billId) { + this.billId = billId; + } + + @Override + protected final Request.Method method() { + return Request.Method.DELETE; + } + + @Override + public String path() { + return "/bills" + "/" + this.billId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final NoContent send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(NoContent.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteCashtray.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteCashtray.java new file mode 100644 index 0000000..53f7cae --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteCashtray.java @@ -0,0 +1,39 @@ +// 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 DeleteCashtray extends BankRequest { + private String cashtrayId; + + public DeleteCashtray(String cashtrayId) { + this.cashtrayId = cashtrayId; + } + + @Override + protected final Request.Method method() { + return Request.Method.DELETE; + } + + @Override + public String path() { + return "/cashtrays" + "/" + this.cashtrayId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final NoContent send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(NoContent.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteCheck.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteCheck.java new file mode 100644 index 0000000..c23860d --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteCheck.java @@ -0,0 +1,39 @@ +// 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 DeleteCheck extends BankRequest { + private String checkId; + + public DeleteCheck(String checkId) { + this.checkId = checkId; + } + + @Override + protected final Request.Method method() { + return Request.Method.DELETE; + } + + @Override + public String path() { + return "/checks" + "/" + this.checkId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final NoContent send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(NoContent.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteUser.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteUser.java new file mode 100644 index 0000000..47346d7 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteUser.java @@ -0,0 +1,39 @@ +// 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 DeleteUser extends BankRequest { + private String userId; + + public DeleteUser(String userId) { + this.userId = userId; + } + + @Override + protected final Request.Method method() { + return Request.Method.DELETE; + } + + @Override + public String path() { + return "/users" + "/" + this.userId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final NoContent send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(NoContent.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccount.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccount.java new file mode 100644 index 0000000..72f408e --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccount.java @@ -0,0 +1,39 @@ +// 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 GetAccount extends BankRequest { + private String accountId; + + public GetAccount(String accountId) { + this.accountId = accountId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/accounts" + "/" + this.accountId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final AccountDetail send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(AccountDetail.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountBalances.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountBalances.java new file mode 100644 index 0000000..2045bf6 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountBalances.java @@ -0,0 +1,75 @@ +// 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 GetAccountBalances extends BankRequest { + private String accountId; + private String before; + private String after; + private Integer perPage; + private String expired; + + public GetAccountBalances(String accountId) { + this.accountId = accountId; + } + + public GetAccountBalances before(String before) { + this.before = before; + return this; + } + + public GetAccountBalances after(String after) { + this.after = after; + return this; + } + + public GetAccountBalances perPage(Integer perPage) { + this.perPage = perPage; + return this; + } + + public GetAccountBalances expired(String expired) { + this.expired = expired; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/accounts" + "/" + this.accountId + "/balances"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (before != null) { + put("before", before); + } + if (after != null) { + put("after", after); + } + if (perPage != null) { + put("per_page", perPage); + } + if (expired != null) { + put("expired", expired); + } + }}; + } + + public final PaginatedAccountBalances send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PaginatedAccountBalances.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountCampaignPointAmounts.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountCampaignPointAmounts.java new file mode 100644 index 0000000..7482d33 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountCampaignPointAmounts.java @@ -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 GetAccountCampaignPointAmounts extends BankRequest { + private String accountId; + private String campaignId; + + public GetAccountCampaignPointAmounts(String accountId, String campaignId) { + this.accountId = accountId; + this.campaignId = campaignId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/accounts" + "/" + this.accountId + "/campaigns" + "/" + this.campaignId + "/point-amounts"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final AccountCampaignPointAmounts send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(AccountCampaignPointAmounts.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountCouponDetail.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountCouponDetail.java new file mode 100644 index 0000000..bb7a81a --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountCouponDetail.java @@ -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 GetAccountCouponDetail extends BankRequest { + private String accountId; + private String couponId; + + public GetAccountCouponDetail(String accountId, String couponId) { + this.accountId = accountId; + this.couponId = couponId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/accounts" + "/" + this.accountId + "/coupons" + "/" + this.couponId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final CouponDetail send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(CouponDetail.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountCoupons.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountCoupons.java new file mode 100644 index 0000000..a458d05 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountCoupons.java @@ -0,0 +1,75 @@ +// 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 GetAccountCoupons extends BankRequest { + private String accountId; + private String isAvailable; + private String before; + private String after; + private Integer perPage; + + public GetAccountCoupons(String accountId) { + this.accountId = accountId; + } + + public GetAccountCoupons isAvailable(String available) { + isAvailable = available; + return this; + } + + public GetAccountCoupons before(String before) { + this.before = before; + return this; + } + + public GetAccountCoupons after(String after) { + this.after = after; + return this; + } + + public GetAccountCoupons 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 + "/coupons"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (isAvailable != null) { + put("is_available", isAvailable); + } + if (before != null) { + put("before", before); + } + if (after != null) { + put("after", after); + } + if (perPage != null) { + put("per_page", perPage); + } + }}; + } + + public final PaginatedAccountCoupons send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PaginatedAccountCoupons.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountTransactions.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountTransactions.java new file mode 100644 index 0000000..b59ee27 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountTransactions.java @@ -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 GetAccountTransactions extends BankRequest { + private String accountId; + private String before; + private String after; + private Integer perPage; + + public GetAccountTransactions(String accountId) { + this.accountId = accountId; + } + + public GetAccountTransactions before(String before) { + this.before = before; + return this; + } + + public GetAccountTransactions after(String after) { + this.after = after; + return this; + } + + public GetAccountTransactions 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 + "/transactions"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (before != null) { + put("before", before); + } + if (after != null) { + put("after", after); + } + if (perPage != null) { + put("per_page", perPage); + } + }}; + } + + public final PaginatedAccountTransactions send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PaginatedAccountTransactions.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountTransfers.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountTransfers.java new file mode 100644 index 0000000..0f82590 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountTransfers.java @@ -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 GetAccountTransfers extends BankRequest { + private String accountId; + private String before; + private String after; + private Integer perPage; + + public GetAccountTransfers(String accountId) { + this.accountId = accountId; + } + + public GetAccountTransfers before(String before) { + this.before = before; + return this; + } + + public GetAccountTransfers after(String after) { + this.after = after; + return this; + } + + public GetAccountTransfers 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 + "/transfers"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (before != null) { + put("before", before); + } + if (after != null) { + put("after", after); + } + if (perPage != null) { + put("per_page", perPage); + } + }}; + } + + public final PaginatedAccountTransfers send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PaginatedAccountTransfers.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetBill.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetBill.java new file mode 100644 index 0000000..5c95f50 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetBill.java @@ -0,0 +1,48 @@ +// 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 GetBill extends BankRequest { + private String billId; + private String privateMoneyId; + + public GetBill(String billId) { + this.billId = billId; + } + + public GetBill privateMoneyId(String privateMoneyId) { + this.privateMoneyId = privateMoneyId; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/bills" + "/" + this.billId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (privateMoneyId != null) { + put("private_money_id", privateMoneyId); + } + }}; + } + + public final BillWithAdditionalPrivateMoneys send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(BillWithAdditionalPrivateMoneys.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetBillTransactions.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetBillTransactions.java new file mode 100644 index 0000000..6c91836 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetBillTransactions.java @@ -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 GetBillTransactions extends BankRequest { + private String billId; + private String before; + private String after; + private Integer perPage; + + public GetBillTransactions(String billId) { + this.billId = billId; + } + + public GetBillTransactions before(String before) { + this.before = before; + return this; + } + + public GetBillTransactions after(String after) { + this.after = after; + return this; + } + + public GetBillTransactions perPage(Integer perPage) { + this.perPage = perPage; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/bills" + "/" + this.billId + "/transactions"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (before != null) { + put("before", before); + } + if (after != null) { + put("after", after); + } + if (perPage != null) { + put("per_page", perPage); + } + }}; + } + + public final PaginatedBillTransactions send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PaginatedBillTransactions.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCashtray.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCashtray.java new file mode 100644 index 0000000..810e26f --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCashtray.java @@ -0,0 +1,39 @@ +// 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 GetCashtray extends BankRequest { + private String cashtrayId; + + public GetCashtray(String cashtrayId) { + this.cashtrayId = cashtrayId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/cashtrays" + "/" + this.cashtrayId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final CashtrayWithAttemptAndTransaction send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(CashtrayWithAttemptAndTransaction.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCashtrayAttempts.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCashtrayAttempts.java new file mode 100644 index 0000000..6476c9d --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCashtrayAttempts.java @@ -0,0 +1,39 @@ +// 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 GetCashtrayAttempts extends BankRequest { + private String cashtrayId; + + public GetCashtrayAttempts(String cashtrayId) { + this.cashtrayId = cashtrayId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/cashtrays" + "/" + this.cashtrayId + "/attempts"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final CashtrayAttempts send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(CashtrayAttempts.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCheck.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCheck.java new file mode 100644 index 0000000..4329aa2 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCheck.java @@ -0,0 +1,39 @@ +// 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 GetCheck extends BankRequest { + private String checkId; + + public GetCheck(String checkId) { + this.checkId = checkId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/checks" + "/" + this.checkId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final Check send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(Check.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCouponDetail.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCouponDetail.java new file mode 100644 index 0000000..51c5128 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCouponDetail.java @@ -0,0 +1,39 @@ +// 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 GetCouponDetail extends BankRequest { + private String couponId; + + public GetCouponDetail(String couponId) { + this.couponId = couponId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/coupons" + "/" + this.couponId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final CouponInfo send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(CouponInfo.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCpmToken.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCpmToken.java new file mode 100644 index 0000000..6ca7020 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetCpmToken.java @@ -0,0 +1,39 @@ +// 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 GetCpmToken extends BankRequest { + private String cpmToken; + + public GetCpmToken(String cpmToken) { + this.cpmToken = cpmToken; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/cpm" + "/" + this.cpmToken; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final CpmToken send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(CpmToken.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetListOfShops.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetListOfShops.java index 4d9b409..c98ae0e 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetListOfShops.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetListOfShops.java @@ -12,6 +12,7 @@ public class GetListOfShops extends BankRequest { private String privateMoneyId; + private String name; private String userTagGroupItemId; private String userTagSubgroupId; private String before; @@ -22,6 +23,11 @@ public GetListOfShops(String privateMoneyId) { this.privateMoneyId = privateMoneyId; } + public GetListOfShops name(String name) { + this.name = name; + return this; + } + public GetListOfShops userTagGroupItemId(String userTagGroupItemId) { this.userTagGroupItemId = userTagGroupItemId; return this; @@ -63,6 +69,9 @@ protected final Map parameters() { if (privateMoneyId != null) { put("private_money_id", privateMoneyId); } + if (name != null) { + put("name", name); + } if (userTagGroupItemId != null) { put("user_tag_group_item_id", userTagGroupItemId); } diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetMerchantTransaction.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetMerchantTransaction.java new file mode 100644 index 0000000..fb9bc16 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetMerchantTransaction.java @@ -0,0 +1,39 @@ +// 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 GetMerchantTransaction extends BankRequest { + private String transactionId; + + public GetMerchantTransaction(String transactionId) { + this.transactionId = transactionId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/merchant" + "/transactions" + "/" + this.transactionId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final UserTransactionWithCustomerBalance send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserTransactionWithCustomerBalance.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoney.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoney.java new file mode 100644 index 0000000..fdc46bd --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoney.java @@ -0,0 +1,39 @@ +// 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 GetPrivateMoney extends BankRequest { + private String privateMoneyId; + + public GetPrivateMoney(String privateMoneyId) { + this.privateMoneyId = privateMoneyId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/private-moneys" + "/" + this.privateMoneyId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final PrivateMoneyDetail send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PrivateMoneyDetail.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyCommercialAct.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyCommercialAct.java new file mode 100644 index 0000000..5ac837b --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyCommercialAct.java @@ -0,0 +1,39 @@ +// 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 GetPrivateMoneyCommercialAct extends BankRequest { + private String privateMoneyId; + + public GetPrivateMoneyCommercialAct(String privateMoneyId) { + this.privateMoneyId = privateMoneyId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/private-moneys" + "/" + this.privateMoneyId + "/commercial-act"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final PrivateMoneyLegalText send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PrivateMoneyLegalText.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyCoupons.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyCoupons.java new file mode 100644 index 0000000..f31891d --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyCoupons.java @@ -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 GetPrivateMoneyCoupons extends BankRequest { + private String privateMoneyId; + private String before; + private String after; + private Integer perPage; + + public GetPrivateMoneyCoupons(String privateMoneyId) { + this.privateMoneyId = privateMoneyId; + } + + public GetPrivateMoneyCoupons before(String before) { + this.before = before; + return this; + } + + public GetPrivateMoneyCoupons after(String after) { + this.after = after; + return this; + } + + public GetPrivateMoneyCoupons perPage(Integer perPage) { + this.perPage = perPage; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/private-moneys" + "/" + this.privateMoneyId + "/coupons"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (before != null) { + put("before", before); + } + if (after != null) { + put("after", after); + } + if (perPage != null) { + put("per_page", perPage); + } + }}; + } + + public final PaginatedPrivateMoneyCoupons send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PaginatedPrivateMoneyCoupons.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyPaymentAct.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyPaymentAct.java new file mode 100644 index 0000000..a12488f --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyPaymentAct.java @@ -0,0 +1,39 @@ +// 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 GetPrivateMoneyPaymentAct extends BankRequest { + private String privateMoneyId; + + public GetPrivateMoneyPaymentAct(String privateMoneyId) { + this.privateMoneyId = privateMoneyId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/private-moneys" + "/" + this.privateMoneyId + "/payment-act"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final PrivateMoneyLegalText send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PrivateMoneyLegalText.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyPrivacyPolicy.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyPrivacyPolicy.java new file mode 100644 index 0000000..735b1fe --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyPrivacyPolicy.java @@ -0,0 +1,39 @@ +// 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 GetPrivateMoneyPrivacyPolicy extends BankRequest { + private String privateMoneyId; + + public GetPrivateMoneyPrivacyPolicy(String privateMoneyId) { + this.privateMoneyId = privateMoneyId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/private-moneys" + "/" + this.privateMoneyId + "/privacy-policy"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final PrivateMoneyLegalText send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PrivateMoneyLegalText.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyTerms.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyTerms.java new file mode 100644 index 0000000..5908921 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyTerms.java @@ -0,0 +1,39 @@ +// 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 GetPrivateMoneyTerms extends BankRequest { + private String privateMoneyId; + + public GetPrivateMoneyTerms(String privateMoneyId) { + this.privateMoneyId = privateMoneyId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/private-moneys" + "/" + this.privateMoneyId + "/terms"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final PrivateMoneyLegalText send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PrivateMoneyLegalText.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetTerminal.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetTerminal.java new file mode 100644 index 0000000..84e9073 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetTerminal.java @@ -0,0 +1,37 @@ +// 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 GetTerminal extends BankRequest { + + public GetTerminal() { + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/terminal"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final Terminal send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(Terminal.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetTerminalById.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetTerminalById.java new file mode 100644 index 0000000..b1b4123 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetTerminalById.java @@ -0,0 +1,39 @@ +// 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 GetTerminalById extends BankRequest { + private String terminalId; + + public GetTerminalById(String terminalId) { + this.terminalId = terminalId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/terminals" + "/" + this.terminalId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final Terminal send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(Terminal.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetTransaction.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetTransaction.java new file mode 100644 index 0000000..65e2604 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetTransaction.java @@ -0,0 +1,39 @@ +// 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 GetTransaction extends BankRequest { + private String transactionId; + + public GetTransaction(String transactionId) { + this.transactionId = transactionId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/transactions" + "/" + this.transactionId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final UserTransactionWithTransfers send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserTransactionWithTransfers.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUser.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUser.java new file mode 100644 index 0000000..e51e79d --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUser.java @@ -0,0 +1,39 @@ +// 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 GetUser extends BankRequest { + private String userId; + + public GetUser(String userId) { + this.userId = userId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/users" + "/" + this.userId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final UserWithDetails send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserWithDetails.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserAccounts.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserAccounts.java new file mode 100644 index 0000000..356382b --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserAccounts.java @@ -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 GetUserAccounts extends BankRequest { + private String userId; + private String before; + private String after; + private Integer perPage; + + public GetUserAccounts(String userId) { + this.userId = userId; + } + + public GetUserAccounts before(String before) { + this.before = before; + return this; + } + + public GetUserAccounts after(String after) { + this.after = after; + return this; + } + + public GetUserAccounts perPage(Integer perPage) { + this.perPage = perPage; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/users" + "/" + this.userId + "/accounts"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (before != null) { + put("before", before); + } + if (after != null) { + put("after", after); + } + if (perPage != null) { + put("per_page", perPage); + } + }}; + } + + public final PaginatedUserAccounts send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PaginatedUserAccounts.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserSettingUrl.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserSettingUrl.java new file mode 100644 index 0000000..9f3b79a --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserSettingUrl.java @@ -0,0 +1,37 @@ +// 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 GetUserSettingUrl extends BankRequest { + + public GetUserSettingUrl() { + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/oauth" + "/full-access"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final OauthFullAccessUrl send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(OauthFullAccessUrl.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserTransactions.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserTransactions.java new file mode 100644 index 0000000..c9bead0 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserTransactions.java @@ -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 GetUserTransactions extends BankRequest { + private String userId; + private String before; + private String after; + private Integer perPage; + + public GetUserTransactions(String userId) { + this.userId = userId; + } + + public GetUserTransactions before(String before) { + this.before = before; + return this; + } + + public GetUserTransactions after(String after) { + this.after = after; + return this; + } + + public GetUserTransactions perPage(Integer perPage) { + this.perPage = perPage; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/users" + "/" + this.userId + "/transactions"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (before != null) { + put("before", before); + } + if (after != null) { + put("after", after); + } + if (perPage != null) { + put("per_page", perPage); + } + }}; + } + + public final PaginatedUserTransactions send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PaginatedUserTransactions.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserWithAuthFactors.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserWithAuthFactors.java new file mode 100644 index 0000000..5bbf39f --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserWithAuthFactors.java @@ -0,0 +1,39 @@ +// 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 GetUserWithAuthFactors extends BankRequest { + private String userId; + + public GetUserWithAuthFactors(String userId) { + this.userId = userId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/users" + "/" + this.userId + "/auth-factors"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + public final UserWithAuthFactors send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserWithAuthFactors.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetVeritransMdkTokenApiKey.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetVeritransMdkTokenApiKey.java new file mode 100644 index 0000000..da47eb8 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetVeritransMdkTokenApiKey.java @@ -0,0 +1,46 @@ +// 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 GetVeritransMdkTokenApiKey extends BankRequest { + private String organizationCode; + + public GetVeritransMdkTokenApiKey() { + } + + public GetVeritransMdkTokenApiKey organizationCode(String organizationCode) { + this.organizationCode = organizationCode; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/veritrans" + "/mdk-token-api-key"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (organizationCode != null) { + put("organization_code", organizationCode); + } + }}; + } + + public final VeritransMdkTokenApiKey send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(VeritransMdkTokenApiKey.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/IdentifyIndividual.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/IdentifyIndividual.java index 3cb2dc8..ce9a7c4 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/IdentifyIndividual.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/IdentifyIndividual.java @@ -9,7 +9,6 @@ import jp.pokepay.pokepaylib.ProcessingError; import jp.pokepay.pokepaylib.Request; import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*; -import jp.pokepay.pokepaylib.Responses.IdentificationResult; public class IdentifyIndividual extends BankRequest { private String signature; diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/PatchAccountCouponDetail.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/PatchAccountCouponDetail.java new file mode 100644 index 0000000..7cf5461 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/PatchAccountCouponDetail.java @@ -0,0 +1,59 @@ +// 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 PatchAccountCouponDetail extends BankRequest { + private Boolean isReceived; + private String code; + private String accountId; + private String couponId; + + public PatchAccountCouponDetail(String accountId, String couponId) { + this.accountId = accountId; + this.couponId = couponId; + } + + public PatchAccountCouponDetail isReceived(Boolean received) { + isReceived = received; + return this; + } + + public PatchAccountCouponDetail code(String code) { + this.code = code; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.PATCH; + } + + @Override + public String path() { + return "/accounts" + "/" + this.accountId + "/coupons" + "/" + this.couponId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (isReceived != null) { + put("is_received", isReceived); + } + if (code != null) { + put("code", code); + } + }}; + } + + public final CouponDetail send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(CouponDetail.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/RefundTransaction.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/RefundTransaction.java new file mode 100644 index 0000000..0ead1d2 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/RefundTransaction.java @@ -0,0 +1,48 @@ +// 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 RefundTransaction extends BankRequest { + private Double amount; + private String transactionId; + + public RefundTransaction(String transactionId) { + this.transactionId = transactionId; + } + + public RefundTransaction amount(Double amount) { + this.amount = amount; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/transactions" + "/" + this.transactionId + "/refund"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (amount != null) { + put("amount", amount); + } + }}; + } + + public final UserTransaction send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserTransaction.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/SearchPrivateMoneys.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/SearchPrivateMoneys.java new file mode 100644 index 0000000..9fe811b --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/SearchPrivateMoneys.java @@ -0,0 +1,82 @@ +// 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 SearchPrivateMoneys extends BankRequest { + private String name; + private Boolean includeExclusive; + private String before; + private String after; + private Integer perPage; + + public SearchPrivateMoneys() { + } + + public SearchPrivateMoneys name(String name) { + this.name = name; + return this; + } + + public SearchPrivateMoneys includeExclusive(Boolean includeExclusive) { + this.includeExclusive = includeExclusive; + return this; + } + + public SearchPrivateMoneys before(String before) { + this.before = before; + return this; + } + + public SearchPrivateMoneys after(String after) { + this.after = after; + return this; + } + + public SearchPrivateMoneys perPage(Integer perPage) { + this.perPage = perPage; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/private-moneys"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (name != null) { + put("name", name); + } + if (includeExclusive != null) { + put("include_exclusive", includeExclusive); + } + if (before != null) { + put("before", before); + } + if (after != null) { + put("after", after); + } + if (perPage != null) { + put("per_page", perPage); + } + }}; + } + + public final PaginatedPrivateMoneys send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PaginatedPrivateMoneys.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/SendToAccount.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/SendToAccount.java new file mode 100644 index 0000000..1574a59 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/SendToAccount.java @@ -0,0 +1,71 @@ +// 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 SendToAccount extends BankRequest { + private String receiverTerminalId; + private String senderAccountId; + private Double amount; + private String description; + private String accountId; + + public SendToAccount(String accountId, double amount) { + this.accountId = accountId; + this.amount = amount; + } + + public SendToAccount receiverTerminalId(String receiverTerminalId) { + this.receiverTerminalId = receiverTerminalId; + return this; + } + + public SendToAccount senderAccountId(String senderAccountId) { + this.senderAccountId = senderAccountId; + return this; + } + + public SendToAccount description(String description) { + this.description = description; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/accounts" + "/" + this.accountId + "/transactions"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (receiverTerminalId != null) { + put("receiver_terminal_id", receiverTerminalId); + } + if (senderAccountId != null) { + put("sender_account_id", senderAccountId); + } + if (amount != null) { + put("amount", amount); + } + if (description != null) { + put("description", description); + } + }}; + } + + public final UserTransaction send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserTransaction.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/TopupWithCreditCard.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/TopupWithCreditCard.java new file mode 100644 index 0000000..5b4a719 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/TopupWithCreditCard.java @@ -0,0 +1,76 @@ +// 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 TopupWithCreditCard extends BankRequest { + private String accountId; + private Integer amount; + private String cardRegisteredAt; + private String cardUuid; + private String organizationCode; + private String userId; + + public TopupWithCreditCard(String userId, String accountId, int amount) { + this.userId = userId; + this.accountId = accountId; + this.amount = amount; + } + + public TopupWithCreditCard cardRegisteredAt(String cardRegisteredAt) { + this.cardRegisteredAt = cardRegisteredAt; + return this; + } + + public TopupWithCreditCard cardUuid(String cardUuid) { + this.cardUuid = cardUuid; + return this; + } + + public TopupWithCreditCard organizationCode(String organizationCode) { + this.organizationCode = organizationCode; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/users" + "/" + this.userId + "/cards" + "/topup"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (accountId != null) { + put("account_id", accountId); + } + if (amount != null) { + put("amount", amount); + } + if (cardRegisteredAt != null) { + put("card_registered_at", cardRegisteredAt); + } + if (cardUuid != null) { + put("card_uuid", cardUuid); + } + if (organizationCode != null) { + put("organization_code", organizationCode); + } + }}; + } + + public final UserTransaction send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserTransaction.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateAccount.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateAccount.java new file mode 100644 index 0000000..00d0b61 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateAccount.java @@ -0,0 +1,48 @@ +// 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 UpdateAccount extends BankRequest { + private String name; + private String accountId; + + public UpdateAccount(String accountId) { + this.accountId = accountId; + } + + public UpdateAccount name(String name) { + this.name = name; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.PATCH; + } + + @Override + public String path() { + return "/accounts" + "/" + this.accountId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (name != null) { + put("name", name); + } + }}; + } + + public final AccountDetail send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(AccountDetail.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateBill.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateBill.java new file mode 100644 index 0000000..1a6f30b --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateBill.java @@ -0,0 +1,67 @@ +// 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.Parameters.Product; +import jp.pokepay.pokepaylib.ProcessingError; +import jp.pokepay.pokepaylib.Request; +import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*; + +public class UpdateBill extends BankRequest { + private Integer amount; + private String description; + private Product[] products; + private String billId; + + public UpdateBill(String billId) { + this.billId = billId; + } + + public UpdateBill amount(Integer amount) { + this.amount = amount; + return this; + } + + public UpdateBill description(String description) { + this.description = description; + return this; + } + + public UpdateBill products(Product[] products) { + this.products = products; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.PATCH; + } + + @Override + public String path() { + return "/bills" + "/" + this.billId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (amount != null) { + put("amount", amount); + } + if (description != null) { + put("description", description); + } + if (products != null) { + put("products", products); + } + }}; + } + + public final Bill send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(Bill.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateCashtray.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateCashtray.java new file mode 100644 index 0000000..81c932d --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateCashtray.java @@ -0,0 +1,76 @@ +// 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.Parameters.Product; +import jp.pokepay.pokepaylib.ProcessingError; +import jp.pokepay.pokepaylib.Request; +import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*; + +public class UpdateCashtray extends BankRequest { + private Integer amount; + private String description; + private Integer expiresIn; + private Product[] products; + private String cashtrayId; + + public UpdateCashtray(String cashtrayId) { + this.cashtrayId = cashtrayId; + } + + public UpdateCashtray amount(Integer amount) { + this.amount = amount; + return this; + } + + public UpdateCashtray description(String description) { + this.description = description; + return this; + } + + public UpdateCashtray expiresIn(Integer expiresIn) { + this.expiresIn = expiresIn; + return this; + } + + public UpdateCashtray products(Product[] products) { + this.products = products; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.PATCH; + } + + @Override + public String path() { + return "/cashtrays" + "/" + this.cashtrayId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (amount != null) { + put("amount", amount); + } + if (description != null) { + put("description", description); + } + if (expiresIn != null) { + put("expires_in", expiresIn); + } + if (products != null) { + put("products", products); + } + }}; + } + + public final Cashtray send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(Cashtray.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateCheck.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateCheck.java new file mode 100644 index 0000000..058a9eb --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateCheck.java @@ -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 UpdateCheck extends BankRequest { + private Double amount; + private String description; + private String expiresAt; + private String pointExpiresAt; + private Integer pointExpiresInDays; + private String checkId; + + public UpdateCheck(String checkId) { + this.checkId = checkId; + } + + public UpdateCheck amount(Double amount) { + this.amount = amount; + return this; + } + + public UpdateCheck description(String description) { + this.description = description; + return this; + } + + public UpdateCheck expiresAt(String expiresAt) { + this.expiresAt = expiresAt; + return this; + } + + public UpdateCheck pointExpiresAt(String pointExpiresAt) { + this.pointExpiresAt = pointExpiresAt; + return this; + } + + public UpdateCheck pointExpiresInDays(Integer pointExpiresInDays) { + this.pointExpiresInDays = pointExpiresInDays; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.PATCH; + } + + @Override + public String path() { + return "/checks" + "/" + this.checkId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (amount != null) { + put("amount", amount); + } + if (description != null) { + put("description", description); + } + if (expiresAt != null) { + put("expires_at", expiresAt); + } + if (pointExpiresAt != null) { + put("point_expires_at", pointExpiresAt); + } + if (pointExpiresInDays != null) { + put("point_expires_in_days", pointExpiresInDays); + } + }}; + } + + public final Check send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(Check.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateTerminal.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateTerminal.java new file mode 100644 index 0000000..1405183 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateTerminal.java @@ -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 UpdateTerminal extends BankRequest { + private String name; + private String accountId; + private String pushService; + private String pushToken; + + public UpdateTerminal() { + } + + public UpdateTerminal name(String name) { + this.name = name; + return this; + } + + public UpdateTerminal accountId(String accountId) { + this.accountId = accountId; + return this; + } + + public UpdateTerminal pushService(String pushService) { + this.pushService = pushService; + return this; + } + + public UpdateTerminal pushToken(String pushToken) { + this.pushToken = pushToken; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.PATCH; + } + + @Override + public String path() { + return "/terminal"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (name != null) { + put("name", name); + } + if (accountId != null) { + put("account_id", accountId); + } + if (pushService != null) { + put("push_service", pushService); + } + if (pushToken != null) { + put("push_token", pushToken); + } + }}; + } + + public final Terminal send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(Terminal.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateUser.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateUser.java new file mode 100644 index 0000000..32cbbb3 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateUser.java @@ -0,0 +1,48 @@ +// 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 UpdateUser extends BankRequest { + private String name; + private String userId; + + public UpdateUser(String userId) { + this.userId = userId; + } + + public UpdateUser name(String name) { + this.name = name; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.PATCH; + } + + @Override + public String path() { + return "/users" + "/" + this.userId; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (name != null) { + put("name", name); + } + }}; + } + + public final UserWithDetails send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserWithDetails.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Account.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Account.java new file mode 100644 index 0000000..d859032 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Account.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class Account extends Response { + public String id; + public String name; + public Double balance; + public Double money_balance; + public Double point_balance; + public Double point_debt; + public Boolean is_suspended; + public String status; + public PrivateMoney private_money; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountBalance.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountBalance.java new file mode 100644 index 0000000..8229923 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountBalance.java @@ -0,0 +1,11 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class AccountBalance extends Response { + public String expires_at; + public Double money_amount; + public Double point_amount; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountCampaignPointAmounts.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountCampaignPointAmounts.java new file mode 100644 index 0000000..7e7d16a --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountCampaignPointAmounts.java @@ -0,0 +1,11 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class AccountCampaignPointAmounts extends Response { + public Double max_total_point_amount; + public Double total_point_amount; + public Double remain_point_amount; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountDetail.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountDetail.java new file mode 100644 index 0000000..0fc6872 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountDetail.java @@ -0,0 +1,18 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class AccountDetail extends Response { + public String id; + public String name; + public Double balance; + public Double money_balance; + public Double point_balance; + public Double point_debt; + public Boolean is_suspended; + public String status; + public PrivateMoneyDetail private_money; + public String nearest_expires_at; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/BankPaySession.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/BankPaySession.java new file mode 100644 index 0000000..c4128ec --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/BankPaySession.java @@ -0,0 +1,10 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class BankPaySession extends Response { + public String redirect_url; + public String paytree_customer_number; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Bill.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Bill.java new file mode 100644 index 0000000..c3b730a --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Bill.java @@ -0,0 +1,18 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class Bill extends Response { + public String id; + public Double amount; + public String description; + public User user; + public Boolean is_onetime; + public Boolean is_disabled; + public PrivateMoney private_money; + public String token; + public Double max_amount; + public Double min_amount; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/BillWithAdditionalPrivateMoneys.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/BillWithAdditionalPrivateMoneys.java new file mode 100644 index 0000000..b2001a9 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/BillWithAdditionalPrivateMoneys.java @@ -0,0 +1,19 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class BillWithAdditionalPrivateMoneys extends Response { + public String id; + public Double amount; + public String description; + public User user; + public Boolean is_onetime; + public Boolean is_disabled; + public PrivateMoney private_money; + public String token; + public Double max_amount; + public Double min_amount; + public PrivateMoney[] additional_private_moneys; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Cashtray.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Cashtray.java new file mode 100644 index 0000000..51729d4 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Cashtray.java @@ -0,0 +1,16 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class Cashtray extends Response { + public String id; + public Double amount; + public String description; + public User user; + public PrivateMoney private_money; + public String expires_at; + public String canceled_at; + public String token; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CashtrayAttempt.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CashtrayAttempt.java new file mode 100644 index 0000000..7b95725 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CashtrayAttempt.java @@ -0,0 +1,15 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class CashtrayAttempt extends Response { + public User user; + public Account account; + public Double status_code; + public String error_type; + public String error_message; + public String created_at; + public String strategy; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CashtrayAttempts.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CashtrayAttempts.java new file mode 100644 index 0000000..98cdd12 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CashtrayAttempts.java @@ -0,0 +1,9 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class CashtrayAttempts extends Response { + public CashtrayAttempt[] rows; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CashtrayWithAttemptAndTransaction.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CashtrayWithAttemptAndTransaction.java new file mode 100644 index 0000000..cf65ffc --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CashtrayWithAttemptAndTransaction.java @@ -0,0 +1,18 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class CashtrayWithAttemptAndTransaction extends Response { + public String id; + public Double amount; + public String description; + public User user; + public PrivateMoney private_money; + public String expires_at; + public String canceled_at; + public String token; + public CashtrayAttempt attempt; + public UserTransaction transaction; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Check.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Check.java new file mode 100644 index 0000000..9fac3e1 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Check.java @@ -0,0 +1,21 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class Check extends Response { + public String id; + public Double amount; + public Double money_amount; + public Double point_amount; + public String description; + public User user; + public Boolean is_onetime; + public Boolean is_disabled; + public String expires_at; + public String point_expires_at; + public Integer point_expires_in_days; + public PrivateMoney private_money; + public String token; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Coupon.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Coupon.java new file mode 100644 index 0000000..23c2268 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Coupon.java @@ -0,0 +1,23 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class Coupon extends Response { + public String id; + public String name; + public String description; + public Double discount_amount; + public Double discount_percentage; + public String starts_at; + public String ends_at; + public String display_starts_at; + public String display_ends_at; + public Double usage_limit; + public Double min_amount; + public Boolean is_shop_specified; + public Boolean is_disabled; + public Boolean is_hidden; + public String coupon_image; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CouponDetail.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CouponDetail.java new file mode 100644 index 0000000..0523c9a --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CouponDetail.java @@ -0,0 +1,26 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class CouponDetail extends Response { + public String id; + public String name; + public String description; + public Double discount_amount; + public Double discount_percentage; + public String starts_at; + public String ends_at; + public String display_starts_at; + public String display_ends_at; + public Double usage_limit; + public Double min_amount; + public Boolean is_shop_specified; + public Boolean is_disabled; + public Boolean is_hidden; + public String coupon_image; + public String received_at; + public Double usage_count; + public User[] available_shops; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CouponInfo.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CouponInfo.java new file mode 100644 index 0000000..9278c54 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CouponInfo.java @@ -0,0 +1,26 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class CouponInfo extends Response { + public String id; + public String name; + public String description; + public Double discount_amount; + public Double discount_percentage; + public String starts_at; + public String ends_at; + public String display_starts_at; + public String display_ends_at; + public Double usage_limit; + public Double min_amount; + public Boolean is_shop_specified; + public Boolean is_public; + public Boolean is_disabled; + public Boolean is_hidden; + public String coupon_image; + public String private_money_id; + public User[] available_shops; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CpmToken.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CpmToken.java new file mode 100644 index 0000000..19cd179 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CpmToken.java @@ -0,0 +1,16 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class CpmToken extends Response { + public String cpm_token; + public Account account; + public UserTransactionWithTransfers transaction; + public String[] scopes; + public String expires_at; + public Object metadata; + public String strategy; + public String coupon_id; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CvsAuthorization.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CvsAuthorization.java index ad151cf..b777591 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CvsAuthorization.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CvsAuthorization.java @@ -2,7 +2,6 @@ package jp.pokepay.pokepaylib.BankAPI.autogen.responses; import jp.pokepay.pokepaylib.Response; -import jp.pokepay.pokepaylib.Responses.Account; public class CvsAuthorization extends Response { public String id; diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/FallbackPrivateMoney.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/FallbackPrivateMoney.java new file mode 100644 index 0000000..7aaf1d9 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/FallbackPrivateMoney.java @@ -0,0 +1,10 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class FallbackPrivateMoney extends Response { + public String name; + public String id; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/IdentificationMatch.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/IdentificationMatch.java new file mode 100644 index 0000000..23f8211 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/IdentificationMatch.java @@ -0,0 +1,12 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class IdentificationMatch extends Response { + public Boolean name; + public Boolean gender; + public Boolean address; + public Boolean date_of_birth; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/IdentificationResult.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/IdentificationResult.java new file mode 100644 index 0000000..f666414 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/IdentificationResult.java @@ -0,0 +1,12 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class IdentificationResult extends Response { + public Boolean is_valid; + public String identified_at; + public IdentificationMatch match; + public Boolean is_resident; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/IndividualNumberIdentificationError.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/IndividualNumberIdentificationError.java new file mode 100644 index 0000000..7043b9a --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/IndividualNumberIdentificationError.java @@ -0,0 +1,12 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class IndividualNumberIdentificationError extends Response { + public String type; + public String message; + public Integer error_code; + public String error_message; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/JihanpiTransaction.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/JihanpiTransaction.java index 63ad987..b25ad70 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/JihanpiTransaction.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/JihanpiTransaction.java @@ -2,7 +2,6 @@ package jp.pokepay.pokepaylib.BankAPI.autogen.responses; import jp.pokepay.pokepaylib.Response; -import jp.pokepay.pokepaylib.Responses.Account; public class JihanpiTransaction extends Response { public String order_id; diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/OauthFullAccessUrl.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/OauthFullAccessUrl.java new file mode 100644 index 0000000..efadb61 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/OauthFullAccessUrl.java @@ -0,0 +1,9 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class OauthFullAccessUrl extends Response { + public String url; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Organization.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Organization.java new file mode 100644 index 0000000..0274651 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Organization.java @@ -0,0 +1,10 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class Organization extends Response { + public String code; + public String name; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedAccountBalances.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedAccountBalances.java new file mode 100644 index 0000000..8932e8c --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedAccountBalances.java @@ -0,0 +1,13 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PaginatedAccountBalances extends Response { + public Integer per_page; + public Integer count; + public String next; + public String prev; + public AccountBalance[] items; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedAccountCoupons.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedAccountCoupons.java new file mode 100644 index 0000000..905dcec --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedAccountCoupons.java @@ -0,0 +1,13 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PaginatedAccountCoupons extends Response { + public Integer per_page; + public Integer count; + public String next; + public String prev; + public Coupon[] items; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedAccountTransactions.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedAccountTransactions.java new file mode 100644 index 0000000..35ce02a --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedAccountTransactions.java @@ -0,0 +1,13 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PaginatedAccountTransactions extends Response { + public Integer per_page; + public Integer count; + public String next; + public String prev; + public UserTransaction[] items; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedAccountTransfers.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedAccountTransfers.java new file mode 100644 index 0000000..b6dfadf --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedAccountTransfers.java @@ -0,0 +1,13 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PaginatedAccountTransfers extends Response { + public Integer per_page; + public Integer count; + public String next; + public String prev; + public UserTransfer[] items; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedBillTransactions.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedBillTransactions.java new file mode 100644 index 0000000..1fc07da --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedBillTransactions.java @@ -0,0 +1,13 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PaginatedBillTransactions extends Response { + public Integer per_page; + public Integer count; + public String next; + public String prev; + public UserTransaction[] items; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedPrivateMoneyCoupons.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedPrivateMoneyCoupons.java new file mode 100644 index 0000000..9039f52 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedPrivateMoneyCoupons.java @@ -0,0 +1,13 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PaginatedPrivateMoneyCoupons extends Response { + public Integer per_page; + public Integer count; + public String next; + public String prev; + public Coupon[] items; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedPrivateMoneys.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedPrivateMoneys.java new file mode 100644 index 0000000..f7c963e --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedPrivateMoneys.java @@ -0,0 +1,13 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PaginatedPrivateMoneys extends Response { + public Integer per_page; + public Integer count; + public String next; + public String prev; + public PrivateMoney[] items; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedUserAccounts.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedUserAccounts.java new file mode 100644 index 0000000..71da348 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedUserAccounts.java @@ -0,0 +1,13 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PaginatedUserAccounts extends Response { + public Integer per_page; + public Integer count; + public String next; + public String prev; + public Account[] items; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedUserTransactions.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedUserTransactions.java new file mode 100644 index 0000000..8d0de84 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedUserTransactions.java @@ -0,0 +1,13 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PaginatedUserTransactions extends Response { + public Integer per_page; + public Integer count; + public String next; + public String prev; + public UserTransaction[] items; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoney.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoney.java new file mode 100644 index 0000000..34af93f --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoney.java @@ -0,0 +1,33 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PrivateMoney extends Response { + public String id; + public String name; + public String type; + public String unit; + public String description; + public String oneline_message; + public String display_money_and_point; + public String custom_domain_name; + public Boolean can_use_c2c_transfer; + public String account_image; + public PrivateMoneyImages images; + public PrivateMoneySounds sounds; + public Organization organization; + public Double max_balance; + public Double transfer_limit; + public Double money_topup_transfer_limit; + public String expiration_type; + public Boolean is_exclusive; + public String terms_url; + public String privacy_policy_url; + public String payment_act_url; + public String commercial_act_url; + public Boolean is_topup_quota_available; + public Boolean is_itrust_authentication_enabled; + public Boolean can_use_credit_card; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyDetail.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyDetail.java new file mode 100644 index 0000000..3b5f156 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyDetail.java @@ -0,0 +1,35 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PrivateMoneyDetail extends Response { + public String id; + public String name; + public String type; + public String unit; + public String description; + public String oneline_message; + public String display_money_and_point; + public String custom_domain_name; + public Boolean can_use_c2c_transfer; + public String account_image; + public PrivateMoneyImages images; + public PrivateMoneySounds sounds; + public Organization organization; + public Double max_balance; + public Double transfer_limit; + public Double money_topup_transfer_limit; + public String expiration_type; + public Boolean is_exclusive; + public String terms_url; + public String privacy_policy_url; + public String payment_act_url; + public String commercial_act_url; + public Boolean is_topup_quota_available; + public Boolean is_itrust_authentication_enabled; + public Boolean can_use_credit_card; + public PrivateMoneyTopupMethod[] topup_methods; + public FallbackPrivateMoney[] fallback_moneys; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyImages.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyImages.java new file mode 100644 index 0000000..8972ae6 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyImages.java @@ -0,0 +1,14 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; +import com.fasterxml.jackson.annotation.JsonProperty; + +public class PrivateMoneyImages extends Response { + public String card; + @JsonProperty("300x300") + public String n300x300; + @JsonProperty("600x600") + public String n600x600; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyLegalText.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyLegalText.java new file mode 100644 index 0000000..c881791 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyLegalText.java @@ -0,0 +1,9 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PrivateMoneyLegalText extends Response { + public String text; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneySounds.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneySounds.java new file mode 100644 index 0000000..cfff6e4 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneySounds.java @@ -0,0 +1,9 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PrivateMoneySounds extends Response { + public String payment; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyTopupMethod.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyTopupMethod.java new file mode 100644 index 0000000..00fbcd7 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyTopupMethod.java @@ -0,0 +1,12 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class PrivateMoneyTopupMethod extends Response { + public String type; + public String name; + public Double[] amounts; + public Double[] range; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Terminal.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Terminal.java new file mode 100644 index 0000000..d478187 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Terminal.java @@ -0,0 +1,15 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class Terminal extends Response { + public String id; + public String name; + public String hardware_id; + public String push_service; + public String push_token; + public UserWithAuthFactors user; + public Account account; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/User.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/User.java new file mode 100644 index 0000000..9e54ab8 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/User.java @@ -0,0 +1,11 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class User extends Response { + public String id; + public String name; + public Boolean is_merchant; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserBank.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserBank.java new file mode 100644 index 0000000..730a0bc --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserBank.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class UserBank extends Response { + public String id; + public PrivateMoney private_money; + public String bank_name; + public String bank_code; + public String branch_number; + public String branch_name; + public String deposit_type; + public String masked_account_number; + public String account_name; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransaction.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransaction.java new file mode 100644 index 0000000..bccff4f --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransaction.java @@ -0,0 +1,21 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class UserTransaction extends Response { + public String id; + public User user; + public Double balance; + public Double amount; + public Double money_amount; + public Double point_amount; + public Double raw_point_amount; + public Double campaign_point_amount; + public Account account; + public String description; + public String done_at; + public String type; + public Boolean is_modified; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithCustomerBalance.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithCustomerBalance.java new file mode 100644 index 0000000..75789c1 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithCustomerBalance.java @@ -0,0 +1,22 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class UserTransactionWithCustomerBalance extends Response { + public String id; + public User user; + public Double balance; + public Double customer_balance; + public Double amount; + public Double money_amount; + public Double point_amount; + public Double raw_point_amount; + public Double campaign_point_amount; + public Account account; + public String description; + public String done_at; + public String type; + public Boolean is_modified; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithFallback.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithFallback.java index c05e029..cdc3e27 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithFallback.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithFallback.java @@ -2,8 +2,6 @@ package jp.pokepay.pokepaylib.BankAPI.autogen.responses; import jp.pokepay.pokepaylib.Response; -import jp.pokepay.pokepaylib.Responses.Account; -import jp.pokepay.pokepaylib.Responses.User; public class UserTransactionWithFallback extends Response { public String id; diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithFallbackAndCustomerBalance.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithFallbackAndCustomerBalance.java new file mode 100644 index 0000000..9a2491a --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithFallbackAndCustomerBalance.java @@ -0,0 +1,24 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class UserTransactionWithFallbackAndCustomerBalance extends Response { + public String id; + public User user; + public Double balance; + public Double customer_balance; + public Double amount; + public Double money_amount; + public Double point_amount; + public Double raw_point_amount; + public Double campaign_point_amount; + public Account account; + public String description; + public String done_at; + public String type; + public Boolean is_modified; + public UserTransferWithoutAccount[] transfers; + public UserTransactionWithTransfersAndCustomerBalance[] fallback_transactions; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithTransfers.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithTransfers.java index 0e5f294..d04cc1a 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithTransfers.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithTransfers.java @@ -2,8 +2,6 @@ package jp.pokepay.pokepaylib.BankAPI.autogen.responses; import jp.pokepay.pokepaylib.Response; -import jp.pokepay.pokepaylib.Responses.Account; -import jp.pokepay.pokepaylib.Responses.User; public class UserTransactionWithTransfers extends Response { public String id; diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithTransfersAndCustomerBalance.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithTransfersAndCustomerBalance.java new file mode 100644 index 0000000..74b5d6a --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithTransfersAndCustomerBalance.java @@ -0,0 +1,23 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class UserTransactionWithTransfersAndCustomerBalance extends Response { + public String id; + public User user; + public Double balance; + public Double customer_balance; + public Double amount; + public Double money_amount; + public Double point_amount; + public Double raw_point_amount; + public Double campaign_point_amount; + public Account account; + public String description; + public String done_at; + public String type; + public Boolean is_modified; + public UserTransferWithoutAccount[] transfers; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransfer.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransfer.java new file mode 100644 index 0000000..f65088e --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransfer.java @@ -0,0 +1,19 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class UserTransfer extends Response { + public String id; + public String transaction_id; + public User user; + public Double balance; + public Double amount; + public Double money_amount; + public Double point_amount; + public Account account; + public String description; + public String done_at; + public String type; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserWithAuthFactors.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserWithAuthFactors.java new file mode 100644 index 0000000..d5a8ec2 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserWithAuthFactors.java @@ -0,0 +1,15 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class UserWithAuthFactors extends Response { + public String id; + public String name; + public Boolean is_merchant; + public String tel; + public String country_code; + public String email; + public Boolean is_password_registered; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserWithDetails.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserWithDetails.java new file mode 100644 index 0000000..97c93f0 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserWithDetails.java @@ -0,0 +1,14 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class UserWithDetails extends Response { + public String id; + public String name; + public Boolean is_merchant; + public String tel; + public String country_code; + public String email; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/VeritransMdkTokenApiKey.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/VeritransMdkTokenApiKey.java new file mode 100644 index 0000000..be1e82c --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/VeritransMdkTokenApiKey.java @@ -0,0 +1,9 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class VeritransMdkTokenApiKey extends Response { + public String token_api_key; +} +