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/CreateBillTransaction.java new file mode 100644 index 0000000..297ce5d --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateBillTransaction.java @@ -0,0 +1,83 @@ +// 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 CreateBillTransaction extends BankRequest { + private String requestId; + private String billId; + private String accountId; + private Double amount; + private String couponId; + private String strategy; + + public CreateBillTransaction(String requestId, String billId) { + this.requestId = requestId; + this.billId = billId; + } + + public CreateBillTransaction accountId(String accountId) { + this.accountId = accountId; + return this; + } + + public CreateBillTransaction amount(Double amount) { + this.amount = amount; + return this; + } + + public CreateBillTransaction couponId(String couponId) { + this.couponId = couponId; + return this; + } + + public CreateBillTransaction strategy(String strategy) { + this.strategy = strategy; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/transactions" + "/bill"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (requestId != null) { + put("request_id", requestId); + } + if (billId != null) { + put("bill_id", billId); + } + if (accountId != null) { + put("account_id", accountId); + } + if (amount != null) { + put("amount", amount); + } + if (couponId != null) { + put("coupon_id", couponId); + } + if (strategy != null) { + put("strategy", strategy); + } + }}; + } + + public final UserTransactionWithFallback send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserTransactionWithFallback.class, accessToken); + } +} 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/CreateCashtrayTransaction.java new file mode 100644 index 0000000..db796ae --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCashtrayTransaction.java @@ -0,0 +1,83 @@ +// 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 CreateCashtrayTransaction extends BankRequest { + private String requestId; + private String cashtrayId; + private String accountId; + private String couponId; + private String strategy; + private Integer topupQuotaId; + + public CreateCashtrayTransaction(String requestId, String cashtrayId) { + this.requestId = requestId; + this.cashtrayId = cashtrayId; + } + + public CreateCashtrayTransaction accountId(String accountId) { + this.accountId = accountId; + return this; + } + + public CreateCashtrayTransaction couponId(String couponId) { + this.couponId = couponId; + return this; + } + + public CreateCashtrayTransaction strategy(String strategy) { + this.strategy = strategy; + return this; + } + + public CreateCashtrayTransaction topupQuotaId(Integer topupQuotaId) { + this.topupQuotaId = topupQuotaId; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/transactions" + "/cashtray"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (requestId != null) { + put("request_id", requestId); + } + if (cashtrayId != null) { + put("cashtray_id", cashtrayId); + } + if (accountId != null) { + put("account_id", accountId); + } + if (couponId != null) { + put("coupon_id", couponId); + } + if (strategy != null) { + put("strategy", strategy); + } + if (topupQuotaId != null) { + put("topup_quota_id", topupQuotaId); + } + }}; + } + + public final UserTransactionWithFallback send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserTransactionWithFallback.class, accessToken); + } +} 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/CreateCheckTransaction.java new file mode 100644 index 0000000..fbe9c63 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCheckTransaction.java @@ -0,0 +1,69 @@ +// 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 CreateCheckTransaction extends BankRequest { + private String requestId; + private String checkId; + private String accountId; + private Integer topupQuotaId; + + public CreateCheckTransaction(String checkId) { + this.checkId = checkId; + } + + public CreateCheckTransaction requestId(String requestId) { + this.requestId = requestId; + return this; + } + + public CreateCheckTransaction accountId(String accountId) { + this.accountId = accountId; + return this; + } + + public CreateCheckTransaction topupQuotaId(Integer topupQuotaId) { + this.topupQuotaId = topupQuotaId; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/transactions" + "/check"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (requestId != null) { + put("request_id", requestId); + } + if (checkId != null) { + put("check_id", checkId); + } + if (accountId != null) { + put("account_id", accountId); + } + if (topupQuotaId != null) { + put("topup_quota_id", topupQuotaId); + } + }}; + } + + public final UserTransactionWithFallback send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserTransactionWithFallback.class, accessToken); + } +} 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/CreateCpmTransaction.java new file mode 100644 index 0000000..c48cd81 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCpmTransaction.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.ProcessingError; +import jp.pokepay.pokepaylib.Request; +import jp.pokepay.pokepaylib.BankAPI.autogen.responses.*; + +public class CreateCpmTransaction extends BankRequest { + private String requestId; + private String cpmToken; + private String accountId; + private Double amount; + private Product[] products; + private Integer topupQuotaId; + + public CreateCpmTransaction(String requestId, String cpmToken, double amount) { + this.requestId = requestId; + this.cpmToken = cpmToken; + this.amount = amount; + } + + public CreateCpmTransaction accountId(String accountId) { + this.accountId = accountId; + return this; + } + + public CreateCpmTransaction products(Product[] products) { + this.products = products; + return this; + } + + public CreateCpmTransaction topupQuotaId(Integer topupQuotaId) { + this.topupQuotaId = topupQuotaId; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/transactions" + "/cpm"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (requestId != null) { + put("request_id", requestId); + } + if (cpmToken != null) { + put("cpm_token", cpmToken); + } + if (accountId != null) { + put("account_id", accountId); + } + if (amount != null) { + put("amount", amount); + } + if (products != null) { + put("products", products); + } + if (topupQuotaId != null) { + put("topup_quota_id", topupQuotaId); + } + }}; + } + + public final UserTransactionWithFallback send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserTransactionWithFallback.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 809462f..4d9b409 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 @@ -13,6 +13,7 @@ public class GetListOfShops extends BankRequest { private String privateMoneyId; private String userTagGroupItemId; + private String userTagSubgroupId; private String before; private String after; private Integer perPage; @@ -26,6 +27,11 @@ public GetListOfShops userTagGroupItemId(String userTagGroupItemId) { return this; } + public GetListOfShops userTagSubgroupId(String userTagSubgroupId) { + this.userTagSubgroupId = userTagSubgroupId; + return this; + } + public GetListOfShops before(String before) { this.before = before; return this; @@ -60,6 +66,9 @@ protected final Map parameters() { if (userTagGroupItemId != null) { put("user_tag_group_item_id", userTagGroupItemId); } + if (userTagSubgroupId != null) { + put("user_tag_subgroup_id", userTagSubgroupId); + } if (before != null) { put("before", before); } diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserTagGroupItems.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserTagGroupItems.java index 661c4be..8a9cba9 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserTagGroupItems.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserTagGroupItems.java @@ -13,6 +13,7 @@ public class GetUserTagGroupItems extends BankRequest { private String organizationCode; private String tagGroupId; + private String subgroupId; private String before; private String after; private Integer perPage; @@ -22,6 +23,11 @@ public GetUserTagGroupItems(String organizationCode, String tagGroupId) { this.tagGroupId = tagGroupId; } + public GetUserTagGroupItems subgroupId(String subgroupId) { + this.subgroupId = subgroupId; + return this; + } + public GetUserTagGroupItems before(String before) { this.before = before; return this; @@ -53,6 +59,9 @@ protected final Map parameters() { if (tagGroupId != null) { put("tag_group_id", tagGroupId); } + if (subgroupId != null) { + put("subgroup_id", subgroupId); + } if (before != null) { put("before", before); } diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserTagSubgroups.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserTagSubgroups.java new file mode 100644 index 0000000..6d7251c --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetUserTagSubgroups.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 GetUserTagSubgroups extends BankRequest { + private String organizationCode; + private String tagGroupId; + private String before; + private String after; + private Integer perPage; + + public GetUserTagSubgroups(String organizationCode, String tagGroupId) { + this.organizationCode = organizationCode; + this.tagGroupId = tagGroupId; + } + + public GetUserTagSubgroups before(String before) { + this.before = before; + return this; + } + + public GetUserTagSubgroups after(String after) { + this.after = after; + return this; + } + + public GetUserTagSubgroups perPage(Integer perPage) { + this.perPage = perPage; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/user-tag-groups" + "/" + this.organizationCode + "/subgroups"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (tagGroupId != null) { + put("tag_group_id", tagGroupId); + } + if (before != null) { + put("before", before); + } + if (after != null) { + put("after", after); + } + if (perPage != null) { + put("per_page", perPage); + } + }}; + } + + public final PaginatedUserTagSubgroups send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(PaginatedUserTagSubgroups.class, accessToken); + } +} 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 59f98f8..ad151cf 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 @@ -13,5 +13,9 @@ public class CvsAuthorization extends Response { public String tel; public String pay_limit; public Account account; + public String haraikomi_url; + public String receipt_no; + public String done_at; + public String canceled_at; } diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/DetailedShopInformation.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/DetailedShopInformation.java index ab760ae..732c930 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/DetailedShopInformation.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/DetailedShopInformation.java @@ -10,6 +10,7 @@ public class DetailedShopInformation extends Response { public String business_hours; public String regular_closed_days; public String url; + public String description; public String logo_image_url; public String[] image_urls; public String address; diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedUserTagSubgroups.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedUserTagSubgroups.java new file mode 100644 index 0000000..1c3e106 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PaginatedUserTagSubgroups.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 PaginatedUserTagSubgroups extends Response { + public Integer per_page; + public Integer count; + public String next; + public String prev; + public UserTagSubgroup[] items; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTagGroup.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTagGroup.java index b285265..3d2b28c 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTagGroup.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTagGroup.java @@ -6,5 +6,6 @@ public class UserTagGroup extends Response { public String group_name; public String id; + public Boolean has_subgroups; } diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTagGroupItem.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTagGroupItem.java index d72c2db..54f05ad 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTagGroupItem.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTagGroupItem.java @@ -6,5 +6,6 @@ public class UserTagGroupItem extends Response { public String item_name; public String id; + public String subgroup_id; } diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTagSubgroup.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTagSubgroup.java new file mode 100644 index 0000000..613bb37 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTagSubgroup.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 UserTagSubgroup extends Response { + public String subgroup_name; + public String id; +} + 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 new file mode 100644 index 0000000..c05e029 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithFallback.java @@ -0,0 +1,25 @@ +// DO NOT EDIT: File is generated by code generator. +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; + 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; + public UserTransferWithoutAccount[] transfers; + public UserTransactionWithTransfers[] fallback_transactions; +} +