Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,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<String, Object> parameters() {
return new HashMap<String, Object>() {{
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);
}
}
Original file line number Diff line number Diff line change
@@ -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<String, Object> parameters() {
return new HashMap<String, Object>() {{
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);
}
}
Original file line number Diff line number Diff line change
@@ -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<String, Object> parameters() {
return new HashMap<String, Object>() {{
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);
}
}
Original file line number Diff line number Diff line change
@@ -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<String, Object> parameters() {
return new HashMap<String, Object>() {{
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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -60,6 +66,9 @@ protected final Map<String, Object> 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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -53,6 +59,9 @@ protected final Map<String, Object> parameters() {
if (tagGroupId != null) {
put("tag_group_id", tagGroupId);
}
if (subgroupId != null) {
put("subgroup_id", subgroupId);
}
if (before != null) {
put("before", before);
}
Expand Down
Loading