diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/README.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/README.md new file mode 100644 index 0000000..bb8b643 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/README.md @@ -0,0 +1,113 @@ + +## API Operations + +### Terminal +- [GetTerminal](./terminal.md#get-terminal): 端末の情報を取得 +- [UpdateTerminal](./terminal.md#update-terminal): 端末の情報を変更 +- [AddTerminalPublicKey](./terminal.md#add-terminal-public-key): 端末に新たな公開鍵を追加 + +### Check +- [DeleteCheck](./check.md#delete-check): チャージQRコードを無効にする +- [GetCheck](./check.md#get-check): チャージQRコードを取得する +- [UpdateCheck](./check.md#update-check): チャージQRコードを修正する +- [CreateCheck](./check.md#create-check): チャージQRコードの発行する + +### Bill +- [DeleteBill](./bill.md#delete-bill): 作成済みBillを無効化する +- [GetBill](./bill.md#get-bill): 作成済みBillの設定内容を参照する +- [UpdateBill](./bill.md#update-bill): Billの設定内容を更新 +- [ListBillTransactions](./bill.md#list-bill-transactions): Billによる取引一覧を取得する +- [GetBillLastTransaction](./bill.md#get-bill-last-transaction): Get the last transaction of bill +- [CreateBill](./bill.md#create-bill): 支払い用QR(トークン)を新規登録 + +### Cashtray +- [DeleteCashtray](./cashtray.md#delete-cashtray): Cashtrayを無効化 +- [GetCashtray](./cashtray.md#get-cashtray): Cashtrayの設定内容を参照 +- [UpdateCashtray](./cashtray.md#update-cashtray): Cashtrayの設定内容を更新 +- [CreateCashtray](./cashtray.md#create-cashtray): Cashtrayを新規登録 +- [GetCashtrayAttempts](./cashtray.md#get-cashtray-attempts): Cashtrayを利用した決済の状況を確認 + +### Credit Card +- [GetCreditCards](./credit_card.md#get-credit-cards): Get user credit cards +- [CreateCreditCard](./credit_card.md#create-credit-card): Create user credit card +- [DeleteCreditCard](./credit_card.md#delete-credit-card): Create user credit card +- [TopupWithCreditCardMembership](./credit_card.md#topup-with-credit-card-membership): 会員情報によるクレジットカードチャージ +- [TopupWithCreditCardMdkToken](./credit_card.md#topup-with-credit-card-mdk-token): MDKトークンによるクレジットカードチャージ + +### User +- [GetUser](./user.md#get-user): Show the user information +- [UpdateUser](./user.md#update-user): ユーザ情報の更新 +- [GetUserWithAuthFactors](./user.md#get-user-with-auth-factors): ユーザの認証情報の取得 +- [GetUserTransactions](./user.md#get-user-transactions): 取引情報の取得 +- [GetUserAccounts](./user.md#get-user-accounts): ユーザのアカウント一覧取得 +- [GetUserSettingUrl](./user.md#get-user-setting-url): 一時的なフルアクセスを許可する認証のためのURLを取得 + +### Bank +- [DeleteBank](./bank.md#delete-bank): 銀行口座との連携を解除 +- [ListBanks](./bank.md#list-banks): 登録済みの銀行一覧の取得 +- [BankTopUp](./bank.md#bank-top-up): 登録した銀行からのチャージ + +### Merchants +- [ListMerchantTransactions](./merchants.md#list-merchant-transactions): Show the merchant's transaction + +### Transaction +- [GetTransaction](./transaction.md#get-transaction): 取引情報取得 +- [RefundTransaction](./transaction.md#refund-transaction): 取引キャンセル +- [ListBillTransactions](./transaction.md#list-bill-transactions): Billによる取引一覧を取得する +- [GetBillLastTransaction](./transaction.md#get-bill-last-transaction): Get the last transaction of bill +- [GetUserTransactions](./transaction.md#get-user-transactions): 取引情報の取得 +- [GetAccountTransactions](./transaction.md#get-account-transactions): 取引履歴取得 +- [SendToAccount](./transaction.md#send-to-account): Send money to an account +- [GetAccountTransfers](./transaction.md#get-account-transfers): 取引明細一覧 + +### Account +- [GetUserAccounts](./account.md#get-user-accounts): ユーザのアカウント一覧取得 +- [GetAccount](./account.md#get-account): ウォレット情報を取得する +- [UpdateAccount](./account.md#update-account): Update account information +- [CreateAccount](./account.md#create-account): アカウント作成 +- [GetAccountTransactions](./account.md#get-account-transactions): 取引履歴取得 +- [SendToAccount](./account.md#send-to-account): Send money to an account +- [GetAccountTransfers](./account.md#get-account-transfers): 取引明細一覧 +- [GetAccountBalances](./account.md#get-account-balances): 残高内訳を取得する +- [CreateAccountCpmToken](./account.md#create-account-cpm-token): CPMトークン作成 +- [GetAccountCoupons](./account.md#get-account-coupons): クーポン表示 +- [GetAccountCouponDetail](./account.md#get-account-coupon-detail): クーポンを取得する +- [PatchAccountCouponDetail](./account.md#patch-account-coupon-detail): クーポンを受け取る +- [IdentifyIndividual](./account.md#identify-individual): マイナンバー確認セッションを作成する + +### Individual Number Identification +- [IdentifyIndividual](./individual_number_identification.md#identify-individual): マイナンバー確認セッションを作成する + +### Campaign +- [GetAccountCampaignPointAmounts](./campaign.md#get-account-campaign-point-amounts): キャンペーンのポイント付与総額取得 + +### Cpm +- [CreateAccountCpmToken](./cpm.md#create-account-cpm-token): CPMトークン作成 +- [GetCpmToken](./cpm.md#get-cpm-token): CPMトークンの情報を取得 + +### Sevenbankatm + +### Coupon +- [GetAccountCoupons](./coupon.md#get-account-coupons): クーポン表示 +- [GetAccountCouponDetail](./coupon.md#get-account-coupon-detail): クーポンを取得する +- [PatchAccountCouponDetail](./coupon.md#patch-account-coupon-detail): クーポンを受け取る +- [GetPrivateMoneyCoupons](./coupon.md#get-private-money-coupons): マネーのクーポン情報を取得 + +### Private Money +- [GetPrivateMoney](./private_money.md#get-private-money): マネー情報を取得 +- [GetPrivateMoneyTerms](./private_money.md#get-private-money-terms): Get the private money terms +- [GetPrivateMoneyPrivacyPolicy](./private_money.md#get-private-money-privacy-policy): Get the private money pricvacy-policy +- [GetPrivateMoneyPaymentAct](./private_money.md#get-private-money-payment-act): Get the private money payment-act +- [GetPrivateMoneyCommercialAct](./private_money.md#get-private-money-commercial-act): Get the private money commercial-act +- [GetUserAttributeSchema](./private_money.md#get-user-attribute-schema): ユーザアンケート項目 +- [ListPrivateMoneys](./private_money.md#list-private-moneys): マネー一覧を取得する + +### Voucher + +### Open Exchange Rates + +### Payspot + +### Internal +- [GetUserAttributeSchema](./internal.md#get-user-attribute-schema): ユーザアンケート項目 + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/account.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/account.md new file mode 100644 index 0000000..9ed2fbc --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/account.md @@ -0,0 +1,1054 @@ +# Account +ウォレットを表すデータです。 +CustomerもMerchantも所有し、同一ウォレット間の送金は取引として記録されます。 +Customerのウォレットはマネー残高(有償バリュー)、ポイント残高(無償バリュー)の2種類の残高をもちます。 +また有効期限別で金額管理しており、有効期限はチャージ時のコンテキストによって決定されます。 +ユーザはマネー別に複数のウォレットを保有することが可能です。 +ただし1マネー1ウォレットのみであり、同一マネーのウォレットを複数所有することはできません。 + + + +## GetUserAccounts: ユーザのアカウント一覧取得 +ユーザのアカウント一覧を取得します + +```java +Request request = new GetUserAccounts( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .before("8vSsZQw") + .after("Hu7ykbtk") + .perPage(72); + +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + + +```json +{ + "type": "string" +} +``` + +**`after`** + + + +```json +{ + "type": "string" +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + + + +成功したときは +[PaginatedUserAccounts](./responses.md#paginated-user-accounts) +を返します + + + +--- + + + +## GetAccount: ウォレット情報を取得する +指定したウォレットの情報を取得します。 + +```java +Request request = new GetAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットIDです。 +); + +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[AccountDetail](./responses.md#account-detail) +を返します + + + +--- + + + +## UpdateAccount: Update account information + +```java +Request request = new UpdateAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットIDです。 +) + .name("PhzROeLpMaUZfjz7mGpF3omDB92rueqlm"); + +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + + + +成功したときは +[AccountDetail](./responses.md#account-detail) +を返します + + + +--- + + + +## CreateAccount: アカウント作成 +新規アカウントを作成します。 + +```java +Request request = new CreateAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID +) + .name("nAfu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCD") // 名前 + .externalId("87kJG01a7GOWj7LV4v5yotPxhlRj2vkjikjfO"); // 外部ID + +``` + + + +### Parameters +**`name`** + + +作成するアカウントの名前です。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`private_money_id`** + + +作成するアカウントに紐づくマネーのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`external_id`** + + +作成するアカウントに紐づく外部IDです。 + +```json +{ + "type": "string", + "maxLength": 50 +} +``` + + + +成功したときは +[AccountDetail](./responses.md#account-detail) +を返します + + + +--- + + + +## GetAccountTransactions: 取引履歴取得 +指定したIDのウォレットの取引履歴を取得します。 + +```java +Request request = new GetAccountTransactions( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .before("Zy9zD8") // ページングのためのパラメータです。 + .after("fycx") // ページングのためのパラメータです。 + .perPage(38); // 1ページあたりに表示する取引履歴の件数です。デフォルト値は30件です。 + +``` + + + +### Parameters +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + +ページングのためのパラメータです。 +指定したIDの要素より後の取引履歴が返されます。 +直前のページの最後の要素のIDを指定することで次のページへ遷移することができます。 +ここで指定したIDの要素それ自体は結果に含まれないことに注意してください。 + +```json +{ + "type": "string" +} +``` + +**`after`** + + +ページングのためのパラメータです。 +指定したIDの要素より前の取引履歴が返されます。 +直前のページの最初の要素のIDを指定することで前のページへ遷移することができます。 +ここで指定したIDの要素それ自体は結果に含まれないことに注意してください。 + +```json +{ + "type": "string" +} +``` + +**`per_page`** + + +1ページあたりに表示する取引履歴の件数です。デフォルト値は30件です。 + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + + + +成功したときは +[PaginatedAccountTransactions](./responses.md#paginated-account-transactions) +を返します + + + +--- + + + +## SendToAccount: Send money to an account + +```java +Request request = new SendToAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + 5727.0 +) + .receiverTerminalId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") + .senderAccountId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") + .description("jXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T"); + +``` + + + +### Parameters +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`receiver_terminal_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`sender_account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + + + +成功したときは +[UserTransaction](./responses.md#user-transaction) +を返します + + + +--- + + + +## GetAccountTransfers: 取引明細一覧 +指定したウォレットIDの取引履歴を明細レベルで取得します。 +取引明細には返金やキャンペーンによるポイント付与などが含まれます。 + +```java +Request request = new GetAccountTransfers( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .before("bk20dI") // ページングのためのパラメータです。 + .after("uB") // ページングのためのパラメータです。 + .perPage(34); // 1ページあたりに表示する取引履歴の件数です。デフォルト値は30件です。 + +``` + + + +### Parameters +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + +ページングのためのパラメータです。 +指定したIDの要素より後の取引履歴が返されます。 +直前のページの最後の要素のIDを指定することで次のページへ遷移することができます。 +ここで指定したIDの要素それ自体は結果に含まれないことに注意してください。 + +```json +{ + "type": "string" +} +``` + +**`after`** + + +ページングのためのパラメータです。 +指定したIDの要素より前の取引履歴が返されます。 +直前のページの最初の要素のIDを指定することで前のページへ遷移することができます。 +ここで指定したIDの要素それ自体は結果に含まれないことに注意してください。 + +```json +{ + "type": "string" +} +``` + +**`per_page`** + + +1ページあたりに表示する取引履歴の件数です。デフォルト値は30件です。 + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + + + +成功したときは +[PaginatedAccountTransfers](./responses.md#paginated-account-transfers) +を返します + + + +--- + + + +## GetAccountBalances: 残高内訳を取得する +指定したウォレットの有効期限別残高一覧を取得します。 + +```java +Request request = new GetAccountBalances( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットIDです。 + "false" // expired: 失効済みの残高を表示するかどうかのフラグです。 +) + .before("2021-01-01T01:49:11.000000+09:00") // 有効期限によるフィルターの期間指定のために使います。 + .after("2023-01-10T18:58:07.000000+09:00") // 有効期限によるフィルターの期間指定のために使います。 + .perPage(18); // 1ページ当たり取得数です。デフォルト値は30です。 + +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + +有効期限によるフィルターの期間指定のために使います。 +このパラメータを指定すると、有効期限が指定した日時より前の残高が抽出されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`after`** + + +有効期限によるフィルターの期間指定のために使います。 +このパラメータを指定すると、有効期限が指定した日時より後の残高が抽出されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`per_page`** + + +1ページ当たり取得数です。デフォルト値は30です。 + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + +**`expired`** + + +失効済みの残高を表示するかどうかのフラグです。 +trueの場合、失効済みの残高のみを取得し、falseの場合は有効な残高のみを取得します。 +デフォルト値はfalseです。 + +```json +{ + "type": "string", + "enum": [ + "true", + "false" + ] +} +``` + + + +成功したときは +[PaginatedAccountBalances](./responses.md#paginated-account-balances) +を返します + + + +--- + + + +## CreateAccountCpmToken: CPMトークン作成 +ユーザのウォレットID (account_id) を指定してCPMトークンを作成します。 + +```java +Request request = new CreateAccountCpmToken( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .scopes(new String[]{"external-transaction","topup","payment"}) + .expiresIn(1732367) // 有効期限 + .metadata("5ag") // 取引メタデータ + .keepAlive(false) // 後続のCPMトークン生成時における失効回避フラグ + .setShortToken(true); // 短縮コード生成フラグ + +``` + + + +### Parameters +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`scopes`** + + + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "payment", + "topup", + "external-transaction" + ] + } +} +``` + +**`expires_in`** + + +CPMトークンの有効期限です。単位は秒で、デフォルトの値は300秒(5分)です。 +最大値は2592000秒(30日)ですが、セキュリティの観点では短い時間が望ましいとされています。 + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 2592000 +} +``` + +**`metadata`** + + +CPMトークンにメタデータを設定します。 +ここで指定したメタデータは取引作成時に引き継がれ、キャンペーンの発火条件などに使用されます。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`keep_alive`** + + +通常、新しいCPMトークンが生成されると、それまでに作られたCPMトークンはたとえ有効期限内であっても失効します。 +keep_aliveフラグを true にすると、後のCPMトークン生成時にも失効させられないCPMトークンを作ることができます。 +テスト時などに長寿命のCPMトークンを作る際に、同時に指定することが多いです。 +デフォルトでは false になります。 + +```json +{ + "type": "boolean" +} +``` + +**`is_short_token`** + + +このパラメータが true に設定されているとき、20桁に短縮されたCPMトークンが生成されます。 +通常は22桁で、下位8桁がランダム部分ですが、is_short_tokenを true にすると下位6桁がランダム部分になります。 +デフォルトではfalseで、22桁のCPMトークンが生成されます。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[CpmToken](./responses.md#cpm-token) +を返します + + + +--- + + + +## GetAccountCoupons: クーポン表示 +指定したアカウントが対象のクーポンを取得します。 + +```java +Request request = new GetAccountCoupons( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "true" // isAvailable: 利用可能なクーポンのみを表示するかどうかのフラグです。 +) + .before("EGickpeze5") // ページングのためのパラメータです。 + .after("n7vyzhltNB") // ページングのためのパラメータです。 + .perPage(2742); // 1ページあたりに表示するクーポンの件数です。デフォルト値は30件です。 + +``` + + + +### Parameters +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_available`** + + +利用可能なクーポンのみを表示するかどうかのフラグです。 +デフォルト値はtrueです。 + +```json +{ + "type": "string", + "enum": [ + "true", + "false" + ] +} +``` + +**`before`** + + +ページングのためのパラメータです。 +指定したIDの要素より後の取引履歴が返されます。 +直前のページの最後の要素のIDを指定することで次のページへ遷移することができます。 +ここで指定したIDの要素それ自体は結果に含まれないことに注意してください。 + +```json +{ + "type": "string" +} +``` + +**`after`** + + +ページングのためのパラメータです。 +指定したIDの要素より前の取引履歴が返されます。 +直前のページの最初の要素のIDを指定することで前のページへ遷移することができます。 +ここで指定したIDの要素それ自体は結果に含まれないことに注意してください。 + +```json +{ + "type": "string" +} +``` + +**`per_page`** + + +1ページあたりに表示するクーポンの件数です。デフォルト値は30件です。 + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedAccountCoupons](./responses.md#paginated-account-coupons) +を返します + + + +--- + + + +## GetAccountCouponDetail: クーポンを取得する +指定したウォレットのクーポンを取得します。 + +```java +Request request = new GetAccountCouponDetail( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットIDです。 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // couponId: クーポンIDです。 +); + +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`coupon_id`** + + +クーポンIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[CouponDetail](./responses.md#coupon-detail) +を返します + + + +--- + + + +## PatchAccountCouponDetail: クーポンを受け取る +指定したウォレットに、クーポンを追加します。 + +```java +Request request = new PatchAccountCouponDetail( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットIDです。 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // couponId: クーポンIDです。 +) + .setReceived(false) // 指定したクーポンが過去にウォレットが取得したかを示すブーリアン値です。デフォルト値は真です。 + .code("jt157"); // クーポン取得に必要なコードを表す文字列です。 + +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`coupon_id`** + + +クーポンIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_received`** + + +指定したクーポンが過去にウォレットが取得したかを示すブーリアン値です。デフォルト値は真です。 + +```json +{ + "type": "boolean" +} +``` + +**`code`** + + +クーポン取得に必要なコードを表す文字列です。 + +```json +{ + "type": "string" +} +``` + + + +成功したときは +[CouponDetail](./responses.md#coupon-detail) +を返します + + + +--- + + + +## IdentifyIndividual: マイナンバー確認セッションを作成する +指定したウォレットのマイナンバー(個人番号)を確認するためのセッションを作成します。 + +このAPIのパラメータは全てマイナンバーカードからAndroid/iOSのeKYCライブラリで取得できるものです。 +氏名、性別、住所、生年月日もマイナンバーカードから外部通信なしで取得できます。 +APIの氏名、性別、住所、生年月日はオプショナルですが、これらを送ることにより実際に登録されているものと一致しているかどうかがそれぞれbooleanで返されます。 + +```java +Request request = new IdentifyIndividual( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットIDです。 + "B8n6", // signature: 電子署名 + "bE", // signingCert: 電子証明書 + "cc" // expectedHash: メッセージダイジェスト +) + .name("TMUOFUG") // 氏名 + .gender("female") // 性別 + .address("me9wlEE") // 住所 + .dateOfBirth("j2gZ-8c-mF"); // 生年月日 + +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`signature`** + + +マイナンバーカードの電子署名機能により作成された電子署名です。 + +Base64符号化したものを指定してください。 + +```json +{ + "type": "string" +} +``` + +**`signing_cert`** + + +電子署名に用いた署名用電子証明書です。 + +Base64符号化したものを指定してください。 + +```json +{ + "type": "string" +} +``` + +**`expected_hash`** + + +本文から算出したメッセージダイジェストです。 + +ハッシュアルゴリズムはSHA256です。 +Base64符号化したものを指定してください。 + +```json +{ + "type": "string" +} +``` + +**`name`** + + +氏名です。 + +スペースは無視されます。公的個人認証で表示できないものは、正式な氏名ではなく代替文字との比較になります。 + +```json +{ + "type": "string" +} +``` + +**`gender`** + + +性別です。 + +male, female, otherのいずれかを選択できます。 + +```json +{ + "type": "string", + "enum": [ + "male", + "female", + "other" + ] +} +``` + +**`address`** + + +住所です。 + +スペースは無視されます。公的個人認証で表示できないものは、正式な住所ではなく代替文字との比較になります。 + +```json +{ + "type": "string" +} +``` + +**`date_of_birth`** + + +生年月日です。 + +```json +{ + "type": "string", + "pattern": "^\\w{4}-?\\w{2}-?\\w{2}$" +} +``` + + + +成功したときは +[IdentificationResult](./responses.md#identification-result) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/bank.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/bank.md new file mode 100644 index 0000000..fae64c7 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/bank.md @@ -0,0 +1,154 @@ +# Bank +チャージのために利用される金融機関口座を表すデータです。 +口座番号などのデータはPokepayサーバでは管理対象外(決済GW側で保有)です。 +口座登録は決済GWの用意する専用websiteにて実施されます。 +利用口座を保存しておくことが可能であり、保存済み口座リストをあとから取得できます。 +チャージ金額はマネー設定の範囲内でユーザが任意の金額を指定可能です。 + + + + +## ListBanks: 登録済みの銀行一覧の取得 +ユーザが登録した銀行の一覧を取得します + +private_money_idを指定すると、対象のマネーに登録した銀行のみ取得できます + +```java +Request request = new ListBanks( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // userId: ユーザID +) + .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // マネーIDを指定します + +``` + + + +### Parameters +**`user_id`** + + +ユーザID + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDを指定します + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserBanks](./responses.md#user-banks) +を返します + + + +--- + + + +## BankTopUp: 登録した銀行からのチャージ +ユーザの登録した銀行から、対象のマネーのアカウントにチャージします + +```java +Request request = new BankTopUp( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ユーザのアカウント + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // bankId: 銀行ID + 8673 // amount: チャージ金額 +) + .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID + +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`account_id`** + + +対象のマネーのアカウントを指定します + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`bank_id`** + + +登録した銀行のIDを指定します + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +チャージしたい金額を指定します + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです + +後から対象の取引を `GetTransactionByRequestId` を使って取り出すために用いられます + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserTransaction](./responses.md#user-transaction) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/bill.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/bill.md new file mode 100644 index 0000000..5a58eff --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/bill.md @@ -0,0 +1,425 @@ +# Bill +支払いトークン(URL形式)を表すデータです。 +URL文字列のまま利用されるケースとQR画像化して利用されるケースがあります。 +ログイン済みユーザアプリで読込むことで、支払い取引を作成します。 +設定される支払い金額(amount)は、固定値とユーザによる自由入力の2パターンがあります。 +amountが空の場合は、ユーザによる自由入力で受け付けた金額で支払いを行います。 +有効期限は比較的長命で利用される事例が多いです。 + +複数マネー対応支払いコードについて: +オプショナルで複数のマネーを1つの支払いコードに設定可能です。 +その場合ユーザ側でどのマネーで支払うか指定可能です。 +複数マネー対応支払いコードにはデフォルトのマネーウォレットを設定する必要があり、ユーザがマネーを明示的に選択しなかった場合はデフォルトのマネーによる支払いになります。 + + + + +## GetBill: 作成済みBillの設定内容を参照する +作成済みBillの設定内容を参照する + +```java +Request request = new GetBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // billId: 参照したいBillのIDを指定する +) + .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // マネーIDを指定します + +``` + + + +### Parameters +**`bill_id`** + + +参照したいBillのIDを指定する + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDを指定します + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[BillWithAdditionalPrivateMoneys](./responses.md#bill-with-additional-private-moneys) +を返します + + + +--- + + + +## UpdateBill: Billの設定内容を更新 +支払いQRコードの内容を更新します。支払い先の店舗ユーザは指定したマネーのウォレットを持っている必要があります。 + +```java +JsonObject items = new JsonObject(); +items.addProperty("jan_code", "abc"); +items.addProperty("name", "name1"); +items.addProperty("unit_price", 100); +items.addProperty("price", 100); +items.addProperty("quantity", 1); +items.addProperty("is_discounted", false); +items.addProperty("other", "{}"); +Request request = new UpdateBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // billId: 参照したいBillのIDを指定する +) + .amount(4557) // 支払い金額を指定する + .description("zg2AFGgoFwChMKyFjnp6NWuVT") // 支払いQRに用途メモをつける + .products(new Product[]{items}); // Billによる支払いの対象商品情報をつける + +``` + + + +### Parameters +**`bill_id`** + + +参照したいBillのIDを指定する + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +支払い金額を指定する + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`description`** + + +支払いQRに用途メモをつける + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`products`** + + +Billによる支払いの対象商品情報をつける + +```json +{ + "type": "array", + "items": { + "type": "Product" + } +} +``` + + + +成功したときは +[Bill](./responses.md#bill) +を返します + + + +--- + + + +## ListBillTransactions: Billによる取引一覧を取得する +ワンタイムでない支払いQRコード(Bill)の場合、複数の支払い取引が発生し得ます。 +このAPIでは、BillのIDからそのBillから発生した支払い取引のリストを取得します。 + + +```java +Request request = new ListBillTransactions( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .before("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") + .after("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") + .perPage(59); + +``` + + + +### Parameters +**`bill_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`after`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + + + + + + +--- + + + +## GetBillLastTransaction: Get the last transaction of bill + +```java +Request request = new GetBillLastTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // billId: 支払いQRコードID +); + +``` + + + +### Parameters +**`bill_id`** + + +支払いQRコードID + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserTransaction](./responses.md#user-transaction) +を返します + + + +--- + + + +## CreateBill: 支払い用QR(トークン)を新規登録 +支払いQRコードの新たに作成します。支払い先の店舗ユーザは指定したマネーのウォレットを持っている必要があります。 + +```java +JsonObject items = new JsonObject(); +items.addProperty("jan_code", "abc"); +items.addProperty("name", "name1"); +items.addProperty("unit_price", 100); +items.addProperty("price", 100); +items.addProperty("quantity", 1); +items.addProperty("is_discounted", false); +items.addProperty("other", "{}"); +JsonObject items2 = new JsonObject(); +items2.addProperty("jan_code", "abc"); +items2.addProperty("name", "name1"); +items2.addProperty("unit_price", 100); +items2.addProperty("price", 100); +items2.addProperty("quantity", 1); +items2.addProperty("is_discounted", false); +items2.addProperty("other", "{}"); +Request request = new CreateBill() + .amount(1412.0) // 支払い金額 + .accountId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 支払い先AccountID + .additionalAccountIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 追加マネーIDリスト + .description("kHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8LerXQe8LjF8Q6qvpD5Z") // 支払い用途説明欄 + .setOnetime(true) // ワンタイム設定 + .minAmount(7618.0) // 支払い可能最小金額 + .maxAmount(7159.0) // 支払い可能最大金額 + .products(new Product[]{items,items2}) // 購入商品情報 + .metadata("FvQ1skGDi"); // 支払い補足情報 + +``` + + + +### Parameters +**`amount`** + + +支払いQRコードの支払い金額を指定する。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザがアプリで読み取った際に金額を入力させます。 + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 1 +} +``` + +**`account_id`** + + +支払い先となるウォレット(Account)を指定します。支払い先がCustomer, Merchant所有のAccountどちらのケースも存在します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`additional_account_ids`** + + +1つのBillで複数マネー対応したい場合に指定します。account_id以外の電子マネーでユーザ支払いを受け付けたい場合に利用します + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`description`** + + +支払い用途などを記載するメモ欄です。 +取引のdescriptionにも転写されるのでエンドユーザにも見えるデータとなります。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`is_onetime`** + + +1回のみ利用可能なワンタイムトークンとする場合にtrueを指定します + +```json +{ + "type": "boolean" +} +``` + +**`min_amount`** + + +Billを利用して支払い可能な最小金額(含む)を指定することが可能です + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`max_amount`** + + +Billを利用して支払い可能な最大金額(含む)を指定することが可能です + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`products`** + + +購入商品情報を任意で持たせることが可能です + +```json +{ + "type": "array", + "items": { + "type": "Product" + } +} +``` + +**`metadata`** + + +任意の補足情報をメタ情報として持たせることが可能です + +```json +{ + "type": "string", + "format": "json" +} +``` + + + +成功したときは +[Bill](./responses.md#bill) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/campaign.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/campaign.md new file mode 100644 index 0000000..f5a5647 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/campaign.md @@ -0,0 +1,59 @@ +# Campaign +自動ポイント還元ルールの設定を表すデータです。 +Pokepay管理画面やPartnerSDK経由でルール登録、更新が可能です。 +取引(Transaction)または外部決済イベント(ExternalTransaction)の内容によって還元するポイント額を計算し、自動で付与するルールを設定可能です。 +targetとして取引または外部決済イベントを選択して個別設定します。 + + + +## GetAccountCampaignPointAmounts: キャンペーンのポイント付与総額取得 +対象のウォレットにおいて、指定キャンペーンにより付与されたポイントの総額を取得します。 +キャンペーンの設定によってはユーザ毎にポイントの累積での付与上限が決められている場合があり、 +現時点でユーザがどれだけのポイントを受け取っているのかを表示するときに必要になります。 + + +```java +Request request = new GetAccountCampaignPointAmounts( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); + +``` + + + +### Parameters +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`campaign_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[AccountCampaignPointAmounts](./responses.md#account-campaign-point-amounts) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/cashtray.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/cashtray.md new file mode 100644 index 0000000..48c7d24 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/cashtray.md @@ -0,0 +1,272 @@ +# Cashtray +設定金額(正負)によって、支払い/チャージトークンの双方を表すデータです。 +対面決済において、店舗側アプリケーションによって動的に生成、ユーザへ提示されることを想定しています。 +そのためCashtrayを作成できるのは店舗ユーザのみで、ユーザによって読み取られることにより取引が作成されます。 +店舗ユーザはCashtrayの状態を監視することができ、取引の成否やエラー事由を知ることができます。 + +作成時には、設定金額が正の整数である場合はチャージとなり、設定金額が負の整数である場合は支払いとなります。 +読み取り後、取引の成否に関わらず1回のみしか利用できないワンタイムトークンです。 +有効期限は短命で利用される事例が多いです。これは対面ですぐに読み取られることを想定運用としているためです。 + + + + +## GetCashtray: Cashtrayの設定内容を参照 +作成済みCashtrayの設定内容を確認したいケースに利用します + +```java +Request request = new GetCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // cashtrayId: 確認するCashtrayのID(トークン作成時のレスポンスに含まれるID) +); + +``` + + + +### Parameters +**`cashtray_id`** + + +確認するCashtrayのID(トークン作成時のレスポンスに含まれるID) + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[CashtrayWithAttemptAndTransaction](./responses.md#cashtray-with-attempt-and-transaction) +を返します + + + +--- + + + +## UpdateCashtray: Cashtrayの設定内容を更新 +作成済みCashtrayの設定値を変更したいケースに利用します + +```java +JsonObject items = new JsonObject(); +items.addProperty("jan_code", "abc"); +items.addProperty("name", "name1"); +items.addProperty("unit_price", 100); +items.addProperty("price", 100); +items.addProperty("quantity", 1); +items.addProperty("is_discounted", false); +items.addProperty("other", "{}"); +JsonObject items2 = new JsonObject(); +items2.addProperty("jan_code", "abc"); +items2.addProperty("name", "name1"); +items2.addProperty("unit_price", 100); +items2.addProperty("price", 100); +items2.addProperty("quantity", 1); +items2.addProperty("is_discounted", false); +items2.addProperty("other", "{}"); +JsonObject items3 = new JsonObject(); +items3.addProperty("jan_code", "abc"); +items3.addProperty("name", "name1"); +items3.addProperty("unit_price", 100); +items3.addProperty("price", 100); +items3.addProperty("quantity", 1); +items3.addProperty("is_discounted", false); +items3.addProperty("other", "{}"); +Request request = new UpdateCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // cashtrayId: 確認するCashtrayのID(トークン作成時のレスポンスに含まれるID) +) + .amount(8764) // 決済金額 + .description("XFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDa") // 決済用途説明欄 + .expiresIn(7893) // トークン有効秒数 + .products(new Product[]{items,items2,items3}); // 購入商品情報 + +``` + + + +### Parameters +**`cashtray_id`** + + +確認するCashtrayのID(トークン作成時のレスポンスに含まれるID) + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +決済金額を指定します。正の整数が支払い、負の整数がチャージ決済を意味します + +```json +{ + "type": "integer" +} +``` + +**`description`** + + +決済用途メモを指定します。決済完了時の取引データの説明欄に転写されます + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`expires_in`** + + +Cashtrayトークンが有効な期間を秒数で指定します + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`products`** + + +任意で購入商品情報を指定することが可能です + +```json +{ + "type": "array", + "items": { + "type": "Product" + } +} +``` + + + +成功したときは +[Cashtray](./responses.md#cashtray) +を返します + + + +--- + + + +## CreateCashtray: Cashtrayを新規登録 +エンドユーザに対して支払いまたはチャージを行う店舗の情報(店舗ユーザIDとマネーID)と、取引金額が必須項目です。 +店舗ユーザIDとマネーIDから店舗ウォレットを特定します。 +その他に、Cashtrayから作られる取引に対する説明文や失効時間を指定できます。 + + +```java +Request request = new CreateCashtray( + 9117.0 // amount: 決済金額 +) + .description("u8") // 決済用途説明欄 + .expiresIn(1895); // トークン有効秒数 + +``` + + + +### Parameters +**`amount`** + + +Cashtrayを使った決済金額を表すパラメタです。 +正の整数を指定すると支払い、 +負の整数を指定するとチャージとなります。 + +```json +{ + "type": "number", + "format": "decimal" +} +``` + +**`description`** + + +Cashtrayの用途などを記載するメモ欄です。 +取引のdescriptionにも転写されるのでエンドユーザにも見えるデータとなります。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`expires_in`** + + +Cashtrayトークンが有効な期間を秒数で指定します + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 0 +} +``` + + + +成功したときは +[Cashtray](./responses.md#cashtray) +を返します + + + +--- + + + +## GetCashtrayAttempts: Cashtrayを利用した決済の状況を確認 +CashtrayはMPM方式で利用されるトークンであり、決済実行する主体はユーザアプリとなるため、店舗側(レジなど)が決済状況を確認するために利用します。 +取引が成功した場合は取引データを取得でき、失敗した際はエラー内容を参照できます。 + +```java +Request request = new GetCashtrayAttempts( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // cashtrayId: 確認するCashtrayのIDを指定します(トークン作成時のレスポンスに含まれるID) +); + +``` + + + +### Parameters +**`cashtray_id`** + + +確認するCashtrayのIDを指定します(トークン作成時のレスポンスに含まれるID) + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[CashtrayAttempts](./responses.md#cashtray-attempts) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/check.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/check.md new file mode 100644 index 0000000..0a86c30 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/check.md @@ -0,0 +1,370 @@ +# Check +チャージトークン(URL形式)を表すデータです。 +URL文字列のまま利用されるケースとQR画像化して利用されるケースがあります。 +ログイン済みユーザアプリで読込むことで、チャージ取引を作成します。 +設定されるチャージ金額(amount)は固定であり、データ作成時に指定可能です。 +1ユーザあたり1回しか読込みできない制限があります。 +有効期限は比較的長命で利用される事例が多いです。 + + + + +## GetCheck: チャージQRコードを取得する +指定したIDのチャージQRコードの情報を取得します。 + +```java +Request request = new GetCheck( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // checkId: チャージQRコードID +); + +``` + + + +### Parameters +**`check_id`** + + +チャージQRコードID + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Check](./responses.md#check) +を返します + + + +--- + + + +## UpdateCheck: チャージQRコードを修正する +指定したチャージQRコードを修正します。 + +```java +Request request = new UpdateCheck( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // checkId: チャージQRコードID +) + .amount(8494.0) // 付与マネー額 + .description("RAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6") // 説明文 + .expiresAt("2023-06-18T04:49:12.000000+09:00") // 失効日時 + .pointExpiresAt("2023-05-19T15:58:42.000000+09:00") // ポイント失効日時 + .pointExpiresInDays(7925); // ポイント失効相対日数 + +``` + + + +### Parameters +**`check_id`** + + +チャージQRコードID + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +チャージQRコードによって付与されるマネー額です。 + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 1 +} +``` + +**`description`** + + +チャージQRコードの説明文です。 + +チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`expires_at`** + + +チャージQRコード自体の失効日時を指定します。 + +この日時以降はチャージQRコードを読み取れなくなります。 +チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_at`** + + +チャージQRコードによって付与されるポイント残高の有効期限を指定します。 + +チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 +マネー残高の有効期限はマネーの設定に準じます。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_in_days`** + + +チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 + +1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 +`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 +`point_expires_at`と`point_expires_in_days`が両方NULLに設定されている場合は、マネーに設定されている残高の有効期限と同じになります。 + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[Check](./responses.md#check) +を返します + + + +--- + + + +## CreateCheck: チャージQRコードの発行する +チャージQRコードを発行します。 + +```java +Request request = new CreateCheck() + .amount(9289.0) // 付与マネー額 + .moneyAmount(1456.0) // 付与マネー額 + .pointAmount(3766.0) // 付与ポイント額 + .accountId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 送金元ウォレットID + .description("3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25uvrmGGKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkBhHXIiOwN14") // 説明文 + .setOnetime(true) // ワンタイムかどうかのフラグ + .usageLimit(9248) // ワンタイムでない場合の最大読み取り回数 + .expiresAt("2021-06-04T20:58:40.000000+09:00") // 失効日時 + .pointExpiresAt("2023-01-27T20:23:42.000000+09:00") // ポイント失効日時 + .pointExpiresInDays(7139) // ポイント失効相対日数 + .metadata("9HzT"); + +``` + + + +### Parameters +**`amount`** + + +チャージQRコードによって付与されるマネー額です。 + +`money_amount`や`point_amount`が同時に指定された場合エラーになります。 + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 1 +} +``` + +**`money_amount`** + + +チャージQRコードによって付与されるマネー額です。 + +`amount`が同時に指定された場合エラーになります。 +`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`point_amount`** + + +チャージQRコードによって付与されるポイント額です。 + +`amount`が同時に指定された場合エラーになります。 +`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`account_id`** + + +送金元のウォレットIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + +チャージQRコードの説明文です。 + +チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`is_onetime`** + + +チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 + +`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 +ただし、その場合も1ユーザにつき1回のみしか読み取れません。 + + +```json +{ + "type": "boolean" +} +``` + +**`usage_limit`** + + +複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 + +NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 +デフォルト値はNULLです。 +ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`expires_at`** + + +チャージQRコード自体の失効日時を指定します。 + +この日時以降はチャージQRコードを読み取れなくなります。 +チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_at`** + + +チャージQRコードによって付与されるポイント残高の有効期限を指定します。 + +チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_in_days`** + + +チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 + +1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 +`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 +`point_expires_at`と`point_expires_in_days`が両方NULLに設定されている場合は、マネーに設定されている残高の有効期限と同じになります。 + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`metadata`** + + + +```json +{ + "type": "string", + "format": "json" +} +``` + + + +成功したときは +[Check](./responses.md#check) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/coupon.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/coupon.md new file mode 100644 index 0000000..43beb37 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/coupon.md @@ -0,0 +1,302 @@ +# Coupon +割引クーポンを表すデータです。 +クーポンをユーザが明示的に利用することによって支払い決済時の割引(固定金額 or 割引率)が適用されます。 +クーポン原資の負担する発行店舗を設定したり、配布先を指定することも可能です。 + + + +## GetAccountCoupons: クーポン表示 +指定したアカウントが対象のクーポンを取得します。 + +```java +Request request = new GetAccountCoupons( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "true" // isAvailable: 利用可能なクーポンのみを表示するかどうかのフラグです。 +) + .before("Pubyeq") // ページングのためのパラメータです。 + .after("TUoc54HWI6") // ページングのためのパラメータです。 + .perPage(5399); // 1ページあたりに表示するクーポンの件数です。デフォルト値は30件です。 + +``` + + + +### Parameters +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_available`** + + +利用可能なクーポンのみを表示するかどうかのフラグです。 +デフォルト値はtrueです。 + +```json +{ + "type": "string", + "enum": [ + "true", + "false" + ] +} +``` + +**`before`** + + +ページングのためのパラメータです。 +指定したIDの要素より後の取引履歴が返されます。 +直前のページの最後の要素のIDを指定することで次のページへ遷移することができます。 +ここで指定したIDの要素それ自体は結果に含まれないことに注意してください。 + +```json +{ + "type": "string" +} +``` + +**`after`** + + +ページングのためのパラメータです。 +指定したIDの要素より前の取引履歴が返されます。 +直前のページの最初の要素のIDを指定することで前のページへ遷移することができます。 +ここで指定したIDの要素それ自体は結果に含まれないことに注意してください。 + +```json +{ + "type": "string" +} +``` + +**`per_page`** + + +1ページあたりに表示するクーポンの件数です。デフォルト値は30件です。 + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedAccountCoupons](./responses.md#paginated-account-coupons) +を返します + + + +--- + + + +## GetAccountCouponDetail: クーポンを取得する +指定したウォレットのクーポンを取得します。 + +```java +Request request = new GetAccountCouponDetail( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットIDです。 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // couponId: クーポンIDです。 +); + +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`coupon_id`** + + +クーポンIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[CouponDetail](./responses.md#coupon-detail) +を返します + + + +--- + + + +## PatchAccountCouponDetail: クーポンを受け取る +指定したウォレットに、クーポンを追加します。 + +```java +Request request = new PatchAccountCouponDetail( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットIDです。 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // couponId: クーポンIDです。 +) + .setReceived(false) // 指定したクーポンが過去にウォレットが取得したかを示すブーリアン値です。デフォルト値は真です。 + .code("3NxA2Qq6"); // クーポン取得に必要なコードを表す文字列です。 + +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`coupon_id`** + + +クーポンIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_received`** + + +指定したクーポンが過去にウォレットが取得したかを示すブーリアン値です。デフォルト値は真です。 + +```json +{ + "type": "boolean" +} +``` + +**`code`** + + +クーポン取得に必要なコードを表す文字列です。 + +```json +{ + "type": "string" +} +``` + + + +成功したときは +[CouponDetail](./responses.md#coupon-detail) +を返します + + + +--- + + + +## GetPrivateMoneyCoupons: マネーのクーポン情報を取得 +指定したマネーの利用可能なクーポンの一覧を返します。 + +```java +Request request = new GetPrivateMoneyCoupons( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .perPage(2); + +``` + + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`after`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + + + +成功したときは +[PaginatedPrivateMoneyCoupons](./responses.md#paginated-private-money-coupons) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/cpm.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/cpm.md new file mode 100644 index 0000000..cc1dc18 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/cpm.md @@ -0,0 +1,161 @@ +# Cpm +QRをCustomer側が提示する方式または提示するCPMトークンそのものを表すデータです。 +CPMトークンは主にQRコードとしてレジ側に提示される利用方法が一般的です。 +また顧客側がQRコードを提示される決済方式をMpmと呼びます。 + + + +## CreateAccountCpmToken: CPMトークン作成 +ユーザのウォレットID (account_id) を指定してCPMトークンを作成します。 + +```java +Request request = new CreateAccountCpmToken( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .scopes(new String[]{"topup","external-transaction","payment"}) + .expiresIn(318048) // 有効期限 + .metadata("w0VnsF") // 取引メタデータ + .keepAlive(false) // 後続のCPMトークン生成時における失効回避フラグ + .setShortToken(false); // 短縮コード生成フラグ + +``` + + + +### Parameters +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`scopes`** + + + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "payment", + "topup", + "external-transaction" + ] + } +} +``` + +**`expires_in`** + + +CPMトークンの有効期限です。単位は秒で、デフォルトの値は300秒(5分)です。 +最大値は2592000秒(30日)ですが、セキュリティの観点では短い時間が望ましいとされています。 + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 2592000 +} +``` + +**`metadata`** + + +CPMトークンにメタデータを設定します。 +ここで指定したメタデータは取引作成時に引き継がれ、キャンペーンの発火条件などに使用されます。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`keep_alive`** + + +通常、新しいCPMトークンが生成されると、それまでに作られたCPMトークンはたとえ有効期限内であっても失効します。 +keep_aliveフラグを true にすると、後のCPMトークン生成時にも失効させられないCPMトークンを作ることができます。 +テスト時などに長寿命のCPMトークンを作る際に、同時に指定することが多いです。 +デフォルトでは false になります。 + +```json +{ + "type": "boolean" +} +``` + +**`is_short_token`** + + +このパラメータが true に設定されているとき、20桁に短縮されたCPMトークンが生成されます。 +通常は22桁で、下位8桁がランダム部分ですが、is_short_tokenを true にすると下位6桁がランダム部分になります。 +デフォルトではfalseで、22桁のCPMトークンが生成されます。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[CpmToken](./responses.md#cpm-token) +を返します + + + +--- + + + +## GetCpmToken: CPMトークンの情報を取得 +CPMトークンの情報を取得します。 +内容にはユーザの口座、利用スコープ(支払い、チャージの両方またはいずれか)、トークンの有効期限、取引情報 (取引が完了している場合) が含まれます。 + + +```java +Request request = new GetCpmToken( + "zfyt6Bg95FB1a7IFTBkW9" // cpmToken: CPMトークンを指定します。 +); + +``` + + + +### Parameters +**`cpm_token`** + + +CPMトークンを指定します。 + +```json +{ + "type": "string", + "minLength": 20, + "maxLength": 22 +} +``` + + + +成功したときは +[CpmToken](./responses.md#cpm-token) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/credit_card.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/credit_card.md new file mode 100644 index 0000000..8903e6d --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/credit_card.md @@ -0,0 +1,161 @@ +# Credit Card +チャージのために利用されたクレジットカードを表すデータです。 +カード番号などのデータはPokepayサーバでは管理対象外(決済GW側で保有)です。 +利用カードを保存しておくことが可能であり、保存済みカードリストをあとから取得できます。 +チャージ金額はマネー設定の範囲内でユーザが任意の金額を指定可能です。 + + + +## GetCreditCards: Get user credit cards + +```java +Request request = new GetCreditCards( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "7uxlsX8tJT" +) + .before("VN1o4") + .after("vh") + .perPage(29); + +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + + +```json +{ + "type": "string" +} +``` + +**`after`** + + + +```json +{ + "type": "string" +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + +**`organization_code`** + + + +```json +{ + "type": "string" +} +``` + + + +成功したときは +[PaginatedCreditCards](./responses.md#paginated-credit-cards) +を返します + + + +--- + + + +## CreateCreditCard: Create user credit card + +```java +Request request = new CreateCreditCard( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "0fX5dozKzo", // token: MDKトークン + "vfXQ3PHU" +) + .setCardholderNameSpecified(false); // MDKトークン作成時にカード名義人を指定したかどうかのフラグ + +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`token`** + + + +```json +{ + "type": "string" +} +``` + +**`is_cardholder_name_specified`** + + + +```json +{ + "type": "boolean" +} +``` + +**`organization_code`** + + + +```json +{ + "type": "string" +} +``` + + + +成功したときは +[CreditCard](./responses.md#credit-card) +を返します + + + +--- + + + + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/individual_number_identification.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/individual_number_identification.md new file mode 100644 index 0000000..5bac7fd --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/individual_number_identification.md @@ -0,0 +1,151 @@ +# Individual Number Identification +マイナンバーを表すデータです。 +マイナンバーカード認証の機能を提供しています。 +カード情報はサーバでは保有せず、カード読み取り(抽出)、読み取り情報の正当性確認を外部サービスで実施しています。 + + + +## IdentifyIndividual: マイナンバー確認セッションを作成する +指定したウォレットのマイナンバー(個人番号)を確認するためのセッションを作成します。 + +このAPIのパラメータは全てマイナンバーカードからAndroid/iOSのeKYCライブラリで取得できるものです。 +氏名、性別、住所、生年月日もマイナンバーカードから外部通信なしで取得できます。 +APIの氏名、性別、住所、生年月日はオプショナルですが、これらを送ることにより実際に登録されているものと一致しているかどうかがそれぞれbooleanで返されます。 + +```java +Request request = new IdentifyIndividual( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットIDです。 + "WRd", // signature: 電子署名 + "Kb11QTIHM0", // signingCert: 電子証明書 + "5oJQ4O2Nw" // expectedHash: メッセージダイジェスト +) + .name("l4rHJT") // 氏名 + .gender("male") // 性別 + .address("GFvqX") // 住所 + .dateOfBirth("ggC9-Tc-7o"); // 生年月日 + +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`signature`** + + +マイナンバーカードの電子署名機能により作成された電子署名です。 + +Base64符号化したものを指定してください。 + +```json +{ + "type": "string" +} +``` + +**`signing_cert`** + + +電子署名に用いた署名用電子証明書です。 + +Base64符号化したものを指定してください。 + +```json +{ + "type": "string" +} +``` + +**`expected_hash`** + + +本文から算出したメッセージダイジェストです。 + +ハッシュアルゴリズムはSHA256です。 +Base64符号化したものを指定してください。 + +```json +{ + "type": "string" +} +``` + +**`name`** + + +氏名です。 + +スペースは無視されます。公的個人認証で表示できないものは、正式な氏名ではなく代替文字との比較になります。 + +```json +{ + "type": "string" +} +``` + +**`gender`** + + +性別です。 + +male, female, otherのいずれかを選択できます。 + +```json +{ + "type": "string", + "enum": [ + "male", + "female", + "other" + ] +} +``` + +**`address`** + + +住所です。 + +スペースは無視されます。公的個人認証で表示できないものは、正式な住所ではなく代替文字との比較になります。 + +```json +{ + "type": "string" +} +``` + +**`date_of_birth`** + + +生年月日です。 + +```json +{ + "type": "string", + "pattern": "^\\w{4}-?\\w{2}-?\\w{2}$" +} +``` + + + +成功したときは +[IdentificationResult](./responses.md#identification-result) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/internal.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/internal.md new file mode 100644 index 0000000..00c75d1 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/internal.md @@ -0,0 +1,39 @@ +# Internal +ポケットチェンジ内部用 + + + +## GetUserAttributeSchema: ユーザアンケート項目 +マネーに設定されたユーザアンケートの聞き取り項目をJSON形式で取得します。 + + +```java +Request request = new GetUserAttributeSchema( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); + +``` + + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/merchants.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/merchants.md new file mode 100644 index 0000000..d76161e --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/merchants.md @@ -0,0 +1,42 @@ +# Merchants +店舗ユーザを表すデータです。 +発行体直営店と加盟組織直営店(加盟店)の2種類が存在します。 +店舗毎に所有するウォレットによって取引可能なマネーが決定されます。 + + + +## ListMerchantTransactions: Show the merchant's transaction + +```java +Request request = new ListMerchantTransactions( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); + +``` + + + +### Parameters +**`transaction_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserTransactionWithCustomerBalance](./responses.md#user-transaction-with-customer-balance) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/open_exchange_rates.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/open_exchange_rates.md new file mode 100644 index 0000000..f1dc9f3 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/open_exchange_rates.md @@ -0,0 +1,5 @@ +# Open Exchange Rates +外国為替レートを取得可能なwebサービスです。 + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/payspot.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/payspot.md new file mode 100644 index 0000000..dbf51dd --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/payspot.md @@ -0,0 +1,8 @@ +# Payspot +ポケットチェンジ社で開発・製造しているチャージ機「Payspot」を表すデータです。 +紙幣のみ対応したチャージ機であり、現金を投入するとマネーチャージ用のQRが画面上に表示されます。 +また紙幣は日本円、外貨の両方に対応しております。 +1端末1マネーのみ設定可能です。 + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/private_money.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/private_money.md new file mode 100644 index 0000000..79f3483 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/private_money.md @@ -0,0 +1,304 @@ +# Private Money +Pokepay上で発行する電子マネーを表すデータです。 +電子マネーは1つの発行体(Organization)によって発行されます。 +電子マネーはCustomerやMerchantが所有するウォレット間を送金されます。 +電子マネー残高はユーザが有償で購入するマネーと無償で付与されるポイントの2種類のバリューで構成され、 +それぞれ有効期限決定ロジックは電子マネーの設定に依存します。 + + + +## GetPrivateMoney: マネー情報を取得 +マネーの詳細情報を返します。マネーに対して許可されているチャージ手段などが含まれます。 + + +```java +Request request = new GetPrivateMoney( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID +); + +``` + + + +### Parameters +**`private_money_id`** + + +マネーID + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[PrivateMoneyDetail](./responses.md#private-money-detail) +を返します + + + +--- + + + +## GetPrivateMoneyTerms: Get the private money terms + +```java +Request request = new GetPrivateMoneyTerms( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); + +``` + + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + + + + +--- + + + +## GetPrivateMoneyPrivacyPolicy: Get the private money pricvacy-policy + +```java +Request request = new GetPrivateMoneyPrivacyPolicy( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); + +``` + + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + + + + +--- + + + +## GetPrivateMoneyPaymentAct: Get the private money payment-act + +```java +Request request = new GetPrivateMoneyPaymentAct( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); + +``` + + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + + + + +--- + + + +## GetPrivateMoneyCommercialAct: Get the private money commercial-act + +```java +Request request = new GetPrivateMoneyCommercialAct( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); + +``` + + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + + + + +--- + + + +## GetUserAttributeSchema: ユーザアンケート項目 +マネーに設定されたユーザアンケートの聞き取り項目をJSON形式で取得します。 + + +```java +Request request = new GetUserAttributeSchema( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); + +``` + + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + + + + +--- + + + +## ListPrivateMoneys: マネー一覧を取得する +ユーザが利用可能なマネーの一覧を取得します。 + +OAuth認証を経て取得したアクセストークンの場合、認可した組織に属するマネーのみ取得できます。 + +```java +Request request = new ListPrivateMoneys( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // before: 前のページへのマネーIDです。 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // after: 後のページへのマネーIDです。 +) + .name("Vyn2dOGJ") // 検索するマネー名です。 + .includeExclusive(true) // 部分一致で表示するマネーの指定です。 + .perPage(10); // 1ページ分の取得するマネー数です。デフォルトは30です。 + +``` + + + +### Parameters +**`name`** + + +検索するマネー名です。 + +```json +{ + "type": "string" +} +``` + +**`include_exclusive`** + + +部分一致で表示するマネーの指定です。 + +trueの場合、部分一致で表示するマネーを一覧に含めます。 +デフォルトはfalseです。 +OAuthにより取得したアクセストークンの場合、この機能は無効です。 + +```json +{ + "type": "boolean" +} +``` + +**`before`** + + +前のページへのマネーIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`after`** + + +後のページへのマネーIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`per_page`** + + +1ページ分の取得するマネー数です。デフォルトは30です。 + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + + + +成功したときは +[PaginatedPrivateMoneys](./responses.md#paginated-private-moneys) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/responses.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/responses.md new file mode 100644 index 0000000..f723fdb --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/responses.md @@ -0,0 +1,427 @@ +# Responses + +## UserWithDetails +* `id`: +* `name`: +* `is-merchant`: +* `tel`: +* `email`: + + +## UserWithAuthFactors +* `id`: +* `name`: +* `is-merchant`: +* `tel`: +* `email`: +* `is-password-registered`: + + +## AccountDetail +* `id`: +* `name`: +* `balance`: +* `money-balance`: +* `point-balance`: +* `is-suspended`: +* `private_money`: +* `nearest-expires-at`: + +`private_money`は [PrivateMoneyDetail](#private-money-detail) オブジェクトを返します。 + + +## AccountCampaignPointAmounts +* `max-total-point-amount`: +* `total-point-amount`: +* `remain-point-amount`: + + +## PaginatedPrivateMoneys +* `per-page`: +* `count`: +* `next`: +* `prev`: +* `items`: + +`items`は [PrivateMoney](#private-money) オブジェクトの配列を返します。 + + +## PrivateMoneyDetail + + +## Terminal +* `id`: +* `name`: +* `hardware-id`: +* `push-service`: +* `push-token`: +* `user`: +* `account`: + +`user`は [UserWithDetails](#user-with-details) オブジェクトを返します。 + + +## UserTransaction +* `id`: 取引ID +* `user`: ユーザ +* `balance`: +* `amount`: +* `money-amount`: 取引マネー額 +* `point-amount`: 取引ポイント額 +* `account`: ウォレット +* `description`: 取引説明文 +* `done-at`: 取引完了時刻 +* `type`: 取引タイプ +* `is-modified`: 取引キャンセルの有無 + +`user`は [User](#user) オブジェクトを返します。 + +`account`は [Account](#account) オブジェクトを返します。 + + +## UserTransactionWithCustomerBalance +* `id`: +* `user`: ユーザ +* `balance`: +* `customer-balance`: +* `amount`: +* `money-amount`: +* `point-amount`: +* `account`: ウォレット +* `description`: +* `done-at`: +* `type`: +* `is-modified`: + +`user`は [User](#user) オブジェクトを返します。 + +`account`は [Account](#account) オブジェクトを返します。 + + +## CreditCard +* `card-number`: +* `registered-at`: + + +## PaginatedCreditCards +* `per-page`: +* `count`: +* `next`: +* `prev`: +* `items`: + +`items`は [CreditCard](#credit-card) オブジェクトの配列を返します。 + + +## UserBanks + + +## Check +* `id`: +* `amount`: +* `money-amount`: +* `point-amount`: +* `description`: +* `user`: ユーザ +* `is-onetime`: +* `is-disabled`: +* `expires-at`: +* `private_money`: +* `token`: + +`user`は [User](#user) オブジェクトを返します。 + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## Bill +* `id`: +* `amount`: +* `description`: +* `user`: ユーザ +* `is-onetime`: +* `is-disabled`: +* `private_money`: +* `token`: +* `max-amount`: +* `min-amount`: + +`user`は [User](#user) オブジェクトを返します。 + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## BillWithAdditionalPrivateMoneys +* `id`: +* `amount`: +* `description`: +* `user`: ユーザ +* `is-onetime`: +* `is-disabled`: +* `private_money`: +* `token`: +* `max-amount`: +* `min-amount`: +* `additional-private-moneys`: + +`user`は [User](#user) オブジェクトを返します。 + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + +`additional-private-moneys`は [PrivateMoney](#private-money) オブジェクトの配列を返します。 + + +## Cashtray +* `id`: +* `amount`: +* `description`: +* `user`: ユーザ +* `private_money`: +* `expires-at`: +* `canceled-at`: +* `token`: + +`user`は [User](#user) オブジェクトを返します。 + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## CashtrayAttempts +* `rows`: + +`rows`は [CashtrayAttempt](#cashtray-attempt) オブジェクトの配列を返します。 + + +## CashtrayWithAttemptAndTransaction + + +## CpmToken +* `cpm-token`: CPMトークン文字列 +* `account`: ウォレット +* `transaction`: +* `scopes`: 取引スコープ +* `expires-at`: 有効期限 +* `metadata`: 取引メタデータ + +`account`は [Account](#account) オブジェクトを返します。 + +`transaction`は [UserTransaction](#user-transaction) オブジェクトを返します。 + + +## TerminalServerKey +* `server-key`: + + +## CouponDetail +* `id`: +* `name`: +* `description`: +* `discount-amount`: +* `discount-percentage`: +* `starts-at`: +* `ends-at`: +* `display-starts-at`: +* `display-ends-at`: +* `usage-limit`: +* `min-amount`: +* `is-shop-specified`: +* `is-disabled`: +* `is-hidden`: +* `coupon-image`: +* `received-at`: +* `usage-count`: +* `available-shops`: + +`available-shops`は [User](#user) オブジェクトの配列を返します。 + + +## IdentificationResult +* `is-valid`: +* `identified-at`: +* `match`: + + +## PaginatedAccountBalances +* `per-page`: +* `count`: +* `next`: +* `prev`: +* `items`: + +`items`は [AccountBalance](#account-balance) オブジェクトの配列を返します。 + + +## PaginatedAccountCoupons +* `per-page`: +* `count`: +* `next`: +* `prev`: +* `items`: + +`items`は [Coupon](#coupon) オブジェクトの配列を返します。 + + +## PaginatedAccountTransactions +* `per-page`: +* `count`: +* `next`: +* `prev`: +* `items`: + +`items`は [UserTransaction](#user-transaction) オブジェクトの配列を返します。 + + +## PaginatedAccountTransfers +* `per-page`: +* `count`: +* `next`: +* `prev`: +* `items`: + +`items`は [UserTransfer](#user-transfer) オブジェクトの配列を返します。 + + +## PaginatedPrivateMoneyCoupons +* `per-page`: +* `count`: +* `next`: +* `prev`: +* `items`: + +`items`は [Coupon](#coupon) オブジェクトの配列を返します。 + + +## PaginatedUserAccounts +* `per-page`: +* `count`: +* `next`: +* `prev`: +* `items`: + +`items`は [Account](#account) オブジェクトの配列を返します。 + + +## PaginatedUserTransactions +* `per-page`: +* `count`: +* `next`: +* `prev`: +* `items`: + +`items`は [UserTransaction](#user-transaction) オブジェクトの配列を返します。 + + +## PrivateMoney +* `id`: +* `name`: +* `type`: +* `unit`: +* `description`: +* `oneline-message`: +* `display-money-and-point`: +* `account-image`: +* `images`: +* `organization`: +* `max-balance`: +* `transfer-limit`: +* `expiration-type`: +* `is-exclusive`: +* `terms-url`: +* `privacy-policy-url`: +* `payment-act-url`: +* `commercial-act-url`: + +`images`は [PrivateMoneyImages](#private-money-images) オブジェクトを返します。 + +`organization`は [Organization](#organization) オブジェクトを返します。 + + +## User +* `id`: ユーザID +* `name`: ユーザ名(ニックネーム) +* `is-merchant`: ユーザが店舗ユーザかどうか + + +## Account +* `id`: ウォレットID +* `name`: ウォレット名 +* `balance`: ウォレット残高(マネー額 + ポイント額) +* `money-balance`: ウォレット残高(マネー額) +* `point-balance`: ウォレット残高(ポイント額) +* `point-debt`: ポイント負債 +* `is-suspended`: ウォレットが凍結状態かどうか +* `private_money`: + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## CashtrayAttempt +* `user`: ユーザ +* `account`: ウォレット +* `status-code`: +* `error-type`: +* `error-message`: +* `created-at`: +* `strategy`: + +`user`は [User](#user) オブジェクトを返します。 + +`account`は [Account](#account) オブジェクトを返します。 + +`strategy`は [TransactionStrategy](#transaction-strategy) オブジェクトを返します。 + + +## AccountBalance +* `expires-at`: +* `money-amount`: +* `point-amount`: + + +## Coupon +* `id`: +* `name`: +* `description`: +* `discount-amount`: +* `discount-percentage`: +* `starts-at`: +* `ends-at`: +* `display-starts-at`: +* `display-ends-at`: +* `usage-limit`: +* `min-amount`: +* `is-shop-specified`: +* `is-disabled`: +* `is-hidden`: +* `coupon-image`: + + +## UserTransfer +* `id`: +* `transaction-id`: +* `user`: ユーザ +* `balance`: +* `amount`: +* `money-amount`: +* `point-amount`: +* `account`: ウォレット +* `description`: +* `done-at`: +* `type`: + +`user`は [User](#user) オブジェクトを返します。 + +`account`は [Account](#account) オブジェクトを返します。 + + +## PrivateMoneyImages +* `card`: +* `300x300`: +* `600x600`: + + +## Organization +* `code`: +* `name`: + + +## TransactionStrategy diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/sevenbankatm.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/sevenbankatm.md new file mode 100644 index 0000000..98c87c7 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/sevenbankatm.md @@ -0,0 +1,7 @@ +# Sevenbankatm +セブン銀行ATMを表すデータです。 +セブン銀行ATM経由でのマネーチャージすることが可能です。 +マネー単位での申請、設定が必要となります。 + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/terminal.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/terminal.md new file mode 100644 index 0000000..005b68a --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/terminal.md @@ -0,0 +1,147 @@ +# Terminal +端末を表すデータです。 +端末の単位はクライアントアプリの実装によって決定されます。 +認証時のHardwareIDの単位で端末識別をし、サーバサイドに存在しないHardwareIDが送られた際には新規作成されます。 +HardwareIDはクライアントアプリ側で採番されることを想定しています。 + + + +## GetTerminal: 端末の情報を取得 +アクセスしている端末の情報を返します。 + +```java +Request request = new GetTerminal(); + +``` + + + + + + +成功したときは +[Terminal](./responses.md#terminal) +を返します + + + +--- + + + +## UpdateTerminal: 端末の情報を変更 +アクセスしている端末の情報を変更します。 + +```java +Request request = new UpdateTerminal() + .name("WxHjKy82N74miDUcOuIVqRIEU93kljq1Q8TjukgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acleVRspcldt") // 端末の名前 + .accountId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // デフォルト口座ID + .pushService("fcm") // プッシュ通知サービス + .pushToken("5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk9"); // プッシュ通知用トークン + +``` + + + +### Parameters +**`name`** + + +識別のために端末に名前をつけます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`account_id`** + + +取引のときにデフォルトで利用する口座を設定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`push_service`** + + +プッシュ通知に使うサービスを選択します。 +- apns: APNsはAppleが提供しているPush通知基盤です。iOS端末のときに選択します。 +- fcm: FCM(Firebase Cloud Messaging)はGoogleが提供するメッセージングプラットフォームです。Android端末のときに選択します。 + +```json +{ + "type": "string", + "enum": [ + "apns", + "fcm" + ] +} +``` + +**`push_token`** + + +プッシュ通知に使うデバイストークンを設定します。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + + + +成功したときは +[Terminal](./responses.md#terminal) +を返します + + + +--- + + + +## AddTerminalPublicKey: 端末に新たな公開鍵を追加 +アクセスしている端末に新たに公開鍵を追加します。この鍵はネットワークを介さない端末間の直接取引に利用します。 + +```java +Request request = new AddTerminalPublicKey( + "4khcX" // key: 公開鍵 +); + +``` + + + +### Parameters +**`key`** + + +新たな公開鍵の文字列表現です。 + +```json +{ + "type": "string" +} +``` + + + +成功したときは +[TerminalServerKey](./responses.md#terminal-server-key) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/transaction.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/transaction.md new file mode 100644 index 0000000..0dcbaeb --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/transaction.md @@ -0,0 +1,535 @@ +# Transaction +取引を表すデータです。 +同一マネーのウォレット間の送金を記録し、キャンセルなどで状態が更新されることがあります。 +取引種類として以下が存在します。 +topup: チャージ。Merchant => Customer送金 +payment: 支払い。Customer => Merchant送金 +transfer: 個人間譲渡。Customer => Customer送金 +exchange: マネー間交換。1ユーザのウォレット間の送金(交換)。 +expire: 退会時失効。退会時の払戻を伴わない残高失効履歴。 +cashback: 退会時払戻。退会時の払戻金額履歴。 + + + +## GetTransaction: 取引情報取得 +取引ID(transaaction_id)から取引情報を取得します。 + + +```java +Request request = new GetTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // transactionId: 取引ID +); + +``` + + + +### Parameters +**`transaction_id`** + + +ポケペイの取引IDです。 + +UUIDの形式である必要があります(36文字) + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserTransaction](./responses.md#user-transaction) +を返します + + + +--- + + + +## RefundTransaction: 取引キャンセル +取引IDから取引をキャンセルします。 +このAPIは店舗ユーザからのみ利用可能です。 +部分キャンセルはできません。全額払い戻しにのみ対応しています。 + + +```java +Request request = new RefundTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .amount(270.0); + +``` + + + +### Parameters +**`transaction_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + + +```json +{ + "type": "number", + "minimum": 1 +} +``` + + + +成功したときは +[UserTransaction](./responses.md#user-transaction) +を返します + + + +--- + + + +## ListBillTransactions: Billによる取引一覧を取得する +ワンタイムでない支払いQRコード(Bill)の場合、複数の支払い取引が発生し得ます。 +このAPIでは、BillのIDからそのBillから発生した支払い取引のリストを取得します。 + + +```java +Request request = new ListBillTransactions( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .before("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") + .after("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") + .perPage(53); + +``` + + + +### Parameters +**`bill_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`after`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + + + + + + +--- + + + +## GetBillLastTransaction: Get the last transaction of bill + +```java +Request request = new GetBillLastTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // billId: 支払いQRコードID +); + +``` + + + +### Parameters +**`bill_id`** + + +支払いQRコードID + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserTransaction](./responses.md#user-transaction) +を返します + + + +--- + + + +## GetUserTransactions: 取引情報の取得 +ユーザの取引一覧を取得します + +```java +Request request = new GetUserTransactions( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .before("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") + .after("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") + .perPage(14); + +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`after`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + + + +成功したときは +[PaginatedUserTransactions](./responses.md#paginated-user-transactions) +を返します + + + +--- + + + +## GetAccountTransactions: 取引履歴取得 +指定したIDのウォレットの取引履歴を取得します。 + +```java +Request request = new GetAccountTransactions( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .before("4X7ZEq") // ページングのためのパラメータです。 + .after("8UG") // ページングのためのパラメータです。 + .perPage(3); // 1ページあたりに表示する取引履歴の件数です。デフォルト値は30件です。 + +``` + + + +### Parameters +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + +ページングのためのパラメータです。 +指定したIDの要素より後の取引履歴が返されます。 +直前のページの最後の要素のIDを指定することで次のページへ遷移することができます。 +ここで指定したIDの要素それ自体は結果に含まれないことに注意してください。 + +```json +{ + "type": "string" +} +``` + +**`after`** + + +ページングのためのパラメータです。 +指定したIDの要素より前の取引履歴が返されます。 +直前のページの最初の要素のIDを指定することで前のページへ遷移することができます。 +ここで指定したIDの要素それ自体は結果に含まれないことに注意してください。 + +```json +{ + "type": "string" +} +``` + +**`per_page`** + + +1ページあたりに表示する取引履歴の件数です。デフォルト値は30件です。 + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + + + +成功したときは +[PaginatedAccountTransactions](./responses.md#paginated-account-transactions) +を返します + + + +--- + + + +## SendToAccount: Send money to an account + +```java +Request request = new SendToAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + 5029.0 +) + .receiverTerminalId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") + .senderAccountId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") + .description("Mat7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDu"); + +``` + + + +### Parameters +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`receiver_terminal_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`sender_account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + + + +成功したときは +[UserTransaction](./responses.md#user-transaction) +を返します + + + +--- + + + +## GetAccountTransfers: 取引明細一覧 +指定したウォレットIDの取引履歴を明細レベルで取得します。 +取引明細には返金やキャンペーンによるポイント付与などが含まれます。 + +```java +Request request = new GetAccountTransfers( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .before("sMe") // ページングのためのパラメータです。 + .after("04P") // ページングのためのパラメータです。 + .perPage(85); // 1ページあたりに表示する取引履歴の件数です。デフォルト値は30件です。 + +``` + + + +### Parameters +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + +ページングのためのパラメータです。 +指定したIDの要素より後の取引履歴が返されます。 +直前のページの最後の要素のIDを指定することで次のページへ遷移することができます。 +ここで指定したIDの要素それ自体は結果に含まれないことに注意してください。 + +```json +{ + "type": "string" +} +``` + +**`after`** + + +ページングのためのパラメータです。 +指定したIDの要素より前の取引履歴が返されます。 +直前のページの最初の要素のIDを指定することで前のページへ遷移することができます。 +ここで指定したIDの要素それ自体は結果に含まれないことに注意してください。 + +```json +{ + "type": "string" +} +``` + +**`per_page`** + + +1ページあたりに表示する取引履歴の件数です。デフォルト値は30件です。 + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + + + +成功したときは +[PaginatedAccountTransfers](./responses.md#paginated-account-transfers) +を返します + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/user.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/user.md new file mode 100644 index 0000000..6f034e9 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/user.md @@ -0,0 +1,298 @@ +# User +ユーザを表すデータです。 +エンドユーザ(Customer)と店舗ユーザ(Merchant)の2種類が存在します。 +エンドユーザは認証の主体であり、マネー毎にウォレットを持ちます。 +店舗ユーザは組織に所属し、同じくマネー毎にウォレットを持ちます。 + + + +## GetUser: Show the user information + +```java +Request request = new GetUser( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); + +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserWithDetails](./responses.md#user-with-details) +を返します + + + +--- + + + +## UpdateUser: ユーザ情報の更新 +ユーザ情報を更新します + +```java +Request request = new UpdateUser( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .name("hjHLVEtSIaxZ8O9N2SLzG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4VkAmGgvgI7YgVKC9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteV"); // ニックネーム + +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + +ユーザのニックネームを指定します + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + + + +成功したときは +[UserWithDetails](./responses.md#user-with-details) +を返します + + + +--- + + + +## GetUserWithAuthFactors: ユーザの認証情報の取得 +ユーザの認証情報を取得します + +```java +Request request = new GetUserWithAuthFactors( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); + +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserWithAuthFactors](./responses.md#user-with-auth-factors) +を返します + + + +--- + + + +## GetUserTransactions: 取引情報の取得 +ユーザの取引一覧を取得します + +```java +Request request = new GetUserTransactions( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .before("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") + .after("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") + .perPage(73); + +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`after`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + + + +成功したときは +[PaginatedUserTransactions](./responses.md#paginated-user-transactions) +を返します + + + +--- + + + +## GetUserAccounts: ユーザのアカウント一覧取得 +ユーザのアカウント一覧を取得します + +```java +Request request = new GetUserAccounts( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) + .before("YLvoUoraY") + .after("yVUvoHuSd") + .perPage(16); + +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`before`** + + + +```json +{ + "type": "string" +} +``` + +**`after`** + + + +```json +{ + "type": "string" +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + + + +成功したときは +[PaginatedUserAccounts](./responses.md#paginated-user-accounts) +を返します + + + +--- + + + +## GetUserSettingUrl: 一時的なフルアクセスを許可する認証のためのURLを取得 +OAuthを使って一時的なフルアクセスを許可するための認証ページURLを取得します。 + +通常のOAuth認証では、特定の発行体のスコープでの操作が許可されています。 +一方で、ログイン時の電話番号やEmail、パスワードの変更はそのユーザのポケペイプラットフォーム上の全てのマネーに影響するため、ポケペイが提供するWeb UI上での再認証と認証要素の変更操作が必要になります。 +このAPIではポケペイプラットフォームの認証情報変更ページへのワンタイムURLを返します。 + +```java +Request request = new GetUserSettingUrl(); + +``` + + + + + + + + + +--- + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/voucher.md b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/voucher.md new file mode 100644 index 0000000..cf7f44c --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/docs/android-sdk/voucher.md @@ -0,0 +1,7 @@ +# Voucher +外部電子マネーと引き換え可能な媒体を表すデータです。 +Pokepay上の電子マネーから外部電子マネーに交換することが可能です。 +交換可能とするには外部電子マネー発行体との契約が必要です。 + + + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/AddTerminalPublicKey.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/AddTerminalPublicKey.java new file mode 100644 index 0000000..41fe590 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/AddTerminalPublicKey.java @@ -0,0 +1,42 @@ +// 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 AddTerminalPublicKey extends BankRequest { + private String key; + + public AddTerminalPublicKey(String key) { + this.key = key; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/terminal" + "/keys"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (key != null) { + put("key", key); + } + }}; + } + + public final TerminalServerKey send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(TerminalServerKey.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/BankTopUp.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/BankTopUp.java new file mode 100644 index 0000000..1c27bff --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/BankTopUp.java @@ -0,0 +1,63 @@ +// 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 BankTopUp extends BankRequest { + private String accountId; + private String bankId; + private Integer amount; + private String requestId; + private String userId; + + public BankTopUp(String userId, String accountId, String bankId, int amount) { + this.userId = userId; + this.accountId = accountId; + this.bankId = bankId; + this.amount = amount; + } + + public BankTopUp requestId(String requestId) { + this.requestId = requestId; + 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); + } + }}; + } + + 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..5664e06 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateAccountCpmToken.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 CreateAccountCpmToken extends BankRequest { + private String[] scopes; + private Integer expiresIn; + private String metadata; + private Boolean keepAlive; + private Boolean isShortToken; + private Uuid accountId; + + public CreateAccountCpmToken(Uuid 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; + } + + @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); + } + }}; + } + + 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/CreateBill.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateBill.java new file mode 100644 index 0000000..3b256e1 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateBill.java @@ -0,0 +1,118 @@ +// 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 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..c064b85 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/CreateCashtray.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 CreateCashtray extends BankRequest { + private Double amount; + private String description; + private Integer expiresIn; + + 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; + } + + @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); + } + }}; + } + + 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/DeleteBank.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteBank.java new file mode 100644 index 0000000..d421ea0 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/DeleteBank.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 DeleteBank extends BankRequest { + private String bankId; + private String userId; + + public DeleteBank(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/GetAccount.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccount.java new file mode 100644 index 0000000..5f0fcf6 --- /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 Uuid accountId; + + public GetAccount(Uuid 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..c64a94a --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountBalances.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 GetAccountBalances extends BankRequest { + private String accountId; + private String before; + private String after; + private Integer perPage; + private BooleanString expired; + + public GetAccountBalances(String accountId, BooleanString expired) { + this.accountId = accountId; + this.expired = expired; + } + + 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; + } + + @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..3e417c3 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetAccountCoupons.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 GetAccountCoupons extends BankRequest { + private Uuid accountId; + private BooleanString isAvailable; + private String before; + private String after; + private Integer perPage; + + public GetAccountCoupons(Uuid accountId, BooleanString isAvailable) { + this.accountId = accountId; + this.isAvailable = isAvailable; + } + + 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..3b323a8 --- /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 Uuid accountId; + private String before; + private String after; + private Integer perPage; + + public GetAccountTransactions(Uuid 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..845e93d --- /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 Uuid accountId; + private String before; + private String after; + private Integer perPage; + + public GetAccountTransfers(Uuid 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/GetBillLastTransaction.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetBillLastTransaction.java new file mode 100644 index 0000000..4dddcd1 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetBillLastTransaction.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 GetBillLastTransaction extends BankRequest { + private String billId; + + public GetBillLastTransaction(String billId) { + this.billId = billId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/bills" + "/" + this.billId + "/transaction"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + }}; + } + + 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/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/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/GetPrivateMoney.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoney.java new file mode 100644 index 0000000..55e2bae --- /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 Uuid privateMoneyId; + + public GetPrivateMoney(Uuid 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..2a83e46 --- /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 Uuid privateMoneyId; + + public GetPrivateMoneyCommercialAct(Uuid 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 NIL send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(NIL.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..2a3a77c --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetPrivateMoneyCoupons.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 GetPrivateMoneyCoupons extends BankRequest { + private Uuid privateMoneyId; + private Uuid before; + private Uuid after; + private Integer perPage; + + public GetPrivateMoneyCoupons(Uuid privateMoneyId, Uuid before, Uuid after) { + this.privateMoneyId = privateMoneyId; + this.before = before; + this.after = after; + } + + 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..9349a66 --- /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 Uuid privateMoneyId; + + public GetPrivateMoneyPaymentAct(Uuid 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 NIL send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(NIL.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..1f37973 --- /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 Uuid privateMoneyId; + + public GetPrivateMoneyPrivacyPolicy(Uuid 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 NIL send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(NIL.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..48d6123 --- /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 Uuid privateMoneyId; + + public GetPrivateMoneyTerms(Uuid 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 NIL send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(NIL.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/GetTransaction.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/GetTransaction.java new file mode 100644 index 0000000..cba779d --- /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 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/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..72dc979 --- /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 NIL send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(NIL.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/IdentifyIndividual.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/IdentifyIndividual.java new file mode 100644 index 0000000..ce9a7c4 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/IdentifyIndividual.java @@ -0,0 +1,90 @@ +// 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 IdentifyIndividual extends BankRequest { + private String signature; + private String signingCert; + private String expectedHash; + private String name; + private String gender; + private String address; + private String dateOfBirth; + private String accountId; + + public IdentifyIndividual(String accountId, String signature, String signingCert, String expectedHash) { + this.accountId = accountId; + this.signature = signature; + this.signingCert = signingCert; + this.expectedHash = expectedHash; + } + + public IdentifyIndividual name(String name) { + this.name = name; + return this; + } + + public IdentifyIndividual gender(String gender) { + this.gender = gender; + return this; + } + + public IdentifyIndividual address(String address) { + this.address = address; + return this; + } + + public IdentifyIndividual dateOfBirth(String dateOfBirth) { + this.dateOfBirth = dateOfBirth; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.POST; + } + + @Override + public String path() { + return "/accounts" + "/" + this.accountId + "/individual-numbers" + "/identification"; + } + + @Override + protected final Map parameters() { + return new HashMap() {{ + if (signature != null) { + put("signature", signature); + } + if (signingCert != null) { + put("signing_cert", signingCert); + } + if (expectedHash != null) { + put("expected_hash", expectedHash); + } + if (name != null) { + put("name", name); + } + if (gender != null) { + put("gender", gender); + } + if (address != null) { + put("address", address); + } + if (dateOfBirth != null) { + put("date_of_birth", dateOfBirth); + } + }}; + } + + public final IdentificationResult send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(IdentificationResult.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/ListBanks.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/ListBanks.java new file mode 100644 index 0000000..0df5359 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/ListBanks.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 ListBanks extends BankRequest { + private String userId; + private String privateMoneyId; + + public ListBanks(String userId) { + this.userId = userId; + } + + public ListBanks privateMoneyId(String privateMoneyId) { + this.privateMoneyId = privateMoneyId; + return this; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @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); + } + }}; + } + + public final UserBanks send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(UserBanks.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/ListBillTransactions.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/ListBillTransactions.java new file mode 100644 index 0000000..36bf047 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/ListBillTransactions.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 ListBillTransactions extends BankRequest { + private String billId; + private String before; + private String after; + private Integer perPage; + + public ListBillTransactions(String billId) { + this.billId = billId; + } + + public ListBillTransactions before(String before) { + this.before = before; + return this; + } + + public ListBillTransactions after(String after) { + this.after = after; + return this; + } + + public ListBillTransactions 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 NIL send(String accessToken) throws ProcessingError, BankRequestError { + return super.send(NIL.class, accessToken); + } +} diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/ListMerchantTransactions.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/ListMerchantTransactions.java new file mode 100644 index 0000000..bb9d401 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/ListMerchantTransactions.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 ListMerchantTransactions extends BankRequest { + private String transactionId; + + public ListMerchantTransactions(String transactionId) { + this.transactionId = transactionId; + } + + @Override + protected final Request.Method method() { + return Request.Method.GET; + } + + @Override + public String path() { + return "/merchants" + "/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/ListPrivateMoneys.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/ListPrivateMoneys.java new file mode 100644 index 0000000..1b592ae --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/ListPrivateMoneys.java @@ -0,0 +1,74 @@ +// 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 ListPrivateMoneys extends BankRequest { + private String name; + private Boolean includeExclusive; + private Uuid before; + private Uuid after; + private Integer perPage; + + public ListPrivateMoneys(Uuid before, Uuid after) { + this.before = before; + this.after = after; + } + + public ListPrivateMoneys name(String name) { + this.name = name; + return this; + } + + public ListPrivateMoneys includeExclusive(Boolean includeExclusive) { + this.includeExclusive = includeExclusive; + return this; + } + + public ListPrivateMoneys 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/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/TopupWithCreditCardMdkToken.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/TopupWithCreditCardMdkToken.java index 6839a96..36694d5 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/TopupWithCreditCardMdkToken.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/TopupWithCreditCardMdkToken.java @@ -18,7 +18,7 @@ public class TopupWithCreditCardMdkToken extends BankRequest { private Boolean isCardholderNameSpecified; private String requestId; - public TopupWithCreditCardMdkToken(String userId, String token, String accountId, Integer amount, String organizationCode) { + public TopupWithCreditCardMdkToken(String userId, String token, String accountId, int amount, String organizationCode) { this.userId = userId; this.token = token; this.accountId = accountId; diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/TopupWithCreditCardMembership.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/TopupWithCreditCardMembership.java index 8de7562..cd5091f 100644 --- a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/TopupWithCreditCardMembership.java +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/TopupWithCreditCardMembership.java @@ -18,7 +18,7 @@ public class TopupWithCreditCardMembership extends BankRequest { private String organizationCode; private String requestId; - public TopupWithCreditCardMembership(String userId, String cardRegisteredAt, String accountId, Integer amount, String organizationCode) { + public TopupWithCreditCardMembership(String userId, String cardRegisteredAt, String accountId, int amount, String organizationCode) { this.userId = userId; this.cardRegisteredAt = cardRegisteredAt; this.accountId = accountId; 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..6d70e07 --- /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 Uuid accountId; + + public UpdateAccount(Uuid 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..f4109f7 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateBill.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 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..b4e17cd --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/requests/UpdateCashtray.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 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..51aea2f --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Account.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 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 PrivateMoney private_money; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountBalances.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountBalances.java new file mode 100644 index 0000000..fb541fd --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountBalances.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 AccountBalances 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/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..9f51894 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/AccountDetail.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 AccountDetail extends Response { + public String id; + public String name; + public Double balance; + public Double money_balance; + public Double point_balance; + public Boolean is_suspended; + public PrivateMoneyDetail private_money; + public String nearest_expires_at; +} + 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/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..da8053c --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CashtrayWithAttemptAndTransaction.java @@ -0,0 +1,8 @@ +// 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 { +} + 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..c830c44 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Check.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 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 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/CpmToken.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CpmToken.java new file mode 100644 index 0000000..82dade2 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/CpmToken.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 CpmToken extends Response { + public String cpm_token; + public Account account; + public UserTransaction transaction; + public String[] scopes; + public String expires_at; + public String metadata; +} + 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..143f519 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/IdentificationResult.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 IdentificationResult extends Response { + public Boolean is_valid; + public String identified_at; + public Object match; +} + 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/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..0c3693e --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoney.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 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 account_image; + public PrivateMoneyImages images; + public Organization organization; + public Double max_balance; + public Double 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; +} + 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..6ac172e --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/PrivateMoneyDetail.java @@ -0,0 +1,8 @@ +// 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 { +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Product.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Product.java new file mode 100644 index 0000000..4017020 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/Product.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 Product extends Response { + public String jan_code; + public String name; + public Double unit_price; + public Double price; + public Integer quantity; + public Boolean is_discounted; + public String other; +} + diff --git a/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/SevenBankAtmSession.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/SevenBankAtmSession.java new file mode 100644 index 0000000..21bf905 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/SevenBankAtmSession.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 SevenBankAtmSession extends Response { + public String qr_info; + public Account account; + public Integer amount; + public UserTransactionWithTransfers transaction; +} + 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..079b4b4 --- /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 UserWithDetails user; + public Nil 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..159ff21 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransaction.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 UserTransaction extends Response { + public String 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; + 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..9dc64eb --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithCustomerBalance.java @@ -0,0 +1,20 @@ +// 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 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/UserTransactionWithTransfers.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithTransfers.java new file mode 100644 index 0000000..e9aeee3 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransactionWithTransfers.java @@ -0,0 +1,20 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.pokepaylib.BankAPI.autogen.responses; + +import jp.pokepay.pokepaylib.Response; + +public class UserTransactionWithTransfers extends Response { + public String 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; + 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/UserTransferWithoutAccount.java b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransferWithoutAccount.java new file mode 100644 index 0000000..c01e9f5 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserTransferWithoutAccount.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 UserTransferWithoutAccount extends Response { + public String id; + public Double amount; + public Double money_amount; + public Double point_amount; + 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..d58b245 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserWithAuthFactors.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 UserWithAuthFactors extends Response { + public String id; + public String name; + public Boolean is_merchant; + public String tel; + 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..5612a49 --- /dev/null +++ b/pokepaylib/src/main/java/jp/pokepay/pokepaylib/BankAPI/autogen/responses/UserWithDetails.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 UserWithDetails extends Response { + public String id; + public String name; + public Boolean is_merchant; + public String tel; + public String email; +} +