From 5c1e66570d65db92610acbc325b97f602c444bbe Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Mon, 31 Aug 2026 10:52:06 +0000 Subject: [PATCH 1/3] generate --- docs/README.md | 25 + docs/account.md | 75 +- docs/bank_pay.md | 156 +- docs/bill.md | 470 +- docs/bulk.md | 100 +- docs/campaign.md | 589 ++- docs/cashtray.md | 147 +- docs/check.md | 376 +- docs/coupon.md | 455 +- docs/credit_session.md | 287 ++ docs/customer.md | 1310 +++++- docs/cvs.md | 552 +++ docs/event.md | 116 +- docs/organization.md | 149 +- docs/private_money.md | 93 +- docs/responses.md | 211 +- docs/seven_bank_atm_session.md | 12 +- docs/shop.md | 309 +- docs/transaction.md | 1439 ++++-- docs/transfer.md | 273 +- docs/user.md | 5 + docs/user_device.md | 29 +- docs/webhook.md | 78 +- partner.yaml | 2369 +++++++++- .../request/BulkCreateTransaction.java | 7 + .../request/CancelBulkTransaction.java | 36 + .../request/CancelCvsAuthorization.java | 36 + .../request/CaptureCreditSession.java | 43 + .../partnerapi/request/CreateBill.java | 9 +- .../partnerapi/request/CreateCheck.java | 7 + .../partnerapi/request/CreateCoupon.java | 7 + .../CreateCreditSessionTransaction.java | 60 + .../request/CreateCustomerCard.java | 46 + .../request/CreateCvsAuthorization.java | 104 + .../request/CreatePaymentTransaction.java | 7 + .../CreatePaymentTransactionWithBill.java | 61 + .../request/CreateTransactionGroup.java | 37 + .../request/CreditCardTopupWithMdkToken.java | 115 + .../CreditCardTopupWithMembership.java | 115 + .../partnerapi/request/DeleteBank.java | 39 + .../request/DeleteCustomerCard.java | 39 + .../pokepay/partnerapi/request/GetBill.java | 36 + .../partnerapi/request/GetCustomerCards.java | 50 + .../request/GetCvsAuthorization.java | 36 + .../request/GetCvsAuthorizations.java | 72 + .../request/ListBillTransactions.java | 139 + .../partnerapi/request/ListChecks.java | 14 + .../partnerapi/request/PostCreditSession.java | 53 + .../request/ResumeBulkTransaction.java | 36 + .../request/ShowTransactionGroup.java | 36 + .../request/TerminateUserStats.java | 37 + .../partnerapi/request/UpdateBill.java | 9 +- .../partnerapi/request/UpdateCheck.java | 7 + .../partnerapi/request/UpdateCoupon.java | 7 + .../CancelBulkTransactionSerializer.java | 17 + .../CancelCvsAuthorizationSerializer.java | 17 + .../CaptureCreditSessionSerializer.java | 17 + ...ateCreditSessionTransactionSerializer.java | 17 + .../CreateCustomerCardSerializer.java | 17 + .../CreateCvsAuthorizationSerializer.java | 17 + ...ePaymentTransactionWithBillSerializer.java | 17 + .../CreateTransactionGroupSerializer.java | 17 + ...CreditCardTopupWithMdkTokenSerializer.java | 17 + ...editCardTopupWithMembershipSerializer.java | 17 + .../serializer/DeleteBankSerializer.java | 17 + .../DeleteCustomerCardSerializer.java | 17 + .../request/serializer/GetBillSerializer.java | 17 + .../GetCustomerCardsSerializer.java | 17 + .../GetCvsAuthorizationSerializer.java | 17 + .../GetCvsAuthorizationsSerializer.java | 17 + .../ListBillTransactionsSerializer.java | 17 + .../PostCreditSessionSerializer.java | 17 + .../ResumeBulkTransactionSerializer.java | 17 + .../request/serializer/SerializerHelper.java | 42 + .../ShowTransactionGroupSerializer.java | 17 + .../TerminateUserStatsSerializer.java | 17 + .../partnerapi/response/BankDeleted.java | 6 + .../jp/pokepay/partnerapi/response/Bill.java | 5 + .../partnerapi/response/BillTransaction.java | 16 + .../BillWithAdditionalPrivateMoneys.java | 56 + .../partnerapi/response/BulkTransaction.java | 5 + .../response/CapturedCreditSession.java | 11 + .../response/CardAuthorizeResult.java | 16 + .../jp/pokepay/partnerapi/response/Check.java | 5 + .../pokepay/partnerapi/response/Coupon.java | 10 + .../partnerapi/response/CouponDetail.java | 10 + .../pokepay/partnerapi/response/CpmToken.java | 10 + .../partnerapi/response/CreditSession.java | 16 + .../CreditSessionTransactionResult.java | 6 + .../response/CustomerCardDeleted.java | 6 + .../partnerapi/response/CvsAuthorization.java | 76 + .../partnerapi/response/InvalidMdkToken.java | 16 + .../response/PaginatedBillTransaction.java | 31 + .../response/PaginatedCvsAuthorizations.java | 31 + .../response/PaginatedUserCards.java | 21 + .../partnerapi/response/TransactionGroup.java | 31 + .../pokepay/partnerapi/response/UserCard.java | 21 + .../partnerapi/ActivateUserDeviceTest.java | 2 +- .../partnerapi/BulkCreateTransactionTest.java | 45 +- .../partnerapi/CancelBulkTransactionTest.java | 28 + .../partnerapi/CancelCashtrayTest.java | 2 +- .../CancelCvsAuthorizationTest.java | 28 + .../partnerapi/CaptureCreditSessionTest.java | 45 + .../jp/pokepay/partnerapi/CreateBankTest.java | 30 +- .../CreateBankTopupTransactionTest.java | 22 +- .../jp/pokepay/partnerapi/CreateBillTest.java | 38 +- .../partnerapi/CreateCampaignTest.java | 4017 ++++++++--------- .../partnerapi/CreateCashtrayTest.java | 24 +- .../pokepay/partnerapi/CreateCheckTest.java | 342 +- .../pokepay/partnerapi/CreateCouponTest.java | 1260 +++--- .../partnerapi/CreateCpmTransactionTest.java | 144 +- .../CreateCreditSessionTransactionTest.java | 86 + .../partnerapi/CreateCustomerAccountTest.java | 20 +- .../partnerapi/CreateCustomerCardTest.java | 47 + .../CreateCvsAuthorizationTest.java | 216 + .../CreateExchangeTransactionTest.java | 30 +- .../CreateExternalTransactionTest.java | 186 +- .../partnerapi/CreateOrganizationTest.java | 158 +- .../CreatePaymentTransactionTest.java | 191 +- .../CreatePaymentTransactionWithBillTest.java | 86 + .../jp/pokepay/partnerapi/CreateShopTest.java | 56 +- .../pokepay/partnerapi/CreateShopV2Test.java | 90 +- .../CreateTopupTransactionTest.java | 92 +- .../CreateTopupTransactionWithCheckTest.java | 10 +- .../CreateTransactionGroupTest.java | 28 + .../partnerapi/CreateTransactionTest.java | 50 +- .../CreateTransactionWithCashtrayTest.java | 18 +- .../CreateTransferTransactionTest.java | 42 +- .../partnerapi/CreateUserAccountTest.java | 22 +- .../partnerapi/CreateUserDeviceTest.java | 4 +- .../pokepay/partnerapi/CreateWebhookTest.java | 2 +- .../CreditCardTopupWithMdkTokenTest.java | 276 ++ .../CreditCardTopupWithMembershipTest.java | 276 ++ .../pokepay/partnerapi/DeleteAccountTest.java | 6 +- .../jp/pokepay/partnerapi/DeleteBankTest.java | 29 + .../partnerapi/DeleteCustomerCardTest.java | 29 + .../pokepay/partnerapi/DeleteWebhookTest.java | 2 +- .../jp/pokepay/partnerapi/GetAccountTest.java | 2 +- .../GetAccountTransferSummaryTest.java | 20 +- .../jp/pokepay/partnerapi/GetBillTest.java | 28 + .../partnerapi/GetBulkTransactionTest.java | 2 +- .../pokepay/partnerapi/GetCampaignTest.java | 2 +- .../pokepay/partnerapi/GetCashtrayTest.java | 2 +- .../jp/pokepay/partnerapi/GetCheckTest.java | 2 +- .../jp/pokepay/partnerapi/GetCouponTest.java | 2 +- .../pokepay/partnerapi/GetCpmTokenTest.java | 2 +- .../partnerapi/GetCustomerAccountsTest.java | 102 +- .../partnerapi/GetCustomerCardsTest.java | 63 + .../partnerapi/GetCvsAuthorizationTest.java | 28 + .../partnerapi/GetCvsAuthorizationsTest.java | 123 + ...GetExternalTransactionByRequestIdTest.java | 2 +- ...PrivateMoneyOrganizationSummariesTest.java | 36 +- .../GetPrivateMoneySummaryTest.java | 12 +- .../partnerapi/GetPrivateMoneysTest.java | 12 +- .../GetSevenBankATMSessionTest.java | 2 +- .../partnerapi/GetShopAccountsTest.java | 36 +- .../jp/pokepay/partnerapi/GetShopTest.java | 2 +- .../GetTransactionByRequestIdTest.java | 2 +- .../partnerapi/GetTransactionTest.java | 2 +- .../pokepay/partnerapi/GetUserDeviceTest.java | 2 +- .../partnerapi/ListAccountBalancesTest.java | 36 +- .../ListAccountExpiredBalancesTest.java | 36 +- .../jp/pokepay/partnerapi/ListBanksTest.java | 6 +- .../partnerapi/ListBillTransactionsTest.java | 356 ++ .../jp/pokepay/partnerapi/ListBillsTest.java | 168 +- .../ListBulkTransactionJobsTest.java | 12 +- .../pokepay/partnerapi/ListCampaignsTest.java | 40 +- .../jp/pokepay/partnerapi/ListChecksTest.java | 191 +- .../pokepay/partnerapi/ListCouponsTest.java | 90 +- .../ListCustomerTransactionsTest.java | 82 +- .../partnerapi/ListOrganizationsTest.java | 30 +- .../jp/pokepay/partnerapi/ListShopsTest.java | 128 +- .../partnerapi/ListTransactionsTest.java | 196 +- .../partnerapi/ListTransactionsV2Test.java | 230 +- .../pokepay/partnerapi/ListTransfersTest.java | 202 +- .../partnerapi/ListTransfersV2Test.java | 234 +- .../partnerapi/ListUserAccountsTest.java | 12 +- .../pokepay/partnerapi/ListWebhooksTest.java | 6 +- .../partnerapi/PostCreditSessionTest.java | 51 + .../RefundExternalTransactionTest.java | 6 +- .../partnerapi/RefundTransactionTest.java | 12 +- .../partnerapi/RequestUserStatsTest.java | 4 +- .../partnerapi/ResumeBulkTransactionTest.java | 28 + .../partnerapi/ShowTransactionGroupTest.java | 28 + .../partnerapi/TerminateUserStatsTest.java | 28 + .../pokepay/partnerapi/UpdateAccountTest.java | 10 +- .../jp/pokepay/partnerapi/UpdateBillTest.java | 40 +- .../partnerapi/UpdateCampaignTest.java | 3423 +++++++------- .../partnerapi/UpdateCashtrayTest.java | 20 +- .../pokepay/partnerapi/UpdateCheckTest.java | 145 +- .../pokepay/partnerapi/UpdateCouponTest.java | 1073 +++-- .../partnerapi/UpdateCustomerAccountTest.java | 20 +- .../jp/pokepay/partnerapi/UpdateShopTest.java | 98 +- .../pokepay/partnerapi/UpdateWebhookTest.java | 16 +- .../CreateNewCustomerWithAccountTest.java | 72 + .../tdsl/CreateOrganizationTest.java | 8 +- .../partnerapi/tdsl/RegisterBankAccount.java | 45 + 197 files changed, 19233 insertions(+), 8243 deletions(-) create mode 100644 docs/credit_session.md create mode 100644 docs/cvs.md create mode 100644 src/main/java/jp/pokepay/partnerapi/request/CancelBulkTransaction.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/CancelCvsAuthorization.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/CaptureCreditSession.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/CreateCreditSessionTransaction.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/CreateCustomerCard.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/CreateCvsAuthorization.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransactionWithBill.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/CreateTransactionGroup.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/CreditCardTopupWithMdkToken.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/CreditCardTopupWithMembership.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/DeleteBank.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/DeleteCustomerCard.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/GetBill.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/GetCustomerCards.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/GetCvsAuthorization.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/GetCvsAuthorizations.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/ListBillTransactions.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/PostCreditSession.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/ResumeBulkTransaction.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/ShowTransactionGroup.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/TerminateUserStats.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/CancelBulkTransactionSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/CancelCvsAuthorizationSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/CaptureCreditSessionSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCreditSessionTransactionSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCustomerCardSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCvsAuthorizationSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/CreatePaymentTransactionWithBillSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/CreateTransactionGroupSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/CreditCardTopupWithMdkTokenSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/CreditCardTopupWithMembershipSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteBankSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteCustomerCardSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/GetBillSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/GetCustomerCardsSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/GetCvsAuthorizationSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/GetCvsAuthorizationsSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/ListBillTransactionsSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/PostCreditSessionSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/ResumeBulkTransactionSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/ShowTransactionGroupSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/request/serializer/TerminateUserStatsSerializer.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/BankDeleted.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/BillTransaction.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/BillWithAdditionalPrivateMoneys.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/CapturedCreditSession.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/CardAuthorizeResult.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/CreditSession.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/CreditSessionTransactionResult.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/CustomerCardDeleted.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/CvsAuthorization.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/InvalidMdkToken.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/PaginatedBillTransaction.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/PaginatedCvsAuthorizations.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/PaginatedUserCards.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/TransactionGroup.java create mode 100644 src/main/java/jp/pokepay/partnerapi/response/UserCard.java create mode 100644 src/test/java/jp/pokepay/partnerapi/CancelBulkTransactionTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/CancelCvsAuthorizationTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/CaptureCreditSessionTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/CreateCreditSessionTransactionTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/CreateCustomerCardTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/CreateCvsAuthorizationTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionWithBillTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/CreateTransactionGroupTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/CreditCardTopupWithMdkTokenTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/CreditCardTopupWithMembershipTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/DeleteBankTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/DeleteCustomerCardTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/GetBillTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/GetCustomerCardsTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/GetCvsAuthorizationTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/GetCvsAuthorizationsTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/ListBillTransactionsTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/PostCreditSessionTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/ResumeBulkTransactionTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/ShowTransactionGroupTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/TerminateUserStatsTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/tdsl/CreateNewCustomerWithAccountTest.java create mode 100644 src/test/java/jp/pokepay/partnerapi/tdsl/RegisterBankAccount.java diff --git a/docs/README.md b/docs/README.md index 78964538..af9510e0 100644 --- a/docs/README.md +++ b/docs/README.md @@ -77,7 +77,10 @@ APIサーバがエラーレスポンスを返した場合に使われます。 - [GetCpmToken](./transaction.md#get-cpm-token): CPMトークンの状態取得 - [ListTransactions](./transaction.md#list-transactions): 【廃止】取引履歴を取得する - [CreateTransaction](./transaction.md#create-transaction): 【廃止】チャージする +- [CreateTransactionGroup](./transaction.md#create-transaction-group): トランザクショングループを作成する +- [ShowTransactionGroup](./transaction.md#show-transaction-group): トランザクショングループを取得する - [ListTransactionsV2](./transaction.md#list-transactions-v2): 取引履歴を取得する +- [ListBillTransactions](./transaction.md#list-bill-transactions): 支払い取引履歴を取得する - [CreateTopupTransaction](./transaction.md#create-topup-transaction): チャージする - [CreatePaymentTransaction](./transaction.md#create-payment-transaction): 支払いする - [CreateCpmTransaction](./transaction.md#create-cpm-transaction): CPMトークンによる取引作成 @@ -88,7 +91,10 @@ APIサーバがエラーレスポンスを返した場合に使われます。 - [GetTransactionByRequestId](./transaction.md#get-transaction-by-request-id): リクエストIDから取引情報を取得する - [GetBulkTransaction](./transaction.md#get-bulk-transaction): バルク取引ジョブの実行状況を取得する - [ListBulkTransactionJobs](./transaction.md#list-bulk-transaction-jobs): バルク取引ジョブの詳細情報一覧を取得する +- [CancelBulkTransaction](./transaction.md#cancel-bulk-transaction): バルク取引をキャンセルする +- [ResumeBulkTransaction](./transaction.md#resume-bulk-transaction): バルク取引を再開する - [RequestUserStats](./transaction.md#request-user-stats): 指定期間内の顧客が行った取引の統計情報をCSVでダウンロードする +- [TerminateUserStats](./transaction.md#terminate-user-stats): RequestUserStatsのタスクを強制終了する ### Transfer - [GetAccountTransferSummary](./transfer.md#get-account-transfer-summary): @@ -105,7 +111,9 @@ APIサーバがエラーレスポンスを返した場合に使われます。 ### Bill - [ListBills](./bill.md#list-bills): 支払いQRコード一覧を表示する - [CreateBill](./bill.md#create-bill): 支払いQRコードの発行 +- [GetBill](./bill.md#get-bill): 支払いQRコードの表示 - [UpdateBill](./bill.md#update-bill): 支払いQRコードの更新 +- [CreatePaymentTransactionWithBill](./bill.md#create-payment-transaction-with-bill): 支払いQRコードを読み取ることで支払いをする ### Cashtray - [CreateTransactionWithCashtray](./cashtray.md#create-transaction-with-cashtray): CashtrayQRコードを読み取ることで取引する @@ -124,8 +132,24 @@ APIサーバがエラーレスポンスを返した場合に使われます。 - [GetCustomerAccounts](./customer.md#get-customer-accounts): エンドユーザーのウォレット一覧を表示する - [CreateCustomerAccount](./customer.md#create-customer-account): 新規エンドユーザーをウォレットと共に追加する - [GetShopAccounts](./customer.md#get-shop-accounts): 店舗ユーザーのウォレット一覧を表示する +- [GetCustomerCards](./customer.md#get-customer-cards): エンドユーザーのクレジットカード一覧を取得する +- [CreateCustomerCard](./customer.md#create-customer-card): エンドユーザーのクレジットカードを登録する +- [DeleteCustomerCard](./customer.md#delete-customer-card): エンドユーザーのクレジットカードを削除する +- [CreditCardTopupWithMembership](./customer.md#credit-card-topup-with-membership): 登録済みクレジットカードでチャージする(3Dセキュア) +- [CreditCardTopupWithMdkToken](./customer.md#credit-card-topup-with-mdk-token): 未登録クレジットカード(MDKトークン)でチャージする(3Dセキュア) - [ListCustomerTransactions](./customer.md#list-customer-transactions): 取引履歴を取得する +### CreditSession +- [PostCreditSession](./credit_session.md#post-credit-session): Create credit session +- [CreateCreditSessionTransaction](./credit_session.md#create-credit-session-transaction): Create transaction with credit session +- [CaptureCreditSession](./credit_session.md#capture-credit-session): Capture credit session + +### CVS +- [GetCvsAuthorizations](./cvs.md#get-cvs-authorizations): コンビニ決済の申し込み情報一覧取得 +- [CreateCvsAuthorization](./cvs.md#create-cvs-authorization): コンビニ決済申込 +- [CancelCvsAuthorization](./cvs.md#cancel-cvs-authorization): コンビニ決済の申し込みキャンセル +- [GetCvsAuthorization](./cvs.md#get-cvs-authorization): コンビニ決済の申し込み情報取得 + ### Organization - [ListOrganizations](./organization.md#list-organizations): 加盟店組織の一覧を取得する - [CreateOrganization](./organization.md#create-organization): 新規加盟店組織を追加する @@ -180,6 +204,7 @@ APIサーバがエラーレスポンスを返した場合に使われます。 - [ActivateUserDevice](./user_device.md#activate-user-device): デバイスの有効化 ### BankPay +- [DeleteBank](./bank_pay.md#delete-bank): 銀行口座の削除 - [ListBanks](./bank_pay.md#list-banks): 登録した銀行の一覧 - [CreateBank](./bank_pay.md#create-bank): 銀行口座の登録 - [CreateBankTopupTransaction](./bank_pay.md#create-bank-topup-transaction): 銀行からのチャージ diff --git a/docs/account.md b/docs/account.md index 44b41d19..95f8be52 100644 --- a/docs/account.md +++ b/docs/account.md @@ -1,4 +1,11 @@ # Account +ウォレットを表すデータです。 +CustomerもMerchantも所有し、ウォレット間の送金は取引として記録されます。 +Customerのウォレットはマネー残高(有償バリュー)、ポイント残高(無償バリュー)の2種類の残高をもちます。 +また有効期限別で金額管理しており、有効期限はチャージ時のコンテキストによって決定されます。 +ユーザはマネー別に複数のウォレットを保有することが可能です。 +ただし1マネー1ウォレットのみであり、同一マネーのウォレットを複数所有することはできません。 + ## ListUserAccounts: エンドユーザー、店舗ユーザーのウォレット一覧を表示する @@ -8,21 +15,22 @@ Request request = new ListUserAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // userId: ユーザーID ) - .page(1170) // ページ番号 - .perPage(3512); // 1ページ分の取引数 + .page(7544) // ページ番号 + .perPage(2252); // 1ページ分の取引数 ``` ### Parameters -**`userId`** - - +#### `userId` ユーザーIDです。 指定したユーザーIDのウォレット一覧を取得します。パートナーキーと紐づく組織が発行しているマネーのウォレットのみが表示されます。 +
+スキーマ + ```json { "type": "string", @@ -30,11 +38,14 @@ Request request = new ListUserAccounts( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -42,11 +53,14 @@ Request request = new ListUserAccounts( } ``` -**`perPage`** - +
+#### `perPage` 1ページ当たりのウォレット数です。デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -54,6 +68,8 @@ Request request = new ListUserAccounts( } ``` +
+ 成功したときは @@ -74,8 +90,8 @@ Request request = new CreateUserAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userId: ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .name("qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9") // ウォレット名 - .externalId("iCp3raZonaiDazAfoV") // 外部ID + .name("kYmgigiRBecjiYHAY2JzBXAH8kMOdWqNTIGASpUbYQp5bqa8tWD6s9Q6iiZbOooVKgu1qds6qgsoONFz6uyU0wrmFTsH1jox1nE7Xd1LHtA5BVDLAJt8tqoldYOWGhpaRKD1ENaiTkaXYFCXi0fdqXvmGys8YOpBu2KczD6BTCHnjtvnDM8G6PBmZyIjoWRfxfaml9V53r3s2") // ウォレット名 + .externalId("bgJInEjXNNDJsFK9WBlSOaEAClE0qaCOj2fSXpFKUlotqu2axS") // 外部ID .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); // ウォレットに付加するメタデータ ``` @@ -83,11 +99,12 @@ Request request = new CreateUserAccount( ### Parameters -**`userId`** - - +#### `userId` ユーザーIDです。 +
+スキーマ + ```json { "type": "string", @@ -95,13 +112,16 @@ Request request = new CreateUserAccount( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 作成するウォレットのマネーを指定します。このパラメータは必須です。 +
+スキーマ + ```json { "type": "string", @@ -109,9 +129,12 @@ Request request = new CreateUserAccount( } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -120,9 +143,12 @@ Request request = new CreateUserAccount( } ``` -**`externalId`** - +
+#### `externalId` + +
+スキーマ ```json { @@ -131,15 +157,18 @@ Request request = new CreateUserAccount( } ``` -**`metadata`** - +
+#### `metadata` ウォレットに付加するメタデータをJSON文字列で指定します。 指定できるJSON文字列には以下のような制約があります。 - フラットな構造のJSONを文字列化したものであること。 - keyは最大32文字の文字列(同じkeyを複数指定することはできません) - valueには128文字以下の文字列が指定できます +
+スキーマ + ```json { "type": "string", @@ -147,6 +176,8 @@ Request request = new CreateUserAccount( } ``` +
+ 成功したときは diff --git a/docs/bank_pay.md b/docs/bank_pay.md index 2d27c7f4..cb1082bc 100644 --- a/docs/bank_pay.md +++ b/docs/bank_pay.md @@ -1,6 +1,59 @@ # BankPay BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + +## DeleteBank: 銀行口座の削除 +銀行口座を削除します + +```JAVA +Request request = new DeleteBank( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); + +``` + + + +### Parameters +#### `userDeviceId` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `bankId` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[BankDeleted](./responses.md#bank-deleted) +を返します + + + +--- + ## ListBanks: 登録した銀行の一覧 @@ -17,9 +70,10 @@ Request request = new ListBanks( ### Parameters -**`userDeviceId`** - +#### `userDeviceId` +
+スキーマ ```json { @@ -28,9 +82,12 @@ Request request = new ListBanks( } ``` -**`privateMoneyId`** - +
+ +#### `privateMoneyId` +
+スキーマ ```json { @@ -39,6 +96,8 @@ Request request = new ListBanks( } ``` +
+ 成功したときは @@ -57,7 +116,6 @@ Request request = new ListBanks( ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。 アプリの場合はDeep Linkを使うことを想定しています。 - ```JAVA Request request = new CreateBank( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID @@ -65,7 +123,7 @@ Request request = new CreateBank( "", // callbackUrl: コールバックURL "ポケペイタロウ" // kana: ユーザーの氏名 (片仮名で指定) ) - .email("wpVUwFU1am@kd1F.com") // ユーザーのメールアドレス + .email("T8anSF4797@Isvv.com") // ユーザーのメールアドレス .birthdate("19901142"); // 生年月日 ``` @@ -73,9 +131,10 @@ Request request = new CreateBank( ### Parameters -**`userDeviceId`** - +#### `userDeviceId` +
+スキーマ ```json { @@ -84,9 +143,12 @@ Request request = new CreateBank( } ``` -**`privateMoneyId`** - +
+ +#### `privateMoneyId` +
+スキーマ ```json { @@ -95,9 +157,12 @@ Request request = new CreateBank( } ``` -**`callbackUrl`** - +
+#### `callbackUrl` + +
+スキーマ ```json { @@ -106,9 +171,12 @@ Request request = new CreateBank( } ``` -**`kana`** - +
+ +#### `kana` +
+スキーマ ```json { @@ -117,9 +185,12 @@ Request request = new CreateBank( } ``` -**`email`** - +
+#### `email` + +
+スキーマ ```json { @@ -129,9 +200,12 @@ Request request = new CreateBank( } ``` -**`birthdate`** - +
+ +#### `birthdate` +
+スキーマ ```json { @@ -140,6 +214,8 @@ Request request = new CreateBank( } ``` +
+ 成功したときは @@ -159,7 +235,7 @@ Request request = new CreateBank( Request request = new CreateBankTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 8003, // amount: チャージ金額 + 6699, // amount: チャージ金額 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // bankId: 銀行ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // requestId: リクエストID ) @@ -170,9 +246,10 @@ Request request = new CreateBankTopupTransaction( ### Parameters -**`userDeviceId`** - +#### `userDeviceId` +
+スキーマ ```json { @@ -181,9 +258,12 @@ Request request = new CreateBankTopupTransaction( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` + +
+スキーマ ```json { @@ -192,9 +272,12 @@ Request request = new CreateBankTopupTransaction( } ``` -**`amount`** - +
+ +#### `amount` +
+スキーマ ```json { @@ -203,9 +286,12 @@ Request request = new CreateBankTopupTransaction( } ``` -**`bankId`** - +
+ +#### `bankId` +
+スキーマ ```json { @@ -214,9 +300,12 @@ Request request = new CreateBankTopupTransaction( } ``` -**`receiverUserId`** - +
+#### `receiverUserId` + +
+スキーマ ```json { @@ -225,9 +314,12 @@ Request request = new CreateBankTopupTransaction( } ``` -**`requestId`** - +
+ +#### `requestId` +
+スキーマ ```json { @@ -236,6 +328,8 @@ Request request = new CreateBankTopupTransaction( } ``` +
+ 成功したときは diff --git a/docs/bill.md b/docs/bill.md index 3aaf5d95..6a00e23a 100644 --- a/docs/bill.md +++ b/docs/bill.md @@ -1,5 +1,16 @@ # Bill -支払いQRコード +支払いQRコード(トークン)を表すデータです。 +URL文字列のまま利用されるケースとQR画像化して利用されるケースがあります。 +ログイン済みユーザアプリで読込むことで、支払い取引を作成します。 +設定される支払い金額(amount)は、固定値とユーザによる自由入力の2パターンがあります。 +amountが空の場合は、ユーザによる自由入力で受け付けた金額で支払いを行います。 +有効期限は比較的長命で利用される事例が多いです。 + +複数マネー対応支払いQRコードについて: +オプショナルで複数のマネーを1つの支払いQRコードに設定可能です。 +その場合ユーザ側でどのマネーで支払うか指定可能です。 +複数マネー対応支払いQRコードにはデフォルトのマネーウォレットを設定する必要があり、ユーザがマネーを明示的に選択しなかった場合はデフォルトのマネーによる支払いになります。 + ## ListBills: 支払いQRコード一覧を表示する @@ -7,30 +18,31 @@ ```JAVA Request request = new ListBills() - .page(2897) // ページ番号 - .perPage(1066) // 1ページの表示数 - .billId("r") // 支払いQRコードのID + .page(2157) // ページ番号 + .perPage(6055) // 1ページの表示数 + .billId("e") // 支払いQRコードのID .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID - .organizationCode("b--BUl96") // 組織コード + .organizationCode("-D54e-F6XEN") // 組織コード .description("test bill") // 取引説明文 - .createdFrom("2020-02-16T12:28:09.000000Z") // 作成日時(起点) - .createdTo("2022-11-02T03:28:47.000000Z") // 作成日時(終点) + .createdFrom("2021-07-29T10:08:23.000000Z") // 作成日時(起点) + .createdTo("2024-03-20T17:44:56.000000Z") // 作成日時(終点) .shopName("bill test shop1") // 店舗名 .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID - .lowerLimitAmount(8267) // 金額の範囲によるフィルタ(下限) - .upperLimitAmount(7846) // 金額の範囲によるフィルタ(上限) - .setDisabled(true); // 支払いQRコードが無効化されているかどうか + .lowerLimitAmount(9779) // 金額の範囲によるフィルタ(下限) + .upperLimitAmount(1699) // 金額の範囲によるフィルタ(上限) + .setDisabled(false); // 支払いQRコードが無効化されているかどうか ``` ### Parameters -**`page`** - - +#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -38,11 +50,14 @@ Request request = new ListBills() } ``` -**`perPage`** - +
+#### `perPage` 1ページに表示する支払いQRコードの数です。 +
+スキーマ + ```json { "type": "integer", @@ -50,22 +65,28 @@ Request request = new ListBills() } ``` -**`billId`** - +
+#### `billId` 支払いQRコードのIDを指定して検索します。IDは前方一致で検索されます。 +
+スキーマ + ```json { "type": "string" } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` 支払いQRコードの送金元ウォレットのマネーIDでフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -73,11 +94,14 @@ Request request = new ListBills() } ``` -**`organizationCode`** - +
+#### `organizationCode` 支払いQRコードの送金元店舗が所属する組織の組織コードでフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -86,11 +110,14 @@ Request request = new ListBills() } ``` -**`description`** - +
+#### `description` 支払いQRコードを読み取ることで作られた取引の説明文としてアプリなどに表示されます。 +
+スキーマ + ```json { "type": "string", @@ -98,13 +125,16 @@ Request request = new ListBills() } ``` -**`createdFrom`** - +
+#### `createdFrom` 支払いQRコードの作成日時でフィルターします。 これ以降に作成された支払いQRコードのみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -112,13 +142,16 @@ Request request = new ListBills() } ``` -**`createdTo`** - +
+#### `createdTo` 支払いQRコードの作成日時でフィルターします。 これ以前に作成された支払いQRコードのみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -126,11 +159,14 @@ Request request = new ListBills() } ``` -**`shopName`** - +
+#### `shopName` 支払いQRコードを作成した店舗名でフィルターします。店舗名は部分一致で検索されます。 +
+スキーマ + ```json { "type": "string", @@ -138,11 +174,14 @@ Request request = new ListBills() } ``` -**`shopId`** - +
+#### `shopId` 支払いQRコードを作成した店舗IDでフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -150,11 +189,14 @@ Request request = new ListBills() } ``` -**`lowerLimitAmount`** - +
+#### `lowerLimitAmount` 支払いQRコードの金額の下限を指定してフィルターします。 +
+スキーマ + ```json { "type": "integer", @@ -163,11 +205,14 @@ Request request = new ListBills() } ``` -**`upperLimitAmount`** - +
+#### `upperLimitAmount` 支払いQRコードの金額の上限を指定してフィルターします。 +
+スキーマ + ```json { "type": "integer", @@ -176,17 +221,22 @@ Request request = new ListBills() } ``` -**`setDisabled`** - +
+#### `setDisabled` 支払いQRコードが無効化されているかどうかを表します。デフォルト値は偽(有効)です。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -205,14 +255,15 @@ Request request = new ListBills() ## CreateBill: 支払いQRコードの発行 -支払いQRコードの内容を更新します。支払い先の店舗ユーザーは指定したマネーのウォレットを持っている必要があります。 +支払いQRコードを作成します。支払い先の店舗ユーザーは指定したマネーのウォレットを持っている必要があります。 ```JAVA Request request = new CreateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: 支払いマネーのマネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // shopId: 支払い先(受け取り人)の店舗ID ) - .amount(7728.0) // 支払い額 + .amount(6474.0) // 支払い額 + .additionalPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 追加の支払いマネーのマネーID .description("test bill"); // 説明文(アプリ上で取引の説明文として表示される) ``` @@ -220,10 +271,12 @@ Request request = new CreateBill( ### Parameters -**`amount`** - - +#### `amount` 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 +また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 + +
+スキーマ ```json { @@ -233,9 +286,12 @@ Request request = new CreateBill( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` + +
+スキーマ ```json { @@ -244,9 +300,35 @@ Request request = new CreateBill( } ``` -**`shopId`** - +
+ +#### `additionalPrivateMoneyIds` +複数マネー対応支払いQRコードにするために、`private_money_id` 以外に支払いに使えるマネーのマネーIDを指定します。 +エンドユーザはアプリでの読み取り時に、ここで指定したマネーを含む中から支払うマネーを選択できます。 +マネーを明示的に選択しなかった場合は `private_money_id` で指定したマネーによる支払いになります。 +支払い先の店舗ユーザは、ここで指定した全てのマネーのウォレットを持っている必要があります。 +また `amount` を指定する場合の上限額は、`private_money_id` と合わせた全マネーの取引上限額のうち最小のものです。 + +
+スキーマ + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +
+ +#### `shopId` + +
+スキーマ ```json { @@ -255,9 +337,12 @@ Request request = new CreateBill( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -266,25 +351,68 @@ Request request = new CreateBill( } ``` +
+ 成功したときは -[Bill](./responses.md#bill) +[BillWithAdditionalPrivateMoneys](./responses.md#bill-with-additional-private-moneys) を返します ### Error Responses |status|type|ja|en| |---|---|---|---| +|400|invalid_parameter_bill_amount_or_range_exceeding_transfer_limit|支払いQRコードの金額がマネーの取引可能金額の上限を超えています|The input amount is exceeding the private money's limit for transfer| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| -|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| |422|account_closed|アカウントは退会しています|The account is closed| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| |422|account_suspended|アカウントは停止されています|The account is suspended| +--- + + + +## GetBill: 支払いQRコードの表示 +支払いQRコードの内容を表示します。 + +```JAVA +Request request = new GetBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // billId: 支払いQRコードのID +); + +``` + + + +### Parameters +#### `billId` +表示する支払いQRコードのIDです。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[BillWithAdditionalPrivateMoneys](./responses.md#bill-with-additional-private-moneys) +を返します + + + --- @@ -296,20 +424,22 @@ Request request = new CreateBill( Request request = new UpdateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // billId: 支払いQRコードのID ) - .amount(4321.0) // 支払い額 + .amount(959.0) // 支払い額 .description("test bill") // 説明文 - .setDisabled(false); // 無効化されているかどうか + .setDisabled(true) // 無効化されているかどうか + .additionalPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}); // 追加の支払いマネーのマネーID ``` ### Parameters -**`billId`** - - +#### `billId` 更新対象の支払いQRコードのIDです。 +
+スキーマ + ```json { "type": "string", @@ -317,10 +447,13 @@ Request request = new UpdateBill( } ``` -**`amount`** - +
+ +#### `amount` +支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 -支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 +
+スキーマ ```json { @@ -330,11 +463,14 @@ Request request = new UpdateBill( } ``` -**`description`** - +
+#### `description` 支払いQRコードの詳細説明文です。アプリ上で取引の説明文として表示されます。 +
+スキーマ + ```json { "type": "string", @@ -342,23 +478,231 @@ Request request = new UpdateBill( } ``` -**`setDisabled`** - +
+#### `setDisabled` 支払いQRコードが無効化されているかどうかを指定します。真にすると無効化され、偽にすると有効化します。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ +#### `additionalPrivateMoneyIds` +複数マネー対応支払いQRコードの、デフォルトマネー以外に支払いに使えるマネーを指定し直します。 +ここで渡した内容で置き換えられるため、既存の追加マネーを残したい場合は残したいマネーIDも含めて渡してください。 +空配列を渡すと追加マネーが全て外れ、デフォルトマネーのみの支払いQRコードになります。 +このパラメータ自体を省略した場合、追加マネーの設定は変更されません。 + +支払い先の店舗ユーザは、ここで指定した全てのマネーのウォレットを持っている必要があります。 +デフォルトマネーは変更できません。 + +
+スキーマ + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +
+ + + +成功したときは +[BillWithAdditionalPrivateMoneys](./responses.md#bill-with-additional-private-moneys) +を返します + + + +--- + + + +## CreatePaymentTransactionWithBill: 支払いQRコードを読み取ることで支払いをする +通常支払いQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバが支払いQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際の支払い取引をリクエストすることになります。 + +エンドユーザーから受け取った支払いQRコードのIDをエンドユーザーIDと共に渡すことで支払い取引が作られます。 +支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 + +```JAVA +Request request = new CreatePaymentTransactionWithBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // billId: 支払いQRコードのID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // customerId: エンドユーザーのID +) + .metadata("{\"key\":\"value\"}") // 取引メタデータ + .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID + .strategy("point-preferred"); // 支払い時の残高消費方式 + +``` + + + +### Parameters +#### `billId` +支払いQRコードのIDです。 + +QRコード生成時に送金先店舗のウォレット情報や、支払い金額などが登録されています。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `customerId` +エンドユーザーIDです。 + +支払いを行うエンドユーザーを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `metadata` +取引作成時に指定されるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "json" +} +``` + +
+ +#### `requestId` +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `strategy` +支払い時に残高がどのように消費されるかを指定します。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +
+スキーマ + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + +
+ 成功したときは -[Bill](./responses.md#bill) +[TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|disabled_bill|支払いQRコードが無効です|Bill is disabled| +|422|customer_user_not_found||The customer user is not found| +|422|bill_not_found|支払いQRコードが見つかりません|Bill not found| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found|ユーザアカウントが見つかりません|The customer account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|503|temporarily_unavailable||Service Unavailable| + --- diff --git a/docs/bulk.md b/docs/bulk.md index 2659b647..199f9711 100644 --- a/docs/bulk.md +++ b/docs/bulk.md @@ -1,4 +1,10 @@ # Bulk +一括取引処理を表すデータです。 +CSVファイルのアップロードにより、複数件の取引をバッチ処理する非同期APIを提供します。 +一括処理のステータス(submitted, examining, queued, processing, error, done, scheduled, canceled)を監視できます。 +処理完了時にコールバックURLへの通知も可能です。 +また、スケジュール実行時刻を指定して将来の時点で処理を実行することもできます。 + ## BulkCreateTransaction: CSVファイル一括取引 @@ -6,23 +12,25 @@ CSVファイルから一括取引をします。 ```JAVA Request request = new BulkCreateTransaction( - "oMxEFE11voG9m7g", // name: 一括取引タスク名 - "WI", // content: 取引する情報のCSV - "lidcsFhnnSlOPQSKVW980GqQVfPuvUPiEFV6" // requestId: リクエストID + "yxgBYhgQbJ9IVu3c5hWvjkkOZFf6OC", // name: 一括取引タスク名 + "zDv", // content: 取引する情報のCSV + "yXye2YX5J7kswz32xxJb5gogkv5hZzhmNsrW" // requestId: リクエストID ) - .description("DyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1Cipp2C") // 一括取引の説明 - .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // マネーID + .description("blOgZAXoZX3MAHgYPmjySnk7glzhXNaVAYaLNrv4APPX0VuhkKvXP9XmQeb4lI9NzNi4QRVhKIgwqcZXXujn6BV89aH0zGishU") // 一括取引の説明 + .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID + .callbackUrl("https://XB3k1TCB.example.com"); // コールバックURL ``` ### Parameters -**`name`** - - +#### `name` 一括取引タスクの管理用の名前です。 +
+スキーマ + ```json { "type": "string", @@ -30,11 +38,14 @@ Request request = new BulkCreateTransaction( } ``` -**`description`** - +
+#### `description` 一括取引タスクの管理用の説明文です。 +
+スキーマ + ```json { "type": "string", @@ -42,12 +53,12 @@ Request request = new BulkCreateTransaction( } ``` -**`content`** - +
+#### `content` 一括取引する情報を書いたCSVの文字列です。 1行目はヘッダ行で、2行目以降の各行にカンマ区切りの取引データを含みます。 -カラムは以下の7つです。任意のカラムには空文字を指定します。 +カラムは以下の9つです。任意のカラムには空文字を指定します。 - `type`: 取引種別 - 必須。'topup' または 'payment' @@ -63,22 +74,28 @@ Request request = new BulkCreateTransaction( - 任意。ただし `money_amount` といずれかが必須。0以上の数字 - `description`: 取引の説明文 - 任意。200文字以内。取引履歴に表示される文章 -- `bear_account_id`: ポイント負担ウォレットID - - `point_amount` があるときは必須。UUID +- `bear_point_account_id`: ポイント負担ウォレットID + - 任意。UUID。省略した場合はマネー発行体の本店のウォレットがポイントを負担します - `point_expires_at`: ポイントの有効期限 - 任意。指定がないときはマネーに設定された有効期限を適用 +
+スキーマ + ```json { "type": "string" } ``` -**`requestId`** - +
+#### `requestId` 重複したリクエストを判断するためのユニークID。ランダムな36字の文字列を生成して渡してください。 +
+スキーマ + ```json { "type": "string", @@ -87,11 +104,14 @@ Request request = new BulkCreateTransaction( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -99,6 +119,46 @@ Request request = new BulkCreateTransaction( } ``` +
+ +#### `callbackUrl` +一括取引タスクが終了したときに通知されるコールバックURLです。これはオプショナルなパラメータで、未指定の場合は通知されません。 + +指定したURLに対して、以下の内容のリクエストがPOSTメソッドで送信されます。 + +リクエスト例: + { + "bulk_transaction_id": "c9a0b2c0-e8d0-4a7f-9b1d-2f0c3e1a8b7a", + "request_id": "1640e29f-157a-46e2-af05-c402726cbf2b", + "completed_at": "2025-09-26T14:30:00Z", + "status": "done", + "success_count": 98, + "total_count": 100 +} + +- bulk_transaction_id: 一括取引タスクのタスクID +- request_id: 本APIにクライアント側から指定したrequest_id +- completed_at: 完了時刻 +- status: 終了時の状態。done (完了状態) か error (エラー) のいずれか +- success_count: 成功件数 +- total_count: 総件数 + +リトライ戦略について: +対象URLにPOSTした結果、500, 502, 503, 504エラーを受け取ったとき、またはタイムアウト (10秒)したときに、最大3回までリトライします。 +成功通知が複数回送信されることもありえるため、request_idで排他処理を行なってください。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "url" +} +``` + +
+ 成功したときは @@ -108,11 +168,13 @@ Request request = new BulkCreateTransaction( ### Error Responses |status|type|ja|en| |---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |403|organization_not_issuer|発行体以外に許可されていない操作です|Unpermitted operation except for issuer organizations.| |409|NULL|NULL|NULL| |422|private_money_not_found|マネーが見つかりません|Private money not found| |422|bulk_transaction_invalid_csv_format|入力されたCSVデータに誤りがあります|Invalid csv format| +|503|temporarily_unavailable||Service Unavailable| diff --git a/docs/campaign.md b/docs/campaign.md index 5e882434..e4239218 100644 --- a/docs/campaign.md +++ b/docs/campaign.md @@ -1,4 +1,9 @@ # Campaign +自動ポイント還元ルールの設定を表すデータです。 +Pokepay管理画面やPartnerSDK経由でルール登録、更新が可能です。 +取引(Transaction)または外部決済イベント(ExternalTransaction)の内容によって還元するポイント額を計算し、自動で付与するルールを設定可能です。 +targetとして取引または外部決済イベントを選択して個別設定します。 + ## ListCampaigns: キャンペーン一覧を取得する @@ -11,8 +16,8 @@ Request request = new ListCampaigns( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) .setOngoing(false) // 現在適用可能なキャンペーンかどうか - .availableFrom("2023-04-20T21:23:50.000000Z") // 指定された日時以降に適用可能期間が含まれているか - .availableTo("2020-11-27T03:39:30.000000Z") // 指定された日時以前に適用可能期間が含まれているか + .availableFrom("2026-05-10T20:26:52.000000Z") // 指定された日時以降に適用可能期間が含まれているか + .availableTo("2021-11-10T05:07:10.000000Z") // 指定された日時以前に適用可能期間が含まれているか .page(1) // ページ番号 .perPage(20); // 1ページ分の取得数 @@ -21,13 +26,14 @@ Request request = new ListCampaigns( ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -35,25 +41,31 @@ Request request = new ListCampaigns( } ``` -**`setOngoing`** - +
+#### `setOngoing` 有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 デフォルトでは未指定(フィルターなし)です。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`availableFrom`** - +
+#### `availableFrom` キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。 デフォルトでは未指定(フィルターなし)です。 +
+スキーマ + ```json { "type": "string", @@ -61,12 +73,15 @@ Request request = new ListCampaigns( } ``` -**`availableTo`** - +
+#### `availableTo` キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。 デフォルトでは未指定(フィルターなし)です。 +
+スキーマ + ```json { "type": "string", @@ -74,11 +89,14 @@ Request request = new ListCampaigns( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -86,11 +104,14 @@ Request request = new ListCampaigns( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取得数です。デフォルトでは 20 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -99,6 +120,8 @@ Request request = new ListCampaigns( } ``` +
+ 成功したときは @@ -120,7 +143,6 @@ Request request = new ListCampaigns( ## CreateCampaign: ポイント付与キャンペーンを作る ポイント付与キャンペーンを作成します。 - ```JAVA JsonObject items = new JsonObject(); items.addProperty("point_amount", 5); @@ -144,17 +166,14 @@ items4.addProperty("product_code", "4912345678904"); items4.addProperty("is_multiply_by_count", true); items4.addProperty("required_count", 2); JsonObject items5 = new JsonObject(); -items5.addProperty("point_amount", 5); -items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); -items5.addProperty("is_multiply_by_count", true); -items5.addProperty("required_count", 2); +items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); items6.addProperty("product_code", "4912345678904"); items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); -items7.addProperty("from", "12:00"); -items7.addProperty("to", "23:59"); +items7.addProperty("product_code", "4912345678904"); +items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); items8.addProperty("from", "12:00"); items8.addProperty("to", "23:59"); @@ -165,50 +184,51 @@ JsonObject applicable_transaction_metadata = new JsonObject(); applicable_transaction_metadata.addProperty("key", "rank"); applicable_transaction_metadata.addProperty("value", "bronze"); Request request = new CreateCampaign( - "bdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w3aEMSDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClPPAh3ydu7juMa", // name: キャンペーン名 + "PgkjFM2OQzcSnWHq19FZrEznmqJPjUJTgImhGc9HJEQJmhSQSbckJ0fOiubMoC3zDcy2cOdFG6Dwb", // name: キャンペーン名 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - "2020-05-27T16:30:33.000000Z", // startsAt: キャンペーン開始日時 - "2022-03-29T07:15:33.000000Z", // endsAt: キャンペーン終了日時 - 4491, // priority: キャンペーンの適用優先度 + "2021-11-19T00:30:18.000000Z", // startsAt: キャンペーン開始日時 + "2026-02-25T15:43:31.000000Z", // endsAt: キャンペーン終了日時 + 9558, // priority: キャンペーンの適用優先度 "external-transaction" // event: イベント種別 ) .bearPointShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント負担先店舗ID - .description("7kqGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOfsuO") // キャンペーンの説明文 + .description("WrdC05OlbHcOU5dgOzje0pxC3a7ehXW7AlGm4wkfy3Zcpne1CwZ") // キャンペーンの説明文 .status("disabled") // キャンペーン作成時の状態 - .pointExpiresAt("2023-06-21T16:01:16.000000Z") // ポイント有効期限(絶対日時指定) - .pointExpiresInDays(5365) // ポイント有効期限(相対日数指定) + .pointExpiresAt("2025-09-07T12:17:34.000000Z") // ポイント有効期限(絶対日時指定) + .pointExpiresInDays(4053) // ポイント有効期限(相対日数指定) .setExclusive(false) // キャンペーンの重複設定 .subject("all") // ポイント付与の対象金額の種別 .amountBasedPointRules(new Object[]{items,items2,items3}) // 取引金額ベースのポイント付与ルール - .productBasedPointRules(new Object[]{items4,items5}) // 商品情報ベースのポイント付与ルール - .blacklistedProductRules(new Object[]{items6}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト - .applicableDaysOfWeek(new Integer[]{0,0,5}) // キャンペーンを適用する曜日 (複数指定) - .applicableTimeRanges(new Object[]{items7,items8}) // キャンペーンを適用する時間帯 (複数指定) - .applicableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象となる店舗IDのリスト + .productBasedPointRules(new Object[]{items4}) // 商品情報ベースのポイント付与ルール + .blacklistedProductRules(new Object[]{items5,items6,items7}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト + .applicableDaysOfWeek(new Integer[]{2}) // キャンペーンを適用する曜日 (複数指定) + .applicableTimeRanges(new Object[]{items8}) // キャンペーンを適用する時間帯 (複数指定) + .applicableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象となる店舗IDのリスト .blacklistedShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) - .minimumNumberOfProducts(3310) // キャンペーンを適用する1会計内の商品個数の下限 - .minimumNumberOfAmount(9962) // キャンペーンを適用する1会計内の商品総額の下限 - .minimumNumberForCombinationPurchase(1410) // 複数種類の商品を同時購入するときの商品種別数の下限 - .existInEachProductGroups(false) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - .maxPointAmount(4219) // キャンペーンによって付与されるポイントの上限 - .maxTotalPointAmount(3453) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + .minimumNumberOfProducts(8271) // キャンペーンを適用する1会計内の商品個数の下限 + .minimumNumberOfAmount(6177) // キャンペーンを適用する1会計内の商品総額の下限 + .minimumNumberForCombinationPurchase(9717) // 複数種類の商品を同時購入するときの商品種別数の下限 + .existInEachProductGroups(true) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + .maxPointAmount(4365) // キャンペーンによって付与されるポイントの上限 + .maxTotalPointAmount(4718) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 .destPrivateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント付与先となるマネーID .applicableAccountMetadata(applicable_account_metadata) // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 .applicableTransactionMetadata(applicable_transaction_metadata) // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - .budgetCapsAmount(1859163538); // キャンペーン予算上限 + .budgetCapsAmount(1148393686); // キャンペーン予算上限 ``` ### Parameters -**`name`** - - +#### `name` キャンペーン名です(必須項目)。 ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 +
+スキーマ + ```json { "type": "string", @@ -216,11 +236,14 @@ Request request = new CreateCampaign( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` キャンペーン対象のマネーのIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -228,13 +251,16 @@ Request request = new CreateCampaign( } ``` -**`startsAt`** - +
+#### `startsAt` キャンペーン開始日時です(必須項目)。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -242,13 +268,16 @@ Request request = new CreateCampaign( } ``` -**`endsAt`** - +
+#### `endsAt` キャンペーン終了日時です(必須項目)。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -256,23 +285,26 @@ Request request = new CreateCampaign( } ``` -**`priority`** - +
+#### `priority` キャンペーンの適用優先度です。 優先度が大きいものから順に適用判定されていきます。 キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 +
+スキーマ + ```json { "type": "integer" } ``` -**`event`** - +
+#### `event` キャンペーンのトリガーとなるイベントの種類を指定します(必須項目)。 以下のいずれかを指定できます。 @@ -284,6 +316,9 @@ Request request = new CreateCampaign( 3. external-transaction ポケペイ外の取引(現金決済など) +
+スキーマ + ```json { "type": "string", @@ -295,12 +330,15 @@ Request request = new CreateCampaign( } ``` -**`bearPointShopId`** - +
+#### `bearPointShopId` ポイントを負担する店舗のIDです。デフォルトではマネー発行体の本店が設定されます。 ポイント負担先店舗は後から更新することはできません。 +
+スキーマ + ```json { "type": "string", @@ -308,11 +346,14 @@ Request request = new CreateCampaign( } ``` -**`description`** - +
+#### `description` キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 +
+スキーマ + ```json { "type": "string", @@ -320,9 +361,9 @@ Request request = new CreateCampaign( } ``` -**`status`** - +
+#### `status` キャンペーン作成時の状態を指定します。デフォルトではenabledです。 以下のいずれかを指定できます。 @@ -332,6 +373,9 @@ Request request = new CreateCampaign( 2. disabled 無効 +
+スキーマ + ```json { "type": "string", @@ -342,12 +386,15 @@ Request request = new CreateCampaign( } ``` -**`pointExpiresAt`** - +
+#### `pointExpiresAt` キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -355,12 +402,15 @@ Request request = new CreateCampaign( } ``` -**`pointExpiresInDays`** - +
+#### `pointExpiresInDays` キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "integer", @@ -368,23 +418,26 @@ Request request = new CreateCampaign( } ``` -**`setExclusive`** - +
+#### `setExclusive` キャンペーンの重ね掛けを行うかどうかのフラグです。 これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。 falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`subject`** - +
+#### `subject` ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。 @@ -397,6 +450,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) 注意: event を topup にしたときはポイントの付与に対しても適用されます +
+スキーマ + ```json { "type": "string", @@ -407,9 +463,9 @@ all を指定すると決済額全体を対象にします (「ポイント」 } ``` -**`amountBasedPointRules`** - +
+#### `amountBasedPointRules` 金額をベースとしてポイント付与を行うルールを指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 @@ -433,6 +489,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し ] ``` +
+スキーマ + ```json { "type": "array", @@ -442,9 +501,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し } ``` -**`productBasedPointRules`** - +
+#### `productBasedPointRules` 商品情報をベースとしてポイント付与を行うルールを指定します。 ルールは商品ごとに設定可能で、ルールの配列として指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 @@ -491,6 +550,9 @@ event が payment か external-transaction の時のみ有効です。 ] ``` +
+スキーマ + ```json { "type": "array", @@ -500,13 +562,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`blacklistedProductRules`** - +
+#### `blacklistedProductRules` 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 除外対象の商品コード、または分類コードのパターンの配列として指定します。 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 +
+スキーマ + ```json { "type": "array", @@ -516,13 +581,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicableDaysOfWeek`** - +
+#### `applicableDaysOfWeek` キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) +
+スキーマ + ```json { "type": "array", @@ -534,13 +602,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicableTimeRanges`** - +
+#### `applicableTimeRanges` キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 +
+スキーマ + ```json { "type": "array", @@ -550,12 +621,15 @@ fromとtoは両方必要です。 } ``` -**`applicableShopIds`** - +
+#### `applicableShopIds` キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 +
+スキーマ + ```json { "type": "array", @@ -566,13 +640,16 @@ fromとtoは両方必要です。 } ``` -**`blacklistedShopIds`** - +
+#### `blacklistedShopIds` キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 +
+スキーマ + ```json { "type": "array", @@ -583,11 +660,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimumNumberOfProducts`** - +
+#### `minimumNumberOfProducts` このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -595,11 +675,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimumNumberOfAmount`** - +
+#### `minimumNumberOfAmount` このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -607,9 +690,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimumNumberForCombinationPurchase`** - +
+#### `minimumNumberForCombinationPurchase` 複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。デフォルトでは未指定で、指定する場合は1以上の整数を指定します。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 @@ -682,6 +765,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` +
+スキーマ + ```json { "type": "integer", @@ -689,9 +775,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`existInEachProductGroups`** - +
+#### `existInEachProductGroups` 複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 @@ -772,19 +858,25 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になりますが、付与値の上限が100ポイントになります。つまり100 + 200=300と計算されますが上限額の100ポイントが実際の付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600ですが上限額の100がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`maxPointAmount`** - +
+#### `maxPointAmount` キャンペーンによって付与されるポイントの上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、amount_based_point_rules や product_based_point_rules によって計算されるポイント付与値がmax_point_amountを越えている場合、max_point_amountの値がポイント付与値となり、越えていない場合はその値がポイント付与値となります。 +
+スキーマ + ```json { "type": "integer", @@ -792,14 +884,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`maxTotalPointAmount`** - +
+#### `maxTotalPointAmount` キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 +
+スキーマ + ```json { "type": "integer", @@ -807,9 +902,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`destPrivateMoneyId`** - +
+#### `destPrivateMoneyId` キャンペーンを駆動するイベントのマネーとは「別のマネー」に対してポイントを付けたいときに、そのマネーIDを指定します。 ポイント付与先のマネーはキャンペーンを駆動するイベントのマネーと同一発行体が発行しているものに限ります。その他のマネーIDが指定された場合は private_money_not_found (422) が返ります。 @@ -820,6 +915,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 別マネーに対するポイント付与は別のtransactionとなります。 RefundTransaction で元のイベントをキャンセルしたときはポイント付与のtransactionもキャンセルされ、逆にポイント付与のtransactionをキャンセルしたときは連動して元のイベントがキャンセルされます。 +
+スキーマ + ```json { "type": "string", @@ -827,9 +925,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`applicableAccountMetadata`** - +
+#### `applicableAccountMetadata` ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 @@ -856,15 +954,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`applicableTransactionMetadata`** - +
+#### `applicableTransactionMetadata` 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 @@ -891,20 +992,26 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`budgetCapsAmount`** - +
+#### `budgetCapsAmount` キャンペーンの予算上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 +
+スキーマ + ```json { "type": "integer", @@ -913,6 +1020,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+ 成功したときは @@ -952,13 +1061,14 @@ Request request = new GetCampaign( ### Parameters -**`campaignId`** - - +#### `campaignId` キャンペーンIDです。 指定したIDのキャンペーンを取得します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -966,6 +1076,8 @@ Request request = new GetCampaign( } ``` +
+ 成功したときは @@ -981,7 +1093,6 @@ Request request = new GetCampaign( ## UpdateCampaign: ポイント付与キャンペーンを更新する ポイント付与キャンペーンを更新します。 - ```JAVA JsonObject items = new JsonObject(); items.addProperty("point_amount", 5); @@ -991,15 +1102,13 @@ items.addProperty("subject_less_than", 5000); JsonObject items2 = new JsonObject(); items2.addProperty("point_amount", 5); items2.addProperty("point_amount_unit", "percent"); -items2.addProperty("product_code", "4912345678904"); -items2.addProperty("is_multiply_by_count", true); -items2.addProperty("required_count", 2); +items2.addProperty("subject_more_than_or_equal", 1000); +items2.addProperty("subject_less_than", 5000); JsonObject items3 = new JsonObject(); items3.addProperty("point_amount", 5); items3.addProperty("point_amount_unit", "percent"); -items3.addProperty("product_code", "4912345678904"); -items3.addProperty("is_multiply_by_count", true); -items3.addProperty("required_count", 2); +items3.addProperty("subject_more_than_or_equal", 1000); +items3.addProperty("subject_less_than", 5000); JsonObject items4 = new JsonObject(); items4.addProperty("point_amount", 5); items4.addProperty("point_amount_unit", "percent"); @@ -1007,17 +1116,17 @@ items4.addProperty("product_code", "4912345678904"); items4.addProperty("is_multiply_by_count", true); items4.addProperty("required_count", 2); JsonObject items5 = new JsonObject(); +items5.addProperty("point_amount", 5); +items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); -items5.addProperty("classification_code", "c123"); +items5.addProperty("is_multiply_by_count", true); +items5.addProperty("required_count", 2); JsonObject items6 = new JsonObject(); -items6.addProperty("from", "12:00"); -items6.addProperty("to", "23:59"); +items6.addProperty("product_code", "4912345678904"); +items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); items7.addProperty("from", "12:00"); items7.addProperty("to", "23:59"); -JsonObject items8 = new JsonObject(); -items8.addProperty("from", "12:00"); -items8.addProperty("to", "23:59"); JsonObject applicable_account_metadata = new JsonObject(); applicable_account_metadata.addProperty("key", "sex"); applicable_account_metadata.addProperty("value", "male"); @@ -1027,46 +1136,47 @@ applicable_transaction_metadata.addProperty("value", "bronze"); Request request = new UpdateCampaign( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // campaignId: キャンペーンID ) - .name("tzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2") // キャンペーン名 - .startsAt("2022-07-19T10:00:07.000000Z") // キャンペーン開始日時 - .endsAt("2024-05-22T15:43:46.000000Z") // キャンペーン終了日時 - .priority(7347) // キャンペーンの適用優先度 - .event("payment") // イベント種別 - .description("98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcINC0MaOVTzOYUS4YiFzadS1dG4VhCAXdvL") // キャンペーンの説明文 - .status("disabled") // キャンペーン作成時の状態 - .pointExpiresAt("2023-11-21T12:04:13.000000Z") // ポイント有効期限(絶対日時指定) - .pointExpiresInDays(740) // ポイント有効期限(相対日数指定) + .name("iRjvHmu") // キャンペーン名 + .startsAt("2020-05-01T07:33:29.000000Z") // キャンペーン開始日時 + .endsAt("2023-02-26T23:07:31.000000Z") // キャンペーン終了日時 + .priority(1531) // キャンペーンの適用優先度 + .event("external-transaction") // イベント種別 + .description("9htqusezXyLXJsEvfTSncRo7it4pVulLY") // キャンペーンの説明文 + .status("enabled") // キャンペーン作成時の状態 + .pointExpiresAt("2025-12-23T20:26:19.000000Z") // ポイント有効期限(絶対日時指定) + .pointExpiresInDays(340) // ポイント有効期限(相対日数指定) .setExclusive(true) // キャンペーンの重複設定 .subject("all") // ポイント付与の対象金額の種別 - .amountBasedPointRules(new Object[]{items}) // 取引金額ベースのポイント付与ルール - .productBasedPointRules(new Object[]{items2,items3,items4}) // 商品情報ベースのポイント付与ルール - .blacklistedProductRules(new Object[]{items5}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト - .applicableDaysOfWeek(new Integer[]{1,5}) // キャンペーンを適用する曜日 (複数指定) - .applicableTimeRanges(new Object[]{items6,items7,items8}) // キャンペーンを適用する時間帯 (複数指定) - .applicableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象となる店舗IDのリスト - .blacklistedShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) - .minimumNumberOfProducts(7318) // キャンペーンを適用する1会計内の商品個数の下限 - .minimumNumberOfAmount(9052) // キャンペーンを適用する1会計内の商品総額の下限 - .minimumNumberForCombinationPurchase(6125) // 複数種類の商品を同時購入するときの商品種別数の下限 - .existInEachProductGroups(false) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - .maxPointAmount(5449) // キャンペーンによって付与されるポイントの上限 - .maxTotalPointAmount(1307) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + .amountBasedPointRules(new Object[]{items,items2,items3}) // 取引金額ベースのポイント付与ルール + .productBasedPointRules(new Object[]{items4,items5}) // 商品情報ベースのポイント付与ルール + .blacklistedProductRules(new Object[]{items6}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト + .applicableDaysOfWeek(new Integer[]{5}) // キャンペーンを適用する曜日 (複数指定) + .applicableTimeRanges(new Object[]{items7}) // キャンペーンを適用する時間帯 (複数指定) + .applicableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象となる店舗IDのリスト + .blacklistedShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + .minimumNumberOfProducts(5333) // キャンペーンを適用する1会計内の商品個数の下限 + .minimumNumberOfAmount(4888) // キャンペーンを適用する1会計内の商品総額の下限 + .minimumNumberForCombinationPurchase(9891) // 複数種類の商品を同時購入するときの商品種別数の下限 + .existInEachProductGroups(true) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + .maxPointAmount(5203) // キャンペーンによって付与されるポイントの上限 + .maxTotalPointAmount(3457) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 .applicableAccountMetadata(applicable_account_metadata) // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 .applicableTransactionMetadata(applicable_transaction_metadata) // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - .budgetCapsAmount(456514657); // キャンペーン予算上限 + .budgetCapsAmount(866650488); // キャンペーン予算上限 ``` ### Parameters -**`campaignId`** - - +#### `campaignId` キャンペーンIDです。 指定したIDのキャンペーンを更新します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -1074,13 +1184,16 @@ Request request = new UpdateCampaign( } ``` -**`name`** - +
+#### `name` キャンペーン名です。 ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 +
+スキーマ + ```json { "type": "string", @@ -1088,13 +1201,16 @@ Request request = new UpdateCampaign( } ``` -**`startsAt`** - +
+#### `startsAt` キャンペーン開始日時です。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -1102,13 +1218,16 @@ Request request = new UpdateCampaign( } ``` -**`endsAt`** - +
+#### `endsAt` キャンペーン終了日時です。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -1116,23 +1235,26 @@ Request request = new UpdateCampaign( } ``` -**`priority`** - +
+#### `priority` キャンペーンの適用優先度です。 優先度が大きいものから順に適用判定されていきます。 キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 +
+スキーマ + ```json { "type": "integer" } ``` -**`event`** - +
+#### `event` キャンペーンのトリガーとなるイベントの種類を指定します。 以下のいずれかを指定できます。 @@ -1144,6 +1266,9 @@ Request request = new UpdateCampaign( 3. external-transaction ポケペイ外の取引(現金決済など) +
+スキーマ + ```json { "type": "string", @@ -1155,11 +1280,14 @@ Request request = new UpdateCampaign( } ``` -**`description`** - +
+#### `description` キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 +
+スキーマ + ```json { "type": "string", @@ -1167,9 +1295,9 @@ Request request = new UpdateCampaign( } ``` -**`status`** - +
+#### `status` キャンペーン作成時の状態を指定します。デフォルトではenabledです。 以下のいずれかを指定できます。 @@ -1179,6 +1307,9 @@ Request request = new UpdateCampaign( 2. disabled 無効 +
+スキーマ + ```json { "type": "string", @@ -1189,12 +1320,15 @@ Request request = new UpdateCampaign( } ``` -**`pointExpiresAt`** - +
+#### `pointExpiresAt` キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -1202,12 +1336,15 @@ Request request = new UpdateCampaign( } ``` -**`pointExpiresInDays`** - +
+#### `pointExpiresInDays` キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "integer", @@ -1215,23 +1352,26 @@ Request request = new UpdateCampaign( } ``` -**`setExclusive`** - +
+#### `setExclusive` キャンペーンの重ね掛けを行うかどうかのフラグです。 これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。 falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`subject`** - +
+#### `subject` ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。 @@ -1244,6 +1384,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) 注意: event を topup にしたときはポイントの付与に対しても適用されます +
+スキーマ + ```json { "type": "string", @@ -1254,9 +1397,9 @@ all を指定すると決済額全体を対象にします (「ポイント」 } ``` -**`amountBasedPointRules`** - +
+#### `amountBasedPointRules` 金額をベースとしてポイント付与を行うルールを指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 @@ -1280,6 +1423,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し ] ``` +
+スキーマ + ```json { "type": "array", @@ -1289,9 +1435,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し } ``` -**`productBasedPointRules`** - +
+#### `productBasedPointRules` 商品情報をベースとしてポイント付与を行うルールを指定します。 ルールは商品ごとに設定可能で、ルールの配列として指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 @@ -1338,6 +1484,9 @@ event が payment か external-transaction の時のみ有効です。 ] ``` +
+スキーマ + ```json { "type": "array", @@ -1347,13 +1496,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`blacklistedProductRules`** - +
+#### `blacklistedProductRules` 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 除外対象の商品コード、または分類コードのパターンの配列として指定します。 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 +
+スキーマ + ```json { "type": "array", @@ -1363,13 +1515,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicableDaysOfWeek`** - +
+#### `applicableDaysOfWeek` キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) +
+スキーマ + ```json { "type": "array", @@ -1381,13 +1536,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicableTimeRanges`** - +
+#### `applicableTimeRanges` キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 +
+スキーマ + ```json { "type": "array", @@ -1397,12 +1555,15 @@ fromとtoは両方必要です。 } ``` -**`applicableShopIds`** - +
+#### `applicableShopIds` キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 +
+スキーマ + ```json { "type": "array", @@ -1413,13 +1574,16 @@ fromとtoは両方必要です。 } ``` -**`blacklistedShopIds`** - +
+#### `blacklistedShopIds` キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 +
+スキーマ + ```json { "type": "array", @@ -1430,11 +1594,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimumNumberOfProducts`** - +
+#### `minimumNumberOfProducts` このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -1442,11 +1609,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimumNumberOfAmount`** - +
+#### `minimumNumberOfAmount` このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -1454,9 +1624,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimumNumberForCombinationPurchase`** - +
+#### `minimumNumberForCombinationPurchase` 複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 @@ -1529,6 +1699,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` +
+スキーマ + ```json { "type": "integer", @@ -1536,9 +1709,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`existInEachProductGroups`** - +
+#### `existInEachProductGroups` 複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 @@ -1619,19 +1792,25 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になりますが、付与値の上限が100ポイントになります。つまり100 + 200=300と計算されますが上限額の100ポイントが実際の付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600ですが上限額の100がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`maxPointAmount`** - +
+#### `maxPointAmount` キャンペーンによって付与される1取引当たりのポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、amount_based_point_rules や product_based_point_rules によって計算されるポイント付与値がmax_point_amountを越えている場合、max_point_amountの値がポイント付与値となり、越えていない場合はその値がポイント付与値となります。 +
+スキーマ + ```json { "type": "integer", @@ -1639,14 +1818,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`maxTotalPointAmount`** - +
+#### `maxTotalPointAmount` キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 +
+スキーマ + ```json { "type": "integer", @@ -1654,9 +1836,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`applicableAccountMetadata`** - +
+#### `applicableAccountMetadata` ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 @@ -1683,15 +1865,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`applicableTransactionMetadata`** - +
+#### `applicableTransactionMetadata` 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 @@ -1718,15 +1903,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`budgetCapsAmount`** - +
+#### `budgetCapsAmount` キャンペーンの予算上限を指定します。 キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 @@ -1734,6 +1922,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。 キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。 +
+スキーマ + ```json { "type": "integer", @@ -1742,6 +1933,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+ 成功したときは diff --git a/docs/cashtray.md b/docs/cashtray.md index ed49087a..15787106 100644 --- a/docs/cashtray.md +++ b/docs/cashtray.md @@ -1,10 +1,10 @@ # Cashtray Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。 +店舗ユーザはCashtrayの状態を監視することができ、取引の成否やエラー事由を知ることができます。 Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。 Cashtrayはワンタイムで、一度読み取りに成功するか、取引エラーになると失効します。 また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 - ## CreateTransactionWithCashtray: CashtrayQRコードを読み取ることで取引する エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。 @@ -12,7 +12,6 @@ Cashtrayはワンタイムで、一度読み取りに成功するか、取引エ 通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがCashtrayQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 - ```JAVA Request request = new CreateTransactionWithCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // cashtrayId: Cashtray用QRコードのID @@ -26,13 +25,14 @@ Request request = new CreateTransactionWithCashtray( ### Parameters -**`cashtrayId`** - - +#### `cashtrayId` Cashtray用QRコードのIDです。 QRコード生成時に送金元店舗のウォレット情報や、金額などが登録されています。 +
+スキーマ + ```json { "type": "string", @@ -40,11 +40,14 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 +
+スキーマ + ```json { "type": "string", @@ -52,9 +55,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など } ``` -**`strategy`** - +
+#### `strategy` 支払い時に残高がどのように消費されるかを指定します。 チャージの場合は無効です。 デフォルトでは point-preferred (ポイント優先)が採用されます。 @@ -64,6 +67,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 +
+スキーマ + ```json { "type": "string", @@ -74,9 +80,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。 @@ -86,6 +92,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -93,6 +102,8 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など } ``` +
+ 成功したときは @@ -105,7 +116,12 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|account_not_found|アカウントが見つかりません|The account is not found| |422|cashtray_not_found|決済QRコードが見つかりません|Cashtray is not found| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -115,8 +131,13 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など |422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| |422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| -|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| -|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| |422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| |422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| @@ -126,7 +147,7 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など |422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| -|422|customer_account_not_found||The customer account is not found| +|422|customer_account_not_found|ユーザアカウントが見つかりません|The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| @@ -136,6 +157,8 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|cashtray_already_proceed|この決済QRコードは既に処理されています|Cashtray is already proceed| |422|cashtray_expired|この決済QRコードは有効期限が切れています|Cashtray is expired| |422|cashtray_already_canceled|この決済QRコードは既に無効化されています|Cashtray is already canceled| @@ -155,26 +178,26 @@ Cashtrayを作成します。 その他に、Cashtrayから作られる取引に対する説明文や失効時間を指定できます。 - ```JAVA Request request = new CreateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ユーザーID - 4669.0 // amount: 金額 + 5174.0 // amount: 金額 ) .description("たい焼き(小倉)") // 取引履歴に表示する説明文 - .expiresIn(7102); // 失効時間(秒) + .expiresIn(2211); // 失効時間(秒) ``` ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` 取引対象のマネーのIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -182,11 +205,14 @@ Request request = new CreateCashtray( } ``` -**`shopId`** - +
+#### `shopId` 店舗のユーザーIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -194,24 +220,30 @@ Request request = new CreateCashtray( } ``` -**`amount`** - +
+#### `amount` マネー額です(必須項目)。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。 アプリや管理画面などの取引履歴に表示されます。デフォルトでは空文字になります。 +
+スキーマ + ```json { "type": "string", @@ -219,11 +251,14 @@ Cashtrayを読み取ったときに作られる取引の説明文です(最大20 } ``` -**`expiresIn`** - +
+#### `expiresIn` Cashtrayが失効するまでの時間を秒単位で指定します(任意項目、デフォルト値は1800秒(30分))。 +
+スキーマ + ```json { "type": "integer", @@ -231,6 +266,8 @@ Cashtrayが失効するまでの時間を秒単位で指定します(任意項 } ``` +
+ 成功したときは @@ -266,11 +303,12 @@ Request request = new CancelCashtray( ### Parameters -**`cashtrayId`** - - +#### `cashtrayId` 無効化するCashtrayのIDです。 +
+スキーマ + ```json { "type": "string", @@ -278,6 +316,8 @@ Request request = new CancelCashtray( } ``` +
+ 成功したときは @@ -360,11 +400,12 @@ Request request = new GetCashtray( ### Parameters -**`cashtrayId`** - - +#### `cashtrayId` 情報を取得するCashtrayのIDです。 +
+スキーマ + ```json { "type": "string", @@ -372,6 +413,8 @@ Request request = new GetCashtray( } ``` +
+ 成功したときは @@ -391,20 +434,21 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可 Request request = new UpdateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // cashtrayId: CashtrayのID ) - .amount(2045.0) // 金額 + .amount(1592.0) // 金額 .description("たい焼き(小倉)") // 取引履歴に表示する説明文 - .expiresIn(624); // 失効時間(秒) + .expiresIn(9422); // 失効時間(秒) ``` ### Parameters -**`cashtrayId`** - - +#### `cashtrayId` 更新対象のCashtrayのIDです。 +
+スキーマ + ```json { "type": "string", @@ -412,24 +456,30 @@ Request request = new UpdateCashtray( } ``` -**`amount`** - +
+#### `amount` マネー額です(任意項目)。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。 アプリや管理画面などの取引履歴に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -437,11 +487,14 @@ Cashtrayを読み取ったときに作られる取引の説明文です(最大20 } ``` -**`expiresIn`** - +
+#### `expiresIn` Cashtrayが失効するまでの時間を秒で指定します(任意項目、デフォルト値は1800秒(30分))。 +
+スキーマ + ```json { "type": "integer", @@ -449,6 +502,8 @@ Cashtrayが失効するまでの時間を秒で指定します(任意項目、 } ``` +
+ 成功したときは diff --git a/docs/check.md b/docs/check.md index b643ab35..c9efc96e 100644 --- a/docs/check.md +++ b/docs/check.md @@ -5,24 +5,26 @@ `https://www-sandbox.pokepay.jp/checks/xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` -QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注意: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 - +QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) +上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 ## ListChecks: チャージQRコード一覧の取得 ```JAVA Request request = new ListChecks() - .page(3549) // ページ番号 + .page(6957) // ページ番号 .perPage(50) // 1ページの表示数 .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID - .organizationCode("SiZH6DDfNqfsVRi3zxzsVzVJLxp") // 組織コード - .expiresFrom("2022-01-21T10:21:24.000000Z") // 有効期限の期間によるフィルター(開始時点) - .expiresTo("2023-02-28T05:03:02.000000Z") // 有効期限の期間によるフィルター(終了時点) - .createdFrom("2024-04-13T07:05:15.000000Z") // 作成日時の期間によるフィルター(開始時点) - .createdTo("2022-09-18T15:22:33.000000Z") // 作成日時の期間によるフィルター(終了時点) + .organizationCode("fnKUDaFnoOELVFIliGUkzDwrt") // 組織コード + .expiresFrom("2020-08-15T15:07:48.000000Z") // 有効期限の期間によるフィルター(開始時点) + .expiresTo("2023-10-26T07:38:14.000000Z") // 有効期限の期間によるフィルター(終了時点) + .startsFrom("2025-12-03T09:38:56.000000Z") // 有効開始日時の期間によるフィルター(開始時点) + .startsTo("2026-03-01T10:28:29.000000Z") // 有効開始日時の期間によるフィルター(終了時点) + .createdFrom("2025-10-17T01:40:23.000000Z") // 作成日時の期間によるフィルター(開始時点) + .createdTo("2020-11-22T19:13:28.000000Z") // 作成日時の期間によるフィルター(終了時点) .issuerShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 発行店舗ID - .description("CjOUSN") // チャージQRコードの説明文 + .description("CLc") // チャージQRコードの説明文 .setOnetime(false) // ワンタイムのチャージQRコードかどうか .setDisabled(false); // 無効化されたチャージQRコードかどうか @@ -31,9 +33,10 @@ Request request = new ListChecks() ### Parameters -**`page`** - +#### `page` +
+スキーマ ```json { @@ -42,11 +45,14 @@ Request request = new ListChecks() } ``` -**`perPage`** - +
+#### `perPage` 1ページ当たり表示数です。デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -54,11 +60,13 @@ Request request = new ListChecks() } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 +
+スキーマ ```json { @@ -67,12 +75,15 @@ Request request = new ListChecks() } ``` -**`organizationCode`** - +
+#### `organizationCode` チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -80,12 +91,14 @@ Request request = new ListChecks() } ``` -**`expiresFrom`** - +
+#### `expiresFrom` 有効期限の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -94,12 +107,14 @@ Request request = new ListChecks() } ``` -**`expiresTo`** - +
+#### `expiresTo` 有効期限の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -108,12 +123,46 @@ Request request = new ListChecks() } ``` -**`createdFrom`** - +
+ +#### `startsFrom` +有効開始日時の期間によるフィルターの開始時点のタイムスタンプです。 +デフォルトでは未指定です。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ +#### `startsTo` +有効開始日時の期間によるフィルターの終了時点のタイムスタンプです。 +デフォルトでは未指定です。 + +
+スキーマ +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ +#### `createdFrom` 作成日時の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -122,12 +171,14 @@ Request request = new ListChecks() } ``` -**`createdTo`** - +
+#### `createdTo` 作成日時の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -136,12 +187,14 @@ Request request = new ListChecks() } ``` -**`issuerShopId`** - +
+#### `issuerShopId` チャージQRコードを発行した店舗IDによってフィルターします。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -150,13 +203,15 @@ Request request = new ListChecks() } ``` -**`description`** - +
+#### `description` チャージQRコードの説明文(description)によってフィルターします。 部分一致(前方一致)したものを表示します。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -164,14 +219,16 @@ Request request = new ListChecks() } ``` -**`setOnetime`** - +
+#### `setOnetime` チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 `true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 未指定の場合はフィルターしません。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -179,14 +236,16 @@ Request request = new ListChecks() } ``` -**`setDisabled`** - +
+#### `setDisabled` チャージQRコードが無効化されているかどうかでフィルターします。 `true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 未指定の場合はフィルターしません。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -194,6 +253,8 @@ Request request = new ListChecks() } ``` +
+ 成功したときは @@ -220,13 +281,14 @@ Request request = new ListChecks() Request request = new CreateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: 送金元の店舗アカウントID ) - .moneyAmount(5709.0) // 付与マネー額 - .pointAmount(9032.0) // 付与ポイント額 + .moneyAmount(7238.0) // 付与マネー額 + .pointAmount(3476.0) // 付与ポイント額 .description("test check") // 説明文(アプリ上で取引の説明文として表示される) - .setOnetime(true) // ワンタイムかどうかのフラグ - .usageLimit(569) // ワンタイムでない場合の最大読み取り回数 - .expiresAt("2022-11-10T08:44:22.000000Z") // チャージQRコード自体の失効日時 - .pointExpiresAt("2023-02-21T16:04:27.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 + .setOnetime(false) // ワンタイムかどうかのフラグ + .usageLimit(3504) // ワンタイムでない場合の最大読み取り回数 + .expiresAt("2026-08-15T13:51:03.000000Z") // チャージQRコード自体の失効日時 + .startsAt("2020-05-27T10:16:27.000000Z") // チャージQRコード有効開始日時 + .pointExpiresAt("2021-10-24T13:31:24.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 .pointExpiresInDays(60) // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) .bearPointAccount("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ポイント額を負担する店舗のウォレットID @@ -238,12 +300,12 @@ Request request = new CreateCheck( ### Parameters -**`moneyAmount`** - - +#### `moneyAmount` チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 +
+スキーマ ```json { @@ -253,12 +315,14 @@ Request request = new CreateCheck( } ``` -**`pointAmount`** - +
+#### `pointAmount` チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 +
+スキーマ ```json { @@ -268,9 +332,12 @@ Request request = new CreateCheck( } ``` -**`accountId`** - +
+ +#### `accountId` +
+スキーマ ```json { @@ -279,9 +346,12 @@ Request request = new CreateCheck( } ``` -**`description`** - +
+#### `description` + +
+スキーマ ```json { @@ -290,13 +360,15 @@ Request request = new CreateCheck( } ``` -**`setOnetime`** - +
+#### `setOnetime` チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 +
+スキーマ ```json { @@ -304,14 +376,16 @@ Request request = new CreateCheck( } ``` -**`usageLimit`** - +
+#### `usageLimit` 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 デフォルト値はNULLです。 ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 +
+スキーマ ```json { @@ -319,13 +393,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`expiresAt`** - +
+#### `expiresAt` チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 +
+スキーマ ```json { @@ -334,13 +410,32 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`pointExpiresAt`** - +
+ +#### `startsAt` +チャージQRコードの有効開始日時を指定します。この日時を過ぎるまではチャージQRコードを読み取ることができません。 +NULL(デフォルト)の場合は作成直後から有効になります。 +`starts_at`は`expires_at`より前である必要があります。 +
+スキーマ + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ +#### `pointExpiresAt` チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 +
+スキーマ ```json { @@ -349,13 +444,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`pointExpiresInDays`** - +
+#### `pointExpiresInDays` チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 +
+スキーマ ```json { @@ -364,12 +461,14 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`bearPointAccount`** - +
+#### `bearPointAccount` ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 +
+スキーマ ```json { @@ -378,6 +477,8 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` +
+ 成功したときは @@ -390,6 +491,7 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード |400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| |400|invalid_parameter_only_merchants_can_attach_points_to_check||Only merchants can attach points to check| |400|invalid_parameter_combination_usage_limit_and_is_onetime||'usage_limit' can not be specified if 'is_onetime' is true.| +|400|invalid_parameter_starts_at_after_expires_at|「starts_at」は「expires_at」より前の日時を指定してください|'starts_at' must be earlier than 'expires_at'| |400|invalid_parameter_expires_at||'expires_at' must be in the future| |400|invalid_parameters|項目が無効です|Invalid parameters| |400|invalid_parameter_bear_point_account_identification_item_not_unique|ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます|Request parameters include either bear_point_account or bear_point_shop_id.| @@ -418,11 +520,12 @@ Request request = new GetCheck( ### Parameters -**`checkId`** - - +#### `checkId` 表示対象のチャージQRコードのIDです。 +
+スキーマ + ```json { "type": "string", @@ -430,6 +533,8 @@ Request request = new GetCheck( } ``` +
+ 成功したときは @@ -448,27 +553,29 @@ Request request = new GetCheck( Request request = new UpdateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // checkId: チャージQRコードのID ) - .moneyAmount(1623.0) // 付与マネー額 - .pointAmount(2280.0) // 付与ポイント額 + .moneyAmount(2915.0) // 付与マネー額 + .pointAmount(2971.0) // 付与ポイント額 .description("test check") // チャージQRコードの説明文 .setOnetime(true) // ワンタイムかどうかのフラグ - .usageLimit(3244) // ワンタイムでない場合の最大読み取り回数 - .expiresAt("2024-08-13T14:04:59.000000Z") // チャージQRコード自体の失効日時 - .pointExpiresAt("2021-08-26T07:57:47.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 + .usageLimit(7841) // ワンタイムでない場合の最大読み取り回数 + .expiresAt("2023-02-21T04:19:03.000000Z") // チャージQRコード自体の失効日時 + .startsAt("2020-04-08T01:45:37.000000Z") // チャージQRコード有効開始日時 + .pointExpiresAt("2023-06-11T01:09:20.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 .pointExpiresInDays(60) // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) .bearPointAccount("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント額を負担する店舗のウォレットID - .setDisabled(false); // 無効化されているかどうかのフラグ + .setDisabled(true); // 無効化されているかどうかのフラグ ``` ### Parameters -**`checkId`** - - +#### `checkId` 更新対象のチャージQRコードのIDです。 +
+スキーマ + ```json { "type": "string", @@ -476,12 +583,14 @@ Request request = new UpdateCheck( } ``` -**`moneyAmount`** - +
+#### `moneyAmount` チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 +
+スキーマ ```json { @@ -491,12 +600,14 @@ Request request = new UpdateCheck( } ``` -**`pointAmount`** - +
+#### `pointAmount` チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 +
+スキーマ ```json { @@ -506,12 +617,14 @@ Request request = new UpdateCheck( } ``` -**`description`** - +
+#### `description` チャージQRコードの説明文です。 チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 +
+スキーマ ```json { @@ -520,13 +633,15 @@ Request request = new UpdateCheck( } ``` -**`setOnetime`** - +
+#### `setOnetime` チャージQRコードが一度の読み取りで失効するときに`true`にします。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 +
+スキーマ ```json { @@ -534,13 +649,15 @@ Request request = new UpdateCheck( } ``` -**`usageLimit`** - +
+#### `usageLimit` 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 +
+スキーマ ```json { @@ -548,13 +665,33 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`expiresAt`** - +
+#### `expiresAt` チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 +
+スキーマ + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ +#### `startsAt` +チャージQRコードの有効開始日時を指定します。この日時を過ぎるまではチャージQRコードを読み取ることができません。 +NULLに設定すると、作成直後から有効になります。 +過去の日時を指定した場合は現在日時に補正されます。 +`starts_at`は`expires_at`より前である必要があります。 + +
+スキーマ ```json { @@ -563,13 +700,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`pointExpiresAt`** - +
+#### `pointExpiresAt` チャージQRコードによって付与されるポイント残高の有効起源を指定します。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 +
+スキーマ ```json { @@ -578,14 +717,16 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`pointExpiresInDays`** - +
+#### `pointExpiresInDays` チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 `point_expires_at`と`point_expires_in_days`が両方NULLに設定されている場合は、マネーに設定されている残高の有効期限と同じになります。 +
+スキーマ ```json { @@ -594,11 +735,13 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`bearPointAccount`** - +
+#### `bearPointAccount` ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 +
+スキーマ ```json { @@ -607,12 +750,14 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`setDisabled`** - +
+#### `setDisabled` チャージQRコードを無効化するときに`true`にします。 `false`の場合は無効化されているチャージQRコードを再有効化します。 +
+スキーマ ```json { @@ -620,6 +765,8 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` +
+ 成功したときは @@ -637,7 +784,6 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード エンドユーザーから受け取ったチャージ用QRコードのIDをエンドユーザーIDと共に渡すことでチャージ取引が作られます。 - ```JAVA Request request = new CreateTopupTransactionWithCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // checkId: チャージ用QRコードのID @@ -650,13 +796,14 @@ Request request = new CreateTopupTransactionWithCheck( ### Parameters -**`checkId`** - - +#### `checkId` チャージ用QRコードのIDです。 QRコード生成時に送金元店舗のウォレット情報や、送金額などが登録されています。 +
+スキーマ + ```json { "type": "string", @@ -664,13 +811,16 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 送金先のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -678,9 +828,9 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -688,6 +838,9 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -695,6 +848,8 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な } ``` +
+ 成功したときは @@ -707,7 +862,12 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|customer_user_not_found||The customer user is not found| |422|check_not_found|これはチャージQRコードではありません|This is not a topup QR code| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -717,8 +877,13 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| |422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| -|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| -|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| |422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| |422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| @@ -728,7 +893,7 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| -|422|customer_account_not_found||The customer account is not found| +|422|customer_account_not_found|ユーザアカウントが見つかりません|The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| @@ -738,7 +903,10 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|check_already_received|このチャージQRコードは既に受取済みの為、チャージ出来ませんでした|Check is already received| +|422|check_not_started_yet|このチャージQRコードはまだ使用できません|Check is not usable yet| |422|check_unavailable|このチャージQRコードは利用できません|The topup QR code is not available| |503|temporarily_unavailable||Service Unavailable| diff --git a/docs/coupon.md b/docs/coupon.md index 6ff76c64..93a4407e 100644 --- a/docs/coupon.md +++ b/docs/coupon.md @@ -1,6 +1,9 @@ # Coupon -Couponは支払い時に指定し、支払い処理の前にCouponに指定の方法で値引き処理を行います。 -Couponは特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 +割引クーポンを表すデータです。 +クーポンをユーザが明示的に利用することによって支払い決済時の割引(固定金額 or 割引率)が適用されます。 +クーポンは支払い時に指定し、支払い処理の前にクーポンに指定の方法で値引き処理を行います。 +クーポン原資を負担する発行店舗を設定したり、配布先を指定することも可能です。 +また、特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 @@ -11,12 +14,12 @@ Couponは特定店舗で利用できるものや利用可能期間、配信条 Request request = new ListCoupons( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: 対象クーポンのマネーID ) - .couponId("UgNjF9") // クーポンID - .couponName("pGXPoR6") // クーポン名 - .issuedShopName("V6EH9oG2E") // 発行店舗名 - .availableShopName("mJwg74tJd") // 利用可能店舗名 - .availableFrom("2021-09-17T06:11:05.000000Z") // 利用可能期間 (開始日時) - .availableTo("2022-06-22T11:15:22.000000Z") // 利用可能期間 (終了日時) + .couponId("VMpSWKVi5") // クーポンID + .couponName("N7y3SPx9Uv") // クーポン名 + .issuedShopName("ns7") // 発行店舗名 + .availableShopName("LOU5JmSx") // 利用可能店舗名 + .availableFrom("2022-05-11T23:28:33.000000Z") // 利用可能期間 (開始日時) + .availableTo("2022-12-12T03:00:56.000000Z") // 利用可能期間 (終了日時) .page(1) // ページ番号 .perPage(50); // 1ページ分の取得数 @@ -25,12 +28,12 @@ Request request = new ListCoupons( ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` 対象クーポンのマネーIDです(必須項目)。 存在しないマネーIDを指定した場合はprivate_money_not_foundエラー(422)が返ります。 +
+スキーマ ```json { @@ -39,12 +42,14 @@ Request request = new ListCoupons( } ``` -**`couponId`** - +
+#### `couponId` 指定されたクーポンIDで結果をフィルターします。 部分一致(前方一致)します。 +
+スキーマ ```json { @@ -52,11 +57,13 @@ Request request = new ListCoupons( } ``` -**`couponName`** - +
+#### `couponName` 指定されたクーポン名で結果をフィルターします。 +
+スキーマ ```json { @@ -64,11 +71,13 @@ Request request = new ListCoupons( } ``` -**`issuedShopName`** - +
+#### `issuedShopName` 指定された発行店舗で結果をフィルターします。 +
+スキーマ ```json { @@ -76,11 +85,13 @@ Request request = new ListCoupons( } ``` -**`availableShopName`** - +
+#### `availableShopName` 指定された利用可能店舗で結果をフィルターします。 +
+スキーマ ```json { @@ -88,11 +99,13 @@ Request request = new ListCoupons( } ``` -**`availableFrom`** - +
+#### `availableFrom` 利用可能期間でフィルターします。フィルターの開始日時をISO8601形式で指定します。 +
+スキーマ ```json { @@ -101,11 +114,13 @@ Request request = new ListCoupons( } ``` -**`availableTo`** - +
+#### `availableTo` 利用可能期間でフィルターします。フィルターの終了日時をISO8601形式で指定します。 +
+スキーマ ```json { @@ -114,11 +129,14 @@ Request request = new ListCoupons( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -126,11 +144,14 @@ Request request = new ListCoupons( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -138,6 +159,8 @@ Request request = new ListCoupons( } ``` +
+ 成功したときは @@ -163,26 +186,27 @@ Request request = new ListCoupons( ```JAVA Request request = new CreateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "5Llab29gfUQ6hTQL3", - "2020-12-30T15:57:59.000000Z", - "2021-01-11T11:18:00.000000Z", + "TmL5CoRyGeNp0HxXnZXSXNgckUAwWayJKCRYX3YIcgcnowGfiwKDxXVuCnD6rOBTI27AIAV5JepzVqh", + "2025-04-27T12:03:04.000000Z", + "2020-08-16T02:06:30.000000Z", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // issuedShopId: 発行元の店舗ID ) - .description("ITMLHDmfb2965KcWooPsLAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aR") - .discountAmount(5623) - .discountPercentage(6960.0) - .discountUpperLimit(9272) - .displayStartsAt("2021-04-27T12:56:01.000000Z") // クーポンの掲載期間(開始日時) - .displayEndsAt("2020-11-05T14:23:13.000000Z") // クーポンの掲載期間(終了日時) - .setDisabled(true) // 無効化フラグ - .setHidden(true) // クーポン一覧に掲載されるかどうか - .setPublic(true) // アプリ配信なしで受け取れるかどうか - .code("HosccmXh") // クーポン受け取りコード - .usageLimit(5575) // ユーザごとの利用可能回数(NULLの場合は無制限) - .minAmount(8497) // クーポン適用可能な最小取引額 - .setShopSpecified(false) // 特定店舗限定のクーポンかどうか - .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト - .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ストレージID + .description("y4RP0gQPVohOKO497LqBx5st33IycobYifawLoyomWOOMozo5jpKaGDznlAnGQMpbxQAiLohSPUwUYCUJg68uA2AmnfrLs0DzubTwACwZ7ZhzXL6GQDOebU5xROJsENJO2NqdySldX94xlSRqnAPOZUjwSd4H43FQ8gVS6TmMl7klMt3C13MqnL5qq1u02f7XAIyZQ65mKbppT1wZa5Ul9NliFarXnpuT0KKlK0tskfw") + .discountAmount(4141) + .discountPercentage(8495.0) + .discountUpperLimit(4989) + .displayStartsAt("2025-05-11T19:48:24.000000Z") // クーポンの掲載期間(開始日時) + .displayEndsAt("2022-01-14T18:20:25.000000Z") // クーポンの掲載期間(終了日時) + .setDisabled(false) // 無効化フラグ + .setHidden(false) // クーポン一覧に掲載されるかどうか + .setPublic(false) // アプリ配信なしで受け取れるかどうか + .code("tzv0") // クーポン受け取りコード + .usageLimit(1979) // ユーザごとの利用可能回数(NULLの場合は無制限) + .minAmount(2213) // クーポン適用可能な最小取引額 + .setShopSpecified(true) // 特定店舗限定のクーポンかどうか + .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト + .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ストレージID + .numRecipientsCap(9255); // クーポンを受け取ることができるユーザ数上限 ``` @@ -190,9 +214,10 @@ Request request = new CreateCoupon( ### Parameters -**`privateMoneyId`** - +#### `privateMoneyId` +
+スキーマ ```json { @@ -201,9 +226,12 @@ Request request = new CreateCoupon( } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -212,9 +240,12 @@ Request request = new CreateCoupon( } ``` -**`description`** - +
+#### `description` + +
+スキーマ ```json { @@ -223,9 +254,12 @@ Request request = new CreateCoupon( } ``` -**`discountAmount`** - +
+ +#### `discountAmount` +
+スキーマ ```json { @@ -234,9 +268,12 @@ Request request = new CreateCoupon( } ``` -**`discountPercentage`** - +
+ +#### `discountPercentage` +
+スキーマ ```json { @@ -245,9 +282,12 @@ Request request = new CreateCoupon( } ``` -**`discountUpperLimit`** - +
+#### `discountUpperLimit` + +
+スキーマ ```json { @@ -256,9 +296,12 @@ Request request = new CreateCoupon( } ``` -**`startsAt`** - +
+ +#### `startsAt` +
+スキーマ ```json { @@ -267,9 +310,12 @@ Request request = new CreateCoupon( } ``` -**`endsAt`** - +
+#### `endsAt` + +
+スキーマ ```json { @@ -278,9 +324,12 @@ Request request = new CreateCoupon( } ``` -**`displayStartsAt`** - +
+ +#### `displayStartsAt` +
+スキーマ ```json { @@ -289,9 +338,12 @@ Request request = new CreateCoupon( } ``` -**`displayEndsAt`** - +
+#### `displayEndsAt` + +
+スキーマ ```json { @@ -300,9 +352,12 @@ Request request = new CreateCoupon( } ``` -**`setDisabled`** - +
+ +#### `setDisabled` +
+スキーマ ```json { @@ -310,12 +365,14 @@ Request request = new CreateCoupon( } ``` -**`setHidden`** - +
+#### `setHidden` アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 +
+スキーマ ```json { @@ -323,9 +380,12 @@ Request request = new CreateCoupon( } ``` -**`setPublic`** - +
+#### `setPublic` + +
+スキーマ ```json { @@ -333,9 +393,12 @@ Request request = new CreateCoupon( } ``` -**`code`** - +
+ +#### `code` +
+スキーマ ```json { @@ -343,9 +406,12 @@ Request request = new CreateCoupon( } ``` -**`usageLimit`** - +
+ +#### `usageLimit` +
+スキーマ ```json { @@ -353,9 +419,12 @@ Request request = new CreateCoupon( } ``` -**`minAmount`** - +
+#### `minAmount` + +
+スキーマ ```json { @@ -363,9 +432,12 @@ Request request = new CreateCoupon( } ``` -**`issuedShopId`** - +
+ +#### `issuedShopId` +
+スキーマ ```json { @@ -374,9 +446,12 @@ Request request = new CreateCoupon( } ``` -**`setShopSpecified`** - +
+#### `setShopSpecified` + +
+スキーマ ```json { @@ -384,9 +459,12 @@ Request request = new CreateCoupon( } ``` -**`availableShopIds`** - +
+ +#### `availableShopIds` +
+スキーマ ```json { @@ -398,11 +476,14 @@ Request request = new CreateCoupon( } ``` -**`storageId`** - +
+#### `storageId` Storage APIでアップロードしたクーポン画像のStorage IDを指定します +
+スキーマ + ```json { "type": "string", @@ -410,6 +491,22 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 } ``` +
+ +#### `numRecipientsCap` + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ 成功したときは @@ -445,13 +542,14 @@ Request request = new GetCoupon( ### Parameters -**`couponId`** - - +#### `couponId` 取得するクーポンのIDです。 UUIDv4フォーマットである必要があり、フォーマットが異なる場合は InvalidParametersエラー(400)が返ります。 指定したIDのクーポンが存在しない場合はCouponNotFoundエラー(422)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -459,6 +557,8 @@ UUIDv4フォーマットである必要があり、フォーマットが異な } ``` +
+ 成功したときは @@ -478,24 +578,25 @@ UUIDv4フォーマットである必要があり、フォーマットが異な Request request = new UpdateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // couponId: クーポンID ) - .name("E5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JE") - .description("ew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQa") - .discountAmount(3454) - .discountPercentage(7341.0) - .discountUpperLimit(5424) - .startsAt("2022-11-19T21:09:25.000000Z") - .endsAt("2020-10-04T17:07:18.000000Z") - .displayStartsAt("2022-03-16T02:48:40.000000Z") // クーポンの掲載期間(開始日時) - .displayEndsAt("2020-06-03T00:23:31.000000Z") // クーポンの掲載期間(終了日時) - .setDisabled(true) // 無効化フラグ + .name("OHu7kauWEG06SgCTer9oFRJ4RuLmQ0Lm0BujxjuGzP64zEajyqhONnTNJefr2TiFsY9hewfsBiByfrEZOyxfKfoQGupNHaPUWIAEdiNMDugLuPAj9l5d8AynsLeqsG") + .description("dglo4RznM6xq8a41fGu54mYbxoNTpwSF7lLeXEgHqdJbSYvAjEwhC3hwMP5cgQTpj98oXR8pOFi9g2w6AFQtTwKA2dNvAhM3isQf3EbT9n4bNXT5kpK8LD20g1iwKbDSOY8Obvi4UJC9R4UvEHmyGnNqQFSIcOK9wFQbyZ9b8R7gO8vV0TOwj3sRQx2") + .discountAmount(3371) + .discountPercentage(6772.0) + .discountUpperLimit(4698) + .startsAt("2022-04-30T07:10:27.000000Z") + .endsAt("2025-07-21T01:00:07.000000Z") + .displayStartsAt("2025-06-11T14:22:40.000000Z") // クーポンの掲載期間(開始日時) + .displayEndsAt("2021-09-01T21:45:17.000000Z") // クーポンの掲載期間(終了日時) + .setDisabled(false) // 無効化フラグ .setHidden(false) // クーポン一覧に掲載されるかどうか - .setPublic(true) // アプリ配信なしで受け取れるかどうか - .code("2aIO") // クーポン受け取りコード - .usageLimit(7115) // ユーザごとの利用可能回数(NULLの場合は無制限) - .minAmount(6094) // クーポン適用可能な最小取引額 + .setPublic(false) // アプリ配信なしで受け取れるかどうか + .code("UcwyM") // クーポン受け取りコード + .usageLimit(5091) // ユーザごとの利用可能回数(NULLの場合は無制限) + .minAmount(914) // クーポン適用可能な最小取引額 .setShopSpecified(false) // 特定店舗限定のクーポンかどうか - .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト - .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ストレージID + .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト + .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ストレージID + .numRecipientsCap(1107); // クーポンを受け取ることができるユーザ数上限 ``` @@ -505,9 +606,10 @@ Request request = new UpdateCoupon( ### Parameters -**`couponId`** - +#### `couponId` +
+スキーマ ```json { @@ -516,9 +618,12 @@ Request request = new UpdateCoupon( } ``` -**`name`** - +
+#### `name` + +
+スキーマ ```json { @@ -527,9 +632,12 @@ Request request = new UpdateCoupon( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -538,9 +646,12 @@ Request request = new UpdateCoupon( } ``` -**`discountAmount`** - +
+#### `discountAmount` + +
+スキーマ ```json { @@ -549,9 +660,12 @@ Request request = new UpdateCoupon( } ``` -**`discountPercentage`** - +
+ +#### `discountPercentage` +
+スキーマ ```json { @@ -560,9 +674,12 @@ Request request = new UpdateCoupon( } ``` -**`discountUpperLimit`** - +
+ +#### `discountUpperLimit` +
+スキーマ ```json { @@ -571,9 +688,12 @@ Request request = new UpdateCoupon( } ``` -**`startsAt`** - +
+#### `startsAt` + +
+スキーマ ```json { @@ -582,9 +702,12 @@ Request request = new UpdateCoupon( } ``` -**`endsAt`** - +
+ +#### `endsAt` +
+スキーマ ```json { @@ -593,9 +716,12 @@ Request request = new UpdateCoupon( } ``` -**`displayStartsAt`** - +
+#### `displayStartsAt` + +
+スキーマ ```json { @@ -604,9 +730,12 @@ Request request = new UpdateCoupon( } ``` -**`displayEndsAt`** - +
+ +#### `displayEndsAt` +
+スキーマ ```json { @@ -615,9 +744,12 @@ Request request = new UpdateCoupon( } ``` -**`setDisabled`** - +
+#### `setDisabled` + +
+スキーマ ```json { @@ -625,12 +757,14 @@ Request request = new UpdateCoupon( } ``` -**`setHidden`** - +
+#### `setHidden` アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 +
+スキーマ ```json { @@ -638,9 +772,12 @@ Request request = new UpdateCoupon( } ``` -**`setPublic`** - +
+ +#### `setPublic` +
+スキーマ ```json { @@ -648,9 +785,12 @@ Request request = new UpdateCoupon( } ``` -**`code`** - +
+#### `code` + +
+スキーマ ```json { @@ -658,9 +798,12 @@ Request request = new UpdateCoupon( } ``` -**`usageLimit`** - +
+ +#### `usageLimit` +
+スキーマ ```json { @@ -668,9 +811,12 @@ Request request = new UpdateCoupon( } ``` -**`minAmount`** - +
+ +#### `minAmount` +
+スキーマ ```json { @@ -678,9 +824,12 @@ Request request = new UpdateCoupon( } ``` -**`setShopSpecified`** - +
+#### `setShopSpecified` + +
+スキーマ ```json { @@ -688,9 +837,12 @@ Request request = new UpdateCoupon( } ``` -**`availableShopIds`** - +
+ +#### `availableShopIds` +
+スキーマ ```json { @@ -702,11 +854,14 @@ Request request = new UpdateCoupon( } ``` -**`storageId`** - +
+#### `storageId` Storage APIでアップロードしたクーポン画像のStorage IDを指定します +
+スキーマ + ```json { "type": "string", @@ -714,6 +869,22 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 } ``` +
+ +#### `numRecipientsCap` + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ 成功したときは diff --git a/docs/credit_session.md b/docs/credit_session.md new file mode 100644 index 00000000..8332bec6 --- /dev/null +++ b/docs/credit_session.md @@ -0,0 +1,287 @@ +# CreditSession +クレジットカード決済セッションを管理するためのAPIです。 +Veritrans(決済ゲートウェイ)との連携でクレジットカード決済を実現します。 +セッションには有効期限があり、セッション作成後に取引の実行や売上確定(キャプチャ)を行います。 +3Dセキュア認証にも対応しています。 + + + +## PostCreditSession: Create credit session + +```JAVA +Request request = new PostCreditSession( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "2021-11-24T13:35:34.000000Z" // expiresAt: セッション有効期限 +) + .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // 冪等性キー + +``` + + + +### Parameters +#### `customerId` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `privateMoneyId` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `cardId` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `expiresAt` +セッション有効期限 +制約: リクエスト時刻から30日以内 +例: "2024-01-15T10:30:00+00:00" + +
+スキーマ + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ +#### `requestId` +冪等性キー +同一のrequest_idを持つリクエストは冪等に処理されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CreditSession](./responses.md#credit-session) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + + +## CreateCreditSessionTransaction: Create transaction with credit session +クレジットセッションを使用して取引を作成します。 +セッションIDと取引金額を指定します。 + +```JAVA +Request request = new CreateCreditSessionTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // sessionId: クレジットセッションID + 6815.0 // amount: 取引金額 +) + .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID + .description("OthUvaBWHSD95mCwqz0uQMfHDC0caZdfhivWlaI8SRhD29ZtnzslLBpLYCslrR5KJr7bn9hdX9OCfFXn9K2AgfBHU7qrHZsxfuhIX0b4ZUJ6pPrj6eqKTlwfXx7lcxZh2WMWiFuZyBOgd5E91H2aN9YB3D") // 取引説明 + .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // 冪等性キー + +``` + + + +### Parameters +#### `sessionId` +クレジットセッションID + +事前に作成されたクレジットセッションのIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `amount` +取引金額 +支払い金額を指定します。 + +
+スキーマ + +```json +{ + "type": "number", + "minimum": 0 +} +``` + +
+ +#### `shopId` +店舗ID +支払いを行う店舗のIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `description` +取引説明 +取引の説明や備考を指定します。省略時は空文字列になります。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +
+ +#### `requestId` +冪等性キー +同一のrequest_idを持つリクエストは冪等に処理されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CreditSessionTransactionResult](./responses.md#credit-session-transaction-result) +を返します + + + +--- + + + +## CaptureCreditSession: Capture credit session +クレジットセッションの売上確定(キャプチャ)を行います。 +セッション内で行われた支払いの合計金額をクレジットカードに請求します。 + +```JAVA +Request request = new CaptureCreditSession( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // sessionId: クレジットセッションID +) + .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // 冪等性キー + +``` + + + +### Parameters +#### `sessionId` +クレジットセッションID + +キャプチャ対象のクレジットセッションのIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `requestId` +冪等性キー +同一のrequest_idを持つリクエストは冪等に処理されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CapturedCreditSession](./responses.md#captured-credit-session) +を返します + + + +--- + + + diff --git a/docs/customer.md b/docs/customer.md index f5991723..43144644 100644 --- a/docs/customer.md +++ b/docs/customer.md @@ -1,4 +1,10 @@ # Customer +エンドユーザー(顧客)のウォレット情報を管理するためのAPIです。 +エンドユーザーのウォレット(アカウント)の作成・更新・取得を行います。 +ウォレットにはマネー残高(有償バリュー)とポイント残高(無償バリュー)があり、 +有効期限別に金額が管理されています。 +また、外部システム連携用のexternal_idやメタデータを設定することも可能です。 + ## DeleteAccount: ウォレットを退会する @@ -8,20 +14,21 @@ Request request = new DeleteAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .cashback(false); // 返金有無 + .cashback(true); // 返金有無 ``` ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 指定したウォレットIDのウォレットを退会します。 +
+スキーマ + ```json { "type": "string", @@ -29,17 +36,22 @@ Request request = new DeleteAccount( } ``` -**`cashback`** - +
+#### `cashback` 退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -65,13 +77,14 @@ Request request = new GetAccount( ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 フィルターとして使われ、指定したウォレットIDのウォレットを取得します。 +
+スキーマ + ```json { "type": "string", @@ -79,6 +92,8 @@ Request request = new GetAccount( } ``` +
+ 成功したときは @@ -113,13 +128,14 @@ Request request = new UpdateAccount( ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 指定したウォレットIDのウォレットの状態を更新します。 +
+スキーマ + ```json { "type": "string", @@ -127,22 +143,28 @@ Request request = new UpdateAccount( } ``` -**`setSuspended`** - +
+#### `setSuspended` ウォレットの凍結状態です。真にするとウォレットが凍結され、そのウォレットでは新規取引ができなくなります。偽にすると凍結解除されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`status`** - +
+#### `status` ウォレットの状態です。 +
+スキーマ + ```json { "type": "string", @@ -154,17 +176,22 @@ Request request = new UpdateAccount( } ``` -**`canTransferTopup`** - +
+#### `canTransferTopup` 店舗ユーザーがエンドユーザーにチャージ可能かどうかです。真にするとチャージ可能となり、偽にするとチャージ不可能となります。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -184,24 +211,25 @@ Request request = new UpdateAccount( Request request = new ListAccountBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .page(7941) // ページ番号 - .perPage(3708) // 1ページ分の取引数 - .expiresAtFrom("2021-10-09T23:01:25.000000Z") // 有効期限の期間によるフィルター(開始時点) - .expiresAtTo("2023-02-28T03:03:13.000000Z") // 有効期限の期間によるフィルター(終了時点) - .direction("desc"); // 有効期限によるソート順序 + .page(7198) // ページ番号 + .perPage(1119) // 1ページ分の取引数 + .expiresAtFrom("2026-04-09T16:37:04.000000Z") // 有効期限の期間によるフィルター(開始時点) + .expiresAtTo("2024-10-17T05:05:19.000000Z") // 有効期限の期間によるフィルター(終了時点) + .direction("asc"); // 有効期限によるソート順序 ``` ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。 +
+スキーマ + ```json { "type": "string", @@ -209,11 +237,14 @@ Request request = new ListAccountBalances( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -221,11 +252,14 @@ Request request = new ListAccountBalances( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分のウォレット残高数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -233,11 +267,14 @@ Request request = new ListAccountBalances( } ``` -**`expiresAtFrom`** - +
+#### `expiresAtFrom` 有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -245,11 +282,14 @@ Request request = new ListAccountBalances( } ``` -**`expiresAtTo`** - +
+#### `expiresAtTo` 有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -257,11 +297,14 @@ Request request = new ListAccountBalances( } ``` -**`direction`** - +
+#### `direction` 有効期限によるソートの順序を指定します。デフォルト値はasc (昇順)です。 +
+スキーマ + ```json { "type": "string", @@ -272,6 +315,8 @@ Request request = new ListAccountBalances( } ``` +
+ 成功したときは @@ -291,24 +336,25 @@ Request request = new ListAccountBalances( Request request = new ListAccountExpiredBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .page(2601) // ページ番号 - .perPage(9562) // 1ページ分の取引数 - .expiresAtFrom("2021-09-14T00:24:39.000000Z") // 有効期限の期間によるフィルター(開始時点) - .expiresAtTo("2020-04-28T23:50:47.000000Z") // 有効期限の期間によるフィルター(終了時点) - .direction("asc"); // 有効期限によるソート順序 + .page(9961) // ページ番号 + .perPage(4376) // 1ページ分の取引数 + .expiresAtFrom("2025-01-21T09:55:15.000000Z") // 有効期限の期間によるフィルター(開始時点) + .expiresAtTo("2026-01-18T01:13:39.000000Z") // 有効期限の期間によるフィルター(終了時点) + .direction("desc"); // 有効期限によるソート順序 ``` ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。 +
+スキーマ + ```json { "type": "string", @@ -316,11 +362,14 @@ Request request = new ListAccountExpiredBalances( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -328,11 +377,14 @@ Request request = new ListAccountExpiredBalances( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分のウォレット残高数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -340,11 +392,14 @@ Request request = new ListAccountExpiredBalances( } ``` -**`expiresAtFrom`** - +
+#### `expiresAtFrom` 有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -352,11 +407,14 @@ Request request = new ListAccountExpiredBalances( } ``` -**`expiresAtTo`** - +
+#### `expiresAtTo` 有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -364,11 +422,14 @@ Request request = new ListAccountExpiredBalances( } ``` -**`direction`** - +
+#### `direction` 有効期限によるソートの順序を指定します。デフォルト値はdesc (降順)です。 +
+スキーマ + ```json { "type": "string", @@ -379,6 +440,8 @@ Request request = new ListAccountExpiredBalances( } ``` +
+ 成功したときは @@ -399,8 +462,8 @@ Request request = new UpdateCustomerAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) .status("suspended") // ウォレット状態 - .accountName("MgU5LJ8nedbEkL6VCbZlYCZFu0YjXrv") // アカウント名 - .externalId("ck1kbCzvMElblaTUskxDWTi4syFdijXYZ6Fkp0v2rO") // 外部ID + .accountName("bEAm8DDmMv6OU8xPn5JSHVJXh8Q94B643G49hiuGz9Mf8rtHhq6vTBJC14vJa23qnBx2rVMt") // アカウント名 + .externalId("QpLPCeP9dzLx5t2lgWoJQYoOSmAcuLVq3Dp4kCeEF") // 外部ID .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); // ウォレットに付加するメタデータ ``` @@ -408,13 +471,14 @@ Request request = new UpdateCustomerAccount( ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 指定したウォレットIDのウォレットの状態を更新します。 +
+スキーマ + ```json { "type": "string", @@ -422,11 +486,14 @@ Request request = new UpdateCustomerAccount( } ``` -**`status`** - +
+#### `status` ウォレットの状態です。 +
+スキーマ + ```json { "type": "string", @@ -438,11 +505,14 @@ Request request = new UpdateCustomerAccount( } ``` -**`accountName`** - +
+#### `accountName` 変更するウォレット名です。 +
+スキーマ + ```json { "type": "string", @@ -450,11 +520,14 @@ Request request = new UpdateCustomerAccount( } ``` -**`externalId`** - +
+#### `externalId` 変更する外部IDです。 +
+スキーマ + ```json { "type": "string", @@ -462,9 +535,9 @@ Request request = new UpdateCustomerAccount( } ``` -**`metadata`** - +
+#### `metadata` ウォレットに付加するメタデータをJSON文字列で指定します。 指定できるJSON文字列には以下のような制約があります。 - フラットな構造のJSONを文字列化したものであること。 @@ -482,6 +555,9 @@ Request request = new UpdateCustomerAccount( このときkey1はfooからbazに更新され、key2に対するデータは消去されます。 +
+スキーマ + ```json { "type": "string", @@ -489,6 +565,8 @@ Request request = new UpdateCustomerAccount( } ``` +
+ 成功したときは @@ -508,28 +586,29 @@ Request request = new UpdateCustomerAccount( Request request = new GetCustomerAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .page(1321) // ページ番号 - .perPage(4359) // 1ページ分のウォレット数 - .createdAtFrom("2023-03-20T21:15:42.000000Z") // ウォレット作成日によるフィルター(開始時点) - .createdAtTo("2024-02-12T10:09:46.000000Z") // ウォレット作成日によるフィルター(終了時点) - .setSuspended(true) // ウォレットが凍結状態かどうかでフィルターする + .page(8635) // ページ番号 + .perPage(3429) // 1ページ分のウォレット数 + .createdAtFrom("2024-06-20T10:01:03.000000Z") // ウォレット作成日によるフィルター(開始時点) + .createdAtTo("2023-11-11T09:53:13.000000Z") // ウォレット作成日によるフィルター(終了時点) + .setSuspended(false) // ウォレットが凍結状態かどうかでフィルターする .status("suspended") // ウォレット状態 - .externalId("KP7CaX5R9O7hnOQMfDj4u8or1Z5a") // 外部ID - .tel("0629-6637554") // エンドユーザーの電話番号 - .email("vasIan6Df8@qsq2.com"); // エンドユーザーのメールアドレス + .externalId("oD1k2yoz92oXPFICS0jn7hXy") // 外部ID + .tel("02234012") // エンドユーザーの電話番号 + .email("3jLO2pXiaE@fX6c.com"); // エンドユーザーのメールアドレス ``` ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 一覧するウォレットのマネーを指定します。このパラメータは必須です。 +
+スキーマ + ```json { "type": "string", @@ -537,11 +616,14 @@ Request request = new GetCustomerAccounts( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -549,11 +631,14 @@ Request request = new GetCustomerAccounts( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分のウォレット数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -561,11 +646,14 @@ Request request = new GetCustomerAccounts( } ``` -**`createdAtFrom`** - +
+#### `createdAtFrom` ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -573,11 +661,14 @@ Request request = new GetCustomerAccounts( } ``` -**`createdAtTo`** - +
+#### `createdAtTo` ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -585,22 +676,28 @@ Request request = new GetCustomerAccounts( } ``` -**`setSuspended`** - +
+#### `setSuspended` このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`status`** - +
+#### `status` このパラメータが指定されている場合、ウォレットの状態で結果がフィルターされます。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -612,11 +709,14 @@ Request request = new GetCustomerAccounts( } ``` -**`externalId`** - +
+#### `externalId` 外部IDでのフィルタリングです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -624,11 +724,14 @@ Request request = new GetCustomerAccounts( } ``` -**`tel`** - +
+#### `tel` エンドユーザーの電話番号でのフィルタリングです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -636,11 +739,14 @@ Request request = new GetCustomerAccounts( } ``` -**`email`** - +
+#### `email` エンドユーザーのメールアドレスでのフィルタリングです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -648,6 +754,8 @@ Request request = new GetCustomerAccounts( } ``` +
+ 成功したときは @@ -678,20 +786,21 @@ Request request = new CreateCustomerAccount( ) .userName("ポケペイ太郎") // ユーザー名 .accountName("ポケペイ太郎のアカウント") // アカウント名 - .externalId("k3ETquM3SQujWFDE153B47G8gAIFr9"); // 外部ID + .externalId("9g0DX8Wq75NNOSKErJuxzhPvCMr0kZtscw8OT2IA"); // 外部ID ``` ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 これによって作成するウォレットのマネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -699,11 +808,14 @@ Request request = new CreateCustomerAccount( } ``` -**`userName`** - +
+#### `userName` ウォレットと共に作成するユーザ名です。省略した場合は空文字となります。 +
+スキーマ + ```json { "type": "string", @@ -711,11 +823,14 @@ Request request = new CreateCustomerAccount( } ``` -**`accountName`** - +
+#### `accountName` 作成するウォレット名です。省略した場合は空文字となります。 +
+スキーマ + ```json { "type": "string", @@ -723,11 +838,14 @@ Request request = new CreateCustomerAccount( } ``` -**`externalId`** - +
+#### `externalId` PAPIクライアントシステムから利用するPokepayユーザーのIDです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -735,6 +853,8 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで } ``` +
+ 成功したときは @@ -766,24 +886,25 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで Request request = new GetShopAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .page(7547) // ページ番号 - .perPage(6106) // 1ページ分のウォレット数 - .createdAtFrom("2024-07-31T12:27:29.000000Z") // ウォレット作成日によるフィルター(開始時点) - .createdAtTo("2020-01-10T02:36:55.000000Z") // ウォレット作成日によるフィルター(終了時点) - .setSuspended(true); // ウォレットが凍結状態かどうかでフィルターする + .page(9949) // ページ番号 + .perPage(1246) // 1ページ分のウォレット数 + .createdAtFrom("2024-12-07T18:29:48.000000Z") // ウォレット作成日によるフィルター(開始時点) + .createdAtTo("2025-03-14T20:30:15.000000Z") // ウォレット作成日によるフィルター(終了時点) + .setSuspended(false); // ウォレットが凍結状態かどうかでフィルターする ``` ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 一覧するウォレットのマネーを指定します。このパラメータは必須です。 +
+スキーマ + ```json { "type": "string", @@ -791,11 +912,14 @@ Request request = new GetShopAccounts( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -803,11 +927,14 @@ Request request = new GetShopAccounts( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分のウォレット数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -815,11 +942,14 @@ Request request = new GetShopAccounts( } ``` -**`createdAtFrom`** - +
+#### `createdAtFrom` ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -827,11 +957,14 @@ Request request = new GetShopAccounts( } ``` -**`createdAtTo`** - +
+#### `createdAtTo` ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -839,17 +972,22 @@ Request request = new GetShopAccounts( } ``` -**`setSuspended`** - +
+#### `setSuspended` このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -867,33 +1005,29 @@ Request request = new GetShopAccounts( --- - -## ListCustomerTransactions: 取引履歴を取得する -取引一覧を返します。 + +## GetCustomerCards: エンドユーザーのクレジットカード一覧を取得する +エンドユーザーのクレジットカード一覧を取得します。 +3D Secure認証済みのカードのみが返されます。 +idはcredit-sessions作成時に使用できます。 ```JAVA -Request request = new ListCustomerTransactions( - "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID +Request request = new GetCustomerCards( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // customerId: エンドユーザーID ) - .senderCustomerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 送金エンドユーザーID - .receiverCustomerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 受取エンドユーザーID - .type("payment") // 取引種別 - .setModified(true) // キャンセル済みかどうか - .from("2023-04-21T10:46:48.000000Z") // 開始日時 - .to("2023-09-25T10:08:26.000000Z") // 終了日時 - .page(1) // ページ番号 - .perPage(50); // 1ページ分の取引数 + .page(6103) // ページ番号 + .perPage(15); // 1ページ分の要素数 ``` ### Parameters -**`privateMoneyId`** - +#### `customerId` +エンドユーザーのIDです。 -マネーIDです。 -フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 +
+スキーマ ```json { @@ -902,12 +1036,72 @@ Request request = new ListCustomerTransactions( } ``` -**`senderCustomerId`** - +
-送金ユーザーIDです。 +#### `page` +取得したいページ番号です。デフォルト値は1です。 -フィルターとして使われ、指定された送金ユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ +#### `perPage` +1ページ当たりの要素数です。デフォルト値は30です。 + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 100 +} +``` + +
+ + + +成功したときは +[PaginatedUserCards](./responses.md#paginated-user-cards) +を返します + + + +--- + + + +## CreateCustomerCard: エンドユーザーのクレジットカードを登録する +エンドユーザーのクレジットカードを登録します。 +会員登録がまだの場合は同時に会員登録も行います。 + +```JAVA +Request request = new CreateCustomerCard( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID + "28S" // token: MDKトークン +) + .setCardholderNameSpecified(false); // カード名義人指定フラグ + +``` + + + +### Parameters +#### `customerId` +カード保持者であるエンドユーザーのIDです。 + +
+スキーマ ```json { @@ -916,12 +1110,68 @@ Request request = new ListCustomerTransactions( } ``` -**`receiverCustomerId`** - +
-受取ユーザーIDです。 +#### `token` +カード情報に紐付くMDKトークンです。 -フィルターとして使われ、指定された受取ユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `setCardholderNameSpecified` +MDKトークン作成時にカード名義人を指定したかどうかのフラグです。 + +
+スキーマ + +```json +{ + "type": "boolean" +} +``` + +
+ + + +成功したときは +[UserCard](./responses.md#user-card) +を返します + + + +--- + + + +## DeleteCustomerCard: エンドユーザーのクレジットカードを削除する +エンドユーザーの登録済みクレジットカードを削除します。 +対象カードにアクティブなクレジットセッションがある場合は削除できません。 + +```JAVA +Request request = new DeleteCustomerCard( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // cardUuid: カード識別子 +); + +``` + + + +### Parameters +#### `customerId` +カード保持者であるエンドユーザーのIDです。 + +
+スキーマ ```json { @@ -930,87 +1180,128 @@ Request request = new ListCustomerTransactions( } ``` -**`type`** - +
-取引の種類でフィルターします。 +#### `cardUuid` +削除対象カードのUUID(カード一覧の id)です。 -以下の種類を指定できます。 +
+スキーマ -1. topup - 店舗からエンドユーザーへの送金取引(チャージ) -2. payment - エンドユーザーから店舗への送金取引(支払い) -3. exchange - 他マネーへの流出(outflow)/他マネーからの流入(inflow) -4. transfer - 個人間送金 -5. cashback - ウォレット退会時返金 -6. expire - ウォレット退会時失効 +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CustomerCardDeleted](./responses.md#customer-card-deleted) +を返します + + + +--- + + + +## CreditCardTopupWithMembership: 登録済みクレジットカードでチャージする(3Dセキュア) +エンドユーザーの登録済みクレジットカードを使い、3Dセキュア認証付きでチャージします。 +レスポンスの authentication_html をエンドユーザーのブラウザに出力し認証を行ってください。 +receiver_user_id を指定すると、カード保持者と異なるユーザーの口座にチャージできます。 + +```JAVA +Request request = new CreditCardTopupWithMembership( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: カード保持者のエンドユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // cardUuid: カード識別子 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID + 2760 // amount: チャージ金額 +) + .receiverUserId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // チャージ先ユーザーID + .deleteCardIfAuthFail(true) // 認証失敗時にカードを削除するか + .description("クレジットカードチャージ") // 取引履歴に表示する説明文 + .returnUrl("https://example.com/charge/complete?session=abc") // 3Dセキュア完了画面の戻り先URL + .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID + .topupQuotaId(1976) // チャージ可能枠ID + .memo1("campaign2026summer") // 取引メモ1 + .memo2("JS15mGFl3fiK2FnP8l34G4oC97Xi2VAQRLi357c40zqzOK2p7RHrWnesZ9R75995lD2P99Sd561M705163Vp6Q89F4bE") // 取引メモ2 + .memo3("Pr6RDFv3S48O9qUWSjKtH7GWFK1NeAI2927") // 取引メモ3 + .freekey("order20260803001"); // キー情報 + +``` + + + +### Parameters +#### `customerId` +クレジットカードを保持するエンドユーザーのIDです。 + +
+スキーマ ```json { "type": "string", - "enum": [ - "topup", - "payment", - "exchange", - "transfer", - "cashback", - "expire" - ] + "format": "uuid" } ``` -**`setModified`** - +
-キャンセル済みかどうかを判定するフラグです。 +#### `cardUuid` +使用する登録済みカードのUUID(カード一覧の id)です。 -これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 -falseを指定するとキャンセルされていない取引のみ一覧に表示されます -何も指定しなければキャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ ```json { - "type": "boolean" + "type": "string", + "format": "uuid" } ``` -**`from`** - +
-抽出期間の開始日時です。 +#### `privateMoneyId` +チャージ先口座のマネーIDです。 -フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ ```json { "type": "string", - "format": "date-time" + "format": "uuid" } ``` -**`to`** - +
-抽出期間の終了日時です。 +#### `receiverUserId` +チャージ先のエンドユーザーIDです。 +省略時はカード保持者本人にチャージします。 -フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ ```json { "type": "string", - "format": "date-time" + "format": "uuid" } ``` -**`page`** - +
-取得したいページ番号です。 +#### `amount` + +
+スキーマ ```json { @@ -1019,18 +1310,641 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` -**`perPage`** - +
-1ページ分の取引数です。 +#### `deleteCardIfAuthFail` + +
+スキーマ ```json { - "type": "integer", - "minimum": 1 + "type": "boolean" +} +``` + +
+ +#### `description` +取引説明文です。 + +任意入力で、3Dセキュア認証成功後に作成されるチャージ取引の取引履歴に表示されます。 +省略した場合、および空文字列を指定した場合は既定の説明文が使われます +(取引説明文を空にすることはできません)。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 200 } ``` +
+ +#### `returnUrl` +3Dセキュア完了画面(成功・失敗いずれも)に表示する「戻る」ボタンの遷移先URLです。 + +任意入力です。指定した場合のみボタンが表示され、エンドユーザーが押すと +このURLへ遷移します。省略した場合、および空文字列を指定した場合は +ボタンを表示しません。 + +スキームは http または https のみ受け付けます。それ以外の値、および +2048文字を超える値は invalid_parameters エラー +(invalid: ["return_url"]、エラーコード400) になります。 +ポケペイ側でクエリパラメータの付与は行いません。取引を識別したい場合は +URL自体にパラメータを含めてください。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 2048 +} +``` + +
+ +#### `requestId` +冪等性のためのリクエストIDです。省略時はサーバーが生成します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `topupQuotaId` + +
+スキーマ + +```json +{ + "type": "integer" +} +``` + +
+ +#### `memo1` +Veritransの取引に付与する取引メモです。 + +任意入力で、半角英数字100文字以内で指定します。 +Veritransの取引検索で参照できます。ポケペイの取引履歴には表示されません。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 100, + "pattern": "^[0-9A-Za-z]*$" +} +``` + +
+ +#### `memo2` +Veritransの取引に付与する取引メモです。 + +任意入力で、半角英数字100文字以内で指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 100, + "pattern": "^[0-9A-Za-z]*$" +} +``` + +
+ +#### `memo3` +Veritransの取引に付与する取引メモです。 + +任意入力で、半角英数字100文字以内で指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 100, + "pattern": "^[0-9A-Za-z]*$" +} +``` + +
+ +#### `freekey` +Veritransの取引に付与するキー情報です。 + +任意入力で、半角英数字256桁以内で指定します。 +加盟店システムで管理しているIDとVeritransの取引を紐付ける用途に使えます。 +ハイフンやアンダースコアは使用できないため、UUIDをそのまま指定することはできません。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 256, + "pattern": "^[0-9A-Za-z]*$" +} +``` + +
+ + + +成功したときは +[CardAuthorizeResult](./responses.md#card-authorize-result) +を返します + + + +--- + + + +## CreditCardTopupWithMdkToken: 未登録クレジットカード(MDKトークン)でチャージする(3Dセキュア) +MDKトークンで表されるクレジットカードを使い、カード登録なしで3Dセキュア認証付きチャージを行います。 +レスポンスの authentication_html をエンドユーザーのブラウザに出力し認証を行ってください。 +receiver_user_id を指定すると、カード保持者と異なるユーザーの口座にチャージできます。 + +```JAVA +Request request = new CreditCardTopupWithMdkToken( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: カード保持者のエンドユーザーID + "83wn", // token: MDKトークン + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID + 5373 // amount: チャージ金額 +) + .receiverUserId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // チャージ先ユーザーID + .setCardholderNameSpecified(false) // カード名義人指定フラグ + .description("クレジットカードチャージ") // 取引履歴に表示する説明文 + .returnUrl("https://example.com/charge/complete?session=abc") // 3Dセキュア完了画面の戻り先URL + .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID + .topupQuotaId(1126) // チャージ可能枠ID + .memo1("campaign2026summer") // 取引メモ1 + .memo2("6lrYzVNP054AWsnmM2q6dI419Tg8z7jBH") // 取引メモ2 + .memo3("1zup0734v1Jw462bo0a842Y6adZo208uQdTK381Bb3foS7PTn4J70yHbrOUfwq2om8Ec3lztncx7MSp0CsWekk7pq208Ym5Q0g") // 取引メモ3 + .freekey("order20260803001"); // キー情報 + +``` + + + +### Parameters +#### `customerId` +クレジットカードを保持するエンドユーザーのIDです。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `token` +VeritransのMDKトークンです。 + +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `privateMoneyId` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `receiverUserId` +省略時はカード保持者本人にチャージします。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `amount` + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ +#### `setCardholderNameSpecified` + +
+スキーマ + +```json +{ + "type": "boolean" +} +``` + +
+ +#### `description` +取引説明文です。 + +任意入力で、3Dセキュア認証成功後に作成されるチャージ取引の取引履歴に表示されます。 +省略した場合、および空文字列を指定した場合は既定の説明文が使われます +(取引説明文を空にすることはできません)。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +
+ +#### `returnUrl` +3Dセキュア完了画面(成功・失敗いずれも)に表示する「戻る」ボタンの遷移先URLです。 + +任意入力です。指定した場合のみボタンが表示され、エンドユーザーが押すと +このURLへ遷移します。省略した場合、および空文字列を指定した場合は +ボタンを表示しません。 + +スキームは http または https のみ受け付けます。それ以外の値、および +2048文字を超える値は invalid_parameters エラー +(invalid: ["return_url"]、エラーコード400) になります。 +ポケペイ側でクエリパラメータの付与は行いません。取引を識別したい場合は +URL自体にパラメータを含めてください。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 2048 +} +``` + +
+ +#### `requestId` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `topupQuotaId` + +
+スキーマ + +```json +{ + "type": "integer" +} +``` + +
+ +#### `memo1` +Veritransの取引に付与する取引メモです。 + +任意入力で、半角英数字100文字以内で指定します。 +Veritransの取引検索で参照できます。ポケペイの取引履歴には表示されません。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 100, + "pattern": "^[0-9A-Za-z]*$" +} +``` + +
+ +#### `memo2` +Veritransの取引に付与する取引メモです。 + +任意入力で、半角英数字100文字以内で指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 100, + "pattern": "^[0-9A-Za-z]*$" +} +``` + +
+ +#### `memo3` +Veritransの取引に付与する取引メモです。 + +任意入力で、半角英数字100文字以内で指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 100, + "pattern": "^[0-9A-Za-z]*$" +} +``` + +
+ +#### `freekey` +Veritransの取引に付与するキー情報です。 + +任意入力で、半角英数字256桁以内で指定します。 +加盟店システムで管理しているIDとVeritransの取引を紐付ける用途に使えます。 +ハイフンやアンダースコアは使用できないため、UUIDをそのまま指定することはできません。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 256, + "pattern": "^[0-9A-Za-z]*$" +} +``` + +
+ + + +成功したときは +[CardAuthorizeResult](./responses.md#card-authorize-result) +を返します + + + +--- + + + +## ListCustomerTransactions: 取引履歴を取得する +取引一覧を返します。 + +```JAVA +Request request = new ListCustomerTransactions( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID +) + .senderCustomerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 送金エンドユーザーID + .receiverCustomerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 受取エンドユーザーID + .type("transfer") // 取引種別 + .setModified(false) // キャンセル済みかどうか + .from("2021-03-13T14:48:29.000000Z") // 開始日時 + .to("2024-02-14T19:52:59.000000Z") // 終了日時 + .page(1) // ページ番号 + .perPage(50); // 1ページ分の取引数 + +``` + + + +### Parameters +#### `privateMoneyId` +マネーIDです。 +フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `senderCustomerId` +送金ユーザーIDです。 + +フィルターとして使われ、指定された送金ユーザーでの取引のみ一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `receiverCustomerId` +受取ユーザーIDです。 + +フィルターとして使われ、指定された受取ユーザーでの取引のみ一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `type` +取引の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) +2. payment + エンドユーザーから店舗への送金取引(支払い) +3. exchange + 他マネーへの流出(outflow)/他マネーからの流入(inflow) +4. transfer + 個人間送金 +5. cashback + ウォレット退会時返金 +6. expire + ウォレット退会時失効 + +
+スキーマ + +```json +{ + "type": "string", + "enum": [ + "topup", + "payment", + "exchange", + "transfer", + "cashback", + "expire" + ] +} +``` + +
+ +#### `setModified` +キャンセル済みかどうかを判定するフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +falseを指定するとキャンセルされていない取引のみ一覧に表示されます +何も指定しなければキャンセルの有無にかかわらず一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "boolean" +} +``` + +
+ +#### `from` +抽出期間の開始日時です。 + +フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ +#### `to` +抽出期間の終了日時です。 + +フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ +#### `page` +取得したいページ番号です。 + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ +#### `perPage` +1ページ分の取引数です。 + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ 成功したときは diff --git a/docs/cvs.md b/docs/cvs.md new file mode 100644 index 00000000..470e2bbb --- /dev/null +++ b/docs/cvs.md @@ -0,0 +1,552 @@ +# CVS +コンビニ決済(CVS)によるチャージの申込情報を表すデータです。 +申込後に発行される払込票URL・受付番号を使ってコンビニで支払うと、完了通知を受けてチャージ取引が作成されます。 + + + +## GetCvsAuthorizations: コンビニ決済の申し込み情報一覧取得 +コンビニ決済の申し込み情報一覧を取得します。 + +```JAVA +Request request = new GetCvsAuthorizations( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID +) + .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID + .status("expired") // ステータス + .before("GQHjMs0udR") // ページング(before) + .after("jM6") // ページング(after) + .perPage(52); // 1ページあたりの表示件数 + +``` + + + +### Parameters +#### `privateMoneyId` +マネーIDです。一覧を取得するマネーを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `customerId` +エンドユーザーIDです。指定した場合、そのユーザーの申し込みに絞り込みます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `status` +申し込みのステータスで絞り込みます。 + +
+スキーマ + +```json +{ + "type": "string", + "enum": [ + "applied", + "payed", + "canceled", + "expired" + ] +} +``` + +
+ +#### `before` +ページングのためのパラメータです。 +指定したIDの要素より後の申し込み情報が返されます。 + +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `after` +ページングのためのパラメータです。 +指定したIDの要素より前の申し込み情報が返されます。 + +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `perPage` +1ページあたりに表示する件数です。デフォルト値は30件です。 + +
+スキーマ + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + +
+ + + +成功したときは +[PaginatedCvsAuthorizations](./responses.md#paginated-cvs-authorizations) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|404|veritrans_merchant_not_found|veritrans加盟店が見つかりません|veritrans merchant not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| + + + +--- + + + +## CreateCvsAuthorization: コンビニ決済申込 +コンビニ決済の申し込みを行います。 + +```JAVA +Request request = new CreateCvsAuthorization( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーのID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID + 251944, // amount: チャージ額 + "econ", // serviceOptionType: コンビニ種別 + "4GQyu", // name1: 顧客姓 + "ePe1bdi", // name2: 顧客名 + "rL7eYxL" // tel: 電話番号 +) + .receiverUserId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // チャージ先エンドユーザーのID + .description("コンビニチャージ") // 取引履歴に表示する説明文 + .topupQuotaId(8113) // チャージ可能枠ID + .memo1("campaign2026summer") // 取引メモ1 + .memo2("IR4r9f1iZQVJCIu8pLuGU50iq7Z6XaZcd9a55Ea4m7A07h1goZ8o9oOJ0qv6uWWMwCy2ns8CjmWZWZ5BJ99mD95R") // 取引メモ2 + .memo3("v1P69N8P91tvC18njEfQ7l9u4mpK8FPETBIWC0hAv2wnO7000234xcRv4L0v8Jp625") // 取引メモ3 + .freekey("order20260803001"); // キー情報 + +``` + + + +### Parameters +#### `customerId` +エンドユーザーIDです。 + +コンビニ決済を申し込むエンドユーザーを指定します。 +receiver_user_id が指定されない場合、このユーザーがチャージ先になります。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `receiverUserId` +チャージ先エンドユーザーIDです。 + +指定した場合、customer_id とは別のユーザーをチャージ先にできます。 +省略した場合は customer_id がチャージ先になります。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `privateMoneyId` +マネーIDです。 + +チャージするマネーを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `amount` +チャージする金額を表します。 + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 299999 +} +``` + +
+ +#### `serviceOptionType` +カスタマーが支払うコンビニの種別を表します。 + +
+スキーマ + +```json +{ + "type": "string", + "enum": [ + "sej", + "other", + "famima", + "lawson", + "econ" + ] +} +``` + +
+ +#### `name1` +顧客の姓を表します。 + +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `name2` +顧客名を表します。 + +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `tel` +顧客の電話番号を表します。 + +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `description` +取引説明文です。 + +任意入力で、コンビニでの入金確認後に作成されるチャージ取引の取引履歴に表示されます。 +省略した場合、および空文字列を指定した場合は既定の説明文が使われます +(取引説明文を空にすることはできません)。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +
+ +#### `topupQuotaId` +チャージするマネーにチャージ可能枠機能が設定されているとき、使用するチャージ可能枠のIDを表します。 + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ +#### `memo1` +Veritransの取引に付与する取引メモです。 + +任意入力で、半角英数字100文字以内で指定します。 +Veritransの取引検索で参照できます。ポケペイの取引履歴には表示されません。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 100, + "pattern": "^[0-9A-Za-z]*$" +} +``` + +
+ +#### `memo2` +Veritransの取引に付与する取引メモです。 + +任意入力で、半角英数字100文字以内で指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 100, + "pattern": "^[0-9A-Za-z]*$" +} +``` + +
+ +#### `memo3` +Veritransの取引に付与する取引メモです。 + +任意入力で、半角英数字100文字以内で指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 100, + "pattern": "^[0-9A-Za-z]*$" +} +``` + +
+ +#### `freekey` +Veritransの取引に付与するキー情報です。 + +任意入力で、半角英数字256桁以内で指定します。 +加盟店システムで管理しているIDとVeritransの取引を紐付ける用途に使えます。 +ハイフンやアンダースコアは使用できないため、UUIDをそのまま指定することはできません。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 256, + "pattern": "^[0-9A-Za-z]*$" +} +``` + +
+ + + +成功したときは +[CvsAuthorization](./responses.md#cvs-authorization) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|cvs_invalid_request_parameter|入力データが不正です|Parameter invalid| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|404|veritrans_merchant_not_found|veritrans加盟店が見つかりません|veritrans merchant not found| +|422|account_not_found|アカウントが見つかりません|The account is not found| +|422|user_not_found|ユーザーが見つかりません|The user is not found| +|422|customer_user_not_found||The customer user is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found|ユーザアカウントが見つかりません|The customer account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|cvs_disabled_private_money|このマネーはコンビニ決済に対応していません|This money cannot be charged from the cvs| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + + +## CancelCvsAuthorization: コンビニ決済の申し込みキャンセル +コンビニ決済の申し込みをキャンセルします。 + +```JAVA +Request request = new CancelCvsAuthorization( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // orderId: コンビニ決済の申し込みID +); + +``` + + + +### Parameters +#### `orderId` +コンビニ決済の申し込みID + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CvsAuthorization](./responses.md#cvs-authorization) +を返します + + + +--- + + + +## GetCvsAuthorization: コンビニ決済の申し込み情報取得 +コンビニ決済の申し込み情報を取得します。 + +```JAVA +Request request = new GetCvsAuthorization( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // orderId: コンビニ決済の申し込みID +); + +``` + + + +### Parameters +#### `orderId` +コンビニ決済の申し込みID + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CvsAuthorization](./responses.md#cvs-authorization) +を返します + + + +--- + + + diff --git a/docs/event.md b/docs/event.md index e5935b68..c410afb0 100644 --- a/docs/event.md +++ b/docs/event.md @@ -1,4 +1,10 @@ # Event +外部決済イベント(ExternalTransaction)を表すデータです。 +Pokepay外の決済(現金決済、クレジットカード決済等)を記録し、ポケペイのポイント還元を実現します。 +外部決済イベントを作成することで、キャンペーン連動によるポイント付与が可能になります。 +イベントのキャンセル(返金)にも対応しており、紐付いたポイント還元も同時にキャンセルされます。 +リクエストIDによる羃等性の担保もサポートしています。 + ## CreateExternalTransaction: ポケペイ外部取引を作成する @@ -6,7 +12,6 @@ ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。 - ```JAVA JsonObject items = new JsonObject(); items.addProperty("jan_code", "abc"); @@ -28,26 +33,27 @@ Request request = new CreateExternalTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 1360 // amount: 取引額 + 765 // amount: 取引額 ) .description("たい焼き(小倉)") // 取引説明文 .metadata("{\"key\":\"value\"}") // ポケペイ外部取引メタデータ .products(new Object[]{items,items2}) // 商品情報データ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID - .doneAt("2020-06-15T08:52:34.000000Z"); // ポケペイ外部取引の実施時間 + .doneAt("2024-07-30T12:02:18.000000Z"); // ポケペイ外部取引の実施時間 ``` ### Parameters -**`shopId`** - - +#### `shopId` 店舗IDです。 ポケペイ外部取引が行なう店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -55,13 +61,16 @@ Request request = new CreateExternalTransaction( } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 エンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -69,13 +78,16 @@ Request request = new CreateExternalTransaction( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -83,11 +95,14 @@ Request request = new CreateExternalTransaction( } ``` -**`amount`** - +
+#### `amount` 取引金額です。 +
+スキーマ + ```json { "type": "integer", @@ -95,13 +110,16 @@ Request request = new CreateExternalTransaction( } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -109,13 +127,16 @@ Request request = new CreateExternalTransaction( } ``` -**`metadata`** - +
+#### `metadata` ポケペイ外部取引作成時に指定され、取引と紐付けられるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSONで指定します。 +
+スキーマ + ```json { "type": "string", @@ -123,9 +144,9 @@ Request request = new CreateExternalTransaction( } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -137,6 +158,9 @@ Request request = new CreateExternalTransaction( - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -146,15 +170,18 @@ Request request = new CreateExternalTransaction( } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +
+スキーマ + ```json { "type": "string", @@ -162,13 +189,16 @@ Request request = new CreateExternalTransaction( } ``` -**`doneAt`** - +
+#### `doneAt` ポケペイ外部取引が実際に起こった時間です。 時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。 デフォルトではCreateExternalTransactionがリクエストされた時間になります。 +
+スキーマ + ```json { "type": "string", @@ -176,6 +206,8 @@ Request request = new CreateExternalTransaction( } ``` +
+ 成功したときは @@ -190,11 +222,15 @@ Request request = new CreateExternalTransaction( |422|customer_user_not_found||The customer user is not found| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| -|422|customer_account_not_found||The customer account is not found| +|422|customer_account_not_found|ユーザアカウントが見つかりません|The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| @@ -211,8 +247,13 @@ Request request = new CreateExternalTransaction( |422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| |422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| -|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| -|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| |422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| |422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| @@ -220,6 +261,8 @@ Request request = new CreateExternalTransaction( |422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| |422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| |422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| @@ -247,9 +290,10 @@ Request request = new RefundExternalTransaction( ### Parameters -**`eventId`** - +#### `eventId` +
+スキーマ ```json { @@ -258,9 +302,12 @@ Request request = new RefundExternalTransaction( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -269,6 +316,8 @@ Request request = new RefundExternalTransaction( } ``` +
+ 成功したときは @@ -296,9 +345,10 @@ Request request = new GetExternalTransactionByRequestId( ### Parameters -**`requestId`** - +#### `requestId` +
+スキーマ ```json { @@ -307,6 +357,8 @@ Request request = new GetExternalTransactionByRequestId( } ``` +
+ 成功したときは diff --git a/docs/organization.md b/docs/organization.md index 1c9c3474..a2f3c988 100644 --- a/docs/organization.md +++ b/docs/organization.md @@ -1,4 +1,9 @@ # Organization +組織(発行体・加盟店組織)を表すデータです。 +Pokepay上でマネーを発行する発行体や、店舗を束ねる加盟店組織を管理します。 +組織には組織コード、組織名、本社情報などが含まれます。 +組織配下に複数の店舗(Shop)を持つことができます。 + ## ListOrganizations: 加盟店組織の一覧を取得する @@ -9,20 +14,21 @@ Request request = new ListOrganizations( ) .page(1) // ページ番号 .perPage(50) // 1ページ分の取引数 - .name("AZ") // 組織名 - .code("81ee9F1zae"); // 組織コード + .name("7p") // 組織名 + .code("G2X"); // 組織コード ``` ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 このマネーに加盟している加盟組織がフィルターされます。 +
+スキーマ + ```json { "type": "string", @@ -30,11 +36,14 @@ Request request = new ListOrganizations( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -42,11 +51,14 @@ Request request = new ListOrganizations( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -54,9 +66,12 @@ Request request = new ListOrganizations( } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -64,9 +79,12 @@ Request request = new ListOrganizations( } ``` -**`code`** - +
+#### `code` + +
+スキーマ ```json { @@ -74,6 +92,8 @@ Request request = new ListOrganizations( } ``` +
+ 成功したときは @@ -100,14 +120,14 @@ Request request = new CreateOrganization( "ox-supermarket", // code: 新規組織コード "oxスーパー", // name: 新規組織名 new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // privateMoneyIds: 加盟店組織で有効にするマネーIDの配列 - "UGprRtPpZg@ZzOh.com", // issuerAdminUserEmail: 発行体担当者メールアドレス - "vmvIjVKe7a@M7Qi.com" // memberAdminUserEmail: 新規組織担当者メールアドレス + "oXhnngp9p2@LEBl.com", // issuerAdminUserEmail: 発行体担当者メールアドレス + "9y0eqR71mX@6BEG.com" // memberAdminUserEmail: 新規組織担当者メールアドレス ) .bankName("XYZ銀行") // 銀行名 .bankCode("1234") // 銀行金融機関コード .bankBranchName("ABC支店") // 銀行支店名 .bankBranchCode("123") // 銀行支店コード - .bankAccountType("saving") // 銀行口座種別 (普通=saving, 当座=current, その他=other) + .bankAccountType("other") // 銀行口座種別 (普通=saving, 当座=current, その他=other) .bankAccount("1234567") // 銀行口座番号 .bankAccountHolderName("フクザワユキチ") // 口座名義人名 .contactName("佐藤清"); // 担当者名 @@ -117,9 +137,10 @@ Request request = new CreateOrganization( ### Parameters -**`code`** - +#### `code` +
+スキーマ ```json { @@ -128,9 +149,12 @@ Request request = new CreateOrganization( } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -139,9 +163,12 @@ Request request = new CreateOrganization( } ``` -**`privateMoneyIds`** - +
+#### `privateMoneyIds` + +
+スキーマ ```json { @@ -154,9 +181,12 @@ Request request = new CreateOrganization( } ``` -**`issuerAdminUserEmail`** - +
+ +#### `issuerAdminUserEmail` +
+スキーマ ```json { @@ -165,9 +195,12 @@ Request request = new CreateOrganization( } ``` -**`memberAdminUserEmail`** - +
+ +#### `memberAdminUserEmail` +
+スキーマ ```json { @@ -176,9 +209,12 @@ Request request = new CreateOrganization( } ``` -**`bankName`** - +
+#### `bankName` + +
+スキーマ ```json { @@ -187,9 +223,12 @@ Request request = new CreateOrganization( } ``` -**`bankCode`** - +
+ +#### `bankCode` +
+スキーマ ```json { @@ -198,9 +237,12 @@ Request request = new CreateOrganization( } ``` -**`bankBranchName`** - +
+ +#### `bankBranchName` +
+スキーマ ```json { @@ -209,9 +251,12 @@ Request request = new CreateOrganization( } ``` -**`bankBranchCode`** - +
+#### `bankBranchCode` + +
+スキーマ ```json { @@ -220,9 +265,12 @@ Request request = new CreateOrganization( } ``` -**`bankAccountType`** - +
+ +#### `bankAccountType` +
+スキーマ ```json { @@ -235,9 +283,12 @@ Request request = new CreateOrganization( } ``` -**`bankAccount`** - +
+ +#### `bankAccount` +
+スキーマ ```json { @@ -247,9 +298,12 @@ Request request = new CreateOrganization( } ``` -**`bankAccountHolderName`** - +
+#### `bankAccountHolderName` + +
+スキーマ ```json { @@ -259,17 +313,22 @@ Request request = new CreateOrganization( } ``` -**`contactName`** - +
+ +#### `contactName` +
+スキーマ ```json { "type": "string", - "maxLength": 256 + "maxLength": 64 } ``` +
+ 成功したときは @@ -279,12 +338,16 @@ Request request = new CreateOrganization( ### Error Responses |status|type|ja|en| |---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| |403|NULL|NULL|NULL| |409|organization_conflict||The organization code is already used| +|409|organization_invoice_registration_number_conflict|この登録番号は既に登録されています|The invoice registration number is conflict| |409|shop_name_conflict||The shop name is already used| |422|organization_private_money_not_found||Issuer organization does not have private-money| |422|unavailable_private_money||Given private money(s) is/are not available| +|422|organization_application_setting_not_found|加盟店申込み設定が見つかりません|Organization application setting not found| |503|failed_to_send_email||Failed to send an E-mail.| +|503|temporarily_unavailable||Service Unavailable| diff --git a/docs/private_money.md b/docs/private_money.md index 622fef6c..17079ee2 100644 --- a/docs/private_money.md +++ b/docs/private_money.md @@ -1,4 +1,10 @@ # Private Money +Pokepay上で発行する電子マネーを表すデータです。 +電子マネーは1つの発行体(Organization)によって発行されます。 +電子マネーはCustomerやMerchantが所有するウォレット間を送金されます。 +電子マネー残高はユーザが有償で購入するマネーと無償で付与されるポイントの2種類のバリューで構成され、 +それぞれ有効期限決定ロジックは電子マネーの設定に依存します。 + ## GetPrivateMoneys: マネー一覧を取得する @@ -17,11 +23,12 @@ Request request = new GetPrivateMoneys() ### Parameters -**`organizationCode`** - - +#### `organizationCode` パートナーキーの管理者が発行体組織に属している場合、発行マネーのうち、この組織コードで指定した決済加盟店組織が加盟しているマネーの一覧を返します。決済加盟店組織の管理者は自組織以外を指定することはできません。 +
+スキーマ + ```json { "type": "string", @@ -30,9 +37,12 @@ Request request = new GetPrivateMoneys() } ``` -**`page`** - +
+ +#### `page` +
+スキーマ ```json { @@ -41,9 +51,12 @@ Request request = new GetPrivateMoneys() } ``` -**`perPage`** - +
+#### `perPage` + +
+スキーマ ```json { @@ -52,6 +65,8 @@ Request request = new GetPrivateMoneys() } ``` +
+ 成功したときは @@ -76,8 +91,8 @@ Request request = new GetPrivateMoneys() Request request = new GetPrivateMoneyOrganizationSummaries( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .from("2023-04-20T00:53:32.000000Z") // 開始日時(toと同時に指定する必要有) - .to("2023-12-03T18:01:03.000000Z") // 終了日時(fromと同時に指定する必要有) + .from("2024-08-04T13:52:59.000000Z") // 開始日時(toと同時に指定する必要有) + .to("2021-06-13T17:13:32.000000Z") // 終了日時(fromと同時に指定する必要有) .page(1) // ページ番号 .perPage(50); // 1ページ分の取引数 @@ -87,9 +102,10 @@ Request request = new GetPrivateMoneyOrganizationSummaries( ### Parameters -**`privateMoneyId`** - +#### `privateMoneyId` +
+スキーマ ```json { @@ -98,9 +114,12 @@ Request request = new GetPrivateMoneyOrganizationSummaries( } ``` -**`from`** - +
+ +#### `from` +
+スキーマ ```json { @@ -109,9 +128,12 @@ Request request = new GetPrivateMoneyOrganizationSummaries( } ``` -**`to`** - +
+#### `to` + +
+スキーマ ```json { @@ -120,9 +142,12 @@ Request request = new GetPrivateMoneyOrganizationSummaries( } ``` -**`page`** - +
+ +#### `page` +
+スキーマ ```json { @@ -131,9 +156,12 @@ Request request = new GetPrivateMoneyOrganizationSummaries( } ``` -**`perPage`** - +
+#### `perPage` + +
+スキーマ ```json { @@ -142,6 +170,8 @@ Request request = new GetPrivateMoneyOrganizationSummaries( } ``` +
+ 成功したときは @@ -160,17 +190,18 @@ Request request = new GetPrivateMoneyOrganizationSummaries( Request request = new GetPrivateMoneySummary( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .from("2022-01-26T00:25:32.000000Z") // 開始日時 - .to("2020-09-07T00:32:24.000000Z"); // 終了日時 + .from("2025-12-05T09:12:09.000000Z") // 開始日時 + .to("2026-07-15T20:22:28.000000Z"); // 終了日時 ``` ### Parameters -**`privateMoneyId`** - +#### `privateMoneyId` +
+スキーマ ```json { @@ -179,9 +210,12 @@ Request request = new GetPrivateMoneySummary( } ``` -**`from`** - +
+#### `from` + +
+スキーマ ```json { @@ -190,9 +224,12 @@ Request request = new GetPrivateMoneySummary( } ``` -**`to`** - +
+ +#### `to` +
+スキーマ ```json { @@ -201,6 +238,8 @@ Request request = new GetPrivateMoneySummary( } ``` +
+ 成功したときは diff --git a/docs/responses.md b/docs/responses.md index 5b3cb837..c6734198 100644 --- a/docs/responses.md +++ b/docs/responses.md @@ -1,12 +1,76 @@ # Responses + +## CvsAuthorization +* `getAccount() AccountDetail`: +* `getUser() User`: +* `getOrderId() String`: 申し込みID +* `getTransactionId() String`: 取引ID +* `getPayLimit() String`: お支払期限 +* `getTel() String`: 電話番号 +* `getName1() String`: 顧客姓 +* `getName2() String`: 顧客名 +* `getAmount() int`: チャージ額 +* `getServiceOptionType() String`: コンビニ種別 +* `getHaraikomiUrl() String`: 払込票URL +* `getReceiptNo() String`: 受付番号 +* `getDoneAt() String`: 入金完了日時 +* `getCanceledAt() String`: キャンセル日時 + +`getAccount`は [AccountDetail](#account-detail) クラスのインスタンスを返します。 + +`getUser`は [User](#user) クラスのインスタンスを返します。 + + +## PaginatedCvsAuthorizations +* `getPerPage() int`: +* `getCount() int`: +* `getItems() CvsAuthorization[]`: +* `getPrev() String`: +* `getNext() String`: + +`getItems`は [CvsAuthorization](#cvs-authorization) クラスのインスタンスの配列を返します。 + + +## CreditSession +* `getId() String`: +* `getExpiresAt() String`: + + +## CapturedCreditSession +* `getSessionId() String`: + + +## CreditSessionTransactionResult + + +## UserCard +* `getId() String`: カード識別子 +* `getCardNumber() String`: マスク済みカード番号 +* `getRegisteredAt() String`: 登録日時 + + +## PaginatedUserCards +* `getRows() UserCard[]`: +* `getCount() int`: 総件数 +* `getPagination() Pagination`: + +`getRows`は [UserCard](#user-card) クラスのインスタンスの配列を返します。 + +`getPagination`は [Pagination](#pagination) クラスのインスタンスを返します。 + + +## CardAuthorizeResult +* `getAuthenticationHtml() String`: 認証開始用HTML +* `getRequestId() String`: リクエストID + ## AccountWithUser -* `getId() String`: -* `getName() String`: -* `isSuspended() boolean`: -* `getStatus() String`: -* `getPrivateMoney() PrivateMoney`: -* `getUser() User`: +* `getId() String`: ウォレットID +* `getName() String`: ウォレット名 +* `isSuspended() boolean`: ウォレットが凍結されているかどうか +* `getStatus() String`: ウォレット状態 +* `getPrivateMoney() PrivateMoney`: 設定マネー情報 +* `getUser() User`: ユーザ情報 `getPrivateMoney`は [PrivateMoney](#private-money) クラスのインスタンスを返します。 @@ -14,17 +78,17 @@ ## AccountDetail -* `getId() String`: -* `getName() String`: -* `isSuspended() boolean`: -* `getStatus() String`: -* `getBalance() double`: -* `getMoneyBalance() double`: -* `getPointBalance() double`: -* `getPointDebt() double`: -* `getPrivateMoney() PrivateMoney`: -* `getUser() User`: -* `getExternalId() String`: +* `getId() String`: ウォレットID +* `getName() String`: ウォレット名 +* `isSuspended() boolean`: ウォレットが凍結されているかどうか +* `getStatus() String`: ウォレット状態 +* `getBalance() double`: 総残高 +* `getMoneyBalance() double`: マネー残高 +* `getPointBalance() double`: ポイント残高 +* `getPointDebt() double`: ポイント負債 +* `getPrivateMoney() PrivateMoney`: 設定マネー情報 +* `getUser() User`: ユーザ情報 +* `getExternalId() String`: 外部ID `getPrivateMoney`は [PrivateMoney](#private-money) クラスのインスタンスを返します。 @@ -33,8 +97,11 @@ ## AccountDeleted - -## Bill + +## CustomerCardDeleted + + +## BillWithAdditionalPrivateMoneys * `getId() String`: 支払いQRコードのID * `getAmount() double`: 支払い額 * `getMaxAmount() double`: 支払い額を範囲指定した場合の上限 @@ -43,9 +110,13 @@ * `getAccount() AccountWithUser`: 支払いQRコード発行ウォレット * `isDisabled() boolean`: 無効化されているかどうか * `getToken() String`: 支払いQRコードを解析したときに出てくるURL +* `getCreatedAt() String`: 支払いQRコードの作成日時 +* `getAdditionalPrivateMoneys() PrivateMoney[]`: 追加の支払いマネー `getAccount`は [AccountWithUser](#account-with-user) クラスのインスタンスを返します。 +`getAdditionalPrivateMoneys`は [PrivateMoney](#private-money) クラスのインスタンスの配列を返します。 + ## Check * `getId() String`: チャージQRコードのID @@ -58,6 +129,7 @@ * `isOnetime() boolean`: 使用回数が一回限りかどうか * `isDisabled() boolean`: 無効化されているかどうか * `getExpiresAt() String`: チャージQRコード自体の失効日時 +* `getStartsAt() String`: チャージQRコード有効開始日時 * `getLastUsedAt() String`: * `getPrivateMoney() PrivateMoney`: 対象マネー情報 * `getUsageLimit() int`: 一回限りでない場合の最大読み取り回数 @@ -89,6 +161,8 @@ * `getScopes() String[]`: 許可された取引種別 * `getExpiresAt() String`: CPMトークンの失効日時 * `getMetadata() String`: エンドユーザー側メタデータ +* `getStrategy() String`: 支払い時の残高消費方式 +* `getCouponId() String`: クーポンID `getAccount`は [AccountDetail](#account-detail) クラスのインスタンスを返します。 @@ -142,9 +216,9 @@ * `getId() String`: 取引ID * `getType() String`: 取引種別 * `isModified() boolean`: 返金された取引かどうか -* `getSender() User`: 送金者情報 +* `getSender() User`: 送金ユーザ情報 * `getSenderAccount() Account`: 送金ウォレット情報 -* `getReceiver() User`: 受取者情報 +* `getReceiver() User`: 受取ユーザ情報 * `getReceiverAccount() Account`: 受取ウォレット情報 * `getAmount() double`: 取引総額 (マネー額 + ポイント額) * `getMoneyAmount() double`: 取引マネー額 @@ -153,7 +227,7 @@ * `getCampaignPointAmount() double`: キャンペーンによるポイント付与額 * `getDoneAt() String`: 取引日時 * `getDescription() String`: 取引説明文 -* `getTransfers() Transfer[]`: +* `getTransfers() Transfer[]`: 取引明細一覧 `getReceiver`と`getSender`は [User](#user) クラスのインスタンスを返します。 @@ -161,6 +235,16 @@ `getTransfers`は [Transfer](#transfer) クラスのインスタンスの配列を返します。 + +## TransactionGroup +* `getId() String`: トランザクショングループID +* `getName() String`: トランザクショングループ名 +* `getCreatedAt() String`: 作成日時 +* `getUpdatedAt() String`: 更新日時 +* `getTransactions() Transaction[]`: グループに属する取引一覧 + +`getTransactions`は [Transaction](#transaction) クラスのインスタンスの配列を返します。 + ## ShopWithAccounts * `getId() String`: 店舗ID @@ -187,6 +271,7 @@ * `getErrorLineno() int`: バルク取引のエラーが発生した行番号 * `getSubmittedAt() String`: バルク取引が登録された日時 * `getUpdatedAt() String`: バルク取引が更新された日時 +* `getScheduledAt() String`: バルク取引の予約実行日時 ## PaginatedBulkTransactionJob @@ -273,6 +358,9 @@ `getRows`は [Bank](#bank) クラスのインスタンスの配列を返します。 + +## BankDeleted + ## PaginatedTransaction * `getRows() Transaction[]`: @@ -293,6 +381,16 @@ `getRows`は [Transaction](#transaction) クラスのインスタンスの配列を返します。 + +## PaginatedBillTransaction +* `getRows() BillTransaction[]`: +* `getPerPage() int`: +* `getCount() int`: +* `getNextPageCursorId() String`: +* `getPrevPageCursorId() String`: + +`getRows`は [BillTransaction](#bill-transaction) クラスのインスタンスの配列を返します。 + ## PaginatedTransfers * `getRows() Transfer[]`: @@ -461,6 +559,8 @@ * `getCouponImage() String`: クーポン画像のURL * `getAvailableShops() User[]`: 利用可能店舗リスト * `getPrivateMoney() PrivateMoney`: クーポンのマネー +* `getNumRecipientsCap() int`: クーポンを受け取ることができるユーザ数上限 +* `getNumRecipients() int`: クーポンを受け取ったユーザ数 `getIssuedShop`は [User](#user) クラスのインスタンスを返します。 @@ -505,6 +605,14 @@ `getTransaction`は [Transaction](#transaction) クラスのインスタンスを返します。 + +## Pagination +* `getCurrent() int`: +* `getPerPage() int`: +* `getMaxPage() int`: +* `getHasPrev() boolean`: +* `getHasNext() boolean`: + ## PrivateMoney * `getId() String`: マネーID @@ -524,22 +632,14 @@ `getOrganization`は [Organization](#organization) クラスのインスタンスを返します。 - -## Pagination -* `getCurrent() int`: -* `getPerPage() int`: -* `getMaxPage() int`: -* `getHasPrev() boolean`: -* `getHasNext() boolean`: - ## Transaction * `getId() String`: 取引ID * `getType() String`: 取引種別 * `isModified() boolean`: 返金された取引かどうか -* `getSender() User`: 送金者情報 +* `getSender() User`: 送金ユーザ情報 * `getSenderAccount() Account`: 送金ウォレット情報 -* `getReceiver() User`: 受取者情報 +* `getReceiver() User`: 受取ユーザ情報 * `getReceiverAccount() Account`: 受取ウォレット情報 * `getAmount() double`: 取引総額 (マネー額 + ポイント額) * `getMoneyAmount() double`: 取引マネー額 @@ -584,23 +684,23 @@ * `getId() String`: ウォレットID * `getName() String`: ウォレット名 * `isSuspended() boolean`: ウォレットが凍結されているかどうか -* `getStatus() String`: +* `getStatus() String`: ウォレット状態 * `getPrivateMoney() PrivateMoney`: 設定マネー情報 `getPrivateMoney`は [PrivateMoney](#private-money) クラスのインスタンスを返します。 ## Transfer -* `getId() String`: -* `getSenderAccount() AccountWithoutPrivateMoneyDetail`: -* `getReceiverAccount() AccountWithoutPrivateMoneyDetail`: -* `getAmount() double`: -* `getMoneyAmount() double`: -* `getPointAmount() double`: -* `getDoneAt() String`: -* `getType() String`: -* `getDescription() String`: -* `getTransactionId() String`: +* `getId() String`: 取引明細ID +* `getSenderAccount() AccountWithoutPrivateMoneyDetail`: 送金元ウォレット +* `getReceiverAccount() AccountWithoutPrivateMoneyDetail`: 送金先ウォレット +* `getAmount() double`: 送金総額 (マネー額 + ポイント額) +* `getMoneyAmount() double`: 送金マネー額 +* `getPointAmount() double`: 送金ポイント額 +* `getDoneAt() String`: 送金日時 +* `getType() String`: 取引明細種別 +* `getDescription() String`: 取引明細説明文 +* `getTransactionId() String`: 親取引ID `getReceiverAccount`と`getSenderAccount`は [AccountWithoutPrivateMoneyDetail](#account-without-private-money-detail) クラスのインスタンスを返します。 @@ -657,6 +757,15 @@ `getPrivateMoney`は [PrivateMoney](#private-money) クラスのインスタンスを返します。 + +## BillTransaction +* `getTransaction() Transaction`: +* `getBill() Bill`: + +`getTransaction`は [Transaction](#transaction) クラスのインスタンスを返します。 + +`getBill`は [Bill](#bill) クラスのインスタンスを返します。 + ## AccountBalance * `getExpiresAt() String`: @@ -675,6 +784,20 @@ * `getEmail() String`: 店舗のメールアドレス * `getExternalId() String`: 店舗の外部ID + +## Bill +* `getId() String`: 支払いQRコードのID +* `getAmount() double`: 支払い額 +* `getMaxAmount() double`: 支払い額を範囲指定した場合の上限 +* `getMinAmount() double`: 支払い額を範囲指定した場合の下限 +* `getDescription() String`: 支払いQRコードの説明文(アプリ上で取引の説明文として表示される) +* `getAccount() AccountWithUser`: 支払いQRコード発行ウォレット +* `isDisabled() boolean`: 無効化されているかどうか +* `getToken() String`: 支払いQRコードを解析したときに出てくるURL +* `getCreatedAt() String`: 支払いQRコードの作成日時 + +`getAccount`は [AccountWithUser](#account-with-user) クラスのインスタンスを返します。 + ## AccountTransferSummaryElement * `getTransferType() String`: @@ -703,6 +826,8 @@ * `getCode() String`: クーポン受け取りコード * `isDisabled() boolean`: 無効化フラグ * `getToken() String`: クーポンを特定するためのトークン +* `getNumRecipientsCap() int`: クーポンを受け取ることができるユーザ数上限 +* `getNumRecipients() int`: クーポンを受け取ったユーザ数 `getIssuedShop`は [User](#user) クラスのインスタンスを返します。 diff --git a/docs/seven_bank_atm_session.md b/docs/seven_bank_atm_session.md index 741b5407..6b5015c2 100644 --- a/docs/seven_bank_atm_session.md +++ b/docs/seven_bank_atm_session.md @@ -1,14 +1,13 @@ # SevenBankATMSession セブンATMチャージの取引内容を照会するAPIを提供しています。 - ## GetSevenBankATMSession: セブン銀行ATMセッションの取得 セブン銀行ATMセッションを取得します ```JAVA Request request = new GetSevenBankATMSession( - "ZBysF" // qrInfo: QRコードの情報 + "4D21T3szc" // qrInfo: QRコードの情報 ); ``` @@ -16,17 +15,20 @@ Request request = new GetSevenBankATMSession( ### Parameters -**`qrInfo`** - - +#### `qrInfo` 取得するセブン銀行ATMチャージのQRコードの情報です。 +
+スキーマ + ```json { "type": "string" } ``` +
+ 成功したときは diff --git a/docs/shop.md b/docs/shop.md index 6e8b15e1..c11c78e7 100644 --- a/docs/shop.md +++ b/docs/shop.md @@ -1,4 +1,10 @@ # Shop +店舗(加盟店)を表すデータです。 +Pokepayプラットフォーム上で支払いを受け取る店舗ユーザーを管理します。 +店舗は組織(Organization)に所属し、店舗ごとにウォレットを持ちます。 +店舗情報には住所、電話番号、メールアドレス、外部連携用IDなどが含まれます。 +店舗ステータス(active/disabled)の管理も可能です。 + ## ListShops: 店舗一覧を取得する @@ -8,11 +14,11 @@ Request request = new ListShops() .organizationCode("pocketchange") // 組織コード .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID .name("oxスーパー三田店") // 店舗名 - .postalCode("3903470") // 店舗の郵便番号 + .postalCode("208-1984") // 店舗の郵便番号 .address("東京都港区芝...") // 店舗の住所 - .tel("0341-24862") // 店舗の電話番号 - .email("5mN9clYyKl@8cUs.com") // 店舗のメールアドレス - .externalId("Yw8CW8rHVcmWZsjKlFT0f7di") // 店舗の外部ID + .tel("05-24171") // 店舗の電話番号 + .email("mWwVfKXqK8@01If.com") // 店舗のメールアドレス + .externalId("PFnrIq0aQymKZNNPJDerhYZLwwsHj") // 店舗の外部ID .withDisabled(true) // 無効な店舗を含める .page(1) // ページ番号 .perPage(50); // 1ページ分の取引数 @@ -22,11 +28,11 @@ Request request = new ListShops() ### Parameters -**`organizationCode`** - - +#### `organizationCode` このパラメータを渡すとその組織の店舗のみが返され、省略すると加盟店も含む店舗が返されます。 +
+スキーマ ```json { @@ -36,11 +42,13 @@ Request request = new ListShops() } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` このパラメータを渡すとそのマネーのウォレットを持つ店舗のみが返されます。 +
+スキーマ ```json { @@ -49,11 +57,13 @@ Request request = new ListShops() } ``` -**`name`** - +
+#### `name` このパラメータを渡すとその名前の店舗のみが返されます。 +
+スキーマ ```json { @@ -63,11 +73,13 @@ Request request = new ListShops() } ``` -**`postalCode`** - +
+#### `postalCode` このパラメータを渡すとその郵便番号が登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -76,11 +88,13 @@ Request request = new ListShops() } ``` -**`address`** - +
+#### `address` このパラメータを渡すとその住所が登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -89,11 +103,13 @@ Request request = new ListShops() } ``` -**`tel`** - +
+#### `tel` このパラメータを渡すとその電話番号が登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -102,11 +118,13 @@ Request request = new ListShops() } ``` -**`email`** - +
+#### `email` このパラメータを渡すとそのメールアドレスが登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -116,11 +134,13 @@ Request request = new ListShops() } ``` -**`externalId`** - +
+#### `externalId` このパラメータを渡すとその外部IDが登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -129,11 +149,13 @@ Request request = new ListShops() } ``` -**`withDisabled`** - +
+#### `withDisabled` このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。 +
+スキーマ ```json { @@ -141,11 +163,14 @@ Request request = new ListShops() } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -153,18 +178,24 @@ Request request = new ListShops() } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", - "minimum": 1 + "minimum": 1, + "maximum": 1000 } ``` +
+ 成功したときは @@ -192,11 +223,11 @@ Request request = new ListShops() Request request = new CreateShop( "oxスーパー三田店" // shopName: 店舗名 ) - .shopPostalCode("720-9003") // 店舗の郵便番号 + .shopPostalCode("693-1799") // 店舗の郵便番号 .shopAddress("東京都港区芝...") // 店舗の住所 - .shopTel("06-5528-1163") // 店舗の電話番号 - .shopEmail("Ory7pQcwkQ@vvHf.com") // 店舗のメールアドレス - .shopExternalId("ZTUiaSBniTvgiFcfFWfXo") // 店舗の外部ID + .shopTel("049913746") // 店舗の電話番号 + .shopEmail("UACkZVrFDl@DFLv.com") // 店舗のメールアドレス + .shopExternalId("qjs9cuaOl9XBeCVeRGoSmaNdKf") // 店舗の外部ID .organizationCode("ox-supermarket"); // 組織コード ``` @@ -204,9 +235,10 @@ Request request = new CreateShop( ### Parameters -**`shopName`** - +#### `shopName` +
+スキーマ ```json { @@ -216,9 +248,12 @@ Request request = new CreateShop( } ``` -**`shopPostalCode`** - +
+ +#### `shopPostalCode` +
+スキーマ ```json { @@ -227,9 +262,12 @@ Request request = new CreateShop( } ``` -**`shopAddress`** - +
+#### `shopAddress` + +
+スキーマ ```json { @@ -238,9 +276,12 @@ Request request = new CreateShop( } ``` -**`shopTel`** - +
+ +#### `shopTel` +
+スキーマ ```json { @@ -249,9 +290,12 @@ Request request = new CreateShop( } ``` -**`shopEmail`** - +
+#### `shopEmail` + +
+スキーマ ```json { @@ -261,9 +305,12 @@ Request request = new CreateShop( } ``` -**`shopExternalId`** - +
+ +#### `shopExternalId` +
+スキーマ ```json { @@ -272,9 +319,12 @@ Request request = new CreateShop( } ``` -**`organizationCode`** - +
+ +#### `organizationCode` +
+スキーマ ```json { @@ -284,6 +334,8 @@ Request request = new CreateShop( } ``` +
+ 成功したときは @@ -312,27 +364,28 @@ Request request = new CreateShop( Request request = new CreateShopV2( "oxスーパー三田店" // name: 店舗名 ) - .postalCode("8426726") // 店舗の郵便番号 + .postalCode("6547045") // 店舗の郵便番号 .address("東京都港区芝...") // 店舗の住所 - .tel("02-11-332") // 店舗の電話番号 - .email("xSJQCC2TKE@3m70.com") // 店舗のメールアドレス - .externalId("u0i2E7e3WCog3HknLhb4mGHjaX24j") // 店舗の外部ID + .tel("0275689-002") // 店舗の電話番号 + .email("8Wmm89qUta@7DPS.com") // 店舗のメールアドレス + .externalId("vWlD") // 店舗の外部ID .organizationCode("ox-supermarket") // 組織コード .privateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗で有効にするマネーIDの配列 - .canTopupPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}); // 店舗でチャージ可能にするマネーIDの配列 + .canTopupPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}); // 店舗でチャージ可能にするマネーIDの配列 ``` ### Parameters -**`name`** - - +#### `name` 店舗名です。 同一組織内に同名の店舗があった場合は`name_conflict`エラーが返ります。 +
+スキーマ + ```json { "type": "string", @@ -341,9 +394,12 @@ Request request = new CreateShopV2( } ``` -**`postalCode`** - +
+ +#### `postalCode` +
+スキーマ ```json { @@ -352,9 +408,12 @@ Request request = new CreateShopV2( } ``` -**`address`** - +
+#### `address` + +
+スキーマ ```json { @@ -363,9 +422,12 @@ Request request = new CreateShopV2( } ``` -**`tel`** - +
+ +#### `tel` +
+スキーマ ```json { @@ -374,9 +436,12 @@ Request request = new CreateShopV2( } ``` -**`email`** - +
+#### `email` + +
+スキーマ ```json { @@ -386,9 +451,12 @@ Request request = new CreateShopV2( } ``` -**`externalId`** - +
+ +#### `externalId` +
+スキーマ ```json { @@ -397,9 +465,12 @@ Request request = new CreateShopV2( } ``` -**`organizationCode`** - +
+ +#### `organizationCode` +
+スキーマ ```json { @@ -409,14 +480,17 @@ Request request = new CreateShopV2( } ``` -**`privateMoneyIds`** - +
+#### `privateMoneyIds` 店舗で有効にするマネーIDの配列を指定します。 店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。 このパラメータを省略したときは、店舗が所属する組織が発行または加盟している全てのマネーのウォレットができます。 +
+スキーマ + ```json { "type": "array", @@ -428,14 +502,17 @@ Request request = new CreateShopV2( } ``` -**`canTopupPrivateMoneyIds`** - +
+#### `canTopupPrivateMoneyIds` 店舗でチャージ可能にするマネーIDの配列を指定します。 このパラメータは発行体のみが指定でき、自身が発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。 省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。 +
+スキーマ + ```json { "type": "array", @@ -447,6 +524,8 @@ Request request = new CreateShopV2( } ``` +
+ 成功したときは @@ -463,6 +542,9 @@ Request request = new CreateShopV2( |422|unpermitted_private_money|このマネーは使えません|This money is not available| |422|unavailable_private_money||Given private money(s) is/are not available| |422|organization_not_member_organization||The specified organization is not a member organization of the organization accessing this API| +|503|geocoding_api_key_missing|住所検索サービスは一時的に利用できません|Geocoding service is temporarily unavailable| +|503|geocoding_api_error|住所検索 API がエラーを返しました|Geocoding API returned an error| +|503|geocoding_http_error|住所検索リクエストに失敗しました|Geocoding request failed| @@ -485,9 +567,10 @@ Request request = new GetShop( ### Parameters -**`shopId`** - +#### `shopId` +
+スキーマ ```json { @@ -496,6 +579,8 @@ Request request = new GetShop( } ``` +
+ 成功したときは @@ -516,12 +601,12 @@ Request request = new UpdateShop( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // shopId: 店舗ユーザーID ) .name("oxスーパー三田店") // 店舗名 - .postalCode("6312761") // 店舗の郵便番号 + .postalCode("502-0379") // 店舗の郵便番号 .address("東京都港区芝...") // 店舗の住所 - .tel("01441419") // 店舗の電話番号 - .email("pgFNSux0je@obdQ.com") // 店舗のメールアドレス - .externalId("1VXjU") // 店舗の外部ID - .privateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗で有効にするマネーIDの配列 + .tel("04524983-340") // 店舗の電話番号 + .email("XlRfIIQidV@ptLJ.com") // 店舗のメールアドレス + .externalId("KiygyzeGm2yH6BvDDIFQI860NX") // 店舗の外部ID + .privateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗で有効にするマネーIDの配列 .canTopupPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗でチャージ可能にするマネーIDの配列 .status("disabled"); // 店舗の状態 @@ -530,9 +615,10 @@ Request request = new UpdateShop( ### Parameters -**`shopId`** - +#### `shopId` +
+スキーマ ```json { @@ -541,13 +627,16 @@ Request request = new UpdateShop( } ``` -**`name`** - +
+#### `name` 店舗名です。 同一組織内に同名の店舗があった場合は`shop_name_conflict`エラーが返ります。 +
+スキーマ + ```json { "type": "string", @@ -556,11 +645,14 @@ Request request = new UpdateShop( } ``` -**`postalCode`** - +
+#### `postalCode` 店舗住所の郵便番号(7桁の数字)です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -568,9 +660,12 @@ Request request = new UpdateShop( } ``` -**`address`** - +
+ +#### `address` +
+スキーマ ```json { @@ -579,11 +674,14 @@ Request request = new UpdateShop( } ``` -**`tel`** - +
+#### `tel` 店舗の電話番号です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -591,11 +689,14 @@ Request request = new UpdateShop( } ``` -**`email`** - +
+#### `email` 店舗の連絡先メールアドレスです。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -604,11 +705,14 @@ Request request = new UpdateShop( } ``` -**`externalId`** - +
+#### `externalId` 店舗の外部IDです(最大36文字)。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -616,14 +720,17 @@ Request request = new UpdateShop( } ``` -**`privateMoneyIds`** - +
+#### `privateMoneyIds` 店舗で有効にするマネーIDの配列を指定します。 店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。 店舗が既にウォレットを持っている場合に、ここでそのウォレットのマネーIDを指定しないで更新すると、そのマネーのウォレットは凍結(無効化)されます。 +
+スキーマ + ```json { "type": "array", @@ -635,14 +742,17 @@ Request request = new UpdateShop( } ``` -**`canTopupPrivateMoneyIds`** - +
+#### `canTopupPrivateMoneyIds` 店舗でチャージ可能にするマネーIDの配列を指定します。 このパラメータは発行体のみが指定でき、発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。 省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。 +
+スキーマ + ```json { "type": "array", @@ -654,11 +764,14 @@ Request request = new UpdateShop( } ``` -**`status`** - +
+#### `status` 店舗の状態です。activeを指定すると有効となり、disabledを指定するとリスト表示から除外されます。 +
+スキーマ + ```json { "type": "string", @@ -669,6 +782,8 @@ Request request = new UpdateShop( } ``` +
+ 成功したときは diff --git a/docs/transaction.md b/docs/transaction.md index 41193020..27b4b3ab 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -1,4 +1,15 @@ # Transaction +取引を表すデータです。 +マネー(Private Money)のウォレット間の送金を記録し、キャンセルなどで状態が更新されることがあります。 +取引種類として以下が存在します。 + +- topup: チャージ。Merchant => Customer送金 +- payment: 支払い。Customer => Merchant送金 +- transfer: 個人間譲渡。Customer => Customer送金 +- exchange: マネー間交換。1ユーザのウォレット間の送金(交換) +- expire: 退会時失効。退会時の払戻を伴わない残高失効履歴 +- cashback: 退会時払戻。退会時の払戻金額履歴 + ## GetCpmToken: CPMトークンの状態取得 @@ -6,7 +17,7 @@ CPMトークンの現在の状態を取得します。CPMトークンの有効 ```JAVA Request request = new GetCpmToken( - "l7UfMqNeIWxDQ5mYkDBp76" // cpmToken: CPMトークン + "8uJqFVIWZBtq3jnfd5KTcW" // cpmToken: CPMトークン ); ``` @@ -14,11 +25,12 @@ Request request = new GetCpmToken( ### Parameters -**`cpmToken`** - - +#### `cpmToken` CPM取引時にエンドユーザーが店舗に提示するバーコードを解析して得られる22桁の文字列です。 +
+スキーマ + ```json { "type": "string", @@ -27,6 +39,8 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを } ``` +
+ 成功したときは @@ -44,18 +58,18 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを ```JAVA Request request = new ListTransactions() - .from("2020-04-18T09:50:55.000000Z") // 開始日時 - .to("2022-09-23T18:31:36.000000Z") // 終了日時 + .from("2024-05-17T09:05:05.000000Z") // 開始日時 + .to("2022-04-28T00:42:09.000000Z") // 終了日時 .page(1) // ページ番号 .perPage(50) // 1ページ分の取引数 .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID .customerName("太郎") // エンドユーザー名 .terminalId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 端末ID - .transactionId("l") // 取引ID + .transactionId("OYe9k") // 取引ID .organizationCode("pocketchange") // 組織コード .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID - .setModified(true) // キャンセルフラグ + .setModified(false) // キャンセルフラグ .types(new String[]{"topup","payment"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment .description("店頭QRコードによる支払い"); // 取引説明文 @@ -64,13 +78,14 @@ Request request = new ListTransactions() ### Parameters -**`from`** - - +#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -78,13 +93,16 @@ Request request = new ListTransactions() } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -92,11 +110,14 @@ Request request = new ListTransactions() } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -104,11 +125,14 @@ Request request = new ListTransactions() } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -116,13 +140,16 @@ Request request = new ListTransactions() } ``` -**`shopId`** - +
+#### `shopId` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -130,13 +157,16 @@ Request request = new ListTransactions() } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -144,13 +174,16 @@ Request request = new ListTransactions() } ``` -**`customerName`** - +
+#### `customerName` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -158,13 +191,16 @@ Request request = new ListTransactions() } ``` -**`terminalId`** - +
+#### `terminalId` 端末IDです。 フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -172,26 +208,32 @@ Request request = new ListTransactions() } ``` -**`transactionId`** - +
+#### `transactionId` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string" } ``` -**`organizationCode`** - +
+#### `organizationCode` 組織コードです。 フィルターとして使われ、指定された組織での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -200,13 +242,16 @@ Request request = new ListTransactions() } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -214,23 +259,26 @@ Request request = new ListTransactions() } ``` -**`setModified`** - +
+#### `setModified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`types`** - +
+#### `types` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -253,6 +301,9 @@ Request request = new ListTransactions() 6. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -270,13 +321,16 @@ Request request = new ListTransactions() } ``` -**`description`** - +
+#### `description` 取引を指定の取引説明文でフィルターします。 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -284,6 +338,8 @@ Request request = new ListTransactions() } ``` +
+ 成功したときは @@ -311,19 +367,20 @@ Request request = new CreateTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ) - .moneyAmount(8752) - .pointAmount(6176) - .pointExpiresAt("2022-06-27T17:56:39.000000Z") // ポイント有効期限 - .description("yF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5q"); + .moneyAmount(6138) + .pointAmount(1135) + .pointExpiresAt("2024-03-31T15:43:42.000000Z") // ポイント有効期限 + .description("yRuU9Z8Q2HvADi2W3bSFZd8xGhm9VbcZgOZ4yYRMkHKY2yx9gLKmBFLvqK55BnlHTaFsTxQXtMZL6XWgDmeak1eoliBFeYUr35I7ta0sw71srL0z9GEG3PXvn"); ``` ### Parameters -**`shopId`** - +#### `shopId` +
+スキーマ ```json { @@ -332,9 +389,12 @@ Request request = new CreateTransaction( } ``` -**`customerId`** - +
+#### `customerId` + +
+スキーマ ```json { @@ -343,9 +403,12 @@ Request request = new CreateTransaction( } ``` -**`privateMoneyId`** - +
+ +#### `privateMoneyId` +
+スキーマ ```json { @@ -354,9 +417,12 @@ Request request = new CreateTransaction( } ``` -**`moneyAmount`** - +
+ +#### `moneyAmount` +
+スキーマ ```json { @@ -366,9 +432,12 @@ Request request = new CreateTransaction( } ``` -**`pointAmount`** - +
+#### `pointAmount` + +
+スキーマ ```json { @@ -378,12 +447,15 @@ Request request = new CreateTransaction( } ``` -**`pointExpiresAt`** - +
+#### `pointExpiresAt` ポイントをチャージした場合の、付与されるポイントの有効期限です。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -391,9 +463,12 @@ Request request = new CreateTransaction( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -402,6 +477,8 @@ Request request = new CreateTransaction( } ``` +
+ 成功したときは @@ -417,6 +494,11 @@ Request request = new CreateTransaction( |422|customer_user_not_found||The customer user is not found| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -426,8 +508,14 @@ Request request = new CreateTransaction( |422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| |422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| -|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| -|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| |422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| |422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| @@ -437,7 +525,7 @@ Request request = new CreateTransaction( |422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| -|422|customer_account_not_found||The customer account is not found| +|422|customer_account_not_found|ユーザアカウントが見つかりません|The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| @@ -450,6 +538,93 @@ Request request = new CreateTransaction( +--- + + + +## CreateTransactionGroup: トランザクショングループを作成する +複数の取引を1つのグループとして管理できるようにします。 + +```JAVA +Request request = new CreateTransactionGroup( + "l3BKAcPvm" // name: 作成するトランザクショングループの名称です。 +); + +``` + + + +### Parameters +#### `name` +作成するトランザクショングループの名称です。 +"pokepay" で始まる文字列は予約済みのため使用できません。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 64 +} +``` + +
+ + + +成功したときは +[TransactionGroup](./responses.md#transaction-group) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|transaction_group_name_reserved|指定されたトランザクショングループ名は使用できません|Transaction group name is reserved| + + + +--- + + + +## ShowTransactionGroup: トランザクショングループを取得する +指定したトランザクショングループの詳細を返します。 + +```JAVA +Request request = new ShowTransactionGroup( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // uuid: 取得したいトランザクショングループID +); + +``` + + + +### Parameters +#### `uuid` +取得したいトランザクショングループID + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[TransactionGroup](./responses.md#transaction-group) +を返します + + + --- @@ -466,11 +641,11 @@ Request request = new ListTransactionsV2() .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID .customerName("太郎") // エンドユーザー名 .description("店頭QRコードによる支払い") // 取引説明文 - .transactionId("peG") // 取引ID + .transactionId("Pfih5KNNj") // 取引ID .setModified(false) // キャンセルフラグ .types(new String[]{"topup","payment"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment - .from("2021-05-03T01:40:37.000000Z") // 開始日時 - .to("2021-05-13T19:05:55.000000Z") // 終了日時 + .from("2021-05-09T13:41:55.000000Z") // 開始日時 + .to("2022-05-23T15:37:57.000000Z") // 終了日時 .nextPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 次ページへ遷移する際に起点となるtransactionのID .prevPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 前ページへ遷移する際に起点となるtransactionのID .perPage(50); // 1ページ分の取引数 @@ -480,13 +655,14 @@ Request request = new ListTransactionsV2() ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 指定したマネーでの取引が一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -494,13 +670,16 @@ Request request = new ListTransactionsV2() } ``` -**`organizationCode`** - +
+#### `organizationCode` 組織コードです。 フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -509,13 +688,16 @@ Request request = new ListTransactionsV2() } ``` -**`shopId`** - +
+#### `shopId` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -523,13 +705,16 @@ Request request = new ListTransactionsV2() } ``` -**`terminalId`** - +
+#### `terminalId` 端末IDです。 フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -537,13 +722,16 @@ Request request = new ListTransactionsV2() } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -551,13 +739,16 @@ Request request = new ListTransactionsV2() } ``` -**`customerName`** - +
+#### `customerName` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -565,13 +756,16 @@ Request request = new ListTransactionsV2() } ``` -**`description`** - +
+#### `description` 取引を指定の取引説明文でフィルターします。 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -579,86 +773,403 @@ Request request = new ListTransactionsV2() } ``` -**`transactionId`** - +
+#### `transactionId` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string" } ``` -**`setModified`** - +
+#### `setModified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`types`** - +
+ +#### `types` +取引の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) + +2. payment + エンドユーザーから店舗への送金取引(支払い) + +3. exchange-outflow + 他マネーへの流出 + private_money_idが指定されたとき、そのマネーから見て流出方向の交換取引が抽出されます。 + private_money_idを省略した場合は表示されません。 + +4. exchange-inflow + 他マネーからの流入 + private_money_idが指定されたとき、そのマネーから見て流入方向の交換取引が抽出されます。 + private_money_idを省略した場合は表示されません。 + +5. cashback + 退会時返金取引 + +6. expire + 退会時失効取引 + +
+スキーマ + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "exchange_outflow", + "exchange_inflow", + "cashback", + "expire" + ] + } +} +``` + +
+ +#### `from` +抽出期間の開始日時です。 + +フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ +#### `to` +抽出期間の終了日時です。 + +フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ +#### `nextPageCursorId` +次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。 +本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 +UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 + +next_page_cursor_idのtransaction自体は次のページには含まれません。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `prevPageCursorId` +前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 + +本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 +UUIDである場合は前のページが存在することを意味し、このprev_page_cursor_idをリクエストパラメータに含めることで前ページに遷移します。 + +prev_page_cursor_idのtransaction自体は前のページには含まれません。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `perPage` +1ページ分の取引数です。 + +デフォルト値は50です。 + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 1000 +} +``` + +
+ + + +成功したときは +[PaginatedTransactionV2](./responses.md#paginated-transaction-v2) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + + +## ListBillTransactions: 支払い取引履歴を取得する +支払いによって発生した取引を支払いのデータとともに一覧で返します。 + +```JAVA +Request request = new ListBillTransactions() + .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID + .organizationCode("pocketchange") // 組織コード + .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID + .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID + .customerName("太郎") // エンドユーザー名 + .terminalId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザー端末ID + .description("店頭QRコードによる支払い") // 取引説明文 + .transactionId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 取引ID + .billId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 支払いQRコードのID + .setModified(true) // キャンセルフラグ + .from("2026-08-22T06:40:18.000000Z") // 開始日時 + .to("2020-06-09T14:55:32.000000Z") // 終了日時 + .nextPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 次ページへ遷移する際に起点となるtransactionのID + .prevPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 前ページへ遷移する際に起点となるtransactionのID + .perPage(50); // 1ページ分の取引数 + +``` + + + +### Parameters +#### `privateMoneyId` +マネーIDです。 + +指定したマネーでの取引が一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `organizationCode` +組織コードです。 + +フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +
+ +#### `shopId` +店舗IDです。 + +フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `customerId` +エンドユーザーIDです。 + +フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `customerName` +エンドユーザー名です。 + +フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +
+ +#### `terminalId` +エンドユーザーの端末IDです。 +フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `description` +取引を指定の取引説明文でフィルターします。 + +取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +
+ +#### `transactionId` +取引IDです。 + +フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
-取引の種類でフィルターします。 +#### `billId` +支払いQRコードのIDです。 -以下の種類を指定できます。 +フィルターとして使われ、指定された支払いQRコードIDに部分一致(前方一致)する取引のみが一覧に表示されます。 -1. topup - 店舗からエンドユーザーへの送金取引(チャージ) +
+スキーマ -2. payment - エンドユーザーから店舗への送金取引(支払い) +```json +{ + "type": "string", + "format": "uuid" +} +``` -3. exchange-outflow - 他マネーへの流出 - private_money_idが指定されたとき、そのマネーから見て流出方向の交換取引が抽出されます。 - private_money_idを省略した場合は表示されません。 +
-4. exchange-inflow - 他マネーからの流入 - private_money_idが指定されたとき、そのマネーから見て流入方向の交換取引が抽出されます。 - private_money_idを省略した場合は表示されません。 +#### `setModified` +キャンセルフラグです。 -5. cashback - 退会時返金取引 +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 -6. expire - 退会時失効取引 +
+スキーマ ```json { - "type": "array", - "items": { - "type": "string", - "enum": [ - "topup", - "payment", - "exchange_outflow", - "exchange_inflow", - "cashback", - "expire" - ] - } + "type": "boolean" } ``` -**`from`** - +
+#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -666,13 +1177,16 @@ Request request = new ListTransactionsV2() } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -680,15 +1194,18 @@ Request request = new ListTransactionsV2() } ``` -**`nextPageCursorId`** - +
+#### `nextPageCursorId` 次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。 本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 next_page_cursor_idのtransaction自体は次のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -696,9 +1213,9 @@ next_page_cursor_idのtransaction自体は次のページには含まれませ } ``` -**`prevPageCursorId`** - +
+#### `prevPageCursorId` 前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 @@ -706,6 +1223,9 @@ UUIDである場合は前のページが存在することを意味し、このp prev_page_cursor_idのtransaction自体は前のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -713,13 +1233,16 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取引数です。 デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -728,10 +1251,12 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ } ``` +
+ 成功したときは -[PaginatedTransactionV2](./responses.md#paginated-transaction-v2) +[PaginatedBillTransaction](./responses.md#paginated-bill-transaction) を返します ### Error Responses @@ -756,9 +1281,9 @@ Request request = new CreateTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) .bearPointShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント支払時の負担店舗ID - .moneyAmount(7901) // マネー額 - .pointAmount(5298) // ポイント額 - .pointExpiresAt("2023-08-17T00:14:32.000000Z") // ポイント有効期限 + .moneyAmount(8702) // マネー額 + .pointAmount(8654) // ポイント額 + .pointExpiresAt("2023-11-15T07:37:28.000000Z") // ポイント有効期限 .description("初夏のチャージキャンペーン") // 取引履歴に表示する説明文 .metadata("{\"key\":\"value\"}") // 取引メタデータ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID @@ -768,13 +1293,14 @@ Request request = new CreateTopupTransaction( ### Parameters -**`shopId`** - - +#### `shopId` 店舗IDです。 送金元の店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -782,13 +1308,16 @@ Request request = new CreateTopupTransaction( } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 送金先のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -796,13 +1325,16 @@ Request request = new CreateTopupTransaction( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -810,13 +1342,16 @@ Request request = new CreateTopupTransaction( } ``` -**`bearPointShopId`** - +
+#### `bearPointShopId` ポイント支払時の負担店舗IDです。 ポイント支払い時に実際お金を負担する店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -824,14 +1359,17 @@ Request request = new CreateTopupTransaction( } ``` -**`moneyAmount`** - +
+#### `moneyAmount` マネー額です。 送金するマネー額を指定します。 デフォルト値は0で、money_amountとpoint_amountの両方が0のときにはinvalid_parameter_both_point_and_money_are_zero(エラーコード400)が返ります。 +
+スキーマ + ```json { "type": "integer", @@ -839,14 +1377,17 @@ Request request = new CreateTopupTransaction( } ``` -**`pointAmount`** - +
+#### `pointAmount` ポイント額です。 送金するポイント額を指定します。 デフォルト値は0で、money_amountとpoint_amountの両方が0のときにはinvalid_parameter_both_point_and_money_are_zero(エラーコード400)が返ります。 +
+スキーマ + ```json { "type": "integer", @@ -854,12 +1395,15 @@ Request request = new CreateTopupTransaction( } ``` -**`pointExpiresAt`** - +
+#### `pointExpiresAt` ポイントをチャージした場合の、付与されるポイントの有効期限です。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -867,13 +1411,16 @@ Request request = new CreateTopupTransaction( } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -881,13 +1428,16 @@ Request request = new CreateTopupTransaction( } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -895,9 +1445,9 @@ Request request = new CreateTopupTransaction( } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -905,6 +1455,9 @@ Request request = new CreateTopupTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -912,6 +1465,8 @@ Request request = new CreateTopupTransaction( } ``` +
+ 成功したときは @@ -924,7 +1479,12 @@ Request request = new CreateTopupTransaction( |400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| |400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -934,8 +1494,13 @@ Request request = new CreateTopupTransaction( |422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| |422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| -|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| -|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| |422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| |422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| @@ -953,7 +1518,9 @@ Request request = new CreateTopupTransaction( |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| -|422|customer_account_not_found||The customer account is not found| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|customer_account_not_found|ユーザアカウントが見つかりません|The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| |503|temporarily_unavailable||Service Unavailable| @@ -968,7 +1535,6 @@ Request request = new CreateTopupTransaction( 支払取引を作成します。 支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 - ```JAVA JsonObject items = new JsonObject(); items.addProperty("jan_code", "abc"); @@ -978,46 +1544,32 @@ 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 CreatePaymentTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 9367 // amount: 支払い額 + 126 // amount: 支払い額 ) .description("たい焼き(小倉)") // 取引履歴に表示する説明文 .metadata("{\"key\":\"value\"}") // 取引メタデータ - .products(new Object[]{items,items2,items3}) // 商品情報データ + .products(new Object[]{items}) // 商品情報データ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID - .strategy("point-preferred"); // 支払い時の残高消費方式 + .strategy("point-preferred") // 支払い時の残高消費方式 + .couponId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // クーポンID ``` ### Parameters -**`shopId`** - - +#### `shopId` 店舗IDです。 送金先の店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1025,13 +1577,16 @@ Request request = new CreatePaymentTransaction( } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 送金元のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1039,13 +1594,16 @@ Request request = new CreatePaymentTransaction( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1053,13 +1611,16 @@ Request request = new CreatePaymentTransaction( } ``` -**`amount`** - +
+#### `amount` マネー額です。 送金するマネー額を指定します。 +
+スキーマ + ```json { "type": "integer", @@ -1067,13 +1628,16 @@ Request request = new CreatePaymentTransaction( } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -1081,13 +1645,16 @@ Request request = new CreatePaymentTransaction( } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1095,9 +1662,9 @@ Request request = new CreatePaymentTransaction( } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -1109,6 +1676,9 @@ Request request = new CreatePaymentTransaction( - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -1118,9 +1688,9 @@ Request request = new CreatePaymentTransaction( } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1128,6 +1698,9 @@ Request request = new CreatePaymentTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1135,9 +1708,9 @@ Request request = new CreatePaymentTransaction( } ``` -**`strategy`** - +
+#### `strategy` 支払い時に残高がどのように消費されるかを指定します。 デフォルトでは point-preferred (ポイント優先)が採用されます。 @@ -1146,6 +1719,9 @@ Request request = new CreatePaymentTransaction( マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 +
+スキーマ + ```json { "type": "string", @@ -1156,6 +1732,23 @@ Request request = new CreatePaymentTransaction( } ``` +
+ +#### `couponId` +支払いに対して適用するクーポンのIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ 成功したときは @@ -1166,7 +1759,12 @@ Request request = new CreatePaymentTransaction( |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -1176,8 +1774,13 @@ Request request = new CreatePaymentTransaction( |422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| |422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| -|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| -|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| |422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| |422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| @@ -1195,7 +1798,9 @@ Request request = new CreatePaymentTransaction( |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| -|422|customer_account_not_found||The customer account is not found| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|customer_account_not_found|ユーザアカウントが見つかりません|The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| |503|temporarily_unavailable||Service Unavailable| @@ -1210,7 +1815,6 @@ Request request = new CreatePaymentTransaction( CPMトークンにより取引を作成します。 CPMトークンに設定されたスコープの取引を作ることができます。 - ```JAVA JsonObject items = new JsonObject(); items.addProperty("jan_code", "abc"); @@ -1237,9 +1841,9 @@ items3.addProperty("quantity", 1); items3.addProperty("is_discounted", false); items3.addProperty("other", "{}"); Request request = new CreateCpmTransaction( - "NKIGuoyWD3BHeU5bcdtREm", // cpmToken: CPMトークン + "Uca7AszKQRtnK9OFQAZk8l", // cpmToken: CPMトークン "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID - 1095.0 // amount: 取引金額 + 960.0 // amount: 取引金額 ) .description("たい焼き(小倉)") // 取引説明文 .metadata("{\"key\":\"value\"}") // 店舗側メタデータ @@ -1252,13 +1856,14 @@ Request request = new CreateCpmTransaction( ### Parameters -**`cpmToken`** - - +#### `cpmToken` エンドユーザーによって作られ、アプリなどに表示され、店舗に対して提示される22桁の文字列です。 エンドユーザーによって許可された取引のスコープを持っています。 +
+スキーマ + ```json { "type": "string", @@ -1267,13 +1872,16 @@ Request request = new CreateCpmTransaction( } ``` -**`shopId`** - +
+#### `shopId` 店舗IDです。 支払いやチャージを行う店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1281,26 +1889,32 @@ Request request = new CreateCpmTransaction( } ``` -**`amount`** - +
+#### `amount` 取引金額を指定します。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` 取引説明文です。 エンドユーザーアプリの取引履歴などに表示されます。 +
+スキーマ + ```json { "type": "string", @@ -1308,13 +1922,16 @@ Request request = new CreateCpmTransaction( } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に店舗側から指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1322,9 +1939,9 @@ Request request = new CreateCpmTransaction( } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -1336,6 +1953,9 @@ Request request = new CreateCpmTransaction( - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -1345,9 +1965,9 @@ Request request = new CreateCpmTransaction( } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1355,6 +1975,9 @@ Request request = new CreateCpmTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1362,16 +1985,18 @@ Request request = new CreateCpmTransaction( } ``` -**`strategy`** - +
+#### `strategy` 支払い時に残高がどのように消費されるかを指定します。 -デフォルトでは point-preferred (ポイント優先)が採用されます。 +エンドユーザーがCPMトークン作成時に指定した残高消費方式と一致するか、どちらか一方のみが指定されている必要があります。 +両方が指定されていて値が異なる場合、cpm_token_strategy_conflictが返ります。 -- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます - money-only: マネー残高のみから消費され、ポイント残高は使われません -マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 +
+スキーマ ```json { @@ -1383,6 +2008,8 @@ Request request = new CreateCpmTransaction( } ``` +
+ 成功したときは @@ -1396,10 +2023,16 @@ Request request = new CreateCpmTransaction( |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| +|422|cpm_token_strategy_conflict|CPMトークンに設定された支払い方式と異なる支払い方式が指定されました。|The strategy conflicts with the one set in the CPM token| |422|cpm_token_already_proceed|このCPMトークンは既に処理されています。|The CPM token is already proceed| |422|cpm_token_already_expired|このCPMトークンは既に失効しています。|The CPM token is already expired| |422|cpm_token_not_found|CPMトークンが見つかりませんでした。|The CPM token is not found.| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -1409,8 +2042,13 @@ Request request = new CreateCpmTransaction( |422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| |422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| -|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| -|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| |422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| |422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| @@ -1420,7 +2058,7 @@ Request request = new CreateCpmTransaction( |422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| -|422|customer_account_not_found||The customer account is not found| +|422|customer_account_not_found|ユーザアカウントが見つかりません|The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| @@ -1430,6 +2068,8 @@ Request request = new CreateCpmTransaction( |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| @@ -1442,13 +2082,12 @@ Request request = new CreateCpmTransaction( エンドユーザー間での送金取引(個人間送金)を作成します。 個人間送金で送れるのはマネーのみで、ポイントを送ることはできません。送金元のマネー残高のうち、有効期限が最も遠いものから順に送金されます。 - ```JAVA Request request = new CreateTransferTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // senderId: 送金元ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // receiverId: 受取ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 9492.0 // amount: 送金額 + 1686.0 // amount: 送金額 ) .metadata("{\"key\":\"value\"}") // 取引メタデータ .description("たい焼き(小倉)") // 取引履歴に表示する説明文 @@ -1459,13 +2098,14 @@ Request request = new CreateTransferTransaction( ### Parameters -**`senderId`** - - +#### `senderId` エンドユーザーIDです。 送金元のエンドユーザー(送り主)を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1473,13 +2113,16 @@ Request request = new CreateTransferTransaction( } ``` -**`receiverId`** - +
+#### `receiverId` エンドユーザーIDです。 送金先のエンドユーザー(受け取り人)を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1487,13 +2130,16 @@ Request request = new CreateTransferTransaction( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1501,13 +2147,16 @@ Request request = new CreateTransferTransaction( } ``` -**`amount`** - +
+#### `amount` マネー額です。 送金するマネー額を指定します。 +
+スキーマ + ```json { "type": "number", @@ -1515,13 +2164,16 @@ Request request = new CreateTransferTransaction( } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1529,13 +2181,16 @@ Request request = new CreateTransferTransaction( } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -1543,9 +2198,9 @@ Request request = new CreateTransferTransaction( } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1553,6 +2208,9 @@ Request request = new CreateTransferTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1560,6 +2218,8 @@ Request request = new CreateTransferTransaction( } ``` +
+ 成功したときは @@ -1572,7 +2232,12 @@ Request request = new CreateTransferTransaction( |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|customer_user_not_found||The customer user is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -1582,8 +2247,13 @@ Request request = new CreateTransferTransaction( |422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| |422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| -|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| -|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| |422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| |422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| @@ -1593,7 +2263,7 @@ Request request = new CreateTransferTransaction( |422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| -|422|customer_account_not_found||The customer account is not found| +|422|customer_account_not_found|ユーザアカウントが見つかりません|The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| @@ -1603,6 +2273,8 @@ Request request = new CreateTransferTransaction( |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| @@ -1618,9 +2290,9 @@ Request request = new CreateExchangeTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 961 + 7048 ) - .description("PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7V") + .description("zl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTsHdNmWw") .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID ``` @@ -1628,9 +2300,10 @@ Request request = new CreateExchangeTransaction( ### Parameters -**`userId`** - +#### `userId` +
+スキーマ ```json { @@ -1639,9 +2312,12 @@ Request request = new CreateExchangeTransaction( } ``` -**`senderPrivateMoneyId`** - +
+#### `senderPrivateMoneyId` + +
+スキーマ ```json { @@ -1650,9 +2326,12 @@ Request request = new CreateExchangeTransaction( } ``` -**`receiverPrivateMoneyId`** - +
+ +#### `receiverPrivateMoneyId` +
+スキーマ ```json { @@ -1661,9 +2340,12 @@ Request request = new CreateExchangeTransaction( } ``` -**`amount`** - +
+#### `amount` + +
+スキーマ ```json { @@ -1672,9 +2354,12 @@ Request request = new CreateExchangeTransaction( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -1683,9 +2368,9 @@ Request request = new CreateExchangeTransaction( } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1693,6 +2378,9 @@ Request request = new CreateExchangeTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1700,6 +2388,8 @@ Request request = new CreateExchangeTransaction( } ``` +
+ 成功したときは @@ -1713,6 +2403,11 @@ Request request = new CreateExchangeTransaction( |422|transaction_restricted||Transaction is not allowed| |422|can_not_exchange_between_same_private_money|同じマネーとの交換はできません|| |422|can_not_exchange_between_users|異なるユーザー間での交換は出来ません|| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| @@ -1728,8 +2423,14 @@ Request request = new CreateExchangeTransaction( |422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| |422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| -|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| -|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| |422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| |422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| @@ -1762,13 +2463,14 @@ Request request = new GetTransaction( ### Parameters -**`transactionId`** - - +#### `transactionId` 取引IDです。 フィルターとして使われ、指定した取引IDの取引を取得します。 +
+スキーマ + ```json { "type": "string", @@ -1776,6 +2478,8 @@ Request request = new GetTransaction( } ``` +
+ 成功したときは @@ -1802,16 +2506,17 @@ Request request = new RefundTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // transactionId: 取引ID ) .description("返品対応のため") // 取引履歴に表示する返金事由 - .returningPointExpiresAt("2020-03-20T07:43:18.000000Z"); // 返却ポイントの有効期限 + .returningPointExpiresAt("2025-06-11T19:42:40.000000Z"); // 返却ポイントの有効期限 ``` ### Parameters -**`transactionId`** - +#### `transactionId` +
+スキーマ ```json { @@ -1820,9 +2525,12 @@ Request request = new RefundTransaction( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -1831,11 +2539,14 @@ Request request = new RefundTransaction( } ``` -**`returningPointExpiresAt`** - +
+#### `returningPointExpiresAt` ポイント支払いを含む支払い取引をキャンセルする際にユーザへ返却されるポイントの有効期限です。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -1843,6 +2554,8 @@ Request request = new RefundTransaction( } ``` +
+ 成功したときは @@ -1868,13 +2581,14 @@ Request request = new GetTransactionByRequestId( ### Parameters -**`requestId`** - - +#### `requestId` 取引作成時にクライアントが生成し指定するリクエストIDです。 リクエストIDに対応する取引が存在すればその取引を返し、無ければNotFound(404)を返します。 +
+スキーマ + ```json { "type": "string", @@ -1882,6 +2596,8 @@ Request request = new GetTransactionByRequestId( } ``` +
+ 成功したときは @@ -1906,12 +2622,13 @@ Request request = new GetBulkTransaction( ### Parameters -**`bulkTransactionId`** - - +#### `bulkTransactionId` バルク取引ジョブIDです。 バルク取引ジョブ登録時にレスポンスに含まれます。 +
+スキーマ + ```json { "type": "string", @@ -1919,6 +2636,8 @@ Request request = new GetBulkTransaction( } ``` +
+ 成功したときは @@ -1945,12 +2664,13 @@ Request request = new ListBulkTransactionJobs( ### Parameters -**`bulkTransactionId`** - - +#### `bulkTransactionId` バルク取引ジョブIDです。 バルク取引ジョブ登録時にレスポンスに含まれます。 +
+スキーマ + ```json { "type": "string", @@ -1958,11 +2678,14 @@ Request request = new ListBulkTransactionJobs( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -1970,11 +2693,14 @@ Request request = new ListBulkTransactionJobs( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -1982,6 +2708,8 @@ Request request = new ListBulkTransactionJobs( } ``` +
+ 成功したときは @@ -1990,6 +2718,82 @@ Request request = new ListBulkTransactionJobs( +--- + + + +## CancelBulkTransaction: バルク取引をキャンセルする + +```JAVA +Request request = new CancelBulkTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // bulkTransactionId: バルク取引ジョブID +); + +``` + + + +### Parameters +#### `bulkTransactionId` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[BulkTransaction](./responses.md#bulk-transaction) +を返します + + + +--- + + + +## ResumeBulkTransaction: バルク取引を再開する + +```JAVA +Request request = new ResumeBulkTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // bulkTransactionId: バルク取引ジョブID +); + +``` + + + +### Parameters +#### `bulkTransactionId` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[BulkTransaction](./responses.md#bulk-transaction) +を返します + + + --- @@ -2023,12 +2827,13 @@ Request request = new RequestUserStats( ### Parameters -**`from`** - - +#### `from` 集計する期間の開始時刻をISO8601形式で指定します。 時刻は現在時刻、及び `to` で指定する時刻以前である必要があります。 +
+スキーマ + ```json { "type": "string", @@ -2036,12 +2841,15 @@ Request request = new RequestUserStats( } ``` -**`to`** - +
+#### `to` 集計する期間の終了時刻をISO8601形式で指定します。 時刻は現在時刻、及び `from` で指定する時刻の間である必要があります。 +
+スキーマ + ```json { "type": "string", @@ -2049,6 +2857,8 @@ Request request = new RequestUserStats( } ``` +
+ 成功したときは @@ -2062,7 +2872,62 @@ Request request = new RequestUserStats( |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|invalid_promotional_operation_user|ユーザーの指定に不正な値が含まれています|Invalid user data is specified| |422|invalid_promotional_operation_status|不正な処理ステータスです|Invalid operation status is specified| -|503|user_stats_operation_service_unavailable|一時的にユーザー統計サービスが利用不能です|User stats service is temporarily unavailable| + + + +--- + + + +## TerminateUserStats: RequestUserStatsのタスクを強制終了する +RequestUserStatsによるファイル生成のタスクを強制終了するためのAPIです。 +RequestUserStatsのレスポンス中の `operation_id` をキーにして強制終了リクエストを送ります。 +既に集計タスクが終了している場合は何も行いません。 +発行体に対して結果通知用のWebhook URLが設定されている場合、強制終了成功時には以下のような内容のPOSTリクエストが送られます。 + +- task: "process_user_stats_operation" +- operation_id: 強制終了対象のタスクID +- status: "terminated" + +```JAVA +Request request = new TerminateUserStats( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // operationId: 集計タスクID +); + +``` + + + +### Parameters +#### `operationId` +強制終了対象の集計タスクIDです。 +必須パラメータであり、指定されたタスクIDが存在しない場合は `user_stats_operation_not_found`エラー(422)が返ります。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[UserStatsOperation](./responses.md#user-stats-operation) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|user_stats_operation_already_done|指定されたIDの集計処理タスクは既に完了しています|The specified user stats operation is already done| +|422|user_stats_operation_not_found|指定されたIDの集計処理タスクが見つかりません|User stats task not found for the operation ID| +|503|temporarily_unavailable||Service Unavailable| diff --git a/docs/transfer.md b/docs/transfer.md index c6ceb53a..75a7a58d 100644 --- a/docs/transfer.md +++ b/docs/transfer.md @@ -1,4 +1,10 @@ # Transfer +送金取引明細を表すデータです。 +マネー(Private Money)のウォレット間の送金記録を取得します。 +取引(Transaction)は複数の送金明細(Transfer)で構成されています。 +送金明細には送金元・送金先のアカウント情報、マネー額、ポイント額などが含まれます。 +取引種別として、payment, topup, campaign-topup, transfer, exchange, refund-payment, refund-topup, cashback, expire等があります。 + ## GetAccountTransferSummary: @@ -8,8 +14,8 @@ Request request = new GetAccountTransferSummary( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .from("2021-12-29T10:37:26.000000Z") // 集計期間の開始時刻 - .to("2021-02-25T17:29:04.000000Z") // 集計期間の終了時刻 + .from("2021-11-05T09:00:53.000000Z") // 集計期間の開始時刻 + .to("2020-10-05T11:23:18.000000Z") // 集計期間の終了時刻 .transferTypes(new String[]{"topup","payment"}); // 取引明細種別 (複数指定可) ``` @@ -17,13 +23,14 @@ Request request = new GetAccountTransferSummary( ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 ここで指定したウォレットIDの取引明細レベルでの集計を取得します。 +
+スキーマ + ```json { "type": "string", @@ -31,9 +38,12 @@ Request request = new GetAccountTransferSummary( } ``` -**`from`** - +
+#### `from` + +
+スキーマ ```json { @@ -42,9 +52,12 @@ Request request = new GetAccountTransferSummary( } ``` -**`to`** - +
+ +#### `to` +
+スキーマ ```json { @@ -53,9 +66,9 @@ Request request = new GetAccountTransferSummary( } ``` -**`transferTypes`** - +
+#### `transferTypes` 取引明細の種別でフィルターします。 以下の種別を指定できます。 @@ -84,6 +97,9 @@ Request request = new GetAccountTransferSummary( - refund-exchange-outflow 交換による他マネーへの流出取引に対するキャンセル取引 +
+スキーマ + ```json { "type": "array", @@ -107,6 +123,8 @@ Request request = new GetAccountTransferSummary( } ``` +
+ 成功したときは @@ -123,19 +141,19 @@ Request request = new GetAccountTransferSummary( ```JAVA Request request = new ListTransfers() - .from("2021-01-30T20:49:05.000000Z") - .to("2023-02-22T20:08:11.000000Z") - .page(3365) - .perPage(5071) + .from("2020-05-15T01:57:55.000000Z") + .to("2024-08-26T01:04:42.000000Z") + .page(4463) + .perPage(4754) .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") - .shopName("3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCx") + .shopName("xsvgPufRhkZSIPkBFVSotgyldVmaPxxkTqOmFrFIeeAGW6tZ8ccBHHSscpO2n832d6dquF6eiZ3Dd6WSyHdflPLxXMNqqALPwoGWvHelnhCvdyO5hkKi9O2P9jiZ6u3x2WBzZJZ5a5g6qUYzSlCDa2sGdGVrQ24o4nKCzYGzzQTWE3lYOg9rxxthyfXlSvfosPd1dV4") .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") - .customerName("ziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9") + .customerName("mUaevGo2T7nnwUuCJVK5LAGSeliWWE3p7BNebn72rKlC8xS0lGxuRh661U82b0yeYo5zfOAgdSLVNb11hZJnWEH9hNdPtUfATWqt0PIkhoWI2jo5XiCGDGRUSQL1ViXus5xn7MbZoA7GyvC5m86vU4CTunlo9FHcvhpXn1f9WUvYvDDo3G7amxcKXWGa0ExI5eaGTZJemJSksAElb4iAlQjM0mI6tueKzKdA8G45Yd1ntlQmTFdCRQoNs8we7") .transactionId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") .setModified(false) - .transactionTypes(new String[]{"topup","cashback","transfer","expire","exchange","payment"}) - .transferTypes(new String[]{"exchange"}) // 取引明細の種類でフィルターします。 + .transactionTypes(new String[]{"cashback","expire","transfer","payment"}) + .transferTypes(new String[]{"coupon","campaign","topup","expire"}) // 取引明細の種類でフィルターします。 .description("店頭QRコードによる支払い"); // 取引詳細説明文 ``` @@ -143,9 +161,10 @@ Request request = new ListTransfers() ### Parameters -**`from`** - +#### `from` +
+スキーマ ```json { @@ -154,9 +173,12 @@ Request request = new ListTransfers() } ``` -**`to`** - +
+ +#### `to` +
+スキーマ ```json { @@ -165,9 +187,12 @@ Request request = new ListTransfers() } ``` -**`page`** - +
+#### `page` + +
+スキーマ ```json { @@ -176,9 +201,12 @@ Request request = new ListTransfers() } ``` -**`perPage`** - +
+ +#### `perPage` +
+スキーマ ```json { @@ -187,9 +215,12 @@ Request request = new ListTransfers() } ``` -**`shopId`** - +
+#### `shopId` + +
+スキーマ ```json { @@ -198,9 +229,12 @@ Request request = new ListTransfers() } ``` -**`shopName`** - +
+ +#### `shopName` +
+スキーマ ```json { @@ -209,9 +243,12 @@ Request request = new ListTransfers() } ``` -**`customerId`** - +
+ +#### `customerId` +
+スキーマ ```json { @@ -220,9 +257,12 @@ Request request = new ListTransfers() } ``` -**`customerName`** - +
+#### `customerName` + +
+スキーマ ```json { @@ -231,9 +271,12 @@ Request request = new ListTransfers() } ``` -**`transactionId`** - +
+ +#### `transactionId` +
+スキーマ ```json { @@ -242,9 +285,12 @@ Request request = new ListTransfers() } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` + +
+スキーマ ```json { @@ -253,9 +299,12 @@ Request request = new ListTransfers() } ``` -**`setModified`** - +
+ +#### `setModified` +
+スキーマ ```json { @@ -263,9 +312,12 @@ Request request = new ListTransfers() } ``` -**`transactionTypes`** - +
+#### `transactionTypes` + +
+スキーマ ```json { @@ -284,9 +336,9 @@ Request request = new ListTransfers() } ``` -**`transferTypes`** - +
+#### `transferTypes` 取引明細の種類でフィルターします。 以下の種類を指定できます。 @@ -312,6 +364,9 @@ Request request = new ListTransfers() 7. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -331,13 +386,16 @@ Request request = new ListTransfers() } ``` -**`description`** - +
+#### `description` 取引詳細を指定の取引詳細説明文でフィルターします。 取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -345,6 +403,8 @@ Request request = new ListTransfers() } ``` +
+ 成功したときは @@ -368,33 +428,34 @@ Request request = new ListTransfers() ```JAVA Request request = new ListTransfersV2() .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID - .shopName("pzYekawpUouvYHKlj0G") // 店舗名 + .shopName("ROuetQ8zFdMo0VY4tUGROiwu8g5jegd2t") // 店舗名 .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID - .customerName("L0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLKUg3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7") // エンドユーザー名 + .customerName("c5SvOZdXc2AVLuF8gaKQ0OEhkP9BLs49M6H6epGVtu0HPhsCKuI2bJUyIRN5hatVHvQNYn4X1Qj8JOhaftsXxsjd7rD3p3viKfIPkJsUNb1al7E8GagWKQ4TM4OBBdmAKiwkVMeGwc0telVu2tN3qF3OiiOujRzWy8Mcj6VHKbsKvxKRJtbZ6K76VuMMSh2Ha6k65") // エンドユーザー名 .transactionId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 取引ID .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID .setModified(false) // キャンセルフラグ - .transactionTypes(new String[]{"exchange","payment","cashback","expire"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + .transactionTypes(new String[]{"cashback","topup","expire","payment","transfer"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment .nextPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 次ページへ遷移する際に起点となるtransferのID .prevPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 前ページへ遷移する際に起点となるtransferのID .perPage(50) // 1ページ分の取引数 - .transferTypes(new String[]{"transfer","exchange","coupon","cashback","payment","topup"}) // 取引明細種別 (複数指定可) + .transferTypes(new String[]{"expire","exchange","cashback","coupon","transfer","topup","campaign","payment"}) // 取引明細種別 (複数指定可) .description("店頭QRコードによる支払い") // 取引詳細説明文 - .from("2020-02-10T06:55:29.000000Z") // 開始日時 - .to("2024-03-31T15:07:15.000000Z"); // 終了日時 + .from("2026-06-29T09:49:14.000000Z") // 開始日時 + .to("2025-11-03T19:04:44.000000Z"); // 終了日時 ``` ### Parameters -**`shopId`** - - +#### `shopId` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -402,13 +463,16 @@ Request request = new ListTransfersV2() } ``` -**`shopName`** - +
+#### `shopName` 店舗名です。 フィルターとして使われ、入力された名前に部分一致する店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -416,13 +480,16 @@ Request request = new ListTransfersV2() } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -430,13 +497,16 @@ Request request = new ListTransfersV2() } ``` -**`customerName`** - +
+#### `customerName` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -444,13 +514,16 @@ Request request = new ListTransfersV2() } ``` -**`transactionId`** - +
+#### `transactionId` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -458,13 +531,16 @@ Request request = new ListTransfersV2() } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 指定したマネーでの取引が一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -472,23 +548,26 @@ Request request = new ListTransfersV2() } ``` -**`setModified`** - +
+#### `setModified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`transactionTypes`** - +
+#### `transactionTypes` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -515,6 +594,9 @@ Request request = new ListTransfersV2() 6. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -532,15 +614,18 @@ Request request = new ListTransfersV2() } ``` -**`nextPageCursorId`** - +
+#### `nextPageCursorId` 次ページへ遷移する際に起点となるtransferのID(前ページの末尾要素のID)です。 本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 next_page_cursor_idのtransfer自体は次のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -548,9 +633,9 @@ next_page_cursor_idのtransfer自体は次のページには含まれません } ``` -**`prevPageCursorId`** - +
+#### `prevPageCursorId` 前ページへ遷移する際に起点となるtransferのID(次ページの先頭要素のID)です。 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 @@ -558,6 +643,9 @@ UUIDである場合は前のページが存在することを意味し、このp prev_page_cursor_idのtransfer自体は前のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -565,13 +653,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取引数です。 デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -580,9 +671,9 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`transferTypes`** - +
+#### `transferTypes` 取引明細の種類でフィルターします。 以下の種類を指定できます。 @@ -608,6 +699,9 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません 7. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -627,13 +721,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`description`** - +
+#### `description` 取引詳細を指定の取引詳細説明文でフィルターします。 取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -641,13 +738,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`from`** - +
+#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -655,13 +755,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -669,6 +772,8 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` +
+ 成功したときは diff --git a/docs/user.md b/docs/user.md index aa9b25ea..884d17dc 100644 --- a/docs/user.md +++ b/docs/user.md @@ -1,3 +1,8 @@ # User +ユーザを表すデータです。 +エンドユーザー(Customer)と店舗ユーザー(Merchant)の2種類が存在します。 +エンドユーザーは認証の主体であり、マネー毎にウォレットを持ちます。 +店舗ユーザーは組織に所属し、同じくマネー毎にウォレットを持ちます。 + diff --git a/docs/user_device.md b/docs/user_device.md index 7f88a827..1c063e58 100644 --- a/docs/user_device.md +++ b/docs/user_device.md @@ -3,7 +3,6 @@ UserDeviceはユーザー毎のデバイスを管理します。 あるユーザーが使っている端末を区別する必要がある場合に用いられます。 これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。 - ## CreateUserDevice: ユーザーのデバイス登録 ユーザーのデバイスを新規に登録します @@ -19,9 +18,10 @@ Request request = new CreateUserDevice( ### Parameters -**`userId`** - +#### `userId` +
+スキーマ ```json { @@ -30,12 +30,14 @@ Request request = new CreateUserDevice( } ``` -**`metadata`** - +
+#### `metadata` ユーザーのデバイス用の情報をメタデータを保持するために用います。 例: 端末の固有情報やブラウザのUser-Agent +
+スキーマ ```json { @@ -44,6 +46,8 @@ Request request = new CreateUserDevice( } ``` +
+ 成功したときは @@ -75,9 +79,10 @@ Request request = new GetUserDevice( ### Parameters -**`userDeviceId`** - +#### `userDeviceId` +
+スキーマ ```json { @@ -86,6 +91,8 @@ Request request = new GetUserDevice( } ``` +
+ 成功したときは @@ -101,7 +108,6 @@ Request request = new GetUserDevice( ## ActivateUserDevice: デバイスの有効化 指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。 - ```JAVA Request request = new ActivateUserDevice( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // userDeviceId: ユーザーデバイスID @@ -112,9 +118,10 @@ Request request = new ActivateUserDevice( ### Parameters -**`userDeviceId`** - +#### `userDeviceId` +
+スキーマ ```json { @@ -123,6 +130,8 @@ Request request = new ActivateUserDevice( } ``` +
+ 成功したときは diff --git a/docs/webhook.md b/docs/webhook.md index f9cd7134..b481fc75 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -3,7 +3,6 @@ Webhookは特定のワーカータスクでの処理が完了した事を通知 WebHookにはURLとタスク名、有効化されているかを設定することが出来ます。 通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。 - ## ListWebhooks: 作成したWebhookの一覧を返す @@ -17,11 +16,12 @@ Request request = new ListWebhooks() ### Parameters -**`page`** - - +#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -29,11 +29,14 @@ Request request = new ListWebhooks() } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -41,6 +44,8 @@ Request request = new ListWebhooks() } ``` +
+ 成功したときは @@ -65,8 +70,8 @@ Request request = new ListWebhooks() ```JAVA Request request = new CreateWebhook( - "bulk_shops", // task: タスク名 - "r5u" // url: URL + "process_user_stats_operation", // task: タスク名 + "1nu1YMp" // url: URL ); ``` @@ -74,11 +79,12 @@ Request request = new CreateWebhook( ### Parameters -**`task`** - - +#### `task` ワーカータスク名を指定します +
+スキーマ + ```json { "type": "string", @@ -89,17 +95,22 @@ Request request = new CreateWebhook( } ``` -**`url`** - +
+#### `url` 通知先のURLを指定します +
+スキーマ + ```json { "type": "string" } ``` +
+ 成功したときは @@ -131,11 +142,12 @@ Request request = new DeleteWebhook( ### Parameters -**`webhookId`** - - +#### `webhookId` 削除するWebhookのIDです。 +
+スキーマ + ```json { "type": "string", @@ -143,6 +155,8 @@ Request request = new DeleteWebhook( } ``` +
+ 成功したときは @@ -162,7 +176,7 @@ Request request = new DeleteWebhook( Request request = new UpdateWebhook( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // webhookId: Webhook ID ) - .url("MSg7mI2h9") // URL + .url("ChC") // URL .setActive(true) // 有効/無効 .task("bulk_shops"); // タスク名 @@ -171,11 +185,12 @@ Request request = new UpdateWebhook( ### Parameters -**`webhookId`** - - +#### `webhookId` 更新するWebhookのIDです。 +
+スキーマ + ```json { "type": "string", @@ -183,33 +198,42 @@ Request request = new UpdateWebhook( } ``` -**`url`** - +
+#### `url` 変更するURLを指定します +
+スキーマ + ```json { "type": "string" } ``` -**`setActive`** - +
+#### `setActive` trueならWebhookによる通知が有効になり、falseなら無効になります +
+スキーマ + ```json { "type": "boolean" } ``` -**`task`** - +
+#### `task` 指定したタスクが終了したときにWebhookによる通知がされます +
+スキーマ + ```json { "type": "string", @@ -220,6 +244,8 @@ trueならWebhookによる通知が有効になり、falseなら無効になり } ``` +
+ 成功したときは diff --git a/partner.yaml b/partner.yaml index 7bf01bfd..f89cc398 100644 --- a/partner.yaml +++ b/partner.yaml @@ -13,53 +13,148 @@ info: tags: - name: Transaction + description: | + 取引を表すデータです。 + マネー(Private Money)のウォレット間の送金を記録し、キャンセルなどで状態が更新されることがあります。 + 取引種類として以下が存在します。 + + - topup: チャージ。Merchant => Customer送金 + - payment: 支払い。Customer => Merchant送金 + - transfer: 個人間譲渡。Customer => Customer送金 + - exchange: マネー間交換。1ユーザのウォレット間の送金(交換) + - expire: 退会時失効。退会時の払戻を伴わない残高失効履歴 + - cashback: 退会時払戻。退会時の払戻金額履歴 - name: Transfer - - name: Check description: | + 送金取引明細を表すデータです。 + マネー(Private Money)のウォレット間の送金記録を取得します。 + 取引(Transaction)は複数の送金明細(Transfer)で構成されています。 + 送金明細には送金元・送金先のアカウント情報、マネー額、ポイント額などが含まれます。 + 取引種別として、payment, topup, campaign-topup, transfer, exchange, refund-payment, refund-topup, cashback, expire等があります。 + - name: Check + description: |- 店舗ユーザが発行し、エンドユーザーがポケペイアプリから読み取ることでチャージ取引が発生するQRコードです。 チャージQRコードを解析すると次のようなURLになります(URLは環境によって異なります)。 `https://www-sandbox.pokepay.jp/checks/xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` - QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注意: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 + QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) + 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 - name: Bill - description: 支払いQRコード - - name: Cashtray description: | + 支払いQRコード(トークン)を表すデータです。 + URL文字列のまま利用されるケースとQR画像化して利用されるケースがあります。 + ログイン済みユーザアプリで読込むことで、支払い取引を作成します。 + 設定される支払い金額(amount)は、固定値とユーザによる自由入力の2パターンがあります。 + amountが空の場合は、ユーザによる自由入力で受け付けた金額で支払いを行います。 + 有効期限は比較的長命で利用される事例が多いです。 + + 複数マネー対応支払いQRコードについて: + オプショナルで複数のマネーを1つの支払いQRコードに設定可能です。 + その場合ユーザ側でどのマネーで支払うか指定可能です。 + 複数マネー対応支払いQRコードにはデフォルトのマネーウォレットを設定する必要があり、ユーザがマネーを明示的に選択しなかった場合はデフォルトのマネーによる支払いになります。 + - name: Cashtray + description: |- Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。 + 店舗ユーザはCashtrayの状態を監視することができ、取引の成否やエラー事由を知ることができます。 Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。 Cashtrayはワンタイムで、一度読み取りに成功するか、取引エラーになると失効します。 また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 - name: Customer + description: | + エンドユーザー(顧客)のウォレット情報を管理するためのAPIです。 + エンドユーザーのウォレット(アカウント)の作成・更新・取得を行います。 + ウォレットにはマネー残高(有償バリュー)とポイント残高(無償バリュー)があり、 + 有効期限別に金額が管理されています。 + また、外部システム連携用のexternal_idやメタデータを設定することも可能です。 + - name: CreditSession + description: | + クレジットカード決済セッションを管理するためのAPIです。 + Veritrans(決済ゲートウェイ)との連携でクレジットカード決済を実現します。 + セッションには有効期限があり、セッション作成後に取引の実行や売上確定(キャプチャ)を行います。 + 3Dセキュア認証にも対応しています。 + - name: CVS + description: | + コンビニ決済(CVS)によるチャージの申込情報を表すデータです。 + 申込後に発行される払込票URL・受付番号を使ってコンビニで支払うと、完了通知を受けてチャージ取引が作成されます。 - name: Organization + description: | + 組織(発行体・加盟店組織)を表すデータです。 + Pokepay上でマネーを発行する発行体や、店舗を束ねる加盟店組織を管理します。 + 組織には組織コード、組織名、本社情報などが含まれます。 + 組織配下に複数の店舗(Shop)を持つことができます。 - name: Shop + description: | + 店舗(加盟店)を表すデータです。 + Pokepayプラットフォーム上で支払いを受け取る店舗ユーザーを管理します。 + 店舗は組織(Organization)に所属し、店舗ごとにウォレットを持ちます。 + 店舗情報には住所、電話番号、メールアドレス、外部連携用IDなどが含まれます。 + 店舗ステータス(active/disabled)の管理も可能です。 - name: User + description: | + ユーザを表すデータです。 + エンドユーザー(Customer)と店舗ユーザー(Merchant)の2種類が存在します。 + エンドユーザーは認証の主体であり、マネー毎にウォレットを持ちます。 + 店舗ユーザーは組織に所属し、同じくマネー毎にウォレットを持ちます。 - name: Account + description: | + ウォレットを表すデータです。 + CustomerもMerchantも所有し、ウォレット間の送金は取引として記録されます。 + Customerのウォレットはマネー残高(有償バリュー)、ポイント残高(無償バリュー)の2種類の残高をもちます。 + また有効期限別で金額管理しており、有効期限はチャージ時のコンテキストによって決定されます。 + ユーザはマネー別に複数のウォレットを保有することが可能です。 + ただし1マネー1ウォレットのみであり、同一マネーのウォレットを複数所有することはできません。 - name: Private Money + description: | + Pokepay上で発行する電子マネーを表すデータです。 + 電子マネーは1つの発行体(Organization)によって発行されます。 + 電子マネーはCustomerやMerchantが所有するウォレット間を送金されます。 + 電子マネー残高はユーザが有償で購入するマネーと無償で付与されるポイントの2種類のバリューで構成され、 + それぞれ有効期限決定ロジックは電子マネーの設定に依存します。 - name: Bulk + description: | + 一括取引処理を表すデータです。 + CSVファイルのアップロードにより、複数件の取引をバッチ処理する非同期APIを提供します。 + 一括処理のステータス(submitted, examining, queued, processing, error, done, scheduled, canceled)を監視できます。 + 処理完了時にコールバックURLへの通知も可能です。 + また、スケジュール実行時刻を指定して将来の時点で処理を実行することもできます。 - name: Event + description: | + 外部決済イベント(ExternalTransaction)を表すデータです。 + Pokepay外の決済(現金決済、クレジットカード決済等)を記録し、ポケペイのポイント還元を実現します。 + 外部決済イベントを作成することで、キャンペーン連動によるポイント付与が可能になります。 + イベントのキャンセル(返金)にも対応しており、紐付いたポイント還元も同時にキャンセルされます。 + リクエストIDによる羃等性の担保もサポートしています。 - name: Campaign - - name: Webhook description: | + 自動ポイント還元ルールの設定を表すデータです。 + Pokepay管理画面やPartnerSDK経由でルール登録、更新が可能です。 + 取引(Transaction)または外部決済イベント(ExternalTransaction)の内容によって還元するポイント額を計算し、自動で付与するルールを設定可能です。 + targetとして取引または外部決済イベントを選択して個別設定します。 + - name: Webhook + description: |- Webhookは特定のワーカータスクでの処理が完了した事を通知します。 WebHookにはURLとタスク名、有効化されているかを設定することが出来ます。 通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。 - name: Coupon description: | - Couponは支払い時に指定し、支払い処理の前にCouponに指定の方法で値引き処理を行います。 - Couponは特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 + 割引クーポンを表すデータです。 + クーポンをユーザが明示的に利用することによって支払い決済時の割引(固定金額 or 割引率)が適用されます。 + クーポンは支払い時に指定し、支払い処理の前にクーポンに指定の方法で値引き処理を行います。 + クーポン原資を負担する発行店舗を設定したり、配布先を指定することも可能です。 + また、特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 - name: UserDevice - description: | + description: |- UserDeviceはユーザー毎のデバイスを管理します。 あるユーザーが使っている端末を区別する必要がある場合に用いられます。 これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。 - name: BankPay - description: | + description: |- BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 - name: SevenBankATMSession - description: | + description: |- セブンATMチャージの取引内容を照会するAPIを提供しています。 components: @@ -79,6 +174,148 @@ components: pattern: '^ok$' message: type: string + CvsAuthorization: + x-pokepay-schema-type: "response" + type: object + properties: + account: + $ref: '#/components/schemas/AccountDetail' + user: + $ref: '#/components/schemas/User' + order_id: + type: string + format: uuid + title: 申し込みID + description: コンビニ決済の申し込みIDです。 + transaction_id: + type: string + format: uuid + nullable: true + title: 取引ID + description: 入金が完了したときに作成される取引のIDです。未入金の場合はnullです。 + pay_limit: + type: string + format: date-time + title: お支払期限 + tel: + type: string + title: 電話番号 + name1: + type: string + title: 顧客姓 + name2: + type: string + title: 顧客名 + amount: + type: integer + title: チャージ額 + service_option_type: + type: string + title: コンビニ種別 + haraikomi_url: + type: string + title: 払込票URL + receipt_no: + type: string + title: 受付番号 + done_at: + type: string + format: date-time + nullable: true + title: 入金完了日時 + canceled_at: + type: string + format: date-time + nullable: true + title: キャンセル日時 + PaginatedCvsAuthorizations: + x-pokepay-schema-type: "response" + properties: + per_page: + type: integer + minimum: 0 + count: + type: integer + minimum: 0 + items: + type: array + items: + $ref: '#/components/schemas/CvsAuthorization' + prev: + type: string + nullable: true + next: + type: string + nullable: true + CreditSession: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + expires_at: + type: string + description: 有効期限 + format: date-time + CapturedCreditSession: + x-pokepay-schema-type: "response" + properties: + session_id: + type: string + format: uuid + description: キャプチャされたセッションのID + CreditSessionTransactionResult: + x-pokepay-schema-type: "response" + description: クレジットセッション取引の結果。Veritrans microserviceから返されたレスポンス。 + type: object + UserCard: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + title: 'カード識別子' + description: 'カードの一意識別子(UUID)' + card_number: + type: string + title: 'マスク済みカード番号' + description: 'マスクされたカード番号(例: 411111********11)' + registered_at: + type: string + format: date-time + title: '登録日時' + description: 'カードが登録された日時' + PaginatedUserCards: + x-pokepay-schema-type: "response" + properties: + rows: + type: array + items: + $ref: '#/components/schemas/UserCard' + count: + type: integer + title: '総件数' + description: 'フィルタ条件に一致する全カードの件数' + pagination: + $ref: '#/components/schemas/Pagination' + CardAuthorizeResult: + x-pokepay-schema-type: "response" + description: 3Dセキュア認証開始用のレスポンス。 + type: object + properties: + authentication_html: + type: string + title: '認証開始用HTML' + description: |- + Veritransの3Dセキュア認証を開始するためのHTMLです。 + パートナーはこれをエンドユーザーのブラウザに出力してください。 + request_id: + type: string + format: uuid + title: 'リクエストID' + description: |- + この取引のリクエストIDです。 + GET /transactions/requests/{request_id} で結果を取得できます。 Pagination: x-pokepay-schema-type: "response" properties: @@ -127,68 +364,137 @@ components: type: string format: uuid title: 'ウォレットID' + description: 'ウォレットID' name: type: string title: 'ウォレット名' + description: 'ウォレット名' is_suspended: type: boolean title: 'ウォレットが凍結されているかどうか' + description: |- + 管理者によってユーザのウォレットが凍結されているかどうかのフラグです。 + statusがsuspendedかどうかと同義です。 status: type: string enum: [active, suspended, pre-closed, closed] + title: 'ウォレット状態' + description: |- + ウォレットの状態です。active状態以外のウォレットでは取引が失敗します。 + + - active: 有効状態 + - suspended: 凍結状態。管理者によって凍結されている状態です。 + - pre-closed: 退会準備状態。退会の前にこの状態を経る必要があります。 + - closed: 退会状態。この状態では残高が0になっています。 private_money: $ref: '#/components/schemas/PrivateMoney' title: '設定マネー情報' + description: 'ウォレットが取り扱うマネーです。1つのウォレットが取り扱えるマネーは1つのみです。' AccountWithUser: x-pokepay-schema-type: "response" properties: id: type: string format: uuid + title: 'ウォレットID' + description: 'ウォレットID' name: type: string + title: 'ウォレット名' + description: 'ウォレット名' is_suspended: type: boolean + title: 'ウォレットが凍結されているかどうか' + description: |- + 管理者によってユーザのウォレットが凍結されているかどうかのフラグです。 + statusがsuspendedかどうかと同義です。 status: type: string enum: [active, suspended, pre-closed, closed] + title: 'ウォレット状態' + description: |- + ウォレットの状態です。active状態以外のウォレットでは取引が失敗します。 + + - active: 有効状態 + - suspended: 凍結状態。管理者によって凍結されている状態です。 + - pre-closed: 退会準備状態。退会の前にこの状態を経る必要があります。 + - closed: 退会状態。この状態では残高が0になっています。 private_money: $ref: '#/components/schemas/PrivateMoney' + title: '設定マネー情報' + description: 'ウォレットが取り扱うマネーです。1つのウォレットが取り扱えるマネーは1つのみです。' user: $ref: '#/components/schemas/User' + title: 'ユーザ情報' + description: 'ウォレットを所持しているユーザ情報です。' AccountDetail: x-pokepay-schema-type: "response" properties: id: type: string format: uuid + title: 'ウォレットID' + description: 'ウォレットID' name: type: string + title: 'ウォレット名' + description: 'ウォレット名' is_suspended: type: boolean + title: 'ウォレットが凍結されているかどうか' + description: |- + 管理者によってユーザのウォレットが凍結されているかどうかのフラグです。 + statusがsuspendedかどうかと同義です。 status: type: string enum: [active, suspended, pre-closed, closed] + title: 'ウォレット状態' + description: |- + ウォレットの状態です。active状態以外のウォレットでは取引が失敗します。 + + - active: 有効状態 + - suspended: 凍結状態。管理者によって凍結されている状態です。 + - pre-closed: 退会準備状態。退会の前にこの状態を経る必要があります。 + - closed: 退会状態。この状態では残高が0になっています。 balance: type: number format: decimal + title: '総残高' + description: 'ウォレットに入っている総残高です(マネー残高 + ポイント残高)。' money_balance: type: number format: decimal + title: 'マネー残高' + description: 'ウォレットに入っているマネー残高です。' point_balance: type: number format: decimal + title: 'ポイント残高' + description: 'ウォレットに入っているポイント残高です。' point_debt: type: number format: decimal + title: 'ポイント負債' + description: |- + ポイント負債とは、支払いによってポイントを消費した後で、それ以前のポイント付与取引をキャンセルした場合に生じる負のポイントです。 + 次回以降のポイント付与からポイント負債分が差し引かれます。 private_money: $ref: '#/components/schemas/PrivateMoney' + title: '設定マネー情報' + description: 'ウォレットが取り扱うマネーです。1つのウォレットが取り扱えるマネーは1つのみです。' user: $ref: '#/components/schemas/User' + title: 'ユーザ情報' + description: 'ウォレットを所持しているユーザ情報です。' external_id: type: string nullable: true maxLength: 50 + title: '外部ID' + description: |- + ウォレットに対して設定されている外部IDです。 + 外部IDはポケペイ外のシステムで発番されるもので、ポケペイのウォレットと紐付けて管理したい場合に使用されます。 + 任意で設定される項目で、最大50桁の文字列が指定できます。 ShopAccount: x-pokepay-schema-type: "response" properties: @@ -211,6 +517,9 @@ components: AccountDeleted: x-pokepay-schema-type: "response" properties: {} + CustomerCardDeleted: + x-pokepay-schema-type: "response" + properties: {} AccountBalance: x-pokepay-schema-type: "response" properties: @@ -261,6 +570,60 @@ components: token: type: string title: 支払いQRコードを解析したときに出てくるURL + created_at: + type: string + format: date-time + title: 支払いQRコードの作成日時 + BillWithAdditionalPrivateMoneys: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + title: 支払いQRコードのID + amount: + type: number + format: decimal + nullable: true + title: 支払い額 + description: 支払い額。支払い額未指定の場合は支払い時に任意金額を入力できます。 + max_amount: + type: number + format: decimal + nullable: true + title: 支払い額を範囲指定した場合の上限 + description: 支払い額に任意金額を入力する際の上限です。 + min_amount: + type: number + format: decimal + nullable: true + title: 支払い額を範囲指定した場合の下限 + description: 支払い額に任意金額を入力する際の下限です。 + description: + type: string + title: 支払いQRコードの説明文(アプリ上で取引の説明文として表示される) + account: + $ref: '#/components/schemas/AccountWithUser' + title: 支払いQRコード発行ウォレット + description: 支払いQRコードを発行した店舗のウォレットです。ユーザやマネーの情報を含みます。 + is_disabled: + type: boolean + title: 無効化されているかどうか + token: + type: string + title: 支払いQRコードを解析したときに出てくるURL + created_at: + type: string + format: date-time + title: 支払いQRコードの作成日時 + additional_private_moneys: + type: array + items: + $ref: '#/components/schemas/PrivateMoney' + title: 追加の支払いマネー + description: |- + 複数マネー対応支払いQRコードで、`account` のマネー以外に支払いに使えるマネーの一覧です。 + 複数マネー対応でない場合は空配列になります。 Check: x-pokepay-schema-type: "response" properties: @@ -301,6 +664,11 @@ components: type: string format: date-time title: チャージQRコード自体の失効日時 + starts_at: + type: string + format: date-time + nullable: true + title: チャージQRコード有効開始日時 last_used_at: type: string format: date-time @@ -377,6 +745,25 @@ components: description: |- 取引作成時に店舗側から指定されるメタデータです。 全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列です。 + strategy: + type: string + enum: [point-preferred, money-only] + nullable: true + title: 支払い時の残高消費方式 + description: |- + エンドユーザーがCPMトークン作成時に指定した残高消費方式です。 + nullの場合は支払い時にpoint-preferred(ポイント優先)として扱われます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + coupon_id: + type: string + format: uuid + nullable: true + title: クーポンID + description: |- + CPMトークンを使った支払い時に、クーポンによる値引き処理を行なう場合にエンドユーザ側から指定するクーポンIDです。 Cashtray: x-pokepay-schema-type: "response" @@ -570,7 +957,7 @@ components: type: type: string title: '取引種別' - description: | + description: |- 各取引種別の値の意味は以下の通りです。 - topup: チャージ - payment: 支払い @@ -584,13 +971,13 @@ components: title: '返金された取引かどうか' sender: $ref: '#/components/schemas/User' - title: '送金者情報' + title: '送金ユーザ情報' sender_account: $ref: '#/components/schemas/Account' title: '送金ウォレット情報' receiver: $ref: '#/components/schemas/User' - title: '受取者情報' + title: '受取ユーザ情報' receiver_account: $ref: '#/components/schemas/Account' title: '受取ウォレット情報' @@ -603,7 +990,7 @@ components: point_amount: type: number title: '取引ポイント額(キャンペーン付与ポイント合算)' - description: | + description: |- 取引のポイント額です。 キャンペーンによるポイント付与額との合算値なので、元々の取引のポイント額のみを取り出したいときは `raw_point_amount` を参照してください。 チャージ取引の場合、point_amount = raw_point_amount + campaign_point_amount @@ -612,21 +999,28 @@ components: raw_point_amount: type: number title: '取引ポイント額' - description: | + description: |- 取引のポイント額です。 - キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 + 支払いの場合、キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 nullable: true campaign_point_amount: type: number title: 'キャンペーンによるポイント付与額' + description: |- + ポケペイのキャンペーン機能により付与されたポイント額です。 + 支払い取引、チャージ取引のどちらでもポイント付与される可能性があり、本来の支払い金額/チャージ金額と分離するためのフィールドです。 nullable: true done_at: type: string format: date-time title: '取引日時' + description: |- + 取引が起こった日時です。 description: type: string title: '取引説明文' + description: |- + 取引の説明文です。 TransactionDetail: x-pokepay-schema-type: "response" properties: @@ -637,7 +1031,7 @@ components: type: type: string title: '取引種別' - description: | + description: |- 各取引種別の値の意味は以下の通りです。 - topup: チャージ - payment: 支払い @@ -651,13 +1045,13 @@ components: title: '返金された取引かどうか' sender: $ref: '#/components/schemas/User' - title: '送金者情報' + title: '送金ユーザ情報' sender_account: $ref: '#/components/schemas/Account' title: '送金ウォレット情報' receiver: $ref: '#/components/schemas/User' - title: '受取者情報' + title: '受取ユーザ情報' receiver_account: $ref: '#/components/schemas/Account' title: '受取ウォレット情報' @@ -670,7 +1064,7 @@ components: point_amount: type: number title: '取引ポイント額(キャンペーン付与ポイント合算)' - description: | + description: |- 取引のポイント額です。 キャンペーンによるポイント付与額との合算値なので、元々の取引のポイント額のみを取り出したいときは `raw_point_amount` を参照してください。 チャージ取引の場合、point_amount = raw_point_amount + campaign_point_amount @@ -679,23 +1073,65 @@ components: raw_point_amount: type: number title: '取引ポイント額' - description: | + description: |- 取引のポイント額です。 - キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 + 支払いの場合、キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 campaign_point_amount: type: number title: 'キャンペーンによるポイント付与額' + description: |- + ポケペイのキャンペーン機能により付与されたポイント額です。 + 支払い取引、チャージ取引のどちらでもポイント付与される可能性があり、本来の支払い金額/チャージ金額と分離するためのフィールドです。 done_at: type: string format: date-time title: '取引日時' + description: |- + 取引が起こった日時です。 description: type: string title: '取引説明文' + description: |- + 取引の説明文です。 transfers: type: array items: $ref: '#/components/schemas/Transfer' + title: '取引明細一覧' + description: |- + 取引の内訳を表す取引明細の一覧です。 + 元々の取引に加えて、キャンペーンによるポイント付与や、キャンセル取引などが該当します。 + TransactionGroup: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + title: 'トランザクショングループID' + name: + type: string + maxLength: 64 + title: 'トランザクショングループ名' + created_at: + type: string + format: date-time + title: '作成日時' + updated_at: + type: string + format: date-time + title: '更新日時' + transactions: + type: array + items: + $ref: '#/components/schemas/Transaction' + title: 'グループに属する取引一覧' + BillTransaction: + x-pokepay-schema-type: "response" + properties: + transaction: + $ref: '#/components/schemas/Transaction' + bill: + $ref: '#/components/schemas/Bill' ShopWithMetadata: x-pokepay-schema-type: "response" properties: @@ -806,6 +1242,8 @@ components: - processing - error - done + - scheduled + - canceled title: バルク取引の状態 error: type: string @@ -823,6 +1261,11 @@ components: type: string format: date-time title: バルク取引が更新された日時 + scheduled_at: + type: string + format: date-time + nullable: true + title: バルク取引の予約実行日時 BulkTransactionJob: x-pokepay-schema-type: "response" properties: @@ -925,33 +1368,74 @@ components: id: type: string format: uuid + title: '取引明細ID' + description: '取引明細IDです。' sender_account: $ref: '#/components/schemas/AccountWithoutPrivateMoneyDetail' + title: '送金元ウォレット' + description: '送金元ウォレット情報です。' receiver_account: $ref: '#/components/schemas/AccountWithoutPrivateMoneyDetail' + title: '送金先ウォレット' + description: '送金先ウォレット情報です。' amount: type: number format: decimal minimum: 0 + title: '送金総額 (マネー額 + ポイント額)' + description: '取引明細の送金総額です (マネー額 + ポイント額)。' money_amount: type: number format: decimal minimum: 0 + title: '送金マネー額' + description: '取引明細のマネーのみの送金額です。' point_amount: type: number format: decimal minimum: 0 + title: '送金ポイント額' + description: '取引明細のポイントのみの送金額です。' done_at: type: string format: date-time + title: '送金日時' + description: |- + 送金が起こった日時です。 + 1つの取引の中でも、ポイント付与やキャンセルは遅れて行なわれるため、親取引の取引日時とは異なることがあります。 type: type: string enum: [topup, payment, refund-topup, refund-payment, transfer, exchange-inflow, exchange-outflow, refund-exchange-inflow, refund-exchange-outflow, campaign-topup, refund-campaign, use-coupon, refund-coupon, cashback, expire] + title: '取引明細種別' + description: |- + 各取引明細種別の値の意味は以下の通りです。 + - topup: チャージ + - payment: 支払い + - refund-topup: チャージ取引に対するキャンセル + - refund-payment: 支払い取引に対するキャンセル + - transfer: 個人間送金 + - exchange-inflow: マネー間交換 (他マネーのウォレットからの流入) + - exchange-outflow: マネー間交換 (他マネーのウォレットへのの流出) + - refund-exchange-inflow: マネー間交換のキャンセル (他マネーのウォレットからの流入のキャンセル) + - refund-exchange-outflow: マネー間交換のキャンセル (他マネーのウォレットへのの流出のキャンセル) + - campaign-topup: キャンペーンによるポイント付与 + - refund-campaign-topup: キャンペーンによるポイント付与のキャンセル + - use-coupon: クーポンによる値引き処理 + - cashback: ウォレット退会時の払い戻し処理 + - expire: ウォレット退会時の残高失効処理 description: type: string + title: '取引明細説明文' + description: |- + 取引明細の説明文です。 transaction_id: type: string format: uuid + title: '親取引ID' + description: |- + 親取引のIDです。 + 取引明細(Transfer)は親取引(Transaction)に対して複数存在します。 + ExternalTransaction: x-pokepay-schema-type: "response" properties: @@ -1020,7 +1504,7 @@ components: $ref: '#/components/schemas/TransactionDetail' nullable: true title: 関連ポケペイ取引詳細 - description: | + description: |- ポケペイ外取引と連動して作られたポケペイ取引の取引詳細です。 例えば、キャンペーンによるポイント付与取引やキャンセル状況などの情報が含まれます。 ポケペイ取引が存在しない場合はnullが設定されます。 @@ -1283,6 +1767,10 @@ components: type: integer minimum: 0 + BankDeleted: + x-pokepay-schema-type: "response" + properties: {} + PaginatedTransaction: x-pokepay-schema-type: "response" properties: @@ -1322,26 +1810,13 @@ components: 前ページ取得するためのID。 実際にはrows先頭 - PaginatedTransfers: - x-pokepay-schema-type: "response" - properties: - rows: - type: array - items: - $ref: '#/components/schemas/Transfer' - count: - type: integer - minimum: 0 - pagination: - $ref: '#/components/schemas/Pagination' - - PaginatedTransfersV2: + PaginatedBillTransaction: x-pokepay-schema-type: "response" properties: rows: type: array items: - $ref: '#/components/schemas/Transfer' + $ref: '#/components/schemas/BillTransaction' per_page: type: integer count: @@ -1351,8 +1826,7 @@ components: format: uuid nullable: true description: |- - 次ページ取得するためのID。 - + 次ページ取得するためのID。次ページ取得するためのID。 実際にはrows末尾 prev_page_cursor_id: type: string @@ -1362,7 +1836,47 @@ components: 前ページ取得するためのID。 実際にはrows先頭 - + PaginatedTransfers: + x-pokepay-schema-type: "response" + properties: + rows: + type: array + items: + $ref: '#/components/schemas/Transfer' + count: + type: integer + minimum: 0 + pagination: + $ref: '#/components/schemas/Pagination' + + PaginatedTransfersV2: + x-pokepay-schema-type: "response" + properties: + rows: + type: array + items: + $ref: '#/components/schemas/Transfer' + per_page: + type: integer + count: + type: integer + next_page_cursor_id: + type: string + format: uuid + nullable: true + description: |- + 次ページ取得するためのID。 + + 実際にはrows末尾 + prev_page_cursor_id: + type: string + format: uuid + nullable: true + description: |- + 前ページ取得するためのID。 + + 実際にはrows先頭 + PaginatedAccounts: x-pokepay-schema-type: "response" properties: @@ -1651,7 +2165,7 @@ components: is_hidden: type: boolean title: 'クーポン一覧に掲載されるかどうか' - description: | + description: |- アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 is_public: @@ -1667,6 +2181,20 @@ components: token: type: string title: 'クーポンを特定するためのトークン' + num_recipients_cap: + type: integer + nullable: true + title: 'クーポンを受け取ることができるユーザ数上限' + description: |- + クーポンを受け取ることができるユーザ数の上限が設定されているクーポンに対してのみ正の整数が返され、 + 上限が設定されていないクーポンではnullが返されます。 + num_recipients: + type: integer + nullable: true + title: 'クーポンを受け取ったユーザ数' + description: |- + クーポンを受け取ることができるユーザ数の上限が設定されているクーポンに対してのみ、受け取り済みのユーザ数が表示されます。 + 上限が設定されていないクーポンではnullが返されます。 CouponDetail: x-pokepay-schema-type: "response" properties: @@ -1725,7 +2253,7 @@ components: is_hidden: type: boolean title: 'クーポン一覧に掲載されるかどうか' - description: | + description: |- アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 is_public: @@ -1753,6 +2281,20 @@ components: private_money: $ref: '#/components/schemas/PrivateMoney' title: 'クーポンのマネー' + num_recipients_cap: + type: integer + nullable: true + title: 'クーポンを受け取ることができるユーザ数上限' + description: |- + クーポンを受け取ることができるユーザ数の上限が設定されているクーポンに対してのみ正の整数が返され、 + 上限が設定されていないクーポンではnullが返されます。 + num_recipients: + type: integer + nullable: true + title: 'クーポンを受け取ったユーザ数' + description: |- + クーポンを受け取ることができるユーザ数の上限が設定されているクーポンに対してのみ、受け取り済みのユーザ数が表示されます。 + 上限が設定されていないクーポンではnullが返されます。 PaginatedCoupons: x-pokepay-schema-type: "response" properties: @@ -1819,6 +2361,7 @@ components: - $ref: '#/components/schemas/PartnerRequestExpired' - $ref: '#/components/schemas/PartnerRequestAlreadyDone' - $ref: '#/components/schemas/InvalidParameters' + - $ref: '#/components/schemas/InvalidMdkToken' PartnerClientNotFound: x-pokepay-schema-type: "response" properties: @@ -1878,6 +2421,14 @@ components: nullable: true items: type: string + InvalidMdkToken: + x-pokepay-schema-type: "response" + properties: + type: + type: string + pattern: '^invalid_mdk_token$' + message: + type: string Forbidden: properties: type: @@ -1982,12 +2533,24 @@ components: application/json: schema: $ref: '#/components/schemas/UnprocessableEntity' + InvalidMdkToken: + description: Invalid MDK token + content: + application/json: + schema: + $ref: '#/components/schemas/InvalidMdkToken' Conflict: description: Conflict content: application/json: schema: $ref: '#/components/schemas/Conflict' + TemporarilyUnavailable: + description: Temporarily unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/TemporarilyUnavailable' UserStatsOperationServiceUnavailable: description: User stats operation service is temporarily unavailable content: @@ -2027,6 +2590,191 @@ paths: $ref: '#/components/schemas/Echo' '400': $ref: '#/components/responses/BadRequest' + /credit-sessions: + post: + x-pokepay-operator-name: "PostCreditSession" + x-pokepay-allow-server-side: true + tags: + - CreditSession + summary: Create credit session + operationId: createCreditSession + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - customer_id + - private_money_id + - card_id + - expires_at + properties: + customer_id: + type: string + format: uuid + private_money_id: + type: string + format: uuid + card_id: + type: string + format: uuid + expires_at: + type: string + format: date-time + description: |- + セッション有効期限 + 制約: リクエスト時刻から30日以内 + 例: "2024-01-15T10:30:00+00:00" + request_id: + type: string + format: uuid + description: |- + 冪等性キー + 同一のrequest_idを持つリクエストは冪等に処理されます。 + responses: + '200': + description: Credit session created + content: + application/json: + schema: + $ref: '#/components/schemas/CreditSession' + '400': + $ref: '#/components/responses/BadRequest' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' + /credit-sessions/{session_id}/transactions: + post: + x-pokepay-operator-name: "CreateCreditSessionTransaction" + x-pokepay-allow-server-side: true + tags: + - CreditSession + summary: Create transaction with credit session + description: |- + クレジットセッションを使用して取引を作成します。 + セッションIDと取引金額を指定します。 + operationId: createCreditSessionTransaction + parameters: + - in: path + name: session_id + required: true + schema: + type: string + format: uuid + title: 'クレジットセッションID' + description: |- + クレジットセッションID + + 事前に作成されたクレジットセッションのIDを指定します。 + requestBody: + required: true + content: + application/json: + schema: + type: object + required: ["amount"] + properties: + amount: + type: number + minimum: 0 + description: |- + 取引金額 + 支払い金額を指定します。 + shop_id: + type: string + format: uuid + description: |- + 店舗ID + 支払いを行う店舗のIDを指定します。 + description: + type: string + maxLength: 200 + default: "" + description: |- + 取引説明 + 取引の説明や備考を指定します。省略時は空文字列になります。 + request_id: + type: string + format: uuid + description: |- + 冪等性キー + 同一のrequest_idを持つリクエストは冪等に処理されます。 + responses: + '200': + description: Transaction created successfully + content: + application/json: + schema: + $ref: '#/components/schemas/CreditSessionTransactionResult' + '400': + $ref: '#/components/responses/BadRequest' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' + /credit-sessions/{session_id}/capture: + post: + x-pokepay-operator-name: "CaptureCreditSession" + x-pokepay-allow-server-side: true + tags: + - CreditSession + summary: Capture credit session + description: |- + クレジットセッションの売上確定(キャプチャ)を行います。 + セッション内で行われた支払いの合計金額をクレジットカードに請求します。 + operationId: captureCreditSession + parameters: + - in: path + name: session_id + required: true + schema: + type: string + format: uuid + title: 'クレジットセッションID' + description: |- + クレジットセッションID + + キャプチャ対象のクレジットセッションのIDを指定します。 + requestBody: + required: false + content: + application/json: + schema: + type: object + properties: + request_id: + type: string + format: uuid + description: |- + 冪等性キー + 同一のrequest_idを持つリクエストは冪等に処理されます。 + responses: + '200': + description: Credit session captured successfully + content: + application/json: + schema: + $ref: '#/components/schemas/CapturedCreditSession' + '400': + $ref: '#/components/responses/BadRequest' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' /user: get: tags: @@ -2877,7 +3625,7 @@ paths: tags: - Bill summary: '支払いQRコードの発行' - description: 支払いQRコードの内容を更新します。支払い先の店舗ユーザーは指定したマネーのウォレットを持っている必要があります。 + description: 支払いQRコードを作成します。支払い先の店舗ユーザーは指定したマネーのウォレットを持っている必要があります。 x-pokepay-operator-name: "CreateBill" x-pokepay-allow-server-side: true requestBody: @@ -2893,11 +3641,26 @@ paths: nullable: true format: decimal title: '支払い額' - description: 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + description: |- + 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 private_money_id: type: string format: uuid title: '支払いマネーのマネーID' + additional_private_money_ids: + type: array + items: + type: string + format: uuid + title: '追加の支払いマネーのマネーID' + description: |- + 複数マネー対応支払いQRコードにするために、`private_money_id` 以外に支払いに使えるマネーのマネーIDを指定します。 + エンドユーザはアプリでの読み取り時に、ここで指定したマネーを含む中から支払うマネーを選択できます。 + マネーを明示的に選択しなかった場合は `private_money_id` で指定したマネーによる支払いになります。 + + 支払い先の店舗ユーザは、ここで指定した全てのマネーのウォレットを持っている必要があります。 + また `amount` を指定する場合の上限額は、`private_money_id` と合わせた全マネーの取引上限額のうち最小のものです。 shop_id: type: string format: uuid @@ -2913,7 +3676,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bill' + $ref: '#/components/schemas/BillWithAdditionalPrivateMoneys' '400': $ref: '#/components/responses/BadRequest' '403': @@ -2922,6 +3685,38 @@ paths: $ref: '#/components/responses/UnprocessableEntity' /bills/{bill_id}: + get: + tags: + - Bill + summary: '支払いQRコードの表示' + description: 支払いQRコードの内容を表示します。 + x-pokepay-operator-name: "GetBill" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: bill_id + required: true + schema: + type: string + format: uuid + title: '支払いQRコードのID' + description: |- + 表示する支払いQRコードのIDです。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/BillWithAdditionalPrivateMoneys' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' patch: tags: - Bill @@ -2951,7 +3746,7 @@ paths: nullable: true format: decimal title: '支払い額' - description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 description: type: string maxLength: 200 @@ -2962,19 +3757,35 @@ paths: type: boolean title: '無効化されているかどうか' description: 支払いQRコードが無効化されているかどうかを指定します。真にすると無効化され、偽にすると有効化します。 + additional_private_money_ids: + type: array + items: + type: string + format: uuid + title: '追加の支払いマネーのマネーID' + description: |- + 複数マネー対応支払いQRコードの、デフォルトマネー以外に支払いに使えるマネーを指定し直します。 + ここで渡した内容で置き換えられるため、既存の追加マネーを残したい場合は残したいマネーIDも含めて渡してください。 + 空配列を渡すと追加マネーが全て外れ、デフォルトマネーのみの支払いQRコードになります。 + このパラメータ自体を省略した場合、追加マネーの設定は変更されません。 + + 支払い先の店舗ユーザは、ここで指定した全てのマネーのウォレットを持っている必要があります。 + デフォルトマネーは変更できません。 responses: '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/Bill' + $ref: '#/components/schemas/BillWithAdditionalPrivateMoneys' '400': $ref: '#/components/responses/BadRequest' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' /checks: post: tags: @@ -2995,7 +3806,7 @@ paths: minimum: 0 format: decimal title: '付与マネー額' - description: | + description: |- チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 point_amount: @@ -3003,7 +3814,7 @@ paths: minimum: 0 format: decimal title: '付与ポイント額' - description: | + description: |- チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 account_id: @@ -3018,7 +3829,7 @@ paths: is_onetime: type: boolean title: 'ワンタイムかどうかのフラグ' - description: | + description: |- チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 @@ -3026,7 +3837,7 @@ paths: type: integer nullable: true title: 'ワンタイムでない場合の最大読み取り回数' - description: | + description: |- 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 デフォルト値はNULLです。 @@ -3035,15 +3846,24 @@ paths: type: string format: date-time title: 'チャージQRコード自体の失効日時' - description: | + description: |- チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 + starts_at: + type: string + format: date-time + nullable: true + title: チャージQRコード有効開始日時 + description: |- + チャージQRコードの有効開始日時を指定します。この日時を過ぎるまではチャージQRコードを読み取ることができません。 + NULL(デフォルト)の場合は作成直後から有効になります。 + `starts_at`は`expires_at`より前である必要があります。 point_expires_at: type: string format: date-time title: 'チャージQRコードによって付与されるポイント残高の有効期限' - description: | + description: |- チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 @@ -3051,7 +3871,7 @@ paths: type: integer minimum: 1 title: 'チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)' - description: | + description: |- チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 @@ -3060,7 +3880,7 @@ paths: type: string format: uuid title: 'ポイント額を負担する店舗のウォレットID' - description: | + description: |- ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 responses: @@ -3102,7 +3922,7 @@ paths: type: string format: uuid title: 'マネーID' - description: | + description: |- チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 organization_code: type: string @@ -3115,48 +3935,62 @@ paths: type: string format: date-time title: '有効期限の期間によるフィルター(開始時点)' - description: | + description: |- 有効期限の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 expires_to: type: string format: date-time title: '有効期限の期間によるフィルター(終了時点)' - description: | + description: |- 有効期限の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 - created_from: + starts_from: type: string format: date-time - title: '作成日時の期間によるフィルター(開始時点)' - description: | - 作成日時の期間によるフィルターの開始時点のタイムスタンプです。 + title: '有効開始日時の期間によるフィルター(開始時点)' + description: |- + 有効開始日時の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 - created_to: + starts_to: + type: string + format: date-time + title: '有効開始日時の期間によるフィルター(終了時点)' + description: |- + 有効開始日時の期間によるフィルターの終了時点のタイムスタンプです。 + デフォルトでは未指定です。 + created_from: + type: string + format: date-time + title: '作成日時の期間によるフィルター(開始時点)' + description: |- + 作成日時の期間によるフィルターの開始時点のタイムスタンプです。 + デフォルトでは未指定です。 + created_to: type: string format: date-time title: '作成日時の期間によるフィルター(終了時点)' - description: | + description: |- 作成日時の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 issuer_shop_id: type: string format: uuid title: '発行店舗ID' - description: | + description: |- チャージQRコードを発行した店舗IDによってフィルターします。 デフォルトでは未指定です。 description: type: string title: 'チャージQRコードの説明文' - description: | + description: |- チャージQRコードの説明文(description)によってフィルターします。 部分一致(前方一致)したものを表示します。 デフォルトでは未指定です。 is_onetime: type: boolean title: 'ワンタイムのチャージQRコードかどうか' - description: | + description: |- チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 `true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 未指定の場合はフィルターしません。 @@ -3164,7 +3998,7 @@ paths: is_disabled: type: boolean title: '無効化されたチャージQRコードかどうか' - description: | + description: |- チャージQRコードが無効化されているかどうかでフィルターします。 `true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 未指定の場合はフィルターしません。 @@ -3241,7 +4075,7 @@ paths: minimum: 0 format: decimal title: '付与マネー額' - description: | + description: |- チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 point_amount: @@ -3249,21 +4083,21 @@ paths: minimum: 0 format: decimal title: '付与ポイント額' - description: | + description: |- チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 description: type: string maxLength: 200 title: 'チャージQRコードの説明文' - description: | + description: |- チャージQRコードの説明文です。 チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 example: 'test check' is_onetime: type: boolean title: 'ワンタイムかどうかのフラグ' - description: | + description: |- チャージQRコードが一度の読み取りで失効するときに`true`にします。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 @@ -3271,7 +4105,7 @@ paths: type: integer nullable: true title: 'ワンタイムでない場合の最大読み取り回数' - description: | + description: |- 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 @@ -3279,16 +4113,26 @@ paths: type: string format: date-time title: 'チャージQRコード自体の失効日時' - description: | + description: |- チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 + starts_at: + type: string + format: date-time + nullable: true + title: チャージQRコード有効開始日時 + description: |- + チャージQRコードの有効開始日時を指定します。この日時を過ぎるまではチャージQRコードを読み取ることができません。 + NULLに設定すると、作成直後から有効になります。 + 過去の日時を指定した場合は現在日時に補正されます。 + `starts_at`は`expires_at`より前である必要があります。 point_expires_at: type: string format: date-time nullable: true title: 'チャージQRコードによって付与されるポイント残高の有効期限' - description: | + description: |- チャージQRコードによって付与されるポイント残高の有効起源を指定します。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 @@ -3297,7 +4141,7 @@ paths: minimum: 1 nullable: true title: 'チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)' - description: | + description: |- チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 @@ -3307,12 +4151,12 @@ paths: type: string format: uuid title: 'ポイント額を負担する店舗のウォレットID' - description: | + description: |- ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 is_disabled: type: boolean title: '無効化されているかどうかのフラグ' - description: | + description: |- チャージQRコードを無効化するときに`true`にします。 `false`の場合は無効化されているチャージQRコードを再有効化します。 responses: @@ -3361,6 +4205,251 @@ paths: $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/UnprocessableEntity' + /cvs: + post: + tags: + - CVS + summary: 'コンビニ決済申込' + description: コンビニ決済の申し込みを行います。 + x-pokepay-operator-name: "CreateCvsAuthorization" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["customer_id", "private_money_id", "amount", "service_option_type", "name1", "name2", "tel"] + properties: + customer_id: + type: string + format: uuid + title: 'エンドユーザーのID' + description: |- + エンドユーザーIDです。 + + コンビニ決済を申し込むエンドユーザーを指定します。 + receiver_user_id が指定されない場合、このユーザーがチャージ先になります。 + receiver_user_id: + type: string + format: uuid + title: 'チャージ先エンドユーザーのID' + description: |- + チャージ先エンドユーザーIDです。 + + 指定した場合、customer_id とは別のユーザーをチャージ先にできます。 + 省略した場合は customer_id がチャージ先になります。 + private_money_id: + type: string + format: uuid + title: 'マネーID' + description: |- + マネーIDです。 + + チャージするマネーを指定します。 + amount: + type: integer + minimum: 1 + maximum: 299999 + title: 'チャージ額' + description: 'チャージする金額を表します。' + service_option_type: + type: string + enum: + - 'sej' + - 'other' + - 'famima' + - 'lawson' + - 'econ' + title: 'コンビニ種別' + description: 'カスタマーが支払うコンビニの種別を表します。' + name1: + type: string + title: '顧客姓' + description: '顧客の姓を表します。' + name2: + type: string + title: '顧客名' + description: '顧客名を表します。' + tel: + type: string + title: '電話番号' + description: '顧客の電話番号を表します。' + description: + type: string + maxLength: 200 + title: '取引履歴に表示する説明文' + description: |- + 取引説明文です。 + + 任意入力で、コンビニでの入金確認後に作成されるチャージ取引の取引履歴に表示されます。 + 省略した場合、および空文字列を指定した場合は既定の説明文が使われます + (取引説明文を空にすることはできません)。 + example: コンビニチャージ + topup_quota_id: + type: integer + minimum: 1 + title: 'チャージ可能枠ID' + description: |- + チャージするマネーにチャージ可能枠機能が設定されているとき、使用するチャージ可能枠のIDを表します。 + memo1: + type: string + maxLength: 100 + pattern: '^[0-9A-Za-z]*$' + title: '取引メモ1' + description: |- + Veritransの取引に付与する取引メモです。 + + 任意入力で、半角英数字100文字以内で指定します。 + Veritransの取引検索で参照できます。ポケペイの取引履歴には表示されません。 + example: campaign2026summer + memo2: + type: string + maxLength: 100 + pattern: '^[0-9A-Za-z]*$' + title: '取引メモ2' + description: |- + Veritransの取引に付与する取引メモです。 + + 任意入力で、半角英数字100文字以内で指定します。 + memo3: + type: string + maxLength: 100 + pattern: '^[0-9A-Za-z]*$' + title: '取引メモ3' + description: |- + Veritransの取引に付与する取引メモです。 + + 任意入力で、半角英数字100文字以内で指定します。 + freekey: + type: string + maxLength: 256 + pattern: '^[0-9A-Za-z]*$' + title: 'キー情報' + description: |- + Veritransの取引に付与するキー情報です。 + + 任意入力で、半角英数字256桁以内で指定します。 + 加盟店システムで管理しているIDとVeritransの取引を紐付ける用途に使えます。 + ハイフンやアンダースコアは使用できないため、UUIDをそのまま指定することはできません。 + example: order20260803001 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CvsAuthorization' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + get: + tags: + - CVS + summary: 'コンビニ決済の申し込み情報一覧取得' + description: コンビニ決済の申し込み情報一覧を取得します。 + x-pokepay-operator-name: "GetCvsAuthorizations" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["private_money_id"] + properties: + private_money_id: + type: string + format: uuid + title: 'マネーID' + description: 'マネーIDです。一覧を取得するマネーを指定します。' + customer_id: + type: string + format: uuid + title: 'エンドユーザーID' + description: 'エンドユーザーIDです。指定した場合、そのユーザーの申し込みに絞り込みます。' + status: + type: string + enum: [applied, payed, canceled, expired] + title: 'ステータス' + description: '申し込みのステータスで絞り込みます。' + before: + type: string + title: 'ページング(before)' + description: |- + ページングのためのパラメータです。 + 指定したIDの要素より後の申し込み情報が返されます。 + after: + type: string + title: 'ページング(after)' + description: |- + ページングのためのパラメータです。 + 指定したIDの要素より前の申し込み情報が返されます。 + per_page: + type: integer + minimum: 1 + maximum: 100 + default: 30 + format: int32 + title: '1ページあたりの表示件数' + description: '1ページあたりに表示する件数です。デフォルト値は30件です。' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedCvsAuthorizations' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /cvs/{order_id}: + parameters: + - name: order_id + in: path + required: true + schema: + type: string + format: uuid + description: 'コンビニ決済の申し込みID' + get: + tags: + - CVS + summary: 'コンビニ決済の申し込み情報取得' + description: コンビニ決済の申し込み情報を取得します。 + x-pokepay-operator-name: "GetCvsAuthorization" + x-pokepay-allow-server-side: true + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CvsAuthorization' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + delete: + tags: + - CVS + summary: 'コンビニ決済の申し込みキャンセル' + description: コンビニ決済の申し込みをキャンセルします。 + x-pokepay-operator-name: "CancelCvsAuthorization" + x-pokepay-allow-server-side: true + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CvsAuthorization' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' /transactions: get: tags: @@ -3572,6 +4661,76 @@ paths: $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/UnprocessableEntity' + /transaction-groups: + post: + tags: + - Transaction + summary: 'トランザクショングループを作成する' + description: |- + 複数の取引を1つのグループとして管理できるようにします。 + x-pokepay-operator-name: "CreateTransactionGroup" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - name + properties: + name: + type: string + maxLength: 64 + description: |- + 作成するトランザクショングループの名称です。 + "pokepay" で始まる文字列は予約済みのため使用できません。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionGroup' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /transaction-groups/{uuid}: + get: + tags: + - Transaction + summary: 'トランザクショングループを取得する' + description: 指定したトランザクショングループの詳細を返します。 + x-pokepay-operator-name: "ShowTransactionGroup" + x-pokepay-allow-server-side: true + parameters: + - name: uuid + in: path + required: true + schema: + type: string + format: uuid + description: 取得したいトランザクショングループID + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionGroup' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' /transactions-v2: get: tags: @@ -3750,6 +4909,164 @@ paths: $ref: '#/components/schemas/PaginatedTransactionV2' '400': $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' + /transactions/bill: + get: + tags: + - Transaction + summary: '支払い取引履歴を取得する' + description: 支払いによって発生した取引を支払いのデータとともに一覧で返します。 + x-pokepay-operator-name: "ListBillTransactions" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + properties: + private_money_id: + type: string + format: uuid + title: 'マネーID' + description: |- + マネーIDです。 + + 指定したマネーでの取引が一覧に表示されます。 + organization_code: + type: string + pattern: '^[a-zA-Z0-9-]*$' + maxLength: 32 + title: '組織コード' + description: |- + 組織コードです。 + + フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 + example: 'pocketchange' + shop_id: + type: string + format: uuid + title: '店舗ID' + description: |- + 店舗IDです。 + + フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + customer_id: + type: string + format: uuid + title: 'エンドユーザーID' + description: |- + エンドユーザーIDです。 + + フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 + customer_name: + type: string + maxLength: 256 + title: 'エンドユーザー名' + description: |- + エンドユーザー名です。 + + フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + example: 太郎 + terminal_id: + type: string + format: uuid + title: 'エンドユーザー端末ID' + description: |- + エンドユーザーの端末IDです。 + フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 + description: + type: string + maxLength: 200 + title: '取引説明文' + description: |- + 取引を指定の取引説明文でフィルターします。 + + 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + example: 店頭QRコードによる支払い + transaction_id: + type: string + format: uuid + title: '取引ID' + description: |- + 取引IDです。 + + フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + bill_id: + type: string + format: uuid + title: '支払いQRコードのID' + description: |- + 支払いQRコードのIDです。 + + フィルターとして使われ、指定された支払いQRコードIDに部分一致(前方一致)する取引のみが一覧に表示されます。 + is_modified: + type: boolean + title: 'キャンセルフラグ' + description: |- + キャンセルフラグです。 + + これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 + デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + from: + type: string + format: date-time + title: '開始日時' + description: |- + 抽出期間の開始日時です。 + + フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + to: + type: string + format: date-time + title: '終了日時' + description: |- + 抽出期間の終了日時です。 + + フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + next_page_cursor_id: + type: string + format: uuid + title: '次ページへ遷移する際に起点となるtransactionのID' + description: |- + 次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。 + 本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 + UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 + + next_page_cursor_idのtransaction自体は次のページには含まれません。 + prev_page_cursor_id: + type: string + format: uuid + title: '前ページへ遷移する際に起点となるtransactionのID' + description: |- + 前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 + + 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 + UUIDである場合は前のページが存在することを意味し、このprev_page_cursor_idをリクエストパラメータに含めることで前ページに遷移します。 + + prev_page_cursor_idのtransaction自体は前のページには含まれません。 + per_page: + type: integer + minimum: 1 + maximum: 1000 + default: 50 + title: '1ページ分の取引数' + description: |- + 1ページ分の取引数です。 + + デフォルト値は50です。 + example: 50 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedBillTransaction' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' /transactions/topup: post: tags: @@ -3871,7 +5188,7 @@ paths: tags: - Check summary: 'チャージQRコードを読み取ることでチャージする' - description: | + description: |- 通常チャージQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがチャージQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 エンドユーザーから受け取ったチャージ用QRコードのIDをエンドユーザーIDと共に渡すことでチャージ取引が作られます。 @@ -3932,7 +5249,7 @@ paths: tags: - Transaction summary: '支払いする' - description: | + description: |- 支払取引を作成します。 支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 x-pokepay-operator-name: "CreatePaymentTransaction" @@ -4022,6 +5339,12 @@ paths: マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 example: 'point-preferred' + coupon_id: + type: string + format: uuid + title: 'クーポンID' + description: |- + 支払いに対して適用するクーポンのIDを指定します。 responses: '200': description: OK @@ -4035,12 +5358,98 @@ paths: $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/UnprocessableEntity' + /transactions/payment/bill: + post: + tags: + - Bill + summary: '支払いQRコードを読み取ることで支払いをする' + description: |- + 通常支払いQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバが支払いQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際の支払い取引をリクエストすることになります。 + + エンドユーザーから受け取った支払いQRコードのIDをエンドユーザーIDと共に渡すことで支払い取引が作られます。 + 支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 + x-pokepay-operator-name: "CreatePaymentTransactionWithBill" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["bill_id", "customer_id"] + properties: + bill_id: + type: string + format: uuid + title: '支払いQRコードのID' + description: |- + 支払いQRコードのIDです。 + + QRコード生成時に送金先店舗のウォレット情報や、支払い金額などが登録されています。 + customer_id: + type: string + format: uuid + title: 'エンドユーザーのID' + description: |- + エンドユーザーIDです。 + + 支払いを行うエンドユーザーを指定します。 + metadata: + type: string + format: json + title: '取引メタデータ' + description: |- + 取引作成時に指定されるメタデータです。 + + 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + example: |- + {"key":"value"} + request_id: + type: string + format: uuid + title: 'リクエストID' + description: |- + 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + + 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + + リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + strategy: + type: string + enum: [point-preferred, money-only] + default: 'point-preferred' + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + example: 'point-preferred' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionDetail' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' /transactions/cpm: post: tags: - Transaction summary: 'CPMトークンによる取引作成' - description: | + description: |- CPMトークンにより取引を作成します。 CPMトークンに設定されたスコープの取引を作ることができます。 x-pokepay-operator-name: "CreateCpmTransaction" @@ -4112,15 +5521,15 @@ paths: strategy: type: string enum: [point-preferred, money-only] + nullable: true title: '支払い時の残高消費方式' description: |- 支払い時に残高がどのように消費されるかを指定します。 - デフォルトでは point-preferred (ポイント優先)が採用されます。 + エンドユーザーがCPMトークン作成時に指定した残高消費方式と一致するか、どちらか一方のみが指定されている必要があります。 + 両方が指定されていて値が異なる場合、cpm_token_strategy_conflictが返ります。 - - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます - money-only: マネー残高のみから消費され、ポイント残高は使われません - - マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 example: 'point-preferred' responses: '200': @@ -4198,7 +5607,7 @@ paths: tags: - Cashtray summary: 'CashtrayQRコードを読み取ることで取引する' - description: | + description: |- エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。 通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 @@ -4279,7 +5688,7 @@ paths: tags: - Transaction summary: '個人間送金' - description: | + description: |- エンドユーザー間での送金取引(個人間送金)を作成します。 個人間送金で送れるのはマネーのみで、ポイントを送ることはできません。送金元のマネー残高のうち、有効期限が最も遠いものから順に送金されます。 x-pokepay-operator-name: "CreateTransferTransaction" @@ -4451,7 +5860,7 @@ paths: description: |- 一括取引する情報を書いたCSVの文字列です。 1行目はヘッダ行で、2行目以降の各行にカンマ区切りの取引データを含みます。 - カラムは以下の7つです。任意のカラムには空文字を指定します。 + カラムは以下の9つです。任意のカラムには空文字を指定します。 - `type`: 取引種別 - 必須。'topup' または 'payment' @@ -4467,8 +5876,8 @@ paths: - 任意。ただし `money_amount` といずれかが必須。0以上の数字 - `description`: 取引の説明文 - 任意。200文字以内。取引履歴に表示される文章 - - `bear_account_id`: ポイント負担ウォレットID - - `point_amount` があるときは必須。UUID + - `bear_point_account_id`: ポイント負担ウォレットID + - 任意。UUID。省略した場合はマネー発行体の本店のウォレットがポイントを負担します - `point_expires_at`: ポイントの有効期限 - 任意。指定がないときはマネーに設定された有効期限を適用 request_id: @@ -4484,6 +5893,37 @@ paths: title: 'マネーID' description: |- マネーIDです。 マネーを指定します。 + callback_url: + type: string + nullable: true + format: url + title: コールバックURL + description: |- + 一括取引タスクが終了したときに通知されるコールバックURLです。これはオプショナルなパラメータで、未指定の場合は通知されません。 + + 指定したURLに対して、以下の内容のリクエストがPOSTメソッドで送信されます。 + + リクエスト例: + { + "bulk_transaction_id": "c9a0b2c0-e8d0-4a7f-9b1d-2f0c3e1a8b7a", + "request_id": "1640e29f-157a-46e2-af05-c402726cbf2b", + "completed_at": "2025-09-26T14:30:00Z", + "status": "done", + "success_count": 98, + "total_count": 100 + } + + - bulk_transaction_id: 一括取引タスクのタスクID + - request_id: 本APIにクライアント側から指定したrequest_id + - completed_at: 完了時刻 + - status: 終了時の状態。done (完了状態) か error (エラー) のいずれか + - success_count: 成功件数 + - total_count: 総件数 + + リトライ戦略について: + 対象URLにPOSTした結果、500, 502, 503, 504エラーを受け取ったとき、またはタイムアウト (10秒)したときに、最大3回までリトライします。 + 成功通知が複数回送信されることもありえるため、request_idで排他処理を行なってください。 + responses: '200': description: OK @@ -4499,6 +5939,8 @@ paths: $ref: '#/components/responses/Conflict' '422': $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' /transactions/{transaction_id}: get: tags: @@ -4621,7 +6063,7 @@ paths: tags: - Event summary: 'ポケペイ外部取引を作成する' - description: | + description: |- ポケペイ外部取引を作成します。 ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。 @@ -5231,7 +6673,7 @@ paths: example: フクザワユキチ contact_name: type: string - maxLength: 256 + maxLength: 64 title: '担当者名' example: 佐藤清 responses: @@ -5259,14 +6701,14 @@ paths: pattern: '^[a-zA-Z0-9-]*$' maxLength: 32 title: '組織コード' - description: | + description: |- このパラメータを渡すとその組織の店舗のみが返され、省略すると加盟店も含む店舗が返されます。 example: 'pocketchange' private_money_id: type: string format: uuid title: 'マネーID' - description: | + description: |- このパラメータを渡すとそのマネーのウォレットを持つ店舗のみが返されます。 name: type: string @@ -5274,44 +6716,44 @@ paths: maxLength: 256 title: '店舗名' example: 'oxスーパー三田店' - description: | + description: |- このパラメータを渡すとその名前の店舗のみが返されます。 postal_code: type: string pattern: '^[0-9]{3}-?[0-9]{4}$' title: '店舗の郵便番号' - description: | + description: |- このパラメータを渡すとその郵便番号が登録された店舗のみが返されます。 address: type: string maxLength: 256 title: '店舗の住所' example: '東京都港区芝...' - description: | + description: |- このパラメータを渡すとその住所が登録された店舗のみが返されます。 tel: type: string pattern: '^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$' title: '店舗の電話番号' - description: | + description: |- このパラメータを渡すとその電話番号が登録された店舗のみが返されます。 email: type: string format: email maxLength: 256 title: '店舗のメールアドレス' - description: | + description: |- このパラメータを渡すとそのメールアドレスが登録された店舗のみが返されます。 external_id: type: string maxLength: 36 title: '店舗の外部ID' - description: | + description: |- このパラメータを渡すとその外部IDが登録された店舗のみが返されます。 with_disabled: type: boolean title: '無効な店舗を含める' - description: | + description: |- このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。 page: type: integer @@ -5322,6 +6764,7 @@ paths: per_page: type: integer minimum: 1 + maximum: 1000 title: '1ページ分の取引数' description: 1ページ分の取引数です。 example: 50 @@ -5709,87 +7152,529 @@ paths: properties: from: type: string - format: date-time - title: '開始日時(toと同時に指定する必要有)' - to: + format: date-time + title: '開始日時(toと同時に指定する必要有)' + to: + type: string + format: date-time + title: '終了日時(fromと同時に指定する必要有)' + page: + type: integer + minimum: 1 + title: 'ページ番号' + example: 1 + per_page: + type: integer + minimum: 1 + title: '1ページ分の取引数' + example: 50 + parameters: + - in: path + name: private_money_id + required: true + schema: + type: string + format: uuid + title: マネーID + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedPrivateMoneyOrganizationSummaries' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + /private-moneys/{private_money_id}/summary: + get: + tags: + - Private Money + summary: 取引サマリを取得する + x-pokepay-operator-name: "GetPrivateMoneySummary" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + properties: + from: + type: string + format: date-time + title: '開始日時' + to: + type: string + format: date-time + title: '終了日時' + parameters: + - in: path + name: private_money_id + required: true + schema: + type: string + format: uuid + title: マネーID + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PrivateMoneySummary' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /customers/{customer_id}/cards: + get: + tags: + - Customer + summary: 'エンドユーザーのクレジットカード一覧を取得する' + description: |- + エンドユーザーのクレジットカード一覧を取得します。 + 3D Secure認証済みのカードのみが返されます。 + idはcredit-sessions作成時に使用できます。 + x-pokepay-operator-name: "GetCustomerCards" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: customer_id + required: true + schema: + type: string + format: uuid + title: 'エンドユーザーID' + description: エンドユーザーのIDです。 + requestBody: + required: true + content: + application/json: + schema: + properties: + page: + type: integer + minimum: 1 + title: 'ページ番号' + description: 取得したいページ番号です。デフォルト値は1です。 + per_page: + type: integer + minimum: 1 + maximum: 100 + title: '1ページ分の要素数' + description: 1ページ当たりの要素数です。デフォルト値は30です。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedUserCards' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + post: + tags: + - Customer + summary: 'エンドユーザーのクレジットカードを登録する' + description: |- + エンドユーザーのクレジットカードを登録します。 + 会員登録がまだの場合は同時に会員登録も行います。 + x-pokepay-operator-name: "CreateCustomerCard" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: customer_id + required: true + schema: + type: string + format: uuid + title: 'エンドユーザーID' + description: カード保持者であるエンドユーザーのIDです。 + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - token + properties: + token: + type: string + title: 'MDKトークン' + description: カード情報に紐付くMDKトークンです。 + is_cardholder_name_specified: + type: boolean + default: false + title: 'カード名義人指定フラグ' + description: MDKトークン作成時にカード名義人を指定したかどうかのフラグです。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/UserCard' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' + /customers/{customer_id}/cards/delete: + post: + tags: + - Customer + summary: 'エンドユーザーのクレジットカードを削除する' + description: |- + エンドユーザーの登録済みクレジットカードを削除します。 + 対象カードにアクティブなクレジットセッションがある場合は削除できません。 + x-pokepay-operator-name: "DeleteCustomerCard" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: customer_id + required: true + schema: + type: string + format: uuid + title: 'エンドユーザーID' + description: カード保持者であるエンドユーザーのIDです。 + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - card_uuid + properties: + card_uuid: + type: string + format: uuid + title: 'カード識別子' + description: 削除対象カードのUUID(カード一覧の id)です。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CustomerCardDeleted' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' + /customers/{customer_id}/card-authorize/topup-with-membership: + post: + tags: + - Customer + summary: '登録済みクレジットカードでチャージする(3Dセキュア)' + description: |- + エンドユーザーの登録済みクレジットカードを使い、3Dセキュア認証付きでチャージします。 + レスポンスの authentication_html をエンドユーザーのブラウザに出力し認証を行ってください。 + receiver_user_id を指定すると、カード保持者と異なるユーザーの口座にチャージできます。 + x-pokepay-operator-name: "CreditCardTopupWithMembership" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: customer_id + required: true + schema: + type: string + format: uuid + title: 'カード保持者のエンドユーザーID' + description: クレジットカードを保持するエンドユーザーのIDです。 + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - card_uuid + - private_money_id + - amount + properties: + card_uuid: + type: string + format: uuid + title: 'カード識別子' + description: 使用する登録済みカードのUUID(カード一覧の id)です。 + private_money_id: + type: string + format: uuid + title: 'マネーID' + description: チャージ先口座のマネーIDです。 + receiver_user_id: + type: string + format: uuid + title: 'チャージ先ユーザーID' + description: |- + チャージ先のエンドユーザーIDです。 + 省略時はカード保持者本人にチャージします。 + amount: + type: integer + minimum: 1 + title: 'チャージ金額' + delete_card_if_auth_fail: + type: boolean + title: '認証失敗時にカードを削除するか' + description: + type: string + maxLength: 200 + title: '取引履歴に表示する説明文' + description: |- + 取引説明文です。 + + 任意入力で、3Dセキュア認証成功後に作成されるチャージ取引の取引履歴に表示されます。 + 省略した場合、および空文字列を指定した場合は既定の説明文が使われます + (取引説明文を空にすることはできません)。 + example: クレジットカードチャージ + return_url: + type: string + maxLength: 2048 + title: '3Dセキュア完了画面の戻り先URL' + description: |- + 3Dセキュア完了画面(成功・失敗いずれも)に表示する「戻る」ボタンの遷移先URLです。 + + 任意入力です。指定した場合のみボタンが表示され、エンドユーザーが押すと + このURLへ遷移します。省略した場合、および空文字列を指定した場合は + ボタンを表示しません。 + + スキームは http または https のみ受け付けます。それ以外の値、および + 2048文字を超える値は invalid_parameters エラー + (invalid: ["return_url"]、エラーコード400) になります。 + ポケペイ側でクエリパラメータの付与は行いません。取引を識別したい場合は + URL自体にパラメータを含めてください。 + example: https://example.com/charge/complete?session=abc + request_id: + type: string + format: uuid + title: 'リクエストID' + description: 冪等性のためのリクエストIDです。省略時はサーバーが生成します。 + topup_quota_id: + type: integer + title: 'チャージ可能枠ID' + memo1: + type: string + maxLength: 100 + pattern: '^[0-9A-Za-z]*$' + title: '取引メモ1' + description: |- + Veritransの取引に付与する取引メモです。 + + 任意入力で、半角英数字100文字以内で指定します。 + Veritransの取引検索で参照できます。ポケペイの取引履歴には表示されません。 + example: campaign2026summer + memo2: + type: string + maxLength: 100 + pattern: '^[0-9A-Za-z]*$' + title: '取引メモ2' + description: |- + Veritransの取引に付与する取引メモです。 + + 任意入力で、半角英数字100文字以内で指定します。 + memo3: type: string - format: date-time - title: '終了日時(fromと同時に指定する必要有)' - page: - type: integer - minimum: 1 - title: 'ページ番号' - example: 1 - per_page: - type: integer - minimum: 1 - title: '1ページ分の取引数' - example: 50 - parameters: - - in: path - name: private_money_id - required: true - schema: - type: string - format: uuid - title: マネーID + maxLength: 100 + pattern: '^[0-9A-Za-z]*$' + title: '取引メモ3' + description: |- + Veritransの取引に付与する取引メモです。 + + 任意入力で、半角英数字100文字以内で指定します。 + freekey: + type: string + maxLength: 256 + pattern: '^[0-9A-Za-z]*$' + title: 'キー情報' + description: |- + Veritransの取引に付与するキー情報です。 + + 任意入力で、半角英数字256桁以内で指定します。 + 加盟店システムで管理しているIDとVeritransの取引を紐付ける用途に使えます。 + ハイフンやアンダースコアは使用できないため、UUIDをそのまま指定することはできません。 + example: order20260803001 responses: '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/PaginatedPrivateMoneyOrganizationSummaries' + $ref: '#/components/schemas/CardAuthorizeResult' '400': - $ref: '#/components/responses/InvalidParameters' + $ref: '#/components/responses/BadRequest' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' - /private-moneys/{private_money_id}/summary: - get: + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' + /customers/{customer_id}/card-authorize/topup-with-mdk-token: + post: tags: - - Private Money - summary: 取引サマリを取得する - x-pokepay-operator-name: "GetPrivateMoneySummary" + - Customer + summary: '未登録クレジットカード(MDKトークン)でチャージする(3Dセキュア)' + description: |- + MDKトークンで表されるクレジットカードを使い、カード登録なしで3Dセキュア認証付きチャージを行います。 + レスポンスの authentication_html をエンドユーザーのブラウザに出力し認証を行ってください。 + receiver_user_id を指定すると、カード保持者と異なるユーザーの口座にチャージできます。 + x-pokepay-operator-name: "CreditCardTopupWithMdkToken" x-pokepay-allow-server-side: true + parameters: + - in: path + name: customer_id + required: true + schema: + type: string + format: uuid + title: 'カード保持者のエンドユーザーID' + description: クレジットカードを保持するエンドユーザーのIDです。 requestBody: required: true content: application/json: schema: + type: object + required: + - token + - private_money_id + - amount properties: - from: + token: type: string - format: date-time - title: '開始日時' - to: + title: 'MDKトークン' + description: VeritransのMDKトークンです。 + private_money_id: type: string - format: date-time - title: '終了日時' - parameters: - - in: path - name: private_money_id - required: true - schema: - type: string - format: uuid - title: マネーID + format: uuid + title: 'マネーID' + receiver_user_id: + type: string + format: uuid + title: 'チャージ先ユーザーID' + description: 省略時はカード保持者本人にチャージします。 + amount: + type: integer + minimum: 1 + title: 'チャージ金額' + is_cardholder_name_specified: + type: boolean + title: 'カード名義人指定フラグ' + description: + type: string + maxLength: 200 + title: '取引履歴に表示する説明文' + description: |- + 取引説明文です。 + + 任意入力で、3Dセキュア認証成功後に作成されるチャージ取引の取引履歴に表示されます。 + 省略した場合、および空文字列を指定した場合は既定の説明文が使われます + (取引説明文を空にすることはできません)。 + example: クレジットカードチャージ + return_url: + type: string + maxLength: 2048 + title: '3Dセキュア完了画面の戻り先URL' + description: |- + 3Dセキュア完了画面(成功・失敗いずれも)に表示する「戻る」ボタンの遷移先URLです。 + + 任意入力です。指定した場合のみボタンが表示され、エンドユーザーが押すと + このURLへ遷移します。省略した場合、および空文字列を指定した場合は + ボタンを表示しません。 + + スキームは http または https のみ受け付けます。それ以外の値、および + 2048文字を超える値は invalid_parameters エラー + (invalid: ["return_url"]、エラーコード400) になります。 + ポケペイ側でクエリパラメータの付与は行いません。取引を識別したい場合は + URL自体にパラメータを含めてください。 + example: https://example.com/charge/complete?session=abc + request_id: + type: string + format: uuid + title: 'リクエストID' + topup_quota_id: + type: integer + title: 'チャージ可能枠ID' + memo1: + type: string + maxLength: 100 + pattern: '^[0-9A-Za-z]*$' + title: '取引メモ1' + description: |- + Veritransの取引に付与する取引メモです。 + + 任意入力で、半角英数字100文字以内で指定します。 + Veritransの取引検索で参照できます。ポケペイの取引履歴には表示されません。 + example: campaign2026summer + memo2: + type: string + maxLength: 100 + pattern: '^[0-9A-Za-z]*$' + title: '取引メモ2' + description: |- + Veritransの取引に付与する取引メモです。 + + 任意入力で、半角英数字100文字以内で指定します。 + memo3: + type: string + maxLength: 100 + pattern: '^[0-9A-Za-z]*$' + title: '取引メモ3' + description: |- + Veritransの取引に付与する取引メモです。 + + 任意入力で、半角英数字100文字以内で指定します。 + freekey: + type: string + maxLength: 256 + pattern: '^[0-9A-Za-z]*$' + title: 'キー情報' + description: |- + Veritransの取引に付与するキー情報です。 + + 任意入力で、半角英数字256桁以内で指定します。 + 加盟店システムで管理しているIDとVeritransの取引を紐付ける用途に使えます。 + ハイフンやアンダースコアは使用できないため、UUIDをそのまま指定することはできません。 + example: order20260803001 responses: '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/PrivateMoneySummary' + $ref: '#/components/schemas/CardAuthorizeResult' '400': - $ref: '#/components/responses/InvalidParameters' + $ref: '#/components/responses/BadRequest' '403': $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' '422': $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' /customers/transactions: get: tags: @@ -5977,12 +7862,72 @@ paths: $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/UnprocessableEntity' + /bulk-transactions/{bulk_transaction_id}/cancel: + post: + tags: + - Transaction + summary: バルク取引をキャンセルする + x-pokepay-operator-name: "CancelBulkTransaction" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: bulk_transaction_id + schema: + type: string + format: uuid + title: 'バルク取引ジョブID' + required: true + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/BulkTransaction' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /bulk-transactions/{bulk_transaction_id}/resume: + post: + tags: + - Transaction + summary: バルク取引を再開する + x-pokepay-operator-name: "ResumeBulkTransaction" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: bulk_transaction_id + schema: + type: string + format: uuid + title: 'バルク取引ジョブID' + required: true + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/BulkTransaction' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' /cashtrays: post: tags: - Cashtray summary: 'Cashtrayを作る' - description: | + description: |- Cashtrayを作成します。 エンドユーザーに対して支払いまたはチャージを行う店舗の情報(店舗ユーザーIDとマネーID)と、取引金額が必須項目です。 @@ -6235,7 +8180,7 @@ paths: tags: - Campaign summary: 'ポイント付与キャンペーンを作る' - description: | + description: |- ポイント付与キャンペーンを作成します。 x-pokepay-operator-name: "CreateCampaign" x-pokepay-allow-server-side: true @@ -7135,7 +9080,7 @@ paths: tags: - Campaign summary: 'ポイント付与キャンペーンを更新する' - description: | + description: |- ポイント付与キャンペーンを更新します。 x-pokepay-operator-name: "UpdateCampaign" x-pokepay-allow-server-side: true @@ -7989,6 +9934,50 @@ paths: '503': $ref: '#/components/responses/UserStatsOperationServiceUnavailable' + /user-stats/terminate: + post: + tags: + - Transaction + summary: 'RequestUserStatsのタスクを強制終了する' + description: |- + RequestUserStatsによるファイル生成のタスクを強制終了するためのAPIです。 + RequestUserStatsのレスポンス中の `operation_id` をキーにして強制終了リクエストを送ります。 + 既に集計タスクが終了している場合は何も行いません。 + 発行体に対して結果通知用のWebhook URLが設定されている場合、強制終了成功時には以下のような内容のPOSTリクエストが送られます。 + + - task: "process_user_stats_operation" + - operation_id: 強制終了対象のタスクID + - status: "terminated" + x-pokepay-operator-name: "TerminateUserStats" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["operation_id"] + properties: + operation_id: + type: string + format: uuid + title: '集計タスクID' + description: |- + 強制終了対象の集計タスクIDです。 + 必須パラメータであり、指定されたタスクIDが存在しない場合は `user_stats_operation_not_found`エラー(422)が返ります。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/UserStatsOperation' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /webhooks: post: x-pokepay-operator-name: "CreateWebhook" @@ -8175,7 +10164,7 @@ paths: type: string format: json title: ユーザーデバイスのメタデータ - description: | + description: |- ユーザーのデバイス用の情報をメタデータを保持するために用います。 例: 端末の固有情報やブラウザのUser-Agent example: '{"user_agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"}' @@ -8232,7 +10221,7 @@ paths: tags: - UserDevice summary: デバイスの有効化 - description: | + description: |- 指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。 parameters: - in: path @@ -8267,7 +10256,7 @@ paths: tags: - BankPay summary: 銀行口座の登録 - description: | + description: |- 銀行口座の登録を始めるAPIです。レスポンスに含まれるredirect_urlをユーザーの端末で開き銀行を登録します。 ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。 @@ -8367,6 +10356,46 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' + delete: + x-pokepay-operator-name: "DeleteBank" + x-pokepay-allow-server-side: true + tags: + - BankPay + summary: 銀行口座の削除 + description: 銀行口座を削除します + parameters: + - in: path + name: user_device_id + required: true + schema: + type: string + format: uuid + title: "デバイスID" + requestBody: + required: true + content: + application/json: + schema: + required: [bank_id] + properties: + bank_id: + type: string + format: uuid + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/BankDeleted' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' /user-devices/{user_device_id}/banks/topup: post: @@ -8446,41 +10475,41 @@ paths: type: string format: uuid title: '対象クーポンのマネーID' - description: | + description: |- 対象クーポンのマネーIDです(必須項目)。 存在しないマネーIDを指定した場合はprivate_money_not_foundエラー(422)が返ります。 coupon_id: type: string title: 'クーポンID' - description: | + description: |- 指定されたクーポンIDで結果をフィルターします。 部分一致(前方一致)します。 coupon_name: type: string title: 'クーポン名' - description: | + description: |- 指定されたクーポン名で結果をフィルターします。 issued_shop_name: type: string title: '発行店舗名' - description: | + description: |- 指定された発行店舗で結果をフィルターします。 available_shop_name: type: string title: '利用可能店舗名' - description: | + description: |- 指定された利用可能店舗で結果をフィルターします。 available_from: type: string format: date-time title: '利用可能期間 (開始日時)' - description: | + description: |- 利用可能期間でフィルターします。フィルターの開始日時をISO8601形式で指定します。 available_to: type: string format: date-time title: '利用可能期間 (終了日時)' - description: | + description: |- 利用可能期間でフィルターします。フィルターの終了日時をISO8601形式で指定します。 page: type: integer @@ -8564,7 +10593,7 @@ paths: is_hidden: type: boolean title: 'クーポン一覧に掲載されるかどうか' - description: | + description: |- アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 is_public: @@ -8598,6 +10627,10 @@ paths: format: uuid title: "ストレージID" description: "Storage APIでアップロードしたクーポン画像のStorage IDを指定します" + num_recipients_cap: + type: integer + minimum: 1 + title: 'クーポンを受け取ることができるユーザ数上限' responses: '200': description: OK @@ -8709,7 +10742,7 @@ paths: is_hidden: type: boolean title: 'クーポン一覧に掲載されるかどうか' - description: | + description: |- アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 is_public: @@ -8741,6 +10774,10 @@ paths: format: uuid title: "ストレージID" description: "Storage APIでアップロードしたクーポン画像のStorage IDを指定します" + num_recipients_cap: + type: integer + minimum: 1 + title: 'クーポンを受け取ることができるユーザ数上限' responses: '200': description: OK @@ -8788,4 +10825,4 @@ paths: '404': $ref: '#/components/responses/NotFound' '422': - $ref: '#/components/responses/UnprocessableEntity' \ No newline at end of file + $ref: '#/components/responses/UnprocessableEntity' diff --git a/src/main/java/jp/pokepay/partnerapi/request/BulkCreateTransaction.java b/src/main/java/jp/pokepay/partnerapi/request/BulkCreateTransaction.java index 22cbf611..a91b93ca 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/BulkCreateTransaction.java +++ b/src/main/java/jp/pokepay/partnerapi/request/BulkCreateTransaction.java @@ -12,6 +12,7 @@ public class BulkCreateTransaction extends Request { private String content; private String requestId; private String privateMoneyId; + private String callbackUrl; public BulkCreateTransaction(String name, String content, String requestId) { this.name = name; @@ -29,6 +30,11 @@ public BulkCreateTransaction privateMoneyId(String privateMoneyId) { return this; } + public BulkCreateTransaction callbackUrl(String callbackUrl) { + this.callbackUrl = callbackUrl; + return this; + } + @Override public Method method() { return Method.POST; @@ -52,6 +58,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { if (content != null) { object.add("content", context.serialize(this.content)); } if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); } if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); } + if (callbackUrl != null) { object.add("callback_url", context.serialize(this.callbackUrl)); } return object; } } diff --git a/src/main/java/jp/pokepay/partnerapi/request/CancelBulkTransaction.java b/src/main/java/jp/pokepay/partnerapi/request/CancelBulkTransaction.java new file mode 100644 index 00000000..88f22dd1 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/CancelBulkTransaction.java @@ -0,0 +1,36 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class CancelBulkTransaction extends Request { + private String bulkTransactionId; + + public CancelBulkTransaction(String bulkTransactionId) { + this.bulkTransactionId = bulkTransactionId; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/bulk-transactions" + "/" + this.bulkTransactionId + "/cancel"; + } + + @Override + public Type getResponseClass() { + return BulkTransaction.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/CancelCvsAuthorization.java b/src/main/java/jp/pokepay/partnerapi/request/CancelCvsAuthorization.java new file mode 100644 index 00000000..ece25146 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/CancelCvsAuthorization.java @@ -0,0 +1,36 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class CancelCvsAuthorization extends Request { + private String orderId; + + public CancelCvsAuthorization(String orderId) { + this.orderId = orderId; + } + + @Override + public Method method() { + return Method.DELETE; + } + + @Override + public String path() { + return "/cvs" + "/" + this.orderId; + } + + @Override + public Type getResponseClass() { + return CvsAuthorization.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/CaptureCreditSession.java b/src/main/java/jp/pokepay/partnerapi/request/CaptureCreditSession.java new file mode 100644 index 00000000..4d4aeb80 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/CaptureCreditSession.java @@ -0,0 +1,43 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class CaptureCreditSession extends Request { + private String requestId; + private String sessionId; + + public CaptureCreditSession(String sessionId) { + this.sessionId = sessionId; + } + + public CaptureCreditSession requestId(String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/credit-sessions" + "/" + this.sessionId + "/capture"; + } + + @Override + public Type getResponseClass() { + return CapturedCreditSession.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreateBill.java b/src/main/java/jp/pokepay/partnerapi/request/CreateBill.java index ebe99345..37df8e10 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/CreateBill.java +++ b/src/main/java/jp/pokepay/partnerapi/request/CreateBill.java @@ -9,6 +9,7 @@ public class CreateBill extends Request { private Double amount; private String privateMoneyId; + private String[] additionalPrivateMoneyIds; private String shopId; private String description; @@ -22,6 +23,11 @@ public CreateBill amount(Double amount) { return this; } + public CreateBill additionalPrivateMoneyIds(String[] additionalPrivateMoneyIds) { + this.additionalPrivateMoneyIds = additionalPrivateMoneyIds; + return this; + } + public CreateBill description(String description) { this.description = description; return this; @@ -39,7 +45,7 @@ public String path() { @Override public Type getResponseClass() { - return Bill.class; + return BillWithAdditionalPrivateMoneys.class; } @Override @@ -47,6 +53,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { JsonObject object = new JsonObject(); if (amount != null) { object.add("amount", context.serialize((int)this.amount.doubleValue())); } if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); } + if (additionalPrivateMoneyIds != null) { object.add("additional_private_money_ids", context.serialize(this.additionalPrivateMoneyIds)); } if (shopId != null) { object.add("shop_id", context.serialize(this.shopId)); } if (description != null) { object.add("description", context.serialize(this.description)); } return object; diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreateCheck.java b/src/main/java/jp/pokepay/partnerapi/request/CreateCheck.java index bd9fc42c..cba9f396 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/CreateCheck.java +++ b/src/main/java/jp/pokepay/partnerapi/request/CreateCheck.java @@ -14,6 +14,7 @@ public class CreateCheck extends Request { private Boolean isOnetime; private Integer usageLimit; private String expiresAt; + private String startsAt; private String pointExpiresAt; private Integer pointExpiresInDays; private String bearPointAccount; @@ -52,6 +53,11 @@ public CreateCheck expiresAt(String expiresAt) { return this; } + public CreateCheck startsAt(String startsAt) { + this.startsAt = startsAt; + return this; + } + public CreateCheck pointExpiresAt(String pointExpiresAt) { this.pointExpiresAt = pointExpiresAt; return this; @@ -92,6 +98,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { if (isOnetime != null) { object.add("is_onetime", context.serialize(this.isOnetime)); } if (usageLimit != null) { object.add("usage_limit", context.serialize(this.usageLimit)); } if (expiresAt != null) { object.add("expires_at", context.serialize(this.expiresAt)); } + if (startsAt != null) { object.add("starts_at", context.serialize(this.startsAt)); } if (pointExpiresAt != null) { object.add("point_expires_at", context.serialize(this.pointExpiresAt)); } if (pointExpiresInDays != null) { object.add("point_expires_in_days", context.serialize(this.pointExpiresInDays)); } if (bearPointAccount != null) { object.add("bear_point_account", context.serialize(this.bearPointAccount)); } diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreateCoupon.java b/src/main/java/jp/pokepay/partnerapi/request/CreateCoupon.java index c965988e..a714acf2 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/CreateCoupon.java +++ b/src/main/java/jp/pokepay/partnerapi/request/CreateCoupon.java @@ -27,6 +27,7 @@ public class CreateCoupon extends Request { private Boolean isShopSpecified; private String[] availableShopIds; private String storageId; + private Integer numRecipientsCap; public CreateCoupon(String privateMoneyId, String name, String startsAt, String endsAt, String issuedShopId) { this.privateMoneyId = privateMoneyId; @@ -111,6 +112,11 @@ public CreateCoupon storageId(String storageId) { return this; } + public CreateCoupon numRecipientsCap(Integer numRecipientsCap) { + this.numRecipientsCap = numRecipientsCap; + return this; + } + @Override public Method method() { return Method.POST; @@ -149,6 +155,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { if (isShopSpecified != null) { object.add("is_shop_specified", context.serialize(this.isShopSpecified)); } if (availableShopIds != null) { object.add("available_shop_ids", context.serialize(this.availableShopIds)); } if (storageId != null) { object.add("storage_id", context.serialize(this.storageId)); } + if (numRecipientsCap != null) { object.add("num_recipients_cap", context.serialize(this.numRecipientsCap)); } return object; } } diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreateCreditSessionTransaction.java b/src/main/java/jp/pokepay/partnerapi/request/CreateCreditSessionTransaction.java new file mode 100644 index 00000000..c1cc814f --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/CreateCreditSessionTransaction.java @@ -0,0 +1,60 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class CreateCreditSessionTransaction extends Request { + private Double amount; + private String shopId; + private String description; + private String requestId; + private String sessionId; + + public CreateCreditSessionTransaction(String sessionId, double amount) { + this.sessionId = sessionId; + this.amount = amount; + } + + public CreateCreditSessionTransaction shopId(String shopId) { + this.shopId = shopId; + return this; + } + + public CreateCreditSessionTransaction description(String description) { + this.description = description; + return this; + } + + public CreateCreditSessionTransaction requestId(String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/credit-sessions" + "/" + this.sessionId + "/transactions"; + } + + @Override + public Type getResponseClass() { + return CreditSessionTransactionResult.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (amount != null) { object.add("amount", context.serialize((int)this.amount.doubleValue())); } + if (shopId != null) { object.add("shop_id", context.serialize(this.shopId)); } + if (description != null) { object.add("description", context.serialize(this.description)); } + if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreateCustomerCard.java b/src/main/java/jp/pokepay/partnerapi/request/CreateCustomerCard.java new file mode 100644 index 00000000..ff489e8e --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/CreateCustomerCard.java @@ -0,0 +1,46 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class CreateCustomerCard extends Request { + private String token; + private Boolean isCardholderNameSpecified; + private String customerId; + + public CreateCustomerCard(String customerId, String token) { + this.customerId = customerId; + this.token = token; + } + + public CreateCustomerCard setCardholderNameSpecified(Boolean cardholderNameSpecified) { + isCardholderNameSpecified = cardholderNameSpecified; + return this; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/customers" + "/" + this.customerId + "/cards"; + } + + @Override + public Type getResponseClass() { + return UserCard.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (token != null) { object.add("token", context.serialize(this.token)); } + if (isCardholderNameSpecified != null) { object.add("is_cardholder_name_specified", context.serialize(this.isCardholderNameSpecified)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreateCvsAuthorization.java b/src/main/java/jp/pokepay/partnerapi/request/CreateCvsAuthorization.java new file mode 100644 index 00000000..96f2f6b6 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/CreateCvsAuthorization.java @@ -0,0 +1,104 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class CreateCvsAuthorization extends Request { + private String customerId; + private String receiverUserId; + private String privateMoneyId; + private Integer amount; + private String serviceOptionType; + private String name1; + private String name2; + private String tel; + private String description; + private Integer topupQuotaId; + private String memo1; + private String memo2; + private String memo3; + private String freekey; + + public CreateCvsAuthorization(String customerId, String privateMoneyId, int amount, String serviceOptionType, String name1, String name2, String tel) { + this.customerId = customerId; + this.privateMoneyId = privateMoneyId; + this.amount = amount; + this.serviceOptionType = serviceOptionType; + this.name1 = name1; + this.name2 = name2; + this.tel = tel; + } + + public CreateCvsAuthorization receiverUserId(String receiverUserId) { + this.receiverUserId = receiverUserId; + return this; + } + + public CreateCvsAuthorization description(String description) { + this.description = description; + return this; + } + + public CreateCvsAuthorization topupQuotaId(Integer topupQuotaId) { + this.topupQuotaId = topupQuotaId; + return this; + } + + public CreateCvsAuthorization memo1(String memo1) { + this.memo1 = memo1; + return this; + } + + public CreateCvsAuthorization memo2(String memo2) { + this.memo2 = memo2; + return this; + } + + public CreateCvsAuthorization memo3(String memo3) { + this.memo3 = memo3; + return this; + } + + public CreateCvsAuthorization freekey(String freekey) { + this.freekey = freekey; + return this; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/cvs"; + } + + @Override + public Type getResponseClass() { + return CvsAuthorization.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (customerId != null) { object.add("customer_id", context.serialize(this.customerId)); } + if (receiverUserId != null) { object.add("receiver_user_id", context.serialize(this.receiverUserId)); } + if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); } + if (amount != null) { object.add("amount", context.serialize(this.amount)); } + if (serviceOptionType != null) { object.add("service_option_type", context.serialize(this.serviceOptionType)); } + if (name1 != null) { object.add("name1", context.serialize(this.name1)); } + if (name2 != null) { object.add("name2", context.serialize(this.name2)); } + if (tel != null) { object.add("tel", context.serialize(this.tel)); } + if (description != null) { object.add("description", context.serialize(this.description)); } + if (topupQuotaId != null) { object.add("topup_quota_id", context.serialize(this.topupQuotaId)); } + if (memo1 != null) { object.add("memo1", context.serialize(this.memo1)); } + if (memo2 != null) { object.add("memo2", context.serialize(this.memo2)); } + if (memo3 != null) { object.add("memo3", context.serialize(this.memo3)); } + if (freekey != null) { object.add("freekey", context.serialize(this.freekey)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransaction.java b/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransaction.java index 9bc1e218..eb87e827 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransaction.java +++ b/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransaction.java @@ -16,6 +16,7 @@ public class CreatePaymentTransaction extends Request { private Object[] products; private String requestId; private String strategy; + private String couponId; public CreatePaymentTransaction(String shopId, String customerId, String privateMoneyId, int amount) { this.shopId = shopId; @@ -49,6 +50,11 @@ public CreatePaymentTransaction strategy(String strategy) { return this; } + public CreatePaymentTransaction couponId(String couponId) { + this.couponId = couponId; + return this; + } + @Override public Method method() { return Method.POST; @@ -76,6 +82,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { if (products != null) { object.add("products", context.serialize(this.products)); } if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); } if (strategy != null) { object.add("strategy", context.serialize(this.strategy)); } + if (couponId != null) { object.add("coupon_id", context.serialize(this.couponId)); } return object; } } diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransactionWithBill.java b/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransactionWithBill.java new file mode 100644 index 00000000..9e2b79b9 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransactionWithBill.java @@ -0,0 +1,61 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class CreatePaymentTransactionWithBill extends Request { + private String billId; + private String customerId; + private String metadata; + private String requestId; + private String strategy; + + public CreatePaymentTransactionWithBill(String billId, String customerId) { + this.billId = billId; + this.customerId = customerId; + } + + public CreatePaymentTransactionWithBill metadata(String metadata) { + this.metadata = metadata; + return this; + } + + public CreatePaymentTransactionWithBill requestId(String requestId) { + this.requestId = requestId; + return this; + } + + public CreatePaymentTransactionWithBill strategy(String strategy) { + this.strategy = strategy; + return this; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/transactions" + "/payment" + "/bill"; + } + + @Override + public Type getResponseClass() { + return TransactionDetail.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (billId != null) { object.add("bill_id", context.serialize(this.billId)); } + if (customerId != null) { object.add("customer_id", context.serialize(this.customerId)); } + if (metadata != null) { object.add("metadata", context.serialize(this.metadata)); } + if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); } + if (strategy != null) { object.add("strategy", context.serialize(this.strategy)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreateTransactionGroup.java b/src/main/java/jp/pokepay/partnerapi/request/CreateTransactionGroup.java new file mode 100644 index 00000000..b7176b44 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/CreateTransactionGroup.java @@ -0,0 +1,37 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class CreateTransactionGroup extends Request { + private String name; + + public CreateTransactionGroup(String name) { + this.name = name; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/transaction-groups"; + } + + @Override + public Type getResponseClass() { + return TransactionGroup.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (name != null) { object.add("name", context.serialize(this.name)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreditCardTopupWithMdkToken.java b/src/main/java/jp/pokepay/partnerapi/request/CreditCardTopupWithMdkToken.java new file mode 100644 index 00000000..5d957a82 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/CreditCardTopupWithMdkToken.java @@ -0,0 +1,115 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class CreditCardTopupWithMdkToken extends Request { + private String token; + private String privateMoneyId; + private String receiverUserId; + private Integer amount; + private Boolean isCardholderNameSpecified; + private String description; + private String returnUrl; + private String requestId; + private Integer topupQuotaId; + private String memo1; + private String memo2; + private String memo3; + private String freekey; + private String customerId; + + public CreditCardTopupWithMdkToken(String customerId, String token, String privateMoneyId, int amount) { + this.customerId = customerId; + this.token = token; + this.privateMoneyId = privateMoneyId; + this.amount = amount; + } + + public CreditCardTopupWithMdkToken receiverUserId(String receiverUserId) { + this.receiverUserId = receiverUserId; + return this; + } + + public CreditCardTopupWithMdkToken setCardholderNameSpecified(Boolean cardholderNameSpecified) { + isCardholderNameSpecified = cardholderNameSpecified; + return this; + } + + public CreditCardTopupWithMdkToken description(String description) { + this.description = description; + return this; + } + + public CreditCardTopupWithMdkToken returnUrl(String returnUrl) { + this.returnUrl = returnUrl; + return this; + } + + public CreditCardTopupWithMdkToken requestId(String requestId) { + this.requestId = requestId; + return this; + } + + public CreditCardTopupWithMdkToken topupQuotaId(Integer topupQuotaId) { + this.topupQuotaId = topupQuotaId; + return this; + } + + public CreditCardTopupWithMdkToken memo1(String memo1) { + this.memo1 = memo1; + return this; + } + + public CreditCardTopupWithMdkToken memo2(String memo2) { + this.memo2 = memo2; + return this; + } + + public CreditCardTopupWithMdkToken memo3(String memo3) { + this.memo3 = memo3; + return this; + } + + public CreditCardTopupWithMdkToken freekey(String freekey) { + this.freekey = freekey; + return this; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/customers" + "/" + this.customerId + "/card-authorize" + "/topup-with-mdk-token"; + } + + @Override + public Type getResponseClass() { + return CardAuthorizeResult.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (token != null) { object.add("token", context.serialize(this.token)); } + if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); } + if (receiverUserId != null) { object.add("receiver_user_id", context.serialize(this.receiverUserId)); } + if (amount != null) { object.add("amount", context.serialize(this.amount)); } + if (isCardholderNameSpecified != null) { object.add("is_cardholder_name_specified", context.serialize(this.isCardholderNameSpecified)); } + if (description != null) { object.add("description", context.serialize(this.description)); } + if (returnUrl != null) { object.add("return_url", context.serialize(this.returnUrl)); } + if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); } + if (topupQuotaId != null) { object.add("topup_quota_id", context.serialize(this.topupQuotaId)); } + if (memo1 != null) { object.add("memo1", context.serialize(this.memo1)); } + if (memo2 != null) { object.add("memo2", context.serialize(this.memo2)); } + if (memo3 != null) { object.add("memo3", context.serialize(this.memo3)); } + if (freekey != null) { object.add("freekey", context.serialize(this.freekey)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreditCardTopupWithMembership.java b/src/main/java/jp/pokepay/partnerapi/request/CreditCardTopupWithMembership.java new file mode 100644 index 00000000..6441e58b --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/CreditCardTopupWithMembership.java @@ -0,0 +1,115 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class CreditCardTopupWithMembership extends Request { + private String cardUuid; + private String privateMoneyId; + private String receiverUserId; + private Integer amount; + private Boolean deleteCardIfAuthFail; + private String description; + private String returnUrl; + private String requestId; + private Integer topupQuotaId; + private String memo1; + private String memo2; + private String memo3; + private String freekey; + private String customerId; + + public CreditCardTopupWithMembership(String customerId, String cardUuid, String privateMoneyId, int amount) { + this.customerId = customerId; + this.cardUuid = cardUuid; + this.privateMoneyId = privateMoneyId; + this.amount = amount; + } + + public CreditCardTopupWithMembership receiverUserId(String receiverUserId) { + this.receiverUserId = receiverUserId; + return this; + } + + public CreditCardTopupWithMembership deleteCardIfAuthFail(Boolean deleteCardIfAuthFail) { + this.deleteCardIfAuthFail = deleteCardIfAuthFail; + return this; + } + + public CreditCardTopupWithMembership description(String description) { + this.description = description; + return this; + } + + public CreditCardTopupWithMembership returnUrl(String returnUrl) { + this.returnUrl = returnUrl; + return this; + } + + public CreditCardTopupWithMembership requestId(String requestId) { + this.requestId = requestId; + return this; + } + + public CreditCardTopupWithMembership topupQuotaId(Integer topupQuotaId) { + this.topupQuotaId = topupQuotaId; + return this; + } + + public CreditCardTopupWithMembership memo1(String memo1) { + this.memo1 = memo1; + return this; + } + + public CreditCardTopupWithMembership memo2(String memo2) { + this.memo2 = memo2; + return this; + } + + public CreditCardTopupWithMembership memo3(String memo3) { + this.memo3 = memo3; + return this; + } + + public CreditCardTopupWithMembership freekey(String freekey) { + this.freekey = freekey; + return this; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/customers" + "/" + this.customerId + "/card-authorize" + "/topup-with-membership"; + } + + @Override + public Type getResponseClass() { + return CardAuthorizeResult.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (cardUuid != null) { object.add("card_uuid", context.serialize(this.cardUuid)); } + if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); } + if (receiverUserId != null) { object.add("receiver_user_id", context.serialize(this.receiverUserId)); } + if (amount != null) { object.add("amount", context.serialize(this.amount)); } + if (deleteCardIfAuthFail != null) { object.add("delete_card_if_auth_fail", context.serialize(this.deleteCardIfAuthFail)); } + if (description != null) { object.add("description", context.serialize(this.description)); } + if (returnUrl != null) { object.add("return_url", context.serialize(this.returnUrl)); } + if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); } + if (topupQuotaId != null) { object.add("topup_quota_id", context.serialize(this.topupQuotaId)); } + if (memo1 != null) { object.add("memo1", context.serialize(this.memo1)); } + if (memo2 != null) { object.add("memo2", context.serialize(this.memo2)); } + if (memo3 != null) { object.add("memo3", context.serialize(this.memo3)); } + if (freekey != null) { object.add("freekey", context.serialize(this.freekey)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/DeleteBank.java b/src/main/java/jp/pokepay/partnerapi/request/DeleteBank.java new file mode 100644 index 00000000..cf6194b9 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/DeleteBank.java @@ -0,0 +1,39 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class DeleteBank extends Request { + private String bankId; + private String userDeviceId; + + public DeleteBank(String userDeviceId, String bankId) { + this.userDeviceId = userDeviceId; + this.bankId = bankId; + } + + @Override + public Method method() { + return Method.DELETE; + } + + @Override + public String path() { + return "/user-devices" + "/" + this.userDeviceId + "/banks"; + } + + @Override + public Type getResponseClass() { + return BankDeleted.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (bankId != null) { object.add("bank_id", context.serialize(this.bankId)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/DeleteCustomerCard.java b/src/main/java/jp/pokepay/partnerapi/request/DeleteCustomerCard.java new file mode 100644 index 00000000..f2213f53 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/DeleteCustomerCard.java @@ -0,0 +1,39 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class DeleteCustomerCard extends Request { + private String cardUuid; + private String customerId; + + public DeleteCustomerCard(String customerId, String cardUuid) { + this.customerId = customerId; + this.cardUuid = cardUuid; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/customers" + "/" + this.customerId + "/cards" + "/delete"; + } + + @Override + public Type getResponseClass() { + return CustomerCardDeleted.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (cardUuid != null) { object.add("card_uuid", context.serialize(this.cardUuid)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/GetBill.java b/src/main/java/jp/pokepay/partnerapi/request/GetBill.java new file mode 100644 index 00000000..d08621d5 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/GetBill.java @@ -0,0 +1,36 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class GetBill extends Request { + private String billId; + + public GetBill(String billId) { + this.billId = billId; + } + + @Override + public Method method() { + return Method.GET; + } + + @Override + public String path() { + return "/bills" + "/" + this.billId; + } + + @Override + public Type getResponseClass() { + return BillWithAdditionalPrivateMoneys.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/GetCustomerCards.java b/src/main/java/jp/pokepay/partnerapi/request/GetCustomerCards.java new file mode 100644 index 00000000..2153a2c0 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/GetCustomerCards.java @@ -0,0 +1,50 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class GetCustomerCards extends Request { + private Integer page; + private Integer perPage; + private String customerId; + + public GetCustomerCards(String customerId) { + this.customerId = customerId; + } + + public GetCustomerCards page(Integer page) { + this.page = page; + return this; + } + + public GetCustomerCards perPage(Integer perPage) { + this.perPage = perPage; + return this; + } + + @Override + public Method method() { + return Method.GET; + } + + @Override + public String path() { + return "/customers" + "/" + this.customerId + "/cards"; + } + + @Override + public Type getResponseClass() { + return PaginatedUserCards.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (page != null) { object.add("page", context.serialize(this.page)); } + if (perPage != null) { object.add("per_page", context.serialize(this.perPage)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/GetCvsAuthorization.java b/src/main/java/jp/pokepay/partnerapi/request/GetCvsAuthorization.java new file mode 100644 index 00000000..9b47e67a --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/GetCvsAuthorization.java @@ -0,0 +1,36 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class GetCvsAuthorization extends Request { + private String orderId; + + public GetCvsAuthorization(String orderId) { + this.orderId = orderId; + } + + @Override + public Method method() { + return Method.GET; + } + + @Override + public String path() { + return "/cvs" + "/" + this.orderId; + } + + @Override + public Type getResponseClass() { + return CvsAuthorization.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/GetCvsAuthorizations.java b/src/main/java/jp/pokepay/partnerapi/request/GetCvsAuthorizations.java new file mode 100644 index 00000000..629b01e6 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/GetCvsAuthorizations.java @@ -0,0 +1,72 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class GetCvsAuthorizations extends Request { + private String privateMoneyId; + private String customerId; + private String status; + private String before; + private String after; + private Integer perPage; + + public GetCvsAuthorizations(String privateMoneyId) { + this.privateMoneyId = privateMoneyId; + } + + public GetCvsAuthorizations customerId(String customerId) { + this.customerId = customerId; + return this; + } + + public GetCvsAuthorizations status(String status) { + this.status = status; + return this; + } + + public GetCvsAuthorizations before(String before) { + this.before = before; + return this; + } + + public GetCvsAuthorizations after(String after) { + this.after = after; + return this; + } + + public GetCvsAuthorizations perPage(Integer perPage) { + this.perPage = perPage; + return this; + } + + @Override + public Method method() { + return Method.GET; + } + + @Override + public String path() { + return "/cvs"; + } + + @Override + public Type getResponseClass() { + return PaginatedCvsAuthorizations.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); } + if (customerId != null) { object.add("customer_id", context.serialize(this.customerId)); } + if (status != null) { object.add("status", context.serialize(this.status)); } + if (before != null) { object.add("before", context.serialize(this.before)); } + if (after != null) { object.add("after", context.serialize(this.after)); } + if (perPage != null) { object.add("per_page", context.serialize(this.perPage)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/ListBillTransactions.java b/src/main/java/jp/pokepay/partnerapi/request/ListBillTransactions.java new file mode 100644 index 00000000..dd030572 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/ListBillTransactions.java @@ -0,0 +1,139 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class ListBillTransactions extends Request { + private String privateMoneyId; + private String organizationCode; + private String shopId; + private String customerId; + private String customerName; + private String terminalId; + private String description; + private String transactionId; + private String billId; + private Boolean isModified; + private String from; + private String to; + private String nextPageCursorId; + private String prevPageCursorId; + private Integer perPage; + + public ListBillTransactions() { + } + + public ListBillTransactions privateMoneyId(String privateMoneyId) { + this.privateMoneyId = privateMoneyId; + return this; + } + + public ListBillTransactions organizationCode(String organizationCode) { + this.organizationCode = organizationCode; + return this; + } + + public ListBillTransactions shopId(String shopId) { + this.shopId = shopId; + return this; + } + + public ListBillTransactions customerId(String customerId) { + this.customerId = customerId; + return this; + } + + public ListBillTransactions customerName(String customerName) { + this.customerName = customerName; + return this; + } + + public ListBillTransactions terminalId(String terminalId) { + this.terminalId = terminalId; + return this; + } + + public ListBillTransactions description(String description) { + this.description = description; + return this; + } + + public ListBillTransactions transactionId(String transactionId) { + this.transactionId = transactionId; + return this; + } + + public ListBillTransactions billId(String billId) { + this.billId = billId; + return this; + } + + public ListBillTransactions setModified(Boolean modified) { + isModified = modified; + return this; + } + + public ListBillTransactions from(String from) { + this.from = from; + return this; + } + + public ListBillTransactions to(String to) { + this.to = to; + return this; + } + + public ListBillTransactions nextPageCursorId(String nextPageCursorId) { + this.nextPageCursorId = nextPageCursorId; + return this; + } + + public ListBillTransactions prevPageCursorId(String prevPageCursorId) { + this.prevPageCursorId = prevPageCursorId; + return this; + } + + public ListBillTransactions perPage(Integer perPage) { + this.perPage = perPage; + return this; + } + + @Override + public Method method() { + return Method.GET; + } + + @Override + public String path() { + return "/transactions" + "/bill"; + } + + @Override + public Type getResponseClass() { + return PaginatedBillTransaction.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); } + if (organizationCode != null) { object.add("organization_code", context.serialize(this.organizationCode)); } + if (shopId != null) { object.add("shop_id", context.serialize(this.shopId)); } + if (customerId != null) { object.add("customer_id", context.serialize(this.customerId)); } + if (customerName != null) { object.add("customer_name", context.serialize(this.customerName)); } + if (terminalId != null) { object.add("terminal_id", context.serialize(this.terminalId)); } + if (description != null) { object.add("description", context.serialize(this.description)); } + if (transactionId != null) { object.add("transaction_id", context.serialize(this.transactionId)); } + if (billId != null) { object.add("bill_id", context.serialize(this.billId)); } + if (isModified != null) { object.add("is_modified", context.serialize(this.isModified)); } + if (from != null) { object.add("from", context.serialize(this.from)); } + if (to != null) { object.add("to", context.serialize(this.to)); } + if (nextPageCursorId != null) { object.add("next_page_cursor_id", context.serialize(this.nextPageCursorId)); } + if (prevPageCursorId != null) { object.add("prev_page_cursor_id", context.serialize(this.prevPageCursorId)); } + if (perPage != null) { object.add("per_page", context.serialize(this.perPage)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/ListChecks.java b/src/main/java/jp/pokepay/partnerapi/request/ListChecks.java index 7f5618b5..72c6a7e6 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/ListChecks.java +++ b/src/main/java/jp/pokepay/partnerapi/request/ListChecks.java @@ -13,6 +13,8 @@ public class ListChecks extends Request { private String organizationCode; private String expiresFrom; private String expiresTo; + private String startsFrom; + private String startsTo; private String createdFrom; private String createdTo; private String issuerShopId; @@ -53,6 +55,16 @@ public ListChecks expiresTo(String expiresTo) { return this; } + public ListChecks startsFrom(String startsFrom) { + this.startsFrom = startsFrom; + return this; + } + + public ListChecks startsTo(String startsTo) { + this.startsTo = startsTo; + return this; + } + public ListChecks createdFrom(String createdFrom) { this.createdFrom = createdFrom; return this; @@ -107,6 +119,8 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { if (organizationCode != null) { object.add("organization_code", context.serialize(this.organizationCode)); } if (expiresFrom != null) { object.add("expires_from", context.serialize(this.expiresFrom)); } if (expiresTo != null) { object.add("expires_to", context.serialize(this.expiresTo)); } + if (startsFrom != null) { object.add("starts_from", context.serialize(this.startsFrom)); } + if (startsTo != null) { object.add("starts_to", context.serialize(this.startsTo)); } if (createdFrom != null) { object.add("created_from", context.serialize(this.createdFrom)); } if (createdTo != null) { object.add("created_to", context.serialize(this.createdTo)); } if (issuerShopId != null) { object.add("issuer_shop_id", context.serialize(this.issuerShopId)); } diff --git a/src/main/java/jp/pokepay/partnerapi/request/PostCreditSession.java b/src/main/java/jp/pokepay/partnerapi/request/PostCreditSession.java new file mode 100644 index 00000000..bce832bb --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/PostCreditSession.java @@ -0,0 +1,53 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class PostCreditSession extends Request { + private String customerId; + private String privateMoneyId; + private String cardId; + private String expiresAt; + private String requestId; + + public PostCreditSession(String customerId, String privateMoneyId, String cardId, String expiresAt) { + this.customerId = customerId; + this.privateMoneyId = privateMoneyId; + this.cardId = cardId; + this.expiresAt = expiresAt; + } + + public PostCreditSession requestId(String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/credit-sessions"; + } + + @Override + public Type getResponseClass() { + return CreditSession.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (customerId != null) { object.add("customer_id", context.serialize(this.customerId)); } + if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); } + if (cardId != null) { object.add("card_id", context.serialize(this.cardId)); } + if (expiresAt != null) { object.add("expires_at", context.serialize(this.expiresAt)); } + if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/ResumeBulkTransaction.java b/src/main/java/jp/pokepay/partnerapi/request/ResumeBulkTransaction.java new file mode 100644 index 00000000..fa5052f1 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/ResumeBulkTransaction.java @@ -0,0 +1,36 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class ResumeBulkTransaction extends Request { + private String bulkTransactionId; + + public ResumeBulkTransaction(String bulkTransactionId) { + this.bulkTransactionId = bulkTransactionId; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/bulk-transactions" + "/" + this.bulkTransactionId + "/resume"; + } + + @Override + public Type getResponseClass() { + return BulkTransaction.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/ShowTransactionGroup.java b/src/main/java/jp/pokepay/partnerapi/request/ShowTransactionGroup.java new file mode 100644 index 00000000..461e57f6 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/ShowTransactionGroup.java @@ -0,0 +1,36 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class ShowTransactionGroup extends Request { + private String uuid; + + public ShowTransactionGroup(String uuid) { + this.uuid = uuid; + } + + @Override + public Method method() { + return Method.GET; + } + + @Override + public String path() { + return "/transaction-groups" + "/" + this.uuid; + } + + @Override + public Type getResponseClass() { + return TransactionGroup.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/TerminateUserStats.java b/src/main/java/jp/pokepay/partnerapi/request/TerminateUserStats.java new file mode 100644 index 00000000..9c07769b --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/TerminateUserStats.java @@ -0,0 +1,37 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class TerminateUserStats extends Request { + private String operationId; + + public TerminateUserStats(String operationId) { + this.operationId = operationId; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/user-stats" + "/terminate"; + } + + @Override + public Type getResponseClass() { + return UserStatsOperation.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (operationId != null) { object.add("operation_id", context.serialize(this.operationId)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/UpdateBill.java b/src/main/java/jp/pokepay/partnerapi/request/UpdateBill.java index 9cb83038..ec21e217 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/UpdateBill.java +++ b/src/main/java/jp/pokepay/partnerapi/request/UpdateBill.java @@ -10,6 +10,7 @@ public class UpdateBill extends Request { private Double amount; private String description; private Boolean isDisabled; + private String[] additionalPrivateMoneyIds; private String billId; public UpdateBill(String billId) { @@ -31,6 +32,11 @@ public UpdateBill setDisabled(Boolean disabled) { return this; } + public UpdateBill additionalPrivateMoneyIds(String[] additionalPrivateMoneyIds) { + this.additionalPrivateMoneyIds = additionalPrivateMoneyIds; + return this; + } + @Override public Method method() { return Method.PATCH; @@ -43,7 +49,7 @@ public String path() { @Override public Type getResponseClass() { - return Bill.class; + return BillWithAdditionalPrivateMoneys.class; } @Override @@ -52,6 +58,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { if (amount != null) { object.add("amount", context.serialize((int)this.amount.doubleValue())); } if (description != null) { object.add("description", context.serialize(this.description)); } if (isDisabled != null) { object.add("is_disabled", context.serialize(this.isDisabled)); } + if (additionalPrivateMoneyIds != null) { object.add("additional_private_money_ids", context.serialize(this.additionalPrivateMoneyIds)); } return object; } } diff --git a/src/main/java/jp/pokepay/partnerapi/request/UpdateCheck.java b/src/main/java/jp/pokepay/partnerapi/request/UpdateCheck.java index 4a717db6..92872a15 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/UpdateCheck.java +++ b/src/main/java/jp/pokepay/partnerapi/request/UpdateCheck.java @@ -13,6 +13,7 @@ public class UpdateCheck extends Request { private Boolean isOnetime; private Integer usageLimit; private String expiresAt; + private String startsAt; private String pointExpiresAt; private Integer pointExpiresInDays; private String bearPointAccount; @@ -53,6 +54,11 @@ public UpdateCheck expiresAt(String expiresAt) { return this; } + public UpdateCheck startsAt(String startsAt) { + this.startsAt = startsAt; + return this; + } + public UpdateCheck pointExpiresAt(String pointExpiresAt) { this.pointExpiresAt = pointExpiresAt; return this; @@ -97,6 +103,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { if (isOnetime != null) { object.add("is_onetime", context.serialize(this.isOnetime)); } if (usageLimit != null) { object.add("usage_limit", context.serialize(this.usageLimit)); } if (expiresAt != null) { object.add("expires_at", context.serialize(this.expiresAt)); } + if (startsAt != null) { object.add("starts_at", context.serialize(this.startsAt)); } if (pointExpiresAt != null) { object.add("point_expires_at", context.serialize(this.pointExpiresAt)); } if (pointExpiresInDays != null) { object.add("point_expires_in_days", context.serialize(this.pointExpiresInDays)); } if (bearPointAccount != null) { object.add("bear_point_account", context.serialize(this.bearPointAccount)); } diff --git a/src/main/java/jp/pokepay/partnerapi/request/UpdateCoupon.java b/src/main/java/jp/pokepay/partnerapi/request/UpdateCoupon.java index 1836afd8..177759e4 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/UpdateCoupon.java +++ b/src/main/java/jp/pokepay/partnerapi/request/UpdateCoupon.java @@ -25,6 +25,7 @@ public class UpdateCoupon extends Request { private Boolean isShopSpecified; private String[] availableShopIds; private String storageId; + private Integer numRecipientsCap; private String couponId; public UpdateCoupon(String couponId) { @@ -121,6 +122,11 @@ public UpdateCoupon storageId(String storageId) { return this; } + public UpdateCoupon numRecipientsCap(Integer numRecipientsCap) { + this.numRecipientsCap = numRecipientsCap; + return this; + } + @Override public Method method() { return Method.PATCH; @@ -157,6 +163,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { if (isShopSpecified != null) { object.add("is_shop_specified", context.serialize(this.isShopSpecified)); } if (availableShopIds != null) { object.add("available_shop_ids", context.serialize(this.availableShopIds)); } if (storageId != null) { object.add("storage_id", context.serialize(this.storageId)); } + if (numRecipientsCap != null) { object.add("num_recipients_cap", context.serialize(this.numRecipientsCap)); } return object; } } diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CancelBulkTransactionSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CancelBulkTransactionSerializer.java new file mode 100644 index 00000000..3dfb8fec --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CancelBulkTransactionSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.CancelBulkTransaction; + +import java.lang.reflect.Type; + +public class CancelBulkTransactionSerializer implements JsonSerializer { + @Override + public JsonElement serialize(CancelBulkTransaction src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CancelCvsAuthorizationSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CancelCvsAuthorizationSerializer.java new file mode 100644 index 00000000..be001d95 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CancelCvsAuthorizationSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.CancelCvsAuthorization; + +import java.lang.reflect.Type; + +public class CancelCvsAuthorizationSerializer implements JsonSerializer { + @Override + public JsonElement serialize(CancelCvsAuthorization src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CaptureCreditSessionSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CaptureCreditSessionSerializer.java new file mode 100644 index 00000000..6779f294 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CaptureCreditSessionSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.CaptureCreditSession; + +import java.lang.reflect.Type; + +public class CaptureCreditSessionSerializer implements JsonSerializer { + @Override + public JsonElement serialize(CaptureCreditSession src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCreditSessionTransactionSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCreditSessionTransactionSerializer.java new file mode 100644 index 00000000..7a104c8c --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCreditSessionTransactionSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.CreateCreditSessionTransaction; + +import java.lang.reflect.Type; + +public class CreateCreditSessionTransactionSerializer implements JsonSerializer { + @Override + public JsonElement serialize(CreateCreditSessionTransaction src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCustomerCardSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCustomerCardSerializer.java new file mode 100644 index 00000000..057a5f5e --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCustomerCardSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.CreateCustomerCard; + +import java.lang.reflect.Type; + +public class CreateCustomerCardSerializer implements JsonSerializer { + @Override + public JsonElement serialize(CreateCustomerCard src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCvsAuthorizationSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCvsAuthorizationSerializer.java new file mode 100644 index 00000000..cd710e10 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCvsAuthorizationSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.CreateCvsAuthorization; + +import java.lang.reflect.Type; + +public class CreateCvsAuthorizationSerializer implements JsonSerializer { + @Override + public JsonElement serialize(CreateCvsAuthorization src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CreatePaymentTransactionWithBillSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreatePaymentTransactionWithBillSerializer.java new file mode 100644 index 00000000..2bbdbd77 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreatePaymentTransactionWithBillSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.CreatePaymentTransactionWithBill; + +import java.lang.reflect.Type; + +public class CreatePaymentTransactionWithBillSerializer implements JsonSerializer { + @Override + public JsonElement serialize(CreatePaymentTransactionWithBill src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateTransactionGroupSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateTransactionGroupSerializer.java new file mode 100644 index 00000000..5deec7f8 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateTransactionGroupSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.CreateTransactionGroup; + +import java.lang.reflect.Type; + +public class CreateTransactionGroupSerializer implements JsonSerializer { + @Override + public JsonElement serialize(CreateTransactionGroup src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CreditCardTopupWithMdkTokenSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreditCardTopupWithMdkTokenSerializer.java new file mode 100644 index 00000000..f0f226cf --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreditCardTopupWithMdkTokenSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.CreditCardTopupWithMdkToken; + +import java.lang.reflect.Type; + +public class CreditCardTopupWithMdkTokenSerializer implements JsonSerializer { + @Override + public JsonElement serialize(CreditCardTopupWithMdkToken src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CreditCardTopupWithMembershipSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreditCardTopupWithMembershipSerializer.java new file mode 100644 index 00000000..282c4fef --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreditCardTopupWithMembershipSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.CreditCardTopupWithMembership; + +import java.lang.reflect.Type; + +public class CreditCardTopupWithMembershipSerializer implements JsonSerializer { + @Override + public JsonElement serialize(CreditCardTopupWithMembership src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteBankSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteBankSerializer.java new file mode 100644 index 00000000..6fcf7b75 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteBankSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.DeleteBank; + +import java.lang.reflect.Type; + +public class DeleteBankSerializer implements JsonSerializer { + @Override + public JsonElement serialize(DeleteBank src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteCustomerCardSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteCustomerCardSerializer.java new file mode 100644 index 00000000..20f9158d --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteCustomerCardSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.DeleteCustomerCard; + +import java.lang.reflect.Type; + +public class DeleteCustomerCardSerializer implements JsonSerializer { + @Override + public JsonElement serialize(DeleteCustomerCard src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/GetBillSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetBillSerializer.java new file mode 100644 index 00000000..9e229f50 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetBillSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.GetBill; + +import java.lang.reflect.Type; + +public class GetBillSerializer implements JsonSerializer { + @Override + public JsonElement serialize(GetBill src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/GetCustomerCardsSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetCustomerCardsSerializer.java new file mode 100644 index 00000000..b3dd0ea9 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetCustomerCardsSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.GetCustomerCards; + +import java.lang.reflect.Type; + +public class GetCustomerCardsSerializer implements JsonSerializer { + @Override + public JsonElement serialize(GetCustomerCards src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/GetCvsAuthorizationSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetCvsAuthorizationSerializer.java new file mode 100644 index 00000000..15256c06 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetCvsAuthorizationSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.GetCvsAuthorization; + +import java.lang.reflect.Type; + +public class GetCvsAuthorizationSerializer implements JsonSerializer { + @Override + public JsonElement serialize(GetCvsAuthorization src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/GetCvsAuthorizationsSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetCvsAuthorizationsSerializer.java new file mode 100644 index 00000000..98b89f57 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetCvsAuthorizationsSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.GetCvsAuthorizations; + +import java.lang.reflect.Type; + +public class GetCvsAuthorizationsSerializer implements JsonSerializer { + @Override + public JsonElement serialize(GetCvsAuthorizations src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/ListBillTransactionsSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/ListBillTransactionsSerializer.java new file mode 100644 index 00000000..a52e27b9 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/ListBillTransactionsSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.ListBillTransactions; + +import java.lang.reflect.Type; + +public class ListBillTransactionsSerializer implements JsonSerializer { + @Override + public JsonElement serialize(ListBillTransactions src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/PostCreditSessionSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/PostCreditSessionSerializer.java new file mode 100644 index 00000000..659ef57b --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/PostCreditSessionSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.PostCreditSession; + +import java.lang.reflect.Type; + +public class PostCreditSessionSerializer implements JsonSerializer { + @Override + public JsonElement serialize(PostCreditSession src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/ResumeBulkTransactionSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/ResumeBulkTransactionSerializer.java new file mode 100644 index 00000000..77772090 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/ResumeBulkTransactionSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.ResumeBulkTransaction; + +import java.lang.reflect.Type; + +public class ResumeBulkTransactionSerializer implements JsonSerializer { + @Override + public JsonElement serialize(ResumeBulkTransaction src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java index 8c05830c..fc513a30 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java @@ -5,6 +5,9 @@ import com.google.gson.GsonBuilder; import jp.pokepay.partnerapi.request.GetPing; import jp.pokepay.partnerapi.request.SendEcho; +import jp.pokepay.partnerapi.request.PostCreditSession; +import jp.pokepay.partnerapi.request.CreateCreditSessionTransaction; +import jp.pokepay.partnerapi.request.CaptureCreditSession; import jp.pokepay.partnerapi.request.GetUser; import jp.pokepay.partnerapi.request.ListUserAccounts; import jp.pokepay.partnerapi.request.CreateUserAccount; @@ -20,18 +23,27 @@ import jp.pokepay.partnerapi.request.GetShopAccounts; import jp.pokepay.partnerapi.request.ListBills; import jp.pokepay.partnerapi.request.CreateBill; +import jp.pokepay.partnerapi.request.GetBill; import jp.pokepay.partnerapi.request.UpdateBill; import jp.pokepay.partnerapi.request.ListChecks; import jp.pokepay.partnerapi.request.CreateCheck; import jp.pokepay.partnerapi.request.GetCheck; import jp.pokepay.partnerapi.request.UpdateCheck; import jp.pokepay.partnerapi.request.GetCpmToken; +import jp.pokepay.partnerapi.request.GetCvsAuthorizations; +import jp.pokepay.partnerapi.request.CreateCvsAuthorization; +import jp.pokepay.partnerapi.request.CancelCvsAuthorization; +import jp.pokepay.partnerapi.request.GetCvsAuthorization; import jp.pokepay.partnerapi.request.ListTransactions; import jp.pokepay.partnerapi.request.CreateTransaction; +import jp.pokepay.partnerapi.request.CreateTransactionGroup; +import jp.pokepay.partnerapi.request.ShowTransactionGroup; import jp.pokepay.partnerapi.request.ListTransactionsV2; +import jp.pokepay.partnerapi.request.ListBillTransactions; import jp.pokepay.partnerapi.request.CreateTopupTransaction; import jp.pokepay.partnerapi.request.CreateTopupTransactionWithCheck; import jp.pokepay.partnerapi.request.CreatePaymentTransaction; +import jp.pokepay.partnerapi.request.CreatePaymentTransactionWithBill; import jp.pokepay.partnerapi.request.CreateCpmTransaction; import jp.pokepay.partnerapi.request.CreateTransactionWithCashtray; import jp.pokepay.partnerapi.request.CreateTransferTransaction; @@ -55,9 +67,16 @@ import jp.pokepay.partnerapi.request.GetPrivateMoneys; import jp.pokepay.partnerapi.request.GetPrivateMoneyOrganizationSummaries; import jp.pokepay.partnerapi.request.GetPrivateMoneySummary; +import jp.pokepay.partnerapi.request.GetCustomerCards; +import jp.pokepay.partnerapi.request.CreateCustomerCard; +import jp.pokepay.partnerapi.request.DeleteCustomerCard; +import jp.pokepay.partnerapi.request.CreditCardTopupWithMembership; +import jp.pokepay.partnerapi.request.CreditCardTopupWithMdkToken; import jp.pokepay.partnerapi.request.ListCustomerTransactions; import jp.pokepay.partnerapi.request.GetBulkTransaction; import jp.pokepay.partnerapi.request.ListBulkTransactionJobs; +import jp.pokepay.partnerapi.request.CancelBulkTransaction; +import jp.pokepay.partnerapi.request.ResumeBulkTransaction; import jp.pokepay.partnerapi.request.CreateCashtray; import jp.pokepay.partnerapi.request.CancelCashtray; import jp.pokepay.partnerapi.request.GetCashtray; @@ -67,6 +86,7 @@ import jp.pokepay.partnerapi.request.GetCampaign; import jp.pokepay.partnerapi.request.UpdateCampaign; import jp.pokepay.partnerapi.request.RequestUserStats; +import jp.pokepay.partnerapi.request.TerminateUserStats; import jp.pokepay.partnerapi.request.ListWebhooks; import jp.pokepay.partnerapi.request.CreateWebhook; import jp.pokepay.partnerapi.request.DeleteWebhook; @@ -74,6 +94,7 @@ import jp.pokepay.partnerapi.request.CreateUserDevice; import jp.pokepay.partnerapi.request.GetUserDevice; import jp.pokepay.partnerapi.request.ActivateUserDevice; +import jp.pokepay.partnerapi.request.DeleteBank; import jp.pokepay.partnerapi.request.ListBanks; import jp.pokepay.partnerapi.request.CreateBank; import jp.pokepay.partnerapi.request.CreateBankTopupTransaction; @@ -87,6 +108,9 @@ public class SerializerHelper { public static void registerTypeAdapters(GsonBuilder gsonBuilder) { gsonBuilder.registerTypeAdapter(GetPing.class, new GetPingSerializer()); gsonBuilder.registerTypeAdapter(SendEcho.class, new SendEchoSerializer()); + gsonBuilder.registerTypeAdapter(PostCreditSession.class, new PostCreditSessionSerializer()); + gsonBuilder.registerTypeAdapter(CreateCreditSessionTransaction.class, new CreateCreditSessionTransactionSerializer()); + gsonBuilder.registerTypeAdapter(CaptureCreditSession.class, new CaptureCreditSessionSerializer()); gsonBuilder.registerTypeAdapter(GetUser.class, new GetUserSerializer()); gsonBuilder.registerTypeAdapter(ListUserAccounts.class, new ListUserAccountsSerializer()); gsonBuilder.registerTypeAdapter(CreateUserAccount.class, new CreateUserAccountSerializer()); @@ -102,18 +126,27 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) { gsonBuilder.registerTypeAdapter(GetShopAccounts.class, new GetShopAccountsSerializer()); gsonBuilder.registerTypeAdapter(ListBills.class, new ListBillsSerializer()); gsonBuilder.registerTypeAdapter(CreateBill.class, new CreateBillSerializer()); + gsonBuilder.registerTypeAdapter(GetBill.class, new GetBillSerializer()); gsonBuilder.registerTypeAdapter(UpdateBill.class, new UpdateBillSerializer()); gsonBuilder.registerTypeAdapter(ListChecks.class, new ListChecksSerializer()); gsonBuilder.registerTypeAdapter(CreateCheck.class, new CreateCheckSerializer()); gsonBuilder.registerTypeAdapter(GetCheck.class, new GetCheckSerializer()); gsonBuilder.registerTypeAdapter(UpdateCheck.class, new UpdateCheckSerializer()); gsonBuilder.registerTypeAdapter(GetCpmToken.class, new GetCpmTokenSerializer()); + gsonBuilder.registerTypeAdapter(GetCvsAuthorizations.class, new GetCvsAuthorizationsSerializer()); + gsonBuilder.registerTypeAdapter(CreateCvsAuthorization.class, new CreateCvsAuthorizationSerializer()); + gsonBuilder.registerTypeAdapter(CancelCvsAuthorization.class, new CancelCvsAuthorizationSerializer()); + gsonBuilder.registerTypeAdapter(GetCvsAuthorization.class, new GetCvsAuthorizationSerializer()); gsonBuilder.registerTypeAdapter(ListTransactions.class, new ListTransactionsSerializer()); gsonBuilder.registerTypeAdapter(CreateTransaction.class, new CreateTransactionSerializer()); + gsonBuilder.registerTypeAdapter(CreateTransactionGroup.class, new CreateTransactionGroupSerializer()); + gsonBuilder.registerTypeAdapter(ShowTransactionGroup.class, new ShowTransactionGroupSerializer()); gsonBuilder.registerTypeAdapter(ListTransactionsV2.class, new ListTransactionsV2Serializer()); + gsonBuilder.registerTypeAdapter(ListBillTransactions.class, new ListBillTransactionsSerializer()); gsonBuilder.registerTypeAdapter(CreateTopupTransaction.class, new CreateTopupTransactionSerializer()); gsonBuilder.registerTypeAdapter(CreateTopupTransactionWithCheck.class, new CreateTopupTransactionWithCheckSerializer()); gsonBuilder.registerTypeAdapter(CreatePaymentTransaction.class, new CreatePaymentTransactionSerializer()); + gsonBuilder.registerTypeAdapter(CreatePaymentTransactionWithBill.class, new CreatePaymentTransactionWithBillSerializer()); gsonBuilder.registerTypeAdapter(CreateCpmTransaction.class, new CreateCpmTransactionSerializer()); gsonBuilder.registerTypeAdapter(CreateTransactionWithCashtray.class, new CreateTransactionWithCashtraySerializer()); gsonBuilder.registerTypeAdapter(CreateTransferTransaction.class, new CreateTransferTransactionSerializer()); @@ -137,9 +170,16 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) { gsonBuilder.registerTypeAdapter(GetPrivateMoneys.class, new GetPrivateMoneysSerializer()); gsonBuilder.registerTypeAdapter(GetPrivateMoneyOrganizationSummaries.class, new GetPrivateMoneyOrganizationSummariesSerializer()); gsonBuilder.registerTypeAdapter(GetPrivateMoneySummary.class, new GetPrivateMoneySummarySerializer()); + gsonBuilder.registerTypeAdapter(GetCustomerCards.class, new GetCustomerCardsSerializer()); + gsonBuilder.registerTypeAdapter(CreateCustomerCard.class, new CreateCustomerCardSerializer()); + gsonBuilder.registerTypeAdapter(DeleteCustomerCard.class, new DeleteCustomerCardSerializer()); + gsonBuilder.registerTypeAdapter(CreditCardTopupWithMembership.class, new CreditCardTopupWithMembershipSerializer()); + gsonBuilder.registerTypeAdapter(CreditCardTopupWithMdkToken.class, new CreditCardTopupWithMdkTokenSerializer()); gsonBuilder.registerTypeAdapter(ListCustomerTransactions.class, new ListCustomerTransactionsSerializer()); gsonBuilder.registerTypeAdapter(GetBulkTransaction.class, new GetBulkTransactionSerializer()); gsonBuilder.registerTypeAdapter(ListBulkTransactionJobs.class, new ListBulkTransactionJobsSerializer()); + gsonBuilder.registerTypeAdapter(CancelBulkTransaction.class, new CancelBulkTransactionSerializer()); + gsonBuilder.registerTypeAdapter(ResumeBulkTransaction.class, new ResumeBulkTransactionSerializer()); gsonBuilder.registerTypeAdapter(CreateCashtray.class, new CreateCashtraySerializer()); gsonBuilder.registerTypeAdapter(CancelCashtray.class, new CancelCashtraySerializer()); gsonBuilder.registerTypeAdapter(GetCashtray.class, new GetCashtraySerializer()); @@ -149,6 +189,7 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) { gsonBuilder.registerTypeAdapter(GetCampaign.class, new GetCampaignSerializer()); gsonBuilder.registerTypeAdapter(UpdateCampaign.class, new UpdateCampaignSerializer()); gsonBuilder.registerTypeAdapter(RequestUserStats.class, new RequestUserStatsSerializer()); + gsonBuilder.registerTypeAdapter(TerminateUserStats.class, new TerminateUserStatsSerializer()); gsonBuilder.registerTypeAdapter(ListWebhooks.class, new ListWebhooksSerializer()); gsonBuilder.registerTypeAdapter(CreateWebhook.class, new CreateWebhookSerializer()); gsonBuilder.registerTypeAdapter(DeleteWebhook.class, new DeleteWebhookSerializer()); @@ -156,6 +197,7 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) { gsonBuilder.registerTypeAdapter(CreateUserDevice.class, new CreateUserDeviceSerializer()); gsonBuilder.registerTypeAdapter(GetUserDevice.class, new GetUserDeviceSerializer()); gsonBuilder.registerTypeAdapter(ActivateUserDevice.class, new ActivateUserDeviceSerializer()); + gsonBuilder.registerTypeAdapter(DeleteBank.class, new DeleteBankSerializer()); gsonBuilder.registerTypeAdapter(ListBanks.class, new ListBanksSerializer()); gsonBuilder.registerTypeAdapter(CreateBank.class, new CreateBankSerializer()); gsonBuilder.registerTypeAdapter(CreateBankTopupTransaction.class, new CreateBankTopupTransactionSerializer()); diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/ShowTransactionGroupSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/ShowTransactionGroupSerializer.java new file mode 100644 index 00000000..94ef92c2 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/ShowTransactionGroupSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.ShowTransactionGroup; + +import java.lang.reflect.Type; + +public class ShowTransactionGroupSerializer implements JsonSerializer { + @Override + public JsonElement serialize(ShowTransactionGroup src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/TerminateUserStatsSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/TerminateUserStatsSerializer.java new file mode 100644 index 00000000..e9fae8b1 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/TerminateUserStatsSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.TerminateUserStats; + +import java.lang.reflect.Type; + +public class TerminateUserStatsSerializer implements JsonSerializer { + @Override + public JsonElement serialize(TerminateUserStats src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/response/BankDeleted.java b/src/main/java/jp/pokepay/partnerapi/response/BankDeleted.java new file mode 100644 index 00000000..163da620 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/BankDeleted.java @@ -0,0 +1,6 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class BankDeleted extends Response { +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/Bill.java b/src/main/java/jp/pokepay/partnerapi/response/Bill.java index fd0c85ec..f460db5e 100644 --- a/src/main/java/jp/pokepay/partnerapi/response/Bill.java +++ b/src/main/java/jp/pokepay/partnerapi/response/Bill.java @@ -10,6 +10,7 @@ public class Bill extends Response { private AccountWithUser account; private Boolean isDisabled; private String token; + private String createdAt; public String getId() { return id; @@ -42,5 +43,9 @@ public Boolean isDisabled() { public String getToken() { return token; } + + public String getCreatedAt() { + return createdAt; + } } diff --git a/src/main/java/jp/pokepay/partnerapi/response/BillTransaction.java b/src/main/java/jp/pokepay/partnerapi/response/BillTransaction.java new file mode 100644 index 00000000..d856cb3d --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/BillTransaction.java @@ -0,0 +1,16 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class BillTransaction extends Response { + private Transaction transaction; + private Bill bill; + + public Transaction getTransaction() { + return transaction; + } + + public Bill getBill() { + return bill; + } +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/BillWithAdditionalPrivateMoneys.java b/src/main/java/jp/pokepay/partnerapi/response/BillWithAdditionalPrivateMoneys.java new file mode 100644 index 00000000..fd0caff9 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/BillWithAdditionalPrivateMoneys.java @@ -0,0 +1,56 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class BillWithAdditionalPrivateMoneys extends Response { + private String id; + private Double amount; + private Double maxAmount; + private Double minAmount; + private String description; + private AccountWithUser account; + private Boolean isDisabled; + private String token; + private String createdAt; + private PrivateMoney[] additionalPrivateMoneys; + + public String getId() { + return id; + } + + public Double getAmount() { + return amount; + } + + public Double getMaxAmount() { + return maxAmount; + } + + public Double getMinAmount() { + return minAmount; + } + + public String getDescription() { + return description; + } + + public AccountWithUser getAccount() { + return account; + } + + public Boolean isDisabled() { + return isDisabled; + } + + public String getToken() { + return token; + } + + public String getCreatedAt() { + return createdAt; + } + + public PrivateMoney[] getAdditionalPrivateMoneys() { + return additionalPrivateMoneys; + } +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/BulkTransaction.java b/src/main/java/jp/pokepay/partnerapi/response/BulkTransaction.java index 2ef7a9c8..8e0ece20 100644 --- a/src/main/java/jp/pokepay/partnerapi/response/BulkTransaction.java +++ b/src/main/java/jp/pokepay/partnerapi/response/BulkTransaction.java @@ -11,6 +11,7 @@ public class BulkTransaction extends Response { private Integer errorLineno; private String submittedAt; private String updatedAt; + private String scheduledAt; public String getId() { return id; @@ -47,5 +48,9 @@ public String getSubmittedAt() { public String getUpdatedAt() { return updatedAt; } + + public String getScheduledAt() { + return scheduledAt; + } } diff --git a/src/main/java/jp/pokepay/partnerapi/response/CapturedCreditSession.java b/src/main/java/jp/pokepay/partnerapi/response/CapturedCreditSession.java new file mode 100644 index 00000000..75ba5aad --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/CapturedCreditSession.java @@ -0,0 +1,11 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class CapturedCreditSession extends Response { + private String sessionId; + + public String getSessionId() { + return sessionId; + } +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/CardAuthorizeResult.java b/src/main/java/jp/pokepay/partnerapi/response/CardAuthorizeResult.java new file mode 100644 index 00000000..976077e4 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/CardAuthorizeResult.java @@ -0,0 +1,16 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class CardAuthorizeResult extends Response { + private String authenticationHtml; + private String requestId; + + public String getAuthenticationHtml() { + return authenticationHtml; + } + + public String getRequestId() { + return requestId; + } +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/Check.java b/src/main/java/jp/pokepay/partnerapi/response/Check.java index 0b005ea8..8373698a 100644 --- a/src/main/java/jp/pokepay/partnerapi/response/Check.java +++ b/src/main/java/jp/pokepay/partnerapi/response/Check.java @@ -12,6 +12,7 @@ public class Check extends Response { private Boolean isOnetime; private Boolean isDisabled; private String expiresAt; + private String startsAt; private String lastUsedAt; private PrivateMoney privateMoney; private Integer usageLimit; @@ -60,6 +61,10 @@ public String getExpiresAt() { return expiresAt; } + public String getStartsAt() { + return startsAt; + } + public String getLastUsedAt() { return lastUsedAt; } diff --git a/src/main/java/jp/pokepay/partnerapi/response/Coupon.java b/src/main/java/jp/pokepay/partnerapi/response/Coupon.java index 6d2bccf4..f46e97e4 100644 --- a/src/main/java/jp/pokepay/partnerapi/response/Coupon.java +++ b/src/main/java/jp/pokepay/partnerapi/response/Coupon.java @@ -21,6 +21,8 @@ public class Coupon extends Response { private String code; private Boolean isDisabled; private String token; + private Integer numRecipientsCap; + private Integer numRecipients; public String getId() { return id; @@ -97,5 +99,13 @@ public Boolean isDisabled() { public String getToken() { return token; } + + public Integer getNumRecipientsCap() { + return numRecipientsCap; + } + + public Integer getNumRecipients() { + return numRecipients; + } } diff --git a/src/main/java/jp/pokepay/partnerapi/response/CouponDetail.java b/src/main/java/jp/pokepay/partnerapi/response/CouponDetail.java index 256ab460..49e397d3 100644 --- a/src/main/java/jp/pokepay/partnerapi/response/CouponDetail.java +++ b/src/main/java/jp/pokepay/partnerapi/response/CouponDetail.java @@ -24,6 +24,8 @@ public class CouponDetail extends Response { private String couponImage; private User[] availableShops; private PrivateMoney privateMoney; + private Integer numRecipientsCap; + private Integer numRecipients; public String getId() { return id; @@ -112,5 +114,13 @@ public User[] getAvailableShops() { public PrivateMoney getPrivateMoney() { return privateMoney; } + + public Integer getNumRecipientsCap() { + return numRecipientsCap; + } + + public Integer getNumRecipients() { + return numRecipients; + } } diff --git a/src/main/java/jp/pokepay/partnerapi/response/CpmToken.java b/src/main/java/jp/pokepay/partnerapi/response/CpmToken.java index 3395dc3f..053a5c86 100644 --- a/src/main/java/jp/pokepay/partnerapi/response/CpmToken.java +++ b/src/main/java/jp/pokepay/partnerapi/response/CpmToken.java @@ -9,6 +9,8 @@ public class CpmToken extends Response { private String[] scopes; private String expiresAt; private String metadata; + private String strategy; + private String couponId; public String getCpmToken() { return cpmToken; @@ -37,5 +39,13 @@ public String getExpiresAt() { public String getMetadata() { return metadata; } + + public String getStrategy() { + return strategy; + } + + public String getCouponId() { + return couponId; + } } diff --git a/src/main/java/jp/pokepay/partnerapi/response/CreditSession.java b/src/main/java/jp/pokepay/partnerapi/response/CreditSession.java new file mode 100644 index 00000000..b57f0bf9 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/CreditSession.java @@ -0,0 +1,16 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class CreditSession extends Response { + private String id; + private String expiresAt; + + public String getId() { + return id; + } + + public String getExpiresAt() { + return expiresAt; + } +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/CreditSessionTransactionResult.java b/src/main/java/jp/pokepay/partnerapi/response/CreditSessionTransactionResult.java new file mode 100644 index 00000000..cd506266 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/CreditSessionTransactionResult.java @@ -0,0 +1,6 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class CreditSessionTransactionResult extends Response { +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/CustomerCardDeleted.java b/src/main/java/jp/pokepay/partnerapi/response/CustomerCardDeleted.java new file mode 100644 index 00000000..f0fae88b --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/CustomerCardDeleted.java @@ -0,0 +1,6 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class CustomerCardDeleted extends Response { +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/CvsAuthorization.java b/src/main/java/jp/pokepay/partnerapi/response/CvsAuthorization.java new file mode 100644 index 00000000..025342da --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/CvsAuthorization.java @@ -0,0 +1,76 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class CvsAuthorization extends Response { + private AccountDetail account; + private User user; + private String orderId; + private String transactionId; + private String payLimit; + private String tel; + private String name1; + private String name2; + private Integer amount; + private String serviceOptionType; + private String haraikomiUrl; + private String receiptNo; + private String doneAt; + private String canceledAt; + + public AccountDetail getAccount() { + return account; + } + + public User getUser() { + return user; + } + + public String getOrderId() { + return orderId; + } + + public String getTransactionId() { + return transactionId; + } + + public String getPayLimit() { + return payLimit; + } + + public String getTel() { + return tel; + } + + public String getName1() { + return name1; + } + + public String getName2() { + return name2; + } + + public Integer getAmount() { + return amount; + } + + public String getServiceOptionType() { + return serviceOptionType; + } + + public String getHaraikomiUrl() { + return haraikomiUrl; + } + + public String getReceiptNo() { + return receiptNo; + } + + public String getDoneAt() { + return doneAt; + } + + public String getCanceledAt() { + return canceledAt; + } +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/InvalidMdkToken.java b/src/main/java/jp/pokepay/partnerapi/response/InvalidMdkToken.java new file mode 100644 index 00000000..b1c13791 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/InvalidMdkToken.java @@ -0,0 +1,16 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class InvalidMdkToken extends Response { + private String type; + private String message; + + public String getType() { + return type; + } + + public String getMessage() { + return message; + } +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/PaginatedBillTransaction.java b/src/main/java/jp/pokepay/partnerapi/response/PaginatedBillTransaction.java new file mode 100644 index 00000000..408281ca --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/PaginatedBillTransaction.java @@ -0,0 +1,31 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class PaginatedBillTransaction extends Response { + private BillTransaction[] rows; + private Integer perPage; + private Integer count; + private String nextPageCursorId; + private String prevPageCursorId; + + public BillTransaction[] getRows() { + return rows; + } + + public Integer getPerPage() { + return perPage; + } + + public Integer getCount() { + return count; + } + + public String getNextPageCursorId() { + return nextPageCursorId; + } + + public String getPrevPageCursorId() { + return prevPageCursorId; + } +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/PaginatedCvsAuthorizations.java b/src/main/java/jp/pokepay/partnerapi/response/PaginatedCvsAuthorizations.java new file mode 100644 index 00000000..4b0c2042 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/PaginatedCvsAuthorizations.java @@ -0,0 +1,31 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class PaginatedCvsAuthorizations extends Response { + private Integer perPage; + private Integer count; + private CvsAuthorization[] items; + private String prev; + private String next; + + public Integer getPerPage() { + return perPage; + } + + public Integer getCount() { + return count; + } + + public CvsAuthorization[] getItems() { + return items; + } + + public String getPrev() { + return prev; + } + + public String getNext() { + return next; + } +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/PaginatedUserCards.java b/src/main/java/jp/pokepay/partnerapi/response/PaginatedUserCards.java new file mode 100644 index 00000000..9cfdcc75 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/PaginatedUserCards.java @@ -0,0 +1,21 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class PaginatedUserCards extends Response { + private UserCard[] rows; + private Integer count; + private Pagination pagination; + + public UserCard[] getRows() { + return rows; + } + + public Integer getCount() { + return count; + } + + public Pagination getPagination() { + return pagination; + } +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/TransactionGroup.java b/src/main/java/jp/pokepay/partnerapi/response/TransactionGroup.java new file mode 100644 index 00000000..084384bd --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/TransactionGroup.java @@ -0,0 +1,31 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class TransactionGroup extends Response { + private String id; + private String name; + private String createdAt; + private String updatedAt; + private Transaction[] transactions; + + public String getId() { + return id; + } + + public String getName() { + return name; + } + + public String getCreatedAt() { + return createdAt; + } + + public String getUpdatedAt() { + return updatedAt; + } + + public Transaction[] getTransactions() { + return transactions; + } +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/UserCard.java b/src/main/java/jp/pokepay/partnerapi/response/UserCard.java new file mode 100644 index 00000000..905af477 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/UserCard.java @@ -0,0 +1,21 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class UserCard extends Response { + private String id; + private String cardNumber; + private String registeredAt; + + public String getId() { + return id; + } + + public String getCardNumber() { + return cardNumber; + } + + public String getRegisteredAt() { + return registeredAt; + } +} + diff --git a/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java b/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java index 67f4d086..e0f36960 100644 --- a/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java @@ -12,7 +12,7 @@ public class ActivateUserDeviceTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ActivateUserDevice( - "8731c411-b461-4e4a-9764-89255ea8a85c" + "170f2847-b01e-45bf-80db-69c712aa3edf" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/BulkCreateTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/BulkCreateTransactionTest.java index f9e8a64e..0a3753ba 100644 --- a/src/test/java/jp/pokepay/partnerapi/BulkCreateTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/BulkCreateTransactionTest.java @@ -12,9 +12,9 @@ public class BulkCreateTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new BulkCreateTransaction( - "8HRSP5FHw4UX4tGWi4N1", - "Wpw", - "hPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN" + "2E4bXnTsrAuXzcUztcj", + "pDcIzv", + "8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453" ); try { PartnerAPITest.getClient().send(request); @@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new BulkCreateTransaction( - "8HRSP5FHw4UX4tGWi4N1", - "Wpw", - "hPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN" + "2E4bXnTsrAuXzcUztcj", + "pDcIzv", + "8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453" ) - .privateMoneyId("52d410b7-8c36-4486-acc0-708a5e74ce01"); + .callbackUrl("https://YpOK96Eo.example.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -49,12 +49,33 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new BulkCreateTransaction( - "8HRSP5FHw4UX4tGWi4N1", - "Wpw", - "hPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN" + "2E4bXnTsrAuXzcUztcj", + "pDcIzv", + "8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453" ) - .description("HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0kt") - .privateMoneyId("7e11363a-9aeb-479a-b179-4573a184ff65"); + .privateMoneyId("23ac1ca6-8bc6-4fc7-b8d6-771b0485304a") + .callbackUrl("https://NTeRlFM4.example.com"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test3() throws ConnectionError, ProcessingError { + Request request = new BulkCreateTransaction( + "2E4bXnTsrAuXzcUztcj", + "pDcIzv", + "8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453" + ) + .description("w2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC") + .privateMoneyId("105528b7-6b6d-4cc8-95e8-c969390d64a0") + .callbackUrl("https://SDgXKvVy.example.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CancelBulkTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CancelBulkTransactionTest.java new file mode 100644 index 00000000..4629f1f7 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/CancelBulkTransactionTest.java @@ -0,0 +1,28 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.CancelBulkTransaction; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CancelBulkTransactionTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new CancelBulkTransaction( + "f2da52ad-3ed7-4701-8752-64527e4b1204" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java index 7462e695..549e1c06 100644 --- a/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java @@ -12,7 +12,7 @@ public class CancelCashtrayTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CancelCashtray( - "aaf6a586-88af-4705-b315-e668c4144e0c" + "b2a93bb9-4f46-4569-9274-1b6a8b702886" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/CancelCvsAuthorizationTest.java b/src/test/java/jp/pokepay/partnerapi/CancelCvsAuthorizationTest.java new file mode 100644 index 00000000..52f43557 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/CancelCvsAuthorizationTest.java @@ -0,0 +1,28 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.CancelCvsAuthorization; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CancelCvsAuthorizationTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new CancelCvsAuthorization( + "c2bed1a4-556f-427a-ab5c-1465d75d99d9" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/CaptureCreditSessionTest.java b/src/test/java/jp/pokepay/partnerapi/CaptureCreditSessionTest.java new file mode 100644 index 00000000..2cd238c7 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/CaptureCreditSessionTest.java @@ -0,0 +1,45 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.CaptureCreditSession; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CaptureCreditSessionTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new CaptureCreditSession( + "40765da0-f6f2-41cc-b413-655243e97309" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test1() throws ConnectionError, ProcessingError { + Request request = new CaptureCreditSession( + "40765da0-f6f2-41cc-b413-655243e97309" + ) + .requestId("ff18fd70-52a7-4b0f-9227-95a7c5dcd5cd"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/CreateBankTest.java b/src/test/java/jp/pokepay/partnerapi/CreateBankTest.java index af765064..89c47306 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateBankTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateBankTest.java @@ -12,10 +12,10 @@ public class CreateBankTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateBank( - "3ca9f004-3488-4140-af5b-15c3eabf1100", - "0c771527-c425-4790-b992-69f2ae020db2", - "XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0", - "vPKHwlN5cgpKhTDjrt62aO0gTJK" + "505465f4-79c1-4727-a3da-4f1b21a783d3", + "c7c5e36b-c165-42f2-aefd-5d8cd93e2ea3", + "bwN5IYLm99wEVRQ8sJxsInHOegu4ueAVfQ8nRhLcha2zRRyQlj7s7IqXcFdC0ufgYUkqe3kskveA2n2lBOE9H5VVR8QU7QjrIemlNkbreYYQh0DpuFWTXBEy8Kcs0g4RtCJckJnkv8b3lOd0jZSZisKJGtLxfbPFfaIRWKNMj5dtiKnG8zX8t", + "Wqvm0QmTuUJdqTxvEdTrlIk" ); try { PartnerAPITest.getClient().send(request); @@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateBank( - "3ca9f004-3488-4140-af5b-15c3eabf1100", - "0c771527-c425-4790-b992-69f2ae020db2", - "XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0", - "vPKHwlN5cgpKhTDjrt62aO0gTJK" + "505465f4-79c1-4727-a3da-4f1b21a783d3", + "c7c5e36b-c165-42f2-aefd-5d8cd93e2ea3", + "bwN5IYLm99wEVRQ8sJxsInHOegu4ueAVfQ8nRhLcha2zRRyQlj7s7IqXcFdC0ufgYUkqe3kskveA2n2lBOE9H5VVR8QU7QjrIemlNkbreYYQh0DpuFWTXBEy8Kcs0g4RtCJckJnkv8b3lOd0jZSZisKJGtLxfbPFfaIRWKNMj5dtiKnG8zX8t", + "Wqvm0QmTuUJdqTxvEdTrlIk" ) - .birthdate("vsFX8p"); + .birthdate("Gk"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateBank( - "3ca9f004-3488-4140-af5b-15c3eabf1100", - "0c771527-c425-4790-b992-69f2ae020db2", - "XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0", - "vPKHwlN5cgpKhTDjrt62aO0gTJK" + "505465f4-79c1-4727-a3da-4f1b21a783d3", + "c7c5e36b-c165-42f2-aefd-5d8cd93e2ea3", + "bwN5IYLm99wEVRQ8sJxsInHOegu4ueAVfQ8nRhLcha2zRRyQlj7s7IqXcFdC0ufgYUkqe3kskveA2n2lBOE9H5VVR8QU7QjrIemlNkbreYYQh0DpuFWTXBEy8Kcs0g4RtCJckJnkv8b3lOd0jZSZisKJGtLxfbPFfaIRWKNMj5dtiKnG8zX8t", + "Wqvm0QmTuUJdqTxvEdTrlIk" ) - .email("CgUNdYXQCh@ONhw.com") - .birthdate("GHDaQRst"); + .email("GEpBmPu4Hk@qOfX.com") + .birthdate("Ekl5C8"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateBankTopupTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateBankTopupTransactionTest.java index c35d61b3..3952ca3f 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateBankTopupTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateBankTopupTransactionTest.java @@ -12,11 +12,11 @@ public class CreateBankTopupTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateBankTopupTransaction( - "eae535ff-5685-4921-bcbd-740d68355f05", - "2d0004fa-3df9-4790-a6c3-2e4d8cb93aab", - 4420, - "50da505b-1a2a-43b6-b234-c9da39d2185e", - "5254fac9-c835-443a-baaf-5a67dc14e889" + "9e05582b-b4f6-42b6-902c-b1fac0b5aa50", + "4568f1a0-78da-43b7-865d-a1574e520159", + 9020, + "848d8e64-7ace-4c64-9dfd-a916507138fe", + "4fd3a53d-3046-4da1-8830-1bc0847287cb" ); try { PartnerAPITest.getClient().send(request); @@ -32,13 +32,13 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateBankTopupTransaction( - "eae535ff-5685-4921-bcbd-740d68355f05", - "2d0004fa-3df9-4790-a6c3-2e4d8cb93aab", - 4420, - "50da505b-1a2a-43b6-b234-c9da39d2185e", - "5254fac9-c835-443a-baaf-5a67dc14e889" + "9e05582b-b4f6-42b6-902c-b1fac0b5aa50", + "4568f1a0-78da-43b7-865d-a1574e520159", + 9020, + "848d8e64-7ace-4c64-9dfd-a916507138fe", + "4fd3a53d-3046-4da1-8830-1bc0847287cb" ) - .receiverUserId("c581ccb9-aa16-41e2-bec4-09ae24384255"); + .receiverUserId("21417332-0a1e-4bc1-a0ab-1744e993f131"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateBillTest.java b/src/test/java/jp/pokepay/partnerapi/CreateBillTest.java index d28ad546..a11410a2 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateBillTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateBillTest.java @@ -12,8 +12,8 @@ public class CreateBillTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateBill( - "c404cacf-f9c6-4b71-8977-32134cce0494", - "887fe62c-62c0-4078-b276-e6f80b19b3eb" + "846ac8d5-8b6c-4375-850a-d9f1df8b4d62", + "e237f6b8-5d31-46cf-b33f-315afe23851a" ); try { PartnerAPITest.getClient().send(request); @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateBill( - "c404cacf-f9c6-4b71-8977-32134cce0494", - "887fe62c-62c0-4078-b276-e6f80b19b3eb" + "846ac8d5-8b6c-4375-850a-d9f1df8b4d62", + "e237f6b8-5d31-46cf-b33f-315afe23851a" ) - .description("wVYBDQiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj"); + .description("gKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55WYfHfvN0QEBe9OUmuQoNyAxdhT65"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -47,11 +47,31 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateBill( - "c404cacf-f9c6-4b71-8977-32134cce0494", - "887fe62c-62c0-4078-b276-e6f80b19b3eb" + "846ac8d5-8b6c-4375-850a-d9f1df8b4d62", + "e237f6b8-5d31-46cf-b33f-315afe23851a" ) - .amount(3754.0) - .description("k3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWw"); + .additionalPrivateMoneyIds(new String[]{"e2a70e66-3aa7-44e1-ac4e-09d60be1965e","1d910096-f30d-4acd-b20f-b7add4332778","996ba8ea-a971-431f-acaa-a75013aff3f8","06b18892-e996-4278-bb79-b3237e083bb8","e774c97e-c9a1-4bd2-a771-2b77462988c6","ecfd0bd7-0fde-42d4-915c-a51536889831","a1401868-6bf6-4398-9856-3aa9fe707817","5aebfe2c-19a8-4b0c-b439-9ee2d4c7e8ce","701d4404-da32-417a-a684-27c971622926","a9cd0a78-694e-4092-9afc-ceda37241178"}) + .description("4eE9mHPjq6XCvYjxbcuNA5AO"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test3() throws ConnectionError, ProcessingError { + Request request = new CreateBill( + "846ac8d5-8b6c-4375-850a-d9f1df8b4d62", + "e237f6b8-5d31-46cf-b33f-315afe23851a" + ) + .amount(173.0) + .additionalPrivateMoneyIds(new String[]{"07d8d248-443e-4527-be89-51bad8f57297","8a4e5792-9f72-4b2f-b5b6-7d67c852f423"}) + .description("XocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2pLnur36TYPgxIzfeirgw"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java index 6e6fe27f..f2f5db80 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java @@ -12,14 +12,14 @@ public class CreateCampaignTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"5907704a-6730-41fd-85b9-2c95e35a3a0b","c8b53f99-3b77-4329-a812-f1ec9b21671b","eb5011c6-da36-4d94-8ac3-c522c7fa359d"}); + .applicableShopIds(new String[]{"f00ef741-eafe-4e15-bbab-99d6b26a2732","8aaf8a48-210a-4bae-8424-f85711b2a630","51afc30d-b77c-4e84-80be-1f54f8596536","57b01703-975c-411b-9520-e002d4dc0883","85cd2377-1c8e-42a3-b467-79c6428b6b2f"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -34,15 +34,15 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"b3a30f6c-d4cd-492b-8bc6-982efb72e8a1","b890bc48-c36b-4354-9c48-91c5dbb06afb","4c3d0960-e747-4caf-9229-07d7c082e4d5","63fb1142-6801-49d6-95da-71dbfd26a7e1","116eefb1-639b-4586-b2ed-0cfff5f6767c","67386841-db78-407a-9fdf-021a8b9d0146","65548214-e7d5-40c6-b682-eee9627cc068"}) - .bearPointShopId("3867ad2c-76f6-406c-8d5d-6d7db08283c9"); + .applicableShopIds(new String[]{"4f9c73ef-e587-4677-a86a-b1eb85254a8d","7a4acf3b-dfbe-487e-a9ab-1aafbd7c2f27","818656f0-bb04-43de-8175-b290e637cde1","a3131bf8-efb7-4c3f-9369-b2ee4f905d54","aec977c3-0d93-4f04-9e4b-a75cc7c4ba09","7f7260ca-0a7b-4a6c-8190-b08a393a556c","3862846b-0044-4387-9301-225809238230"}) + .bearPointShopId("199d457a-2e39-466b-98a7-e8953a47c834"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,16 +57,16 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"6d43b906-651e-4405-9adc-14ffb85786f5","7d7056af-db6f-4a4f-8510-ae6eead2b2a6","53e9445f-c6c0-4429-bf4b-32f250e98961","5559e2ce-139e-465d-aa05-463fff20333a","09cfde92-8621-432d-b02a-d011f0283e5e"}) - .description("sN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE1hEG2Ek") - .bearPointShopId("a0a75deb-72dd-465e-8cd0-05325678ba0d"); + .applicableShopIds(new String[]{"293d1bf4-e76c-4b3e-90b6-f1308fea123f","03e6d3ff-5e74-4a15-b18a-52bacc4cca3b","681672a4-e3f0-4f47-adc4-c989441fffdd","8a0691ba-4f43-41c2-81dc-147f245234a8","933d607e-e637-4dd7-a18b-cff0609f184c","560ad469-ea6f-4090-92ac-038ae19c5020","d13e804c-3655-4ef9-ac0c-f5e8ba00d6be","687cf21c-3799-4317-baa6-8377563c2170"}) + .description("jBXylmnzTDYQPTQEhEDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDR") + .bearPointShopId("c8ee8c6b-c932-4966-b29a-d51528fcf2e2"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -81,17 +81,17 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"69379425-1008-431d-8916-efd02b10f1f9","e5afaa02-c73e-4b37-bb48-aa3e4c403e89","e8e8a085-2557-46b7-a4c5-9e5e3b7a5ae5","6f9d91a7-dd5c-4cb7-a8a9-70fe5c9856f3","d8dfba6b-43c2-48b9-badd-8e207b381308","95937bbc-621f-4d12-8229-9642fe742928","8c2074b1-389e-4d18-9983-fd4e371fac2f"}) + .applicableShopIds(new String[]{"016e4d00-56cb-42d9-bc8b-837c0c446a11","b9545d2f-7444-4374-8801-60d8023c3305","853d5581-0a98-4698-9206-9c5391be6bdb","067d9570-59e5-4297-825b-999274cf12fb","6a145353-4ba5-4505-bbf6-bd0eaf0dd43f","efe94392-69e9-4ac6-bb6b-890858a938b4","e614df07-0dd7-4180-b171-9973fc66bbcf","75f0e1fd-e8cc-4a0d-8de3-1c4edeb790dc","31388177-1fe5-43b8-8a3e-8f07c9a6c7cb"}) .status("disabled") - .description("E0n87A30l6vspNWH9u8x4Yq2mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ff") - .bearPointShopId("4a270b59-c3c1-4b65-9fab-04807155db36"); + .description("eqmGGreSt4nt1ybC0Y") + .bearPointShopId("b264fe77-f58f-4204-8810-6e20fe73588d"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -106,18 +106,18 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"bdd50904-966b-4dbb-b02e-d71a93ad6dd8","c180197c-193e-40e9-87c3-dc54710cab69","b7d97953-8a42-4c55-8965-0635d7705f2d","05d9b269-b4db-4a71-8906-a49a2389514d","53f24d4f-4f63-45ea-b9f1-0c05c3192ac2","6d51375f-a63b-4d4b-ac53-a446a89b11c7"}) - .pointExpiresAt("2022-03-04T07:27:56.000000Z") + .applicableShopIds(new String[]{"d0ba54e1-f020-4ab7-9f01-1e79bc9e2e1c","2357a531-8a6a-4da9-9a6b-c9145fb27822","12d767fe-8021-4155-8423-641778addf5c","266876fa-3959-47fd-9c3a-38ec04818825"}) + .pointExpiresAt("2022-03-12T07:57:10.000000Z") .status("enabled") - .description("LuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC39nZBUv4F8J7UzyDYEv7bctcmIqdmvTV8RBzp0gixsK") - .bearPointShopId("d12b845a-9510-43d7-af55-afabd0e15793"); + .description("bUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxqLSG8S4aP0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kBu7DCNg4aU") + .bearPointShopId("e7b92dc0-ef2b-418b-b7a9-9142d6f92c01"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -132,19 +132,19 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"5129d44f-0152-4a3a-8cb9-abffe94f0714","70b32f38-20a3-46ad-919f-1e3efd957d44","26219476-e939-405b-940e-5dd7316295b3","ed4fd8df-5c04-462f-b4ef-92979752f56e","ecab59f2-f216-4bf5-b5c4-883d7c71ac01","59bd5f2e-aef8-4e78-9b52-b7a78d10f78d"}) - .pointExpiresInDays(7576) - .pointExpiresAt("2023-08-05T02:11:40.000000Z") + .applicableShopIds(new String[]{"7b98bf73-f84e-482b-8543-8792c250adc6","5dcfb1bf-bad7-4741-b4e8-834890e4be6c","a3f2749a-89db-47f6-88dc-09a840b041f4","caf7e463-ae16-4a6a-af47-d8749a306397","2ff9edc9-a924-4740-90e1-487c74be2e05","d665c81d-ca91-4264-93cb-a96954ba66d6","9ddde5d8-7816-41b8-b4b6-94fbbb6ad849","eaf4dc82-581b-42f5-901b-085f9534e8b7"}) + .pointExpiresInDays(8258) + .pointExpiresAt("2021-12-15T05:45:10.000000Z") .status("disabled") - .description("kiR4daTST401zYU9O5bmxo5R8HDeIrg38UDixRQOsOxJyiut30") - .bearPointShopId("3ca2b36f-445f-4388-9206-17a809bf05f3"); + .description("h1iSdnomWlXA8y2vwAsTNYaeLyV7CWdrmk7DRyx2nAdRh4U2Gnj6HilrfsKlPIE") + .bearPointShopId("2ef20829-15f8-4f0b-8612-86a32dd97a72"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -159,20 +159,20 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"43680453-40cc-4a23-915f-0c6020782fe9","55769d26-45a8-4b34-8a46-9816f75d8514","962bb4c1-15d7-49de-aa76-2b9aad9963a3","74ffebce-382f-4f22-bf46-a56ce38ec102","33663cfd-21cd-4184-a947-c668bd55871b","9cc23acf-4c00-4637-8d6a-7f0aab4ad005","2e630fef-5e0d-489f-ae84-54a91762a046","d48528e9-d448-4b4c-a2f4-a44e19e6620d"}) + .applicableShopIds(new String[]{"f01d2ad8-9865-4a94-8346-398cfa8d1a1b","40acf6cf-50f5-44b5-ab40-9ecb80095ef8","c13abb07-ca72-4356-8c34-2f1775dc473d","d7d7129d-09aa-4df8-a8fa-e98f2fddaa37","66773d08-365e-4d9f-8407-de1ab960f57a","478f8592-8c9f-4242-b914-6d7b1c2bc63c","3d0ea6ad-4a77-464b-897f-9de37ee71529","e1d70e13-2869-44cd-8816-f9c04f7f89ae","1798ec0b-dfec-42ce-b013-f553ff73aa37","8150e7cc-3fb0-4d20-91ce-44b0d3384020"}) .setExclusive(false) - .pointExpiresInDays(5594) - .pointExpiresAt("2024-01-26T14:59:07.000000Z") + .pointExpiresInDays(6161) + .pointExpiresAt("2025-03-17T02:20:37.000000Z") .status("disabled") - .description("7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9k") - .bearPointShopId("0b3c2c76-0f49-417e-ba20-32e3dc79c4b3"); + .description("BHj0xIlmI7crwjg") + .bearPointShopId("360175c0-e4e9-424a-8fac-aa2e17bd86ed"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -187,21 +187,21 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"3233323b-118a-4ee7-9182-3088ea5e9515","7fcce72f-d066-4fd6-8363-2977f15ef4cb","98b99fc5-9715-453f-8f41-a26cfc981986","f6e8ee4d-a3d5-4e15-ac95-039478d88e5c","f1304959-93e2-416c-a37b-9ec1082471ee","8d94a54f-cf18-42ca-955d-e7ff46aaff20"}) + .applicableShopIds(new String[]{"d3f6d171-1638-47db-86bd-d12799d89fac","8c1fc6f8-54a7-4e32-82ac-0f9a90262810","0ae637fe-a9cd-421d-afe9-cae5ed7d9d2a"}) .subject("all") .setExclusive(true) - .pointExpiresInDays(164) - .pointExpiresAt("2021-01-10T21:46:04.000000Z") - .status("disabled") - .description("YgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79qoFTViWGk7rsKgu") - .bearPointShopId("7220fe40-9fb2-4469-a880-b8ef757ac34d"); + .pointExpiresInDays(5592) + .pointExpiresAt("2021-08-13T12:20:43.000000Z") + .status("enabled") + .description("mPY8qwKCFWRUhTWJtrSHM5KvGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wpFlmsWusC8RGaBKUJdHLf9kwaxRbmz") + .bearPointShopId("bb6a808e-bf0a-425e-83c1-87ef26dcdfb5"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -235,23 +235,38 @@ void test8() throws ConnectionError, ProcessingError { items4.addProperty("point_amount_unit", "percent"); items4.addProperty("subject_more_than_or_equal", 1000); items4.addProperty("subject_less_than", 5000); + JsonObject items5 = new JsonObject(); + items5.addProperty("point_amount", 5); + items5.addProperty("point_amount_unit", "percent"); + items5.addProperty("subject_more_than_or_equal", 1000); + items5.addProperty("subject_less_than", 5000); + JsonObject items6 = new JsonObject(); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); + items6.addProperty("subject_more_than_or_equal", 1000); + items6.addProperty("subject_less_than", 5000); + JsonObject items7 = new JsonObject(); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); + items7.addProperty("subject_more_than_or_equal", 1000); + items7.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"658543a0-00f8-4428-84aa-155b0c94df73","cb1affe6-0055-47b3-9b80-3bd439bf55aa","efffde14-f5c3-488c-b1c1-25fc069e8f38","d0f43b66-a3d6-45b5-9c03-bfeef84419eb","b6b03683-907a-48f9-a107-5b4d85a6316f","b9a5f81c-8c36-412c-9048-23ce9bccc0ff","0f588a8b-1046-49ea-8e31-7cb64209664d","1e5171f4-e131-4a4e-9707-b9ceb4debd2e","287a9988-84de-45fc-a4fb-de86366f3ad4","165af330-8692-4f97-8c5b-070965140396"}) - .amountBasedPointRules(new Object[]{items,items2,items3,items4}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(8993) - .pointExpiresAt("2022-11-29T18:34:52.000000Z") - .status("disabled") - .description("iaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrE") - .bearPointShopId("4e803ceb-cbd5-4ef2-8b5d-74d55fa15309"); + .applicableShopIds(new String[]{"f4d785dd-f27a-4ff2-8d2a-ea71bfd0a643","13429600-feb4-4133-a807-246b0b8072f6","f1c53d52-f035-42d6-ba53-ea0242a3fb8a","db24adb4-334a-42d3-941b-9ef847ea35b7","a13f2551-a708-4085-8491-ac904d45ae6b","0fbfbafc-c9b5-47f1-97d9-a1ed2bb149dc","e676fab8-7f82-438b-854a-5f56c2a8c892"}) + .amountBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(690) + .pointExpiresAt("2025-06-05T03:26:49.000000Z") + .status("enabled") + .description("vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbs") + .bearPointShopId("be259818-92bf-4fd0-9022-5abb9fa9ec1a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -274,67 +289,51 @@ void test9() throws ConnectionError, ProcessingError { JsonObject items2 = new JsonObject(); items2.addProperty("point_amount", 5); items2.addProperty("point_amount_unit", "percent"); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("is_multiply_by_count", true); - items2.addProperty("required_count", 2); + items2.addProperty("subject_more_than_or_equal", 1000); + items2.addProperty("subject_less_than", 5000); JsonObject items3 = new JsonObject(); items3.addProperty("point_amount", 5); items3.addProperty("point_amount_unit", "percent"); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("is_multiply_by_count", true); - items3.addProperty("required_count", 2); + items3.addProperty("subject_more_than_or_equal", 1000); + items3.addProperty("subject_less_than", 5000); JsonObject items4 = new JsonObject(); items4.addProperty("point_amount", 5); items4.addProperty("point_amount_unit", "percent"); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); + items4.addProperty("subject_more_than_or_equal", 1000); + items4.addProperty("subject_less_than", 5000); JsonObject items5 = new JsonObject(); items5.addProperty("point_amount", 5); items5.addProperty("point_amount_unit", "percent"); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("subject_more_than_or_equal", 1000); + items5.addProperty("subject_less_than", 5000); JsonObject items6 = new JsonObject(); items6.addProperty("point_amount", 5); items6.addProperty("point_amount_unit", "percent"); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("subject_more_than_or_equal", 1000); + items6.addProperty("subject_less_than", 5000); JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); - JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); - JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items7.addProperty("subject_more_than_or_equal", 1000); + items7.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"61c54144-fcac-47d9-a461-ced5c04d01ff","e4eda0cd-4140-4dd3-b48a-3517c56906fb"}) - .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .amountBasedPointRules(new Object[]{items8,items9}) - .subject("all") + .applicableShopIds(new String[]{"684b4d70-3c3f-4801-ae42-006bc8199280"}) + .productBasedPointRules(new Object[]{items}) + .amountBasedPointRules(new Object[]{items2,items3,items4,items5,items6,items7}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(2564) - .pointExpiresAt("2022-03-27T05:22:02.000000Z") + .pointExpiresInDays(3553) + .pointExpiresAt("2023-12-30T22:30:28.000000Z") .status("enabled") - .description("9RliuqOBINm") - .bearPointShopId("1508f3b4-0651-4022-b737-9d5b2511702f"); + .description("3NEhsO0rjGagOIQ6x9sSfu0zX8zdCniT7rbp4RdF8jzLLX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZhO") + .bearPointShopId("9e2a15ab-59fc-4b5c-8829-1713d90da669"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -355,62 +354,73 @@ void test10() throws ConnectionError, ProcessingError { items2.addProperty("product_code", "4912345678904"); items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); + items3.addProperty("point_amount", 5); + items3.addProperty("point_amount_unit", "percent"); items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); + items3.addProperty("is_multiply_by_count", true); + items3.addProperty("required_count", 2); JsonObject items4 = new JsonObject(); + items4.addProperty("point_amount", 5); + items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); + items4.addProperty("is_multiply_by_count", true); + items4.addProperty("required_count", 2); JsonObject items5 = new JsonObject(); + items5.addProperty("point_amount", 5); + items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); + items5.addProperty("is_multiply_by_count", true); + items5.addProperty("required_count", 2); JsonObject items6 = new JsonObject(); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); + items6.addProperty("is_multiply_by_count", true); + items6.addProperty("required_count", 2); JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); + items7.addProperty("subject_more_than_or_equal", 1000); + items7.addProperty("subject_less_than", 5000); JsonObject items8 = new JsonObject(); items8.addProperty("point_amount", 5); items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); + items8.addProperty("subject_more_than_or_equal", 1000); + items8.addProperty("subject_less_than", 5000); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("is_multiply_by_count", true); - items9.addProperty("required_count", 2); + items9.addProperty("subject_more_than_or_equal", 1000); + items9.addProperty("subject_less_than", 5000); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); + items10.addProperty("subject_more_than_or_equal", 1000); + items10.addProperty("subject_less_than", 5000); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); items11.addProperty("subject_more_than_or_equal", 1000); items11.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"167e148a-f60d-4028-b971-afe9e382d27b","ac0c702a-f3fa-4bab-8656-cfd1e7757485","c6ef7a6f-5b16-4007-a53e-d10e90a9d33a"}) - .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .productBasedPointRules(new Object[]{items8,items9,items10}) - .amountBasedPointRules(new Object[]{items11}) + .applicableShopIds(new String[]{"5f472dae-473c-432b-9071-4d397dcbea54","726e6728-1a81-4c4d-b119-3708e0f297ba","8b0114a9-e517-4b6b-a14c-e3022c648721","10751c6e-b485-47cd-8fa1-6e5d78967b61","3c87e650-2e6f-425c-a1a9-487b954fd909","6ff753f9-e383-44db-9c89-dbbe75331751"}) + .blacklistedProductRules(new Object[]{items,items2}) + .productBasedPointRules(new Object[]{items3,items4,items5,items6}) + .amountBasedPointRules(new Object[]{items7,items8,items9,items10,items11}) .subject("money") .setExclusive(true) - .pointExpiresInDays(8894) - .pointExpiresAt("2023-08-22T21:01:30.000000Z") - .status("disabled") - .description("QJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs") - .bearPointShopId("c8946e96-32b3-417b-a8ea-37212adf9a9d"); + .pointExpiresInDays(3993) + .pointExpiresAt("2020-11-05T15:44:55.000000Z") + .status("enabled") + .description("Xctk2uyuazqzFpngLk90ZBFe71DIECbUavopCer6amUqWii2uDVrmTki6pqO0f8cnptMkBRjmpnnbeCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSblk7QSMdkkKPrtzfsCSKaR3OFn") + .bearPointShopId("378a7b8f-a101-4717-b195-d9570d826d12"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -431,98 +441,6 @@ void test11() throws ConnectionError, ProcessingError { items2.addProperty("product_code", "4912345678904"); items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); - JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); - JsonObject items5 = new JsonObject(); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); - JsonObject items6 = new JsonObject(); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); - JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); - JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); - JsonObject items9 = new JsonObject(); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); - JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); - JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); - JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); - JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); - JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); - Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" - ) - .applicableShopIds(new String[]{"df4b4a1f-db22-4544-84b1-bb8c58080a56","4d0d7ea5-4f59-44fb-bd6e-a43a248cbbd4","8b92295d-8868-43c5-a08a-8a9dcf0d68d1","af0a78fe-43cf-4acc-b46c-e70a73af16eb","11dc2fde-2f3a-49dd-92d0-84c9e4243741"}) - .applicableDaysOfWeek(new Integer[]{5,1,6}) - .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .productBasedPointRules(new Object[]{items10,items11}) - .amountBasedPointRules(new Object[]{items12,items13,items14,items15}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(4036) - .pointExpiresAt("2023-12-04T19:40:33.000000Z") - .status("enabled") - .description("LwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj") - .bearPointShopId("21eae237-9903-486a-a8ca-6faf6cd35db1"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test12() throws ConnectionError, ProcessingError { - JsonObject items = new JsonObject(); - items.addProperty("from", "12:00"); - items.addProperty("to", "23:59"); - JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); - JsonObject items3 = new JsonObject(); items3.addProperty("point_amount", 5); items3.addProperty("point_amount_unit", "percent"); items3.addProperty("product_code", "4912345678904"); @@ -555,18 +473,21 @@ void test12() throws ConnectionError, ProcessingError { JsonObject items8 = new JsonObject(); items8.addProperty("point_amount", 5); items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); @@ -592,27 +513,41 @@ void test12() throws ConnectionError, ProcessingError { items15.addProperty("point_amount_unit", "percent"); items15.addProperty("subject_more_than_or_equal", 1000); items15.addProperty("subject_less_than", 5000); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"f4428aa8-2018-4961-bae4-5db03f8e3005","781c38c0-897f-4b4d-9730-d5d1c2553615","48608f45-8415-40b8-a287-a926e9dd5ff3","db65c1e9-c691-46b7-be57-fdeb56918886","839228f4-74fb-4eef-a16d-f65449b03e53","feec9c1f-6ca4-4949-88fd-b62dbf3cfcf3","d732deb3-9c00-4773-8673-f93d7a4b66f3","163a513a-d3b0-43e2-935a-f5b14948a6fc","5cb12b63-c3a0-47d2-8735-ba7295336d04"}) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{1,5,6,0,5}) - .blacklistedProductRules(new Object[]{items2}) - .productBasedPointRules(new Object[]{items3,items4,items5,items6,items7}) - .amountBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(9667) - .pointExpiresAt("2023-04-07T15:17:38.000000Z") - .status("enabled") - .description("t6R89vRehYIZbMh6MfShA8D4E") - .bearPointShopId("e65a7cf6-32b7-400f-9a21-37cf67d8d1dc"); + .applicableShopIds(new String[]{"73608e86-7492-4e68-a842-c19bf0bc8990","21b2c622-825a-4642-88a0-4b439d3421da","54019100-0567-4053-85fc-d90b48cf2eab","2b839624-d607-46d2-9020-9ca4e0db5aae","99b4f4d4-c244-4008-a906-e16110e803ef","5750db7d-dd4b-4740-98b9-75494d3218df"}) + .applicableDaysOfWeek(new Integer[]{2}) + .blacklistedProductRules(new Object[]{items,items2}) + .productBasedPointRules(new Object[]{items3,items4,items5,items6,items7,items8,items9,items10}) + .amountBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(3038) + .pointExpiresAt("2022-06-12T11:56:04.000000Z") + .status("disabled") + .description("9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq6VpVqu1DpFd0JaBs") + .bearPointShopId("146dc8bc-87d0-4542-8515-637ecbc4d96a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -625,7 +560,7 @@ void test12() throws ConnectionError, ProcessingError { } } @Test - void test13() throws ConnectionError, ProcessingError { + void test12() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -698,21 +633,18 @@ void test13() throws ConnectionError, ProcessingError { JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); @@ -728,28 +660,37 @@ void test13() throws ConnectionError, ProcessingError { items23.addProperty("point_amount_unit", "percent"); items23.addProperty("subject_more_than_or_equal", 1000); items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"a4dae680-9ebe-44d4-9447-0754dca30b37","bdbcb730-824c-432f-a1c0-ee90f544750a","b81e6151-0e5d-42b2-9465-4af064ebe511","a2a60878-7968-448e-93d8-cb94cc8faf76","bd351dae-bd08-4d13-a64a-51f24aa1cbdf","02be5ffe-2394-4b71-bf01-93186575231f","157f190c-f3a7-4ff7-bcc3-65aa5b0da585","4df2778b-cdf7-432b-badd-ef767f6b4f1f"}) - .minimumNumberOfProducts(8904) + .applicableShopIds(new String[]{"48eebbf8-aff3-49ce-b8a4-9cb23cc48352","77f3cbb5-fde2-46d6-9e37-e134ca1be896","b0e5617b-4be8-413b-b6bd-ad9ad95fc080","b884bccd-0a5e-4d98-8216-e9e3a52af66c","7e28db46-d5cc-4b73-83eb-7970357ea181"}) .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{5,4,1,4}) + .applicableDaysOfWeek(new Integer[]{6,6,4,0,5,6,0,0,2}) .blacklistedProductRules(new Object[]{items8,items9,items10,items11}) - .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18,items19,items20}) - .amountBasedPointRules(new Object[]{items21,items22,items23}) + .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17}) + .amountBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24,items25}) .subject("all") .setExclusive(false) - .pointExpiresInDays(2046) - .pointExpiresAt("2022-03-14T05:45:03.000000Z") + .pointExpiresInDays(6869) + .pointExpiresAt("2021-05-11T12:12:18.000000Z") .status("enabled") - .description("AdQSvr2jD2CPBEg6qDXhSH8hafJy0sDTnMPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14xB891rPV7FcdDeB61vcOZ1uNBAdr6lfzbfqKlnsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOt") - .bearPointShopId("5d0cd008-0741-4bef-bf29-048dce507f58"); + .description("60RTw4fZ8zWBqSC3vDIMcnooU2vsEkhFzbMP7H4x70jy8CyXSjsNQfhm4JdiSR8LU0sA") + .bearPointShopId("5ac29eaa-3178-461c-bd56-4a3e4e472f70"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -762,7 +703,7 @@ void test13() throws ConnectionError, ProcessingError { } } @Test - void test14() throws ConnectionError, ProcessingError { + void test13() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -785,11 +726,11 @@ void test14() throws ConnectionError, ProcessingError { items7.addProperty("from", "12:00"); items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); JsonObject items9 = new JsonObject(); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("from", "12:00"); + items9.addProperty("to", "23:59"); JsonObject items10 = new JsonObject(); items10.addProperty("product_code", "4912345678904"); items10.addProperty("classification_code", "c123"); @@ -812,8 +753,11 @@ void test14() throws ConnectionError, ProcessingError { items16.addProperty("product_code", "4912345678904"); items16.addProperty("classification_code", "c123"); JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("classification_code", "c123"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); @@ -823,90 +767,45 @@ void test14() throws ConnectionError, ProcessingError { JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("product_code", "4912345678904"); - items21.addProperty("is_multiply_by_count", true); - items21.addProperty("required_count", 2); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); JsonObject items22 = new JsonObject(); items22.addProperty("point_amount", 5); items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("product_code", "4912345678904"); - items22.addProperty("is_multiply_by_count", true); - items22.addProperty("required_count", 2); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("product_code", "4912345678904"); - items23.addProperty("is_multiply_by_count", true); - items23.addProperty("required_count", 2); - JsonObject items24 = new JsonObject(); - items24.addProperty("point_amount", 5); - items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("product_code", "4912345678904"); - items24.addProperty("is_multiply_by_count", true); - items24.addProperty("required_count", 2); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("product_code", "4912345678904"); - items25.addProperty("is_multiply_by_count", true); - items25.addProperty("required_count", 2); - JsonObject items26 = new JsonObject(); - items26.addProperty("point_amount", 5); - items26.addProperty("point_amount_unit", "percent"); - items26.addProperty("product_code", "4912345678904"); - items26.addProperty("is_multiply_by_count", true); - items26.addProperty("required_count", 2); - JsonObject items27 = new JsonObject(); - items27.addProperty("point_amount", 5); - items27.addProperty("point_amount_unit", "percent"); - items27.addProperty("product_code", "4912345678904"); - items27.addProperty("is_multiply_by_count", true); - items27.addProperty("required_count", 2); - JsonObject items28 = new JsonObject(); - items28.addProperty("point_amount", 5); - items28.addProperty("point_amount_unit", "percent"); - items28.addProperty("subject_more_than_or_equal", 1000); - items28.addProperty("subject_less_than", 5000); - JsonObject items29 = new JsonObject(); - items29.addProperty("point_amount", 5); - items29.addProperty("point_amount_unit", "percent"); - items29.addProperty("subject_more_than_or_equal", 1000); - items29.addProperty("subject_less_than", 5000); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"a86289a7-3137-4d27-af70-362c4cda0814","3b373df5-b261-44e5-a337-a86cedcfe79a","6ecb2710-75cf-4a2e-b5ad-8e38607f33c1","066efe3d-0222-4a7c-a5b6-e2a879e26a3b","4c284a68-0554-4fee-a17d-55f28066d029","382227c6-6bd3-436a-a2c2-d7fda50a91ba","e229141c-028e-4f97-b12d-ca0ef81f99e8","d8d0cd69-2b52-44ea-9318-7754299d9597","019950ce-7cd3-4da7-9595-5f28dceb1155"}) - .minimumNumberOfAmount(1205) - .minimumNumberOfProducts(1449) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{3,0,2,6,5}) - .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17}) - .productBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24,items25,items26,items27}) - .amountBasedPointRules(new Object[]{items28,items29}) + .applicableShopIds(new String[]{"4722de85-34de-41cb-836f-020ab73d6c5d","87153839-d67e-4e50-b2b8-6a748e8fb0dd","4b038b06-a2ee-4804-83d2-f534e18b0762","006a5033-5d56-46a8-960e-cce365499d6e","eaf2edaa-3240-44d2-b7f9-59af2cc4fcd3","d200c761-380a-49d4-91ca-9c53be83894c"}) + .minimumNumberOfProducts(8854) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .applicableDaysOfWeek(new Integer[]{2,2}) + .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16}) + .productBasedPointRules(new Object[]{items17,items18}) + .amountBasedPointRules(new Object[]{items19,items20,items21,items22}) .subject("money") .setExclusive(false) - .pointExpiresInDays(5580) - .pointExpiresAt("2024-08-01T12:57:01.000000Z") - .status("disabled") - .description("cWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjP") - .bearPointShopId("c5f62e06-7f17-4426-92ac-f1a83e64c546"); + .pointExpiresInDays(2490) + .pointExpiresAt("2023-01-01T11:07:05.000000Z") + .status("enabled") + .description("0faJMcRsZ3tfn14pqdpY2gOVzxC2AMFcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX0m") + .bearPointShopId("0e393663-0893-46fa-a447-058753f59b2e"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -919,7 +818,7 @@ void test14() throws ConnectionError, ProcessingError { } } @Test - void test15() throws ConnectionError, ProcessingError { + void test14() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -936,73 +835,118 @@ void test15() throws ConnectionError, ProcessingError { items5.addProperty("from", "12:00"); items5.addProperty("to", "23:59"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("classification_code", "c123"); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); JsonObject items16 = new JsonObject(); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("classification_code", "c123"); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); items18.addProperty("subject_more_than_or_equal", 1000); items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"5d9c5908-df18-45cd-ab1e-e2b0d517d25c","c722168f-8abe-40c4-8c7c-8a88b433f764","fc7207f7-82c0-4f15-96d8-f12409d015a2","41c62b31-25aa-4624-9f3f-4de018cd3bee","9be2e2bf-a866-4a50-9a1e-fef424139a88","bf6620fa-9747-47f5-aed6-308876f6d9ca","78481ea8-2ce2-477c-b4c3-c41fd13cc483","b2f9a8ee-d773-429a-afe0-d7ff75bc6ffc"}) - .minimumNumberForCombinationPurchase(8486) - .minimumNumberOfAmount(4679) - .minimumNumberOfProducts(8725) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{3,4,2,6}) - .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16}) - .productBasedPointRules(new Object[]{items17}) - .amountBasedPointRules(new Object[]{items18}) + .applicableShopIds(new String[]{"3e5ab6a3-cd9f-42a4-82b2-47985f70fec9","093d505d-8233-4dc5-91a2-65d7c0789d81","d4941161-597f-4315-a636-eccdb8b35683","b43a68a3-2328-4276-8fe9-b8cb16463e68","975013fa-c13c-4de7-9a4e-007c49d61a31","f4138bd7-0a2b-4c07-803c-bec5d158ca31","52ea8c09-2d09-4045-9326-13173e335281","7b2d0639-8451-442d-859b-92b8a537c4c9","171e2731-f113-4b22-93d7-d64fd542d3f4","428bd82b-83a5-4f4b-8714-7b2cc35c8fa2"}) + .minimumNumberOfAmount(955) + .minimumNumberOfProducts(3536) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) + .applicableDaysOfWeek(new Integer[]{6,4,3,4}) + .blacklistedProductRules(new Object[]{items6,items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17,items18,items19,items20,items21,items22,items23}) .subject("money") - .setExclusive(false) - .pointExpiresInDays(1676) - .pointExpiresAt("2024-03-24T10:38:38.000000Z") - .status("disabled") - .description("r7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6Mis") - .bearPointShopId("9f337750-19a8-4dd4-81d8-003bd1fc6d76"); + .setExclusive(true) + .pointExpiresInDays(9930) + .pointExpiresAt("2022-08-30T01:55:41.000000Z") + .status("enabled") + .description("jPyMt7JZTknlcSLOAfgHki7iEUUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOlUDOeBSRiyqeameMaY0bgN8gTUkelv3hkGmk4iWQZAVaf") + .bearPointShopId("e79c5dcf-96bd-4e7f-ace1-e2621065dce9"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1015,13 +959,13 @@ void test15() throws ConnectionError, ProcessingError { } } @Test - void test16() throws ConnectionError, ProcessingError { + void test15() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); items3.addProperty("product_code", "4912345678904"); items3.addProperty("classification_code", "c123"); @@ -1032,11 +976,17 @@ void test16() throws ConnectionError, ProcessingError { items5.addProperty("product_code", "4912345678904"); items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); + items6.addProperty("is_multiply_by_count", true); + items6.addProperty("required_count", 2); JsonObject items7 = new JsonObject(); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); JsonObject items8 = new JsonObject(); items8.addProperty("point_amount", 5); items8.addProperty("point_amount_unit", "percent"); @@ -1058,9 +1008,8 @@ void test16() throws ConnectionError, ProcessingError { JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("subject_more_than_or_equal", 1000); + items11.addProperty("subject_less_than", 5000); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); @@ -1071,31 +1020,60 @@ void test16() throws ConnectionError, ProcessingError { items13.addProperty("point_amount_unit", "percent"); items13.addProperty("subject_more_than_or_equal", 1000); items13.addProperty("subject_less_than", 5000); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"013b0a99-f0c1-4450-bebc-59276a539257","fb6937d6-44fd-4d2c-a6b0-16a592992ac0","5991d5a1-f95c-4c8d-aeeb-5f4963c3c6b2","eaf58ae3-5c70-45db-a9da-d2726b4fe55f","f466ca77-d82f-4ce8-b4e0-198210a8cb90","da9952fd-9930-439d-8ea3-5f1ad49d075e","92bf133b-25fe-419a-b2e4-3a683b2a51d4","f42f6a9c-3382-4873-8990-bf189801a753","4286dffb-a63a-410c-b88f-69185e691ece","69340d9f-d0ba-4dbd-bea2-27d828808784"}) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(8003) - .minimumNumberOfAmount(7361) - .minimumNumberOfProducts(77) - .applicableTimeRanges(new Object[]{items,items2}) - .applicableDaysOfWeek(new Integer[]{3,0,3,0,2,4,6,0,2}) - .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7}) - .productBasedPointRules(new Object[]{items8,items9,items10,items11}) - .amountBasedPointRules(new Object[]{items12,items13}) - .subject("all") + .applicableShopIds(new String[]{"84c3cf1b-bede-4c13-85ee-876ca3c544a7","40e086a8-d86f-4968-b28e-a1a81b003f44","d1a71658-c98e-4a9e-a610-90f42d55e20c","2fec4fa8-aa38-4c9f-9a20-6b523d387bb3"}) + .minimumNumberForCombinationPurchase(2144) + .minimumNumberOfAmount(603) + .minimumNumberOfProducts(2831) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{4,3,4,5,0,0,1,1,3,3}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5}) + .productBasedPointRules(new Object[]{items6,items7,items8,items9,items10}) + .amountBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18,items19}) + .subject("money") .setExclusive(true) - .pointExpiresInDays(2597) - .pointExpiresAt("2020-03-27T07:03:19.000000Z") + .pointExpiresInDays(3055) + .pointExpiresAt("2024-02-22T04:38:31.000000Z") .status("disabled") - .description("9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO") - .bearPointShopId("64659729-edbc-420a-b542-9b973fb793a2"); + .description("9yHqEAThwDuq1zewsMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDI") + .bearPointShopId("47561eee-c400-4a33-9692-fd6993b28d5e"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1108,7 +1086,7 @@ void test16() throws ConnectionError, ProcessingError { } } @Test - void test17() throws ConnectionError, ProcessingError { + void test16() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -1119,214 +1097,118 @@ void test17() throws ConnectionError, ProcessingError { items3.addProperty("from", "12:00"); items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("point_amount", 5); + items5.addProperty("point_amount_unit", "percent"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("is_multiply_by_count", true); + items5.addProperty("required_count", 2); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("is_multiply_by_count", true); + items6.addProperty("required_count", 2); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); - items9.addProperty("from", "12:00"); - items9.addProperty("to", "23:59"); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); - items10.addProperty("from", "12:00"); - items10.addProperty("to", "23:59"); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); - JsonObject items12 = new JsonObject(); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("classification_code", "c123"); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); - JsonObject items20 = new JsonObject(); - items20.addProperty("point_amount", 5); - items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); - JsonObject items21 = new JsonObject(); - items21.addProperty("point_amount", 5); - items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("product_code", "4912345678904"); - items21.addProperty("is_multiply_by_count", true); - items21.addProperty("required_count", 2); - JsonObject items22 = new JsonObject(); - items22.addProperty("point_amount", 5); - items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("product_code", "4912345678904"); - items22.addProperty("is_multiply_by_count", true); - items22.addProperty("required_count", 2); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("product_code", "4912345678904"); - items23.addProperty("is_multiply_by_count", true); - items23.addProperty("required_count", 2); - JsonObject items24 = new JsonObject(); - items24.addProperty("point_amount", 5); - items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("product_code", "4912345678904"); - items24.addProperty("is_multiply_by_count", true); - items24.addProperty("required_count", 2); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("product_code", "4912345678904"); - items25.addProperty("is_multiply_by_count", true); - items25.addProperty("required_count", 2); - JsonObject items26 = new JsonObject(); - items26.addProperty("point_amount", 5); - items26.addProperty("point_amount_unit", "percent"); - items26.addProperty("subject_more_than_or_equal", 1000); - items26.addProperty("subject_less_than", 5000); - JsonObject items27 = new JsonObject(); - items27.addProperty("point_amount", 5); - items27.addProperty("point_amount_unit", "percent"); - items27.addProperty("subject_more_than_or_equal", 1000); - items27.addProperty("subject_less_than", 5000); - JsonObject items28 = new JsonObject(); - items28.addProperty("point_amount", 5); - items28.addProperty("point_amount_unit", "percent"); - items28.addProperty("subject_more_than_or_equal", 1000); - items28.addProperty("subject_less_than", 5000); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"93257eac-0ab0-4154-8961-2d3dc674afa1"}) - .maxPointAmount(2958) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(645) - .minimumNumberOfAmount(1165) - .minimumNumberOfProducts(8850) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) - .applicableDaysOfWeek(new Integer[]{2,3,5}) - .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15}) - .productBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23,items24,items25}) - .amountBasedPointRules(new Object[]{items26,items27,items28}) - .subject("all") + .applicableShopIds(new String[]{"f088a7f5-3e46-4251-b21e-218edd184ff2","4ad422ff-89e7-482a-8265-6820f516b8af","2a170bdf-a458-40fa-8af9-73cec6917d58","6727194e-e2fc-44f2-83bc-a6ce15c7763b","b6f1216b-8021-4889-a0e5-24575ff07a83","4506a6bc-168f-4ae1-85b9-26a834dd41aa","5b127040-8e5f-4885-a857-ca7305a32e88","6af645cc-7853-456f-90b6-84524dfa5987","8ab82d11-13e8-4c00-acd2-e72e349827f2"}) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(4353) + .minimumNumberOfAmount(3591) + .minimumNumberOfProducts(2277) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{5,4,1,3,4,1,3,4,0}) + .blacklistedProductRules(new Object[]{items4}) + .productBasedPointRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17,items18,items19}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(5055) - .pointExpiresAt("2023-03-03T21:23:26.000000Z") + .pointExpiresInDays(819) + .pointExpiresAt("2025-05-02T00:23:15.000000Z") .status("disabled") - .description("XXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WI") - .bearPointShopId("c977b7f4-0ac3-4dab-a539-5f828e954ed6"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test18() throws ConnectionError, ProcessingError { - JsonObject items = new JsonObject(); - items.addProperty("from", "12:00"); - items.addProperty("to", "23:59"); - JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); - JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); - JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); - JsonObject items5 = new JsonObject(); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); - JsonObject items6 = new JsonObject(); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); - JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); - JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); - JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); - Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" - ) - .applicableShopIds(new String[]{"51abeb94-00a2-4580-9060-efffddc839ff","05207684-2f8e-4267-894d-f85fd2d14713","ad351f28-6079-42e4-85e1-256c69d8c247","cb91613b-da37-48a9-b602-aa71a94545bc","2d4d922e-f794-4845-8fb4-85014d0b48d4","347c6031-7ff6-414f-b20c-b482317519cb","0253d98d-cf41-4a1e-b449-e277a7b67aa5","242f0104-27e7-4619-93b5-10c14521aa01","21b20767-a121-4069-898b-3d5b6172b4a7","25c78b2a-b46a-45d7-88d2-7179d5182ca9"}) - .maxTotalPointAmount(2297) - .maxPointAmount(3609) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(7151) - .minimumNumberOfAmount(2668) - .minimumNumberOfProducts(5412) - .applicableTimeRanges(new Object[]{items,items2}) - .applicableDaysOfWeek(new Integer[]{6,6,0,3,1,5,4}) - .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7}) - .productBasedPointRules(new Object[]{items8}) - .amountBasedPointRules(new Object[]{items9}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(906) - .pointExpiresAt("2021-04-08T00:19:48.000000Z") - .status("enabled") - .description("evW68NKpdkq0PMSo6iR11TAHpgNTXOx") - .bearPointShopId("87223ac6-6082-4aa1-bd26-17778d231371"); + .description("5SKsd06fYHa9pHdUJ2NkpD9XRln1g4q1AmzenaBAIYsPX5BEVEkSwN7Jl7UfMqNeIWxDQ5mYkDBp76iPlz0WyF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5q") + .bearPointShopId("aa69a97b-b1df-485d-bb6e-11be247c4c5f"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1339,7 +1221,7 @@ void test18() throws ConnectionError, ProcessingError { } } @Test - void test19() throws ConnectionError, ProcessingError { + void test17() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -1362,56 +1244,32 @@ void test19() throws ConnectionError, ProcessingError { items7.addProperty("from", "12:00"); items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("is_multiply_by_count", true); - items9.addProperty("required_count", 2); + items9.addProperty("from", "12:00"); + items9.addProperty("to", "23:59"); JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); + items10.addProperty("from", "12:00"); + items10.addProperty("to", "23:59"); JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("classification_code", "c123"); JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); + items16.addProperty("classification_code", "c123"); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); @@ -1427,41 +1285,68 @@ void test19() throws ConnectionError, ProcessingError { JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("subject_more_than_or_equal", 1000); - items20.addProperty("subject_less_than", 5000); + items20.addProperty("product_code", "4912345678904"); + items20.addProperty("is_multiply_by_count", true); + items20.addProperty("required_count", 2); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("product_code", "4912345678904"); + items21.addProperty("is_multiply_by_count", true); + items21.addProperty("required_count", 2); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("product_code", "4912345678904"); + items22.addProperty("is_multiply_by_count", true); + items22.addProperty("required_count", 2); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"b232d627-16e8-456b-8c93-628b4306078a","03643582-0b85-4f70-bd5a-acbe8f5418d6","194600a2-bb96-4c61-8468-100a21e1c3f0","a6a61e46-8c1c-4d13-bb02-e01bc25ee3d0"}) - .destPrivateMoneyId("46ab49fc-5d7f-4698-bc0c-101cd3803495") - .maxTotalPointAmount(8305) - .maxPointAmount(4500) + .applicableShopIds(new String[]{"21d43f83-4970-43ba-a5c7-8e03ffd469db","82837395-9793-4edd-b239-8187f6d18568","8b8f71c2-e497-43d7-a25e-73925d98dddc"}) + .maxPointAmount(1740) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(1072) - .minimumNumberOfAmount(6237) - .minimumNumberOfProducts(8931) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{3,6,6,4,1,5,2,4}) - .blacklistedProductRules(new Object[]{items8}) - .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16,items17,items18}) - .amountBasedPointRules(new Object[]{items19,items20}) + .minimumNumberForCombinationPurchase(1352) + .minimumNumberOfAmount(1087) + .minimumNumberOfProducts(8182) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{3,4,0,4,3,2,0,5}) + .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16}) + .productBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22}) + .amountBasedPointRules(new Object[]{items23,items24,items25}) .subject("all") .setExclusive(false) - .pointExpiresInDays(2086) - .pointExpiresAt("2020-04-13T12:51:34.000000Z") + .pointExpiresInDays(6245) + .pointExpiresAt("2022-03-31T02:44:54.000000Z") .status("enabled") - .description("vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsP") - .bearPointShopId("3cf579ef-5eb2-42f6-abbf-6ce36c4fbcda"); + .description("REmG3PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2P") + .bearPointShopId("c4516790-737d-44cd-9f48-dfb0912d1ec8"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1474,10 +1359,7 @@ void test19() throws ConnectionError, ProcessingError { } } @Test - void test20() throws ConnectionError, ProcessingError { - JsonObject applicable_account_metadata = new JsonObject(); - applicable_account_metadata.addProperty("key", "sex"); - applicable_account_metadata.addProperty("value", "male"); + void test18() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -1491,14 +1373,14 @@ void test20() throws ConnectionError, ProcessingError { items4.addProperty("from", "12:00"); items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); @@ -1521,8 +1403,11 @@ void test20() throws ConnectionError, ProcessingError { items14.addProperty("product_code", "4912345678904"); items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("classification_code", "c123"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); @@ -1550,39 +1435,33 @@ void test20() throws ConnectionError, ProcessingError { JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("product_code", "4912345678904"); - items21.addProperty("is_multiply_by_count", true); - items21.addProperty("required_count", 2); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); JsonObject items22 = new JsonObject(); items22.addProperty("point_amount", 5); items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("product_code", "4912345678904"); - items22.addProperty("is_multiply_by_count", true); - items22.addProperty("required_count", 2); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); JsonObject items23 = new JsonObject(); items23.addProperty("point_amount", 5); items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("product_code", "4912345678904"); - items23.addProperty("is_multiply_by_count", true); - items23.addProperty("required_count", 2); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); JsonObject items24 = new JsonObject(); items24.addProperty("point_amount", 5); items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("product_code", "4912345678904"); - items24.addProperty("is_multiply_by_count", true); - items24.addProperty("required_count", 2); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); JsonObject items25 = new JsonObject(); items25.addProperty("point_amount", 5); items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("product_code", "4912345678904"); - items25.addProperty("is_multiply_by_count", true); - items25.addProperty("required_count", 2); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); JsonObject items26 = new JsonObject(); items26.addProperty("point_amount", 5); items26.addProperty("point_amount_unit", "percent"); @@ -1603,65 +1482,33 @@ void test20() throws ConnectionError, ProcessingError { items29.addProperty("point_amount_unit", "percent"); items29.addProperty("subject_more_than_or_equal", 1000); items29.addProperty("subject_less_than", 5000); - JsonObject items30 = new JsonObject(); - items30.addProperty("point_amount", 5); - items30.addProperty("point_amount_unit", "percent"); - items30.addProperty("subject_more_than_or_equal", 1000); - items30.addProperty("subject_less_than", 5000); - JsonObject items31 = new JsonObject(); - items31.addProperty("point_amount", 5); - items31.addProperty("point_amount_unit", "percent"); - items31.addProperty("subject_more_than_or_equal", 1000); - items31.addProperty("subject_less_than", 5000); - JsonObject items32 = new JsonObject(); - items32.addProperty("point_amount", 5); - items32.addProperty("point_amount_unit", "percent"); - items32.addProperty("subject_more_than_or_equal", 1000); - items32.addProperty("subject_less_than", 5000); - JsonObject items33 = new JsonObject(); - items33.addProperty("point_amount", 5); - items33.addProperty("point_amount_unit", "percent"); - items33.addProperty("subject_more_than_or_equal", 1000); - items33.addProperty("subject_less_than", 5000); - JsonObject items34 = new JsonObject(); - items34.addProperty("point_amount", 5); - items34.addProperty("point_amount_unit", "percent"); - items34.addProperty("subject_more_than_or_equal", 1000); - items34.addProperty("subject_less_than", 5000); - JsonObject items35 = new JsonObject(); - items35.addProperty("point_amount", 5); - items35.addProperty("point_amount_unit", "percent"); - items35.addProperty("subject_more_than_or_equal", 1000); - items35.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"a08b534b-8484-46a8-a1bb-6f9c4bfe0466","983dbe34-9037-4930-8d44-0c77ec02ff91","95bfea86-93b5-4959-9f9e-edacaeca4091","6b4dd3c9-f1b6-4dd3-a585-ec15dd16ed41","e5232fa6-bda2-4dad-a6a4-b027501160cf","56530d05-43c2-4294-842b-03c2ef74dce7","adf90152-c595-4b96-bc14-c19147994541"}) - .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("bd69dc67-93ed-4eea-85de-e7f86a483e90") - .maxTotalPointAmount(5697) - .maxPointAmount(5312) + .applicableShopIds(new String[]{"99a50a01-40a7-4d41-9db7-43ddf8a27eed"}) + .maxTotalPointAmount(7203) + .maxPointAmount(8413) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(328) - .minimumNumberOfAmount(7935) - .minimumNumberOfProducts(8451) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{3,1,3,3,6,1,1,2}) - .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15}) - .productBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23,items24,items25}) - .amountBasedPointRules(new Object[]{items26,items27,items28,items29,items30,items31,items32,items33,items34,items35}) - .subject("money") + .minimumNumberForCombinationPurchase(7758) + .minimumNumberOfAmount(5032) + .minimumNumberOfProducts(5229) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{1,5,2,1,6,0,0,1,1,3}) + .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13,items14}) + .productBasedPointRules(new Object[]{items15,items16,items17,items18,items19}) + .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24,items25,items26,items27,items28,items29}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(9158) - .pointExpiresAt("2021-06-30T00:37:58.000000Z") + .pointExpiresInDays(8057) + .pointExpiresAt("2023-02-25T07:25:43.000000Z") .status("enabled") - .description("dsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQi") - .bearPointShopId("6a264609-5e2b-4175-967f-0ffab378b03a"); + .description("6pdyrj7YEb5BIb") + .bearPointShopId("6508b6d0-8a7e-4777-815a-0a57a4211b22"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1674,49 +1521,55 @@ void test20() throws ConnectionError, ProcessingError { } } @Test - void test21() throws ConnectionError, ProcessingError { - JsonObject applicable_transaction_metadata = new JsonObject(); - applicable_transaction_metadata.addProperty("key", "rank"); - applicable_transaction_metadata.addProperty("value", "bronze"); - JsonObject applicable_account_metadata = new JsonObject(); - applicable_account_metadata.addProperty("key", "sex"); - applicable_account_metadata.addProperty("value", "male"); + void test19() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); @@ -1738,110 +1591,61 @@ void test21() throws ConnectionError, ProcessingError { JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("product_code", "4912345678904"); - items21.addProperty("is_multiply_by_count", true); - items21.addProperty("required_count", 2); - JsonObject items22 = new JsonObject(); - items22.addProperty("point_amount", 5); - items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("product_code", "4912345678904"); - items22.addProperty("is_multiply_by_count", true); - items22.addProperty("required_count", 2); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("subject_more_than_or_equal", 1000); - items23.addProperty("subject_less_than", 5000); - JsonObject items24 = new JsonObject(); - items24.addProperty("point_amount", 5); - items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("subject_more_than_or_equal", 1000); - items24.addProperty("subject_less_than", 5000); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("subject_more_than_or_equal", 1000); - items25.addProperty("subject_less_than", 5000); - JsonObject items26 = new JsonObject(); - items26.addProperty("point_amount", 5); - items26.addProperty("point_amount_unit", "percent"); - items26.addProperty("subject_more_than_or_equal", 1000); - items26.addProperty("subject_less_than", 5000); - JsonObject items27 = new JsonObject(); - items27.addProperty("point_amount", 5); - items27.addProperty("point_amount_unit", "percent"); - items27.addProperty("subject_more_than_or_equal", 1000); - items27.addProperty("subject_less_than", 5000); - JsonObject items28 = new JsonObject(); - items28.addProperty("point_amount", 5); - items28.addProperty("point_amount_unit", "percent"); - items28.addProperty("subject_more_than_or_equal", 1000); - items28.addProperty("subject_less_than", 5000); - JsonObject items29 = new JsonObject(); - items29.addProperty("point_amount", 5); - items29.addProperty("point_amount_unit", "percent"); - items29.addProperty("subject_more_than_or_equal", 1000); - items29.addProperty("subject_less_than", 5000); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"844a8264-bd0d-4254-8026-68169967945b","cb04ac60-18a1-45b2-8690-31be9e408a59","1efed1d6-2656-4c3b-8ea1-d667e1c0920b"}) - .applicableTransactionMetadata(applicable_transaction_metadata) - .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("ffce731d-2d5d-496b-a8c7-5c5b04dde23e") - .maxTotalPointAmount(6026) - .maxPointAmount(4578) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(2379) - .minimumNumberOfAmount(9491) - .minimumNumberOfProducts(8536) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .applicableDaysOfWeek(new Integer[]{0,6,2}) - .blacklistedProductRules(new Object[]{items9,items10,items11,items12}) - .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19,items20,items21,items22}) - .amountBasedPointRules(new Object[]{items23,items24,items25,items26,items27,items28,items29}) + .applicableShopIds(new String[]{"50c5d9ae-8c2d-4c8b-a474-05cbb212fdba"}) + .destPrivateMoneyId("90fbc3ab-bfa7-49e5-971b-f882405c49cd") + .maxTotalPointAmount(2863) + .maxPointAmount(2242) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(2919) + .minimumNumberOfAmount(9111) + .minimumNumberOfProducts(9173) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{3,5,2,4,2,1,1,4,0}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15}) + .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21}) .subject("money") .setExclusive(true) - .pointExpiresInDays(5123) - .pointExpiresAt("2021-05-25T21:20:11.000000Z") + .pointExpiresInDays(9938) + .pointExpiresAt("2023-12-18T17:40:29.000000Z") .status("disabled") - .description("L1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iB") - .bearPointShopId("c444f0ef-22c7-4555-b1cf-7b8d299f1103"); + .description("TU6ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9q8fRCMt2pzYekawpUouvYHKlj0GUL0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68S") + .bearPointShopId("0fafc670-c6ad-4116-a4ce-53c55442b1c7"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1854,10 +1658,7 @@ void test21() throws ConnectionError, ProcessingError { } } @Test - void test22() throws ConnectionError, ProcessingError { - JsonObject applicable_transaction_metadata = new JsonObject(); - applicable_transaction_metadata.addProperty("key", "rank"); - applicable_transaction_metadata.addProperty("value", "bronze"); + void test20() throws ConnectionError, ProcessingError { JsonObject applicable_account_metadata = new JsonObject(); applicable_account_metadata.addProperty("key", "sex"); applicable_account_metadata.addProperty("value", "male"); @@ -1865,29 +1666,20 @@ void test22() throws ConnectionError, ProcessingError { items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); items3.addProperty("product_code", "4912345678904"); items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); @@ -1903,71 +1695,81 @@ void test22() throws ConnectionError, ProcessingError { JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); + JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .applicableShopIds(new String[]{"4f0246df-5981-4a55-8021-9ea7c2f0947d","b7608b6d-dc0b-4a1d-be49-376c277e163a","93096406-0a81-48b7-896a-d53d55d41502","b9fb856c-949c-49d7-b8c0-bd99496fd9f2","f2ce2c66-a203-4794-9045-d74b3efcd84d","c7e7875f-e5d1-4982-b8c6-74a79edfd99e","94f85643-a573-47b0-a88f-f736768c87b2","dee49b50-fd4c-4b62-b539-f9794e81ad2d","cb1ab366-3ffa-406e-a9f7-6e1a36eda71a"}) - .budgetCapsAmount(1117682233) - .applicableTransactionMetadata(applicable_transaction_metadata) + .applicableShopIds(new String[]{"ef2e2aeb-2ae6-4aed-abd3-555c00ed965d","bc08fe96-0d16-4bb3-9203-962066e52c55","f0e35d8b-1620-41f9-b935-388435e412da","ee5db26e-36b4-4131-ae7c-1fd68fc756fa"}) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("e10a412e-5c5a-4b60-aeaa-c8b7ec6a4c54") - .maxTotalPointAmount(688) - .maxPointAmount(491) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(6104) - .minimumNumberOfAmount(6401) - .minimumNumberOfProducts(4191) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{2,0}) - .blacklistedProductRules(new Object[]{items2,items3}) - .productBasedPointRules(new Object[]{items4,items5,items6,items7,items8}) - .amountBasedPointRules(new Object[]{items9,items10,items11}) + .destPrivateMoneyId("68c4f08b-f35f-4fcc-9b4b-440dbad5c191") + .maxTotalPointAmount(13) + .maxPointAmount(5974) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(6789) + .minimumNumberOfAmount(6964) + .minimumNumberOfProducts(878) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{0,6,6,2,5,5,6,5,5,3}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6}) + .productBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12}) + .amountBasedPointRules(new Object[]{items13,items14,items15,items16,items17}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(3171) - .pointExpiresAt("2020-09-03T19:49:23.000000Z") + .setExclusive(false) + .pointExpiresInDays(5959) + .pointExpiresAt("2021-02-24T23:12:05.000000Z") .status("enabled") - .description("AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw") - .bearPointShopId("fb7cdc35-e47e-4404-92b8-763347af603c"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test23() throws ConnectionError, ProcessingError { - Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" - ) - .blacklistedShopIds(new String[]{"84d572d7-385f-4c45-8269-026999279bdc","1f34dacf-d196-4ac6-bb10-39f552b52577","774f7d6e-0e80-413f-871b-c9ad0aa54f65"}); + .description("mt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yVQ") + .bearPointShopId("fa6c5110-3d5b-4ed0-984e-6cc382c6ed89"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1980,21 +1782,157 @@ void test23() throws ConnectionError, ProcessingError { } } @Test - void test24() throws ConnectionError, ProcessingError { - Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" - ) - .blacklistedShopIds(new String[]{"2ffa9795-4e88-49d4-af15-8fe662ab2757","e33ad3c8-bbb1-4216-b0f1-27716deb26ec","05dfcc03-205e-41c9-a860-72bda745bb1d","4eb5cc68-de08-4a5d-8f46-8900eff9f69d","37ff34cb-2beb-4892-8fee-b650bcf44e9b","b8360552-3a17-4365-b367-1d88d07e82ff","267ce1b3-5c4f-41f1-9920-0fcdc42a667c","1a622886-367f-4a44-b640-d0d9986c95a7","f8385137-f91c-402f-8266-ff1d4e75b52a"}) - .bearPointShopId("7a002bff-5110-4189-acba-506f86423770"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { + void test21() throws ConnectionError, ProcessingError { + JsonObject applicable_transaction_metadata = new JsonObject(); + applicable_transaction_metadata.addProperty("key", "rank"); + applicable_transaction_metadata.addProperty("value", "bronze"); + JsonObject applicable_account_metadata = new JsonObject(); + applicable_account_metadata.addProperty("key", "sex"); + applicable_account_metadata.addProperty("value", "male"); + JsonObject items = new JsonObject(); + items.addProperty("from", "12:00"); + items.addProperty("to", "23:59"); + JsonObject items2 = new JsonObject(); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); + JsonObject items3 = new JsonObject(); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); + JsonObject items4 = new JsonObject(); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); + JsonObject items5 = new JsonObject(); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); + JsonObject items6 = new JsonObject(); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); + JsonObject items7 = new JsonObject(); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); + JsonObject items8 = new JsonObject(); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); + JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); + JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); + JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); + JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("product_code", "4912345678904"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + Request request = new CreateCampaign( + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" + ) + .applicableShopIds(new String[]{"12555ea4-9910-4bd1-8514-aac656b6b8c9","b0a1d23e-c66b-45a0-8a62-46f7f6e58be8","e92f7204-4ea5-4199-9fa5-bb4fe878de39","e79a03a3-957f-47d2-8adb-7c121a761218","b7df87a1-67e9-49d2-a43e-2825b150d5b7","c1f3e707-fd5b-44ae-adf8-0c8e03bb38ee","a7553937-f86b-42ab-99fe-e2478a8aaa7a"}) + .applicableTransactionMetadata(applicable_transaction_metadata) + .applicableAccountMetadata(applicable_account_metadata) + .destPrivateMoneyId("ecdc6ad3-09e8-4821-be05-1d6127fd9b23") + .maxTotalPointAmount(3549) + .maxPointAmount(6907) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(3041) + .minimumNumberOfAmount(2851) + .minimumNumberOfProducts(1770) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{0,1,0}) + .blacklistedProductRules(new Object[]{items5,items6,items7}) + .productBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16}) + .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(9285) + .pointExpiresAt("2025-08-01T22:05:56.000000Z") + .status("disabled") + .description("NqfsVRi3zxzsVzVJLxpF9uCjOUSNMH9fWh27PiOpr3HMMXsb4Lh4b0Gko8iE0P3Cu0AOaTlKzyVFYYoK00acoGlEqYYGWZUMgU5LJ8n") + .bearPointShopId("50141b0e-8a92-4f65-9508-32e4f5270c26"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { System.out.println(e.getType()); System.out.println(e.getMessage()); System.out.println(e.getRawJson()); @@ -2003,18 +1941,104 @@ void test24() throws ConnectionError, ProcessingError { } } @Test - void test25() throws ConnectionError, ProcessingError { + void test22() throws ConnectionError, ProcessingError { + JsonObject applicable_transaction_metadata = new JsonObject(); + applicable_transaction_metadata.addProperty("key", "rank"); + applicable_transaction_metadata.addProperty("value", "bronze"); + JsonObject applicable_account_metadata = new JsonObject(); + applicable_account_metadata.addProperty("key", "sex"); + applicable_account_metadata.addProperty("value", "male"); + JsonObject items = new JsonObject(); + items.addProperty("from", "12:00"); + items.addProperty("to", "23:59"); + JsonObject items2 = new JsonObject(); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); + JsonObject items3 = new JsonObject(); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); + JsonObject items4 = new JsonObject(); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); + JsonObject items5 = new JsonObject(); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); + JsonObject items6 = new JsonObject(); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); + JsonObject items7 = new JsonObject(); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); + JsonObject items8 = new JsonObject(); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); + JsonObject items9 = new JsonObject(); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); + JsonObject items10 = new JsonObject(); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("classification_code", "c123"); + JsonObject items11 = new JsonObject(); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("classification_code", "c123"); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); + JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"9bd596dc-834c-4730-839f-beb6bbe9ed84"}) - .description("OQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0Pi") - .bearPointShopId("71a17849-07a4-432f-9ede-3a0f1b86900c"); + .applicableShopIds(new String[]{"3ab983c5-c76b-40fb-8cb6-c0a3192cf400","0ad91ed6-8809-4ac3-bc96-cd62952fa53e","e54bee2c-99aa-41da-9096-df6c32342add"}) + .budgetCapsAmount(1374773504) + .applicableTransactionMetadata(applicable_transaction_metadata) + .applicableAccountMetadata(applicable_account_metadata) + .destPrivateMoneyId("a6d628af-5d59-413e-9143-c57d761b1a3b") + .maxTotalPointAmount(2523) + .maxPointAmount(3164) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(5772) + .minimumNumberOfAmount(3633) + .minimumNumberOfProducts(6105) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{1,1,6,1,3,3,6,5}) + .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11}) + .productBasedPointRules(new Object[]{items12,items13}) + .amountBasedPointRules(new Object[]{items14,items15,items16}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(3398) + .pointExpiresAt("2021-10-06T22:51:24.000000Z") + .status("disabled") + .description("laTUskxDWTi4syFdijXYZ6Fkp0v2rObj5KP7CaX5R9O7hnOQMfDj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq2k3ETquM3SQu") + .bearPointShopId("8aa7567f-d0ea-471d-8057-a546dd47e997"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2027,19 +2051,16 @@ void test25() throws ConnectionError, ProcessingError { } } @Test - void test26() throws ConnectionError, ProcessingError { + void test23() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"c3c5b45d-469e-449b-93b5-cb3fac6bf834","b954e7a1-5a97-41f1-b613-e1bcedf52e36","4da4dda9-5469-4c3f-940f-3e29f581cb05","38687c32-3b80-485c-ae5d-cf589c4b62d7","d24aedbf-a73f-42eb-bcf6-4ce6d9dd33a1","e7e42a16-aef5-4e80-b3a9-55219b4e4545","13564bb3-b906-4113-85ed-b88263854de1","51a0d8e7-7852-4a5a-8058-5b424489d476"}) - .status("enabled") - .description("QN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZ") - .bearPointShopId("a2a0fd3f-b088-4098-a639-962b3e8ea54b"); + .blacklistedShopIds(new String[]{"08fbf392-1e2b-43c5-830b-692fa0eaea31","823f6cb5-1e15-4133-8a9d-c42370296b2d","4887f8c2-507e-4934-89b7-dc82a89d00fc","a69f2e47-2d83-4eb8-a7a3-231d0067a019","35bd0bc1-9f27-4149-869f-bdf27c2ed4b9"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2052,20 +2073,17 @@ void test26() throws ConnectionError, ProcessingError { } } @Test - void test27() throws ConnectionError, ProcessingError { + void test24() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"8e70ae16-6d32-47e3-93f6-196390b4fc12","cc99fe73-15e7-4066-b032-a6b845fd7692","be42004e-b150-45fb-9771-4deff073f936","62280b58-133a-4c71-ac97-23023d73b071","810b7e23-b2f2-4309-92b9-45ecd92aeae7","b4064298-c6f0-4a93-b4ed-337a0ccab7b4","a00569ee-2079-41d6-be2f-5fd3548ab6d5","8e74a286-9eac-4844-a4d3-998c1c7e9b05","c0dbc732-c4ab-4672-8750-15c9805d592a"}) - .pointExpiresAt("2023-12-05T23:19:49.000000Z") - .status("enabled") - .description("8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQ") - .bearPointShopId("80a8fc80-fd55-4c93-b998-0fd7f9549461"); + .blacklistedShopIds(new String[]{"3f41615b-9516-4cb1-8142-0247a84e1334","ba31f051-9e28-43b6-9898-265337057b1a","04016731-ee9e-48c1-bd7b-105a7086c809","6fa30838-6186-4431-a5e5-cbabee87acb9","deecf5a3-6946-46b1-bc5e-259b9966d47a","8301b9e1-13ae-489e-9c65-0912e2b7230c","2cb3652d-3085-4155-87f0-d072bd4d5cd2","4d19cd5e-9a1d-4f74-90f0-0c5bed9971da","5afb7b67-e2da-40fa-924f-b15d9d1f50de","f67ec3a2-30de-4429-8668-de0637c40a05"}) + .bearPointShopId("d19c13ad-3508-4676-8f2e-5a0f340c46fd"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2078,21 +2096,43 @@ void test27() throws ConnectionError, ProcessingError { } } @Test - void test28() throws ConnectionError, ProcessingError { + void test25() throws ConnectionError, ProcessingError { + Request request = new CreateCampaign( + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" + ) + .blacklistedShopIds(new String[]{"b66940c9-0f0c-428b-876a-77031f816b0b","f20bec56-35cb-4715-a9e5-2637b89182bb","c5c3855b-308e-4861-8d37-37d112cc838e","73af6322-b229-43de-99e9-e5acd56c0623","3462313f-4e4e-4fa9-9dbe-613ac5c5bac0","6d92b912-7a03-41b4-8c27-b8fb3c6e5690","72f2de0a-ebf5-422b-9f8f-f6239512c32b"}) + .description("tB8ZF5mN9clYyKl8cU") + .bearPointShopId("7a938499-9073-4817-9977-46db57f32297"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test26() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"28052ae7-8bc2-480b-a14c-27574a003619","ba1d9ecd-9290-4e98-aa57-59f09d0fabde","b8560974-6fea-47e7-bf66-cdb04bf643c6","73af1f69-a15a-41da-8344-6193e5170c60","1fa20991-44db-4d45-8aae-f3ba72b04596","73f83ac5-c04f-45b2-bcfb-7050cc7526da","0bdca3ad-03dc-40c1-a0b9-68e29a6de9e9"}) - .pointExpiresInDays(650) - .pointExpiresAt("2022-02-17T13:36:31.000000Z") + .blacklistedShopIds(new String[]{"9e95e426-ba29-4ebf-9dc3-0bd762138bfd","7a8e4d27-690d-4bb8-b29c-0248c7459656","cedffd63-440b-488a-9d2b-58a40073fa6d","498ece57-7a5a-4aff-b390-64852d5917a0","954c56ad-0f6a-4811-8b1d-3a2d96a81e89","a1535914-eaec-4bab-a39b-281b850c671b","271cc5fb-375c-4126-8654-d1b03f716166","465e89b7-cf12-4b64-a964-fb3d920ff2a7","19f05cb2-0af0-4099-99a0-31802a7bebbc"}) .status("disabled") - .description("PG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG") - .bearPointShopId("711f3035-2733-4d2d-b1dd-915a9e3153d7"); + .description("fVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSBniTv") + .bearPointShopId("8e14b9e7-2b69-4883-8663-b1abb7e16ce6"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2105,22 +2145,20 @@ void test28() throws ConnectionError, ProcessingError { } } @Test - void test29() throws ConnectionError, ProcessingError { + void test27() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"ef038d00-71d9-437f-827a-c302bda45210","dd995ea0-7047-4b21-93ef-9b20f3262115","686f5b98-f82a-4023-b540-3075b4b5f542","78575cdd-da58-43b6-a1cc-41fd700be2dc","465eedd5-4ad5-4b5f-8ca0-5cd5c354b3c2"}) - .setExclusive(false) - .pointExpiresInDays(4603) - .pointExpiresAt("2024-05-24T17:09:19.000000Z") + .blacklistedShopIds(new String[]{"8ba1779b-d420-4d57-8c66-50237c25fb58","99fc3514-5c3b-436f-888b-35fdc8172bdc","27d06004-cc6f-4de2-9486-329ab44a008a","41808157-fc32-460d-aa06-38b727d6a604","b3f1f844-529b-4992-a9af-7a948612e132","6812a83b-b591-412e-913d-fc7a3f949ad3","0b3781f3-1cea-4a92-9b78-641b15456cd3"}) + .pointExpiresAt("2023-07-29T09:11:38.000000Z") .status("disabled") - .description("18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZ") - .bearPointShopId("37819da9-3c01-43aa-a863-cd5ac5da415f"); + .description("C2TKE3m70u0i2E7e3WCog3HknLhb4mGHjaX24jJAlJFQ82MhyQQoipgFNSux0jeobdQD1VXjUggH7qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcsFhnnSlOPQSKVW9") + .bearPointShopId("37916138-e0a5-4bde-b047-2b5d41a287f1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2133,23 +2171,21 @@ void test29() throws ConnectionError, ProcessingError { } } @Test - void test30() throws ConnectionError, ProcessingError { + void test28() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"a4d90487-3da1-4d38-8d92-3d0a15471975","a768db53-e814-456c-9652-b99181a68223","2c3854af-a2a2-423e-961c-23cbe7004b67","d1282607-0b43-4053-b049-4e0f16308aaa","f95b3ccc-7eb1-47bb-b359-a95993c79575","a2dc8b83-66c7-41ce-b1b7-8a72aa7dc4e6","3df21a54-4e39-4828-a284-3aee2f6e9e9b","e3587d4f-698c-4525-b4a9-fbfc20b7c87d","65221743-3fbb-4402-935d-20e97f703a18"}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(7926) - .pointExpiresAt("2020-05-21T11:57:51.000000Z") + .blacklistedShopIds(new String[]{"6033ff2d-9301-44bd-9680-b1857eeab4e6","ea1cba8f-4650-4375-abf6-b3dbdf558a9c"}) + .pointExpiresInDays(2134) + .pointExpiresAt("2022-07-12T00:34:40.000000Z") .status("enabled") - .description("7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbip") - .bearPointShopId("1666ee43-0f86-4c8f-8898-be15675033bb"); + .description("EFV6mDyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1Cipp2CPMRifbrHbdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK") + .bearPointShopId("df944c1c-842b-449c-bc9f-b1b319b632f9"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2162,59 +2198,51 @@ void test30() throws ConnectionError, ProcessingError { } } @Test - void test31() throws ConnectionError, ProcessingError { - JsonObject items = new JsonObject(); - items.addProperty("point_amount", 5); - items.addProperty("point_amount_unit", "percent"); - items.addProperty("subject_more_than_or_equal", 1000); - items.addProperty("subject_less_than", 5000); - JsonObject items2 = new JsonObject(); - items2.addProperty("point_amount", 5); - items2.addProperty("point_amount_unit", "percent"); - items2.addProperty("subject_more_than_or_equal", 1000); - items2.addProperty("subject_less_than", 5000); - JsonObject items3 = new JsonObject(); - items3.addProperty("point_amount", 5); - items3.addProperty("point_amount_unit", "percent"); - items3.addProperty("subject_more_than_or_equal", 1000); - items3.addProperty("subject_less_than", 5000); - JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); - items4.addProperty("subject_more_than_or_equal", 1000); - items4.addProperty("subject_less_than", 5000); - JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); - items5.addProperty("subject_more_than_or_equal", 1000); - items5.addProperty("subject_less_than", 5000); - JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); - items6.addProperty("subject_more_than_or_equal", 1000); - items6.addProperty("subject_less_than", 5000); - JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("subject_more_than_or_equal", 1000); - items7.addProperty("subject_less_than", 5000); + void test29() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"0e947921-1506-4dac-9075-0d74cffe94ef","b4e1096b-3dd8-42d0-8871-c330032a8631","81c75320-9ab6-4663-858a-a1ef975565dd","857e9913-01f1-4527-a6bb-483e61ada4e9","36fa6fc1-8593-4280-a813-055ed3d4fd8b","8a0b69a9-1c29-47d5-9706-5b27f10f2ad8","413d6c78-9e91-40ff-a346-d59dc58fd3df","b8a9e22b-b9d2-427a-a40f-9b3c5ce58991","0141503f-c0ce-43b5-953d-d98d85dd6745"}) - .amountBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .subject("money") + .blacklistedShopIds(new String[]{"2ff1065c-de01-48ef-8303-54f60eb46388","f785faa2-b9e4-4cea-9762-9fb72eff9bf5"}) + .setExclusive(false) + .pointExpiresInDays(7155) + .pointExpiresAt("2025-09-15T12:52:46.000000Z") + .status("disabled") + .description("PondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w3aEMSDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClPPAh3ydu7juMaO7kq") + .bearPointShopId("09445847-eeaf-4eea-af61-a1c01e923c29"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test30() throws ConnectionError, ProcessingError { + Request request = new CreateCampaign( + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" + ) + .blacklistedShopIds(new String[]{"67a00b11-bf98-48c1-9300-6c51f10046eb","d114c0f1-a7bb-40f9-b7b2-4a1486b6b751","3982f886-5434-445d-bd35-c1bc26c26b2a","22eea303-df99-4af0-a9ed-ccb189d89798","49ba8fb6-2f94-4c90-bd82-d0a9053e67a0","c34a7cfb-9f6a-4a8f-8591-24222f496457","4c4fd882-7759-4fb8-8cdd-3c9ffa2c188c"}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(1136) - .pointExpiresAt("2020-03-08T17:47:40.000000Z") - .status("enabled") - .description("uqVIJLmWFeGJqYbyf9xqe") - .bearPointShopId("52140f2a-5ad6-4eb9-8caa-aa9afb4f11e7"); + .pointExpiresInDays(4671) + .pointExpiresAt("2025-04-20T03:01:54.000000Z") + .status("disabled") + .description("uAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWS") + .bearPointShopId("f4951ce5-0e0f-4fe9-904a-cedc51aa8f95"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2227,101 +2255,44 @@ void test31() throws ConnectionError, ProcessingError { } } @Test - void test32() throws ConnectionError, ProcessingError { + void test31() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("point_amount", 5); items.addProperty("point_amount_unit", "percent"); - items.addProperty("product_code", "4912345678904"); - items.addProperty("is_multiply_by_count", true); - items.addProperty("required_count", 2); + items.addProperty("subject_more_than_or_equal", 1000); + items.addProperty("subject_less_than", 5000); JsonObject items2 = new JsonObject(); items2.addProperty("point_amount", 5); items2.addProperty("point_amount_unit", "percent"); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("is_multiply_by_count", true); - items2.addProperty("required_count", 2); + items2.addProperty("subject_more_than_or_equal", 1000); + items2.addProperty("subject_less_than", 5000); JsonObject items3 = new JsonObject(); items3.addProperty("point_amount", 5); items3.addProperty("point_amount_unit", "percent"); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("is_multiply_by_count", true); - items3.addProperty("required_count", 2); + items3.addProperty("subject_more_than_or_equal", 1000); + items3.addProperty("subject_less_than", 5000); JsonObject items4 = new JsonObject(); items4.addProperty("point_amount", 5); items4.addProperty("point_amount_unit", "percent"); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); - JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); - JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); - JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("subject_more_than_or_equal", 1000); - items7.addProperty("subject_less_than", 5000); - JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); - JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); - JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); - JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); - JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); - JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); - JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); + items4.addProperty("subject_more_than_or_equal", 1000); + items4.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"b2154984-e7b6-4ed4-b4ef-c512c9123897","7a13c3ef-f7d2-4cf8-9c4b-a42bafde2411","5f8ae4be-73b5-4acb-9c0c-17a68e56fdde","8a453185-a152-4d18-b2ad-a83307d7b329","c13f8516-0228-4d86-a8fb-c48e507dbdb8"}) - .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6}) - .amountBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14}) + .blacklistedShopIds(new String[]{"5dadbd14-896b-433b-9be1-c927b21a5a00","426864ce-f92b-4e47-9ed5-d289db3a6019","fc1d3311-ab94-4baa-95c6-c8f97581b91b","599e3fdd-9a33-43b7-a8e6-b17bc29b1215","d6e6375b-95ba-4356-9f25-5ec2a4331a7c"}) + .amountBasedPointRules(new Object[]{items,items2,items3,items4}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(9934) - .pointExpiresAt("2022-06-02T04:13:13.000000Z") + .setExclusive(false) + .pointExpiresInDays(8702) + .pointExpiresAt("2024-04-15T10:09:43.000000Z") .status("disabled") - .description("CN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s") - .bearPointShopId("fe8eee24-94b2-434a-b6b7-34b0dc7a8681"); + .description("WkgEaSRxikajDhky1e9MUM8ZY9eEBDTjFI") + .bearPointShopId("27e10884-e931-48b8-afbf-b67ddfd0f1bf"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2334,137 +2305,61 @@ void test32() throws ConnectionError, ProcessingError { } } @Test - void test33() throws ConnectionError, ProcessingError { - JsonObject items = new JsonObject(); - items.addProperty("product_code", "4912345678904"); - items.addProperty("classification_code", "c123"); - JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); - JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); - JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); - JsonObject items5 = new JsonObject(); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); - JsonObject items6 = new JsonObject(); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); - JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); - JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); - JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("is_multiply_by_count", true); - items9.addProperty("required_count", 2); - JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); - JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); - JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); - JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); - JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); - JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("subject_more_than_or_equal", 1000); - items16.addProperty("subject_less_than", 5000); - JsonObject items17 = new JsonObject(); - items17.addProperty("point_amount", 5); - items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("subject_more_than_or_equal", 1000); - items17.addProperty("subject_less_than", 5000); - JsonObject items18 = new JsonObject(); - items18.addProperty("point_amount", 5); - items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("subject_more_than_or_equal", 1000); - items18.addProperty("subject_less_than", 5000); - JsonObject items19 = new JsonObject(); - items19.addProperty("point_amount", 5); - items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); - JsonObject items20 = new JsonObject(); - items20.addProperty("point_amount", 5); - items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("subject_more_than_or_equal", 1000); - items20.addProperty("subject_less_than", 5000); - JsonObject items21 = new JsonObject(); - items21.addProperty("point_amount", 5); - items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("subject_more_than_or_equal", 1000); - items21.addProperty("subject_less_than", 5000); - JsonObject items22 = new JsonObject(); - items22.addProperty("point_amount", 5); - items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("subject_more_than_or_equal", 1000); - items22.addProperty("subject_less_than", 5000); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("subject_more_than_or_equal", 1000); - items23.addProperty("subject_less_than", 5000); - JsonObject items24 = new JsonObject(); - items24.addProperty("point_amount", 5); - items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("subject_more_than_or_equal", 1000); - items24.addProperty("subject_less_than", 5000); + void test32() throws ConnectionError, ProcessingError { + JsonObject items = new JsonObject(); + items.addProperty("point_amount", 5); + items.addProperty("point_amount_unit", "percent"); + items.addProperty("product_code", "4912345678904"); + items.addProperty("is_multiply_by_count", true); + items.addProperty("required_count", 2); + JsonObject items2 = new JsonObject(); + items2.addProperty("point_amount", 5); + items2.addProperty("point_amount_unit", "percent"); + items2.addProperty("subject_more_than_or_equal", 1000); + items2.addProperty("subject_less_than", 5000); + JsonObject items3 = new JsonObject(); + items3.addProperty("point_amount", 5); + items3.addProperty("point_amount_unit", "percent"); + items3.addProperty("subject_more_than_or_equal", 1000); + items3.addProperty("subject_less_than", 5000); + JsonObject items4 = new JsonObject(); + items4.addProperty("point_amount", 5); + items4.addProperty("point_amount_unit", "percent"); + items4.addProperty("subject_more_than_or_equal", 1000); + items4.addProperty("subject_less_than", 5000); + JsonObject items5 = new JsonObject(); + items5.addProperty("point_amount", 5); + items5.addProperty("point_amount_unit", "percent"); + items5.addProperty("subject_more_than_or_equal", 1000); + items5.addProperty("subject_less_than", 5000); + JsonObject items6 = new JsonObject(); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); + items6.addProperty("subject_more_than_or_equal", 1000); + items6.addProperty("subject_less_than", 5000); + JsonObject items7 = new JsonObject(); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); + items7.addProperty("subject_more_than_or_equal", 1000); + items7.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"bc86f729-dbb8-4be8-9c6e-1cbdadfb6f34"}) - .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15}) - .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23,items24}) + .blacklistedShopIds(new String[]{"34dddcc0-5e52-4112-b0e7-95c3488afbc0","454cda1d-a319-4214-9faf-bcefe1ade744","a23ecd69-1d01-4cbd-a87b-91c55739a55d"}) + .productBasedPointRules(new Object[]{items}) + .amountBasedPointRules(new Object[]{items2,items3,items4,items5,items6,items7}) .subject("all") .setExclusive(false) - .pointExpiresInDays(1998) - .pointExpiresAt("2024-04-05T06:31:47.000000Z") - .status("enabled") - .description("n521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwx") - .bearPointShopId("99787046-2dc2-4758-a66e-fe26e557e7ba"); + .pointExpiresInDays(4734) + .pointExpiresAt("2026-01-09T22:55:49.000000Z") + .status("disabled") + .description("3LMtzPm5pmHiztzTLcjSeNyveotr1SbLY9f9RM3h2SXQ") + .bearPointShopId("1f2c7fe1-27ad-4041-87ed-9336f2bf2569"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2477,7 +2372,7 @@ void test33() throws ConnectionError, ProcessingError { } } @Test - void test34() throws ConnectionError, ProcessingError { + void test33() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("product_code", "4912345678904"); items.addProperty("classification_code", "c123"); @@ -2488,17 +2383,11 @@ void test34() throws ConnectionError, ProcessingError { items3.addProperty("product_code", "4912345678904"); items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); items6.addProperty("point_amount", 5); items6.addProperty("point_amount_unit", "percent"); @@ -2526,60 +2415,27 @@ void test34() throws ConnectionError, ProcessingError { JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); - JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); - JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); - JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); - JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); - JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("subject_more_than_or_equal", 1000); - items16.addProperty("subject_less_than", 5000); + items10.addProperty("subject_more_than_or_equal", 1000); + items10.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"a373a745-6e9d-4160-9bac-c3a20c08ad71","c9acc803-0a36-4197-87e3-fe4e6eec6b50","13fe81ae-fdc3-4820-929a-6f45e8d3b956","cfaee0db-75fb-400f-903e-26a4c985a0f1","8f76d4b4-4336-4c40-8764-17c9968aff50","eb9b5625-c62c-484a-ad23-95386b5237e1"}) - .applicableDaysOfWeek(new Integer[]{5,0,1,2}) - .blacklistedProductRules(new Object[]{items,items2,items3}) - .productBasedPointRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11}) - .amountBasedPointRules(new Object[]{items12,items13,items14,items15,items16}) + .blacklistedShopIds(new String[]{"1f55eb17-5ed9-49d6-af16-ab3a0ab0153c","83284ed0-ee51-4693-98a0-d6570278e466","b599de24-e756-4fb6-bb32-6dd57a0f7913","6c7b6b68-b4fe-4b7c-94c7-aa4a15dece22"}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5}) + .productBasedPointRules(new Object[]{items6,items7,items8,items9}) + .amountBasedPointRules(new Object[]{items10}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(7370) - .pointExpiresAt("2022-12-15T05:27:20.000000Z") - .status("enabled") - .description("YUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQG") - .bearPointShopId("5dfa95aa-4bc8-4ea7-b0ba-158cef863a29"); + .setExclusive(true) + .pointExpiresInDays(3296) + .pointExpiresAt("2025-03-03T11:17:13.000000Z") + .status("disabled") + .description("LOsA2Q2Z23Mwd98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjU") + .bearPointShopId("f3673244-5333-4c42-bc8e-46d761aa47e6"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2592,22 +2448,22 @@ void test34() throws ConnectionError, ProcessingError { } } @Test - void test35() throws ConnectionError, ProcessingError { + void test34() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); - items.addProperty("from", "12:00"); - items.addProperty("to", "23:59"); + items.addProperty("product_code", "4912345678904"); + items.addProperty("classification_code", "c123"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); items6.addProperty("product_code", "4912345678904"); items6.addProperty("classification_code", "c123"); @@ -2656,39 +2512,81 @@ void test35() throws ConnectionError, ProcessingError { JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("subject_more_than_or_equal", 1000); - items16.addProperty("subject_less_than", 5000); + items16.addProperty("product_code", "4912345678904"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("subject_more_than_or_equal", 1000); - items17.addProperty("subject_less_than", 5000); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"4a475c33-7578-4ad0-91fa-efa1c28ec250","2b58ffa5-26ce-483b-82bb-a78781092abe","67ab8d97-84bf-4d5a-8dba-c0e1e5e0b3b3","23e760e3-be54-4ced-bbaa-a810b1e951d4","3d19673f-7df3-403d-ac5f-185478850926","70d9ee44-fca9-4005-88fa-08dd8a213471","8eaec1b0-9f85-4f07-a2a5-5cb0e4dbe450"}) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) - .applicableDaysOfWeek(new Integer[]{3}) - .blacklistedProductRules(new Object[]{items6,items7,items8}) - .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14}) - .amountBasedPointRules(new Object[]{items15,items16,items17}) - .subject("all") + .blacklistedShopIds(new String[]{"4a0bb7ce-3ba9-4e33-a827-af700e166f1f","d9d7d6cf-76e2-4b42-9e3d-2ee22916ae1b","c58b3e26-2bfe-4464-bab0-9f573696cb06","a076a8d0-a9c0-4321-8f99-ed4309cea58c","740ade96-62f5-4571-9068-aeb9f597e830"}) + .applicableDaysOfWeek(new Integer[]{6}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16,items17}) + .amountBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24,items25}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(9700) - .pointExpiresAt("2023-04-26T22:54:50.000000Z") - .status("enabled") - .description("EUxwAJXNLOLDUjAEUO9KUSGzbSRmd") - .bearPointShopId("74cd1581-dfa3-49e0-a1a4-ff363808f0b6"); + .pointExpiresInDays(8022) + .pointExpiresAt("2024-01-22T16:10:56.000000Z") + .status("disabled") + .description("efdvvGn56xgq") + .bearPointShopId("8e473ee3-ecc9-44ce-837b-0afe32559e30"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2701,7 +2599,7 @@ void test35() throws ConnectionError, ProcessingError { } } @Test - void test36() throws ConnectionError, ProcessingError { + void test35() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -2709,81 +2607,99 @@ void test36() throws ConnectionError, ProcessingError { items2.addProperty("from", "12:00"); items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("from", "12:00"); + items9.addProperty("to", "23:59"); JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); + items10.addProperty("from", "12:00"); + items10.addProperty("to", "23:59"); JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("classification_code", "c123"); + JsonObject items14 = new JsonObject(); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("classification_code", "c123"); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("product_code", "4912345678904"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"7a214bc8-bdbc-4d7f-8df8-e69581d342a6","c3643096-8263-46b4-9177-c3406034222d","b5b25866-8b30-4856-99f3-ae63e52da02f","94e9f769-43da-4e9c-b198-aa56c0d00e0f","312dfd1a-ca67-4cb9-83a3-ead955b23c7f","f20a201b-e52a-438d-b4ca-64f98c7ca482","772c6427-868b-41f8-bcd5-cb7133bcd701","a9bca16d-72a1-4db9-aadc-c3d14a688cba","a3eb8f1c-6fd9-425d-bc9d-fbd83cc05416","9ff32fa9-b391-451f-9c39-ade5fe27234f"}) - .minimumNumberOfProducts(4307) - .applicableTimeRanges(new Object[]{items,items2}) - .applicableDaysOfWeek(new Integer[]{0,2,0,4,0,6,0}) - .blacklistedProductRules(new Object[]{items3,items4}) - .productBasedPointRules(new Object[]{items5,items6,items7}) - .amountBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13}) - .subject("all") + .blacklistedShopIds(new String[]{"0e803104-9acf-4115-96d4-a6faa95960ad","69cd024f-bfd9-4fa7-9cd5-33d3f781b934"}) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{5,5,3,6,1,5,2,4,1,4}) + .blacklistedProductRules(new Object[]{items11,items12,items13,items14}) + .productBasedPointRules(new Object[]{items15,items16}) + .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21}) + .subject("money") .setExclusive(true) - .pointExpiresInDays(1547) - .pointExpiresAt("2020-12-16T05:35:03.000000Z") + .pointExpiresInDays(1292) + .pointExpiresAt("2024-04-28T10:36:43.000000Z") .status("enabled") - .description("jexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1") - .bearPointShopId("7fcfb2da-cf11-462f-87ae-782da38bcf7d"); + .description("G4VhCAXdvLcusNkP92lE") + .bearPointShopId("9bd41548-ed16-423c-811a-dc60f2dca8f4"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2796,7 +2712,7 @@ void test36() throws ConnectionError, ProcessingError { } } @Test - void test37() throws ConnectionError, ProcessingError { + void test36() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -2807,162 +2723,122 @@ void test37() throws ConnectionError, ProcessingError { items3.addProperty("from", "12:00"); items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); - items9.addProperty("from", "12:00"); - items9.addProperty("to", "23:59"); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("classification_code", "c123"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); JsonObject items16 = new JsonObject(); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("classification_code", "c123"); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); JsonObject items17 = new JsonObject(); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("classification_code", "c123"); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("classification_code", "c123"); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("product_code", "4912345678904"); - items21.addProperty("is_multiply_by_count", true); - items21.addProperty("required_count", 2); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); JsonObject items22 = new JsonObject(); items22.addProperty("point_amount", 5); items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("product_code", "4912345678904"); - items22.addProperty("is_multiply_by_count", true); - items22.addProperty("required_count", 2); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("product_code", "4912345678904"); - items23.addProperty("is_multiply_by_count", true); - items23.addProperty("required_count", 2); - JsonObject items24 = new JsonObject(); - items24.addProperty("point_amount", 5); - items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("product_code", "4912345678904"); - items24.addProperty("is_multiply_by_count", true); - items24.addProperty("required_count", 2); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("product_code", "4912345678904"); - items25.addProperty("is_multiply_by_count", true); - items25.addProperty("required_count", 2); - JsonObject items26 = new JsonObject(); - items26.addProperty("point_amount", 5); - items26.addProperty("point_amount_unit", "percent"); - items26.addProperty("product_code", "4912345678904"); - items26.addProperty("is_multiply_by_count", true); - items26.addProperty("required_count", 2); - JsonObject items27 = new JsonObject(); - items27.addProperty("point_amount", 5); - items27.addProperty("point_amount_unit", "percent"); - items27.addProperty("product_code", "4912345678904"); - items27.addProperty("is_multiply_by_count", true); - items27.addProperty("required_count", 2); - JsonObject items28 = new JsonObject(); - items28.addProperty("point_amount", 5); - items28.addProperty("point_amount_unit", "percent"); - items28.addProperty("subject_more_than_or_equal", 1000); - items28.addProperty("subject_less_than", 5000); - JsonObject items29 = new JsonObject(); - items29.addProperty("point_amount", 5); - items29.addProperty("point_amount_unit", "percent"); - items29.addProperty("subject_more_than_or_equal", 1000); - items29.addProperty("subject_less_than", 5000); - JsonObject items30 = new JsonObject(); - items30.addProperty("point_amount", 5); - items30.addProperty("point_amount_unit", "percent"); - items30.addProperty("subject_more_than_or_equal", 1000); - items30.addProperty("subject_less_than", 5000); - JsonObject items31 = new JsonObject(); - items31.addProperty("point_amount", 5); - items31.addProperty("point_amount_unit", "percent"); - items31.addProperty("subject_more_than_or_equal", 1000); - items31.addProperty("subject_less_than", 5000); - JsonObject items32 = new JsonObject(); - items32.addProperty("point_amount", 5); - items32.addProperty("point_amount_unit", "percent"); - items32.addProperty("subject_more_than_or_equal", 1000); - items32.addProperty("subject_less_than", 5000); - JsonObject items33 = new JsonObject(); - items33.addProperty("point_amount", 5); - items33.addProperty("point_amount_unit", "percent"); - items33.addProperty("subject_more_than_or_equal", 1000); - items33.addProperty("subject_less_than", 5000); - JsonObject items34 = new JsonObject(); - items34.addProperty("point_amount", 5); - items34.addProperty("point_amount_unit", "percent"); - items34.addProperty("subject_more_than_or_equal", 1000); - items34.addProperty("subject_less_than", 5000); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"a581fa65-a77f-4cb6-a753-a519a8a87998","146464b6-d6fd-49a2-87f8-528259326d3e","827a7531-e65b-49c4-b14d-74cf43c211f8","bd8bb343-00dd-448d-bf3f-a8c7e05151be","da143655-4b5c-4db3-9a66-69bd5f4f16ff","7dbb5fb6-28ba-4541-8d89-105082197cae","be89184a-c67e-4aee-820e-fb9975d20d00"}) - .minimumNumberOfAmount(8447) - .minimumNumberOfProducts(7069) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .applicableDaysOfWeek(new Integer[]{1,1,0,0,2,1,1,3,0,6}) - .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18}) - .productBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25,items26,items27}) - .amountBasedPointRules(new Object[]{items28,items29,items30,items31,items32,items33,items34}) - .subject("all") + .blacklistedShopIds(new String[]{"ca977f72-920e-4008-a482-03b5e7147789","b0591775-8c0c-4d98-8d53-206753a853b7","a4be762d-2128-479d-86a6-52dc19f9176d"}) + .minimumNumberOfProducts(4170) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{0,1,6,1,0,4,5,4,5}) + .blacklistedProductRules(new Object[]{items4,items5,items6,items7}) + .productBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15}) + .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(5346) - .pointExpiresAt("2020-11-19T19:29:32.000000Z") - .status("enabled") - .description("ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6") - .bearPointShopId("dc513694-9421-47f8-a25a-8ccd6655641d"); + .pointExpiresInDays(7939) + .pointExpiresAt("2025-06-06T14:45:04.000000Z") + .status("disabled") + .description("XPoR6V6EH9oG2E8mJwg74tJd") + .bearPointShopId("acbb96a1-5079-48ca-9035-ffccd19a71ec"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2975,7 +2851,7 @@ void test37() throws ConnectionError, ProcessingError { } } @Test - void test38() throws ConnectionError, ProcessingError { + void test37() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -2983,11 +2859,11 @@ void test38() throws ConnectionError, ProcessingError { items2.addProperty("from", "12:00"); items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); items5.addProperty("product_code", "4912345678904"); items5.addProperty("classification_code", "c123"); @@ -3045,8 +2921,9 @@ void test38() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("subject_more_than_or_equal", 1000); - items17.addProperty("subject_less_than", 5000); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); @@ -3088,29 +2965,28 @@ void test38() throws ConnectionError, ProcessingError { items25.addProperty("subject_more_than_or_equal", 1000); items25.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"da1fb68f-4266-44e3-b03f-b1aacf385a75","93d591dd-0377-47f0-b0c9-02a5c391acce"}) - .minimumNumberForCombinationPurchase(9392) - .minimumNumberOfAmount(9974) - .minimumNumberOfProducts(9246) - .applicableTimeRanges(new Object[]{items,items2,items3,items4}) - .applicableDaysOfWeek(new Integer[]{2,3}) - .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10}) - .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16}) - .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25}) - .subject("all") + .blacklistedShopIds(new String[]{"25976c62-aa5c-4d32-9bfc-b25e13335439","eebdeae7-d8e6-4ad5-aba4-632a2ba07a51"}) + .minimumNumberOfAmount(6761) + .minimumNumberOfProducts(6294) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{6,5,6,0}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17}) + .amountBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24,items25}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(2638) - .pointExpiresAt("2024-04-28T00:47:57.000000Z") - .status("disabled") - .description("qZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5") - .bearPointShopId("39b59148-a7d7-4d5b-a049-7e119e987df1"); + .pointExpiresInDays(1610) + .pointExpiresAt("2025-03-07T05:36:20.000000Z") + .status("enabled") + .description("MLHDmfb2965KcWooPsLAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aRw08aQ0rfHosccmXhG1yeE5aq4GKVSCfP0") + .bearPointShopId("9161eae0-e901-4361-afd0-3dc9d0db8c47"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3123,28 +2999,28 @@ void test38() throws ConnectionError, ProcessingError { } } @Test - void test39() throws ConnectionError, ProcessingError { + void test38() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); JsonObject items6 = new JsonObject(); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); @@ -3152,11 +3028,8 @@ void test39() throws ConnectionError, ProcessingError { items9.addProperty("product_code", "4912345678904"); items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); + items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); @@ -3208,33 +3081,54 @@ void test39() throws ConnectionError, ProcessingError { JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("product_code", "4912345678904"); + items20.addProperty("is_multiply_by_count", true); + items20.addProperty("required_count", 2); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"e79989ce-4f08-4803-9da5-9822750f3a55","414bc4af-c76f-4f4d-8508-441229a5c600","b4b65b9a-af2e-47e9-bfb9-1177683b4e07","de8701ce-dcc9-483c-a15d-a83b8697ffca","a7149faf-58db-49f9-89b2-7cf0595fbbc1","569a6c97-3ae0-49c4-92f3-dc32f22118c0","906edd42-5734-4d5e-91f9-b0161d346742","7909bfb1-41c7-4fa9-915a-27170967bc02","c9b2ce13-7d54-4f6b-ae02-f204bb504334"}) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(9266) - .minimumNumberOfAmount(1216) - .minimumNumberOfProducts(8355) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{6,2,1,2,2,3,5,0,1}) - .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9}) - .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18}) - .amountBasedPointRules(new Object[]{items19}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(7764) - .pointExpiresAt("2023-07-03T06:40:54.000000Z") + .blacklistedShopIds(new String[]{"6c21a5ce-c5bf-4191-b504-e1e9f1cee9c2","b19497cd-5a8c-4d40-95b7-3f7226135abd","e6bee0e6-1c2d-494c-a636-12846d30ebc6","78066185-0868-47f0-8fd2-7ad9477340f7","df4425b5-e08d-47fb-b7ec-6d859f756213","54b1de07-b828-44a3-b81a-67386f89ebcc"}) + .minimumNumberForCombinationPurchase(9371) + .minimumNumberOfAmount(1570) + .minimumNumberOfProducts(363) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{6,4,3,4,3}) + .blacklistedProductRules(new Object[]{items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18,items19,items20}) + .amountBasedPointRules(new Object[]{items21,items22,items23}) + .subject("all") + .setExclusive(false) + .pointExpiresInDays(592) + .pointExpiresAt("2022-07-02T00:35:57.000000Z") .status("enabled") - .description("nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn") - .bearPointShopId("9ce4d227-cd39-42d6-8aea-c89ba01a9d5f"); + .description("XSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JEew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVU") + .bearPointShopId("11c3b777-d2c6-4ea3-95b1-b261fcdeedac"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3247,7 +3141,7 @@ void test39() throws ConnectionError, ProcessingError { } } @Test - void test40() throws ConnectionError, ProcessingError { + void test39() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -3255,11 +3149,11 @@ void test40() throws ConnectionError, ProcessingError { items2.addProperty("from", "12:00"); items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); items5.addProperty("product_code", "4912345678904"); items5.addProperty("classification_code", "c123"); @@ -3317,9 +3211,8 @@ void test40() throws ConnectionError, ProcessingError { JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); @@ -3360,32 +3253,36 @@ void test40() throws ConnectionError, ProcessingError { items26.addProperty("point_amount_unit", "percent"); items26.addProperty("subject_more_than_or_equal", 1000); items26.addProperty("subject_less_than", 5000); + JsonObject items27 = new JsonObject(); + items27.addProperty("point_amount", 5); + items27.addProperty("point_amount_unit", "percent"); + items27.addProperty("subject_more_than_or_equal", 1000); + items27.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"47922744-f089-4b31-9eb7-5d16cb1f736b","e780702e-5d6a-43a8-8e3a-d129e9aee72f","4df90ff2-cf25-407e-b2be-851c23f97db9","100e4803-3235-4a6e-873d-fd0e74245d7b","3a714afb-294d-4822-922f-5108dcb76c93","384ec2ec-c332-48ab-9045-19c48d14c916"}) - .maxPointAmount(8988) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(8088) - .minimumNumberOfAmount(5579) - .minimumNumberOfProducts(8043) - .applicableTimeRanges(new Object[]{items,items2,items3,items4}) - .applicableDaysOfWeek(new Integer[]{3,4,1,4,5,3,3,1,1,1}) - .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12}) - .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18}) - .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25,items26}) + .blacklistedShopIds(new String[]{"15b939b1-f4c6-4f42-8a94-4edae88017c2","09adccf9-4a73-4b83-af46-e6e7d6311194","247e4021-c7c8-4efe-a407-9a0078a06038","69762b54-96e9-4ef9-9841-67fd2839e8e1","73864b85-2afe-498f-809e-3ac617e83434"}) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(5846) + .minimumNumberOfAmount(7687) + .minimumNumberOfProducts(3540) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{2,1}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8,items9,items10,items11,items12}) + .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17}) + .amountBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24,items25,items26,items27}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(9944) - .pointExpiresAt("2020-09-09T05:23:52.000000Z") - .status("disabled") - .description("dNFDbX7fss0ltmaJnxsla") - .bearPointShopId("89f5a3d5-94cc-4537-9fd2-cef20bd60cf8"); + .setExclusive(true) + .pointExpiresInDays(7425) + .pointExpiresAt("2023-02-17T07:50:14.000000Z") + .status("enabled") + .description("iyJ302sQl233vCftoqwC5tymvF1K23X2uYu46ypSW9PxtiaID1SUCfz9y") + .bearPointShopId("0be3a0c5-78ab-46e5-bb6c-244d92b97994"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3398,19 +3295,19 @@ void test40() throws ConnectionError, ProcessingError { } } @Test - void test41() throws ConnectionError, ProcessingError { + void test40() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); items5.addProperty("product_code", "4912345678904"); items5.addProperty("classification_code", "c123"); @@ -3430,8 +3327,11 @@ void test41() throws ConnectionError, ProcessingError { items10.addProperty("product_code", "4912345678904"); items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); @@ -3447,85 +3347,34 @@ void test41() throws ConnectionError, ProcessingError { JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); - JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); - JsonObject items17 = new JsonObject(); - items17.addProperty("point_amount", 5); - items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); - JsonObject items18 = new JsonObject(); - items18.addProperty("point_amount", 5); - items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); - JsonObject items19 = new JsonObject(); - items19.addProperty("point_amount", 5); - items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); - JsonObject items20 = new JsonObject(); - items20.addProperty("point_amount", 5); - items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("subject_more_than_or_equal", 1000); - items20.addProperty("subject_less_than", 5000); - JsonObject items21 = new JsonObject(); - items21.addProperty("point_amount", 5); - items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("subject_more_than_or_equal", 1000); - items21.addProperty("subject_less_than", 5000); - JsonObject items22 = new JsonObject(); - items22.addProperty("point_amount", 5); - items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("subject_more_than_or_equal", 1000); - items22.addProperty("subject_less_than", 5000); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("subject_more_than_or_equal", 1000); - items23.addProperty("subject_less_than", 5000); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"b0e10ae2-16c2-4f01-bf22-cd9a02680d01","90fad016-1378-4f05-99b5-3517fd97613a"}) - .maxTotalPointAmount(5316) - .maxPointAmount(9116) + .blacklistedShopIds(new String[]{"00d8e498-faef-4790-87c6-baabe8618d39","bd803961-a932-4c17-b62b-9727a64a530d","b1bcfbbf-96a3-47e3-b252-9fa0669690cc","2bbbb548-0bfa-4113-91d7-3bac3da5c4bb"}) + .maxPointAmount(3117) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(9571) - .minimumNumberOfAmount(3193) - .minimumNumberOfProducts(9699) - .applicableTimeRanges(new Object[]{items,items2,items3,items4}) - .applicableDaysOfWeek(new Integer[]{6,2,5,4,1,6}) - .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11}) - .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18}) - .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23}) + .minimumNumberForCombinationPurchase(2013) + .minimumNumberOfAmount(4132) + .minimumNumberOfProducts(4432) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{2,6,3,2,4}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12,items13}) + .amountBasedPointRules(new Object[]{items14}) .subject("all") .setExclusive(true) - .pointExpiresInDays(6173) - .pointExpiresAt("2021-09-26T21:28:04.000000Z") - .status("enabled") - .description("wUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6o") - .bearPointShopId("0653e022-a97e-4b1a-8ff0-4e552948b319"); + .pointExpiresInDays(4409) + .pointExpiresAt("2023-10-31T17:49:02.000000Z") + .status("disabled") + .description("zZ3pUKHHeXuuwg12Ygg3AsTOryINKyRmJ3gWCDcmsuvkMrJePtGFhv4aIw1aGtGR3fEQezBo8XnXONHGXDM") + .bearPointShopId("f384a3a7-75e3-4a1c-8fec-f338acb6e774"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3538,7 +3387,7 @@ void test41() throws ConnectionError, ProcessingError { } } @Test - void test42() throws ConnectionError, ProcessingError { + void test41() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -3558,117 +3407,174 @@ void test42() throws ConnectionError, ProcessingError { items6.addProperty("from", "12:00"); items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("subject_more_than_or_equal", 1000); + items10.addProperty("subject_less_than", 5000); JsonObject items11 = new JsonObject(); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); + items11.addProperty("subject_more_than_or_equal", 1000); + items11.addProperty("subject_less_than", 5000); JsonObject items12 = new JsonObject(); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("subject_more_than_or_equal", 1000); + items12.addProperty("subject_less_than", 5000); JsonObject items13 = new JsonObject(); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); - JsonObject items17 = new JsonObject(); - items17.addProperty("point_amount", 5); - items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("subject_more_than_or_equal", 1000); - items17.addProperty("subject_less_than", 5000); - JsonObject items18 = new JsonObject(); - items18.addProperty("point_amount", 5); - items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("subject_more_than_or_equal", 1000); - items18.addProperty("subject_less_than", 5000); - JsonObject items19 = new JsonObject(); - items19.addProperty("point_amount", 5); - items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); - JsonObject items20 = new JsonObject(); - items20.addProperty("point_amount", 5); - items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("subject_more_than_or_equal", 1000); - items20.addProperty("subject_less_than", 5000); - JsonObject items21 = new JsonObject(); - items21.addProperty("point_amount", 5); - items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("subject_more_than_or_equal", 1000); - items21.addProperty("subject_less_than", 5000); - JsonObject items22 = new JsonObject(); - items22.addProperty("point_amount", 5); - items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("subject_more_than_or_equal", 1000); - items22.addProperty("subject_less_than", 5000); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("subject_more_than_or_equal", 1000); - items23.addProperty("subject_less_than", 5000); - JsonObject items24 = new JsonObject(); - items24.addProperty("point_amount", 5); - items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("subject_more_than_or_equal", 1000); - items24.addProperty("subject_less_than", 5000); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("subject_more_than_or_equal", 1000); - items25.addProperty("subject_less_than", 5000); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); + Request request = new CreateCampaign( + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" + ) + .blacklistedShopIds(new String[]{"f15cbae8-f056-4b89-bb23-03e4b45a9824","eee6cac2-16bd-4ca1-b54b-095b44a8645b","2709540b-93eb-4e50-b8d0-f2be5d1c5dba","caa1c748-62f6-400f-afbf-fadae80f74c5","eb8c65ed-db25-46ed-9be3-b0ddfce4f142","6d3c41bb-01fc-4810-8bcb-c66b138cbd7e"}) + .maxTotalPointAmount(7039) + .maxPointAmount(8948) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(453) + .minimumNumberOfAmount(6548) + .minimumNumberOfProducts(1219) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) + .applicableDaysOfWeek(new Integer[]{4,0,2,4,4,5,2,2,2,3}) + .blacklistedProductRules(new Object[]{items7}) + .productBasedPointRules(new Object[]{items8,items9}) + .amountBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(833) + .pointExpiresAt("2020-07-16T07:05:03.000000Z") + .status("enabled") + .description("36YY6mrG9Y2ztoKUUUx5B1bSO8xEgnoe60dnWTCVmm3x115QsBZT6dCGgqZsePkl6iY0bdXM6Nza2rTctUJQmh0gNd3qkWY4lVW5zCUF3zWzIdrHm6OsiyHBxsWBtx4G7cLViMByCBNzcDCX5bbsPzVUGeD2BWp2XU") + .bearPointShopId("e755e9ce-a2c5-4619-b341-41f41f6e96c0"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test42() throws ConnectionError, ProcessingError { + JsonObject items = new JsonObject(); + items.addProperty("from", "12:00"); + items.addProperty("to", "23:59"); + JsonObject items2 = new JsonObject(); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); + JsonObject items3 = new JsonObject(); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); + JsonObject items4 = new JsonObject(); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); + JsonObject items5 = new JsonObject(); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); + JsonObject items6 = new JsonObject(); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); + JsonObject items7 = new JsonObject(); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); + JsonObject items8 = new JsonObject(); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); + JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); + JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("subject_more_than_or_equal", 1000); + items10.addProperty("subject_less_than", 5000); + JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); + items11.addProperty("subject_more_than_or_equal", 1000); + items11.addProperty("subject_less_than", 5000); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("subject_more_than_or_equal", 1000); + items12.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"b79f5e0c-8c6e-4d83-92d8-65b5d7624170","06bdac61-4165-4586-a626-3b7062f0a4f2","7311a218-4257-4574-9053-1cc7dc7fb4da","d934d772-f2cc-4a39-bb3f-27fdaaa9d2d5","5f4abd24-e372-446d-8114-face24d66925","555cca3a-c512-4202-9593-760c0e11d198","9e3a20b3-33f6-4046-a75a-1eaa6ad77c9e","1d8c0311-8736-4f18-8388-e9398c43f776","a0b38e77-03d8-4ea5-9200-13c9a811e605"}) - .destPrivateMoneyId("e8ad3462-cb5f-46ca-ac60-37b7b0378779") - .maxTotalPointAmount(9645) - .maxPointAmount(1169) + .blacklistedShopIds(new String[]{"f468f16a-546c-4288-a997-8baadf968894","9e533d76-a86a-438b-975d-c4b0ca86761a","f9f61529-fd4e-40e8-a19f-228ad94d077b","9329ff6c-d106-4802-b322-27e19940dff6","01d69757-dfd9-4e5a-a4f5-c0f5639b23af","ced0d78a-c906-452a-9879-170881ceae07"}) + .destPrivateMoneyId("5fa785ee-9df6-4768-b035-26074990f5ad") + .maxTotalPointAmount(9829) + .maxPointAmount(450) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(7676) - .minimumNumberOfAmount(8960) - .minimumNumberOfProducts(307) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .applicableDaysOfWeek(new Integer[]{3,6,0,1,2,4}) - .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13}) - .productBasedPointRules(new Object[]{items14,items15,items16}) - .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25}) + .minimumNumberForCombinationPurchase(6511) + .minimumNumberOfAmount(6639) + .minimumNumberOfProducts(684) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{3}) + .blacklistedProductRules(new Object[]{items4,items5,items6}) + .productBasedPointRules(new Object[]{items7,items8,items9}) + .amountBasedPointRules(new Object[]{items10,items11,items12}) .subject("money") - .setExclusive(false) - .pointExpiresInDays(4060) - .pointExpiresAt("2024-08-25T16:06:07.000000Z") - .status("enabled") - .description("63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0") - .bearPointShopId("ff40b6e4-c8ff-49c5-a8cf-c79204df1027"); + .setExclusive(true) + .pointExpiresInDays(1658) + .pointExpiresAt("2023-12-09T21:17:41.000000Z") + .status("disabled") + .description("yb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qpLKYfd3JbJX5QcdKyJ1DmsToKu4w1tRUaP7awM87Mt7bWysOyzqkBr") + .bearPointShopId("e86e982a-0047-4061-ba4d-93ea5e1dca0e"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3689,46 +3595,38 @@ void test43() throws ConnectionError, ProcessingError { items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("point_amount", 5); - items3.addProperty("point_amount_unit", "percent"); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("is_multiply_by_count", true); - items3.addProperty("required_count", 2); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); - items6.addProperty("subject_more_than_or_equal", 1000); - items6.addProperty("subject_less_than", 5000); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("subject_more_than_or_equal", 1000); - items7.addProperty("subject_less_than", 5000); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); JsonObject items8 = new JsonObject(); items8.addProperty("point_amount", 5); items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); @@ -3754,35 +3652,55 @@ void test43() throws ConnectionError, ProcessingError { items14.addProperty("point_amount_unit", "percent"); items14.addProperty("subject_more_than_or_equal", 1000); items14.addProperty("subject_less_than", 5000); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"5ecdcd80-da1c-4abb-89bc-4e25539e4b17","1c349b22-1ff1-4d4f-a3c6-be879f38494c","80845371-9c6e-4e0c-b2a0-205a8905f6de","0baf9c17-7f75-484c-afeb-f29741ca25de","310197b5-3fc7-4ca6-a846-69328965d846"}) + .blacklistedShopIds(new String[]{"a8ad2a62-8fb1-46a6-b3f5-e7e782ccb271","379d8215-32ea-410e-9bc5-1c9c42d13ae0","a98e98e5-4165-4710-ab95-4633110a39c4","99608865-ecc9-48c4-8266-3c1c6cb116cb","268fab73-8d83-438b-9203-ab3c7c4b3bdf","3f9dd321-0042-412b-9ce2-1ed97b80da4c","66f0656b-f5d5-4a32-94de-9ce606d56fca"}) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("03777006-54d5-46f5-b97b-a844b8d0a8d6") - .maxTotalPointAmount(5436) - .maxPointAmount(8339) + .destPrivateMoneyId("c4b021d8-eefa-4875-8942-e9aaf3aadc60") + .maxTotalPointAmount(6898) + .maxPointAmount(8765) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(7643) - .minimumNumberOfAmount(4442) - .minimumNumberOfProducts(6502) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{3}) - .blacklistedProductRules(new Object[]{items2}) - .productBasedPointRules(new Object[]{items3,items4,items5}) - .amountBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13,items14}) - .subject("all") + .minimumNumberForCombinationPurchase(3880) + .minimumNumberOfAmount(7742) + .minimumNumberOfProducts(2312) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{0,2,5,5,6,1,3}) + .blacklistedProductRules(new Object[]{items5,items6}) + .productBasedPointRules(new Object[]{items7,items8,items9}) + .amountBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(6020) - .pointExpiresAt("2022-06-22T08:49:37.000000Z") - .status("enabled") - .description("DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS7") - .bearPointShopId("f326f101-4a5f-480e-94fe-50a26de542b0"); + .pointExpiresInDays(3065) + .pointExpiresAt("2022-01-09T17:16:04.000000Z") + .status("disabled") + .description("Xwuc649dznjsqwxML0aHpiMuFL917lUTrE8EACTMWkW53gnqE0TT1OD00WYy85d5RKAlbrPQ0st0t7yJcv8GqBqgGEHafl1jNP9k7uydClg9A7an27PrVxBqiE9YWo8xjmzBGJVwTTanAXyFjLag3gPPvlq0FFntKGY10p27NPGQTdAXKNGuLNgDO") + .bearPointShopId("44d7eeb4-9691-42cd-90db-258be87b7f61"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3806,190 +3724,140 @@ void test44() throws ConnectionError, ProcessingError { items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); - items9.addProperty("from", "12:00"); - items9.addProperty("to", "23:59"); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("classification_code", "c123"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); JsonObject items16 = new JsonObject(); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("classification_code", "c123"); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("product_code", "4912345678904"); - items21.addProperty("is_multiply_by_count", true); - items21.addProperty("required_count", 2); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); JsonObject items22 = new JsonObject(); items22.addProperty("point_amount", 5); items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("product_code", "4912345678904"); - items22.addProperty("is_multiply_by_count", true); - items22.addProperty("required_count", 2); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); JsonObject items23 = new JsonObject(); items23.addProperty("point_amount", 5); items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("product_code", "4912345678904"); - items23.addProperty("is_multiply_by_count", true); - items23.addProperty("required_count", 2); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); JsonObject items24 = new JsonObject(); items24.addProperty("point_amount", 5); items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("product_code", "4912345678904"); - items24.addProperty("is_multiply_by_count", true); - items24.addProperty("required_count", 2); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("product_code", "4912345678904"); - items25.addProperty("is_multiply_by_count", true); - items25.addProperty("required_count", 2); - JsonObject items26 = new JsonObject(); - items26.addProperty("point_amount", 5); - items26.addProperty("point_amount_unit", "percent"); - items26.addProperty("product_code", "4912345678904"); - items26.addProperty("is_multiply_by_count", true); - items26.addProperty("required_count", 2); - JsonObject items27 = new JsonObject(); - items27.addProperty("point_amount", 5); - items27.addProperty("point_amount_unit", "percent"); - items27.addProperty("subject_more_than_or_equal", 1000); - items27.addProperty("subject_less_than", 5000); - JsonObject items28 = new JsonObject(); - items28.addProperty("point_amount", 5); - items28.addProperty("point_amount_unit", "percent"); - items28.addProperty("subject_more_than_or_equal", 1000); - items28.addProperty("subject_less_than", 5000); - JsonObject items29 = new JsonObject(); - items29.addProperty("point_amount", 5); - items29.addProperty("point_amount_unit", "percent"); - items29.addProperty("subject_more_than_or_equal", 1000); - items29.addProperty("subject_less_than", 5000); - JsonObject items30 = new JsonObject(); - items30.addProperty("point_amount", 5); - items30.addProperty("point_amount_unit", "percent"); - items30.addProperty("subject_more_than_or_equal", 1000); - items30.addProperty("subject_less_than", 5000); - JsonObject items31 = new JsonObject(); - items31.addProperty("point_amount", 5); - items31.addProperty("point_amount_unit", "percent"); - items31.addProperty("subject_more_than_or_equal", 1000); - items31.addProperty("subject_less_than", 5000); - JsonObject items32 = new JsonObject(); - items32.addProperty("point_amount", 5); - items32.addProperty("point_amount_unit", "percent"); - items32.addProperty("subject_more_than_or_equal", 1000); - items32.addProperty("subject_less_than", 5000); - JsonObject items33 = new JsonObject(); - items33.addProperty("point_amount", 5); - items33.addProperty("point_amount_unit", "percent"); - items33.addProperty("subject_more_than_or_equal", 1000); - items33.addProperty("subject_less_than", 5000); - JsonObject items34 = new JsonObject(); - items34.addProperty("point_amount", 5); - items34.addProperty("point_amount_unit", "percent"); - items34.addProperty("subject_more_than_or_equal", 1000); - items34.addProperty("subject_less_than", 5000); - JsonObject items35 = new JsonObject(); - items35.addProperty("point_amount", 5); - items35.addProperty("point_amount_unit", "percent"); - items35.addProperty("subject_more_than_or_equal", 1000); - items35.addProperty("subject_less_than", 5000); - JsonObject items36 = new JsonObject(); - items36.addProperty("point_amount", 5); - items36.addProperty("point_amount_unit", "percent"); - items36.addProperty("subject_more_than_or_equal", 1000); - items36.addProperty("subject_less_than", 5000); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"bacc3b26-2723-4e4a-8f55-091d3a28e0fe"}) + .blacklistedShopIds(new String[]{"142970bf-2870-452d-b4c1-c220f572beb2","c99206b2-79df-4d09-8bc9-472639bb875f"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("67872fcb-41ea-4e4b-8ce5-3b47df08b8dc") - .maxTotalPointAmount(2654) - .maxPointAmount(4548) + .destPrivateMoneyId("ee7e829c-1bff-4fad-81eb-4c08d164e3a5") + .maxTotalPointAmount(5882) + .maxPointAmount(5395) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(6733) - .minimumNumberOfAmount(5138) - .minimumNumberOfProducts(4476) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .applicableDaysOfWeek(new Integer[]{3,3,0,1,0,5,1,3,1,5}) - .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16}) - .productBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25,items26}) - .amountBasedPointRules(new Object[]{items27,items28,items29,items30,items31,items32,items33,items34,items35,items36}) + .minimumNumberForCombinationPurchase(3039) + .minimumNumberOfAmount(1672) + .minimumNumberOfProducts(7020) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{0,5,6,2,1}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9}) + .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15}) + .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23,items24}) .subject("all") - .setExclusive(true) - .pointExpiresInDays(9410) - .pointExpiresAt("2022-10-14T12:36:17.000000Z") - .status("enabled") - .description("HYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiB") - .bearPointShopId("a21959f4-c4d2-4b5f-bb2d-642a030a4668"); + .setExclusive(false) + .pointExpiresInDays(4767) + .pointExpiresAt("2021-01-15T08:31:59.000000Z") + .status("disabled") + .description("2NjJocNYKTrm2m1ssPqyT3XyCFCrR8uZnHF") + .bearPointShopId("0c87bc97-df08-4fe7-82be-3355913c51bd"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -4022,8 +3890,8 @@ void test45() throws ConnectionError, ProcessingError { items4.addProperty("from", "12:00"); items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); items6.addProperty("product_code", "4912345678904"); items6.addProperty("classification_code", "c123"); @@ -4040,21 +3908,17 @@ void test45() throws ConnectionError, ProcessingError { items10.addProperty("product_code", "4912345678904"); items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); @@ -4080,42 +3944,37 @@ void test45() throws ConnectionError, ProcessingError { items18.addProperty("point_amount_unit", "percent"); items18.addProperty("subject_more_than_or_equal", 1000); items18.addProperty("subject_less_than", 5000); - JsonObject items19 = new JsonObject(); - items19.addProperty("point_amount", 5); - items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3py", + "2f83a9ba-481c-4ac8-9151-0e28d06c14cb", + "2024-04-17T00:11:47.000000Z", + "2021-08-14T11:26:56.000000Z", + 4812, + "payment" ) - .blacklistedShopIds(new String[]{"506c48bc-2226-4961-9d76-10d73ed2e5ef"}) - .budgetCapsAmount(1517025453) + .blacklistedShopIds(new String[]{"58bfb803-5cdf-447b-949b-f3a3afe68b86","46e6705a-a2fc-4389-8fab-93f79efbbe75"}) + .budgetCapsAmount(1141606768) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("011241ed-9e37-4e03-ae9b-36697259f353") - .maxTotalPointAmount(4495) - .maxPointAmount(6749) + .destPrivateMoneyId("da5a68e5-7af5-446b-81ab-2044d8631b7e") + .maxTotalPointAmount(3987) + .maxPointAmount(3786) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(4226) - .minimumNumberOfAmount(5301) - .minimumNumberOfProducts(5110) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) - .applicableDaysOfWeek(new Integer[]{4}) - .blacklistedProductRules(new Object[]{items6,items7,items8,items9,items10}) - .productBasedPointRules(new Object[]{items11}) - .amountBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18,items19}) + .minimumNumberForCombinationPurchase(202) + .minimumNumberOfAmount(464) + .minimumNumberOfProducts(6281) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{2,5,6,3}) + .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12}) + .productBasedPointRules(new Object[]{items13}) + .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(189) - .pointExpiresAt("2022-01-27T14:38:20.000000Z") - .status("enabled") - .description("LBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJ") - .bearPointShopId("7b804381-8d75-4f20-b49a-b801d39ba53b"); + .setExclusive(false) + .pointExpiresInDays(2195) + .pointExpiresAt("2025-01-31T16:28:25.000000Z") + .status("disabled") + .description("4qQAP06TDLYKBc2zPf6wToG8lTKcMPiFJX3LNKTomMc8wnROYRP673oHx5N3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX05Il") + .bearPointShopId("e1f8d615-28c3-4bda-a835-46f46b287686"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCashtrayTest.java index ca20e975..7d785efa 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateCashtrayTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateCashtrayTest.java @@ -12,9 +12,9 @@ public class CreateCashtrayTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateCashtray( - "044202f7-3525-4117-8dd7-0ded95240fda", - "48aeadc5-538d-4ee4-af33-69d46096e93b", - 5771.0 + "c2a78af0-9fc1-4a4d-926b-e3b3cb397110", + "966b754b-37af-4721-9439-e461c6fa47a8", + 8357.0 ); try { PartnerAPITest.getClient().send(request); @@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCashtray( - "044202f7-3525-4117-8dd7-0ded95240fda", - "48aeadc5-538d-4ee4-af33-69d46096e93b", - 5771.0 + "c2a78af0-9fc1-4a4d-926b-e3b3cb397110", + "966b754b-37af-4721-9439-e461c6fa47a8", + 8357.0 ) - .expiresIn(5237); + .expiresIn(4809); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -49,12 +49,12 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateCashtray( - "044202f7-3525-4117-8dd7-0ded95240fda", - "48aeadc5-538d-4ee4-af33-69d46096e93b", - 5771.0 + "c2a78af0-9fc1-4a4d-926b-e3b3cb397110", + "966b754b-37af-4721-9439-e461c6fa47a8", + 8357.0 ) - .description("PfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMg") - .expiresIn(1558); + .description("vn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2s") + .expiresIn(3800); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCheckTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCheckTest.java index a7d6411a..070c16ea 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateCheckTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateCheckTest.java @@ -12,9 +12,9 @@ public class CreateCheckTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(9410.0); + .moneyAmount(8432.0); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(8482.0) - .description("6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXXM3Y5XPxnjF"); + .moneyAmount(8980.0) + .description("iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgUm73I2kFchNQksZB6ByT3lVRQ7O823"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -47,11 +47,11 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(9448.0) + .moneyAmount(3624.0) .setOnetime(true) - .description("YgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp"); + .description("eXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXXM3Y5XPxnjFhfkfY"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -66,12 +66,12 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(3210.0) - .usageLimit(6298) + .moneyAmount(6902.0) + .usageLimit(9409) .setOnetime(true) - .description("5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47Xe"); + .description("RhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -86,13 +86,13 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(4346.0) - .expiresAt("2022-03-26T18:20:47.000000Z") - .usageLimit(1113) - .setOnetime(false) - .description("aQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnh"); + .moneyAmount(8415.0) + .expiresAt("2023-04-26T02:44:10.000000Z") + .usageLimit(3991) + .setOnetime(true) + .description("W2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -107,14 +107,14 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(4677.0) - .pointExpiresAt("2020-12-02T11:49:10.000000Z") - .expiresAt("2021-03-16T21:57:04.000000Z") - .usageLimit(8337) - .setOnetime(false) - .description("VfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAb"); + .moneyAmount(6471.0) + .startsAt("2025-10-08T06:51:51.000000Z") + .expiresAt("2023-05-16T00:55:10.000000Z") + .usageLimit(3367) + .setOnetime(true) + .description("ge91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQk"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -129,15 +129,15 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(5887.0) - .pointExpiresInDays(8507) - .pointExpiresAt("2024-02-28T08:15:03.000000Z") - .expiresAt("2023-12-03T05:36:08.000000Z") - .usageLimit(6826) + .moneyAmount(9666.0) + .pointExpiresAt("2020-03-06T19:29:41.000000Z") + .startsAt("2023-05-26T10:57:28.000000Z") + .expiresAt("2022-01-10T07:25:51.000000Z") + .usageLimit(6491) .setOnetime(true) - .description("HRtQBqCHsxk71kIOiSHcZ37"); + .description("LW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCH"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,16 +152,16 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(4969.0) - .bearPointAccount("c3bf7a17-5d0d-41ef-aa60-9a20234a6eee") - .pointExpiresInDays(5740) - .pointExpiresAt("2022-03-09T10:21:43.000000Z") - .expiresAt("2023-05-17T17:33:30.000000Z") - .usageLimit(3506) - .setOnetime(true) - .description("3qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQ"); + .moneyAmount(7923.0) + .pointExpiresInDays(4729) + .pointExpiresAt("2025-02-11T15:49:28.000000Z") + .startsAt("2025-02-22T16:06:03.000000Z") + .expiresAt("2021-03-26T09:43:13.000000Z") + .usageLimit(7806) + .setOnetime(false) + .description("iSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -176,10 +176,17 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(1926.0) - .pointAmount(1737.0); + .moneyAmount(7160.0) + .bearPointAccount("8c39c828-9971-40d8-8e14-f4ca38b5fb4d") + .pointExpiresInDays(6237) + .pointExpiresAt("2022-12-19T13:19:56.000000Z") + .startsAt("2026-03-06T15:21:09.000000Z") + .expiresAt("2026-08-28T17:29:56.000000Z") + .usageLimit(1137) + .setOnetime(true) + .description("2rRxx8SeYgA5RTAZIE0d3whSKLF"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -194,11 +201,10 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(3633.0) - .pointAmount(9333.0) - .description("CwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApo"); + .moneyAmount(3590.0) + .pointAmount(6267.0); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -213,12 +219,11 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(9105.0) - .pointAmount(1004.0) - .setOnetime(true) - .description("rzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5Az"); + .moneyAmount(7587.0) + .pointAmount(2560.0) + .description("CgQOdSsQVPrApoltrzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3pl"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -233,13 +238,12 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(9132.0) - .pointAmount(465.0) - .usageLimit(8034) - .setOnetime(false) - .description("E5VhNxjrtNh84WLuHKWoYQpDL"); + .moneyAmount(4455.0) + .pointAmount(9674.0) + .setOnetime(true) + .description("fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8W"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -254,14 +258,13 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(2676.0) - .pointAmount(5322.0) - .expiresAt("2024-03-10T02:31:21.000000Z") - .usageLimit(7962) - .setOnetime(false) - .description("WbDVy6Ss7attO0"); + .moneyAmount(4975.0) + .pointAmount(6527.0) + .usageLimit(8925) + .setOnetime(true) + .description("22UU1er3T1gBtfr20CiDsCwyLdW5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZE"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -276,15 +279,14 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(5779.0) - .pointAmount(6184.0) - .pointExpiresAt("2021-10-19T08:15:57.000000Z") - .expiresAt("2020-04-27T09:52:11.000000Z") - .usageLimit(2593) - .setOnetime(true) - .description("Z2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu"); + .moneyAmount(3356.0) + .pointAmount(7630.0) + .expiresAt("2023-10-23T13:18:08.000000Z") + .usageLimit(3471) + .setOnetime(false) + .description("HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -299,16 +301,15 @@ void test13() throws ConnectionError, ProcessingError { @Test void test14() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(6601.0) - .pointAmount(7035.0) - .pointExpiresInDays(3528) - .pointExpiresAt("2021-10-21T23:47:41.000000Z") - .expiresAt("2022-05-27T09:41:16.000000Z") - .usageLimit(2708) + .moneyAmount(1540.0) + .pointAmount(8718.0) + .startsAt("2025-02-18T01:54:32.000000Z") + .expiresAt("2024-03-23T08:13:54.000000Z") + .usageLimit(4659) .setOnetime(true) - .description("b57N6Bfk723xgVJhWc2FL"); + .description("TdPu3I6Gb57N6Bfk723xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxK"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -323,17 +324,16 @@ void test14() throws ConnectionError, ProcessingError { @Test void test15() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .moneyAmount(3205.0) - .pointAmount(6411.0) - .bearPointAccount("964f5ced-a5f5-40b9-852d-2fd21b587a7c") - .pointExpiresInDays(2485) - .pointExpiresAt("2020-12-27T05:32:39.000000Z") - .expiresAt("2024-10-01T08:57:54.000000Z") - .usageLimit(817) - .setOnetime(false) - .description("FfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd"); + .moneyAmount(170.0) + .pointAmount(2384.0) + .pointExpiresAt("2025-08-08T02:34:40.000000Z") + .startsAt("2022-10-07T02:14:34.000000Z") + .expiresAt("2025-02-17T16:45:57.000000Z") + .usageLimit(1045) + .setOnetime(true) + .description("iJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMd"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -348,9 +348,17 @@ void test15() throws ConnectionError, ProcessingError { @Test void test16() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .pointAmount(1701.0); + .moneyAmount(3545.0) + .pointAmount(9074.0) + .pointExpiresInDays(6596) + .pointExpiresAt("2020-05-30T11:01:31.000000Z") + .startsAt("2026-05-30T04:35:53.000000Z") + .expiresAt("2020-07-13T20:47:47.000000Z") + .usageLimit(8316) + .setOnetime(true) + .description("g7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQYSSoPK3N5ZGrmU0unMptspEioBBq"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -365,10 +373,18 @@ void test16() throws ConnectionError, ProcessingError { @Test void test17() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .pointAmount(6900.0) - .description("p1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQY"); + .moneyAmount(3462.0) + .pointAmount(7310.0) + .bearPointAccount("ce7e18ca-df10-44cc-a75b-b0e14c1faf01") + .pointExpiresInDays(8069) + .pointExpiresAt("2023-11-07T18:55:11.000000Z") + .startsAt("2020-10-27T01:01:25.000000Z") + .expiresAt("2020-09-04T18:05:36.000000Z") + .usageLimit(7561) + .setOnetime(true) + .description("RHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcb"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -383,11 +399,9 @@ void test17() throws ConnectionError, ProcessingError { @Test void test18() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .pointAmount(4691.0) - .setOnetime(true) - .description("SoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkD"); + .pointAmount(6604.0); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -402,12 +416,10 @@ void test18() throws ConnectionError, ProcessingError { @Test void test19() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .pointAmount(93.0) - .usageLimit(2886) - .setOnetime(false) - .description("GmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4uwaN6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w"); + .pointAmount(2291.0) + .description("MiN4tjoxBAROpiRc0j39oPNkDTFwGmGihFz2z0gAPf"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -422,13 +434,11 @@ void test19() throws ConnectionError, ProcessingError { @Test void test20() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .pointAmount(8001.0) - .expiresAt("2022-12-01T00:06:04.000000Z") - .usageLimit(5044) + .pointAmount(2007.0) .setOnetime(true) - .description("MRFhBa1KS"); + .description("Sv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4uwaN6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYl"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -443,14 +453,12 @@ void test20() throws ConnectionError, ProcessingError { @Test void test21() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .pointAmount(7226.0) - .pointExpiresAt("2023-06-01T14:20:15.000000Z") - .expiresAt("2022-08-21T00:16:06.000000Z") - .usageLimit(6434) - .setOnetime(false) - .description("AtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4"); + .pointAmount(429.0) + .usageLimit(9023) + .setOnetime(true) + .description("MXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQD"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -465,15 +473,13 @@ void test21() throws ConnectionError, ProcessingError { @Test void test22() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .pointAmount(8059.0) - .pointExpiresInDays(9472) - .pointExpiresAt("2021-05-25T04:18:07.000000Z") - .expiresAt("2020-09-12T18:57:04.000000Z") - .usageLimit(6469) + .pointAmount(212.0) + .expiresAt("2022-06-04T07:24:36.000000Z") + .usageLimit(4769) .setOnetime(false) - .description("c6DIDKem3xaXPio5o0"); + .description("IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -488,16 +494,86 @@ void test22() throws ConnectionError, ProcessingError { @Test void test23() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" ) - .pointAmount(6281.0) - .bearPointAccount("08141bf1-29b9-4178-b0e9-675585186008") - .pointExpiresInDays(4352) - .pointExpiresAt("2022-03-21T21:06:35.000000Z") - .expiresAt("2020-08-30T05:34:49.000000Z") - .usageLimit(2690) + .pointAmount(538.0) + .startsAt("2022-07-12T06:09:01.000000Z") + .expiresAt("2025-10-09T21:51:24.000000Z") + .usageLimit(779) + .setOnetime(true) + .description("xr0YedjAtAhk4Q5ZEYWHc6DIDKem3xaXPio5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test24() throws ConnectionError, ProcessingError { + Request request = new CreateCheck( + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" + ) + .pointAmount(4568.0) + .pointExpiresAt("2025-02-13T04:06:15.000000Z") + .startsAt("2020-12-17T07:35:40.000000Z") + .expiresAt("2023-04-27T22:28:12.000000Z") + .usageLimit(2762) .setOnetime(false) - .description("rfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHAM5JdvP"); + .description("v"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test25() throws ConnectionError, ProcessingError { + Request request = new CreateCheck( + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" + ) + .pointAmount(8043.0) + .pointExpiresInDays(5902) + .pointExpiresAt("2020-02-24T21:12:04.000000Z") + .startsAt("2021-03-02T03:11:04.000000Z") + .expiresAt("2022-01-18T00:10:45.000000Z") + .usageLimit(5518) + .setOnetime(false) + .description("HAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0eLyZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6q"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test26() throws ConnectionError, ProcessingError { + Request request = new CreateCheck( + "057c8ef5-5ae7-45d2-86dd-1b121b24d9be" + ) + .pointAmount(3948.0) + .bearPointAccount("5d27308d-4189-4d7d-94fd-39a062a0f115") + .pointExpiresInDays(143) + .pointExpiresAt("2025-05-11T11:26:25.000000Z") + .startsAt("2020-08-24T20:46:36.000000Z") + .expiresAt("2021-07-01T00:10:08.000000Z") + .usageLimit(3099) + .setOnetime(true) + .description("sH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqybT3XFS"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCouponTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCouponTest.java index 057c8af1..6c42939d 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateCouponTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateCouponTest.java @@ -12,13 +12,13 @@ public class CreateCouponTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(8539); + .discountAmount(1815); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -33,14 +33,14 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(5276) - .storageId("f77ee315-9cdc-45f7-88d8-4e2dea98d2ec"); + .discountAmount(1950) + .numRecipientsCap(5786); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -55,15 +55,15 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(475) - .minAmount(1579) - .storageId("f46b87ca-beac-4246-959f-632718138880"); + .discountAmount(1767) + .storageId("c5bc7591-ca36-4b88-a6fa-b479b99786f0") + .numRecipientsCap(6752); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -78,16 +78,16 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(9602) - .usageLimit(5001) - .minAmount(5144) - .storageId("03c2523f-6a22-4428-890e-3db6b613f48b"); + .discountAmount(5899) + .minAmount(296) + .storageId("2bc8a34c-7e97-40dc-92d2-f8555b917f37") + .numRecipientsCap(7205); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,17 +102,17 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(5533) - .code("xf") - .usageLimit(8070) - .minAmount(5763) - .storageId("3de35655-d515-43b8-9712-dbc857ad1c49"); + .discountAmount(7563) + .usageLimit(2526) + .minAmount(8613) + .storageId("d3610148-4b6a-4a76-9006-91382e58c9a6") + .numRecipientsCap(9431); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -127,18 +127,18 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(4094) - .setPublic(false) - .code("LO5Dd5X") - .usageLimit(1164) - .minAmount(144) - .storageId("3bac0488-36c6-4f57-8c0e-308cab040384"); + .discountAmount(3453) + .code("jeN") + .usageLimit(6431) + .minAmount(2713) + .storageId("53779806-0217-4d4c-9a7b-764b24d3eea5") + .numRecipientsCap(9844); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -153,19 +153,19 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(2528) - .setHidden(false) + .discountAmount(5071) .setPublic(false) - .code("oU011Xo") - .usageLimit(7962) - .minAmount(5831) - .storageId("59691fef-5a9b-4693-83f0-4eba34c704e5"); + .code("Wx") + .usageLimit(6972) + .minAmount(7368) + .storageId("32da6800-dd2a-4e1a-a0e4-aa633be8b23b") + .numRecipientsCap(6346); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -180,20 +180,20 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(8684) - .setDisabled(true) + .discountAmount(7897) .setHidden(true) .setPublic(true) - .code("PpOt9Y") - .usageLimit(9916) - .minAmount(7954) - .storageId("59c54db3-d86d-42f3-b874-eb634e0f0273"); + .code("fr6CL909V") + .usageLimit(6402) + .minAmount(10000) + .storageId("8de487ca-489a-4221-bff3-b9189c0d1da6") + .numRecipientsCap(7579); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -208,21 +208,21 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(1542) - .displayEndsAt("2022-07-16T04:09:00.000000Z") + .discountAmount(74) .setDisabled(true) .setHidden(false) .setPublic(false) - .code("QEq") - .usageLimit(4475) - .minAmount(9266) - .storageId("65bac18f-ed23-4441-9d55-29ec72878374"); + .code("nV3jRZ") + .usageLimit(9268) + .minAmount(6498) + .storageId("f533decc-c821-4033-9aed-bd4be1152bc6") + .numRecipientsCap(7344); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -237,22 +237,22 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(9323) - .displayStartsAt("2020-01-17T13:55:18.000000Z") - .displayEndsAt("2023-11-10T17:58:13.000000Z") - .setDisabled(false) + .discountAmount(2988) + .displayEndsAt("2025-12-19T22:14:42.000000Z") + .setDisabled(true) .setHidden(true) - .setPublic(false) - .code("V8aSNO9") - .usageLimit(2060) - .minAmount(6855) - .storageId("84f34919-7dd1-4521-95c0-d76e3459a144"); + .setPublic(true) + .code("2cSSl7Ob") + .usageLimit(8223) + .minAmount(1572) + .storageId("0242e81f-551f-4178-8c56-67d9356ce9b3") + .numRecipientsCap(1170); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -267,23 +267,23 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(5875) - .discountUpperLimit(1146) - .displayStartsAt("2024-04-11T07:18:28.000000Z") - .displayEndsAt("2020-05-25T08:09:45.000000Z") + .discountAmount(7097) + .displayStartsAt("2020-05-08T19:09:55.000000Z") + .displayEndsAt("2025-10-28T17:30:05.000000Z") .setDisabled(false) - .setHidden(false) + .setHidden(true) .setPublic(true) - .code("g8bbFQz") - .usageLimit(4669) - .minAmount(9680) - .storageId("e9db5f89-f6e4-4c24-acd8-ef0e9fc4b1c4"); + .code("4") + .usageLimit(529) + .minAmount(6428) + .storageId("b435da68-1257-49e9-bf19-24bd03539eba") + .numRecipientsCap(502); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -298,24 +298,24 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(5467) - .description("ujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6wIXIQ") - .discountUpperLimit(9314) - .displayStartsAt("2021-08-02T00:37:40.000000Z") - .displayEndsAt("2023-08-06T16:53:53.000000Z") - .setDisabled(false) + .discountAmount(401) + .discountUpperLimit(9933) + .displayStartsAt("2020-09-22T04:21:42.000000Z") + .displayEndsAt("2023-06-06T06:51:02.000000Z") + .setDisabled(true) .setHidden(true) .setPublic(false) - .code("wXW1Rg") - .usageLimit(7926) - .minAmount(3472) - .storageId("a29dc282-bb78-4a3f-aa10-4d1f86482a65"); + .code("jrsl") + .usageLimit(9165) + .minAmount(1199) + .storageId("2987976a-6eb0-4d32-9a53-0c2ca8b88713") + .numRecipientsCap(7839); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -330,15 +330,25 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(275) - .setShopSpecified(false) - .availableShopIds(new String[]{"a59beb91-ad74-4971-a32f-73852727747d","b17580dc-5a30-4b82-ac56-6075137f9285","ba00cb56-1786-40a0-80e5-6affbd737376","54cdc9c2-c39a-4e70-be4b-dfa582324009","0c618721-ea5a-4046-b355-d1104fdba895","49af4f4a-3750-4373-862c-86005d97183d","e1191f43-1ea4-4a2a-90fc-a6e3edd01c88","bc43387f-096b-41a6-8f52-833f1775b26f","799bed86-3d27-4f43-99a1-9f7448225f12"}); + .discountAmount(1599) + .description("vIS4FqKIGpu0MDWpiDvc0") + .discountUpperLimit(2559) + .displayStartsAt("2024-09-14T02:29:36.000000Z") + .displayEndsAt("2026-04-30T11:45:01.000000Z") + .setDisabled(false) + .setHidden(false) + .setPublic(true) + .code("6ElFsXXAu") + .usageLimit(945) + .minAmount(8890) + .storageId("cc0a2e67-3191-4d67-a5f2-11a022eb03c4") + .numRecipientsCap(6486); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -353,16 +363,15 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(7000) - .setShopSpecified(true) - .availableShopIds(new String[]{"9c6798c1-7b71-4022-804a-f0edf4674374","e755e42b-0e26-4e26-b4c0-aedc280cf304","9011a98e-fc59-4063-9358-37c458406e89","21b812ef-6201-4098-85c3-8de765231577","3e34b9e0-3bac-4fa4-b9be-59a93e5b2f70","4d166fd1-c0ee-4883-a0fc-135129db1c55"}) - .storageId("a85d8b2b-9df3-41ee-9ed7-90942a5b84cf"); + .discountAmount(2883) + .setShopSpecified(false) + .availableShopIds(new String[]{"1a38be5d-8111-45b2-9e67-49ee75034483","9a1c9714-002b-4921-93f5-d0caa114a12f","471a75a5-cd34-4cca-99ea-f03c26633e06","2567f9c4-1b7b-40bd-885d-251ed9ef954f","8ec86228-1142-4a5e-8de4-6ab2f1cb6edc","0927b436-dc53-41dc-ab3c-55b365843e6d"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -377,17 +386,16 @@ void test13() throws ConnectionError, ProcessingError { @Test void test14() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(4058) - .setShopSpecified(false) - .availableShopIds(new String[]{"29d0c4ca-1538-4707-a152-21dcf67f4bdd","72f91f8e-2e47-4df7-9e18-e3fa1b313416","468e4e36-4c56-4e44-9ef1-c032000810a9"}) - .minAmount(1899) - .storageId("78ee4ecc-13d6-49b7-ae15-05d55dcfc352"); + .discountAmount(1432) + .setShopSpecified(true) + .availableShopIds(new String[]{"1d8f9fe8-0c5e-485f-8bb7-7f47d0160160","7de28da7-d163-4ea3-9639-8c1502d9bca0"}) + .numRecipientsCap(4848); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -402,18 +410,17 @@ void test14() throws ConnectionError, ProcessingError { @Test void test15() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(2182) + .discountAmount(5348) .setShopSpecified(false) - .availableShopIds(new String[]{"aeb86f97-1cd9-4982-b3b1-f442a3277bd4","38ce07e2-54cb-4b6a-b994-d08a4f2c0b51","5a6c7a65-e9fc-41cd-a6c7-9f57b207b055","26ec1cb4-1db6-426c-8031-89c08c1b28e5","96ceea76-9032-470b-b351-aedbe0d22c35","66632850-0edf-4705-9bd4-9f8c07ca4aa1"}) - .usageLimit(8272) - .minAmount(8679) - .storageId("545687f4-0792-442e-b43d-6a34a7823606"); + .availableShopIds(new String[]{"895348ea-442b-45b9-9b89-6f8ddd2d1b62","9c994583-d5a0-4261-95cd-8c2eeac848a4","4c6ddacf-c730-46d1-815a-045594dd570d","b6e47e45-98c6-40a7-933b-255d62470c0f","164fd332-e742-4274-ac52-ed3e84587840","ff7fa534-0856-4049-911f-fd3ab1d906d6","3ad14b16-701a-4dad-95b2-9979391dcf21"}) + .storageId("23b5b990-b3b1-4c0e-88dc-610ad8dbf50a") + .numRecipientsCap(3442); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -428,19 +435,18 @@ void test15() throws ConnectionError, ProcessingError { @Test void test16() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(7489) - .setShopSpecified(false) - .availableShopIds(new String[]{"2b2a45aa-bd3c-4fad-b7dc-4722c47e733f","d8f0d850-a4c0-4f31-9a24-9da0d08b8117","8065e7a4-ac30-40ca-9694-5ce61e62503a","d20cfec6-32ba-4ddc-b952-b1aa466b6bd3"}) - .code("f0Q") - .usageLimit(945) - .minAmount(3824) - .storageId("601055ed-8068-42d7-8881-e6cef7ce467b"); + .discountAmount(3034) + .setShopSpecified(true) + .availableShopIds(new String[]{"5d4b7f12-fff7-4965-b529-14a080e6a769","53f3ecf7-a5fe-4597-b26c-614c4d628c80","85ec37d2-06a7-49bc-a3b5-8bb484577fe8","c1ee978a-9cc6-47f3-bed4-467c59582dba","c03e39d7-3a52-4928-b3a7-3efddbb07668","78a5ce64-8de9-43e1-bc64-0cbe4465e0ac"}) + .minAmount(503) + .storageId("4130db89-93d2-4d35-87bf-e8c9fed6fc98") + .numRecipientsCap(6283); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -455,20 +461,19 @@ void test16() throws ConnectionError, ProcessingError { @Test void test17() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(1822) + .discountAmount(4414) .setShopSpecified(true) - .availableShopIds(new String[]{"9e9a2465-dc02-48b7-87c5-bc056113af3a","2c35717b-616a-489d-9e08-cdc2d0b79cbc"}) - .setPublic(true) - .code("kQNn9uWl9") - .usageLimit(2067) - .minAmount(8138) - .storageId("3f23cb2d-b775-4aa2-811e-375ea0720e6e"); + .availableShopIds(new String[]{"2626d128-337a-4a4c-96c9-d679fa8702f2","b8fbe233-adf4-4f56-9b3d-8ea1211d3428","26bcafbd-fa1e-4574-8cf1-ef1b330f5e5a","27a7c67d-20a7-47bf-9683-bda3e25d2c92","b6433aa0-2f77-4720-8953-2347a0fce88c","5aa1438b-6c8c-41d2-b9c1-40884c550174","ef8fcf5f-8753-4284-84b9-24e31d017392","d2acfecf-9b5f-4996-abe3-0c4304528b00","0db01da7-b922-41d6-8332-2531be10fe21"}) + .usageLimit(6828) + .minAmount(9235) + .storageId("f4377a32-0631-45fc-af82-6c9fdbf3e1d6") + .numRecipientsCap(8585); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -483,21 +488,20 @@ void test17() throws ConnectionError, ProcessingError { @Test void test18() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(5150) + .discountAmount(235) .setShopSpecified(true) - .availableShopIds(new String[]{"0b4f4421-9d00-4fe0-b966-0d7410a6e611","45b6b7dc-03f7-42ab-a77c-4a39f0fa509d","d3359973-3ada-4636-85cf-e4581214cf6d","0ea9a38e-2c1a-417a-aecd-89f37e7e3a4d","1c52da93-b583-4b56-8544-4be84462aadf","b76ea00d-ae62-4da1-babe-70dd7c36b1a7"}) - .setHidden(true) - .setPublic(true) - .code("vUl3UtK") - .usageLimit(443) - .minAmount(9691) - .storageId("99f70450-3c88-4f92-b5a8-815441d23bcc"); + .availableShopIds(new String[]{"6ada1085-577c-468c-92ea-b4dd6e93c86b","38b0a09c-2ca2-4bc0-a2dd-3892efbf9fa0","6c48d2c1-8886-47ed-be26-4641eef07c75"}) + .code("sWm") + .usageLimit(6569) + .minAmount(4441) + .storageId("af75a738-2fec-4c60-95e3-d0501f85b55d") + .numRecipientsCap(4520); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -512,22 +516,21 @@ void test18() throws ConnectionError, ProcessingError { @Test void test19() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(7936) - .setShopSpecified(true) - .availableShopIds(new String[]{"bc9084e8-2abf-48ec-9bc0-ee3db3664d6c","442f821d-d401-46b0-87d0-0e9c724bb834","52dabad1-e9a9-4941-ab0a-37d10ff91bbd"}) - .setDisabled(false) - .setHidden(false) - .setPublic(false) - .code("PrTAo5HhY") - .usageLimit(7829) - .minAmount(8706) - .storageId("c4d8b70b-04ea-4e43-a17e-ca4747eda32b"); + .discountAmount(9369) + .setShopSpecified(false) + .availableShopIds(new String[]{"88ec6d90-aec6-4148-b8cf-d7c25177ff29","707c3891-2b9d-4704-954f-44b04ca544a3","fc1ed892-c8e7-4754-8f07-152be7f5a75c","9ebb83bb-7750-4ea3-b641-1acce92f0305","e61b3919-ca95-4a7e-ab67-2300946945a9","1b4f3a80-541c-489b-8d84-8dcaad431b91","265f3800-4c1c-469c-a189-f61e00683577"}) + .setPublic(true) + .code("wCaYZ0") + .usageLimit(5931) + .minAmount(5471) + .storageId("a96f79b5-4741-4324-b49c-ded78ea9cc3c") + .numRecipientsCap(9477); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -542,23 +545,22 @@ void test19() throws ConnectionError, ProcessingError { @Test void test20() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(5469) - .setShopSpecified(true) - .availableShopIds(new String[]{"bfa7c7c0-3b9c-4b94-aa14-a4f5cb51b54a","283a90af-a42d-457c-aeae-8788128323c3","2ad38266-707b-4905-822c-b8cf0d9ee834","85fa7efb-b757-4631-838e-f8c95385e556","1912f30e-8996-46b2-9556-dee9e853a75a","753e7a56-e73c-4cc8-80d2-d6572b3b7305"}) - .displayEndsAt("2023-06-05T01:05:20.000000Z") - .setDisabled(false) + .discountAmount(1118) + .setShopSpecified(false) + .availableShopIds(new String[]{"b9f7d024-3326-4331-aec9-6728fdc95641","cc4ad927-8d5a-4b89-9088-610f7ab44967","bc376201-f6cd-4439-bf46-eb448aef9a46","7ec924fe-2f7b-477a-901a-806cd54d07a4"}) .setHidden(false) .setPublic(true) - .code("j3cWX") - .usageLimit(3634) - .minAmount(3770) - .storageId("f89234cc-76c8-4f00-8cdb-5b786f0b6a09"); + .code("68w") + .usageLimit(899) + .minAmount(3716) + .storageId("c8f7acd0-09fa-4cd0-8ea7-b8310734c99e") + .numRecipientsCap(7030); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -573,24 +575,23 @@ void test20() throws ConnectionError, ProcessingError { @Test void test21() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(7932) + .discountAmount(2695) .setShopSpecified(false) - .availableShopIds(new String[]{"b9a977d6-8c5d-4cc3-bed2-d0d889492ca4","d5818992-91a3-414a-b752-3752962d62b9","3b4a82f6-6be8-4729-8ec9-ab142d84ff3e","7c3f0883-25f5-4215-85a0-8e8bb1029db3"}) - .displayStartsAt("2020-06-06T14:51:56.000000Z") - .displayEndsAt("2020-10-14T03:23:02.000000Z") + .availableShopIds(new String[]{"2ed994f0-9e95-48c0-81d5-0c6c9680aeff","5df030f2-9e30-43e5-b228-b2a679231135","b0291cb5-1a9d-4a6f-9cb0-93b658615f7b","7e222f82-d1fb-48b7-9c59-a7fdbe7ed696","8b68ca2a-2253-44d9-b4ae-d9f2beb9803d","b2d7f040-0174-4ccc-b0d1-52496a5a0468","fafad8dd-c5d4-47f3-91f4-f2225203c666"}) .setDisabled(true) .setHidden(true) .setPublic(false) - .code("kGd5KFM") - .usageLimit(6689) - .minAmount(5918) - .storageId("3ff0cbea-6953-4c7b-be3e-4e25fc26bbc8"); + .code("NUlxPCHvP") + .usageLimit(9985) + .minAmount(6153) + .storageId("5b4d2e48-8c65-48a4-945a-00b47333752f") + .numRecipientsCap(1896); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -605,25 +606,24 @@ void test21() throws ConnectionError, ProcessingError { @Test void test22() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(9996) - .setShopSpecified(false) - .availableShopIds(new String[]{"ce67f98f-0785-42db-9210-8a21966fd081","0743d597-9212-467d-81b9-ff1b6fa09481"}) - .discountUpperLimit(8133) - .displayStartsAt("2022-11-04T06:50:09.000000Z") - .displayEndsAt("2020-12-08T05:10:13.000000Z") + .discountAmount(7824) + .setShopSpecified(true) + .availableShopIds(new String[]{"a22e3e01-ba2c-48ae-a98a-538c05ca2614"}) + .displayEndsAt("2026-05-25T17:05:07.000000Z") .setDisabled(true) .setHidden(true) .setPublic(true) - .code("iSyzzCHj") - .usageLimit(1238) - .minAmount(6853) - .storageId("20142e89-d545-40e7-b087-ecba52153bfc"); + .code("D87F") + .usageLimit(1973) + .minAmount(7578) + .storageId("d7760b1a-491d-48cf-9bcc-5b73a599bbaf") + .numRecipientsCap(1777); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -638,26 +638,25 @@ void test22() throws ConnectionError, ProcessingError { @Test void test23() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountAmount(3312) - .setShopSpecified(false) - .availableShopIds(new String[]{"c9e7db59-433c-465b-bb44-154641e462a1","53201ac6-a0c4-4e02-988d-bb162d001ed9","2e50fd91-d7ad-4b31-b12d-9af5dcc54c78","8902bd4e-616b-4d95-ae53-82c05b93440b","e6d3d19f-7223-42d3-b12e-b3f679e4b5ed","52a56b1c-8821-4c1d-8328-e14cec90ca4f","a4ebd455-d6ec-41dd-a064-de201fd3fcbe","f4e4f526-801c-4363-b1b7-b07ab869d23c"}) - .description("rM7imjJVYnMFmZVKbnQskJ4SJWYdnxMjsH9rlpcWw1Vg5A3j") - .discountUpperLimit(8101) - .displayStartsAt("2024-04-06T13:04:31.000000Z") - .displayEndsAt("2024-01-07T07:14:33.000000Z") - .setDisabled(false) + .discountAmount(5119) + .setShopSpecified(true) + .availableShopIds(new String[]{"6386839c-a762-419e-8976-774e07b8c658","af861a09-80ab-4d26-b0d3-c3980194fed6","817c5f11-5b69-4ac4-9e19-81a63a3224a1","559bf6ae-5add-46de-82d7-593ef9d457e6","d3a742ff-2c1d-4101-81fe-a3d0a166046d","dc1f0dc7-5e73-4548-98b0-66388ef5e8c5"}) + .displayStartsAt("2022-04-05T11:31:28.000000Z") + .displayEndsAt("2021-08-24T21:57:22.000000Z") + .setDisabled(true) .setHidden(true) .setPublic(false) - .code("VDn") - .usageLimit(7260) - .minAmount(6071) - .storageId("466bd282-148a-470e-965f-c802f899a2c1"); + .code("TJypI") + .usageLimit(2576) + .minAmount(772) + .storageId("3c40dcb4-42b2-495e-89ee-09f54ae95793") + .numRecipientsCap(4751); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -672,13 +671,26 @@ void test23() throws ConnectionError, ProcessingError { @Test void test24() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(6905.0); + .discountAmount(2851) + .setShopSpecified(true) + .availableShopIds(new String[]{"753e8213-2f3b-448c-9c35-889b1cb3b2b6","e0fd0f3d-845f-49d6-a0cc-cf6bb172c997","99aa0dce-cdf9-46c5-899d-b685c33ea991","791a6655-8953-440e-acd7-16d397f98e9f","4e3afda4-7b61-4c9c-b65e-a6afa677a6e0","2584cf6c-0e5a-4327-8b7c-f721be004ac7","50e8a6a6-c9ef-44b7-90e8-b590b46e20bf","b00c4d54-282a-4a11-992b-14d4272023c7"}) + .discountUpperLimit(7283) + .displayStartsAt("2026-08-08T08:49:55.000000Z") + .displayEndsAt("2025-04-02T06:27:36.000000Z") + .setDisabled(false) + .setHidden(false) + .setPublic(true) + .code("TO") + .usageLimit(9148) + .minAmount(2393) + .storageId("4e08a0ae-c43e-486b-a55b-603f8b37f6f9") + .numRecipientsCap(7450); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -693,14 +705,27 @@ void test24() throws ConnectionError, ProcessingError { @Test void test25() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(3816.0) - .storageId("025def26-9766-4731-960b-e5e1d03e4c32"); + .discountAmount(4576) + .setShopSpecified(false) + .availableShopIds(new String[]{"16bef6aa-5c2d-4d36-8087-04ecb6fc9c8a","5f871ef7-8c2b-4fdc-901d-0b91631d208f","e47da5b0-e913-4a9c-8e0b-fdb273059331","f0167af9-919b-4b53-8862-aa7005a1ea6b","3416b3e5-4f6d-4b1f-84a5-d90403ee27aa","2e7e66cd-a45b-4e07-9fae-8fdb82b69b1d","7d493633-fc27-42e1-bf16-757785a9d35b","d0757f0a-869f-44a0-8bc0-b0514c908a25","7121435f-6e19-4620-b9ae-0c8f3c116d8d","290fb61e-10fb-4aa3-9cb2-03faacfd62af"}) + .description("T4JKnzi5L8cpHHMwXcAIRcjNLk0uNWeNHUqo3XUcSS2VsZS4Lj4GkDI0oXRDtB") + .discountUpperLimit(2762) + .displayStartsAt("2020-06-05T10:24:56.000000Z") + .displayEndsAt("2025-06-22T23:58:10.000000Z") + .setDisabled(true) + .setHidden(true) + .setPublic(true) + .code("11f") + .usageLimit(5733) + .minAmount(2302) + .storageId("d99ab3c0-26fc-4e14-98ae-5021fccf2c17") + .numRecipientsCap(9410); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -715,15 +740,13 @@ void test25() throws ConnectionError, ProcessingError { @Test void test26() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(1815.0) - .minAmount(8361) - .storageId("2fcab82a-92e9-4e91-9693-61b4e4962c8d"); + .discountPercentage(2150.0); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -738,16 +761,14 @@ void test26() throws ConnectionError, ProcessingError { @Test void test27() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(7640.0) - .usageLimit(2402) - .minAmount(9467) - .storageId("0d909ab0-0836-47d9-8f13-f081575448b5"); + .discountPercentage(8550.0) + .numRecipientsCap(1333); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -762,17 +783,15 @@ void test27() throws ConnectionError, ProcessingError { @Test void test28() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(6535.0) - .code("FN9bW") - .usageLimit(7865) - .minAmount(2539) - .storageId("adbf89ad-7822-4513-b3c6-922a83c93cba"); + .discountPercentage(4454.0) + .storageId("837e8452-f75d-4d90-b29c-9606a6a29ce0") + .numRecipientsCap(8647); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -787,18 +806,16 @@ void test28() throws ConnectionError, ProcessingError { @Test void test29() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(7691.0) - .setPublic(true) - .code("8sMw") - .usageLimit(6242) - .minAmount(9832) - .storageId("2d4b08c0-8201-4831-9746-89a56d1f4194"); + .discountPercentage(1571.0) + .minAmount(5007) + .storageId("551e8d53-3c07-44c4-b2ae-f447792a3255") + .numRecipientsCap(2990); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -813,19 +830,17 @@ void test29() throws ConnectionError, ProcessingError { @Test void test30() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(9204.0) - .setHidden(true) - .setPublic(true) - .code("EmCrF") - .usageLimit(5037) - .minAmount(4749) - .storageId("143eb371-58ce-4392-b73f-b128c0ef59a9"); + .discountPercentage(8751.0) + .usageLimit(8126) + .minAmount(3632) + .storageId("b03cb5d5-45b0-4221-99d3-61ac6bdeea41") + .numRecipientsCap(5257); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -840,20 +855,18 @@ void test30() throws ConnectionError, ProcessingError { @Test void test31() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(3684.0) - .setDisabled(true) - .setHidden(true) - .setPublic(false) - .code("5Q") - .usageLimit(5856) - .minAmount(8045) - .storageId("8c30ebc6-f94d-4a05-b6fb-e5ecc5ed5123"); + .discountPercentage(9137.0) + .code("89") + .usageLimit(2547) + .minAmount(8463) + .storageId("a77b0af3-240f-4c43-b540-996232de7770") + .numRecipientsCap(8952); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -868,21 +881,19 @@ void test31() throws ConnectionError, ProcessingError { @Test void test32() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(6297.0) - .displayEndsAt("2022-04-29T07:55:42.000000Z") - .setDisabled(true) - .setHidden(true) - .setPublic(true) - .code("a2") - .usageLimit(8588) - .minAmount(1448) - .storageId("0ad47ba4-5ea6-4e83-a76f-ea18a4c48b28"); + .discountPercentage(2398.0) + .setPublic(false) + .code("oj") + .usageLimit(6193) + .minAmount(9139) + .storageId("b32ad5f6-deb0-4511-aa54-edcc3c90b697") + .numRecipientsCap(943); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -897,22 +908,20 @@ void test32() throws ConnectionError, ProcessingError { @Test void test33() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(8908.0) - .displayStartsAt("2023-12-22T04:20:55.000000Z") - .displayEndsAt("2023-10-15T14:09:14.000000Z") - .setDisabled(false) - .setHidden(false) - .setPublic(false) - .code("E9OEvOU") - .usageLimit(4169) - .minAmount(7785) - .storageId("3d98deae-d342-4b3e-b7e2-19bc6c04764a"); + .discountPercentage(4246.0) + .setHidden(true) + .setPublic(true) + .code("kZtGKmc") + .usageLimit(1384) + .minAmount(6719) + .storageId("0ba7b296-a6dd-4a09-a610-07b134090b45") + .numRecipientsCap(6519); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -927,23 +936,21 @@ void test33() throws ConnectionError, ProcessingError { @Test void test34() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(5017.0) - .discountUpperLimit(4268) - .displayStartsAt("2023-04-20T09:30:47.000000Z") - .displayEndsAt("2020-06-02T02:54:45.000000Z") - .setDisabled(true) + .discountPercentage(1332.0) + .setDisabled(false) .setHidden(false) - .setPublic(false) - .code("fgOe9n") - .usageLimit(1238) - .minAmount(6254) - .storageId("27c7e262-9c4f-46ae-8de6-bb5bcc92f031"); + .setPublic(true) + .code("1rbMFU") + .usageLimit(141) + .minAmount(9686) + .storageId("84c89d6c-fa47-4561-b852-e2e3209f5e19") + .numRecipientsCap(4065); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -958,24 +965,22 @@ void test34() throws ConnectionError, ProcessingError { @Test void test35() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(1885.0) - .description("ceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8") - .discountUpperLimit(8336) - .displayStartsAt("2020-01-06T07:23:01.000000Z") - .displayEndsAt("2020-06-15T12:46:52.000000Z") + .discountPercentage(5006.0) + .displayEndsAt("2025-04-03T04:10:03.000000Z") .setDisabled(false) - .setHidden(false) - .setPublic(true) - .code("kI4pFJl") - .usageLimit(6655) - .minAmount(3551) - .storageId("126693af-cedc-4cb8-a1b4-05b925102d26"); + .setHidden(true) + .setPublic(false) + .code("w") + .usageLimit(1061) + .minAmount(299) + .storageId("10941edc-4921-4343-8dbc-9f1a473593ba") + .numRecipientsCap(6273); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -990,15 +995,23 @@ void test35() throws ConnectionError, ProcessingError { @Test void test36() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(8325.0) - .setShopSpecified(true) - .availableShopIds(new String[]{"55e623d3-3008-4ae9-92d6-d0729014de2b"}); + .discountPercentage(3872.0) + .displayStartsAt("2021-03-02T21:57:17.000000Z") + .displayEndsAt("2024-03-19T04:59:49.000000Z") + .setDisabled(true) + .setHidden(false) + .setPublic(false) + .code("cVhw") + .usageLimit(9130) + .minAmount(5859) + .storageId("cd62f353-7744-4736-a424-1869697b5011") + .numRecipientsCap(4242); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1013,16 +1026,24 @@ void test36() throws ConnectionError, ProcessingError { @Test void test37() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(8900.0) - .setShopSpecified(false) - .availableShopIds(new String[]{"935a1f6d-fcca-4e9d-b59f-4b54854d1e50","09a8f22f-8f10-4e6b-8cf5-765e55b2e64e","9fc13405-bae7-4909-a5ee-32a37371a375","50f44395-9db1-43a2-b863-bddf5cace7be","902469db-15b0-454b-ae8f-e736833a1150","cc6ad596-fb7a-4dca-862c-4bd1ef36c413","2c0b50ed-ec2c-41b7-b768-2c0729ef987b","e907ae43-0118-41ae-9bb3-9b0cf54ffa40","ff729413-8ce2-4abd-be79-10d9b7b8c4a4","69cef47c-5a68-426e-9e40-a15db0919805"}) - .storageId("dbd238bf-74eb-4939-8c36-0a79ca2eedb5"); + .discountPercentage(7049.0) + .discountUpperLimit(1662) + .displayStartsAt("2022-05-31T00:16:17.000000Z") + .displayEndsAt("2021-01-22T04:45:43.000000Z") + .setDisabled(false) + .setHidden(true) + .setPublic(false) + .code("5TUTM16Yq") + .usageLimit(2576) + .minAmount(2674) + .storageId("ad8068c8-f8c1-45cf-b85d-207f2e29e9a8") + .numRecipientsCap(6387); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1037,17 +1058,25 @@ void test37() throws ConnectionError, ProcessingError { @Test void test38() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(2100.0) - .setShopSpecified(true) - .availableShopIds(new String[]{"298885eb-261f-4c15-a34e-76c868c83027","d9f60dd2-e9cd-4a5c-9818-c02e7433add1","08083083-b4d4-4a7a-9dd7-0d0c6491a8b1","94c1bb16-553d-44a5-a9c2-970faebdd969","baba755e-cdd5-4cfd-a0c9-4118da35531c","1c8d12a8-91fd-4535-ba5f-8f4ae394208f","f376cade-09af-443a-873a-e37f67fd241e","7d2c923f-e862-4e00-a8c7-4eefd1c02545"}) - .minAmount(7161) - .storageId("3f29d096-da9e-4404-99cb-2a97108e0b05"); + .discountPercentage(2671.0) + .description("5GeUYrGDCf0i4xR1YeuarVLqKYaajZ45lMb2EdpxyfZWbcSeQSSC89X69cCxk1lmjrE2LQn8WVW3m44epc5OJWLmTr626o4XX2rICXAhNDPHxc5nbxE6dOS7QbkrsxeFRrdV1gQxduyB3Z9uLKn8CBvuRo159rPRsnfNPsYuS9nBNol3v7lVyt80jIUhEuqcVn523Q4baN0pPcQtGvFKDcSo") + .discountUpperLimit(6877) + .displayStartsAt("2020-08-11T03:55:42.000000Z") + .displayEndsAt("2026-02-25T05:23:04.000000Z") + .setDisabled(false) + .setHidden(false) + .setPublic(true) + .code("IJSa9") + .usageLimit(4783) + .minAmount(1938) + .storageId("e890c865-13e2-45eb-9328-22570fe91b31") + .numRecipientsCap(1678); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1062,18 +1091,15 @@ void test38() throws ConnectionError, ProcessingError { @Test void test39() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(2185.0) - .setShopSpecified(false) - .availableShopIds(new String[]{"c627f3ef-a930-4b04-97ad-45768dcfdd4e","67908976-c2f5-47e0-9d7c-091bd2633dda","971cdf32-d77a-4e4f-8e91-f12542046b8a","b92bbb9b-9cf9-4602-be6d-eebdb03f06e4","30f6517d-1f8f-4b00-960f-e29e7e20bd8c"}) - .usageLimit(7222) - .minAmount(5012) - .storageId("52ebbb80-abaf-4a81-a0a1-b89408e5a109"); + .discountPercentage(8603.0) + .setShopSpecified(true) + .availableShopIds(new String[]{"c8b5039b-ff40-4514-abc6-542c073cc132","3cf55021-7d5e-4383-b7ed-8498b12bd8c9","35902a2e-98e6-4a4a-b517-7abb4d8c503d","65cf343d-b930-4e1e-89ed-62a25ccfc28d","fee5be17-3785-4077-ba2e-fd6f0fe60a12"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1088,19 +1114,16 @@ void test39() throws ConnectionError, ProcessingError { @Test void test40() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(4730.0) - .setShopSpecified(true) - .availableShopIds(new String[]{"cc6bf7b6-f610-4710-b3dc-5a6c0f58fd7b","c625cb5f-9b9e-405b-8622-76f235ed48f9"}) - .code("8C4rDtJ") - .usageLimit(5582) - .minAmount(1855) - .storageId("e2dbf0fa-66fc-4895-a345-c3465577b31d"); + .discountPercentage(2356.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"3b67308d-c0f3-4c26-b0e9-4c39d988acb3","44ef40dc-29d1-4c2c-989d-c27914ba7e10","fcdad998-d19b-4487-8411-ef450f736f7f","4da098ce-41f1-44ed-8177-8efbf329ea4f","8e54b6a9-61f8-4f91-b859-24916f901eee","a053fedc-d504-4356-8ab9-5ad4e7023338","544a308e-78eb-4a83-a061-0bd22d36d6b9","edb6fd05-8090-447d-a579-ca78a4bd5326","ad377d02-46a0-403e-8420-b68f67cb72d6","6cd1cfeb-e294-4b69-929a-62303eb65459"}) + .numRecipientsCap(867); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1115,20 +1138,17 @@ void test40() throws ConnectionError, ProcessingError { @Test void test41() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(2148.0) - .setShopSpecified(true) - .availableShopIds(new String[]{"4c0009ef-f296-4117-a2b4-98bc3219c2bb","4244be06-4eb2-4db7-8912-6025c4b5a3d3","cddfb65e-5b95-48bd-8205-bf79523b46f5","6a421a5e-e124-479e-ad38-97cd6539aa0f","1b818799-0fc9-4b72-a0d6-5f95c9d93629","cfcdafbc-a4f5-4be7-962e-d45ca9b93bc2","24ecb5a2-89a4-46a4-a7af-2166e0fda2d4"}) - .setPublic(false) - .code("i") - .usageLimit(3390) - .minAmount(5939) - .storageId("9c20b5ad-eb71-481c-ab70-91ab73d86e1e"); + .discountPercentage(8808.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"d96372b5-f730-42f5-b6d4-9c1400ac2a5c","35f7a2ed-760c-4758-9495-9c4a52116889","a894f783-aca8-4d17-8e83-60fed80bb27e","5715cdb3-c4f4-41e1-bcdf-7f69e4147c2b","e31d1950-19b6-49bf-9f1d-f07a8348ed15","a328483c-fc7c-4e72-8d42-e92c490aceff","7c5d7689-bcc3-4e1d-b62e-6cf2f1647ba0","2e497798-e354-4170-911b-50323acfda4b"}) + .storageId("7fac31ab-68bc-448a-90fa-0e08549dd093") + .numRecipientsCap(1933); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1143,21 +1163,18 @@ void test41() throws ConnectionError, ProcessingError { @Test void test42() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(344.0) + .discountPercentage(8906.0) .setShopSpecified(false) - .availableShopIds(new String[]{"074885e7-e403-4413-9a5a-1dee6263345a","b8bd1f22-b4b3-4d15-a0cc-8f83d387101e","1139d74a-96cf-43f5-a7b3-7a8d99e69d69","880c921b-f277-46a3-a985-6ba8fa46601f"}) - .setHidden(true) - .setPublic(true) - .code("HdsS3") - .usageLimit(3756) - .minAmount(133) - .storageId("83f44596-2a53-4d05-a8ea-7b8f91f114af"); + .availableShopIds(new String[]{"d50ad256-dd56-4974-bd84-1caa220778d3","e9a4656a-3d48-49de-b74b-ec707e114200","0bf89147-aebc-4134-812b-e49bd12c5c57","12aa59ad-8914-40a2-89b7-7498611a0080","27b5a41f-90d7-4e06-a097-a3cd069bfa05","6684a8fc-0a9c-426c-9492-7783bd609af7","2139808c-0c1c-4d5c-9680-13017dce0ffc","d129ebde-7100-489d-afef-08f96e58de25","25d252db-6469-4d8d-84f4-352bd78b2eac"}) + .minAmount(6221) + .storageId("0328bb8a-1de6-48e1-93f7-da04f7f0cffb") + .numRecipientsCap(1400); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1172,22 +1189,76 @@ void test42() throws ConnectionError, ProcessingError { @Test void test43() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" + ) + .discountPercentage(6270.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"4cca2fc9-9930-49de-b76c-2717b06b2746","3754c7d0-7cad-4554-9d5e-0263e68519d3","06707071-0807-44dd-bbd8-d431a939db13","0803db28-074f-427d-a39d-2c4a70b492ca","d90a9a0a-72c3-47f0-88b4-1f197c1fd3e1","dddeed2a-dd62-4ef7-81f6-32a29f746f99","12c90644-3a03-4166-a9c9-0d931d346b11","47502ad9-287f-4522-a256-4d45254b2a7c","cf05b4fa-0ff7-4358-85fa-7b2e69ae8f65","056ec189-64e0-4658-b784-fd83aa48fd40"}) + .usageLimit(8387) + .minAmount(245) + .storageId("2a68520d-1062-47dc-be42-d1ac557b2699") + .numRecipientsCap(9482); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test44() throws ConnectionError, ProcessingError { + Request request = new CreateCoupon( + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(3857.0) + .discountPercentage(597.0) .setShopSpecified(true) - .availableShopIds(new String[]{"0b31ac34-f91f-4253-815c-3c3fdd13c1f2","39da7e0d-6db1-4667-8fab-81d32052d05c"}) - .setDisabled(false) - .setHidden(true) + .availableShopIds(new String[]{"e43759dd-672a-4f2d-ad8b-cb00fed8d6ad","93d321f6-c29f-475a-a1ad-1b7e91ded193","e3396211-8c3d-4622-b6fe-754881aa6388","bdccb6a5-93c7-45c9-b782-9a519bc5fbaa","10ddaaa6-1c5b-4ec7-9fc6-b5c4312b3333","d0f3687c-0ef9-457f-8db3-611fc59e3601","de79d91e-7b57-408f-9188-a463b16a511a","e59986cf-8051-4bb7-9c3f-de127205cb84"}) + .code("GqTbykQN") + .usageLimit(7588) + .minAmount(7207) + .storageId("ffe4ac7c-5e65-4a58-8bf7-eb663481683f") + .numRecipientsCap(2540); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test45() throws ConnectionError, ProcessingError { + Request request = new CreateCoupon( + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" + ) + .discountPercentage(5234.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"f63cca1c-7a50-4b72-9194-2c3f3f20e513","333575c3-5cdb-448e-97ae-98067bec12bf","1fe7675e-e497-4cc8-8aaf-1243586f45b6","478f7c6f-b047-4b58-b7b6-93a90a825cb2","f43883d6-cb57-4598-acad-6bfd5af5a84f","82aca6f6-c10c-47c2-af8c-eb12534b4a4b","7ecda518-e9a2-4dfb-be26-65d2610ceb8e","748ab544-d4ab-4dee-abd7-8e77bfcb5d02","864f2d4a-2331-45d2-8313-b9c2e1d9532d"}) .setPublic(false) - .code("Pel") - .usageLimit(7033) - .minAmount(3063) - .storageId("f12ef0a9-645b-4f71-ae27-6f6b27922871"); + .code("Xf") + .usageLimit(9715) + .minAmount(714) + .storageId("1090be3b-2ed3-4b0c-8e64-8dbdeb00142d") + .numRecipientsCap(8767); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1200,25 +1271,55 @@ void test43() throws ConnectionError, ProcessingError { } } @Test - void test44() throws ConnectionError, ProcessingError { + void test46() throws ConnectionError, ProcessingError { + Request request = new CreateCoupon( + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" + ) + .discountPercentage(8474.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"53e4eb39-12af-4600-bcd5-592159645a4e","2e6b021f-b580-4ed0-8478-3f0359b34ec5","86b3ee23-148f-4a80-ae9b-88384156112c","1a5ab00c-b0e4-4998-99b7-bd3fcadf6250","473527d6-881e-47cf-9c5c-8677a812aae6","f5b7deb2-c583-4c4b-9ddd-6af843c32c3a","7ecb21d9-32da-448b-8e9a-1567bd031370","b4eaae77-0e89-4e9d-abe1-394080f13f1b","ee0af227-b898-4174-a6bb-4ac475b651d8","4f4cb108-238d-4068-b685-81f768a0d56a"}) + .setHidden(false) + .setPublic(true) + .code("gPgh") + .usageLimit(5903) + .minAmount(7020) + .storageId("5fceab59-8843-4fa6-b173-326f80bdbdf4") + .numRecipientsCap(4108); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test47() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(7976.0) + .discountPercentage(3089.0) .setShopSpecified(false) - .availableShopIds(new String[]{"ed415e4a-40c7-491c-86db-6b7b9047bc21","96da3455-78a4-4357-971f-58de46390022","52b95c63-588c-40df-82ae-d68f76c870f3","1cbc1fb7-844f-4a4b-b22b-876189a34d37","d48ccbdd-7dcc-490d-a1bd-c1d40e3b0e47","11a83669-d680-4d2d-8ae0-71a50b0f02d3","b8876de9-e6b2-44ee-9f56-5643e01671e1"}) - .displayEndsAt("2023-05-18T23:24:23.000000Z") + .availableShopIds(new String[]{"ea74d168-b301-414e-8afa-6fe1bfe230e3"}) .setDisabled(false) .setHidden(false) .setPublic(false) - .code("Wf") - .usageLimit(6811) - .minAmount(8019) - .storageId("08830937-d988-4741-b15c-657798bfddcc"); + .code("PGR") + .usageLimit(1367) + .minAmount(6713) + .storageId("180072bb-f02b-43d8-a04c-b7552dc1b6c6") + .numRecipientsCap(7770); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1231,26 +1332,59 @@ void test44() throws ConnectionError, ProcessingError { } } @Test - void test45() throws ConnectionError, ProcessingError { + void test48() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(492.0) - .setShopSpecified(true) - .availableShopIds(new String[]{"614a3316-a7e9-4715-a33e-02cfa30af7c2"}) - .displayStartsAt("2022-08-19T08:58:33.000000Z") - .displayEndsAt("2022-03-25T12:11:45.000000Z") + .discountPercentage(791.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"3760a2cb-e648-432a-b264-b7cc6add0541","7d72c77b-6187-41d8-b98a-67b21dddd370","b9293d7d-06a4-4d6c-9916-d4fb5999a5c1","fad408ac-2e12-44ab-bc24-cb6bc9c9f081","fad026f2-a66f-4f19-95f2-5d14bc87569c","dba75db6-5aa2-454b-9ebd-40ea68afad50","846f4776-ce64-4a55-b75d-4dd764b1d664"}) + .displayEndsAt("2022-10-06T19:22:02.000000Z") .setDisabled(true) .setHidden(true) + .setPublic(true) + .code("qNK4Tq0Pq") + .usageLimit(3158) + .minAmount(4858) + .storageId("e4cd838f-ee43-4920-bedf-59bd5f6719fe") + .numRecipientsCap(4604); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test49() throws ConnectionError, ProcessingError { + Request request = new CreateCoupon( + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" + ) + .discountPercentage(2732.0) + .setShopSpecified(true) + .availableShopIds(new String[]{"82e88422-d3bc-44d3-8e03-17be95bfb73f","a4a5a890-420d-4ff4-9e44-ee24f9c84f92","1db88722-936f-4c8d-9af6-1eac344fdfac","8bae6bc1-7cd9-4433-9a2c-fa4fbbe0e64b"}) + .displayStartsAt("2025-11-30T21:32:15.000000Z") + .displayEndsAt("2020-05-09T13:34:25.000000Z") + .setDisabled(false) + .setHidden(false) .setPublic(false) - .code("F") - .usageLimit(4045) - .minAmount(8409) - .storageId("a3f6e75e-cad1-464c-911b-720b25f9c608"); + .code("CE4xLFo") + .usageLimit(7266) + .minAmount(2588) + .storageId("3606ab41-1939-4ca0-add5-77cf615b1812") + .numRecipientsCap(3558); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1263,27 +1397,28 @@ void test45() throws ConnectionError, ProcessingError { } } @Test - void test46() throws ConnectionError, ProcessingError { + void test50() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(3147.0) + .discountPercentage(2479.0) .setShopSpecified(false) - .availableShopIds(new String[]{"68d9266a-f65d-445f-a471-3588e7417dc8","520127b9-c760-48a5-8b87-53e0cee1e364","a2bd8df9-53e0-441a-a6e7-851a622658f3"}) - .discountUpperLimit(4934) - .displayStartsAt("2020-05-16T10:47:43.000000Z") - .displayEndsAt("2021-11-05T09:57:35.000000Z") + .availableShopIds(new String[]{"2c8b401d-d832-43b0-ba49-29025177d6a6","ac9348ea-d083-42d5-be6e-ac9ea241ea18","1403441c-2a21-4e76-bfbc-e82070882341","88deeb7c-88af-44ef-ae1a-4ea80fcaa6a3","7a6de46d-4b96-4b4a-b26c-73305d13ec51","22981e71-cded-4203-b131-7cd2ce8aa587"}) + .discountUpperLimit(7445) + .displayStartsAt("2026-03-13T20:51:25.000000Z") + .displayEndsAt("2022-10-06T21:43:11.000000Z") .setDisabled(true) .setHidden(true) - .setPublic(false) - .code("89Abrha") - .usageLimit(5397) - .minAmount(389) - .storageId("c28b0a7e-0bd7-4eff-921c-1acdbdd36389"); + .setPublic(true) + .code("wDGw") + .usageLimit(8522) + .minAmount(4518) + .storageId("142c8eab-e7b7-48d8-97f4-82996efd5098") + .numRecipientsCap(1982); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1296,28 +1431,29 @@ void test46() throws ConnectionError, ProcessingError { } } @Test - void test47() throws ConnectionError, ProcessingError { + void test51() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "1aecfc91-57c5-49b1-9b89-e742f35ee909", + "uKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9", + "2023-12-05T22:06:44.000000Z", + "2022-05-15T04:28:48.000000Z", + "d0e9787b-c687-4cbe-bb11-b4e922b98a4c" ) - .discountPercentage(6992.0) - .setShopSpecified(true) - .availableShopIds(new String[]{"55441377-1a40-4abf-8139-be29a27307aa","6b74cb42-7e16-4462-ab1e-fc578338f53d","1e068547-1edd-47bb-8c57-2578b6155354","8e7f264f-c614-400b-91dd-5aa803069f2d","92ee026e-c4bd-4ef1-8d5b-cda1faee8148"}) - .description("U20ukx1FDQpVqtvlq3pwtYNpqFJFhJ6H") - .discountUpperLimit(3746) - .displayStartsAt("2022-06-21T01:16:33.000000Z") - .displayEndsAt("2020-06-13T02:31:21.000000Z") - .setDisabled(false) + .discountPercentage(7495.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"83371f9e-655b-45bf-871f-78208d290380","309f7423-10e7-4682-8ecb-292952165b51","248a70f7-0d08-4c0a-bc26-79dcbb96eba3","46daa398-b77a-4b41-a735-8e498b833c14","9bb0f89b-966b-42ee-bdc4-74f79dd8922a"}) + .description("gdQyyCPmcszk1DSduCpdgUz5UizzupfDUVzOTa3MaAaf4kTfREjRbk7TIk1gephK43IsijpvrzedeO1cdtY9cqUS5AzQzHd") + .discountUpperLimit(2379) + .displayStartsAt("2021-06-12T12:12:55.000000Z") + .displayEndsAt("2021-01-26T06:23:08.000000Z") + .setDisabled(true) .setHidden(false) .setPublic(false) - .code("hAD4rp") - .usageLimit(7287) - .minAmount(5143) - .storageId("505e7faa-8ce8-4cd7-931b-1c1116ecf546"); + .code("uEaRrfiO") + .usageLimit(2961) + .minAmount(1789) + .storageId("66c4a750-e39d-4bd8-ace0-8ab43cdd938a") + .numRecipientsCap(6326); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCpmTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCpmTransactionTest.java index 6d28c489..863074a3 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateCpmTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateCpmTransactionTest.java @@ -12,9 +12,9 @@ public class CreateCpmTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "hlbqaOElvScjtjkG1WEjlt", + "2b1f1d71-6f7c-43ff-8402-ede1dbaa7d59", + 7787.0 ); try { PartnerAPITest.getClient().send(request); @@ -30,9 +30,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "hlbqaOElvScjtjkG1WEjlt", + "2b1f1d71-6f7c-43ff-8402-ede1dbaa7d59", + 7787.0 ) .strategy("point-preferred"); try { @@ -49,12 +49,12 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "hlbqaOElvScjtjkG1WEjlt", + "2b1f1d71-6f7c-43ff-8402-ede1dbaa7d59", + 7787.0 ) - .requestId("77fe478d-5bc6-4e78-8807-b6de97513e52") - .strategy("point-preferred"); + .requestId("67639ef0-8c28-407c-8115-0a9317b14295") + .strategy("money-only"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -68,6 +68,59 @@ void test2() throws ConnectionError, ProcessingError { } @Test void test3() throws ConnectionError, ProcessingError { + 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", "{}"); + JsonObject items4 = new JsonObject(); + items4.addProperty("jan_code", "abc"); + items4.addProperty("name", "name1"); + items4.addProperty("unit_price", 100); + items4.addProperty("price", 100); + items4.addProperty("quantity", 1); + items4.addProperty("is_discounted", false); + items4.addProperty("other", "{}"); + Request request = new CreateCpmTransaction( + "hlbqaOElvScjtjkG1WEjlt", + "2b1f1d71-6f7c-43ff-8402-ede1dbaa7d59", + 7787.0 + ) + .products(new Object[]{items,items2,items3,items4}) + .requestId("466cd429-f461-44d8-a0ea-0629418d2755") + .strategy("point-preferred"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test4() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("jan_code", "abc"); items.addProperty("name", "name1"); @@ -141,12 +194,13 @@ void test3() throws ConnectionError, ProcessingError { items9.addProperty("is_discounted", false); items9.addProperty("other", "{}"); Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "hlbqaOElvScjtjkG1WEjlt", + "2b1f1d71-6f7c-43ff-8402-ede1dbaa7d59", + 7787.0 ) + .metadata("{\"key\":\"value\"}") .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .requestId("27df3392-3887-41d4-a9d4-dcd7c7e0a74f") + .requestId("35011dc2-f863-4ace-8f65-cc39aaf4ddd8") .strategy("money-only"); try { PartnerAPITest.getClient().send(request); @@ -160,7 +214,7 @@ void test3() throws ConnectionError, ProcessingError { } } @Test - void test4() throws ConnectionError, ProcessingError { + void test5() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("jan_code", "abc"); items.addProperty("name", "name1"); @@ -201,53 +255,23 @@ void test4() throws ConnectionError, ProcessingError { items5.addProperty("quantity", 1); items5.addProperty("is_discounted", false); items5.addProperty("other", "{}"); + JsonObject items6 = new JsonObject(); + items6.addProperty("jan_code", "abc"); + items6.addProperty("name", "name1"); + items6.addProperty("unit_price", 100); + items6.addProperty("price", 100); + items6.addProperty("quantity", 1); + items6.addProperty("is_discounted", false); + items6.addProperty("other", "{}"); Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 - ) - .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3,items4,items5}) - .requestId("94f12ee0-aa98-42cb-8c1e-da6849d2aba5") - .strategy("money-only"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test5() throws ConnectionError, ProcessingError { - 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 CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "hlbqaOElvScjtjkG1WEjlt", + "2b1f1d71-6f7c-43ff-8402-ede1dbaa7d59", + 7787.0 ) - .description("4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjH") + .description("Y4wthFo0glXBErIUB1p7aPMzXnAdDr") .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2}) - .requestId("391bed4c-b269-4fab-b226-1d00f8db6c8b") + .products(new Object[]{items,items2,items3,items4,items5,items6}) + .requestId("760540d9-4b39-4f5b-82b6-d147937221ee") .strategy("money-only"); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCreditSessionTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCreditSessionTransactionTest.java new file mode 100644 index 00000000..daa4a0c8 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/CreateCreditSessionTransactionTest.java @@ -0,0 +1,86 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.CreateCreditSessionTransaction; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CreateCreditSessionTransactionTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new CreateCreditSessionTransaction( + "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e", + 9780.0 + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test1() throws ConnectionError, ProcessingError { + Request request = new CreateCreditSessionTransaction( + "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e", + 9780.0 + ) + .requestId("2c826d8b-e412-4dbe-a759-328251097330"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test2() throws ConnectionError, ProcessingError { + Request request = new CreateCreditSessionTransaction( + "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e", + 9780.0 + ) + .description("BddIYIaGsnHTfyj3vGhpYs6lE3PVxThCRcEAVa4JmfjoJZ9ajsO39BqxPDSP5BpfA0dYcuMmHpa4aDHWm32hBFhI0DxRhz83lKq4Wp1hKlNvpHM0s7Dd9Uu6qWqC0qUtLag9adxARTcCtKjz1M2kusM3cVDMOGMtpxWNvKR6Gcp6PWCiN") + .requestId("637c48af-86f9-48ed-82e1-99558a467bfe"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test3() throws ConnectionError, ProcessingError { + Request request = new CreateCreditSessionTransaction( + "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e", + 9780.0 + ) + .shopId("4d1e7adb-31c9-4ea0-b5b6-7310d8249eec") + .description("IyVNDYRttS46oTXBYnbHbMuAdnXANiixumuncg7egxc7L05i8jkZ1Waa6h6AAgB9jXehhbgsnyiHZ1n3qwk3r3QhfSXAhy6Q6NsE0G4ETHn0hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUg") + .requestId("3c19993c-6f8f-4de2-b2ae-9871bf5118f1"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCustomerAccountTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCustomerAccountTest.java index bdd76850..b9025efe 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateCustomerAccountTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateCustomerAccountTest.java @@ -12,7 +12,7 @@ public class CreateCustomerAccountTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateCustomerAccount( - "c454fa7a-8121-47c1-8460-3b4e2ea6762c" + "9772bb29-fb26-4652-90cb-cd8d7140fd12" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCustomerAccount( - "c454fa7a-8121-47c1-8460-3b4e2ea6762c" + "9772bb29-fb26-4652-90cb-cd8d7140fd12" ) - .externalId("e87oi"); + .externalId("62IzWH9emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPC"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateCustomerAccount( - "c454fa7a-8121-47c1-8460-3b4e2ea6762c" + "9772bb29-fb26-4652-90cb-cd8d7140fd12" ) - .accountName("kJDB6ZsUUsk6umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXh") - .externalId("26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5"); + .accountName("zbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuIVqRIEU93kljq1Q8TjukgNdosrcsbqXkW") + .externalId("qVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvIL"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateCustomerAccount( - "c454fa7a-8121-47c1-8460-3b4e2ea6762c" + "9772bb29-fb26-4652-90cb-cd8d7140fd12" ) - .userName("bgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH") - .accountName("emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdW") - .externalId("jKy82N74m"); + .userName("X828FihWZQyqSbK0FMXzQI3K0up") + .accountName("8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4m") + .externalId("TYqNNFPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCustomerCardTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCustomerCardTest.java new file mode 100644 index 00000000..837e143e --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/CreateCustomerCardTest.java @@ -0,0 +1,47 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.CreateCustomerCard; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CreateCustomerCardTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new CreateCustomerCard( + "28fc759d-a3b4-4558-8566-92554f2bd615", + "e1" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test1() throws ConnectionError, ProcessingError { + Request request = new CreateCustomerCard( + "28fc759d-a3b4-4558-8566-92554f2bd615", + "e1" + ) + .setCardholderNameSpecified(true); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCvsAuthorizationTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCvsAuthorizationTest.java new file mode 100644 index 00000000..12992ce4 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/CreateCvsAuthorizationTest.java @@ -0,0 +1,216 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.CreateCvsAuthorization; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CreateCvsAuthorizationTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new CreateCvsAuthorization( + "4a331524-98b9-4528-8a88-951547912afc", + "2eca846c-e5a5-49d2-96a8-dc9c0be1c1a7", + 251726, + "sej", + "CAhIxw", + "eHf4mhVFw", + "6RKDem" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test1() throws ConnectionError, ProcessingError { + Request request = new CreateCvsAuthorization( + "4a331524-98b9-4528-8a88-951547912afc", + "2eca846c-e5a5-49d2-96a8-dc9c0be1c1a7", + 251726, + "sej", + "CAhIxw", + "eHf4mhVFw", + "6RKDem" + ) + .freekey("qp6"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test2() throws ConnectionError, ProcessingError { + Request request = new CreateCvsAuthorization( + "4a331524-98b9-4528-8a88-951547912afc", + "2eca846c-e5a5-49d2-96a8-dc9c0be1c1a7", + 251726, + "sej", + "CAhIxw", + "eHf4mhVFw", + "6RKDem" + ) + .memo3("wQ5yfMr36GSBF53m0mp") + .freekey("zFC6w0X5I7uvEXS0UK58kc0XFbMp2X0PYHGG2e4M"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test3() throws ConnectionError, ProcessingError { + Request request = new CreateCvsAuthorization( + "4a331524-98b9-4528-8a88-951547912afc", + "2eca846c-e5a5-49d2-96a8-dc9c0be1c1a7", + 251726, + "sej", + "CAhIxw", + "eHf4mhVFw", + "6RKDem" + ) + .memo2("Evq1mFiWv48WG3246bKpruw421A") + .memo3("5dz9FT43X58oog5Wd26y0H5g5kbO0cbo4qZL78YrNWBn1IsWNRRur8") + .freekey("5Cw0ocbi67mA4bz9VV143W1yC3urDT09tEss52t4SLUV8bJu8meHaM"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test4() throws ConnectionError, ProcessingError { + Request request = new CreateCvsAuthorization( + "4a331524-98b9-4528-8a88-951547912afc", + "2eca846c-e5a5-49d2-96a8-dc9c0be1c1a7", + 251726, + "sej", + "CAhIxw", + "eHf4mhVFw", + "6RKDem" + ) + .memo1("rqSym9nhMtPy0acAAAI0Q7NlIm4C9TBq90y") + .memo2("Nq1ZbxIh3UNkYTd0IiTkmOCEpZ371SJo8V2JetTNfSUHM3338k1e6KXMTdE363nLzyURBpsB1oHcl3ac") + .memo3("qv7loR105F96Trm1wJ8mP669d58Wxt1bY1575Hw28TjMP1JWOz3Hawhhq9q8LJac8W55l") + .freekey("h9dhLza2J3r8c2xVo62"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test5() throws ConnectionError, ProcessingError { + Request request = new CreateCvsAuthorization( + "4a331524-98b9-4528-8a88-951547912afc", + "2eca846c-e5a5-49d2-96a8-dc9c0be1c1a7", + 251726, + "sej", + "CAhIxw", + "eHf4mhVFw", + "6RKDem" + ) + .topupQuotaId(6971) + .memo1("bhLSu5KZQ7ubDvKrYJ2jvcK9e7be84YozM9w75pZ5WsU5") + .memo2("6UsW5M7sd0V90Va5IcSnfEWoG3TT0NbBwTG8cp75Z50GzM5k") + .memo3("3QfkgVu0CDiY5YjP6PR1MDlVyY5xIC7b5F5jMGcXCf") + .freekey("Q5Xw59qGNQkvy5C285zF8rMHH5ybK15HDM4hF44tPbHq7L1Q91r4i7Ay6WyQ769"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test6() throws ConnectionError, ProcessingError { + Request request = new CreateCvsAuthorization( + "4a331524-98b9-4528-8a88-951547912afc", + "2eca846c-e5a5-49d2-96a8-dc9c0be1c1a7", + 251726, + "sej", + "CAhIxw", + "eHf4mhVFw", + "6RKDem" + ) + .description("0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIy") + .topupQuotaId(7971) + .memo1("h8FHkd361AV10S6Q71Unrhq1v9H4mso0kzj0LIh5vUc50L44Lx4kH5XfKu5S6eE5psPP1wY68cnp3") + .memo2("8WPtMVP6lg0Te51m5nrE4kBj4") + .memo3("4898e8dYCIK923mHW8M6U6x4c0B2ehYIYSt44uP1e9vj2fCVyb98DfAdoNGYNtYNUOEIjMWKX7wQ938Uha7Ax8A6") + .freekey("C63Uv2874Ack9rZ261f7lWd63mMNtY54HZDwIs2TpRPkwhol05FDsK9z5Z0y6ptgU2P9dMuLaFvbnuaAA8FOg"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test7() throws ConnectionError, ProcessingError { + Request request = new CreateCvsAuthorization( + "4a331524-98b9-4528-8a88-951547912afc", + "2eca846c-e5a5-49d2-96a8-dc9c0be1c1a7", + 251726, + "sej", + "CAhIxw", + "eHf4mhVFw", + "6RKDem" + ) + .receiverUserId("ba488ef6-8319-46be-b482-b685c26bff39") + .description("MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKn") + .topupQuotaId(367) + .memo1("iEDf0LbSMkhM9bwkyfCEo27t0BghDGvNW61MIuZN37bnv813RSm4ouGh8S79S2EKhe57u0lfv3Ky9b805MV3") + .memo2("g7P9370h99vVXT9x4C6i") + .memo3("ko9W48qf2tGFnA1TKkUk8jj1wo747zR0nly5l91VGP3Ep14Rl5n1qS23L5C40oAAJH5Hjq8el") + .freekey("wso8YSgBd7Y78LqseKVodC72J83h9lm4z6C9Rs6FyJNl217Ywe8A2Ix39S072jo5LP2pqRbDgZX9sKA28"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java index ea299851..61faee0e 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java @@ -12,10 +12,10 @@ public class CreateExchangeTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateExchangeTransaction( - "ca127c0c-3261-4028-94cc-ccf2d2a52131", - "c81a0cc2-7c07-4a5f-9e8b-8ecc4a7031d9", - "db01c22d-6011-4ce4-a38d-62e775c56e73", - 7412 + "a8afafba-0c36-43a0-a822-ff730078396e", + "baa57b94-4241-4783-a440-3b3e382fb339", + "48615ce8-daa7-42c5-8c5d-c9028359746b", + 994 ); try { PartnerAPITest.getClient().send(request); @@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateExchangeTransaction( - "ca127c0c-3261-4028-94cc-ccf2d2a52131", - "c81a0cc2-7c07-4a5f-9e8b-8ecc4a7031d9", - "db01c22d-6011-4ce4-a38d-62e775c56e73", - 7412 + "a8afafba-0c36-43a0-a822-ff730078396e", + "baa57b94-4241-4783-a440-3b3e382fb339", + "48615ce8-daa7-42c5-8c5d-c9028359746b", + 994 ) - .requestId("92f5b7ff-f7c2-450e-bc37-458e428585bb"); + .requestId("ac377f10-22a7-461d-a30c-d03b67720d17"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateExchangeTransaction( - "ca127c0c-3261-4028-94cc-ccf2d2a52131", - "c81a0cc2-7c07-4a5f-9e8b-8ecc4a7031d9", - "db01c22d-6011-4ce4-a38d-62e775c56e73", - 7412 + "a8afafba-0c36-43a0-a822-ff730078396e", + "baa57b94-4241-4783-a440-3b3e382fb339", + "48615ce8-daa7-42c5-8c5d-c9028359746b", + 994 ) - .description("f3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5c") - .requestId("1ea02ddd-cfa7-4d7b-9c0d-0729624b266b"); + .description("B4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQ") + .requestId("1a813685-9045-44a3-b8f5-9723be8efcbc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateExternalTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateExternalTransactionTest.java index 73757b9c..3eaf836f 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateExternalTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateExternalTransactionTest.java @@ -12,10 +12,10 @@ public class CreateExternalTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "0dc3ff75-cfbf-4481-b22c-647cb625b2e3", + "2432d79d-d0ff-443e-add6-f73c44fe6310", + "124d6b19-078e-48cf-83d0-37da64e9350f", + 2086 ); try { PartnerAPITest.getClient().send(request); @@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "0dc3ff75-cfbf-4481-b22c-647cb625b2e3", + "2432d79d-d0ff-443e-add6-f73c44fe6310", + "124d6b19-078e-48cf-83d0-37da64e9350f", + 2086 ) - .doneAt("2021-12-27T02:20:28.000000Z"); + .doneAt("2020-09-20T03:20:55.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "0dc3ff75-cfbf-4481-b22c-647cb625b2e3", + "2432d79d-d0ff-443e-add6-f73c44fe6310", + "124d6b19-078e-48cf-83d0-37da64e9350f", + 2086 ) - .requestId("043b69d1-e8c2-4486-9f49-0d0c4338b4d8") - .doneAt("2021-07-15T01:50:22.000000Z"); + .requestId("20b778f7-ba4d-4bd7-8867-94510f672fbc") + .doneAt("2022-10-29T11:05:36.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -87,15 +87,55 @@ void test3() throws ConnectionError, ProcessingError { 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", "{}"); + JsonObject items4 = new JsonObject(); + items4.addProperty("jan_code", "abc"); + items4.addProperty("name", "name1"); + items4.addProperty("unit_price", 100); + items4.addProperty("price", 100); + items4.addProperty("quantity", 1); + items4.addProperty("is_discounted", false); + items4.addProperty("other", "{}"); + JsonObject items5 = new JsonObject(); + items5.addProperty("jan_code", "abc"); + items5.addProperty("name", "name1"); + items5.addProperty("unit_price", 100); + items5.addProperty("price", 100); + items5.addProperty("quantity", 1); + items5.addProperty("is_discounted", false); + items5.addProperty("other", "{}"); + JsonObject items6 = new JsonObject(); + items6.addProperty("jan_code", "abc"); + items6.addProperty("name", "name1"); + items6.addProperty("unit_price", 100); + items6.addProperty("price", 100); + items6.addProperty("quantity", 1); + items6.addProperty("is_discounted", false); + items6.addProperty("other", "{}"); + JsonObject items7 = new JsonObject(); + items7.addProperty("jan_code", "abc"); + items7.addProperty("name", "name1"); + items7.addProperty("unit_price", 100); + items7.addProperty("price", 100); + items7.addProperty("quantity", 1); + items7.addProperty("is_discounted", false); + items7.addProperty("other", "{}"); Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "0dc3ff75-cfbf-4481-b22c-647cb625b2e3", + "2432d79d-d0ff-443e-add6-f73c44fe6310", + "124d6b19-078e-48cf-83d0-37da64e9350f", + 2086 ) - .products(new Object[]{items,items2}) - .requestId("96edc93f-6bca-4fc2-8be7-b525e401f85d") - .doneAt("2024-02-02T10:33:18.000000Z"); + .products(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .requestId("95f928c5-a153-4b94-8866-c0bd662f47f3") + .doneAt("2025-02-17T15:11:05.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -117,32 +157,16 @@ void test4() throws ConnectionError, ProcessingError { 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 CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "0dc3ff75-cfbf-4481-b22c-647cb625b2e3", + "2432d79d-d0ff-443e-add6-f73c44fe6310", + "124d6b19-078e-48cf-83d0-37da64e9350f", + 2086 ) .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3}) - .requestId("406e7215-c344-46b1-9c0b-5dc00ce938f9") - .doneAt("2020-12-01T12:39:39.000000Z"); + .products(new Object[]{items}) + .requestId("37441857-d7fc-4eb9-a207-c1955cb4c25b") + .doneAt("2026-03-07T06:29:13.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -164,73 +188,17 @@ void test5() throws ConnectionError, ProcessingError { 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", "{}"); - JsonObject items4 = new JsonObject(); - items4.addProperty("jan_code", "abc"); - items4.addProperty("name", "name1"); - items4.addProperty("unit_price", 100); - items4.addProperty("price", 100); - items4.addProperty("quantity", 1); - items4.addProperty("is_discounted", false); - items4.addProperty("other", "{}"); - JsonObject items5 = new JsonObject(); - items5.addProperty("jan_code", "abc"); - items5.addProperty("name", "name1"); - items5.addProperty("unit_price", 100); - items5.addProperty("price", 100); - items5.addProperty("quantity", 1); - items5.addProperty("is_discounted", false); - items5.addProperty("other", "{}"); - JsonObject items6 = new JsonObject(); - items6.addProperty("jan_code", "abc"); - items6.addProperty("name", "name1"); - items6.addProperty("unit_price", 100); - items6.addProperty("price", 100); - items6.addProperty("quantity", 1); - items6.addProperty("is_discounted", false); - items6.addProperty("other", "{}"); - JsonObject items7 = new JsonObject(); - items7.addProperty("jan_code", "abc"); - items7.addProperty("name", "name1"); - items7.addProperty("unit_price", 100); - items7.addProperty("price", 100); - items7.addProperty("quantity", 1); - items7.addProperty("is_discounted", false); - items7.addProperty("other", "{}"); - JsonObject items8 = new JsonObject(); - items8.addProperty("jan_code", "abc"); - items8.addProperty("name", "name1"); - items8.addProperty("unit_price", 100); - items8.addProperty("price", 100); - items8.addProperty("quantity", 1); - items8.addProperty("is_discounted", false); - items8.addProperty("other", "{}"); Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "0dc3ff75-cfbf-4481-b22c-647cb625b2e3", + "2432d79d-d0ff-443e-add6-f73c44fe6310", + "124d6b19-078e-48cf-83d0-37da64e9350f", + 2086 ) - .description("FlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rW") + .description("dczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVh") .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .requestId("8481e464-8ecb-439a-b2f9-a6101006bce2") - .doneAt("2023-06-01T04:59:05.000000Z"); + .products(new Object[]{items}) + .requestId("2c5c1890-a3c3-4fe5-ab07-21628dffd664") + .doneAt("2022-07-24T16:57:32.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateOrganizationTest.java b/src/test/java/jp/pokepay/partnerapi/CreateOrganizationTest.java index c3c77a8c..f37f09fe 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateOrganizationTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateOrganizationTest.java @@ -12,11 +12,11 @@ public class CreateOrganizationTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "B5vuUQlHHWHdf", + "KJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79q", + new String[]{"646ecec6-5ad4-4d2f-aa28-11d67e47d0e9","761e3dd7-22de-4cc7-ab0d-e93b549f6722"}, + "7rsKgu2iho@MxDs.com", + "fU3TC1A8fV@5nkz.com" ); try { PartnerAPITest.getClient().send(request); @@ -32,13 +32,13 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "B5vuUQlHHWHdf", + "KJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79q", + new String[]{"646ecec6-5ad4-4d2f-aa28-11d67e47d0e9","761e3dd7-22de-4cc7-ab0d-e93b549f6722"}, + "7rsKgu2iho@MxDs.com", + "fU3TC1A8fV@5nkz.com" ) - .contactName("SoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcda"); + .contactName("aMo6HNFjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxR"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -53,14 +53,14 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "B5vuUQlHHWHdf", + "KJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79q", + new String[]{"646ecec6-5ad4-4d2f-aa28-11d67e47d0e9","761e3dd7-22de-4cc7-ab0d-e93b549f6722"}, + "7rsKgu2iho@MxDs.com", + "fU3TC1A8fV@5nkz.com" ) - .bankAccountHolderName("R") - .contactName("9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs8"); + .bankAccountHolderName("ヲ") + .contactName("SMcAe6DLpfhwjho9qAj035"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -75,15 +75,15 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "B5vuUQlHHWHdf", + "KJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79q", + new String[]{"646ecec6-5ad4-4d2f-aa28-11d67e47d0e9","761e3dd7-22de-4cc7-ab0d-e93b549f6722"}, + "7rsKgu2iho@MxDs.com", + "fU3TC1A8fV@5nkz.com" ) - .bankAccount("116767") - .bankAccountHolderName("8") - .contactName("zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7"); + .bankAccount("62051") + .bankAccountHolderName("Y") + .contactName("L4LWrEkUrKUADYaUMS4V1xY0z6q9"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -98,16 +98,16 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "B5vuUQlHHWHdf", + "KJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79q", + new String[]{"646ecec6-5ad4-4d2f-aa28-11d67e47d0e9","761e3dd7-22de-4cc7-ab0d-e93b549f6722"}, + "7rsKgu2iho@MxDs.com", + "fU3TC1A8fV@5nkz.com" ) .bankAccountType("other") - .bankAccount("89874") - .bankAccountHolderName(",") - .contactName("43AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchk"); + .bankAccount("2994") + .bankAccountHolderName("C") + .contactName("7ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8l"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -122,17 +122,17 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "B5vuUQlHHWHdf", + "KJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79q", + new String[]{"646ecec6-5ad4-4d2f-aa28-11d67e47d0e9","761e3dd7-22de-4cc7-ab0d-e93b549f6722"}, + "7rsKgu2iho@MxDs.com", + "fU3TC1A8fV@5nkz.com" ) - .bankBranchCode("165") - .bankAccountType("saving") - .bankAccount("300") - .bankAccountHolderName("ラ") - .contactName("ZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RI"); + .bankBranchCode("973") + .bankAccountType("current") + .bankAccount("532") + .bankAccountHolderName("セ") + .contactName("2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIU"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -147,18 +147,18 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "B5vuUQlHHWHdf", + "KJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79q", + new String[]{"646ecec6-5ad4-4d2f-aa28-11d67e47d0e9","761e3dd7-22de-4cc7-ab0d-e93b549f6722"}, + "7rsKgu2iho@MxDs.com", + "fU3TC1A8fV@5nkz.com" ) - .bankBranchName("GwbFSZ2qU3L") - .bankBranchCode("624") - .bankAccountType("saving") - .bankAccount("5") - .bankAccountHolderName("\\") - .contactName("3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7"); + .bankBranchName("lfvobOc") + .bankBranchCode("") + .bankAccountType("current") + .bankAccount("1415") + .bankAccountHolderName("/") + .contactName("s3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -173,19 +173,19 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "B5vuUQlHHWHdf", + "KJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79q", + new String[]{"646ecec6-5ad4-4d2f-aa28-11d67e47d0e9","761e3dd7-22de-4cc7-ab0d-e93b549f6722"}, + "7rsKgu2iho@MxDs.com", + "fU3TC1A8fV@5nkz.com" ) - .bankCode("4615") - .bankBranchName("klIR5ig74Fkbtbb0Sl") - .bankBranchCode("219") - .bankAccountType("other") - .bankAccount("7948") - .bankAccountHolderName("\\") - .contactName("Hxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp9"); + .bankCode("6957") + .bankBranchName("stqj7jJ1Xazd0M0QE8si7Wk") + .bankBranchCode("") + .bankAccountType("saving") + .bankAccount("833") + .bankAccountHolderName("3") + .contactName("ss0bSZ1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -200,20 +200,20 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "B5vuUQlHHWHdf", + "KJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79q", + new String[]{"646ecec6-5ad4-4d2f-aa28-11d67e47d0e9","761e3dd7-22de-4cc7-ab0d-e93b549f6722"}, + "7rsKgu2iho@MxDs.com", + "fU3TC1A8fV@5nkz.com" ) - .bankName("ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5Y") + .bankName("cR5rMDg0iBD2et6R89vRehYIZbMh6MfShA8D4Ev7O7TGT70LQ2epxhXvfJrqw") .bankCode("") - .bankBranchName("VquVYsbDyy") - .bankBranchCode("292") - .bankAccountType("other") - .bankAccount("534") - .bankAccountHolderName(".") - .contactName("qoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJ"); + .bankBranchName("wzvG") + .bankBranchCode("") + .bankAccountType("current") + .bankAccount("9341") + .bankAccountHolderName("E") + .contactName("QSvr2jD2CPBEg6qDXhSH8hafJy0sDTnMPtA7T3E2nC8J"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionTest.java index 96db774d..4740f866 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionTest.java @@ -12,10 +12,10 @@ public class CreatePaymentTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreatePaymentTransaction( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "a25c5d17-55fb-4757-97fd-af235b378848", + "71285854-fa61-4252-abdd-05982c5d4137", + "a5602371-f8aa-4c00-b8fc-7e8dd8c09ce9", + 4808 ); try { PartnerAPITest.getClient().send(request); @@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreatePaymentTransaction( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "a25c5d17-55fb-4757-97fd-af235b378848", + "71285854-fa61-4252-abdd-05982c5d4137", + "a5602371-f8aa-4c00-b8fc-7e8dd8c09ce9", + 4808 ) - .strategy("money-only"); + .couponId("ac43ea8c-ea6f-46ae-9400-617cc99f27f6"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreatePaymentTransaction( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "a25c5d17-55fb-4757-97fd-af235b378848", + "71285854-fa61-4252-abdd-05982c5d4137", + "a5602371-f8aa-4c00-b8fc-7e8dd8c09ce9", + 4808 ) - .requestId("2aa855f3-c72b-4758-bde2-f146fa62868a") - .strategy("money-only"); + .strategy("point-preferred") + .couponId("967ea154-38d7-4c17-af50-414ed07e4662"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -71,6 +71,28 @@ void test2() throws ConnectionError, ProcessingError { } @Test void test3() throws ConnectionError, ProcessingError { + Request request = new CreatePaymentTransaction( + "a25c5d17-55fb-4757-97fd-af235b378848", + "71285854-fa61-4252-abdd-05982c5d4137", + "a5602371-f8aa-4c00-b8fc-7e8dd8c09ce9", + 4808 + ) + .requestId("8d08ab43-f855-4c58-b3ba-f7579803e39c") + .strategy("money-only") + .couponId("dc82ca8f-fc76-4c7d-9530-42ec64ea0a6e"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test4() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("jan_code", "abc"); items.addProperty("name", "name1"); @@ -103,31 +125,16 @@ void test3() throws ConnectionError, ProcessingError { items4.addProperty("quantity", 1); items4.addProperty("is_discounted", false); items4.addProperty("other", "{}"); - JsonObject items5 = new JsonObject(); - items5.addProperty("jan_code", "abc"); - items5.addProperty("name", "name1"); - items5.addProperty("unit_price", 100); - items5.addProperty("price", 100); - items5.addProperty("quantity", 1); - items5.addProperty("is_discounted", false); - items5.addProperty("other", "{}"); - JsonObject items6 = new JsonObject(); - items6.addProperty("jan_code", "abc"); - items6.addProperty("name", "name1"); - items6.addProperty("unit_price", 100); - items6.addProperty("price", 100); - items6.addProperty("quantity", 1); - items6.addProperty("is_discounted", false); - items6.addProperty("other", "{}"); Request request = new CreatePaymentTransaction( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "a25c5d17-55fb-4757-97fd-af235b378848", + "71285854-fa61-4252-abdd-05982c5d4137", + "a5602371-f8aa-4c00-b8fc-7e8dd8c09ce9", + 4808 ) - .products(new Object[]{items,items2,items3,items4,items5,items6}) - .requestId("3829af74-a55a-42fb-b477-53c649410e93") - .strategy("point-preferred"); + .products(new Object[]{items,items2,items3,items4}) + .requestId("e699fabd-7659-4c25-bfd7-f637136c7cdb") + .strategy("money-only") + .couponId("67e65e57-d7de-40f5-acf8-e14a434df60d"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -140,7 +147,7 @@ void test3() throws ConnectionError, ProcessingError { } } @Test - void test4() throws ConnectionError, ProcessingError { + void test5() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("jan_code", "abc"); items.addProperty("name", "name1"); @@ -157,64 +164,17 @@ void test4() throws ConnectionError, ProcessingError { 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", "{}"); - JsonObject items4 = new JsonObject(); - items4.addProperty("jan_code", "abc"); - items4.addProperty("name", "name1"); - items4.addProperty("unit_price", 100); - items4.addProperty("price", 100); - items4.addProperty("quantity", 1); - items4.addProperty("is_discounted", false); - items4.addProperty("other", "{}"); - JsonObject items5 = new JsonObject(); - items5.addProperty("jan_code", "abc"); - items5.addProperty("name", "name1"); - items5.addProperty("unit_price", 100); - items5.addProperty("price", 100); - items5.addProperty("quantity", 1); - items5.addProperty("is_discounted", false); - items5.addProperty("other", "{}"); - JsonObject items6 = new JsonObject(); - items6.addProperty("jan_code", "abc"); - items6.addProperty("name", "name1"); - items6.addProperty("unit_price", 100); - items6.addProperty("price", 100); - items6.addProperty("quantity", 1); - items6.addProperty("is_discounted", false); - items6.addProperty("other", "{}"); - JsonObject items7 = new JsonObject(); - items7.addProperty("jan_code", "abc"); - items7.addProperty("name", "name1"); - items7.addProperty("unit_price", 100); - items7.addProperty("price", 100); - items7.addProperty("quantity", 1); - items7.addProperty("is_discounted", false); - items7.addProperty("other", "{}"); - JsonObject items8 = new JsonObject(); - items8.addProperty("jan_code", "abc"); - items8.addProperty("name", "name1"); - items8.addProperty("unit_price", 100); - items8.addProperty("price", 100); - items8.addProperty("quantity", 1); - items8.addProperty("is_discounted", false); - items8.addProperty("other", "{}"); Request request = new CreatePaymentTransaction( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "a25c5d17-55fb-4757-97fd-af235b378848", + "71285854-fa61-4252-abdd-05982c5d4137", + "a5602371-f8aa-4c00-b8fc-7e8dd8c09ce9", + 4808 ) .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .requestId("48d1c6ac-7999-4478-82ae-158994bd6c1a") - .strategy("money-only"); + .products(new Object[]{items,items2}) + .requestId("8b5b9e65-d196-4f6a-bc45-6407db70a31d") + .strategy("money-only") + .couponId("c4e892ad-f3ac-46d8-a986-3f65455eabfd"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -227,7 +187,7 @@ void test4() throws ConnectionError, ProcessingError { } } @Test - void test5() throws ConnectionError, ProcessingError { + void test6() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("jan_code", "abc"); items.addProperty("name", "name1"); @@ -268,41 +228,18 @@ void test5() throws ConnectionError, ProcessingError { items5.addProperty("quantity", 1); items5.addProperty("is_discounted", false); items5.addProperty("other", "{}"); - JsonObject items6 = new JsonObject(); - items6.addProperty("jan_code", "abc"); - items6.addProperty("name", "name1"); - items6.addProperty("unit_price", 100); - items6.addProperty("price", 100); - items6.addProperty("quantity", 1); - items6.addProperty("is_discounted", false); - items6.addProperty("other", "{}"); - JsonObject items7 = new JsonObject(); - items7.addProperty("jan_code", "abc"); - items7.addProperty("name", "name1"); - items7.addProperty("unit_price", 100); - items7.addProperty("price", 100); - items7.addProperty("quantity", 1); - items7.addProperty("is_discounted", false); - items7.addProperty("other", "{}"); - JsonObject items8 = new JsonObject(); - items8.addProperty("jan_code", "abc"); - items8.addProperty("name", "name1"); - items8.addProperty("unit_price", 100); - items8.addProperty("price", 100); - items8.addProperty("quantity", 1); - items8.addProperty("is_discounted", false); - items8.addProperty("other", "{}"); Request request = new CreatePaymentTransaction( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "a25c5d17-55fb-4757-97fd-af235b378848", + "71285854-fa61-4252-abdd-05982c5d4137", + "a5602371-f8aa-4c00-b8fc-7e8dd8c09ce9", + 4808 ) - .description("LsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zL") + .description("mEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlD") .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .requestId("d910fda9-2d27-407b-8e19-bb249777445a") - .strategy("money-only"); + .products(new Object[]{items,items2,items3,items4,items5}) + .requestId("a43f7169-fee1-4ea4-a3a9-74bc7a40624f") + .strategy("point-preferred") + .couponId("77bbccad-91be-4487-b7c0-672306a95238"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionWithBillTest.java b/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionWithBillTest.java new file mode 100644 index 00000000..956f95f2 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionWithBillTest.java @@ -0,0 +1,86 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.CreatePaymentTransactionWithBill; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CreatePaymentTransactionWithBillTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new CreatePaymentTransactionWithBill( + "6ce43cde-875c-44d1-9ce6-3c8c2f2c7d80", + "c78b1de8-84ce-4fbd-8598-41629c9bba40" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test1() throws ConnectionError, ProcessingError { + Request request = new CreatePaymentTransactionWithBill( + "6ce43cde-875c-44d1-9ce6-3c8c2f2c7d80", + "c78b1de8-84ce-4fbd-8598-41629c9bba40" + ) + .strategy("point-preferred"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test2() throws ConnectionError, ProcessingError { + Request request = new CreatePaymentTransactionWithBill( + "6ce43cde-875c-44d1-9ce6-3c8c2f2c7d80", + "c78b1de8-84ce-4fbd-8598-41629c9bba40" + ) + .requestId("686ad6df-e5bc-4e04-9d0b-0db39820d92f") + .strategy("money-only"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test3() throws ConnectionError, ProcessingError { + Request request = new CreatePaymentTransactionWithBill( + "6ce43cde-875c-44d1-9ce6-3c8c2f2c7d80", + "c78b1de8-84ce-4fbd-8598-41629c9bba40" + ) + .metadata("{\"key\":\"value\"}") + .requestId("1de9d2e6-2706-4947-bba6-0d2ee2ba039d") + .strategy("point-preferred"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/CreateShopTest.java b/src/test/java/jp/pokepay/partnerapi/CreateShopTest.java index 5a50ce69..ea5c66d2 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateShopTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateShopTest.java @@ -12,7 +12,7 @@ public class CreateShopTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "XvMXdI" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "XvMXdI" ) - .organizationCode("T-sG-A-Y4rx3806--"); + .organizationCode("8kK-qM-T5ct101mv7n-9g-Q-"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "XvMXdI" ) - .shopExternalId("cqmENfDor1zgwF9x3") - .organizationCode("2-"); + .shopExternalId("AMu89mD0TpxWczQUyWaVgBaL") + .organizationCode("bz9Pr--Ih-Lfr6l-A9yc--S"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "XvMXdI" ) - .shopEmail("fU4cD6smAe@qngi.com") - .shopExternalId("ikqDE3OudXpYhNw") - .organizationCode("ZA7BK-"); + .shopEmail("17C6RF6LyM@xBAx.com") + .shopExternalId("NrASDj9") + .organizationCode("p--94h4-i-SD6oYq5-C1-5"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "XvMXdI" ) - .shopTel("0476633-271") - .shopEmail("1FfneXYRV1@FBu9.com") - .shopExternalId("VqwmK2QWEkaIk3Nf304AeRoMBnYR") - .organizationCode("I-sc750tZXruc"); + .shopTel("00736-837") + .shopEmail("PDggrznNWB@V0p9.com") + .shopExternalId("BBTTp6AGpMMO3b") + .organizationCode(""); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "XvMXdI" ) - .shopAddress("EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJ") - .shopTel("02557640") - .shopEmail("g3h5b1QYmV@Ctk7.com") - .shopExternalId("JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspa") - .organizationCode("Y1l-3S-a99d39XW2-OAW4--i"); + .shopAddress("Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBE") + .shopTel("0926-2124-2839") + .shopEmail("Wcb1nyLLVI@f7PJ.com") + .shopExternalId("4PKIYRAl1UCuQycW") + .organizationCode("jPpx-zD1-bCv9HEB59-8ZjKd"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "XvMXdI" ) - .shopPostalCode("1393414") - .shopAddress("bb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd") - .shopTel("0061231408") - .shopEmail("qoWmfQbT09@Lp66.com") - .shopExternalId("g0d7eGITtIklkYFTO7OJe9dSEOGAL") - .organizationCode("t518798nQhn-67"); + .shopPostalCode("8712534") + .shopAddress("VRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY") + .shopTel("0978-673") + .shopEmail("D0f28rlwLb@9YSb.com") + .shopExternalId("pmMET9MPbipC8ut") + .organizationCode("--4-r-5NGe--mvjWC6-6H6Z9"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateShopV2Test.java b/src/test/java/jp/pokepay/partnerapi/CreateShopV2Test.java index 8ac3f459..ca4cd95b 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateShopV2Test.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateShopV2Test.java @@ -12,7 +12,7 @@ public class CreateShopV2Test { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "f9xqeV9Lg6T4ooRxK5" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "f9xqeV9Lg6T4ooRxK5" ) - .canTopupPrivateMoneyIds(new String[]{}); + .canTopupPrivateMoneyIds(new String[]{"8e56fdde-3185-4152-98f2-5eadb2a3a833","07d7b329-8516-4228-8668-b0fb8e43c48e","507dbdb8-4065-4467-8e46-66cd448c57d9","21b19c55-9890-4bc3-8eb7-1614cae1d03a","8fdf1bd1-1abc-4a05-8ab0-d640046a0651","a72b5a9f-722a-47fc-bc07-0e07fe0b49a1"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "f9xqeV9Lg6T4ooRxK5" ) - .privateMoneyIds(new String[]{"f30fb147-1426-4944-bd88-6a56dd9456d2","38fb19e4-5c6f-45a0-aa85-1b47556f5a6a","233f947b-36e9-4067-8870-a11470b6451f","c69e96da-3ebb-4104-ac1b-8d9d9ff28392","b1c0c838-6e49-426e-95a5-81a6f2d8a82d","92f1a6c8-9fa2-4e13-9142-5ee846a8fecd","a780f03b-a949-4c7b-8e72-e364b7864dda","9b1e774a-a60c-4f54-9827-ad3976c8a505"}) - .canTopupPrivateMoneyIds(new String[]{"474d3cff-204d-4f6e-9167-3047572dcdfe","19307487-c38a-4ee6-a380-ad8429fb46c5","793eb0ec-38aa-4feb-9363-55f43d0263b5","fc1685ab-b040-48b6-b442-89b33eb85d40","eef3a0d1-0c76-4c9b-80d9-62ea69c91f11","42909ef9-8138-486d-bb55-fe9242f0b0aa","5051c900-a3e7-4fc4-b995-18d8133f5e2e","2aa5f88e-fc51-4f3a-a314-3c59ffd68307"}); + .privateMoneyIds(new String[]{"29a9045c-bc81-4dd7-ac01-1881851a6e71","ccb4b589-6f3f-4f77-b43f-eec412939acc","00edfc38-4838-4c61-8c66-723f8e46e8ab","d293a7db-7267-4a2b-a943-fd14bb3a542e","58fc68a6-82e4-49b3-ac02-bbed1d7bc9f3","1719b165-a28c-40cc-91fd-6d2822493342","8c74292c-d124-4058-8901-7a1ef50bb6d5","1bb725e9-1585-4bbf-9908-56f0d0614292"}) + .canTopupPrivateMoneyIds(new String[]{"a37ce39f-24d4-4d5b-8076-91a5efc9de4e","02376599-3411-4a06-a7e6-78a04c1ec3e1","1427f64b-c611-4e7c-bf14-51b3159480dc","cedee150-616f-476f-9877-c1f094c16d4b","ced650c1-95f8-4725-b38f-7a1febe8f56b"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "f9xqeV9Lg6T4ooRxK5" ) - .organizationCode("45obEl-JlK8KJ-2") - .privateMoneyIds(new String[]{"571c1f61-0fa0-41ee-8cc9-4014511f14aa","b04c775c-5a7e-4500-8cbc-420599d77cb8","4509ce25-bbc6-4a89-b1c9-a858198be5f1"}) - .canTopupPrivateMoneyIds(new String[]{"999c5565-9e89-4619-a1ec-1c820b465bc7","d0a85d7e-c9be-4129-9a3b-75c475e93c4f","5d81e904-fb87-4ace-95df-2025879f3f2c","6bb56041-f8bd-492d-a64a-26208cb731e6","d3d9be5e-74ec-4832-88cd-10f47969b5db","ffb072a0-7a1f-456f-b779-f2619dcda18c","3b2d6593-9601-4a57-b047-daebe29536f4","38efd286-ccb1-4970-8f8f-01cf76094593","14b8b70c-2bc2-4da4-9a81-38fb67363d17","6608ae1e-43fb-40ba-8108-d1efdbb8fbfe"}); + .organizationCode("-A6r-2I69F6GKCJ") + .privateMoneyIds(new String[]{"bf04d500-4c58-4464-9bbc-e46e1b4c2c9f","88d4d91a-e8c5-40ce-8695-e2f37151fd29","a76abf88-cf33-452e-a48e-8ec0ea21da0d","c09067ea-12a6-44c2-9f23-166cb398d677"}) + .canTopupPrivateMoneyIds(new String[]{"96c96a89-0f81-4d60-b2c4-8c7f394e5512","de4de9b7-acb2-49e0-bc16-48a3de25f0c4","d50a86c2-7f8d-4eb3-a4e0-ea37b9eb0726","ad66bb13-4307-4ac3-8b52-6fbc719beb00","d4f19874-98fb-44b8-9ed0-aca7c15e85bc","3032de78-3c08-43ff-9fe9-90d0b91348fe","fca38f49-581a-41f7-83be-146c54bb7dc7","3dead11c-109a-4c25-9a31-92cb2fed15a2","f267bdcf-7ec7-4909-a7c5-0a32f7b0e1dc","a3d2cef3-346a-418e-bd0f-0637a9fc4a3d"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "f9xqeV9Lg6T4ooRxK5" ) - .externalId("U6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8m") - .organizationCode("J-Ig-h-2e-L-d0I8Gq-5N") - .privateMoneyIds(new String[]{"cdc42a10-65cf-4515-9a0d-24c638ad6c7b","ce865b7a-8e79-4325-a531-31bd12ff47b0","0d816b84-b4f3-474d-ae8c-f13152031a68","fa56a64c-9171-449c-a085-a297ec0a0da1","9100008d-87e7-4ada-b45b-e3a57c5e040d","20b0ca98-f8d3-41e3-a62b-08ec5295176b","c57e1c2c-7086-4bb2-8a9d-2be4e4b0c66a","84c83a7a-2889-4191-ae6a-23c0db27f082"}) - .canTopupPrivateMoneyIds(new String[]{"a0a0e846-1697-4d83-a5be-621a4342ee7a","17f3abf4-bca8-4055-b9ab-f20992e0278a","f17efb92-c7be-4285-9979-655c9e462199","5a7371d5-3b92-432d-9312-4b2d6eebc7f7","ddb098f7-d640-45f9-9313-5718cc8da6b9","180e68c2-ec35-4a0d-a87d-9bbb6ae12140","5404cc2a-38f4-49e7-8e26-d8c92c3622c4","98bb9170-833d-49d5-aa80-ccf06bc3038a","95de72fa-49cb-450e-a909-4879e24374ea","e43cfd3b-9433-4542-853f-9576a0117059"}); + .externalId("Hu6WK5M7npguch6s2J670P8hn4Wh") + .organizationCode("kd4m5W7xE") + .privateMoneyIds(new String[]{"a4055af9-eb8f-477e-ad30-aea122d8e2e8","8101c184-8dd9-4925-b108-b69a9f512f44","3b90c901-332d-4507-95c1-60d70cf03e4d","2a60ea59-321f-411f-bcdc-1478a89ae957","2ffdbfbb-b626-4966-bfdc-c92dc333cb03"}) + .canTopupPrivateMoneyIds(new String[]{"b35d322a-0f8b-432b-8ec3-b02852f6c1a7","ebe6f4bb-1ba7-4785-b00c-4677cf1108ab","e6a5f202-b0ab-4586-9602-7da0aabb3407","9ed87fb3-8986-4f06-a0e1-288de6f36d88","90081d42-3e06-4acf-9831-8449184872a8","53ce2820-dc67-4e2d-bd38-e2688a9820bf","954014d2-884f-4e25-9b98-04c615171442"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "f9xqeV9Lg6T4ooRxK5" ) - .email("p1TbuySIy9@vMfj.com") - .externalId("s9RSVIuRLJamUgod9vJ") - .organizationCode("5sO0P-En--Zn-CZ--ga-2-0-GWq-wO-V") - .privateMoneyIds(new String[]{"80343906-659b-4c85-94a6-44011287311e","471eac5a-a4e7-4001-b5e5-069aa4784324","dcb5e80a-8b0d-45b6-95b7-56e5c9b3c515","40ca7903-b5a8-43a6-b09e-e0d90b79398a","c602736c-62f2-4d05-acfb-415d36716a4f","4240bbaa-243e-4838-8a45-351b9762407c","f4eb71a9-671b-4c89-b34c-c8b7ecc0c5e7","015b5bd7-36b6-4870-96ad-594f9f064d0d"}) - .canTopupPrivateMoneyIds(new String[]{"6c0731ae-4a87-465a-b480-0b6a722a52d2","44d1e5c6-8082-4ece-a136-c67f8cf3f71d","ec607884-0f24-49e8-a97b-312518633a6f","a24d5b42-f44f-421b-be94-89e9dd964268","10b5069b-d493-4ba0-9bbc-fce4da842b7f","fc34212d-dc04-4248-a776-f2e5ab2ae0ea","a379ed96-2990-463b-a210-521b6c634923","0d0da1cc-01fe-4ae6-a837-84c8abca658a"}); + .email("3MljHGXrpV@SkSd.com") + .externalId("QBQzqXHWCk88y") + .organizationCode("h") + .privateMoneyIds(new String[]{"49e1ab2a-29ad-4e91-9e0f-c15453abf7a3","48ffac38-ed30-47bc-b9a2-0e4180dd9e1c"}) + .canTopupPrivateMoneyIds(new String[]{"3a2cc61c-3811-4c95-8ce2-66fc0d621aa5","82234b09-5bad-4076-b4ca-4ce10947f5ff","2c077955-d9f9-42b0-a081-5e1056af5b05","1faaf4cb-0ab5-4d20-afbd-9122a9141c89","f38e439f-9efc-4bd2-89b2-f241b57222e6"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "f9xqeV9Lg6T4ooRxK5" ) - .tel("058821-568") - .email("czyOhMWAPb@HXyt.com") - .externalId("djUT8FkE6WXDem2rgSzz") - .organizationCode("P-25--m-O-9-G-66p--7x-3KKsm18") - .privateMoneyIds(new String[]{"cdadda4c-ae3d-44a8-b1b6-71efe4f7ffab","2dee894e-6e41-4933-a3ba-e57c1b159dbe","249aeca6-98da-4e34-8eee-aabbd48f12de"}) - .canTopupPrivateMoneyIds(new String[]{"6235a749-7afc-4245-aae1-f94e471e7536","8e7b5480-1964-49a9-a223-ff59d72762a2","3d989b06-fd85-495a-94d9-8e20c1af50df","085af4b4-8713-4dfc-81df-90f0b1a40500","703d2439-fdaf-4f06-9a62-4b5aeca7db67","f3b46622-ce73-4e88-a6e3-f88f56d19b42","71355128-2756-40c0-9d8a-bbb3377d5e0c","e76bc070-fe58-4c69-90d0-a4feed9ff3e9","819bbbd7-f3b2-4519-be9f-358065f1e097"}); + .tel("069-733-047") + .email("iwNl9CKN5y@CsDM.com") + .externalId("uuaWg6vjoZFJU5quwxFBXnJ5E") + .organizationCode("DbdIK7U--Bk6zAHxsAiXZ-u-1QCb7") + .privateMoneyIds(new String[]{"fabe6012-417f-4d27-9fa0-865c9b6fe81e","055c45cf-4319-44c0-8a39-8efe0691c084","5d4fbbec-1c7a-438f-adb7-75960e85051e","1cf85148-0c0f-43cd-b337-e2ad8616a8f2","1f2412ae-c938-4798-8da6-363c05d7c8f7"}) + .canTopupPrivateMoneyIds(new String[]{"a6158370-4ddd-480e-9ebf-4e9b24d524a7","5b03e4db-1e8a-423e-8d81-77e625e4c1df"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "f9xqeV9Lg6T4ooRxK5" ) - .address("Um4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQ") - .tel("05-7596-791") - .email("BJMiWPv5dA@bUBW.com") - .externalId("ta68v79KNgsodWT1kP64c") - .organizationCode("KR7nb") - .privateMoneyIds(new String[]{"e5b4f3eb-3362-484e-9f8a-2b5798d5df14","e11f2da7-242a-4907-b418-5a80213c7f3f","b7ee6134-0178-42b5-ac5b-9714ab36d9f0","1ddf1794-cc21-4319-a91c-a0abadda7660"}) - .canTopupPrivateMoneyIds(new String[]{"9c78491a-8c65-4f6c-8878-9b7f00f1aa36","06feb18e-bb7d-47da-b7b3-fdc15ea2eace","0b6bd05d-ebeb-4524-a7df-657bdb1f1b72","c8dd41ae-0a04-4ce5-8e4d-d25356c9c581","1dea5adb-bc3a-4b7f-ad3d-e0ee5be50599","af424593-329d-4569-a70e-99627c770734","0df948d9-f062-4033-b436-71eb9bc7586d","c2885e76-1879-4e8f-a87c-eba8c16c4d7c","c3f1c30e-a60f-4103-aa22-17c4e2a21637","bd8577a2-1109-49d9-a186-62fe51976f2d"}); + .address("r2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTm") + .tel("0434581057") + .email("0PkzT3rjRs@cSaT.com") + .externalId("EUxwA") + .organizationCode("N-db-bw9nv") + .privateMoneyIds(new String[]{"c3643096-8263-46b4-9177-c3406034222d","b5b25866-8b30-4856-99f3-ae63e52da02f","94e9f769-43da-4e9c-b198-aa56c0d00e0f","312dfd1a-ca67-4cb9-83a3-ead955b23c7f","f20a201b-e52a-438d-b4ca-64f98c7ca482","772c6427-868b-41f8-bcd5-cb7133bcd701","a9bca16d-72a1-4db9-aadc-c3d14a688cba"}) + .canTopupPrivateMoneyIds(new String[]{"0fa0b25d-b17c-469d-9816-2fa9ce11b391","1dc1651f-251c-4f39-a54f-fcbadab9fc22","8498d0d2-f8a1-4f26-b0d2-d850173ad51f","e98b0fdc-6b58-49be-90b1-979b36a14fd2","efca9845-42c7-45c4-8c0a-bb8707659c98","dda50e53-1422-4d5d-aae5-f6af6dd5612b","0b467190-11f8-4f99-a889-e7e5b036dcb4","53bf3d15-7e90-44dc-9707-1c8a01ec7832","9c9bd04e-1117-4804-b668-1932678c21ca"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "f9xqeV9Lg6T4ooRxK5" ) - .postalCode("1601719") - .address("h5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3") - .tel("0918-0596") - .email("SJX1OiNUbq@HXuS.com") - .externalId("WeM8VL") - .organizationCode("oq8n09-S2v-Go") - .privateMoneyIds(new String[]{"3cd1c838-0bd6-489d-86ee-5eeaaa745ac6","b5fd5c91-025b-4fef-8589-6d7d373b6973"}) - .canTopupPrivateMoneyIds(new String[]{"c4e163e6-5eab-43bf-879e-cd3652d0d908","d20e9714-2bb4-4809-ad76-157c12616dd8","2ad2094b-2a0e-43bd-83a3-de3027d6a479","760dccc9-318b-422e-a02f-c03a2245ef08","3364f713-fcd9-4644-b2a2-1dcf33e448ed"}); + .postalCode("8033738") + .address("Oz8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzM") + .tel("0793-054") + .email("ZQTPfIajSB@mWzF.com") + .externalId("bVf") + .organizationCode("ZV---Jr3wp21") + .privateMoneyIds(new String[]{"81577763-d001-49b1-8fce-f95ce9eee713","87e7c81f-d67a-4a63-b012-1acd430641f8","142e043b-9594-4232-aca3-2eb887d35d1d","118c704f-a3b1-4c76-a84e-bc25d3aeabb7","39f7db21-5a19-40a0-b4fa-6c8c83aa4c2f","41c59969-5cc4-4850-9b47-1b430e29f22c","3ba26432-38a3-42d3-9cd4-bea5b83a5d2e"}) + .canTopupPrivateMoneyIds(new String[]{"94f8d17d-d8fa-4492-941c-8a64d583e736","a1ade19a-7d78-42d6-a77f-4be4df1070a0","337a9053-d996-49bd-ac51-87eb6ee304a4","d52b1dea-be34-4612-841b-4dda8a0113fe","4da64baf-9134-4a67-bf3e-211e19bf3ad2","8715cc3c-3235-4028-99ea-6d4dc84c2327"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java index b01d70cc..a47dd5b2 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java @@ -12,9 +12,9 @@ public class CreateTopupTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "40438761-18af-48f2-8672-538e21afc393", + "d7285db5-6547-4ad0-8cb0-98f7c5ce1570", + "6fcb410c-dc83-45b4-8fec-9db7171410b0" ); try { PartnerAPITest.getClient().send(request); @@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "40438761-18af-48f2-8672-538e21afc393", + "d7285db5-6547-4ad0-8cb0-98f7c5ce1570", + "6fcb410c-dc83-45b4-8fec-9db7171410b0" ) - .requestId("6c64555b-d9af-4745-97c9-087ea03b9908"); + .requestId("3966e75a-48bf-4d73-8708-e0f988dbed50"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -49,12 +49,12 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "40438761-18af-48f2-8672-538e21afc393", + "d7285db5-6547-4ad0-8cb0-98f7c5ce1570", + "6fcb410c-dc83-45b4-8fec-9db7171410b0" ) .metadata("{\"key\":\"value\"}") - .requestId("f939997e-bb86-43a1-8662-9fa926ac4089"); + .requestId("98816005-696c-4996-8ba4-0d0772fd22bd"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -69,13 +69,13 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "40438761-18af-48f2-8672-538e21afc393", + "d7285db5-6547-4ad0-8cb0-98f7c5ce1570", + "6fcb410c-dc83-45b4-8fec-9db7171410b0" ) - .description("7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecq") + .description("ZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3Txnu") .metadata("{\"key\":\"value\"}") - .requestId("53596018-c257-4fe4-bcc4-8d098d867fd6"); + .requestId("4490ba4b-8261-441b-bf08-d86359004cfe"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -90,14 +90,14 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "40438761-18af-48f2-8672-538e21afc393", + "d7285db5-6547-4ad0-8cb0-98f7c5ce1570", + "6fcb410c-dc83-45b4-8fec-9db7171410b0" ) - .pointExpiresAt("2022-04-26T11:41:07.000000Z") - .description("stoEtPVoykbtA6l7WDayqQLAKXyhWYdlIH") + .pointExpiresAt("2021-07-14T23:33:11.000000Z") + .description("CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jfts") .metadata("{\"key\":\"value\"}") - .requestId("2ce8fee6-9053-40fe-8242-cc4bb1fa0349"); + .requestId("5e1a359d-4342-44d4-abeb-10a60e9c3b7f"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -112,15 +112,15 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "40438761-18af-48f2-8672-538e21afc393", + "d7285db5-6547-4ad0-8cb0-98f7c5ce1570", + "6fcb410c-dc83-45b4-8fec-9db7171410b0" ) - .pointAmount(817) - .pointExpiresAt("2021-09-07T09:54:19.000000Z") - .description("Ql4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNto") + .pointAmount(6291) + .pointExpiresAt("2020-07-17T06:33:40.000000Z") + .description("nQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstK") .metadata("{\"key\":\"value\"}") - .requestId("ca208929-ae70-4cf1-893f-8fbf31547cbb"); + .requestId("e93f83dd-273e-4073-9e8f-94e2e4e51c6b"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -135,16 +135,16 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "40438761-18af-48f2-8672-538e21afc393", + "d7285db5-6547-4ad0-8cb0-98f7c5ce1570", + "6fcb410c-dc83-45b4-8fec-9db7171410b0" ) - .moneyAmount(6582) - .pointAmount(2496) - .pointExpiresAt("2021-03-28T20:33:04.000000Z") - .description("rDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJ") + .moneyAmount(886) + .pointAmount(1676) + .pointExpiresAt("2024-08-25T04:34:05.000000Z") + .description("ZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37ey") .metadata("{\"key\":\"value\"}") - .requestId("28d8b055-11a7-4321-8657-46f08b430634"); + .requestId("7c16228e-bfe4-4301-8747-da45f4915d13"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -159,17 +159,17 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "40438761-18af-48f2-8672-538e21afc393", + "d7285db5-6547-4ad0-8cb0-98f7c5ce1570", + "6fcb410c-dc83-45b4-8fec-9db7171410b0" ) - .bearPointShopId("6bfc44af-b553-494a-9dc4-281b2f3b2864") - .moneyAmount(1469) - .pointAmount(9488) - .pointExpiresAt("2023-01-18T11:40:14.000000Z") - .description("9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3") + .bearPointShopId("60ce7bac-511c-4ace-8dd0-9f75c1359cd3") + .moneyAmount(6869) + .pointAmount(3234) + .pointExpiresAt("2025-09-26T02:53:59.000000Z") + .description("CPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4") .metadata("{\"key\":\"value\"}") - .requestId("a5258802-a1a5-41a5-84d0-40d1007639c2"); + .requestId("e489d188-81aa-448a-a9ea-472687ec4a02"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionWithCheckTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionWithCheckTest.java index dba2d885..63f27dbc 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionWithCheckTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionWithCheckTest.java @@ -12,8 +12,8 @@ public class CreateTopupTransactionWithCheckTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransactionWithCheck( - "cd4eb994-98b7-4aea-91b8-0e53a7345bbb", - "6f4c62b1-299e-474c-a3ca-1e9e30e7b8cd" + "e2538d41-2b58-453e-8235-bad4eb8bdfe4", + "1af7a7d6-a64d-4dda-80c1-f623c7ace93e" ); try { PartnerAPITest.getClient().send(request); @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransactionWithCheck( - "cd4eb994-98b7-4aea-91b8-0e53a7345bbb", - "6f4c62b1-299e-474c-a3ca-1e9e30e7b8cd" + "e2538d41-2b58-453e-8235-bad4eb8bdfe4", + "1af7a7d6-a64d-4dda-80c1-f623c7ace93e" ) - .requestId("3e9427b9-30bb-4edd-b9ac-acea3da3f083"); + .requestId("26b352bb-41b3-4246-b3a7-5ba11c031d42"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTransactionGroupTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTransactionGroupTest.java new file mode 100644 index 00000000..156f345b --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/CreateTransactionGroupTest.java @@ -0,0 +1,28 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.CreateTransactionGroup; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CreateTransactionGroupTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new CreateTransactionGroup( + "xt7f2oLFlgp2lLhVbHghg4lZ" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTransactionTest.java index 6a05f39a..0043a794 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateTransactionTest.java @@ -12,9 +12,9 @@ public class CreateTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateTransaction( - "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", - "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", - "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d" + "4e64bff1-5f4d-4c40-baae-80a79582760a", + "92e84ef0-59cc-4172-86c2-82380f9a182a", + "c083ada0-6f5a-4cd1-ad00-f3e8d9d5e10a" ); try { PartnerAPITest.getClient().send(request); @@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTransaction( - "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", - "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", - "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d" + "4e64bff1-5f4d-4c40-baae-80a79582760a", + "92e84ef0-59cc-4172-86c2-82380f9a182a", + "c083ada0-6f5a-4cd1-ad00-f3e8d9d5e10a" ) - .description("jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhM"); + .description("XHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEg"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -49,12 +49,12 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateTransaction( - "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", - "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", - "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d" + "4e64bff1-5f4d-4c40-baae-80a79582760a", + "92e84ef0-59cc-4172-86c2-82380f9a182a", + "c083ada0-6f5a-4cd1-ad00-f3e8d9d5e10a" ) - .pointExpiresAt("2022-04-18T05:29:48.000000Z") - .description("y1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7WZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX"); + .pointExpiresAt("2020-09-11T15:32:18.000000Z") + .description("bGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -69,13 +69,13 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateTransaction( - "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", - "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", - "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d" + "4e64bff1-5f4d-4c40-baae-80a79582760a", + "92e84ef0-59cc-4172-86c2-82380f9a182a", + "c083ada0-6f5a-4cd1-ad00-f3e8d9d5e10a" ) - .pointAmount(350) - .pointExpiresAt("2023-05-10T17:38:49.000000Z") - .description("RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZP"); + .pointAmount(2230) + .pointExpiresAt("2020-02-09T12:06:35.000000Z") + .description("bKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ9"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -90,14 +90,14 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateTransaction( - "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", - "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", - "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d" + "4e64bff1-5f4d-4c40-baae-80a79582760a", + "92e84ef0-59cc-4172-86c2-82380f9a182a", + "c083ada0-6f5a-4cd1-ad00-f3e8d9d5e10a" ) - .moneyAmount(2628) - .pointAmount(4634) - .pointExpiresAt("2020-05-01T08:52:03.000000Z") - .description("vKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFT"); + .moneyAmount(1832) + .pointAmount(8202) + .pointExpiresAt("2022-07-15T04:52:03.000000Z") + .description("sluYJHAlylPpV6x"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTransactionWithCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTransactionWithCashtrayTest.java index c25b1d23..e12c75e7 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateTransactionWithCashtrayTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateTransactionWithCashtrayTest.java @@ -12,8 +12,8 @@ public class CreateTransactionWithCashtrayTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateTransactionWithCashtray( - "695ea41a-9f9f-449b-a519-cf27509404b6", - "ca9e2ff1-fbed-48c3-98de-cafb1e81400b" + "24e9edaf-9e30-4ccf-81db-9892478f9181", + "bd0f11d1-4fb9-48f8-bdfb-9586ae842453" ); try { PartnerAPITest.getClient().send(request); @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTransactionWithCashtray( - "695ea41a-9f9f-449b-a519-cf27509404b6", - "ca9e2ff1-fbed-48c3-98de-cafb1e81400b" + "24e9edaf-9e30-4ccf-81db-9892478f9181", + "bd0f11d1-4fb9-48f8-bdfb-9586ae842453" ) - .requestId("3d343bff-c2c6-48b3-ba66-3afb9fbd6b2b"); + .requestId("352b150a-e2ce-4798-b07a-169b5415c498"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -47,11 +47,11 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateTransactionWithCashtray( - "695ea41a-9f9f-449b-a519-cf27509404b6", - "ca9e2ff1-fbed-48c3-98de-cafb1e81400b" + "24e9edaf-9e30-4ccf-81db-9892478f9181", + "bd0f11d1-4fb9-48f8-bdfb-9586ae842453" ) - .strategy("money-only") - .requestId("5520406f-93a1-4145-8e34-eb68de8c927e"); + .strategy("point-preferred") + .requestId("7b07a3ff-8f4b-4f78-acb7-0ae9514501f6"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTransferTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTransferTransactionTest.java index 361e0f00..9add1db7 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateTransferTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateTransferTransactionTest.java @@ -12,10 +12,10 @@ public class CreateTransferTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateTransferTransaction( - "a3ce4b26-c72a-439b-927e-80477f3f01b6", - "886fa328-e2ea-4816-8007-03faea01d2f2", - "95a550d0-a9dc-4046-9de9-c2ceae3f9f96", - 8333.0 + "d720178e-3301-4de9-b8e9-84d6fd11d67f", + "6b9390f1-2aea-477f-a724-59f68cb8abc2", + "7980a0ab-1a83-46a9-a5bb-6c7c212f697e", + 2766.0 ); try { PartnerAPITest.getClient().send(request); @@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTransferTransaction( - "a3ce4b26-c72a-439b-927e-80477f3f01b6", - "886fa328-e2ea-4816-8007-03faea01d2f2", - "95a550d0-a9dc-4046-9de9-c2ceae3f9f96", - 8333.0 + "d720178e-3301-4de9-b8e9-84d6fd11d67f", + "6b9390f1-2aea-477f-a724-59f68cb8abc2", + "7980a0ab-1a83-46a9-a5bb-6c7c212f697e", + 2766.0 ) - .requestId("e78dc0d9-42d4-48d3-8abe-8ab90e73616f"); + .requestId("22c6bd63-09f3-4b04-9114-0aad0031e1cc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateTransferTransaction( - "a3ce4b26-c72a-439b-927e-80477f3f01b6", - "886fa328-e2ea-4816-8007-03faea01d2f2", - "95a550d0-a9dc-4046-9de9-c2ceae3f9f96", - 8333.0 + "d720178e-3301-4de9-b8e9-84d6fd11d67f", + "6b9390f1-2aea-477f-a724-59f68cb8abc2", + "7980a0ab-1a83-46a9-a5bb-6c7c212f697e", + 2766.0 ) - .description("hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyEN") - .requestId("4c32a7ee-12ee-4cef-b424-561b0fc1aaca"); + .description("QxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvu") + .requestId("bfe2a478-5f10-4927-9657-996f03fbedf1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -72,14 +72,14 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateTransferTransaction( - "a3ce4b26-c72a-439b-927e-80477f3f01b6", - "886fa328-e2ea-4816-8007-03faea01d2f2", - "95a550d0-a9dc-4046-9de9-c2ceae3f9f96", - 8333.0 + "d720178e-3301-4de9-b8e9-84d6fd11d67f", + "6b9390f1-2aea-477f-a724-59f68cb8abc2", + "7980a0ab-1a83-46a9-a5bb-6c7c212f697e", + 2766.0 ) .metadata("{\"key\":\"value\"}") - .description("M2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoC") - .requestId("7cd2c5aa-6d59-462f-afd9-e01a7bbac46d"); + .description("q3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6ta") + .requestId("6510d2f1-983e-407f-a292-2ded046f2287"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateUserAccountTest.java b/src/test/java/jp/pokepay/partnerapi/CreateUserAccountTest.java index d3095ff9..79e56ffb 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateUserAccountTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateUserAccountTest.java @@ -12,8 +12,8 @@ public class CreateUserAccountTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateUserAccount( - "1cca797a-a4ae-4807-a9ad-4bab80f00988", - "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d" + "53a50385-11f5-46f5-a3d9-62a90c8a29c4", + "6cddcb78-7848-485a-a46e-a0ab2dc39ee9" ); try { PartnerAPITest.getClient().send(request); @@ -29,8 +29,8 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateUserAccount( - "1cca797a-a4ae-4807-a9ad-4bab80f00988", - "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d" + "53a50385-11f5-46f5-a3d9-62a90c8a29c4", + "6cddcb78-7848-485a-a46e-a0ab2dc39ee9" ) .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); try { @@ -47,10 +47,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateUserAccount( - "1cca797a-a4ae-4807-a9ad-4bab80f00988", - "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d" + "53a50385-11f5-46f5-a3d9-62a90c8a29c4", + "6cddcb78-7848-485a-a46e-a0ab2dc39ee9" ) - .externalId("FBMnn24Y00BddIYIaGsnHTfyj3vGhpYs6lE3PVx") + .externalId("kAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6") .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); try { PartnerAPITest.getClient().send(request); @@ -66,11 +66,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateUserAccount( - "1cca797a-a4ae-4807-a9ad-4bab80f00988", - "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d" + "53a50385-11f5-46f5-a3d9-62a90c8a29c4", + "6cddcb78-7848-485a-a46e-a0ab2dc39ee9" ) - .name("hCRcEAVa4JmfjoJZ9ajsO39BqxPDSP5BpfA0dYcuMmHpa4aDHWm32hBFhI0DxRhz83lKq4Wp1hKlNvpHM0s7Dd9Uu6qWqC0qUtLag9adxARTcCtKjz1M2kusM3cVDMOGMtpxWNvKR6Gcp6PWCiNymBaUIu6lQIyVNDYRttS46oTXBYnbHbMuAdnXANiixumuncg7egxc7L05i8jkZ1Waa") - .externalId("h6AAgB9jXehhbgs") + .name("Qi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfddKJfLPJmxAhDpkltxfpGBgKzLBW") + .externalId("M") .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/CreateUserDeviceTest.java b/src/test/java/jp/pokepay/partnerapi/CreateUserDeviceTest.java index 6c6047a4..420e6c84 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateUserDeviceTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateUserDeviceTest.java @@ -12,7 +12,7 @@ public class CreateUserDeviceTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateUserDevice( - "3dc6d77e-acc2-4632-8c0f-c6abed1cea87" + "0ab457f1-f0ef-4959-9ae9-678677e06ccf" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateUserDevice( - "3dc6d77e-acc2-4632-8c0f-c6abed1cea87" + "0ab457f1-f0ef-4959-9ae9-678677e06ccf" ) .metadata("{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}"); try { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateWebhookTest.java b/src/test/java/jp/pokepay/partnerapi/CreateWebhookTest.java index 16fa1aa0..f09035f4 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateWebhookTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateWebhookTest.java @@ -13,7 +13,7 @@ public class CreateWebhookTest { void test0() throws ConnectionError, ProcessingError { Request request = new CreateWebhook( "bulk_shops", - "v" + "bWwSHwKCgX" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/CreditCardTopupWithMdkTokenTest.java b/src/test/java/jp/pokepay/partnerapi/CreditCardTopupWithMdkTokenTest.java new file mode 100644 index 00000000..00f6301a --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/CreditCardTopupWithMdkTokenTest.java @@ -0,0 +1,276 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.CreditCardTopupWithMdkToken; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CreditCardTopupWithMdkTokenTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMdkToken( + "a61db950-c87b-40cc-bced-ec7dce146a6f", + "iI8gPB41", + "2b349f15-6330-4784-874c-27045688eed0", + 7122 + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test1() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMdkToken( + "a61db950-c87b-40cc-bced-ec7dce146a6f", + "iI8gPB41", + "2b349f15-6330-4784-874c-27045688eed0", + 7122 + ) + .freekey("zFM4NvjD9YVEW7A85qNs1212HSW4V6kox0g1Tu594Z9WtIQIyj4Q80Qzu479GsA5chk"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test2() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMdkToken( + "a61db950-c87b-40cc-bced-ec7dce146a6f", + "iI8gPB41", + "2b349f15-6330-4784-874c-27045688eed0", + 7122 + ) + .memo3("rtbU5Q3tqC9gfA96HMKtYJmIH38cb63qDwy") + .freekey("cBO61i4OigQ19M7e536H8kE592y1O20J7c3t4"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test3() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMdkToken( + "a61db950-c87b-40cc-bced-ec7dce146a6f", + "iI8gPB41", + "2b349f15-6330-4784-874c-27045688eed0", + 7122 + ) + .memo2("144P73R2GOcS4kmn40DR47UZHXMbC8f3HH8dvRiAUT1FuvX1D2Tv706m77") + .memo3("360l3qh079AM3bzoC9V6H7FY1jgDmomkMyyePuaky0R") + .freekey("DNOlt4CKELjZt971oQGyu32n2bGe"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test4() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMdkToken( + "a61db950-c87b-40cc-bced-ec7dce146a6f", + "iI8gPB41", + "2b349f15-6330-4784-874c-27045688eed0", + 7122 + ) + .memo1("RjwXODTi38kldJerxKQ1rqEpF6s99Ac6xAZxJ7Ts502O5v4G") + .memo2("5kgK251B48r58yoko2x094f9f58ed14KHX2d3IDi9") + .memo3("Ay9xMGmNCKDw4Ol522R3f1k5yFAD9588bb6u2350bPl") + .freekey("2qYgv25r4P3sp1R7QXUygXhm"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test5() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMdkToken( + "a61db950-c87b-40cc-bced-ec7dce146a6f", + "iI8gPB41", + "2b349f15-6330-4784-874c-27045688eed0", + 7122 + ) + .topupQuotaId(6243) + .memo1("i36j54YmF4dd17sIkxiq98XiL6oG") + .memo2("9YWFBZ5gP3lFQal78kD") + .memo3("1Pr1L3PQIocjdha5S5XK91F143i8Y0Ope7996C6Hd59Gita973PMcTktPGZ9v2yN") + .freekey("23P65BZ11Y6n5JEYT2z7R9vHVr5iLNBjA12Ha8"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test6() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMdkToken( + "a61db950-c87b-40cc-bced-ec7dce146a6f", + "iI8gPB41", + "2b349f15-6330-4784-874c-27045688eed0", + 7122 + ) + .requestId("84a7a82a-7a7a-4cef-8a55-d01fd7f0422d") + .topupQuotaId(1367) + .memo1("k7SJPf267cyuZZWK3R3uIhwoMi8o97G6u3597WN9Rez3LUOt9HzPRJLMFFr6Zijq0O3F2J5roTF9a8aITz76103jp6HUvUby") + .memo2("r9QtizSLoxelzrCscmhP6uCv6v7tQ06MOh8WF01X37RpVmtM2ybF9n4S24r1Hc2uB3ltB7RiotWTxRanwj00sKOR") + .memo3("14dQ87dK40aq") + .freekey("E4G2j6pAStHhrw7q7O1VP3l811Cer8Rh28CMeVMdbR68k21L9JOJPBEV97xGs8X0n9S2QBNhkdh"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test7() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMdkToken( + "a61db950-c87b-40cc-bced-ec7dce146a6f", + "iI8gPB41", + "2b349f15-6330-4784-874c-27045688eed0", + 7122 + ) + .returnUrl("j2awHXlJF9A7cu6AxfU8HIO6LO5Dd5XiFWL9oU011XoGoCpelXPpOt9Y3msxtcs0WRQEq2AUltkkF5RV8aSNO9GQnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6wIXIQbTWkewXW1RgDvxeuhtqc0lVuVevBpKZFsUJPsCckORoCtdXbeAqJmttYcSXDoCgwypQnQUsnWOKMZ3rJ8aRGwz6VDq2kLV7UR9Ys1BTbKj9QeMGWU46l1ev23Q5PTPgtt4yAIzCwP1Z0JVfF9RSrf0Q1pmhWHNJvae7EjBkQNn9uWl9JunPyftwg9sZ6EOXmzMsMVDhbzfFvUl3UtKdNP5TLVhbhll0GP4QAkQeOPrTAo5HhYx5jCaGbLEuJCfBO4W1IV2UViZVHRWPkdj3cWX27LHxVCRXJ7RR9vhNIu31vkGd5KFMjSHWQRA9E535lViSyzzCHjVEEg0SpYDFFDY1quxNkSS1vmCLOUldc17zrM7imjJVYnMFmZVKbnQskJ4SJWYdnxMjsH9rlpcWw1Vg5A3jIY5TVDn7VAyGhf1a2i4Xb006Y5FN9bW9vksFBm8sMwbh1WFtpEmCrFqNwdLZ15QmFMvlNaa2goLZ5E9OEvOUIiBwbJ5GuqfgOe9nVnbOf1mceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8UioFkI4pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L6y5R4kNHRMXQTzW1iBiUI5JGbGoEyKdo0WvNvuZ2zOymd6UzJ163lry8C4rDtJNzcEFdrvo427ISByum8MIrVugVBfTif3qpXYgZnZ3LJOu3iwipHdsS3ShjnA4Sr1gSN2PelpywqnkqJGFUWWcs7OK2a7LaTGiSi2nVCa3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsFLw1OF89AbrhaWMPvJ4w9BbWGLWxTOnqHU20ukx1FDQpVqtvlq3pwtYNpqFJFhJ6HuYWnqyIUhAD4rpz6whWSFAXMqy8UduAdQ5IH0TK2HSat5A6ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvII6xukRoB486IcnSrXwZGPsDFfbhpjo6CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEEKedrMwdHukpCicHBj64f1DT6D6Mien3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4S8a9Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouPF8sEd3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH287FkS1AdoZmrqVFQp8fp9IpDGNT32XXjSeAsfsowmrnytFnDNPErJC0T6") + .requestId("2c2b00bc-e7ea-4ab8-9428-451c4eceafd3") + .topupQuotaId(3534) + .memo1("O55Mc2w6e7UmvwF23TSJ8e4e6CTyG8wd85X3Ep") + .memo2("GO0SWO0750xzHFLJFSC0PO4FabObtbLxFG008") + .memo3("5G6pi23mnH5B12bx7wq9b57hjbx3710mI0GagSZ0s9K96s3W9nm3Waex3145b17tn2O71JMxcYQB794") + .freekey("Oi8Vlj5fhS121r26Y320Aq02N61XF4T71iTE3XatevY"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test8() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMdkToken( + "a61db950-c87b-40cc-bced-ec7dce146a6f", + "iI8gPB41", + "2b349f15-6330-4784-874c-27045688eed0", + 7122 + ) + .description("IGLXhu0DvMLxvuDjJfJxeesKkwbE") + .returnUrl("HxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3s3mbWjjaocKJS9JHlwFlJcsltjjmodDQEUxDaghv7DnSC5Rfu0C0uKFwmpPkPjblE3KxRrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0MuCLswxDV9drgRKhLSvZ2KQORxMHroQo6jM66W2y8KrZ8xMlNalvWasLjNh8s14cZJ7e4Q9GCUyL2v9u3mWzZwKqxzujrUlmkKRdRXeieY6AmMB38WCqGZQWNed5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUMLq2pynj2i9JShHMs7dpHbhmzmDvsuxdQFF1b9FFVSxNRhY3CeG383Fyff0GWufJQM5UqG40T5H1YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6dE59eFWe4PxHJhHM6PRObQxj3f4w8El4HGgfInUuZUZacdXJKlldoDuv9TA2XHRXocL0a2ENjq4YdkJGWgFmKTEIA1MAf2HgecIl74FyRST7ScfdaiXI0aphnQpmaEH46JpxMwBWB66twUXazpjqxEREjqmyqJkEdfkYviMgBpZAYBbcvRZzaI37qk5Qpl5Gz36NQavWZXSE0IrKdpz0FXntwLwsP6PlvtKfS7zk6Hoi0oeAT0NWEwBSET0oVnBy6crZKnvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB304Jmf05hgJ0rNiPO7Acqsb1X8oQj9wf9SU4WjLK1VT02GEDFloz09QK5UFuC5JXRVayFf6oyQZu56A1wWzKTTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6cvEGDQNsufaSx2VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8B2QPQ9Y2Rpsj0heI1pcWBx1T31cQtfbPCATbfETgM8KooCtS8z1fc4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9z2bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER7") + .requestId("29af01b2-9cd1-4461-8cce-207287c9a0da") + .topupQuotaId(3824) + .memo1("z66lZg5AYGZ16uXA53tcp02") + .memo2("7uu0ee4Q81h2KHF639E7h1k1DT2F4z4ftpqo8JGf5mlpCyt8iflZYs7mkyOkH8U1cPq3ew31K87N") + .memo3("9Xp5RD6yx30h15") + .freekey("4eip5"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test9() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMdkToken( + "a61db950-c87b-40cc-bced-ec7dce146a6f", + "iI8gPB41", + "2b349f15-6330-4784-874c-27045688eed0", + 7122 + ) + .setCardholderNameSpecified(false) + .description("pD7GXwDffXUtXBf9of2MaByNhkorzLzXS7sax7iYOPl") + .returnUrl("j5UlMDxo6iDarlMDzJC7wMAkFYNemkzZpvDvog0lglLv2T90aOF7qLZJG6mWFW8mYG8iBpA9wK7FerKmMDJDN9kjnEAtWkM10yTZC3mt5NbCfjtxFXhJHyZxe38yvM1SEczLfO3bcMSuKdq3FslGbkHo1PhxbbT2umORVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77PuYo1FVSdDE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQHQhhRs2PIaofbMQ1Wyxx6iPX8wNVpCNUyiEzApKM66ZkEOto1oTpzcZyDOIWVwoFQcmGYbDKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZsgSDOAS6m6W4ycEKeHr4636lRXTr2iPpZt0j1CI3l6J30qBjXV2f99mPOolq1eiW9RuNHXLsbYmrfHwiW6AehvKLu9jSykyDMxjQhXvqsNkUwpnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD62pEennAfXO8IbuWWi93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMiAoASOIgsAFMRnA6RqJv3Yoi1HNQ6SUUxfHdkFZrSjoj4E906hjOODSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyxQz7D46SGfEdpD0URVkFLTmlxp8SI9cXescrmSD5nkp7THGlyH3t2HB4wHFbCGx0Xzqx2wtaKpu1qdmiKn22F3ctIsxTTV24W3iMjgCaf4v1F7zb24TvVYyzGoNYLIXxqonkMGqXlJpJRQwp9nn9cv0p2uygmHKqGnnOeMtFto3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwmdx9H0OP7RXsy9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTKy9baAXpUrNxQgJv2d1RjRDvxxlQFhM2eopmIlmvqzqnGOYbg6rdqjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T5nZUMuDqspHuPmGiUoPteza9Foxx3GETJuunMNM7JUVu7YgDI0zSm63cU49za1QJALcpDZJ7YKoaGZqFQRMYj7eI0OiTgfPr68fP2A8RCqVjIMZulltZtjgMfuDxn3QgsidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0KtoQaeaW3v7wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltqUbvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3EykNpjwCPjAkzyY2kmUe2JJ53U3N6F0e26pbO3HttlG4eyiatMI7VF3dtugJSz1Q3vovXNsgFsW05W19aXuGVVRQlUVJv9CZ2ZsBhmJBENJ2Jp2YLnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ9bvTSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8NITOunWJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wDY3YT1DlU5jqThl0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSuhWGSp4IuNXEvAYv341undTljbWPhfpiw") + .requestId("e1a91ad0-284d-46a2-bdea-5c7584760b97") + .topupQuotaId(9968) + .memo1("7P198yMIeE") + .memo2("08q0FD7CD7bu9fiGjy1q9Ii2l1KZEur8Tc82k8U9pI9qc1EDb8LJUyj0BfbNb") + .memo3("52jl2O4Jf31u9en3Lme4uPys00mb4Nuo2Aw83u375QpUdy4V7P4gAJlOKm99Fw7DHf2BdQ55DCX2B07q8t06kj7vlwP") + .freekey("R4i6z5gHZlqix3314l3l6k1238lk6pAe1byhQ74641Fm86025c"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test10() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMdkToken( + "a61db950-c87b-40cc-bced-ec7dce146a6f", + "iI8gPB41", + "2b349f15-6330-4784-874c-27045688eed0", + 7122 + ) + .receiverUserId("4713b871-2b02-47d6-878b-48e0fed0f12d") + .setCardholderNameSpecified(true) + .description("0H9hNDIpWOGRlL4QDCIWrLzYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCFjnlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSc") + .returnUrl("rHrP7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCisIe5qHDsMdG7wbTKEpXzySqqc4sXPad6xuwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZFtSWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREfojZVoiIjURbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3rucfBues6uHoyn0kY9tu08AkjC0WPKbQvYow9FaOH3zD7SQmRuyNCMpGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpWdg5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4IlVfzKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsPccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8qJafcwBDpLTR") + .requestId("236e2f4e-e02e-44b1-a19d-40307e9f96ec") + .topupQuotaId(6113) + .memo1("AQ39F3jBfU5p63V839UCzYO98zaB7ikGcR9s2nuTuY3u8KC04Z70o7EE3gI") + .memo2("8ZyvgrEiJChI3pOWE5") + .memo3("Z17QqufJ8") + .freekey("HLQGV9tt27JWI386q2xgteK5AZA36WxScO27OVO29F3UK6ZPiU32H0hsHO1HnuiRGqx04IDPI5wK5P"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/CreditCardTopupWithMembershipTest.java b/src/test/java/jp/pokepay/partnerapi/CreditCardTopupWithMembershipTest.java new file mode 100644 index 00000000..48214e25 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/CreditCardTopupWithMembershipTest.java @@ -0,0 +1,276 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.CreditCardTopupWithMembership; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CreditCardTopupWithMembershipTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMembership( + "235cc1bb-540f-422c-bebe-9007d46ed64c", + "39ea3ae9-0851-4e11-8187-16ac032dc94d", + "c123dc42-1ed9-422d-b8b0-1a356d225d37", + 6269 + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test1() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMembership( + "235cc1bb-540f-422c-bebe-9007d46ed64c", + "39ea3ae9-0851-4e11-8187-16ac032dc94d", + "c123dc42-1ed9-422d-b8b0-1a356d225d37", + 6269 + ) + .freekey("7Gr"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test2() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMembership( + "235cc1bb-540f-422c-bebe-9007d46ed64c", + "39ea3ae9-0851-4e11-8187-16ac032dc94d", + "c123dc42-1ed9-422d-b8b0-1a356d225d37", + 6269 + ) + .memo3("IH2Z9RPOnQgCcriJt3blullz9") + .freekey("kH1f33ro358Iqkby8x4U1"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test3() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMembership( + "235cc1bb-540f-422c-bebe-9007d46ed64c", + "39ea3ae9-0851-4e11-8187-16ac032dc94d", + "c123dc42-1ed9-422d-b8b0-1a356d225d37", + 6269 + ) + .memo2("4nq5NuZ16p1GT72k9Z0LlM75C5a0mI9Tr7diHbso21w9R2mI7jso127ML5gSU6XtR2oxTF44YM0zHa") + .memo3("os4u8p") + .freekey("P1G4YJr6Kj9Dn2EUD7c10pmvz829rdO115pUE2tHrHXx2Jg0Zh08a7jW9UOMt7C19cdy4j3N70zxa40D0P95EZ7K"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test4() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMembership( + "235cc1bb-540f-422c-bebe-9007d46ed64c", + "39ea3ae9-0851-4e11-8187-16ac032dc94d", + "c123dc42-1ed9-422d-b8b0-1a356d225d37", + 6269 + ) + .memo1("2I1IoQFM2Qq53y46k0Xw3dnj5LztQcIzQRO8hgfA08bwA73XJp3054p71U60KHQw0Nw6jDy1c968n29B93a") + .memo2("2m30rAV7lLfb2H9Ylq5R685i613y6s6fhT1q4BAU62u1L8e3rAO") + .memo3("IQJ3Y876fvr1Q1eJc") + .freekey("B813e50a"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test5() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMembership( + "235cc1bb-540f-422c-bebe-9007d46ed64c", + "39ea3ae9-0851-4e11-8187-16ac032dc94d", + "c123dc42-1ed9-422d-b8b0-1a356d225d37", + 6269 + ) + .topupQuotaId(2547) + .memo1("954hQeMMQpp23ZoWegcEN7FbFiOQ5WsV9HATyO9atk") + .memo2("WLS9ULdS1R93vk3PlW8l7mUBp7") + .memo3("2W0m916W0Rm9Im5T35nFYzZSChGMyxAftZ0JFsW363gseYUkO4M8C5AqXnJ5hLfl") + .freekey("6127K26C295u9b7Ov5x2oZR375XW2KlFU1gv752H86249ph8Z5AKkRYv3317M9R15TAxvf9v"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test6() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMembership( + "235cc1bb-540f-422c-bebe-9007d46ed64c", + "39ea3ae9-0851-4e11-8187-16ac032dc94d", + "c123dc42-1ed9-422d-b8b0-1a356d225d37", + 6269 + ) + .requestId("5c2c2be3-a7b4-4e73-ae06-e55784ba5e00") + .topupQuotaId(7844) + .memo1("a59Ei864N1ZQO9MSoW9Gq4pp1v6Tj7z") + .memo2("6bKxv2cUJTE3N2DUb94wP2TRbTPSn19B34T6HFG8y6W3021LYmMnmRLt832I6llTy3lfUvdLUJId69GzzmCEM9T4zub93") + .memo3("S10ruWfr19") + .freekey("VR5J9949fnOQN0FBw9QQZSMRNI3G1sT8jiaW81983thN5C69"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test7() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMembership( + "235cc1bb-540f-422c-bebe-9007d46ed64c", + "39ea3ae9-0851-4e11-8187-16ac032dc94d", + "c123dc42-1ed9-422d-b8b0-1a356d225d37", + 6269 + ) + .returnUrl("xCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rq") + .requestId("01768988-a64a-41b5-b824-6875b4d403fc") + .topupQuotaId(7678) + .memo1("SCq396y46C1sozoM2b8v8APlY7XOzQnCR73E4g6k36Z0w3UsGV9EF4zP5k3hX6pGoWV19I34im1SKUGTk1SHXL5") + .memo2("fPo4ecBNS7dp6gUd9sF0rgoqdPP1Ok4ov432r0rB4380E828C6LRoLboRQDdH27e3ZEUA") + .memo3("7mkfSrO4tbICO4lIsE95MMYNND7Bv13DegUj31AE3T5ahL3") + .freekey("78y2Q3xg9tq465ceNB172T3Gxpu8wx9gs55s7Z2Xdqp"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test8() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMembership( + "235cc1bb-540f-422c-bebe-9007d46ed64c", + "39ea3ae9-0851-4e11-8187-16ac032dc94d", + "c123dc42-1ed9-422d-b8b0-1a356d225d37", + 6269 + ) + .description("qJ1JP1EYwzYF5YE8jQgUz") + .returnUrl("myBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYh") + .requestId("6ebaebe2-0816-40ae-b723-34bf1ddf3caa") + .topupQuotaId(4257) + .memo1("V60W2DbrT85") + .memo2("2") + .memo3("kVNNO1KbnCd8zuXd36M4IvxiitEEwV0Ns6D0w8tHM8aG5N8G5A2Y637vqu5iFQxKbwDA0ii73zgxo7nu08e6qA9YOwd") + .freekey("2X0vNh9CZi0O0eilJLDaoDkF7aI9aziOjNW6d0IeV8"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test9() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMembership( + "235cc1bb-540f-422c-bebe-9007d46ed64c", + "39ea3ae9-0851-4e11-8187-16ac032dc94d", + "c123dc42-1ed9-422d-b8b0-1a356d225d37", + 6269 + ) + .deleteCardIfAuthFail(true) + .description("KOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGr") + .returnUrl("WxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2") + .requestId("597d135a-12df-46c8-b264-451e19c43c38") + .topupQuotaId(4549) + .memo1("2vbzP9Bd5Cvy4QC37rj957yv1696bAD9Hv7hW9pyKM4q7TiXi2Qt2Uyb6oT6q1G77NfSg3414Kgwq0D7u0LoIgN") + .memo2("Wj") + .memo3("z3WLdG1S2eGJhVLvJ34cc1maZHwlT31fJDc41FubcQ8USK1fpXS43395u41DgW8Zu5i03FBA74E7gYc2zme3w3mHu909C") + .freekey("bX97ann5V32EJ8lN6FPgVWj8gD90p4R6711nu5WJps466KwEqJ1YljzaF8S2Pa13vJ81phUlYQksdt5xtQI8"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test10() throws ConnectionError, ProcessingError { + Request request = new CreditCardTopupWithMembership( + "235cc1bb-540f-422c-bebe-9007d46ed64c", + "39ea3ae9-0851-4e11-8187-16ac032dc94d", + "c123dc42-1ed9-422d-b8b0-1a356d225d37", + 6269 + ) + .receiverUserId("b008cb12-19bd-44df-8c53-b36028066f7d") + .deleteCardIfAuthFail(true) + .description("1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yH") + .returnUrl("eAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp") + .requestId("eab7eafc-b285-4598-b371-0fc7426f9658") + .topupQuotaId(2303) + .memo1("QA6YMqk2zDncVWkqY3dHQA61c4o0WLh70e7dDAAbtn5IaXIDLo3F187gL63EgGW5if535COQvJciQ07eLfH713yi52") + .memo2("KLUh6SmJKhs2Evi7JphkF65yag11DzsON9ucoprOX4c0GNxa63M8qLYT4V88TS83OgFM16oVPcgr7x3h") + .memo3("3M48vu2Pl1qWeJou1BU6C67mbd8AfDC9k3wQ8GGJOw931831t94CtwBV50RQ16PvvSQ9Bb15") + .freekey("eY56snrXITleKPI"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/DeleteAccountTest.java b/src/test/java/jp/pokepay/partnerapi/DeleteAccountTest.java index 9c48765c..857f9739 100644 --- a/src/test/java/jp/pokepay/partnerapi/DeleteAccountTest.java +++ b/src/test/java/jp/pokepay/partnerapi/DeleteAccountTest.java @@ -12,7 +12,7 @@ public class DeleteAccountTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new DeleteAccount( - "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d" + "6e0f5443-faad-451b-9992-5ce9c4e4ae3a" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new DeleteAccount( - "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d" + "6e0f5443-faad-451b-9992-5ce9c4e4ae3a" ) - .cashback(true); + .cashback(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/DeleteBankTest.java b/src/test/java/jp/pokepay/partnerapi/DeleteBankTest.java new file mode 100644 index 00000000..bc9f8b18 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/DeleteBankTest.java @@ -0,0 +1,29 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.DeleteBank; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class DeleteBankTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new DeleteBank( + "6130a7ee-5330-4939-b5be-6bd432c567e2", + "4f68e29e-6781-44ae-aaa6-0296b168c77e" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/DeleteCustomerCardTest.java b/src/test/java/jp/pokepay/partnerapi/DeleteCustomerCardTest.java new file mode 100644 index 00000000..c946f9fc --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/DeleteCustomerCardTest.java @@ -0,0 +1,29 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.DeleteCustomerCard; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class DeleteCustomerCardTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new DeleteCustomerCard( + "24b261d7-aede-4f18-8a62-e296cdde2e74", + "b02afdb9-b5b3-40df-b400-6632f81322b6" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java b/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java index 8c5dd7e9..01329b74 100644 --- a/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java +++ b/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java @@ -12,7 +12,7 @@ public class DeleteWebhookTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new DeleteWebhook( - "e58e54ee-1f49-49d3-a0be-7230f9ff0994" + "560a62c3-a053-432a-aace-fc14550da2ee" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetAccountTest.java b/src/test/java/jp/pokepay/partnerapi/GetAccountTest.java index 09f7c5a8..b8f994fa 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetAccountTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetAccountTest.java @@ -12,7 +12,7 @@ public class GetAccountTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetAccount( - "e2f27231-d218-406e-b371-622b2afd45f7" + "659420e6-ccd8-47bd-9f80-4444609cfe97" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetAccountTransferSummaryTest.java b/src/test/java/jp/pokepay/partnerapi/GetAccountTransferSummaryTest.java index 51894994..c61f874e 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetAccountTransferSummaryTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetAccountTransferSummaryTest.java @@ -12,7 +12,7 @@ public class GetAccountTransferSummaryTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetAccountTransferSummary( - "d79ada44-2554-41d3-a753-5725590e9c63" + "95626e10-7ff6-4628-b94c-565d8306a14f" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetAccountTransferSummary( - "d79ada44-2554-41d3-a753-5725590e9c63" + "95626e10-7ff6-4628-b94c-565d8306a14f" ) - .transferTypes(new String[]{"exchange-outflow","exchange-inflow","refund-topup","use-coupon","refund-coupon","payment","refund-campaign","campaign-topup","refund-exchange-outflow"}); + .transferTypes(new String[]{"use-coupon","refund-exchange-outflow","refund-campaign","payment","refund-coupon","campaign-topup","refund-payment","topup","exchange-outflow","exchange-inflow","refund-exchange-inflow","refund-topup"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new GetAccountTransferSummary( - "d79ada44-2554-41d3-a753-5725590e9c63" + "95626e10-7ff6-4628-b94c-565d8306a14f" ) - .to("2022-08-23T05:52:55.000000Z") - .transferTypes(new String[]{"exchange-outflow","use-coupon","refund-payment","topup","payment","exchange-inflow","refund-exchange-outflow"}); + .to("2024-02-11T20:15:48.000000Z") + .transferTypes(new String[]{"exchange-inflow","campaign-topup","refund-exchange-outflow","use-coupon","refund-campaign","refund-topup","payment","refund-coupon"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new GetAccountTransferSummary( - "d79ada44-2554-41d3-a753-5725590e9c63" + "95626e10-7ff6-4628-b94c-565d8306a14f" ) - .from("2024-08-01T20:42:17.000000Z") - .to("2022-12-23T22:37:41.000000Z") - .transferTypes(new String[]{"refund-campaign","refund-payment","use-coupon","refund-exchange-outflow","exchange-inflow","refund-topup"}); + .from("2022-07-04T12:30:27.000000Z") + .to("2022-11-07T15:21:05.000000Z") + .transferTypes(new String[]{"campaign-topup","payment","exchange-outflow","exchange-inflow","refund-payment","refund-topup","refund-exchange-inflow"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/GetBillTest.java b/src/test/java/jp/pokepay/partnerapi/GetBillTest.java new file mode 100644 index 00000000..4a91d39c --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/GetBillTest.java @@ -0,0 +1,28 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.GetBill; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class GetBillTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new GetBill( + "05470bd7-45ee-4875-9fca-35982c0ad34b" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/GetBulkTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/GetBulkTransactionTest.java index cb701759..0ff92fb8 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetBulkTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetBulkTransactionTest.java @@ -12,7 +12,7 @@ public class GetBulkTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetBulkTransaction( - "e58bf7ca-9507-4ca7-8c7c-f29834f6cc7b" + "0232944d-078c-49c5-8e77-57f61186b321" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java b/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java index 907a235f..7555eb89 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java @@ -12,7 +12,7 @@ public class GetCampaignTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetCampaign( - "f4216304-2f33-46f7-8217-ed37d527d473" + "1087c955-b864-4c8a-935d-25dd75fdfe07" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/GetCashtrayTest.java index 935108df..06984164 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetCashtrayTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetCashtrayTest.java @@ -12,7 +12,7 @@ public class GetCashtrayTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetCashtray( - "889cfd0f-1711-4dc9-901f-71072893803b" + "c8de5075-c4f4-4595-954a-b14a8545bc73" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetCheckTest.java b/src/test/java/jp/pokepay/partnerapi/GetCheckTest.java index c9063413..50f22276 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetCheckTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetCheckTest.java @@ -12,7 +12,7 @@ public class GetCheckTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetCheck( - "b051a77b-0e57-4138-aef5-ff8a3812550b" + "76d0ef9b-5818-4b57-8f7e-ba9b5516c97c" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetCouponTest.java b/src/test/java/jp/pokepay/partnerapi/GetCouponTest.java index 11647b47..08eecfa4 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetCouponTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetCouponTest.java @@ -12,7 +12,7 @@ public class GetCouponTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetCoupon( - "282f5141-ced8-4882-9b84-38fd6c0fdc2c" + "1de4eb8a-d7e6-401d-a237-d11d5aac7153" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetCpmTokenTest.java b/src/test/java/jp/pokepay/partnerapi/GetCpmTokenTest.java index 729a9ee8..a9af9896 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetCpmTokenTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetCpmTokenTest.java @@ -12,7 +12,7 @@ public class GetCpmTokenTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetCpmToken( - "XNEvBDebROkI568yn3vAdg" + "tyiRtGJ1HUxolj1KPz6vAa" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetCustomerAccountsTest.java b/src/test/java/jp/pokepay/partnerapi/GetCustomerAccountsTest.java index b746291e..69fb042a 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetCustomerAccountsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetCustomerAccountsTest.java @@ -12,7 +12,7 @@ public class GetCustomerAccountsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625" + "ac4bc52d-4086-4db8-8bea-b2653c87a7ab" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625" + "ac4bc52d-4086-4db8-8bea-b2653c87a7ab" ) - .email("cm0Sp2RluF@OAxJ.com"); + .email("2pUTWzADND@e87o.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625" + "ac4bc52d-4086-4db8-8bea-b2653c87a7ab" ) - .tel("07-0551-2657") - .email("TcJlnsa7zu@y1tu.com"); + .tel("045226365") + .email("Usk6umIdkj@ysmB.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625" + "ac4bc52d-4086-4db8-8bea-b2653c87a7ab" ) - .externalId("dw") - .tel("071-69745487") - .email("fKkMLwrBpO@RQ9L.com"); + .externalId("oCy1Ud1e5PrxfXmPZX1VlVfqe") + .tel("060032739459") + .email("e0pY47yGoA@wg28.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625" + "ac4bc52d-4086-4db8-8bea-b2653c87a7ab" ) .status("suspended") - .externalId("lnKRmCd4n") - .tel("045-981479") - .email("qpn3W7S36l@34SS.com"); + .externalId("Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfv") + .tel("07693552") + .email("86BZW4IWD5@GZy4.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625" + "ac4bc52d-4086-4db8-8bea-b2653c87a7ab" ) - .setSuspended(false) - .status("active") - .externalId("W72gqSjd8QPzbjt0rt7UmerReZGbvGgvA") - .tel("09215911045") - .email("P1AnQALadF@sAzg.com"); + .setSuspended(true) + .status("pre-closed") + .externalId("5w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTI") + .tel("063937-3077") + .email("Q3onqPmyIz@FPAF.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625" + "ac4bc52d-4086-4db8-8bea-b2653c87a7ab" ) - .createdAtTo("2022-07-27T22:59:50.000000Z") - .setSuspended(true) - .status("pre-closed") - .externalId("tuXgZDedIJqTHGgnOhGiwZBj5AvHdO2Atfc") - .tel("0129-664-818") - .email("3sP8V6IT9V@FC5b.com"); + .createdAtTo("2020-01-16T21:59:19.000000Z") + .setSuspended(false) + .status("suspended") + .externalId("HME8Dl") + .tel("030565-274") + .email("Wsj7MinGr0@IGEe.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625" + "ac4bc52d-4086-4db8-8bea-b2653c87a7ab" ) - .createdAtFrom("2021-03-24T19:42:09.000000Z") - .createdAtTo("2020-09-24T18:38:11.000000Z") - .setSuspended(true) - .status("active") - .externalId("PASw8jPQ0hMJ4nPgNJOUuVI3xkUSOX0vTgyFK1F") - .tel("002-97-992") - .email("exAarzlUll@rgsQ.com"); + .createdAtFrom("2022-02-07T10:39:08.000000Z") + .createdAtTo("2022-06-22T20:03:06.000000Z") + .setSuspended(false) + .status("suspended") + .externalId("5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm") + .tel("047-459078") + .email("jITuRCVadP@y2Bb.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625" + "ac4bc52d-4086-4db8-8bea-b2653c87a7ab" ) - .perPage(6435) - .createdAtFrom("2022-12-18T13:21:30.000000Z") - .createdAtTo("2022-10-28T02:45:21.000000Z") + .perPage(3778) + .createdAtFrom("2024-10-15T16:45:19.000000Z") + .createdAtTo("2025-11-30T08:24:53.000000Z") .setSuspended(true) - .status("active") - .externalId("YeKIbZQuPYAKNLvTyMcIYl") - .tel("079352848") - .email("Pv9LO3MtPy@t1wT.com"); + .status("pre-closed") + .externalId("tCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdp") + .tel("0023702-587") + .email("3GCZjYfwcS@TcjO.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -192,17 +192,17 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625" + "ac4bc52d-4086-4db8-8bea-b2653c87a7ab" ) - .page(8687) - .perPage(8494) - .createdAtFrom("2024-02-11T20:15:48.000000Z") - .createdAtTo("2023-10-06T20:45:00.000000Z") + .page(4415) + .perPage(3746) + .createdAtFrom("2023-07-19T08:17:13.000000Z") + .createdAtTo("2023-01-07T06:16:44.000000Z") .setSuspended(true) .status("active") - .externalId("Yk") - .tel("004073-175") - .email("ncONv8Kje2@pUTW.com"); + .externalId("y0KR") + .tel("00525065-039") + .email("DVyQoaELlr@Jk6M.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/GetCustomerCardsTest.java b/src/test/java/jp/pokepay/partnerapi/GetCustomerCardsTest.java new file mode 100644 index 00000000..f67711b0 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/GetCustomerCardsTest.java @@ -0,0 +1,63 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.GetCustomerCards; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class GetCustomerCardsTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new GetCustomerCards( + "085d3da7-ec9f-46bb-a5b3-d18e08ea09ab" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test1() throws ConnectionError, ProcessingError { + Request request = new GetCustomerCards( + "085d3da7-ec9f-46bb-a5b3-d18e08ea09ab" + ) + .perPage(54); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test2() throws ConnectionError, ProcessingError { + Request request = new GetCustomerCards( + "085d3da7-ec9f-46bb-a5b3-d18e08ea09ab" + ) + .page(8562) + .perPage(12); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/GetCvsAuthorizationTest.java b/src/test/java/jp/pokepay/partnerapi/GetCvsAuthorizationTest.java new file mode 100644 index 00000000..8f0995e8 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/GetCvsAuthorizationTest.java @@ -0,0 +1,28 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.GetCvsAuthorization; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class GetCvsAuthorizationTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new GetCvsAuthorization( + "522a064a-5211-4e9c-a36a-d4150f829256" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/GetCvsAuthorizationsTest.java b/src/test/java/jp/pokepay/partnerapi/GetCvsAuthorizationsTest.java new file mode 100644 index 00000000..9df9b272 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/GetCvsAuthorizationsTest.java @@ -0,0 +1,123 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.GetCvsAuthorizations; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class GetCvsAuthorizationsTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new GetCvsAuthorizations( + "c97b3de0-d02b-4a56-a4b6-d3539153e140" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test1() throws ConnectionError, ProcessingError { + Request request = new GetCvsAuthorizations( + "c97b3de0-d02b-4a56-a4b6-d3539153e140" + ) + .perPage(14); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test2() throws ConnectionError, ProcessingError { + Request request = new GetCvsAuthorizations( + "c97b3de0-d02b-4a56-a4b6-d3539153e140" + ) + .after("4zOt2LPb") + .perPage(42); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test3() throws ConnectionError, ProcessingError { + Request request = new GetCvsAuthorizations( + "c97b3de0-d02b-4a56-a4b6-d3539153e140" + ) + .before("n") + .after("vCf") + .perPage(46); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test4() throws ConnectionError, ProcessingError { + Request request = new GetCvsAuthorizations( + "c97b3de0-d02b-4a56-a4b6-d3539153e140" + ) + .status("expired") + .before("5") + .after("Ws") + .perPage(33); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test5() throws ConnectionError, ProcessingError { + Request request = new GetCvsAuthorizations( + "c97b3de0-d02b-4a56-a4b6-d3539153e140" + ) + .customerId("4bc5c764-73d5-4a6e-92f2-35beb6f3bf48") + .status("canceled") + .before("9KHVuXFGK") + .after("t4lw") + .perPage(62); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java b/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java index a57658a3..7a184885 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java @@ -12,7 +12,7 @@ public class GetExternalTransactionByRequestIdTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetExternalTransactionByRequestId( - "4e64bff1-5f4d-4c40-baae-80a79582760a" + "6b7a04ad-85a9-4b1b-9a80-e539aca2378a" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java index c761d9b9..fb1bfcc6 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java @@ -12,7 +12,7 @@ public class GetPrivateMoneyOrganizationSummariesTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneyOrganizationSummaries( - "25c2238f-cf81-4930-aefa-23951ca983f1" + "bfade9bd-06df-46d6-b113-8ce5816cc879" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneyOrganizationSummaries( - "25c2238f-cf81-4930-aefa-23951ca983f1" + "bfade9bd-06df-46d6-b113-8ce5816cc879" ) - .page(3863); + .page(8223); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneyOrganizationSummaries( - "25c2238f-cf81-4930-aefa-23951ca983f1" + "bfade9bd-06df-46d6-b113-8ce5816cc879" ) - .perPage(4164) - .page(1671); + .perPage(4644) + .page(2708); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneyOrganizationSummaries( - "25c2238f-cf81-4930-aefa-23951ca983f1" + "bfade9bd-06df-46d6-b113-8ce5816cc879" ) - .from("2023-02-24T15:38:45.000000Z") - .to("2020-06-01T22:27:12.000000Z"); + .from("2021-02-05T00:20:01.000000Z") + .to("2023-03-18T18:52:47.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -81,11 +81,11 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneyOrganizationSummaries( - "25c2238f-cf81-4930-aefa-23951ca983f1" + "bfade9bd-06df-46d6-b113-8ce5816cc879" ) - .from("2022-04-29T04:44:50.000000Z") - .to("2023-02-28T01:22:24.000000Z") - .page(2940); + .from("2020-02-08T19:33:21.000000Z") + .to("2025-06-11T21:01:39.000000Z") + .page(7315); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -100,12 +100,12 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneyOrganizationSummaries( - "25c2238f-cf81-4930-aefa-23951ca983f1" + "bfade9bd-06df-46d6-b113-8ce5816cc879" ) - .from("2020-06-22T06:48:08.000000Z") - .to("2024-10-03T11:36:06.000000Z") - .perPage(2431) - .page(6798); + .from("2021-08-27T06:25:53.000000Z") + .to("2021-04-20T20:21:23.000000Z") + .perPage(3522) + .page(8179); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneySummaryTest.java b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneySummaryTest.java index 2725120c..706da9f0 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneySummaryTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneySummaryTest.java @@ -12,7 +12,7 @@ public class GetPrivateMoneySummaryTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneySummary( - "bc754716-7e01-46ff-bef3-b315e34c3f20" + "5a5b54e8-ca77-48e0-bd13-9a6d2c346bb7" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneySummary( - "bc754716-7e01-46ff-bef3-b315e34c3f20" + "5a5b54e8-ca77-48e0-bd13-9a6d2c346bb7" ) - .to("2020-02-01T06:05:29.000000Z"); + .to("2020-04-08T21:08:06.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneySummary( - "bc754716-7e01-46ff-bef3-b315e34c3f20" + "5a5b54e8-ca77-48e0-bd13-9a6d2c346bb7" ) - .from("2023-06-06T15:44:55.000000Z") - .to("2022-07-27T19:34:17.000000Z"); + .from("2021-08-01T16:32:00.000000Z") + .to("2023-09-06T09:24:21.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneysTest.java b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneysTest.java index 06f90b73..2e6fa26a 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneysTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneysTest.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneys() - .perPage(6996); + .perPage(8591); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneys() - .page(2568) - .perPage(7422); + .page(9062) + .perPage(5845); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneys() - .organizationCode("qr-5a-89") - .page(972) - .perPage(207); + .organizationCode("YB-f4Hp0-BRo-J--b-Bn") + .page(5997) + .perPage(1139); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java b/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java index 5691bfac..ae09422b 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java @@ -12,7 +12,7 @@ public class GetSevenBankATMSessionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetSevenBankATMSession( - "EkSwN7J" + "KuFyd9WkOS" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetShopAccountsTest.java b/src/test/java/jp/pokepay/partnerapi/GetShopAccountsTest.java index bd0fcdd1..c239766b 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetShopAccountsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetShopAccountsTest.java @@ -12,7 +12,7 @@ public class GetShopAccountsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863" + "4c4df09a-c8ea-4602-b592-3b442f0ec08d" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863" + "4c4df09a-c8ea-4602-b592-3b442f0ec08d" ) - .setSuspended(false); + .setSuspended(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863" + "4c4df09a-c8ea-4602-b592-3b442f0ec08d" ) - .createdAtTo("2020-05-06T02:02:55.000000Z") + .createdAtTo("2026-05-14T15:53:20.000000Z") .setSuspended(true); try { PartnerAPITest.getClient().send(request); @@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863" + "4c4df09a-c8ea-4602-b592-3b442f0ec08d" ) - .createdAtFrom("2023-03-17T16:04:05.000000Z") - .createdAtTo("2024-03-19T06:01:45.000000Z") + .createdAtFrom("2025-06-12T01:11:15.000000Z") + .createdAtTo("2023-05-08T13:24:13.000000Z") .setSuspended(false); try { PartnerAPITest.getClient().send(request); @@ -82,11 +82,11 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863" + "4c4df09a-c8ea-4602-b592-3b442f0ec08d" ) - .perPage(4823) - .createdAtFrom("2023-07-22T08:29:37.000000Z") - .createdAtTo("2020-07-29T13:51:14.000000Z") + .perPage(644) + .createdAtFrom("2021-12-12T13:57:58.000000Z") + .createdAtTo("2020-05-21T00:15:54.000000Z") .setSuspended(false); try { PartnerAPITest.getClient().send(request); @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863" + "4c4df09a-c8ea-4602-b592-3b442f0ec08d" ) - .page(4360) - .perPage(8484) - .createdAtFrom("2022-04-08T21:42:45.000000Z") - .createdAtTo("2023-03-08T17:36:02.000000Z") - .setSuspended(true); + .page(7075) + .perPage(5144) + .createdAtFrom("2026-07-04T12:00:10.000000Z") + .createdAtTo("2022-11-05T06:14:30.000000Z") + .setSuspended(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/GetShopTest.java b/src/test/java/jp/pokepay/partnerapi/GetShopTest.java index 9d2a61b7..4892fc77 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetShopTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetShopTest.java @@ -12,7 +12,7 @@ public class GetShopTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetShop( - "026fffa8-2866-4283-98da-548e8efcfc76" + "256ca666-a2cc-4b81-847c-608b8639c5ca" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetTransactionByRequestIdTest.java b/src/test/java/jp/pokepay/partnerapi/GetTransactionByRequestIdTest.java index 2812fab0..edf8e396 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetTransactionByRequestIdTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetTransactionByRequestIdTest.java @@ -12,7 +12,7 @@ public class GetTransactionByRequestIdTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetTransactionByRequestId( - "deb8b291-56a1-4247-bb36-e8f07aec80fb" + "b9253cfc-9c60-4914-a9d9-ae5e72cf7743" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/GetTransactionTest.java index 6785d460..60ec8c4c 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetTransactionTest.java @@ -12,7 +12,7 @@ public class GetTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetTransaction( - "0a12dd2d-bb34-4fc3-aee4-0502dbfefb4e" + "0b292a35-daf0-4e61-8093-e386877e9da6" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetUserDeviceTest.java b/src/test/java/jp/pokepay/partnerapi/GetUserDeviceTest.java index c47e7302..1e53ae7f 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetUserDeviceTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetUserDeviceTest.java @@ -12,7 +12,7 @@ public class GetUserDeviceTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetUserDevice( - "0dc83d4f-7776-4b76-b82e-8c80e00d323b" + "34469c02-00eb-4101-b2e3-ec2a9b50fbc6" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java b/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java index 164b940f..c284dc7a 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java @@ -12,7 +12,7 @@ public class ListAccountBalancesTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95" + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95" + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf" ) - .direction("desc"); + .direction("asc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95" + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf" ) - .expiresAtTo("2020-10-07T18:59:38.000000Z") - .direction("desc"); + .expiresAtTo("2024-07-17T16:43:47.000000Z") + .direction("asc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95" + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf" ) - .expiresAtFrom("2020-09-07T21:25:03.000000Z") - .expiresAtTo("2024-10-02T20:33:17.000000Z") + .expiresAtFrom("2021-04-06T08:41:06.000000Z") + .expiresAtTo("2023-06-02T11:51:13.000000Z") .direction("desc"); try { PartnerAPITest.getClient().send(request); @@ -82,11 +82,11 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95" + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf" ) - .perPage(5374) - .expiresAtFrom("2021-01-13T03:58:59.000000Z") - .expiresAtTo("2024-09-16T05:40:45.000000Z") + .perPage(4634) + .expiresAtFrom("2024-01-18T23:56:06.000000Z") + .expiresAtTo("2021-12-10T18:32:08.000000Z") .direction("desc"); try { PartnerAPITest.getClient().send(request); @@ -102,12 +102,12 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95" + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf" ) - .page(9044) - .perPage(3584) - .expiresAtFrom("2022-05-05T20:55:29.000000Z") - .expiresAtTo("2023-04-07T14:57:44.000000Z") + .page(5372) + .perPage(1503) + .expiresAtFrom("2021-10-12T09:36:01.000000Z") + .expiresAtTo("2023-11-12T04:37:14.000000Z") .direction("asc"); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java b/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java index f0879076..3853d83e 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java @@ -12,7 +12,7 @@ public class ListAccountExpiredBalancesTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f" ) - .direction("asc"); + .direction("desc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f" ) - .expiresAtTo("2022-11-08T09:57:39.000000Z") + .expiresAtTo("2020-05-12T06:39:28.000000Z") .direction("desc"); try { PartnerAPITest.getClient().send(request); @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f" ) - .expiresAtFrom("2021-02-10T04:23:33.000000Z") - .expiresAtTo("2021-11-27T03:23:28.000000Z") - .direction("desc"); + .expiresAtFrom("2021-08-10T22:28:30.000000Z") + .expiresAtTo("2022-01-02T23:11:37.000000Z") + .direction("asc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,11 +82,11 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f" ) - .perPage(9269) - .expiresAtFrom("2022-07-27T12:24:37.000000Z") - .expiresAtTo("2020-03-19T18:01:03.000000Z") + .perPage(4714) + .expiresAtFrom("2020-04-19T21:07:10.000000Z") + .expiresAtTo("2026-08-14T18:22:19.000000Z") .direction("desc"); try { PartnerAPITest.getClient().send(request); @@ -102,12 +102,12 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f" ) - .page(6531) - .perPage(2579) - .expiresAtFrom("2023-10-07T04:30:21.000000Z") - .expiresAtTo("2023-04-20T20:38:29.000000Z") + .page(3051) + .perPage(9993) + .expiresAtFrom("2020-01-17T10:42:07.000000Z") + .expiresAtTo("2024-08-16T11:50:48.000000Z") .direction("asc"); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/ListBanksTest.java b/src/test/java/jp/pokepay/partnerapi/ListBanksTest.java index eb967c01..0722d754 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListBanksTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListBanksTest.java @@ -12,7 +12,7 @@ public class ListBanksTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListBanks( - "a829764d-e1b6-4d25-9279-1fceebdd8b45" + "1ae43861-0cb1-4e33-b850-d81061a0a086" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListBanks( - "a829764d-e1b6-4d25-9279-1fceebdd8b45" + "1ae43861-0cb1-4e33-b850-d81061a0a086" ) - .privateMoneyId("f13bb85d-66aa-4930-a316-33b8455d28c1"); + .privateMoneyId("3115fd33-7632-408d-a217-6b5e9166107c"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListBillTransactionsTest.java b/src/test/java/jp/pokepay/partnerapi/ListBillTransactionsTest.java new file mode 100644 index 00000000..11b2d5cc --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/ListBillTransactionsTest.java @@ -0,0 +1,356 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.ListBillTransactions; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class ListBillTransactionsTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions(); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test1() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .perPage(825); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test2() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .prevPageCursorId("47f29ebe-f3d7-46d1-a523-49240fa3107c") + .perPage(779); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test3() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .nextPageCursorId("79afb41b-6c37-4e29-81ae-1227ced97435") + .prevPageCursorId("a2b0b9a5-5d03-445a-8f8f-ee71b20ca7b2") + .perPage(63); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test4() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .to("2023-04-11T21:01:55.000000Z") + .nextPageCursorId("6b20cfd0-65a5-4390-850a-25f0bb63f7e8") + .prevPageCursorId("5203443d-423a-46fe-b582-b7c0af771bcc") + .perPage(634); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test5() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .from("2020-06-18T08:58:48.000000Z") + .to("2023-02-12T08:25:47.000000Z") + .nextPageCursorId("0066f2ad-56f2-4616-87cb-4e9476655b9f") + .prevPageCursorId("6a6d544b-8409-42fb-9a92-2f3a64ca06c8") + .perPage(577); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test6() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .setModified(true) + .from("2022-10-01T12:40:57.000000Z") + .to("2023-09-21T03:29:43.000000Z") + .nextPageCursorId("73e5b5e5-4add-412c-8109-7b9dcf718cb6") + .prevPageCursorId("dbf260bc-e05b-497c-87cb-334dd58144f3") + .perPage(136); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test7() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .billId("7433c307-2c5b-43d2-93c2-65067f7579bc") + .setModified(false) + .from("2025-09-05T22:33:19.000000Z") + .to("2023-04-12T01:41:54.000000Z") + .nextPageCursorId("702e611f-340c-411a-bcbe-0bae4423d866") + .prevPageCursorId("aaa980db-3aa4-4e88-9e4e-2b3c855a34a7") + .perPage(455); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test8() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .transactionId("e792aa77-dcfb-492a-aa06-5c53422cd95b") + .billId("1a06d153-5317-4bdc-828b-e5555baf43eb") + .setModified(false) + .from("2024-11-02T06:13:05.000000Z") + .to("2020-07-01T12:22:46.000000Z") + .nextPageCursorId("bcce510e-c785-41ef-b5c7-140b917037d6") + .prevPageCursorId("3d670012-cab2-433a-bdd5-d2cc00a5c92a") + .perPage(103); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test9() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .description("tf3KLiOm0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhcti") + .transactionId("5b7b0ec5-ac9d-4e7f-b022-94088b7b488b") + .billId("f38cfd12-db4c-460a-83b1-242ab99884cb") + .setModified(true) + .from("2021-03-31T23:51:08.000000Z") + .to("2024-07-14T00:50:20.000000Z") + .nextPageCursorId("8aacadb2-2295-40b0-9399-497d90260359") + .prevPageCursorId("45e7d3a2-1c7b-4c3b-b25d-093888aab29c") + .perPage(708); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test10() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .terminalId("39a2d97d-a918-42c5-92c9-1e1b442efdf0") + .description("XvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVa") + .transactionId("e306998f-f253-4893-b94a-d83feae7dcc0") + .billId("fc0a3009-3e79-48e4-8e04-920a89c0e1f0") + .setModified(true) + .from("2021-01-27T12:52:55.000000Z") + .to("2023-09-22T07:04:17.000000Z") + .nextPageCursorId("56d60558-7a92-49ea-bd08-23a0ecba8b3a") + .prevPageCursorId("9a89883d-a22e-40f1-97b7-42fe4c234cdb") + .perPage(965); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test11() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .customerName("3uCGCdE3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0F") + .terminalId("c8176166-ec1f-49b5-9c21-aeee25354903") + .description("ebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY") + .transactionId("45e44cfb-6b8d-4d96-b0a5-c743d6b252cc") + .billId("bc8bdf9f-cae3-4c66-973f-4f1ce359cbef") + .setModified(false) + .from("2020-12-05T23:44:31.000000Z") + .to("2024-09-13T03:41:50.000000Z") + .nextPageCursorId("53e7734d-74c6-47a2-8b53-09c99cadd92f") + .prevPageCursorId("b13feae4-ecad-4ac5-8acd-cec788e4a6fb") + .perPage(154); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test12() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .customerId("53f2c323-5891-495c-a9b9-a40885e2b42a") + .customerName("8zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68Sc") + .terminalId("04abaadd-a3fc-46da-84aa-ebbad93a84e7") + .description("aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsF") + .transactionId("ff587ac8-87ae-4b4c-bbf9-2ad0437e6268") + .billId("3691a03d-81ef-4243-b12a-6cbfb7121957") + .setModified(false) + .from("2026-08-19T00:22:47.000000Z") + .to("2023-01-05T13:09:06.000000Z") + .nextPageCursorId("8be574fa-1f1d-40e9-92eb-73c871dddbb0") + .prevPageCursorId("4cb6afbf-a144-44f2-a754-21a3b475bbe8") + .perPage(672); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test13() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .shopId("49f0f37c-88c9-4fa1-b9ee-b66450e7da8b") + .customerId("bb2edd09-78c3-41ff-81d2-015854c1ca87") + .customerName("iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lOD") + .terminalId("ea4b018b-0e02-4e8a-8efe-d318aa5c007b") + .description("2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJeNNv") + .transactionId("f95241d5-6dc3-4d1e-b062-11712cc24409") + .billId("9d6dc000-5f8f-4973-b168-e99671a9fb3f") + .setModified(true) + .from("2023-08-13T05:43:48.000000Z") + .to("2020-11-16T22:57:35.000000Z") + .nextPageCursorId("18ebdc92-7019-446d-be64-0989747cde35") + .prevPageCursorId("2fd0fdc0-c6c9-4304-a9b8-ad1498a158e5") + .perPage(887); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test14() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .organizationCode("Du-il9-2xA7lU-g-r--4Gj8dO-X-2-b") + .shopId("75942592-5969-4b99-a0dc-f96bc07df94a") + .customerId("257d41b2-77ef-4870-8779-57e00b42751b") + .customerName("r1ja3zumve") + .terminalId("5b13e937-8237-40bb-b11d-d96b06bc832e") + .description("mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0To") + .transactionId("ee42e373-633a-459e-a378-95cb628e5a22") + .billId("545b6e7a-2b0c-4934-aabc-1a1d3e2af52b") + .setModified(false) + .from("2022-12-04T17:13:03.000000Z") + .to("2025-02-23T20:30:54.000000Z") + .nextPageCursorId("8596903e-09af-428b-8607-bf9367900203") + .prevPageCursorId("a6c3562e-c827-43a0-b7ba-29c8ed52691a") + .perPage(147); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test15() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .privateMoneyId("474da1f4-d622-4a3a-b5ea-e97f87ea210b") + .organizationCode("--4W14K6-Ku") + .shopId("b844b3e5-6706-4763-bed1-d7ce53ef1575") + .customerId("c87837e2-8f49-46e4-8804-97e5e55ff29d") + .customerName("IBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6NsjUaiDr") + .terminalId("f801baef-b2d9-4db6-a4d1-c52091551cb3") + .description("K7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOI") + .transactionId("2ac534a6-7e4d-40fd-8bc7-dd0ec7598c52") + .billId("f9c77fa6-aff8-419c-9417-e09b2d67995a") + .setModified(true) + .from("2021-12-20T19:41:31.000000Z") + .to("2024-01-05T20:56:50.000000Z") + .nextPageCursorId("325d040b-35f4-4824-8c64-43d6ae6842b7") + .prevPageCursorId("da112f75-1105-4b97-94a1-27e90dc2a2a0") + .perPage(856); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java b/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java index e875352a..b32b4841 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListBills() - .setDisabled(false); + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,7 +41,7 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListBills() - .upperLimitAmount(3460) + .upperLimitAmount(7252) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -57,8 +57,8 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListBills() - .lowerLimitAmount(3003) - .upperLimitAmount(2795) + .lowerLimitAmount(3473) + .upperLimitAmount(1408) .setDisabled(true); try { PartnerAPITest.getClient().send(request); @@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListBills() - .shopId("a9696cec-9a6a-4ba0-b1b1-beff32bea9d1") - .lowerLimitAmount(6740) - .upperLimitAmount(874) - .setDisabled(false); + .shopId("f4099f6e-a1dd-4c91-b9d7-cdd0bae16c27") + .lowerLimitAmount(3379) + .upperLimitAmount(9069) + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListBills() - .shopName("kgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kX") - .shopId("52fbc519-17e0-450f-a1fb-f1be62dd6c3d") - .lowerLimitAmount(6587) - .upperLimitAmount(4324) - .setDisabled(true); + .shopName("VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25uvrmGGKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkB") + .shopId("a2f429e8-0848-4bd8-a0a3-67c9bc687ae9") + .lowerLimitAmount(8655) + .upperLimitAmount(4011) + .setDisabled(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -111,11 +111,11 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListBills() - .createdTo("2024-04-18T15:33:35.000000Z") - .shopName("stCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25u") - .shopId("8767767b-8976-455e-afdf-74728b146513") - .lowerLimitAmount(6765) - .upperLimitAmount(7751) + .createdTo("2021-09-19T16:24:13.000000Z") + .shopName("N14umNbs9HzTMz") + .shopId("d3bf9967-6c9a-460f-a8b2-13863efe6a5f") + .lowerLimitAmount(7233) + .upperLimitAmount(4782) .setDisabled(true); try { PartnerAPITest.getClient().send(request); @@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListBills() - .createdFrom("2022-07-30T05:48:44.000000Z") - .createdTo("2020-11-03T12:14:03.000000Z") - .shopName("GKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8LerXQe8LjF8Q") - .shopId("3752130a-b436-4bf1-a9f6-e7809624e470") - .lowerLimitAmount(452) - .upperLimitAmount(5404) - .setDisabled(false); + .createdFrom("2026-07-03T12:27:13.000000Z") + .createdTo("2023-08-14T16:28:31.000000Z") + .shopName("GgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaS") + .shopId("3ad00613-d46b-4972-acd0-fdbe3b32e5f3") + .lowerLimitAmount(3811) + .upperLimitAmount(8511) + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,13 +152,13 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListBills() - .description("ZbBwXFvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSIaxZ8O") - .createdFrom("2022-03-17T01:45:50.000000Z") - .createdTo("2023-10-26T09:45:48.000000Z") - .shopName("zG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4VkAmGgvgI7YgVKC9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteVH") - .shopId("383b5f1b-2538-4659-8caa-a2a88e28a3f6") - .lowerLimitAmount(1391) - .upperLimitAmount(6869) + .description("FZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq") + .createdFrom("2024-02-19T15:31:05.000000Z") + .createdTo("2023-04-29T19:38:58.000000Z") + .shopName("VZQG") + .shopId("8eaabba6-4636-47a9-a289-b5dc6b658323") + .lowerLimitAmount(6506) + .upperLimitAmount(3253) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -174,14 +174,14 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new ListBills() - .organizationCode("H54G51-a8") - .description("7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMI") - .createdFrom("2022-05-28T22:33:06.000000Z") - .createdTo("2023-06-03T18:28:37.000000Z") - .shopName("OIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZfjz7mGpF3om") - .shopId("36462a8a-4f44-430f-8239-ccb25f087860") - .lowerLimitAmount(1266) - .upperLimitAmount(9333) + .organizationCode("--w-uWdfm-8-N-fI8m6yK1Wqzvc4-Y") + .description("FvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3") + .createdFrom("2025-01-07T19:15:28.000000Z") + .createdTo("2021-01-17T09:28:40.000000Z") + .shopName("hjHLVEtSIaxZ8O9N2SLzG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4VkAmGgvgI7YgVKC9RfQiSpTWZ") + .shopId("0bcdd82a-320e-4b72-9f84-428a0c5b8064") + .lowerLimitAmount(5936) + .upperLimitAmount(9960) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new ListBills() - .privateMoneyId("f5b45ff1-ac93-415f-ac92-7896ea3e7ec0") - .organizationCode("-sx-d8l6i---y--o-z6T4-Jv-") - .description("AI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T") - .createdFrom("2022-06-04T02:02:29.000000Z") - .createdTo("2024-06-09T12:30:26.000000Z") - .shopName("20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLn") - .shopId("9a3fe1c1-2772-44b7-a14e-85c862961001") - .lowerLimitAmount(3446) - .upperLimitAmount(4104) - .setDisabled(true); + .privateMoneyId("a7050d56-e484-4100-a42a-4981813b44d3") + .organizationCode("--6-WX0z-64b50d-mzO5vzt-Z") + .description("xIWGujcTxFFrrXyLyMOsteVH8YLvoUoraYyVUvoHuS") + .createdFrom("2024-04-16T17:25:48.000000Z") + .createdTo("2025-02-17T15:27:57.000000Z") + .shopName("44X7ZEq8UGlMat7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vS") + .shopId("4a7a1bfd-d873-495a-91f7-49f75fed11c8") + .lowerLimitAmount(2549) + .upperLimitAmount(5047) + .setDisabled(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -221,16 +221,16 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new ListBills() - .billId("M") - .privateMoneyId("a52375dc-0844-42fc-a55a-9f4c3ee4024f") - .organizationCode("3-8ErShQ--14--5Lh-va--U-") - .description("JLdESdgB4") - .createdFrom("2022-11-07T11:43:00.000000Z") - .createdTo("2021-08-22T14:32:00.000000Z") - .shopName("huAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacS") - .shopId("18a62974-78b3-47f7-bca1-bc8ae5d555e8") - .lowerLimitAmount(4830) - .upperLimitAmount(6678) + .billId("kbtkzGP") + .privateMoneyId("f26206e8-957a-49d2-8f2e-60105350b310") + .organizationCode("R--s0-Gz6e2-") + .description("fu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VCG4sTwcYeFwcP7ZmLygXYRtj") + .createdFrom("2021-06-27T01:22:22.000000Z") + .createdTo("2026-04-01T09:27:32.000000Z") + .shopName("2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20") + .shopId("6ae880e4-bac9-4821-b58b-a9c2c57eb17c") + .lowerLimitAmount(7969) + .upperLimitAmount(9623) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new ListBills() - .perPage(737) - .billId("HQ5cbR") - .privateMoneyId("9a952f36-ae32-41a0-8f45-7edd3017071c") - .organizationCode("X-z3q470F5N-NRB9-Syci") - .description("T65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zI") - .createdFrom("2020-09-25T15:17:58.000000Z") - .createdTo("2020-12-02T23:21:54.000000Z") - .shopName("Zx4eE9mHPjq6XCvYjxbcuNA5AOQ") - .shopId("07d8d248-443e-4527-be89-51bad8f57297") - .lowerLimitAmount(6034) - .upperLimitAmount(8050) - .setDisabled(false); + .perPage(6846) + .billId("2e") + .privateMoneyId("0f9a6f0e-4232-47b5-aea1-976190305721") + .organizationCode("-M--f2Fkr-X-a8-d5--4691-5") + .description("ccTMUOFUG9Fme") + .createdFrom("2020-07-26T15:17:38.000000Z") + .createdTo("2021-12-02T01:34:49.000000Z") + .shopName("lEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLnAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH") + .shopId("02084eb2-6ee4-4e0b-a1ca-776e20cc3902") + .lowerLimitAmount(9878) + .upperLimitAmount(7436) + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -272,18 +272,18 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new ListBills() - .page(4791) - .perPage(8158) - .billId("Xo") - .privateMoneyId("c4701f9c-f3fb-4d10-a3d0-83f5eb671e34") - .organizationCode("-Mka-PgXu0Xkt9H--9-g0") - .description("nur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2HyY5rx") - .createdFrom("2023-09-11T18:25:47.000000Z") - .createdTo("2021-10-19T12:21:40.000000Z") - .shopName("yEvnewbYd4rNZJsCq7m7arw2NKYH1") - .shopId("d1ec81a0-e632-4807-9781-7b7870093e19") - .lowerLimitAmount(7590) - .upperLimitAmount(8545) + .page(2754) + .perPage(8698) + .billId("xYgmSSWd6") + .privateMoneyId("524bb12d-3d6e-4289-86e4-e948dfc2d6dd") + .organizationCode("30pf") + .description("pyfoekUtYXnQ6dyRq") + .createdFrom("2020-11-08T17:24:20.000000Z") + .createdTo("2023-07-16T15:57:15.000000Z") + .shopName("bojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuB") + .shopId("624a2517-91ff-4fc3-9bb2-0f23baab8e18") + .lowerLimitAmount(8978) + .upperLimitAmount(8667) .setDisabled(false); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java b/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java index cad99595..32cd737c 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java @@ -12,7 +12,7 @@ public class ListBulkTransactionJobsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListBulkTransactionJobs( - "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1" + "741a2966-475a-4cc9-8d1f-ad687caefce6" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListBulkTransactionJobs( - "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1" + "741a2966-475a-4cc9-8d1f-ad687caefce6" ) - .perPage(986); + .perPage(580); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListBulkTransactionJobs( - "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1" + "741a2966-475a-4cc9-8d1f-ad687caefce6" ) - .page(9569) - .perPage(6767); + .page(4882) + .perPage(6885); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListCampaignsTest.java b/src/test/java/jp/pokepay/partnerapi/ListCampaignsTest.java index 9406c540..66a1475b 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListCampaignsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListCampaignsTest.java @@ -12,7 +12,7 @@ public class ListCampaignsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListCampaigns( - "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + "5ecbb041-9856-4d44-8d0e-72485a4ae79a" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListCampaigns( - "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + "5ecbb041-9856-4d44-8d0e-72485a4ae79a" ) - .perPage(3); + .perPage(49); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListCampaigns( - "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + "5ecbb041-9856-4d44-8d0e-72485a4ae79a" ) - .page(4010) - .perPage(31); + .page(6249) + .perPage(18); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListCampaigns( - "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + "5ecbb041-9856-4d44-8d0e-72485a4ae79a" ) - .availableTo("2024-06-29T01:26:44.000000Z") - .page(5805) - .perPage(8); + .availableTo("2020-03-02T10:53:48.000000Z") + .page(9546) + .perPage(30); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListCampaigns( - "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + "5ecbb041-9856-4d44-8d0e-72485a4ae79a" ) - .availableFrom("2022-10-27T15:54:11.000000Z") - .availableTo("2020-01-12T10:32:20.000000Z") - .page(5383) - .perPage(18); + .availableFrom("2025-08-19T12:05:06.000000Z") + .availableTo("2023-11-23T13:16:13.000000Z") + .page(9550) + .perPage(12); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListCampaigns( - "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + "5ecbb041-9856-4d44-8d0e-72485a4ae79a" ) .setOngoing(true) - .availableFrom("2023-10-24T12:23:08.000000Z") - .availableTo("2022-09-21T23:55:07.000000Z") - .page(7663) - .perPage(31); + .availableFrom("2022-06-14T07:15:38.000000Z") + .availableTo("2021-05-05T23:03:43.000000Z") + .page(7806) + .perPage(37); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListChecksTest.java b/src/test/java/jp/pokepay/partnerapi/ListChecksTest.java index 5fee4d11..ef7564d8 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListChecksTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListChecksTest.java @@ -41,7 +41,7 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .setOnetime(true) + .setOnetime(false) .setDisabled(true); try { PartnerAPITest.getClient().send(request); @@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .description("rfIL") - .setOnetime(false) - .setDisabled(false); + .description("qQWwE") + .setOnetime(true) + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .issuerShopId("eda02500-664e-4e38-97fb-26bf47759f9c") - .description("7") + .issuerShopId("08b7f8b9-4517-4616-9c84-aa52e68be7c2") + .description("7JkqQ2DDr") .setOnetime(true) - .setDisabled(true); + .setDisabled(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -92,9 +92,9 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .createdTo("2023-04-23T01:28:23.000000Z") - .issuerShopId("dd29802a-5d83-413f-8cfe-74066b7b4bca") - .description("oY") + .createdTo("2021-07-05T05:18:46.000000Z") + .issuerShopId("4a4d71dd-52a6-422c-910c-79e621812018") + .description("fK7SBxeth") .setOnetime(false) .setDisabled(false); try { @@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .createdFrom("2021-11-04T11:35:54.000000Z") - .createdTo("2022-11-08T06:35:09.000000Z") - .issuerShopId("9f6b96c0-dfe2-4138-89f3-a10a20987af0") - .description("1FcaYx8") - .setOnetime(false) - .setDisabled(true); + .createdFrom("2022-03-22T01:22:02.000000Z") + .createdTo("2022-11-20T12:48:14.000000Z") + .issuerShopId("a49f033e-a6f2-4534-a41c-d8422fcd3f0b") + .description("WzD3") + .setOnetime(true) + .setDisabled(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -131,12 +131,12 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .expiresTo("2021-04-29T11:14:49.000000Z") - .createdFrom("2024-09-17T11:10:47.000000Z") - .createdTo("2021-02-14T00:09:23.000000Z") - .issuerShopId("43529fa7-7637-4992-9e4b-7d816ca05cb2") - .description("oQE") - .setOnetime(true) + .startsTo("2024-03-07T03:20:07.000000Z") + .createdFrom("2021-04-28T05:09:39.000000Z") + .createdTo("2020-11-14T02:15:23.000000Z") + .issuerShopId("a76bb2d4-1ec1-4ff6-9af4-731a9a58d00c") + .description("Cmtv") + .setOnetime(false) .setDisabled(true); try { PartnerAPITest.getClient().send(request); @@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .expiresFrom("2023-08-18T13:32:31.000000Z") - .expiresTo("2020-07-10T20:09:28.000000Z") - .createdFrom("2024-08-30T22:02:55.000000Z") - .createdTo("2020-10-04T10:56:49.000000Z") - .issuerShopId("04c2c0e4-ee76-4c1c-aefa-23874afee603") - .description("KVxdoit0n") + .startsFrom("2023-12-23T21:34:04.000000Z") + .startsTo("2020-04-17T04:15:04.000000Z") + .createdFrom("2022-05-26T16:46:07.000000Z") + .createdTo("2023-10-26T03:41:58.000000Z") + .issuerShopId("374f7c2b-c042-4ba4-886f-c1ccefd64cc8") + .description("Hyso5u") .setOnetime(true) - .setDisabled(false); + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .organizationCode("RdkY0a6T9IRy95uKnYj6") - .expiresFrom("2021-07-21T06:51:59.000000Z") - .expiresTo("2022-01-15T21:12:06.000000Z") - .createdFrom("2021-09-02T02:43:46.000000Z") - .createdTo("2023-08-06T09:38:39.000000Z") - .issuerShopId("201e2b83-18f1-402d-808e-1dc4c80bd16b") - .description("4zF") + .expiresTo("2026-03-30T22:56:57.000000Z") + .startsFrom("2023-10-04T23:16:10.000000Z") + .startsTo("2024-03-23T04:40:09.000000Z") + .createdFrom("2024-11-11T06:06:43.000000Z") + .createdTo("2022-07-17T12:00:42.000000Z") + .issuerShopId("5454319b-a0a4-4efd-a913-e39bb7d34b82") + .description("9h") .setOnetime(false) - .setDisabled(true); + .setDisabled(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .privateMoneyId("c0917074-e8f6-46c1-83a0-1cdd2f6c1e37") - .organizationCode("t4NS9wkdOXwioDpfXuzoNb") - .expiresFrom("2022-05-14T21:29:54.000000Z") - .expiresTo("2023-01-21T02:32:01.000000Z") - .createdFrom("2023-09-02T13:45:51.000000Z") - .createdTo("2021-06-27T19:24:57.000000Z") - .issuerShopId("72a8e55d-15aa-4b75-8b65-52a1880d0eaf") - .description("j9znX2X") - .setOnetime(true) - .setDisabled(false); + .expiresFrom("2026-01-03T11:20:35.000000Z") + .expiresTo("2023-12-03T00:51:09.000000Z") + .startsFrom("2026-04-22T09:30:02.000000Z") + .startsTo("2020-06-07T09:02:28.000000Z") + .createdFrom("2026-05-01T07:26:34.000000Z") + .createdTo("2020-02-12T04:27:31.000000Z") + .issuerShopId("fbc1786f-93f6-40f7-8cbb-16f0cd0bc731") + .description("qO") + .setOnetime(false) + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -221,16 +221,16 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .perPage(8559) - .privateMoneyId("0e65db05-3dc6-4ba5-baac-be51bada5be3") - .organizationCode("5QEOmdgUm73I2kFc") - .expiresFrom("2020-01-21T19:39:55.000000Z") - .expiresTo("2022-05-24T22:27:26.000000Z") - .createdFrom("2020-09-17T20:59:41.000000Z") - .createdTo("2021-02-09T18:52:01.000000Z") - .issuerShopId("77b23aeb-57f3-4a5a-821d-947f9d2f56b6") - .description("yT3") - .setOnetime(true) + .organizationCode("JfTJv94bnDyHKg7jf") + .expiresFrom("2020-09-09T12:46:47.000000Z") + .expiresTo("2022-12-15T10:35:00.000000Z") + .startsFrom("2025-07-29T21:51:14.000000Z") + .startsTo("2023-08-09T14:27:14.000000Z") + .createdFrom("2025-09-16T00:58:22.000000Z") + .createdTo("2022-01-07T01:32:01.000000Z") + .issuerShopId("156ec6c4-8ff5-4f73-b262-753646a02f97") + .description("ime") + .setOnetime(false) .setDisabled(true); try { PartnerAPITest.getClient().send(request); @@ -246,18 +246,73 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .page(9600) - .perPage(87) - .privateMoneyId("a8b8f410-d352-4951-843e-6a37884d22cf") - .organizationCode("823WFeXCsADfv") - .expiresFrom("2023-05-11T13:54:21.000000Z") - .expiresTo("2020-01-13T01:26:13.000000Z") - .createdFrom("2022-07-02T00:06:35.000000Z") - .createdTo("2020-01-07T02:30:24.000000Z") - .issuerShopId("01f62a9d-2753-4b1a-a5ac-4cf43f2ce74a") - .description("Lu") + .privateMoneyId("48dc1b61-864e-45dc-9b85-4030c870d633") + .organizationCode("5TYhQYVT6897JBI") + .expiresFrom("2024-12-28T21:08:36.000000Z") + .expiresTo("2025-12-27T13:29:28.000000Z") + .startsFrom("2022-06-06T20:44:53.000000Z") + .startsTo("2024-03-06T12:19:45.000000Z") + .createdFrom("2023-06-06T02:55:25.000000Z") + .createdTo("2023-06-02T01:30:27.000000Z") + .issuerShopId("0f1c8af6-b102-45cf-9ca2-f769a9e9c0c8") + .description("C3R") .setOnetime(false) - .setDisabled(false); + .setDisabled(true); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test13() throws ConnectionError, ProcessingError { + Request request = new ListChecks() + .perPage(3449) + .privateMoneyId("c7dd554d-be73-4a98-87d9-1694c1af4784") + .organizationCode("RQVbbDGQ3KFvfr7wcTIqf") + .expiresFrom("2020-08-22T14:33:28.000000Z") + .expiresTo("2024-10-29T07:21:53.000000Z") + .startsFrom("2023-05-29T18:34:22.000000Z") + .startsTo("2021-03-16T05:09:41.000000Z") + .createdFrom("2026-05-11T03:39:02.000000Z") + .createdTo("2020-06-29T02:12:57.000000Z") + .issuerShopId("980753ed-b44d-44b7-8cfc-5278bbf29019") + .description("af") + .setOnetime(true) + .setDisabled(true); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test14() throws ConnectionError, ProcessingError { + Request request = new ListChecks() + .page(9460) + .perPage(582) + .privateMoneyId("d34e6d69-d15a-4d7c-bb34-cee83fea4ab1") + .organizationCode("kUtLESZUqCMHUv6WI9WlLqAjFFVtovI") + .expiresFrom("2025-03-03T01:20:01.000000Z") + .expiresTo("2026-02-27T19:35:05.000000Z") + .startsFrom("2023-05-26T20:00:38.000000Z") + .startsTo("2024-12-18T22:07:48.000000Z") + .createdFrom("2023-03-20T09:26:49.000000Z") + .createdTo("2023-09-23T02:35:57.000000Z") + .issuerShopId("d790345a-2cca-4b36-b86d-7eda86121f20") + .description("N4p4uCNZa") + .setOnetime(true) + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java b/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java index 79cc238c..9afc635e 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java @@ -12,7 +12,7 @@ public class ListCouponsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "9860a62c-5c54-47cb-9cd0-5a8e48803d2e" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "9860a62c-5c54-47cb-9cd0-5a8e48803d2e" ) - .perPage(5571); + .perPage(7099); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "9860a62c-5c54-47cb-9cd0-5a8e48803d2e" ) - .page(8650) - .perPage(7773); + .page(3834) + .perPage(4058); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "9860a62c-5c54-47cb-9cd0-5a8e48803d2e" ) - .availableTo("2023-09-25T06:22:38.000000Z") - .page(3351) - .perPage(1673); + .availableTo("2020-05-13T15:41:34.000000Z") + .page(7824) + .perPage(4397); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "9860a62c-5c54-47cb-9cd0-5a8e48803d2e" ) - .availableFrom("2024-09-30T09:57:39.000000Z") - .availableTo("2020-03-18T01:00:22.000000Z") - .page(5984) - .perPage(4476); + .availableFrom("2020-01-19T16:14:36.000000Z") + .availableTo("2023-05-04T07:49:49.000000Z") + .page(1142) + .perPage(4697); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "9860a62c-5c54-47cb-9cd0-5a8e48803d2e" ) - .availableShopName("4aTjbZ") - .availableFrom("2021-10-04T14:19:21.000000Z") - .availableTo("2022-03-05T22:16:44.000000Z") - .page(6976) - .perPage(9826); + .availableShopName("O") + .availableFrom("2020-07-06T12:00:32.000000Z") + .availableTo("2025-02-15T08:41:34.000000Z") + .page(5449) + .perPage(7159); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "9860a62c-5c54-47cb-9cd0-5a8e48803d2e" ) - .issuedShopName("W") - .availableShopName("Rs") - .availableFrom("2022-03-08T06:29:25.000000Z") - .availableTo("2024-04-24T08:35:06.000000Z") - .page(5499) - .perPage(9438); + .issuedShopName("kZ0hBxH") + .availableShopName("L8DiEhh2Vn") + .availableFrom("2022-05-08T14:39:35.000000Z") + .availableTo("2023-01-18T07:02:07.000000Z") + .page(3275) + .perPage(6727); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "9860a62c-5c54-47cb-9cd0-5a8e48803d2e" ) - .couponName("Z6") - .issuedShopName("rz0tQnP1") - .availableShopName("Co4x4A") - .availableFrom("2023-12-20T06:59:36.000000Z") - .availableTo("2021-05-25T05:31:22.000000Z") - .page(9890) - .perPage(4355); + .couponName("rvfo") + .issuedShopName("r") + .availableShopName("wT") + .availableFrom("2022-11-10T00:38:29.000000Z") + .availableTo("2021-05-17T10:33:28.000000Z") + .page(5332) + .perPage(151); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "9860a62c-5c54-47cb-9cd0-5a8e48803d2e" ) - .couponId("zQhY1Jl") - .couponName("Hqb") - .issuedShopName("ULcyq") - .availableShopName("Fghq") - .availableFrom("2023-04-08T23:17:21.000000Z") - .availableTo("2021-11-25T09:22:19.000000Z") - .page(6986) - .perPage(8190); + .couponId("CU7xfi8Z8") + .couponName("k0") + .issuedShopName("TZqtjlnCM") + .availableShopName("Hx8TKGI") + .availableFrom("2020-09-20T02:07:52.000000Z") + .availableTo("2020-01-18T14:57:34.000000Z") + .page(7085) + .perPage(4120); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListCustomerTransactionsTest.java b/src/test/java/jp/pokepay/partnerapi/ListCustomerTransactionsTest.java index 771c4a44..e2b46435 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListCustomerTransactionsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListCustomerTransactionsTest.java @@ -12,7 +12,7 @@ public class ListCustomerTransactionsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "15d26336-c01b-44c4-9cc9-37f7d511962c" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "15d26336-c01b-44c4-9cc9-37f7d511962c" ) - .perPage(6702); + .perPage(4153); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "15d26336-c01b-44c4-9cc9-37f7d511962c" ) - .page(3721) - .perPage(1673); + .page(7452) + .perPage(7097); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "15d26336-c01b-44c4-9cc9-37f7d511962c" ) - .to("2021-06-26T10:33:28.000000Z") - .page(1122) - .perPage(2641); + .to("2024-09-17T09:38:34.000000Z") + .page(8683) + .perPage(4148); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "15d26336-c01b-44c4-9cc9-37f7d511962c" ) - .from("2023-08-31T11:35:24.000000Z") - .to("2021-11-27T00:17:30.000000Z") - .page(6128) - .perPage(9468); + .from("2024-09-04T11:44:42.000000Z") + .to("2023-11-15T03:19:44.000000Z") + .page(7342) + .perPage(5894); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "15d26336-c01b-44c4-9cc9-37f7d511962c" ) .setModified(true) - .from("2021-10-15T20:46:20.000000Z") - .to("2023-11-14T17:02:46.000000Z") - .page(8406) - .perPage(1440); + .from("2024-07-16T19:36:18.000000Z") + .to("2022-10-22T02:51:00.000000Z") + .page(1207) + .perPage(1983); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "15d26336-c01b-44c4-9cc9-37f7d511962c" ) - .type("transfer") + .type("payment") .setModified(true) - .from("2022-03-30T21:58:48.000000Z") - .to("2024-01-29T17:38:21.000000Z") - .page(786) - .perPage(2848); + .from("2023-07-05T23:16:00.000000Z") + .to("2021-03-10T06:17:16.000000Z") + .page(9852) + .perPage(1346); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "15d26336-c01b-44c4-9cc9-37f7d511962c" ) - .receiverCustomerId("476067c0-5180-472f-9748-fbe19e693314") - .type("cashback") + .receiverCustomerId("d4f5b2ba-4f9f-4e2c-a022-95a6a3d64858") + .type("transfer") .setModified(true) - .from("2020-07-04T11:49:13.000000Z") - .to("2020-10-22T23:48:51.000000Z") - .page(4783) - .perPage(8752); + .from("2021-07-23T06:30:34.000000Z") + .to("2023-03-02T07:45:47.000000Z") + .page(3547) + .perPage(8512); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "15d26336-c01b-44c4-9cc9-37f7d511962c" ) - .senderCustomerId("d2869b53-2e22-4d40-bc23-f9d272cd44e5") - .receiverCustomerId("03a89a91-73ea-4831-99d4-32f7b9069362") - .type("exchange") + .senderCustomerId("41a8fac9-d78c-4dc4-b892-7346c89cd584") + .receiverCustomerId("23395758-faf1-4e70-a305-f9f42eb1405a") + .type("payment") .setModified(false) - .from("2020-01-13T05:00:34.000000Z") - .to("2020-03-01T04:56:22.000000Z") - .page(5098) - .perPage(7841); + .from("2026-05-17T23:28:21.000000Z") + .to("2020-01-11T05:53:51.000000Z") + .page(8921) + .perPage(2195); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListOrganizationsTest.java b/src/test/java/jp/pokepay/partnerapi/ListOrganizationsTest.java index 2b400f24..3d4e0d03 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListOrganizationsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListOrganizationsTest.java @@ -12,7 +12,7 @@ public class ListOrganizationsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListOrganizations( - "984c0512-4bc5-4658-abc3-5594816b6f55" + "33663cfd-21cd-4184-a947-c668bd55871b" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListOrganizations( - "984c0512-4bc5-4658-abc3-5594816b6f55" + "33663cfd-21cd-4184-a947-c668bd55871b" ) - .code("yPfCabjEt"); + .code("7"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListOrganizations( - "984c0512-4bc5-4658-abc3-5594816b6f55" + "33663cfd-21cd-4184-a947-c668bd55871b" ) - .name("If7wKoPmNQ") - .code("U6zl3h0Z"); + .name("oFiHLt") + .code("Yqy7R5Sel4"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListOrganizations( - "984c0512-4bc5-4658-abc3-5594816b6f55" + "33663cfd-21cd-4184-a947-c668bd55871b" ) - .perPage(2813) - .name("oCe5IIfE") - .code("aRl"); + .perPage(5099) + .name("D6") + .code("B2gz0"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListOrganizations( - "984c0512-4bc5-4658-abc3-5594816b6f55" + "33663cfd-21cd-4184-a947-c668bd55871b" ) - .page(9969) - .perPage(3099) - .name("hTTQp") - .code("QoSR"); + .page(5191) + .perPage(1482) + .name("NSbIr") + .code("OBo1I3rdk"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListShopsTest.java b/src/test/java/jp/pokepay/partnerapi/ListShopsTest.java index 6e8dde4f..e72e5d49 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListShopsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListShopsTest.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListShops() - .perPage(5064); + .perPage(673); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListShops() - .page(6150) - .perPage(1031); + .page(4187) + .perPage(740); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListShops() - .withDisabled(true) - .page(516) - .perPage(3314); + .withDisabled(false) + .page(7666) + .perPage(791); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListShops() - .externalId("w") - .withDisabled(false) - .page(986) - .perPage(1660); + .externalId("cqZB2nkhw5") + .withDisabled(true) + .page(758) + .perPage(879); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListShops() - .email("75stQD6SAh@41fZ.com") - .externalId("i84vybd1Jsf0jR3rzbwtxyn2FAh1zUed") - .withDisabled(false) - .page(4934) - .perPage(8487); + .email("nh29qWQZz1@4xB8.com") + .externalId("V7FcdDeB61vcOZ1uN") + .withDisabled(true) + .page(9475) + .perPage(67); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListShops() - .tel("04934109886") - .email("vHVgjPvTnT@RbAG.com") - .externalId("JFBzSB") - .withDisabled(false) - .page(5349) - .perPage(5597); + .tel("0166923740") + .email("wZo0RT90mT@v9im.com") + .externalId("iY62Bc0n5yxxXvK") + .withDisabled(true) + .page(3552) + .perPage(325); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListShops() - .address("N9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH") - .tel("064-399-326") - .email("N0T80aLvrK@oRyT.com") - .externalId("gPVT4AzeoZEOYuu1RyqlWwyCN") + .address("0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXB") + .tel("098308682") + .email("gPF7PH9jsP@o3qR.com") + .externalId("XC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtH") .withDisabled(true) - .page(9062) - .perPage(6597); + .page(7209) + .perPage(370); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListShops() - .postalCode("483-3967") - .address("00F2Vhn3XqmCSMDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0Yor") - .tel("0322631") - .email("4pFpuxUcIr@b43g.com") - .externalId("0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx") + .postalCode("0775082") + .address("4XHkBbxR0RnLtirGJS2N5S6EEO5Bp0TaBrmndiCNxXXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2") + .tel("0848-58396743") + .email("m30yK3y8WI@tCe9.com") + .externalId("VYg") .withDisabled(false) - .page(1942) - .perPage(1073); + .page(1812) + .perPage(809); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new ListShops() - .name("qLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhC") - .postalCode("4322619") - .address("FeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MI") - .tel("0518-4313") - .email("TlXa99m3El@a8zc.com") - .externalId("R94JgHtiXrfi45gdORj3Jla3Pfb8OgNhh") - .withDisabled(true) - .page(9357) - .perPage(3629); + .name("dEalG76qE4T1vOrKA4IwgS5AgijWRyxneekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJAVzV6vyI6ywfpyKil") + .postalCode("8507800") + .address("57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nm") + .tel("069940-4123") + .email("HJZ8WnDHEV@fpIB.com") + .externalId("tEOMP2U7IkYygmkkDxd3Mzp") + .withDisabled(false) + .page(1527) + .perPage(927); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new ListShops() - .privateMoneyId("4294a866-e4fb-4ddb-8251-6a6a3228145f") - .name("sClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqw") - .postalCode("5487162") - .address("qZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcG") - .tel("0080-547599") - .email("gPlxnzpf9X@cHDi.com") - .externalId("w8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNj") - .withDisabled(true) - .page(7375) - .perPage(4400); + .privateMoneyId("1215befc-0dbe-4650-ba3e-a9f3d0e94ad0") + .name("2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM") + .postalCode("4902214") + .address("I3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iBoGU1OxUmIl7jlWxrfEKM") + .tel("086-3086259") + .email("yfzniw8Z7T@rjWh.com") + .externalId("0BQdrr7bOC0AUfJnZnSo") + .withDisabled(false) + .page(1638) + .perPage(324); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new ListShops() - .organizationCode("3O3UbVmd-") - .privateMoneyId("6c582c7c-e112-45b2-8024-7261075be237") - .name("llUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACIt") - .postalCode("946-1005") - .address("NfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa") - .tel("0939137673") - .email("qnjKtXS5ct@b0sU.com") - .externalId("amQiJ") - .withDisabled(true) - .page(2018) - .perPage(9438); + .organizationCode("Dl-wn3oIo5-yN-XE8-k7-CJp6-v-0-") + .privateMoneyId("a6994187-561b-49ad-a53b-f35bed288508") + .name("TfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZX") + .postalCode("260-0191") + .address("diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8Rxp") + .tel("045-195835") + .email("boSBHerEtG@hFgJ.com") + .externalId("dxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EP") + .withDisabled(false) + .page(7514) + .perPage(764); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListTransactionsTest.java b/src/test/java/jp/pokepay/partnerapi/ListTransactionsTest.java index 98fde2c1..2cdaf3f8 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListTransactionsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListTransactionsTest.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .description("WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYX"); + .description("02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuw"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .types(new String[]{"exchange_inflow"}) - .description("acoAUmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQPc"); + .types(new String[]{"expire","exchange_inflow","cashback","topup"}) + .description("SOf90ILh1FnEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34z4jE8W"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .setModified(true) - .types(new String[]{"topup","exchange_outflow"}) - .description("CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd"); + .setModified(false) + .types(new String[]{"payment"}) + .description("YWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4UwD"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .privateMoneyId("8241fcb6-d353-4140-8de7-58b4bf444d8d") + .privateMoneyId("b7230678-0788-4874-a07d-df2a2d02f271") .setModified(true) - .types(new String[]{"expire","topup","exchange_outflow","payment"}) - .description("LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mh"); + .types(new String[]{"exchange_outflow","cashback","topup","payment","expire"}) + .description("dytk1inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmu"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .organizationCode("s8cQf--ht--D") - .privateMoneyId("c5d1da6b-ab22-4598-9835-a1de9db3ebc7") - .setModified(true) - .types(new String[]{"cashback","exchange_outflow","exchange_inflow","payment","topup"}) - .description("sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixLpvflY8MFYZJvlfPZ9XRs2DjUex8"); + .organizationCode("-N-v--9V-R-0-") + .privateMoneyId("6b02ef14-d74d-4746-a728-fb34def40331") + .setModified(false) + .types(new String[]{"cashback"}) + .description("nemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6n"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .transactionId("Zcru468") - .organizationCode("436qXf") - .privateMoneyId("b827d131-f8e8-44ac-977f-3ab363c948a2") + .transactionId("h3hboA1Va") + .organizationCode("lh-4-5sWcoR469-xrU--0eU1") + .privateMoneyId("7fd3464e-b7a1-408d-9e74-826b05b316d9") .setModified(true) - .types(new String[]{"exchange_inflow","exchange_outflow","payment","cashback"}) - .description("pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXD"); + .types(new String[]{"cashback","exchange_inflow","payment","exchange_outflow","topup"}) + .description("XUy"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .terminalId("14db71eb-d419-4c4a-87f1-7879db1dae31") - .transactionId("yPaGHV") - .organizationCode("W-9jFTlu-XkApk--324-FW3m--8-") - .privateMoneyId("f8dee0a6-4c4f-4836-9cd8-37543703a79b") - .setModified(true) - .types(new String[]{"expire","cashback","topup"}) - .description("PEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLI"); + .terminalId("8f79da4a-5f82-4f7d-b1d6-729e5fd60530") + .transactionId("5CH") + .organizationCode("O82C--b9W-l-9Sp-G-") + .privateMoneyId("5a2a6f7e-5cd0-4432-95ad-33278b0942db") + .setModified(false) + .types(new String[]{"topup","payment","cashback","expire","exchange_outflow"}) + .description("kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTqnNfSRiXLw6IXx"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .customerName("nC6rDyYuuG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76") - .terminalId("942ad200-1544-453b-9154-5a91246500cb") - .transactionId("eEBb") - .organizationCode("-8bdGRbR0u7") - .privateMoneyId("5ca47afe-dc11-4352-9ab0-f05149728ab2") - .setModified(false) - .types(new String[]{"topup","expire","exchange_outflow"}) - .description("VGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbPQzPRirLmp7HiQajpl09d6QIiaL5c40GPi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13"); + .customerName("of4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3jya01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16") + .terminalId("f4a270e7-4d70-4761-90b5-601e471e8eb4") + .transactionId("at") + .organizationCode("gp-ko3w-u2Vn3Zzn-E") + .privateMoneyId("135cd495-7cfa-4fa3-80a5-16f62ba5af7d") + .setModified(true) + .types(new String[]{"expire","exchange_outflow","payment"}) + .description("210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQSs9cvMVMzYpfEHHq4"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .customerId("e1fb97c2-7d0a-494a-8c2f-f213e79cfa71") - .customerName("URa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzst") - .terminalId("7f0f5d7a-0831-43a2-81b9-2e581d4966fb") - .transactionId("Ut") - .organizationCode("A--6-770") - .privateMoneyId("5e072da8-d0bf-4c29-9210-5aecbed23e28") + .customerId("bd1f08c1-7b56-4e90-8943-9d1e8892262a") + .customerName("PhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2iLhkB08mWoSEw4Yfnz5e3bjXK") + .terminalId("5c35e0ec-e63c-4264-81a9-29ce79267e47") + .transactionId("Ze49") + .organizationCode("0-94e-F5t-n-9LU0M54sZ-N") + .privateMoneyId("1c42470f-821e-4878-82bc-0a02c482854e") .setModified(false) - .types(new String[]{"expire","exchange_inflow"}) - .description("VbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8ZrqfNGAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08a"); + .types(new String[]{"expire","exchange_inflow","cashback","exchange_outflow","topup"}) + .description("DEzen9VEh9JKwUlzsx"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .shopId("1c9c6657-819e-41c1-92e7-8ad98ba2914b") - .customerId("912678e7-2bcd-40bc-92e7-b1be4e34f2b4") - .customerName("eijui0x4AzukqXii06wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfb") - .terminalId("74929615-c3e2-4087-aa92-4f0ab92255ee") - .transactionId("xn1Ii4QyBa") - .organizationCode("wVPk") - .privateMoneyId("b01bcb4d-a00c-4b09-a63a-3867c4c57002") + .shopId("ca0f8c62-2203-40ff-be39-d8f4b28afd23") + .customerId("18741591-e6d1-4fcb-89d3-e52a119eb684") + .customerName("dMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04aLs4hmy4C28WnC") + .terminalId("37f29b9a-46d2-447c-a627-628c1213eafa") + .transactionId("leo") + .organizationCode("PS-T10k6-s-8OKp") + .privateMoneyId("0d1a60b9-77d9-4f33-a600-8e99e11809b9") .setModified(true) - .types(new String[]{"payment","cashback"}) - .description("kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR"); + .types(new String[]{"cashback"}) + .description("gk8QSZwJ1udEIb7zDJ6KZTEk0mDRGqd8jGihF"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .perPage(6969) - .shopId("1f680389-a398-4538-9c05-2f46d622c0fb") - .customerId("3da66e37-cc29-4708-8fd5-2ae258c2d2e4") - .customerName("6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62H") - .terminalId("3a8fca69-a00e-4b2f-8c1e-754bb23030ba") - .transactionId("75FUjJKU") - .organizationCode("3-S87-jLYQf-X-6--oZ0G-N") - .privateMoneyId("aa25ef95-c6da-4090-93b2-5afdc4ed01ca") + .perPage(9779) + .shopId("67af2329-f192-4c5c-baef-3aa636eecb80") + .customerId("93d6acb2-a2c7-45ff-99a3-b6ce67b30b8e") + .customerName("QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQl4cK6HLes") + .terminalId("daaeae93-14ef-4aa3-8e37-569fe6361d41") + .transactionId("sxjaX4bk") + .organizationCode("K") + .privateMoneyId("013b7a5a-cc0a-48f1-b4b4-e87625084840") .setModified(true) - .types(new String[]{"expire"}) - .description("bXHSU9E0Qlg3gebvAwjzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisL"); + .types(new String[]{"cashback","exchange_outflow","exchange_inflow","topup","expire"}) + .description("OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJUFWp4SJDd9Vw0"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .page(8791) - .perPage(4125) - .shopId("04e72a3f-308d-4ac1-8b24-7a85bf70fc21") - .customerId("642fcb38-c880-4cfb-8437-ec522c3da0be") - .customerName("vLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5qYfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua2WPHw1UTjf1quigD2l2JnK33Y2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0") - .terminalId("7d16cee5-bd55-4afa-9534-6ef8ece8abd8") - .transactionId("5OLhVoB1l") - .organizationCode("u5Jec2Sq9") - .privateMoneyId("e5765496-b9f4-4a3c-b6ae-7ccf355db2df") - .setModified(false) - .types(new String[]{"expire","topup"}) - .description("eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuK"); + .page(9960) + .perPage(4713) + .shopId("c700689c-0c76-419c-95f7-f9c819a91c59") + .customerId("d295b734-1147-4300-902a-a44dc193c811") + .customerName("qa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7e1D") + .terminalId("281dfb2e-19ca-4bbf-8e06-7852999348ed") + .transactionId("CvXV5f7N") + .organizationCode("-4uLeiK9ig02e") + .privateMoneyId("11288eab-35db-439a-8132-85e8918b29e8") + .setModified(true) + .types(new String[]{"expire","exchange_outflow","exchange_inflow","topup","payment"}) + .description("2PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -272,19 +272,19 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .to("2021-05-24T07:04:14.000000Z") - .page(4199) - .perPage(6607) - .shopId("1074fcae-d78a-4ed6-9457-7615bf98ffc6") - .customerId("7ef1721c-45d4-4c04-bc7b-a9eb4f8b5568") - .customerName("YZxFDhr8QjYlB42oGAhylpmFOwCdKPABZdrgh98RslDBuoJSIFUrT") - .terminalId("f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5") - .transactionId("KmONYXCce") - .organizationCode("--KXh6Qjt-yU7-0-xA7y-A--gO0-ve--") - .privateMoneyId("a5f3cfda-76d9-4522-9ece-6904f7c31a9a") + .to("2020-10-11T17:27:17.000000Z") + .page(1501) + .perPage(2687) + .shopId("d3ea30f9-4b89-40a9-a350-b384dc7d31d7") + .customerId("6386982f-291a-4732-9dd7-e7ae330b79a6") + .customerName("YY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzY") + .terminalId("b32d57c6-c653-4ac7-99b9-adae48bc8c62") + .transactionId("V5jbNBEz") + .organizationCode("-9RdH-4--76tx-79M") + .privateMoneyId("ca14972a-58da-4c29-a8e4-31ab73a6be32") .setModified(false) - .types(new String[]{"exchange_outflow","topup","payment","expire","exchange_inflow"}) - .description("OzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRj"); + .types(new String[]{"expire","exchange_inflow"}) + .description("Atf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71b"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -299,20 +299,20 @@ void test13() throws ConnectionError, ProcessingError { @Test void test14() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .from("2021-11-23T05:19:03.000000Z") - .to("2023-02-12T18:24:57.000000Z") - .page(4869) - .perPage(8902) - .shopId("4f506bbd-ab39-4fe4-bc2f-ffc0f28819c2") - .customerId("33433dfd-82b8-4a40-a643-bd9aee2d40ba") - .customerName("GfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07") - .terminalId("a2943d3f-0f45-46d8-a0c8-10ad8cc48724") - .transactionId("C5hQ61p") - .organizationCode("-aZi-x-RYy-x7gh3-8weWi35i8kx92") - .privateMoneyId("b2e608fc-9390-4850-9002-124a1438abbf") + .from("2023-11-05T07:56:15.000000Z") + .to("2024-04-02T16:21:06.000000Z") + .page(7352) + .perPage(7005) + .shopId("0ca96c6a-b376-4102-a09d-7c1b61c6a137") + .customerId("c864a2c5-bb44-477e-9f6b-fb77bce293bb") + .customerName("N76HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIcNrFvlQBIX1JBgnrD1yLFlL5kbgs6xUgxf5sOofYseOtl3ilNOP") + .terminalId("405f819d-c770-4005-be1e-9b797428c191") + .transactionId("VjtUkLTSkO") + .organizationCode("G1KMSmKT2x7") + .privateMoneyId("8481e464-8ecb-439a-b2f9-a6101006bce2") .setModified(false) - .types(new String[]{"exchange_inflow","topup","expire","cashback","payment"}) - .description("YdohDRxcepsSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalO"); + .types(new String[]{"cashback","expire"}) + .description("kZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8Ox"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListTransactionsV2Test.java b/src/test/java/jp/pokepay/partnerapi/ListTransactionsV2Test.java index b9c7ace7..254f7647 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListTransactionsV2Test.java +++ b/src/test/java/jp/pokepay/partnerapi/ListTransactionsV2Test.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .perPage(794); + .perPage(478); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .prevPageCursorId("3b39a53e-1ceb-475a-be4c-1b23542a7d10") - .perPage(636); + .prevPageCursorId("8586615f-9ef1-4559-a9c4-ed515fb045d0") + .perPage(20); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .nextPageCursorId("92ca1f0d-d064-4922-b9b8-af969e436ea1") - .prevPageCursorId("04044642-50dc-4f9d-b957-8e57b8dc3771") - .perPage(510); + .nextPageCursorId("c42e0e0a-37fe-47c6-b632-27f876280ac9") + .prevPageCursorId("f086f0d8-a8c0-4f6d-89b4-69d07e22bd27") + .perPage(493); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .to("2021-07-05T19:46:25.000000Z") - .nextPageCursorId("d57c82ce-d572-4f58-96a9-0e05ca0f2b0e") - .prevPageCursorId("6ce554d8-62a9-47bc-898b-f2318d3486ad") - .perPage(248); + .to("2022-11-19T03:19:44.000000Z") + .nextPageCursorId("a6f903f6-97a3-4c79-a995-6bff066954ef") + .prevPageCursorId("3790953f-d564-4869-9c03-dd7096d79cff") + .perPage(349); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .from("2024-06-30T00:22:03.000000Z") - .to("2022-09-03T17:53:44.000000Z") - .nextPageCursorId("62e27792-a1d4-46f1-9c87-7a7715750571") - .prevPageCursorId("1e012cde-c398-43fa-9686-d03ceb1a2f3f") - .perPage(549); + .from("2022-08-25T12:54:17.000000Z") + .to("2024-10-02T19:28:00.000000Z") + .nextPageCursorId("de574ccf-ca93-4ee8-bd0e-7a04948b4fc2") + .prevPageCursorId("79da874c-18f6-47ae-8a02-8900dbba6c64") + .perPage(946); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .types(new String[]{"exchange_inflow"}) - .from("2021-08-12T01:32:55.000000Z") - .to("2023-12-16T09:15:41.000000Z") - .nextPageCursorId("8ff5d0a8-060f-4a8a-97f7-96f0571a1df3") - .prevPageCursorId("3143db33-2080-43e9-81d2-82a3029c7e44") - .perPage(75); + .types(new String[]{"topup","cashback"}) + .from("2022-12-18T23:12:09.000000Z") + .to("2021-11-24T19:45:30.000000Z") + .nextPageCursorId("4a7f4db6-2911-4142-b1b4-705af4301f43") + .prevPageCursorId("e4bb99ed-b731-4bab-b5b3-f1f0a10018c1") + .perPage(120); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .setModified(true) - .types(new String[]{"cashback","expire","payment"}) - .from("2021-10-09T01:30:02.000000Z") - .to("2021-02-04T11:44:46.000000Z") - .nextPageCursorId("83f576fc-6cab-4995-9d8b-f86b58115da9") - .prevPageCursorId("29dbd74f-2d84-4e92-9a7c-f19c8b2e674f") - .perPage(687); + .setModified(false) + .types(new String[]{"cashback","topup","expire"}) + .from("2026-06-07T20:44:08.000000Z") + .to("2022-05-24T12:59:42.000000Z") + .nextPageCursorId("3483447b-72a6-470b-9aa7-0bf07616c828") + .prevPageCursorId("ea14e468-2a70-42cc-85bc-a17da9a21d03") + .perPage(105); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .transactionId("E") - .setModified(false) - .types(new String[]{"exchange_inflow","exchange_outflow","topup","cashback"}) - .from("2022-02-10T19:32:15.000000Z") - .to("2020-12-30T04:05:46.000000Z") - .nextPageCursorId("cd506e1c-213d-4f26-b1b9-91a9746df8d7") - .prevPageCursorId("6d3afbf4-ed0e-40a9-a773-0173a136a69e") - .perPage(435); + .transactionId("7NIoqml") + .setModified(true) + .types(new String[]{"exchange_outflow","cashback","topup","expire","exchange_inflow"}) + .from("2023-06-21T08:02:21.000000Z") + .to("2023-10-01T12:29:03.000000Z") + .nextPageCursorId("98d07f59-3540-4802-a41f-8726c5bba549") + .prevPageCursorId("75d8991d-9b73-4352-bc74-09c6e5da3a46") + .perPage(300); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .description("YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90") - .transactionId("Lh1FnEv5pC") + .description("xx8GHcZXN3Xa70o7nFXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9L") + .transactionId("m5F7Xm") .setModified(true) - .types(new String[]{"payment","exchange_inflow"}) - .from("2024-10-03T16:15:54.000000Z") - .to("2020-04-20T06:48:44.000000Z") - .nextPageCursorId("bec140d3-d76b-4574-8b07-92f127977031") - .prevPageCursorId("4f1c3e05-bf3b-4118-a494-ef02c8061d81") - .perPage(740); + .types(new String[]{"topup","exchange_inflow","payment","expire"}) + .from("2023-05-27T23:25:04.000000Z") + .to("2022-06-19T07:04:38.000000Z") + .nextPageCursorId("a54e26ed-5b49-4472-8d61-98a417daf2c7") + .prevPageCursorId("9a2fda56-6a8f-46e8-bdf3-09fc57d60c4c") + .perPage(331); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .customerName("xb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34z4jE8W9hhkp") - .description("YWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4UwD") - .transactionId("tqXzHNdyt") + .customerName("iqbQ3MQR9CltXlG6ahNcft") + .description("2PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsa") + .transactionId("h9") .setModified(false) - .types(new String[]{"cashback","expire"}) - .from("2020-04-21T23:46:36.000000Z") - .to("2022-07-05T07:08:16.000000Z") - .nextPageCursorId("b9cf372b-6f2c-44d1-aa17-63f240f1247b") - .prevPageCursorId("8a07bad7-1169-47eb-8074-e24dc93cf284") - .perPage(414); + .types(new String[]{"topup","payment","exchange_outflow"}) + .from("2023-02-23T05:24:07.000000Z") + .to("2025-02-23T03:57:59.000000Z") + .nextPageCursorId("8b4b6d1c-6650-4f19-8819-b2da2dddb3d6") + .prevPageCursorId("5d0b5f80-0921-43fc-a466-b4e5fb3110c8") + .perPage(32); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .customerId("72885693-789f-428b-8bdf-87cba7fe9730") - .customerName("HLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA") - .description("fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFe") - .transactionId("EH") + .customerId("8aac598d-811a-4362-91b6-4bc435b3d0bd") + .customerName("60qrRKjcydAgQf1kj") + .description("gylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUG") + .transactionId("qT3") .setModified(true) - .types(new String[]{"exchange_outflow"}) - .from("2023-05-30T21:33:05.000000Z") - .to("2021-02-27T11:58:29.000000Z") - .nextPageCursorId("038acead-e850-4994-a96f-3b2ba1881dcd") - .prevPageCursorId("01fe0421-f25c-497d-9180-4fda1ed94b77") - .perPage(367); + .types(new String[]{"exchange_inflow","topup"}) + .from("2024-10-06T04:01:32.000000Z") + .to("2025-11-03T11:30:27.000000Z") + .nextPageCursorId("61d47201-1943-4e29-a2de-f32920af4061") + .prevPageCursorId("ac98e422-b4e2-4678-b21a-62670c2d43d4") + .perPage(16); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .terminalId("b820fda7-038a-4541-a7c5-c0a7ae5ffc12") - .customerId("1a888925-5c1c-4bed-adf5-8f3d0977300d") - .customerName("UL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6nh3hbo") - .description("1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXU") - .transactionId("J1V0r5CHRN") + .terminalId("5c665e7c-a458-4a53-b8da-86fb3043ace2") + .customerId("0509f009-058f-4ee7-87fb-733ee8d0aec0") + .customerName("1Ud9jBS9CQqv6T7eIQXHJd8") + .description("npNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpY") + .transactionId("z5") .setModified(true) - .types(new String[]{"cashback","exchange_inflow","topup","exchange_outflow"}) - .from("2024-01-31T03:46:51.000000Z") - .to("2021-07-13T22:29:32.000000Z") - .nextPageCursorId("9a618de4-8fe3-425d-b398-6cabc93b72b3") - .prevPageCursorId("5f1ed84f-6ea8-4bc0-93a3-ea076171cffc") - .perPage(495); + .types(new String[]{"exchange_outflow","cashback","exchange_inflow"}) + .from("2025-02-09T23:31:57.000000Z") + .to("2022-12-27T14:14:05.000000Z") + .nextPageCursorId("333e94a0-1752-469c-afa8-03fcf085ded9") + .prevPageCursorId("506f3237-5fe2-41d1-80c3-4557b44cbd39") + .perPage(522); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -272,19 +272,19 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .shopId("73d29439-f434-47f7-b0d3-6ec38841ac99") - .terminalId("8b14ad42-0194-4110-8789-9aeec68a43e2") - .customerId("367bfb18-c63e-4d32-9522-a037e525c9cb") - .customerName("I1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTqnNf") - .description("RiXLw6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U") - .transactionId("XBig") - .setModified(false) - .types(new String[]{"exchange_outflow","expire","exchange_inflow"}) - .from("2020-08-12T04:56:25.000000Z") - .to("2020-11-24T22:08:32.000000Z") - .nextPageCursorId("c519f0e1-0b30-4f31-a34c-07b77d20b315") - .prevPageCursorId("24224765-5d64-4305-a86d-2df292aacf56") - .perPage(906); + .shopId("4a77482c-0760-4c00-b3d0-2bd9455539d7") + .terminalId("eee59a41-4b4b-4cc9-ab9a-c904c9e74919") + .customerId("496a2361-e585-4f91-8d1f-23af31eb7f3b") + .customerName("AnlgG8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4J") + .description("wKvfQBXbwG5FfObbKUS2wO8JUS6TcM") + .transactionId("wfudd") + .setModified(true) + .types(new String[]{"cashback","expire","exchange_outflow","payment"}) + .from("2021-03-10T01:13:50.000000Z") + .to("2025-06-12T07:13:38.000000Z") + .nextPageCursorId("1230df7d-e3b2-483f-bf09-335d9a50825d") + .prevPageCursorId("0446b494-cc11-4ab6-9cfb-bc083196d46b") + .perPage(24); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -299,20 +299,20 @@ void test13() throws ConnectionError, ProcessingError { @Test void test14() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .organizationCode("aK--z--9-9-z-0m2O-grW-bv") - .shopId("0caa601e-8eb4-4a21-9861-c9a26f97ac7e") - .terminalId("72170974-9f28-443a-ae74-42d287e37bcf") - .customerId("970d08da-e963-4d12-8283-ebe2043f9ae5") - .customerName("ZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx") - .description("2McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BT") - .transactionId("Nca") - .setModified(false) - .types(new String[]{"cashback","topup"}) - .from("2023-12-25T20:01:08.000000Z") - .to("2020-09-02T09:26:19.000000Z") - .nextPageCursorId("8cb39107-9a71-4516-8569-9047b21dc5ce") - .prevPageCursorId("fe9e45e5-8953-4e94-84ca-edf54581f0e5") - .perPage(787); + .organizationCode("5gU-J") + .shopId("5985d8b1-e2ab-4250-bb91-3568a4178e94") + .terminalId("8bfe2333-064f-4cd5-8241-4a73b1a6df1e") + .customerId("e7308ead-ff0c-4c9e-ac86-431553957a3d") + .customerName("aG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OU") + .description("K0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1W") + .transactionId("tfeKSzrq1") + .setModified(true) + .types(new String[]{"exchange_inflow","topup","exchange_outflow","cashback","expire","payment"}) + .from("2021-01-19T07:27:24.000000Z") + .to("2024-09-10T08:37:07.000000Z") + .nextPageCursorId("60f5b9a5-1d55-43dc-8e1f-bc591782f5cf") + .prevPageCursorId("d5c2c0c3-11f7-426c-a935-59c3f05521dd") + .perPage(532); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -327,21 +327,21 @@ void test14() throws ConnectionError, ProcessingError { @Test void test15() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .privateMoneyId("60d57317-f1d7-49a9-834e-3421780c098a") - .organizationCode("35A-1n") - .shopId("eff09dcb-e0ec-463c-a4c1-4ba98e9f29ce") - .terminalId("79267e47-73fa-4353-97da-c3e5d1fd6234") - .customerId("f9368c39-c597-437d-9a2d-93901ba10cf1") - .customerName("KV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04") - .description("Ls4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZm") - .transactionId("6C") + .privateMoneyId("8acaf424-9eb8-477c-bba3-c5403b94ce72") + .organizationCode("re4oiO-b3o-P9PjDFG1dtZ---u2q9-85") + .shopId("88ca95ac-7199-4026-ae6a-9db4d9655858") + .terminalId("89e4aa91-6033-4ff8-a45b-20192e6b4f93") + .customerId("064692d8-a6cb-4c0b-9f78-27d20c98ccb7") + .customerName("Ol5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXU") + .description("pMAE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPA") + .transactionId("iatKRmL7K") .setModified(true) - .types(new String[]{"exchange_outflow","exchange_inflow"}) - .from("2023-11-29T14:24:26.000000Z") - .to("2024-07-12T21:55:27.000000Z") - .nextPageCursorId("0d1a60b9-77d9-4f33-a600-8e99e11809b9") - .prevPageCursorId("11a2eca6-8e64-4b1b-bbea-684d1cbf0e60") - .perPage(805); + .types(new String[]{"payment","cashback"}) + .from("2020-05-25T11:08:43.000000Z") + .to("2022-10-24T19:48:33.000000Z") + .nextPageCursorId("44c1b2d7-a50d-4fa1-b128-abf658c9438d") + .prevPageCursorId("3ac1a0c2-501e-4131-92ad-e3a05697a6bd") + .perPage(708); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListTransfersTest.java b/src/test/java/jp/pokepay/partnerapi/ListTransfersTest.java index 38e5bdd1..8f932fb3 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListTransfersTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListTransfersTest.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .description("B8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuO"); + .description("CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v2"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .transferTypes(new String[]{"coupon","transfer"}) - .description("c8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWU"); + .transferTypes(new String[]{"transfer"}) + .description("h9b3v7zqeYS2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKL"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .transactionTypes(new String[]{"expire"}) - .transferTypes(new String[]{"coupon","cashback","transfer","exchange","topup","payment","campaign","expire"}) - .description("UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTK"); + .transactionTypes(new String[]{"exchange","transfer","expire"}) + .transferTypes(new String[]{"exchange","topup","expire","coupon","cashback","transfer","campaign","payment"}) + .description("ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJW"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .setModified(true) - .transactionTypes(new String[]{"expire","exchange","payment","topup"}) - .transferTypes(new String[]{"transfer","expire","payment","campaign","cashback","topup"}) - .description("v7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5QOJx"); + .setModified(false) + .transactionTypes(new String[]{"exchange","topup","transfer","expire","payment","cashback"}) + .transferTypes(new String[]{"campaign","transfer","expire","coupon","exchange","cashback","payment"}) + .description("g01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .privateMoneyId("f69561a4-e09f-407c-b8fa-8a77efa971df") - .setModified(true) - .transactionTypes(new String[]{"cashback","transfer","exchange"}) - .transferTypes(new String[]{"topup"}) - .description("UQr"); + .privateMoneyId("3a44a081-57e0-4683-af2d-10d428db292c") + .setModified(false) + .transactionTypes(new String[]{"cashback"}) + .transferTypes(new String[]{"transfer","exchange","topup","expire"}) + .description("Xq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9w"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .transactionId("46b5b8af-342d-48f0-9da3-39db84adb392") - .privateMoneyId("20809e81-1bfd-4bac-b156-1e24a7e2ec98") + .transactionId("cba3540b-89ec-4a79-91b0-9713a05ae9d4") + .privateMoneyId("b6d7e457-b266-49d2-8621-1034c7d4e694") .setModified(true) - .transactionTypes(new String[]{"payment"}) - .transferTypes(new String[]{"coupon","campaign","cashback"}) - .description("4wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ"); + .transactionTypes(new String[]{"topup","exchange","payment"}) + .transferTypes(new String[]{"exchange","cashback","expire","payment","campaign"}) + .description("PsJyAShBlCJPjtVj6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .customerName("ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXm") - .transactionId("7e33e549-d7b4-49d0-a7ec-c13a756c6a50") - .privateMoneyId("a6f903f6-97a3-4c79-a995-6bff066954ef") - .setModified(false) - .transactionTypes(new String[]{"cashback","transfer","payment","exchange","expire"}) - .transferTypes(new String[]{"payment","topup","campaign"}) - .description("vJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7"); + .customerName("st1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzL") + .transactionId("6b9a91d4-d4b6-46f4-bb69-85f2fbaad1f7") + .privateMoneyId("ece5d3ca-fb4c-4adf-bb8c-1425d2cf8e75") + .setModified(true) + .transactionTypes(new String[]{"transfer","topup","cashback","payment"}) + .transferTypes(new String[]{"payment","transfer"}) + .description("GwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .customerId("7fc65c90-b7ee-46a2-8f16-d4bce6538980") - .customerName("XURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvf") - .transactionId("fc297801-b78b-4f4a-8c62-b329c91511d4") - .privateMoneyId("97d8027c-d1df-4b1b-9a98-b22b550a3192") - .setModified(true) - .transactionTypes(new String[]{"topup","payment","cashback","exchange"}) - .transferTypes(new String[]{"exchange"}) - .description("6HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhK"); + .customerId("70192573-f484-45fd-9e94-b574ede729a5") + .customerName("QD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EA") + .transactionId("74d6c0ee-606c-4fc6-aa14-9219c90ee445") + .privateMoneyId("e7281ee7-f283-49cd-bcaf-0ded7f98df29") + .setModified(false) + .transactionTypes(new String[]{"payment","topup","expire","transfer","cashback","exchange"}) + .transferTypes(new String[]{"transfer"}) + .description("0aLvrKoRyTXgPVT4AzeoZEOYuu1RyqlWwyCNVezTDDCUN00F2Vhn3XqmC"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .shopName("gvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6") - .customerId("e5825dbc-4081-4491-8d3f-63efd163ccad") - .customerName("DkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBS") - .transactionId("3267ce5b-2640-48e8-957e-3a280ad90b36") - .privateMoneyId("f50c6398-e785-4885-be49-2cb6c0a7c0f1") + .shopName("MDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLq") + .customerId("b6a1db3b-5505-4716-bce8-b1a19551185c") + .customerName("bA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MIK7GdyM50XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdO") + .transactionId("66c776d2-c2ea-42b3-9dbd-c9fe8c36064a") + .privateMoneyId("d50b2aac-ce6c-4880-ae61-e1b3625a3a50") .setModified(true) - .transactionTypes(new String[]{"transfer","exchange","cashback","payment"}) - .transferTypes(new String[]{"expire","coupon","campaign"}) - .description("IFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCp"); + .transactionTypes(new String[]{"topup","exchange","cashback","expire","payment"}) + .transferTypes(new String[]{"expire","payment","campaign","topup","coupon","transfer","cashback","exchange"}) + .description("qnfBQjVsClPPd45bUBovESo5O7D"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .shopId("1b5c4179-22cc-453c-bef9-a39a42ccb65a") - .shopName("50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJT") - .customerId("23ea49e9-3c17-45a5-b713-2bcf881f9d2b") - .customerName("UK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNS") - .transactionId("fa19fce6-0283-4b97-9e7b-88ed8c45ea7d") - .privateMoneyId("11dc6f98-d386-49c5-b5a3-06ff3d16fe21") + .shopId("478fa0f7-a328-4f77-927b-d0a701e7e0dc") + .shopName("lNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR") + .customerId("c2b954a9-1588-420e-bdb9-c78fd4dea5e1") + .customerName("8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGd") + .transactionId("a4528820-2ac9-40e0-b442-309e89fafb2c") + .privateMoneyId("93c3b9a4-c751-4365-8dcb-6b4edb15a0ea") .setModified(true) - .transactionTypes(new String[]{"cashback","topup","payment","exchange","transfer","expire"}) - .transferTypes(new String[]{"transfer","cashback","coupon","campaign","payment"}) - .description("MyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe"); + .transactionTypes(new String[]{"cashback"}) + .transferTypes(new String[]{"cashback","expire","coupon","exchange","payment","campaign","transfer","topup"}) + .description("dJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXID"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .perPage(1417) - .shopId("94a51035-33ad-4aa6-b258-03c055df6fb0") - .shopName("rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ") - .customerId("bb41ea14-5f37-4c80-a5b1-2d1545b7e61a") - .customerName("CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jR") - .transactionId("cf80c144-88bc-4199-966e-0e44ebff96e6") - .privateMoneyId("1f3e21d5-f316-4cf4-807d-2fb459bdb925") - .setModified(true) - .transactionTypes(new String[]{"payment","transfer"}) - .transferTypes(new String[]{"coupon","payment","campaign","topup","transfer","expire","cashback","exchange"}) - .description("cCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZ"); + .perPage(6871) + .shopId("873b0ffc-9f3a-40d9-a19c-f5c0db4533de") + .shopName("NjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSr") + .customerId("6d86bf88-edf3-4fc4-8397-fd019c567fa8") + .customerName("36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbU") + .transactionId("6d1c965c-f224-408d-a5e7-8bb7cb89aef7") + .privateMoneyId("188f14a1-cb38-4c08-9be3-2bc0276eb87d") + .setModified(false) + .transactionTypes(new String[]{"expire","cashback","exchange","payment","topup","transfer"}) + .transferTypes(new String[]{"topup","cashback"}) + .description("e1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpD"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .page(1939) - .perPage(1737) - .shopId("9bd97640-2990-4459-95a7-b5e50f914add") - .shopName("A6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLiOm0u6OdTYv") - .customerId("e00a80d9-2931-4a88-99d7-e78ccf09b74d") - .customerName("a6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20S") - .transactionId("49c2a599-497d-4359-a27b-dc3bf9a82d32") - .privateMoneyId("44b7185d-0938-429c-837d-a918e99902c5") - .setModified(true) - .transactionTypes(new String[]{"payment","cashback","transfer","exchange"}) - .transferTypes(new String[]{"transfer","topup","coupon","campaign","exchange","payment","cashback","expire"}) - .description("FgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCG"); + .page(3543) + .perPage(2796) + .shopId("75d8f51d-9c8a-42b2-87bc-62150d4191dd") + .shopName("sqQhlAUNF0K") + .customerId("41e250fc-ca5d-4c01-b27f-5fb60194e965") + .customerName("dB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGkENDSkRyfWKAxjQWjCB8nFcqmENfDor1z") + .transactionId("745815ac-72e7-4121-b73f-299f5714979a") + .privateMoneyId("668091c6-9439-4d78-b378-f58238ef7122") + .setModified(false) + .transactionTypes(new String[]{"transfer","exchange","expire"}) + .transferTypes(new String[]{"campaign","transfer","cashback"}) + .description("H3FEHzbfU4cD6smAeqngifjNikqDE3OudXpYhNwFWUAKOnWlhna0lYNQbEnbMVdbi9G5aE3q4gTN93gHJA1FfneXYRV1FBu9VqwmK2QWE"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -272,19 +272,19 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .to("2020-03-12T11:40:45.000000Z") - .page(6724) - .perPage(3429) - .shopId("37e7f3a0-6f1a-45c5-a411-ee1ca472a898") - .shopName("Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTM") - .customerId("1c97d2e1-cf8b-4819-97e7-57c45a2e72d3") - .customerName("eHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrt") - .transactionId("ec44d2c3-c59c-45f8-ab16-18eba6632c74") - .privateMoneyId("5d4437cd-697e-4662-a92c-2a003930cc0f") - .setModified(true) - .transactionTypes(new String[]{"transfer","payment","expire","exchange","cashback","topup"}) - .transferTypes(new String[]{"coupon","exchange","campaign","topup","payment"}) - .description("bRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUM"); + .to("2025-06-06T01:17:30.000000Z") + .page(4076) + .perPage(4554) + .shopId("2d0bda7f-4a90-4127-ab1c-8b128a59d0b3") + .shopName("f304AeRoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtc") + .customerId("9486d40f-fdaf-4252-9368-386fdac8027d") + .customerName("fyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkH") + .transactionId("dc84f160-8df2-4605-b618-190d9d94ae4e") + .privateMoneyId("f3e9a997-bc5f-4e3e-bcc3-ceec752329c0") + .setModified(false) + .transactionTypes(new String[]{"transfer"}) + .transferTypes(new String[]{"expire","cashback","transfer","topup","payment","campaign","coupon"}) + .description("orRSF9NZATmhqoWmfQbT09Lp665rg0d7eGITtIklkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5Kal"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -299,20 +299,20 @@ void test13() throws ConnectionError, ProcessingError { @Test void test14() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .from("2020-03-21T17:58:30.000000Z") - .to("2022-05-05T13:45:47.000000Z") - .page(2900) - .perPage(2506) - .shopId("9cadd92f-eae4-4cad-854a-11cdb435cec7") - .shopName("98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhW") - .customerId("2ef834c6-5b7c-4ff7-a33b-63413bb3e106") - .customerName("ll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW") - .transactionId("dbcd2c99-007b-412f-b0d0-9c09313f4008") - .privateMoneyId("975e10bc-5d92-42c7-add5-eeb4b1466735") + .from("2020-08-31T01:51:07.000000Z") + .to("2021-01-31T21:18:52.000000Z") + .page(9261) + .perPage(2829) + .shopId("456e9024-b718-4a03-8119-2a29124f29fe") + .shopName("HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rqwGDVRdojGjigHpZl8InHQBhMIrdZJT9MnQgGfElkSct56tB3QvYjy8mUgDyXQYOSshpGMCke10fApKjBHnAmdlKiUj9JqianI8FqIXqzelGZDO") + .customerId("5d81e904-fb87-4ace-95df-2025879f3f2c") + .customerName("Jfl2HMto7yaW0Gkt1pOBZosxcU6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8mUwq4s") + .transactionId("d55d8e27-21e6-43a1-bdf8-7c9f630ee956") + .privateMoneyId("580b9a9c-d1cf-4056-b1c9-20671f5905ef") .setModified(false) - .transactionTypes(new String[]{"cashback","exchange","payment","transfer","topup"}) - .transferTypes(new String[]{"coupon","transfer","exchange","payment","topup","expire"}) - .description("NvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtu"); + .transactionTypes(new String[]{"topup","expire","cashback","payment","exchange"}) + .transferTypes(new String[]{"campaign","payment"}) + .description("vrKruisPGcjRxKz0hnHtPEmOFzye10sMn1hLqgZ4Scflk2JdjznjOojFztUyYyUwwyS9B5htgNIDpUpzKyj3BEvYp1TbuySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5w"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java b/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java index b415ce2d..c06396da 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java +++ b/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .to("2021-03-23T04:04:58.000000Z"); + .to("2020-02-09T14:41:10.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .from("2024-07-18T07:55:43.000000Z") - .to("2024-03-16T20:33:15.000000Z"); + .from("2020-06-01T18:19:07.000000Z") + .to("2023-05-29T09:16:53.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .description("hwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4Ez") - .from("2022-08-02T00:56:05.000000Z") - .to("2021-04-23T15:57:26.000000Z"); + .description("Zgue67e0YlrO8E3L7gW6p") + .from("2025-08-30T18:49:58.000000Z") + .to("2026-03-04T12:55:09.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .transferTypes(new String[]{"transfer","coupon","topup","payment","exchange"}) - .description("DCSxoowqwobMRj4K8plKuk") - .from("2021-11-14T22:11:39.000000Z") - .to("2024-07-25T10:04:06.000000Z"); + .transferTypes(new String[]{"expire","cashback","exchange"}) + .description("Na6hoBOihdHvejLf7HUNUhMpEnczyOhMWAPbHXytdjUT8FkE6WXDem2rgSzz35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T") + .from("2022-09-16T21:16:37.000000Z") + .to("2020-07-08T16:07:16.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .perPage(172) - .transferTypes(new String[]{"coupon","transfer","campaign","expire"}) - .description("CXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGb") - .from("2020-07-23T04:27:44.000000Z") - .to("2022-11-20T17:12:04.000000Z"); + .perPage(365) + .transferTypes(new String[]{"coupon","expire","transfer","exchange","payment","campaign","cashback","topup"}) + .description("hNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeu") + .from("2021-03-14T08:08:48.000000Z") + .to("2022-04-01T07:31:30.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .prevPageCursorId("69f15609-b3f0-49e2-80cd-8f04367f3fa9") - .perPage(927) - .transferTypes(new String[]{"exchange","transfer","payment","topup","expire","coupon","campaign"}) - .description("aiDroY6Q3IK7BQ6AmswdAM") - .from("2020-09-17T19:34:00.000000Z") - .to("2024-01-24T08:06:52.000000Z"); + .prevPageCursorId("9fa02f98-baee-424a-a118-7df123841157") + .perPage(512) + .transferTypes(new String[]{"cashback","topup","payment","transfer","expire"}) + .description("TPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HE") + .from("2026-03-24T08:03:46.000000Z") + .to("2025-08-01T19:03:20.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .nextPageCursorId("7416611f-2e33-43c9-8af2-56af066b1677") - .prevPageCursorId("7bd970d6-d2e2-4573-b970-bccdd97bd8f8") - .perPage(231) - .transferTypes(new String[]{"payment","cashback"}) - .description("1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmm") - .from("2020-12-27T00:56:08.000000Z") - .to("2021-02-25T20:32:37.000000Z"); + .nextPageCursorId("a7092e61-8c7b-4c79-bff8-4e3dde8dd63d") + .prevPageCursorId("78f66afa-a5cd-42b2-8963-fbe7ee832903") + .perPage(745) + .transferTypes(new String[]{"coupon","expire","campaign"}) + .description("aj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3hyN01xWKpyfSJX1OiNUbqHXuSEWeM8VLmM8qznKIn9uBoqN3XKkwmXFnLL0vhZmz7rucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34") + .from("2024-04-29T10:16:08.000000Z") + .to("2020-06-28T23:37:12.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .transactionTypes(new String[]{"expire","cashback"}) - .nextPageCursorId("af0744c7-8de8-4ae5-ad2d-8e8ef679abfb") - .prevPageCursorId("256441a2-fc14-45fb-b354-86992c485b94") - .perPage(574) - .transferTypes(new String[]{"topup","expire","coupon","exchange","campaign","cashback","payment","transfer"}) - .description("c7CS1DK4G") - .from("2023-08-10T03:01:06.000000Z") - .to("2022-11-14T00:51:10.000000Z"); + .transactionTypes(new String[]{"cashback","topup"}) + .nextPageCursorId("87bdcbe2-ef5f-4f75-a064-ef5007377480") + .prevPageCursorId("67ce53e7-56cb-4b63-9fc1-09c82dfd1734") + .perPage(973) + .transferTypes(new String[]{"cashback","exchange","expire","coupon","transfer","payment","topup","campaign"}) + .description("nYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46DL0EY9Dfg2K2KSBJ32yceHkpeJS53rQYrIERvl0KriuN") + .from("2024-10-01T11:09:32.000000Z") + .to("2022-06-22T13:24:49.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -175,14 +175,14 @@ void test8() throws ConnectionError, ProcessingError { void test9() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() .setModified(true) - .transactionTypes(new String[]{"exchange"}) - .nextPageCursorId("17ac544d-078c-4c58-9b07-320c57bdc9c8") - .prevPageCursorId("327abbfc-6a97-498e-9d72-14fa41ea10b9") - .perPage(60) - .transferTypes(new String[]{"campaign","coupon","expire"}) - .description("mUp8pN9pjtBKEK15Dd3XxCT0Zmu") - .from("2024-03-18T05:31:34.000000Z") - .to("2022-03-14T12:52:05.000000Z"); + .transactionTypes(new String[]{"payment","topup","exchange","expire"}) + .nextPageCursorId("5d4549f7-d3be-4466-921b-aca898188abd") + .prevPageCursorId("d7c06773-ae64-4aed-93a9-11ee2b880912") + .perPage(431) + .transferTypes(new String[]{"cashback","campaign","coupon","topup","expire","exchange"}) + .description("LOuuurZaaP5zVuitJAWBnMTQrqQLb4F279GcsdDtM3uSEYbuaOy1AtJbZFvX4DTrnYj6rE9HuWGm5xmBEPErYjV24xKSbfZiVFE1") + .from("2023-05-22T14:55:41.000000Z") + .to("2020-01-29T16:34:19.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .privateMoneyId("6eb0a40d-c937-44f4-820e-b0cf3a0c4440") - .setModified(true) - .transactionTypes(new String[]{"exchange","transfer"}) - .nextPageCursorId("161abbde-6265-4cdc-9dce-5f6195861a74") - .prevPageCursorId("c0942e47-98a8-42de-bf06-267c6ab5cb6f") - .perPage(877) - .transferTypes(new String[]{"transfer","expire","cashback","exchange","topup","coupon","campaign","payment"}) - .description("SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1Ll") - .from("2021-07-18T19:57:18.000000Z") - .to("2022-01-18T16:37:21.000000Z"); + .privateMoneyId("f3db3178-c932-44fa-939a-ee7eab246f13") + .setModified(false) + .transactionTypes(new String[]{"cashback"}) + .nextPageCursorId("fe413d28-477c-4e3f-a89d-8f66a2630904") + .prevPageCursorId("8408a4dc-132d-48d5-a625-32ff2a1f0bf4") + .perPage(396) + .transferTypes(new String[]{"transfer","exchange","cashback"}) + .description("yBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsu") + .from("2023-06-25T01:13:05.000000Z") + .to("2023-04-27T10:52:38.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .transactionId("3405f240-8da3-4c0a-aac9-83e9c7fb400a") - .privateMoneyId("ac2d57bd-0f35-4b3d-b1d9-31545b075671") - .setModified(true) - .transactionTypes(new String[]{"transfer","topup","cashback","exchange","expire","payment"}) - .nextPageCursorId("136c436a-c71a-4c14-bc01-a66666243374") - .prevPageCursorId("e4685af3-359d-4342-94ab-c4eb7cb010a6") - .perPage(896) - .transferTypes(new String[]{"transfer","coupon"}) - .description("gIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXql") - .from("2023-07-03T17:38:54.000000Z") - .to("2022-06-30T07:14:35.000000Z"); + .transactionId("cac0a111-aa63-49b8-8c46-0501a3c4b8b4") + .privateMoneyId("0efc1225-d7a3-44ed-a2d0-85a70044b231") + .setModified(false) + .transactionTypes(new String[]{"topup"}) + .nextPageCursorId("429ae582-76c4-49af-abe2-bbce5ab60a80") + .prevPageCursorId("278fc956-9fea-47e3-9dbe-ea88bfa992ba") + .perPage(148) + .transferTypes(new String[]{"payment","topup"}) + .description("NjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLq") + .from("2023-08-30T22:42:25.000000Z") + .to("2023-06-23T14:49:13.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .customerName("d5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCsp") - .transactionId("21798f89-20e4-48ff-9308-3ff01ff7a6cb") - .privateMoneyId("34092b84-562e-43e3-bc1f-2ba0fbc9fa08") - .setModified(false) - .transactionTypes(new String[]{"exchange","expire","payment"}) - .nextPageCursorId("6849350b-72b5-42a3-a77c-34bd749761cc") - .prevPageCursorId("9b3bab85-e5c1-4454-8170-817ac425298f") - .perPage(338) - .transferTypes(new String[]{"exchange","transfer","campaign","payment","coupon","cashback"}) - .description("G1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2w") - .from("2023-07-06T21:17:42.000000Z") - .to("2020-03-06T07:13:06.000000Z"); + .customerName("qaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o5Rc96wfmVrWrKd8ZckndPnp3nLoMele3ppOb8vOALeCaVZzJ21Wkjwh096vY0YkfqArkVOxtHaQbqrekxj6KV") + .transactionId("49b50046-4ee2-4773-9d5c-1d1aea3251c9") + .privateMoneyId("9f44bca4-de3d-4506-b159-7fe70d2311c2") + .setModified(true) + .transactionTypes(new String[]{"exchange"}) + .nextPageCursorId("a9a6d9d3-90a9-4749-878f-07a504b09ca0") + .prevPageCursorId("f70985fe-fd76-47b3-92cf-74f6fd4ac81c") + .perPage(879) + .transferTypes(new String[]{"transfer","coupon","expire","topup","exchange"}) + .description("qEdpqCcPOpWjivoOnvdw0Yvld3IeJyhTl") + .from("2024-02-13T01:08:50.000000Z") + .to("2025-04-11T19:49:59.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -272,19 +272,19 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .customerId("01340f5e-e511-4db3-b6d9-0a3aa2cdda2c") - .customerName("uE4jwp0IiR44I5KLiOrRKq3qxtTGi") - .transactionId("dee32366-1821-44ce-b63f-e1cb261c9a2c") - .privateMoneyId("5da3a272-3e72-46e1-84b5-60f5ebdeb5a4") + .customerId("c61c77a3-8b54-4ad4-9da2-cabd2846c532") + .customerName("NxSiphZRlLoLjMmLSHQhe4tHPdlvKxC8QojNKN0zqICt7BPEIsHw9iaxaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbu") + .transactionId("8aac4ee3-fe66-4944-9b68-41c922f41724") + .privateMoneyId("6206d592-9ea3-4f7b-8400-0e33d53980bc") .setModified(false) - .transactionTypes(new String[]{"transfer","cashback","payment","exchange","topup"}) - .nextPageCursorId("ba7b5f00-a9a8-4ded-91e4-d74c73fedb4e") - .prevPageCursorId("c853e04f-52cb-49ad-9c3e-eeabed53ba9f") - .perPage(830) - .transferTypes(new String[]{"topup","expire"}) - .description("Oh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3") - .from("2024-06-24T19:10:10.000000Z") - .to("2020-09-08T11:39:54.000000Z"); + .transactionTypes(new String[]{"payment","cashback","expire","topup"}) + .nextPageCursorId("4e06c412-4537-490c-8acd-d4ced2e4f607") + .prevPageCursorId("41d150a8-266d-4f47-9bdb-41d516e61465") + .perPage(779) + .transferTypes(new String[]{"cashback","topup","coupon"}) + .description("Mq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8WbkxbWTp66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07L") + .from("2024-08-21T00:27:21.000000Z") + .to("2020-11-04T23:42:58.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -299,20 +299,20 @@ void test13() throws ConnectionError, ProcessingError { @Test void test14() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .shopName("blmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidV") - .customerId("87951304-1e47-461f-b719-da29f2c9cac2") - .customerName("6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5") - .transactionId("47b14440-34ec-497f-8f77-68aeae516ed7") - .privateMoneyId("34d59ddd-6596-4d5a-8b75-1f57af90bb57") + .shopName("GyEdt6GGJ1GXo5UPiFJuScrEGcY5I6vYJqEcansSsP2ceIvKP9bg") + .customerId("80fa11ae-7cd9-4ee1-ae11-d56e68d4cf0f") + .customerName("bVQM9Z6RG0kCsPdzwEr5mXGzuLW3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3") + .transactionId("fccb9b91-1a02-45d6-899a-29e1378bb923") + .privateMoneyId("8791d856-4a85-4d67-a9b5-75ec73e71291") .setModified(true) - .transactionTypes(new String[]{"cashback"}) - .nextPageCursorId("23d1c950-51f1-40b2-b2ea-bece15ca43ab") - .prevPageCursorId("f917069c-5732-42a2-b8a8-a700a3b13851") - .perPage(615) - .transferTypes(new String[]{"payment","expire","transfer","topup","cashback"}) - .description("Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdi") - .from("2021-05-20T20:37:10.000000Z") - .to("2024-07-05T05:06:05.000000Z"); + .transactionTypes(new String[]{"exchange","transfer","cashback","payment","expire","topup"}) + .nextPageCursorId("82314ebe-3be9-483b-b2a4-3268f1f7cef2") + .prevPageCursorId("c8c3a6be-3bc2-449f-a03d-e0d13aac7649") + .perPage(195) + .transferTypes(new String[]{"exchange","topup","expire","coupon"}) + .description("Gr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE1hEG2EkkP2VIPy") + .from("2023-01-09T03:33:22.000000Z") + .to("2022-05-20T14:39:58.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -327,21 +327,21 @@ void test14() throws ConnectionError, ProcessingError { @Test void test15() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .shopId("db44dc4e-8fee-43b4-8e05-9662940afdce") - .shopName("XIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mH") - .customerId("aac45f15-00e8-4969-a0d3-46c4f9deee8e") - .customerName("XKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnT") - .transactionId("78f15c8a-e4ec-4989-934c-66f998f4bcfe") - .privateMoneyId("b5102dfc-6ade-4475-bfdc-73839d210a62") - .setModified(false) - .transactionTypes(new String[]{"payment"}) - .nextPageCursorId("f4d07335-cbf5-4c16-8739-bdfba1be0d59") - .prevPageCursorId("3f422c34-2019-48e3-ae03-e3ac71afdc8c") - .perPage(951) - .transferTypes(new String[]{"cashback","exchange","expire","transfer","payment"}) - .description("RZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16") - .from("2023-07-22T03:23:23.000000Z") - .to("2022-10-03T00:53:54.000000Z"); + .shopId("48a18b37-8d7b-4d48-be89-a085f1ee2557") + .shopName("Ee7skB9BB1YNClE0n87A30l6vspNWH9u8x4Yq2mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYR") + .customerId("88146713-b90c-4506-a49d-98c6c1c72685") + .customerName("8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC39nZBUv4F8J7UzyDYEv7b") + .transactionId("798bc163-1690-4bf4-afe3-186d63d67e10") + .privateMoneyId("e31719c9-4571-4fe4-a798-13ed118769c0") + .setModified(true) + .transactionTypes(new String[]{"topup"}) + .nextPageCursorId("9b57899e-e4d2-4042-baa3-88992a869d1a") + .prevPageCursorId("b8d5425f-dd70-4a15-9e08-b5b03cda3380") + .perPage(744) + .transferTypes(new String[]{"exchange","topup","payment","cashback"}) + .description("WoUeORL98QDv9TW3tonru5DxxR1kiR4daTST401zYU9O5bmxo5R8HDeIrg38UDixRQOsOxJyiut30oRsSLi4FAWjvNF") + .from("2025-04-08T02:14:04.000000Z") + .to("2021-11-21T19:46:10.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListUserAccountsTest.java b/src/test/java/jp/pokepay/partnerapi/ListUserAccountsTest.java index 263a3910..247a259e 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListUserAccountsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListUserAccountsTest.java @@ -12,7 +12,7 @@ public class ListUserAccountsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListUserAccounts( - "f7badafa-54a1-4511-b337-e4aa1c1fe652" + "580852da-986e-4146-8a04-b74de803cf9c" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListUserAccounts( - "f7badafa-54a1-4511-b337-e4aa1c1fe652" + "580852da-986e-4146-8a04-b74de803cf9c" ) - .perPage(5145); + .perPage(6774); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListUserAccounts( - "f7badafa-54a1-4511-b337-e4aa1c1fe652" + "580852da-986e-4146-8a04-b74de803cf9c" ) - .page(7996) - .perPage(3122); + .page(4049) + .perPage(405); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java b/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java index 7a9c9054..23eb8f9e 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListWebhooks() - .perPage(3090); + .perPage(8837); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListWebhooks() - .page(7154) - .perPage(1647); + .page(9819) + .perPage(7503); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/PostCreditSessionTest.java b/src/test/java/jp/pokepay/partnerapi/PostCreditSessionTest.java new file mode 100644 index 00000000..4a22d778 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/PostCreditSessionTest.java @@ -0,0 +1,51 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.PostCreditSession; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class PostCreditSessionTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new PostCreditSession( + "f7badafa-54a1-4511-b337-e4aa1c1fe652", + "7c419418-aa59-4e5c-bbdc-7d8d6bf88c31", + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "2024-03-08T03:04:44.000000Z" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test1() throws ConnectionError, ProcessingError { + Request request = new PostCreditSession( + "f7badafa-54a1-4511-b337-e4aa1c1fe652", + "7c419418-aa59-4e5c-bbdc-7d8d6bf88c31", + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "2024-03-08T03:04:44.000000Z" + ) + .requestId("cc450cba-668f-4380-854c-2e6dae6d9426"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java index 8f5b0a76..81f9ab8f 100644 --- a/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java @@ -12,7 +12,7 @@ public class RefundExternalTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new RefundExternalTransaction( - "681094c4-980c-4d74-98ca-0969c4d5dbe9" + "ac112eed-5610-4a6d-acf8-e133fde574a1" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new RefundExternalTransaction( - "681094c4-980c-4d74-98ca-0969c4d5dbe9" + "ac112eed-5610-4a6d-acf8-e133fde574a1" ) - .description("kZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8Ox"); + .description("JLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/RefundTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/RefundTransactionTest.java index b4049b2a..7e044ac9 100644 --- a/src/test/java/jp/pokepay/partnerapi/RefundTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/RefundTransactionTest.java @@ -12,7 +12,7 @@ public class RefundTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new RefundTransaction( - "8e486a0d-3f86-46aa-8b07-c127608e19e8" + "166aeaaf-f4f8-4da9-8b44-6b32b434a458" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new RefundTransaction( - "8e486a0d-3f86-46aa-8b07-c127608e19e8" + "166aeaaf-f4f8-4da9-8b44-6b32b434a458" ) - .returningPointExpiresAt("2021-08-05T07:10:19.000000Z"); + .returningPointExpiresAt("2022-09-22T17:45:33.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new RefundTransaction( - "8e486a0d-3f86-46aa-8b07-c127608e19e8" + "166aeaaf-f4f8-4da9-8b44-6b32b434a458" ) - .description("gpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziT") - .returningPointExpiresAt("2022-09-30T08:34:41.000000Z"); + .description("cOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8Nd") + .returningPointExpiresAt("2026-04-10T00:26:07.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/RequestUserStatsTest.java b/src/test/java/jp/pokepay/partnerapi/RequestUserStatsTest.java index 64d8fcb6..55f07ab4 100644 --- a/src/test/java/jp/pokepay/partnerapi/RequestUserStatsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/RequestUserStatsTest.java @@ -12,8 +12,8 @@ public class RequestUserStatsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new RequestUserStats( - "2022-08-22T14:40:07.000000Z", - "2024-09-18T13:18:22.000000Z" + "2023-04-08T11:11:52.000000Z", + "2024-08-25T03:41:16.000000Z" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/ResumeBulkTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/ResumeBulkTransactionTest.java new file mode 100644 index 00000000..2d5a9bca --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/ResumeBulkTransactionTest.java @@ -0,0 +1,28 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.ResumeBulkTransaction; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class ResumeBulkTransactionTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new ResumeBulkTransaction( + "2eadb457-704b-4103-a409-793b280c2cc2" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/ShowTransactionGroupTest.java b/src/test/java/jp/pokepay/partnerapi/ShowTransactionGroupTest.java new file mode 100644 index 00000000..5988346d --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/ShowTransactionGroupTest.java @@ -0,0 +1,28 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.ShowTransactionGroup; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class ShowTransactionGroupTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new ShowTransactionGroup( + "50c07e0e-1c53-45ae-96f8-1158137aef0c" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/TerminateUserStatsTest.java b/src/test/java/jp/pokepay/partnerapi/TerminateUserStatsTest.java new file mode 100644 index 00000000..647adf67 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/TerminateUserStatsTest.java @@ -0,0 +1,28 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.TerminateUserStats; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class TerminateUserStatsTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new TerminateUserStats( + "2974b994-00e4-426d-8c09-37f1f878d9b7" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateAccountTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateAccountTest.java index 63beff5d..89e1ec0b 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateAccountTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateAccountTest.java @@ -12,7 +12,7 @@ public class UpdateAccountTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateAccount( - "f687016b-d0b3-46f2-8833-e8985291851f" + "95c86f58-0405-4529-92d0-94c33ae0c1e2" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateAccount( - "f687016b-d0b3-46f2-8833-e8985291851f" + "95c86f58-0405-4529-92d0-94c33ae0c1e2" ) - .canTransferTopup(true); + .canTransferTopup(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,7 +45,7 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateAccount( - "f687016b-d0b3-46f2-8833-e8985291851f" + "95c86f58-0405-4529-92d0-94c33ae0c1e2" ) .status("pre-closed") .canTransferTopup(true); @@ -63,7 +63,7 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateAccount( - "f687016b-d0b3-46f2-8833-e8985291851f" + "95c86f58-0405-4529-92d0-94c33ae0c1e2" ) .setSuspended(true) .status("active") diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateBillTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateBillTest.java index ddc95e4a..2af471fe 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateBillTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateBillTest.java @@ -12,7 +12,7 @@ public class UpdateBillTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateBill( - "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" + "54cf65f5-ba67-47cd-b34f-e8048287ddd1" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateBill( - "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" + "54cf65f5-ba67-47cd-b34f-e8048287ddd1" ) - .setDisabled(true); + .additionalPrivateMoneyIds(new String[]{"61ec7332-334a-4f82-88c2-d06ea0d6211f","a2dbbe78-cb62-4c2c-be1a-9b002558eae9","fdbedf9f-1c29-4345-8d30-193d890340ef","934c377e-4746-4980-92c7-9e6ee43b727f","2f3712fc-316e-4380-8676-89a9d6fcc3c0","72f03d94-6c18-441c-ab98-4d09306ea97e","9274a7cb-ec16-4b58-8639-04adfd67d228","bb53616d-0517-44d7-b41a-a97bf92d1e6d","18ce89cc-4165-400d-b203-5216f0200348"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateBill( - "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" + "54cf65f5-ba67-47cd-b34f-e8048287ddd1" ) - .description("RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv") - .setDisabled(false); + .setDisabled(false) + .additionalPrivateMoneyIds(new String[]{"3b350a56-ea36-4b86-b995-b99ecb152a3d","9a1d92c4-ddf1-4d09-84fd-4d20792e913c","9f326b92-0dcd-4a7c-86f5-531a16bf08f2","6d9c9d8c-24ed-43b2-9001-703ddd0eae48","a53c5df9-631e-4a1d-80db-f3d918e0ffb5","1b7a060d-ee95-453a-b278-82420d8bb2d2"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,31 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateBill( - "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" + "54cf65f5-ba67-47cd-b34f-e8048287ddd1" ) - .amount(140.0) - .description("4bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iM") - .setDisabled(false); + .description("FTyEvnewbYd4rNZJsCq7m7arw2NKYH12xHXaAOFqIwxrvxkxwVYBDQiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQ") + .setDisabled(true) + .additionalPrivateMoneyIds(new String[]{"a6a582be-cacf-455d-9a4d-e3ab06144a74","106a508e-5f74-402c-9faa-350a7bd50282","80ead2d5-030c-4ddb-8213-09e801b21ba7","6ba9a844-5330-4112-8f69-8af7381b4312","3bbbf581-a3a2-41c5-b6ef-a5f6cfcae578"}); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test4() throws ConnectionError, ProcessingError { + Request request = new UpdateBill( + "54cf65f5-ba67-47cd-b34f-e8048287ddd1" + ) + .amount(3119.0) + .description("7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQF") + .setDisabled(true) + .additionalPrivateMoneyIds(new String[]{"25bd1eb3-4ccf-4d78-93b8-0bf1e5f6fc44","1b6844dd-6d7a-4afe-9fd3-42d15e9fce9f","15348a07-be30-4bd9-8812-6c561d5ae918","933b1d9d-4c4e-44c3-9b2a-ea16f43e9eb6","a4778e05-af10-44a9-9383-1a6631996cf2","c9bad83a-4b4c-4029-b3de-b745c2a0faa2","9a4aa223-c3e7-4962-b709-8dfdbe93e944","61fedff2-9825-46e1-8b3e-1b063de4db66","725fca1e-5623-4d11-a75d-f9fafb84a0f9"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java index 484daa0c..6c3d766b 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java @@ -12,9 +12,9 @@ public class UpdateCampaignTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"201a1969-78aa-405f-9272-20f2c8525b2b","c9883fea-362f-4136-989e-1b24c370216d","92f100a0-437f-4bd8-84d9-54eff37a6571","a04274a7-1b56-4ec5-be9e-bc7f561e8376","e3a1bf5e-2bcb-4b76-a5ae-94f778977b33","7241d841-57e4-4ac5-b324-affbb550a20e","aeac5935-4568-4c47-a114-5f842f6464c4","5194a4cc-1089-4a7b-a075-819aeb378506","c213b519-fa61-4c53-bef0-74863e5ee907","559cc459-6d6c-46b1-9424-021d45703ac7"}); + .applicableShopIds(new String[]{"04639ad2-3183-4149-9d26-a6c0e56b703c","075d6b8c-8d82-4481-968b-4e435c73ac6e","4588886c-7597-405a-aa97-06b67bd24192","65d0e7ce-80f4-4d4f-b7d8-6332244c3780","1547fcbd-eec6-4849-b857-a77292ce95b1","45759233-802d-4d5b-8db6-1122e1972839","fbe6e101-233c-4f75-8c61-d400f7d5e2bf"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"ec27c6fe-059a-4a24-82ba-180ac4dfcd13","f985c984-19e9-41f5-8567-5e834f78f167","c5501e17-c56c-430b-b82b-cd22f5516989","f7d3cc4a-6b10-454a-82c7-4792184ecaff","5e21c79d-ad74-4d30-bce4-7a2c8fca5be3","aef32150-c7e2-4019-a05c-c88f4dd576f4"}) - .name("c4uSkk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLn"); + .applicableShopIds(new String[]{"8eae6f54-1209-4125-bfc6-b8b42d22b20c","24f8bc32-1027-4961-8862-300f9d6e389c","1144aceb-d3e7-4753-8f88-48ed8d73c7a2","efeca224-08f4-4ffe-8507-28c8376b0b2a","48a4fb5b-3641-4757-ba4b-9f3bcfb52f56"}) + .name("wmqN4ax1Q1Fha0o1JxRbdO7sJMkOiIt9zNKCX0VzisXLLiEpULitiIsW57odiOHhS8DsZfAQRFK6oTTeP8tTTuInowX2TMHi2vDKbmu86aUF4j"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -47,11 +47,11 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"483acffd-cfbf-4b3d-8c85-c451016291ae","7a0a289d-125c-447b-98e5-b9e14d9dd333","16d1250c-bae5-443e-9499-e527acb9f640","306fc1af-ccc2-45ec-90a3-b3b10963847a","01008ae1-e7fd-4e31-986e-2d3711d59dbd","f9e353c9-6e5b-4ce3-80bc-ba2113063257"}) - .startsAt("2023-09-14T01:59:29.000000Z") - .name("MlrV1ey0F13qC7iArhwm76E35ql4X"); + .applicableShopIds(new String[]{"e707f8f0-f38b-471a-8ba2-7e3bb3fdb1a1","35f7153b-37e1-4d41-9934-c0fcd59b678b","326d151f-faae-4481-bcf9-5851b7d7a49d","787961e1-a37c-4169-9d77-50308244870b","e1316cca-de0d-4870-abd5-14f0fbbc7823","485cafce-abe6-4484-aa3c-bc721f69285e","d8d47c24-a955-42cb-a155-20a17e209285","6736ddc3-cba1-43d5-9b98-54bfdfb97234","5bb4223c-2715-4802-a375-fceefe5bb688","b1ee4d06-18e3-4988-a060-49e619c70525"}) + .startsAt("2022-02-19T03:21:51.000000Z") + .name("ZgC0vnz9vdHX3zI21M9POKUqkrXtAeLmERqX5bwDROtzb2hizqeaCyQXA4kt1s5IzgftNOCeiOWbpouk4VaYSYsKX6oU3L46cfTNsJ74"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -66,12 +66,12 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"6b54f766-9255-4615-a165-2bc0557be331","f47afcb4-61d7-4ede-988a-03629081e296","cdde2e74-fdb9-45b3-9f74-bf00327a6632","f81322b6-c1bb-440f-acfe-20be21e09007","d46ed64c-3ae9-4851-91c1-a787c42816ac","032dc94d-dc42-4ed9-ad78-c6b0bf371a35"}) - .endsAt("2022-12-06T01:23:38.000000Z") - .startsAt("2022-09-02T03:49:21.000000Z") - .name("BwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9gh"); + .applicableShopIds(new String[]{"eb74aae4-e6e8-44d0-bd19-faf225a0a09b","46603b7c-9f2c-42c7-956f-38729484cb1d","8d36e0fc-4285-4689-8c12-75d1e0153e7a","3bca4a74-ad69-4511-b5d5-920f23747bc0","c4e627d2-d0d7-421c-9ab5-a13b6e684e7d","2786ab72-9905-4cb1-8f94-e2020c557d9c","562759a9-686e-46f2-8179-4bdf109c960d"}) + .endsAt("2025-05-31T11:23:55.000000Z") + .startsAt("2024-03-23T21:36:43.000000Z") + .name("pmMzmoITgipjScgSjEKEvn9tkKJsfEeEirDJBvMOLUpWvpkfaBwAHAugbJ1KgmPImdwaTBcNwqaqeRCH16a6zzUqrHdosHdbmLywq"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -86,13 +86,13 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"fdcf6c13-1c86-4d5c-a518-18434304d6d4","9582de5b-88ab-4cca-83de-ff91296df797"}) - .priority(6098) - .endsAt("2020-09-10T21:53:03.000000Z") - .startsAt("2023-05-11T04:34:12.000000Z") - .name("Xhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8"); + .applicableShopIds(new String[]{"e0d1e63a-d79f-4d98-9b2e-c98b643ecaae","e858d16b-addc-4608-b680-c080ead24302","f39f2b88-dd88-4e45-9e04-675533a72bc4","3ea164a4-acdb-4d47-94f4-4af51891b11a","0623e375-7535-48ed-8cc8-df68047f8ba1","db0507bf-07c7-4dd1-aeb9-d69ea88a7279"}) + .priority(7653) + .endsAt("2022-05-27T18:34:20.000000Z") + .startsAt("2020-07-31T12:13:37.000000Z") + .name("oyNLKN2h7BNq3rRMob2yqEgXsKX0DNjA5LloLW2ZGwTADg0EGo2tY0BvAArU4c3Hcr3rYtMZs1YhEQlphw1DkmThPoIdPA7X1r8JTPyIk7mw82VAIRkHcNMgqN77FQwuiGtQW4pnFSkfz0ZAYuHKErS89ga8rAwX"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -107,14 +107,14 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"d5365c8b-e163-4569-af2b-de2dfaec44bc","98e228e8-4e71-4c57-be20-16f78e636ed7","8648f6cb-c1cc-4c49-83f3-56e748017178","06817d6f-7a92-44f8-85a1-f5dce51de9ab"}) + .applicableShopIds(new String[]{"a7ed7ac1-1ee9-46ae-b1f7-3693a386ee2c"}) .event("topup") - .priority(6681) - .endsAt("2023-08-27T09:21:44.000000Z") - .startsAt("2020-11-20T17:43:31.000000Z") - .name("2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFh"); + .priority(7672) + .endsAt("2026-06-20T20:11:55.000000Z") + .startsAt("2022-03-03T07:42:44.000000Z") + .name("1HL4wWzmkMDA4SVfWD13Zj3L9DQPYajb0tVdWEdtL2ujHbA770c9iXi2Q1VWdznJovLhT0BrHHw3tEdBOJZocfpIFBg2EP1IMpzVlOR0ZjHbJ4pIYeH1mIjK91BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -129,15 +129,15 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"7dd0ce91-f283-4553-ba22-f4629de2de29","d5a73d2a-6055-41ee-822f-8dbde68baa8b","67c00c97-03d8-4b08-9e20-7864a61202d1","4686d170-b28b-416d-9070-7b5c71ab0a8b"}) - .description("FqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyC") - .event("topup") - .priority(5744) - .endsAt("2023-12-01T20:45:20.000000Z") - .startsAt("2023-01-22T11:16:39.000000Z") - .name("iVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m"); + .applicableShopIds(new String[]{"b682fcfb-8025-4ae0-bc40-bef23bc3c041","28df7617-c9b7-46af-9ded-33eb30e6314c","4f8402bd-0fcc-4760-9c74-c46d16dcd8be","3387c519-26cb-438d-a603-976712628475","ad1c7344-ea2d-4a4b-a11f-19b27dc77fc9","afe4a116-6f3e-44a3-9e3f-7d1dad9d925c","f379407f-7de7-4b8c-91ea-584f753b89a9","faa55bde-051a-455e-8323-08c434f236a2"}) + .description("DOJbPEulQIvNSkQALk") + .event("external-transaction") + .priority(9588) + .endsAt("2021-07-15T07:04:19.000000Z") + .startsAt("2021-07-22T20:47:52.000000Z") + .name("pQNr6y6a28m0nRuld"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,16 +152,16 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"8219900a-ff35-4db1-8208-6c6d4204ff94","09bea70e-f703-4550-829b-e2fb4ac21c2e","e9418e55-33dd-4bfe-b864-e33a43296e54","87b52509-7f44-4fa6-b796-4710c3fd01e2","16d23a3d-ebee-43a2-bb0f-f1d82d66b091"}) - .status("enabled") - .description("r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8h") - .event("external-transaction") - .priority(5511) - .endsAt("2023-05-29T19:29:06.000000Z") - .startsAt("2023-03-30T02:43:56.000000Z") - .name("pqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQd"); + .applicableShopIds(new String[]{"4c898d70-b653-475e-919b-0bf578d7cfbc","51fb3145-bc55-4a80-b0db-3c642110b750","851736e9-971a-4607-a582-bb146f8b7839","543de7f1-92d1-4997-b206-119d7e83a7c7","5a5d798b-bb46-45e6-83b0-ec61e17155f4","fdf59739-3afe-436a-af91-786eb30a6422","490c612f-c4b8-4f3f-bd24-3cdbe464b744","f3f36e90-c886-4d13-b70a-d016dbe8c11c","dc6615c9-80ee-43e3-9d35-80d9580d3d14"}) + .status("disabled") + .description("bNc2E2NkkIcBn5byBGxSlhAbqrppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEl") + .event("payment") + .priority(433) + .endsAt("2023-08-10T00:22:38.000000Z") + .startsAt("2023-11-21T12:20:34.000000Z") + .name("EVyTrbdyJqmh3WRfGT9d54NzUibZax1gbEqwtEhHNUjZJEl7H6aHeFVmJSAKrLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5BuCe0yTSEIanUYTV2eUYLa0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf7GbuKVOo81owGN6i0XTT33lqYdKQ0h3ghVZk7eOE9tcwx8MOKl5MRsa1MFEYPOVzvPSXDUkbgX2oBsh"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -176,17 +176,17 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"8179b6eb-ff31-4230-9c4f-efb1d1bcf042","6663101b-13a4-495d-a90e-52826613c367"}) - .pointExpiresAt("2021-02-12T12:09:31.000000Z") - .status("enabled") - .description("vU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuK") - .event("payment") - .priority(8099) - .endsAt("2021-06-04T04:52:57.000000Z") - .startsAt("2023-10-26T09:20:26.000000Z") - .name("1hdXC"); + .applicableShopIds(new String[]{"5aec0d90-a0d5-4174-9758-00c7b97e38da"}) + .pointExpiresAt("2025-11-04T15:03:25.000000Z") + .status("disabled") + .description("fp9TwgYPOmismihXWyqdhqoMR6oAdT5yPsPRTmUYdZdYDDGZDuZn0XgqQIqTu14tSh13qLZDYdRTWbMgZiB4q5yXIKvcyeytZUeCOzn479Q7e") + .event("topup") + .priority(3074) + .endsAt("2022-03-13T08:16:29.000000Z") + .startsAt("2020-05-01T20:46:59.000000Z") + .name("6mogsi4OQ6jQwMdVQzET3CTZR3naadmHoO937wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5QfKEnNvZa51B6RuNHWw3kkEIImb7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6FlBm7k1iTzlm9ILQGKVJoUCSY35cdkgvsbAYCbaEHjTHUmx8bpMxYByL"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -201,18 +201,18 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"ce9bd3f9-0ac1-404c-a84c-048ab60ec391","c6d5b424-268c-4c73-a4d0-91daedfb3cdc","d84eca09-7d2d-49b4-905c-99f8f8de07c5","8b8a0e95-b6da-425b-8261-974cd501af39","cc89b6dc-ef85-4e8c-a48a-f15c0593c167","7c402791-4bd0-4ba2-84dd-4f0cb1a42097","6c29d3ef-d045-470c-b5d0-d616df168c8f","7c26bc6e-854f-4660-9278-f0539e9e769f"}) - .pointExpiresInDays(6234) - .pointExpiresAt("2020-02-10T10:51:05.000000Z") - .status("enabled") - .description("IBQUZMwQEKQp536z2WYA1sx132uYpl") + .applicableShopIds(new String[]{"586769f8-1b3a-4ff3-8ad2-27e8c101f952"}) + .pointExpiresInDays(2548) + .pointExpiresAt("2026-03-19T12:34:01.000000Z") + .status("disabled") + .description("AZfWzO75yHWR5FLMa9CO3GmqQepv7doxpRjgZI2VSDvLJkkZMMdEANfWVavAje3PJg4") .event("external-transaction") - .priority(9745) - .endsAt("2022-04-24T08:50:34.000000Z") - .startsAt("2020-09-05T17:02:02.000000Z") - .name("tFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi2"); + .priority(446) + .endsAt("2025-06-26T20:37:39.000000Z") + .startsAt("2026-07-28T04:43:23.000000Z") + .name("A5dwRQrAEDCEBzCTk0pNAGkxkj3y6QjLE9oTv9S3Zg4O5dK9OBTn3gY0HIwJr5Xn6R9PIw5eC52tvIBnMyMg4CnT2dj7ORUTt4jEgn4792da7QYy7V605lzcBixerwgOsZo2yFQXiifPwyEPkMTjwK5UmBamQcU"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -227,19 +227,19 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"ca05f932-ed23-42ca-b7ab-ab3a2d0b9bb1","88e8f9e9-d3e4-4441-b894-78e39e4345d1","88ffbeb9-b0d2-4284-9b8b-685164b175e3","ab4472c1-fdb9-43b3-8526-ee8f1983136a"}) - .setExclusive(true) - .pointExpiresInDays(7419) - .pointExpiresAt("2021-08-22T22:07:08.000000Z") + .applicableShopIds(new String[]{"50ed02a7-2276-45a5-a313-5a4865444944","216c7719-4916-4a15-9ba7-5fbbc5422d32","50471e35-f1d8-4715-8859-f5c71a44bee1","e170f6a8-b2c7-4eef-92ed-2b6c88b40f2c","e7869829-0c6b-41d7-9f70-368d2b76e056","47231aaf-710a-43cb-9302-51dd908db61c","98635c51-1f59-4bbc-abc1-c643b1d29126"}) + .setExclusive(false) + .pointExpiresInDays(5807) + .pointExpiresAt("2022-04-01T00:44:07.000000Z") .status("enabled") - .description("VE1oN8GZytUXsp14vePeJ") - .event("external-transaction") - .priority(7933) - .endsAt("2022-09-08T05:55:52.000000Z") - .startsAt("2021-05-01T18:01:55.000000Z") - .name("1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcb"); + .description("dJgT5oXIAxp1c5Q2vG7By91KC2xkwbMvROWfUAhh6XnZz0yJYgRGAM6oTzljbZYS9b6qmrSFaDiVxdn1z0TuA7dLQ8GnuuGnm3um0ZKYlqHYAPfacx4ba4pxXiFCicQd3QQrdtpp5IlW8KnTaroT8w3801ZxeZpTa0FFkkUFLVC") + .event("topup") + .priority(4976) + .endsAt("2024-01-03T17:36:57.000000Z") + .startsAt("2026-06-15T02:55:10.000000Z") + .name("vCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7EhkzGk22yYle2ZOPXJOiEYcNwwBKhoxCdqw8SDS6L7O6ohLm8HBuYz7E9ZuYBAHz0vH45u4SHdXpfYeqMtcfd8wxcygIW1kAzyAHjkW0eFslSf8NaBTyV6GBT8tDHI0zWcr0sMpkdiHOOwl5xIQiAP4UplfuFUQK5yc0JqyEbk4xV1ElwOVp"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -254,20 +254,20 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"2cd7121d-8bd2-4e16-9646-6a19e77f4543"}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(7428) - .pointExpiresAt("2020-08-10T07:46:38.000000Z") + .applicableShopIds(new String[]{"3060f00b-facf-4c26-a79a-1243b013ba73","1263cb08-dfb3-42e0-9202-578872958c2c","b9e1169c-dc01-4ac5-8bca-71ccfd0cd958","73264e6c-d906-4ecf-b0c8-c2fef72ac039","7f0100bc-9c92-4d71-88b3-a9badd1ba7df","8c2fded4-f5ee-4af4-bcec-21a508ea915c","66f83778-dcae-4399-ad12-bffb2fa19250","91f850d3-4476-45c0-822f-4c5d5f82fe02"}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(3942) + .pointExpiresAt("2020-07-21T07:28:16.000000Z") .status("disabled") - .description("WEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4") - .event("topup") - .priority(3913) - .endsAt("2021-04-27T04:59:45.000000Z") - .startsAt("2023-08-03T21:04:35.000000Z") - .name("wQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5"); + .description("HVeJGZnQaE4lp3S7TMyfZKpPybiZ1Lwce18e7Eq5OqW") + .event("external-transaction") + .priority(6773) + .endsAt("2023-12-11T01:06:47.000000Z") + .startsAt("2025-04-01T00:20:36.000000Z") + .name("abdRaaHOyfGqVUncXzhjskeGyZxmbEy050Zlv3tzVr8aTPDqMKbxS0Vs3OlIrdnx7rU9Fte9Z959oBy13mtel3d8TfJ3Ol39ScasZnA58jo0hnztlMdM7BVfn4iFYyJJXfrDUn2Z5dTBMhYMOaLFSQqsldJHk3l4cpZ7fJl29A3O6y0fQnXOgwkIth5yMW"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -287,21 +287,21 @@ void test12() throws ConnectionError, ProcessingError { items.addProperty("subject_more_than_or_equal", 1000); items.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"45af3000-bd9c-4fdb-85f0-277948842199","4579f524-c4c2-4328-a31f-22e443c598e8","10e80104-025d-4066-84f4-aeddcf984e8d"}) + .applicableShopIds(new String[]{"125f6e3d-0695-46a9-9402-492809c71201","4465c4d6-5490-4390-998f-1bfaf1ffd42f","4a5b02bb-758d-4ae2-889a-7239f44245d9","1b9d8061-7ca1-48a0-b326-7797fe4c9800","9fac0875-ca96-4425-a0c9-587dabe12c5f","6a41877c-d370-4a37-8bf6-28b409f347c5","ae0df4fa-299e-4e01-85c1-693e7eb40a93","58f7dd27-4643-48af-a99f-267bce063a63","67c13f2d-1640-4d57-8422-522531437110","9c9ed0ac-b171-4134-9590-64bb9e1fa380"}) .amountBasedPointRules(new Object[]{items}) - .subject("all") + .subject("money") .setExclusive(false) - .pointExpiresInDays(4348) - .pointExpiresAt("2023-04-11T03:47:25.000000Z") - .status("enabled") - .description("gxIW5ljI6yfgW8z") - .event("external-transaction") - .priority(1582) - .endsAt("2024-07-02T19:52:32.000000Z") - .startsAt("2023-06-26T13:57:53.000000Z") - .name("ul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3Z"); + .pointExpiresInDays(1434) + .pointExpiresAt("2025-02-04T06:48:34.000000Z") + .status("disabled") + .description("BFnJwjrPufrwL5Z4qM5cyeftMbZhJuNsCdqVbAgLZQKQXblhvdQVC38rMOaKHSf5htPpycWdWsbduWBxtfg1Kliu47KITpvwbo61t0xPHohZAfXS5WAq97VI0kJjyO9S00lRKqhRSKyv4aeUNi") + .event("topup") + .priority(6011) + .endsAt("2021-04-18T17:19:49.000000Z") + .startsAt("2026-06-22T14:19:23.000000Z") + .name("XisF2lvLdWFAH9CECfmZyvOgcw2bcIoYI3B409EBsOM5mHn7CA1SM3xNEFCgQheyCbSnP7P0SqnjQBF0gNpyvaBHzjlAdXU9fbl4BElEfYJcTmiRof0lbldCRsSSTgoxqh3aCnDQum7xlHp8mSoN73gaH3XPjunt8NgffostplBJ13qPcXVXQ9E7OqefuC0zsB8aQbgel1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -348,68 +348,30 @@ void test13() throws ConnectionError, ProcessingError { JsonObject items6 = new JsonObject(); items6.addProperty("point_amount", 5); items6.addProperty("point_amount_unit", "percent"); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("subject_more_than_or_equal", 1000); + items6.addProperty("subject_less_than", 5000); JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); - JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); - JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); - JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); - JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); - JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); - JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); - JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); + items7.addProperty("subject_more_than_or_equal", 1000); + items7.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"a8efe63b-a4f2-46dd-a7ad-14e1f13dc102"}) - .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .amountBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14}) + .applicableShopIds(new String[]{"fb87cbaf-c41c-4edd-9cd6-192d99f1941f","11dd8e58-502e-431a-8c5a-02ce6df77424","63711a88-e93a-4668-8011-3f4de010808d","da5eaeb7-6456-465f-9886-1bc38a9c8213","a5195447-4fe6-4b17-ab17-75fa94fa32c8","dffecc9e-91a7-4fb0-8571-954138ca4b24","7f90598f-35c0-49e9-a4c8-2f47679874d6"}) + .productBasedPointRules(new Object[]{items,items2,items3,items4,items5}) + .amountBasedPointRules(new Object[]{items6,items7}) .subject("money") .setExclusive(false) - .pointExpiresInDays(3659) - .pointExpiresAt("2021-06-17T19:14:20.000000Z") + .pointExpiresInDays(6114) + .pointExpiresAt("2022-08-04T12:25:19.000000Z") .status("enabled") - .description("iLHRNzuSt") - .event("topup") - .priority(5260) - .endsAt("2023-07-11T20:38:32.000000Z") - .startsAt("2023-02-17T13:06:56.000000Z") - .name("5"); + .description("ZPNRUSJ9iQNhB3KMhlAuhO2DrrEN6v7h6DIeIXBVaS0Zi07XrJykFEWCqS7fIGsg") + .event("payment") + .priority(9511) + .endsAt("2021-06-06T18:20:51.000000Z") + .startsAt("2026-08-19T14:10:45.000000Z") + .name("vzhcyY8O4aW8dVGclxW2nJI1LDT3BhMLUADblZz6ydgd6gveWK49xDzlQxtC3xLL1ERUl6NhqKkDSvghab5bsImY7PcHPZH7mHIXsOqC2xcKBYhL1xCfn"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -430,62 +392,136 @@ void test14() throws ConnectionError, ProcessingError { items2.addProperty("product_code", "4912345678904"); items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("point_amount", 5); - items3.addProperty("point_amount_unit", "percent"); items3.addProperty("product_code", "4912345678904"); - items3.addProperty("is_multiply_by_count", true); - items3.addProperty("required_count", 2); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("subject_more_than_or_equal", 1000); - items7.addProperty("subject_less_than", 5000); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); + JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); + JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); + JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("product_code", "4912345678904"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"0bf31cfc-88a3-4068-9afa-ea2fa03e4be6","afbfbe62-0ccd-4743-af0a-58b9f20c847c","5ebbc218-185d-45de-9ef1-3ebea6890c2d","6b64dc90-6012-49f9-a1c1-6ad23f31ddf8","00c07ff4-fd3e-485d-a15a-ffa16d2ad75f","3be3bc14-7df1-460f-bbfb-fe9a1b0d9ce7","f8d657dd-9a42-4235-a674-a7304a0ab4eb"}) - .blacklistedProductRules(new Object[]{items,items2}) - .productBasedPointRules(new Object[]{items3,items4,items5,items6}) - .amountBasedPointRules(new Object[]{items7,items8,items9}) + .applicableShopIds(new String[]{"72d2b6c5-e470-49ff-9ac0-4c8fabe9ceba","694f2905-710e-4844-8c63-ea07cfaab8ce"}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16,items17,items18}) + .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25}) .subject("money") .setExclusive(true) - .pointExpiresInDays(8956) - .pointExpiresAt("2022-03-04T23:06:48.000000Z") + .pointExpiresInDays(752) + .pointExpiresAt("2024-06-11T18:15:30.000000Z") .status("enabled") - .description("S4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7") - .event("topup") - .priority(4973) - .endsAt("2021-02-15T13:07:43.000000Z") - .startsAt("2021-11-28T01:04:01.000000Z") - .name("YOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUe"); + .description("uiKajpcQf4nuECfdVUoATZ0pZ1FEusk3svdOIWNVH") + .event("payment") + .priority(4166) + .endsAt("2026-02-27T00:04:37.000000Z") + .startsAt("2020-07-01T15:28:21.000000Z") + .name("ftM1EZPsd7jOC"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -506,95 +542,115 @@ void test15() throws ConnectionError, ProcessingError { items2.addProperty("product_code", "4912345678904"); items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("point_amount", 5); - items3.addProperty("point_amount_unit", "percent"); items3.addProperty("product_code", "4912345678904"); - items3.addProperty("is_multiply_by_count", true); - items3.addProperty("required_count", 2); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); - JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("product_code", "4912345678904"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"791e97e5-0acd-4a8c-b3e0-cae0a65b15a5","6fcd9095-8271-4b75-a419-c905a0c5ceb8","ea40e6eb-a11b-4c6e-bf2f-3cffd4bbd8e8"}) - .applicableDaysOfWeek(new Integer[]{2,0,0}) - .blacklistedProductRules(new Object[]{items,items2}) - .productBasedPointRules(new Object[]{items3,items4,items5,items6,items7,items8}) - .amountBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15}) + .applicableShopIds(new String[]{"ecef33d4-94de-4c76-a75d-1897100637d9","820bd81f-bbe7-4bd1-99c4-451618048309","c935d24f-1a44-4619-8e54-40d86dea4600","3675845b-840a-43b3-bb59-ea5554351a33"}) + .applicableDaysOfWeek(new Integer[]{1,5,1,2,5,2,4}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16}) + .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21}) .subject("money") - .setExclusive(false) - .pointExpiresInDays(2128) - .pointExpiresAt("2024-10-10T07:55:01.000000Z") + .setExclusive(true) + .pointExpiresInDays(6624) + .pointExpiresAt("2021-08-31T10:50:51.000000Z") .status("enabled") - .description("FHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEP") - .event("topup") - .priority(8523) - .endsAt("2021-11-23T18:33:31.000000Z") - .startsAt("2021-01-31T00:28:24.000000Z") - .name("oSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHa"); + .description("b1wlkuiN7kKWKFoxKeA9tuL5LH4EHPGJy8ZSoJ1krFHQyhzGXerHPOPDvrwRgeSOaGF6stofVWAQmmxPEjbZK4rVxAUW7FWHkKwdg67") + .event("payment") + .priority(7084) + .endsAt("2021-02-16T13:26:48.000000Z") + .startsAt("2022-07-26T14:33:07.000000Z") + .name("9FNaTUuVqVNtvvxMPy8uYVQrlAwBlTLDHylYVoU0Lud9b5MHdM8UnuwQ7jNoaulXZjgrVDfW2ufNp0gAs9phyFh2aSmdruAKFNN9YCEWSULZdpylXeF6qvGwUl7ATMaf3NqLOcKmTPNREiEdfOxleMzyqb14XnQoYrg3WK0gxDGSVD8anN0lX3R6Ngh2OA"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -621,11 +677,11 @@ void test16() throws ConnectionError, ProcessingError { items4.addProperty("from", "12:00"); items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); items7.addProperty("product_code", "4912345678904"); items7.addProperty("classification_code", "c123"); @@ -642,100 +698,14 @@ void test16() throws ConnectionError, ProcessingError { items11.addProperty("product_code", "4912345678904"); items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); - JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); - JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); - Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" - ) - .applicableShopIds(new String[]{"665bd1f0-f440-44bc-be41-b47706657b29","7e5efba8-b7db-48b5-9690-11c0d917747b","2ae873a8-83fc-4fe3-b00c-e8b7419c7243","01362a45-e437-431f-9ab8-5e4a8c007ea3"}) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) - .applicableDaysOfWeek(new Integer[]{3,0,3,5,4,3}) - .blacklistedProductRules(new Object[]{items7,items8,items9,items10,items11}) - .productBasedPointRules(new Object[]{items12,items13}) - .amountBasedPointRules(new Object[]{items14}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(2497) - .pointExpiresAt("2024-01-03T05:55:35.000000Z") - .status("disabled") - .description("rDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7") - .event("external-transaction") - .priority(1092) - .endsAt("2021-04-25T19:58:00.000000Z") - .startsAt("2023-12-12T17:28:09.000000Z") - .name("xM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test17() throws ConnectionError, ProcessingError { - JsonObject items = new JsonObject(); - items.addProperty("from", "12:00"); - items.addProperty("to", "23:59"); - JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); - JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); - JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); - JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); - JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); - JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); - JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); - JsonObject items9 = new JsonObject(); - items9.addProperty("from", "12:00"); - items9.addProperty("to", "23:59"); - JsonObject items10 = new JsonObject(); - items10.addProperty("from", "12:00"); - items10.addProperty("to", "23:59"); - JsonObject items11 = new JsonObject(); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); - JsonObject items12 = new JsonObject(); items12.addProperty("product_code", "4912345678904"); items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); items13.addProperty("product_code", "4912345678904"); items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); @@ -751,27 +721,23 @@ void test17() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); @@ -797,52 +763,26 @@ void test17() throws ConnectionError, ProcessingError { items25.addProperty("point_amount_unit", "percent"); items25.addProperty("subject_more_than_or_equal", 1000); items25.addProperty("subject_less_than", 5000); - JsonObject items26 = new JsonObject(); - items26.addProperty("point_amount", 5); - items26.addProperty("point_amount_unit", "percent"); - items26.addProperty("subject_more_than_or_equal", 1000); - items26.addProperty("subject_less_than", 5000); - JsonObject items27 = new JsonObject(); - items27.addProperty("point_amount", 5); - items27.addProperty("point_amount_unit", "percent"); - items27.addProperty("subject_more_than_or_equal", 1000); - items27.addProperty("subject_less_than", 5000); - JsonObject items28 = new JsonObject(); - items28.addProperty("point_amount", 5); - items28.addProperty("point_amount_unit", "percent"); - items28.addProperty("subject_more_than_or_equal", 1000); - items28.addProperty("subject_less_than", 5000); - JsonObject items29 = new JsonObject(); - items29.addProperty("point_amount", 5); - items29.addProperty("point_amount_unit", "percent"); - items29.addProperty("subject_more_than_or_equal", 1000); - items29.addProperty("subject_less_than", 5000); - JsonObject items30 = new JsonObject(); - items30.addProperty("point_amount", 5); - items30.addProperty("point_amount_unit", "percent"); - items30.addProperty("subject_more_than_or_equal", 1000); - items30.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"19d1647b-ebd5-4d38-8e76-2ae67165ef7e","087097ad-1654-447e-8150-50e768378ea5","4c662b03-c8da-41d1-9d25-c092b6723f1b","191baaef-c3de-41aa-87c7-3ca684b65158","88781984-43ab-444c-a5dc-4fbaf39c77db"}) - .minimumNumberOfProducts(3555) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) - .applicableDaysOfWeek(new Integer[]{0,4,5,5,6,4,6,2,2}) - .blacklistedProductRules(new Object[]{items11,items12,items13}) - .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20}) - .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27,items28,items29,items30}) + .applicableShopIds(new String[]{"3c4abb95-c87b-46e9-acb1-6a5b133f2f9c","23529242-f2a1-4ae3-aefc-8726fb2c0788","291e7d77-d8e6-4f27-9402-6d527a36054c"}) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{4,5}) + .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13,items14}) + .productBasedPointRules(new Object[]{items15,items16}) + .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(7051) - .pointExpiresAt("2023-09-27T07:08:06.000000Z") - .status("disabled") - .description("W") + .setExclusive(true) + .pointExpiresInDays(1953) + .pointExpiresAt("2023-02-07T02:02:28.000000Z") + .status("enabled") + .description("nORwuCknsFuOeDw3ETEoYbDEhr0AwKkiQOHCQCIIRDiJ5EWSps1CcPm4CujuDviyaRPbQTt1c2CSzS35RxVGrM7sDhsRor5EZrBgBnWdBpXW3vXZAsIGmxl3OdV3odlFFoKvu4lobeulXI7c3F9nyrjjRiAP0nDGe4yWdLtrR0H47hbbD") .event("topup") - .priority(9103) - .endsAt("2020-12-09T22:09:02.000000Z") - .startsAt("2021-09-03T10:28:08.000000Z") - .name("gkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSk"); + .priority(9660) + .endsAt("2025-12-12T18:17:10.000000Z") + .startsAt("2025-05-14T08:24:07.000000Z") + .name("kQWYC4RWqJwsq2yT7AWpCDkyLBkYzAxemZaKowuUfekyaJIsuHhxZpopNYyv6dLAyty2EMgPVlahlWYdbEevpLkzdUFCwG4QGOnpUXmwhMFkO9ufFPOzF9Lvv7JJIkMwpNGlwPY7w3AePumXzLvyF75pQlwzsKLA3j0RsOTGgnfI7tlICoQDpnLAiZiYSVIBpBUCCSgk4gnk7sP6E17lkMgQrA88yuG2X4KRl"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -855,16 +795,16 @@ void test17() throws ConnectionError, ProcessingError { } } @Test - void test18() throws ConnectionError, ProcessingError { + void test17() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); items4.addProperty("product_code", "4912345678904"); items4.addProperty("classification_code", "c123"); @@ -872,8 +812,11 @@ void test18() throws ConnectionError, ProcessingError { items5.addProperty("product_code", "4912345678904"); items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); + items6.addProperty("is_multiply_by_count", true); + items6.addProperty("required_count", 2); JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); @@ -883,71 +826,49 @@ void test18() throws ConnectionError, ProcessingError { JsonObject items8 = new JsonObject(); items8.addProperty("point_amount", 5); items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); + items8.addProperty("subject_more_than_or_equal", 1000); + items8.addProperty("subject_less_than", 5000); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("is_multiply_by_count", true); - items9.addProperty("required_count", 2); + items9.addProperty("subject_more_than_or_equal", 1000); + items9.addProperty("subject_less_than", 5000); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); + items10.addProperty("subject_more_than_or_equal", 1000); + items10.addProperty("subject_less_than", 5000); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("subject_more_than_or_equal", 1000); + items11.addProperty("subject_less_than", 5000); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); - JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); - JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); + items12.addProperty("subject_more_than_or_equal", 1000); + items12.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"e1ef4e5b-98c3-4141-aa7d-dc9806f8574a","3d677403-3855-4052-9182-f52ebfd6c230","5bc8c0f8-aa63-4404-8e3b-a6fde5a8cf99","5ff1b2b8-f70f-44ae-b6b3-d492c66406d8","7402eac7-2d7f-4eef-b8bb-0ece2b8f2baa","73e14b94-6a24-4196-9fd9-7e4238bf9b20","4bda5afa-68d1-4946-b287-2bb6b6968aae"}) - .minimumNumberOfAmount(4947) - .minimumNumberOfProducts(9626) - .applicableTimeRanges(new Object[]{items,items2,items3}) - .applicableDaysOfWeek(new Integer[]{5}) - .blacklistedProductRules(new Object[]{items4,items5,items6}) - .productBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13}) - .amountBasedPointRules(new Object[]{items14,items15}) + .applicableShopIds(new String[]{"814c7591-2ac8-48de-9a98-0e65ed0f2df7"}) + .minimumNumberOfProducts(9500) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{2,3,6,6,6,0}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5}) + .productBasedPointRules(new Object[]{items6,items7}) + .amountBasedPointRules(new Object[]{items8,items9,items10,items11,items12}) .subject("money") .setExclusive(true) - .pointExpiresInDays(8694) - .pointExpiresAt("2022-09-02T12:19:44.000000Z") + .pointExpiresInDays(6977) + .pointExpiresAt("2021-03-25T22:03:10.000000Z") .status("enabled") - .description("k8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2") + .description("4V9XHbL6zY6vqwgcI7YPEPHgGnEdzhGAMty3evJw") .event("payment") - .priority(6282) - .endsAt("2021-11-17T13:16:21.000000Z") - .startsAt("2022-04-03T18:49:21.000000Z") - .name("ISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNe"); + .priority(9180) + .endsAt("2021-10-10T00:44:13.000000Z") + .startsAt("2022-07-02T22:19:32.000000Z") + .name("tJxO93cN0lVNG0lwTGLR8ci2cIIE66fhj2n6iiZ64HpvFGkJr1uo4NLstnS7EAbDgQaYkUrDsQyk3kwOisNW9XsMHBVPsrsYBnLGXRYzu4noxPXNWpdUvBBp2JsuVIINCRpxja7me48LNXqpqJtjZwJILsuUBm8J0tu2v6zDKp9iO7Ari3UHmo6XPE5Oqy1DljVh9nsqgz"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -960,7 +881,7 @@ void test18() throws ConnectionError, ProcessingError { } } @Test - void test19() throws ConnectionError, ProcessingError { + void test18() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -971,11 +892,11 @@ void test19() throws ConnectionError, ProcessingError { items3.addProperty("from", "12:00"); items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); items6.addProperty("product_code", "4912345678904"); items6.addProperty("classification_code", "c123"); @@ -986,57 +907,48 @@ void test19() throws ConnectionError, ProcessingError { items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("subject_more_than_or_equal", 1000); + items10.addProperty("subject_less_than", 5000); JsonObject items11 = new JsonObject(); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); + items11.addProperty("subject_more_than_or_equal", 1000); + items11.addProperty("subject_less_than", 5000); JsonObject items12 = new JsonObject(); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); - JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); - JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("subject_more_than_or_equal", 1000); + items12.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"ea40d6af-7b3f-4c08-9159-f70e61ca749a","4a5ab74a-0b58-4d44-863c-e9eed14e244e"}) - .minimumNumberForCombinationPurchase(283) - .minimumNumberOfAmount(517) - .minimumNumberOfProducts(1645) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) - .applicableDaysOfWeek(new Integer[]{3,4,5,4,2}) - .blacklistedProductRules(new Object[]{items6,items7,items8,items9,items10,items11,items12}) - .productBasedPointRules(new Object[]{items13,items14}) - .amountBasedPointRules(new Object[]{items15}) + .applicableShopIds(new String[]{"afe859bb-464b-47e7-bdb5-efbd4c9fc0d3","e1f5fdad-c75c-4b7f-bd5f-cb46115355d3","366389f0-b7ff-4fa4-967b-c3e3479aa161","15e57e21-12e9-420a-aaa2-4c97624986fb","30b61c7c-710a-400e-8e1b-3457515dd071","5e8c815c-95cd-4456-9fc5-caa5b1d5b62c","c06ffd27-3a02-4479-915e-f6d86c7ea10c","89682910-831a-4f69-a782-2aaa78fa33bc"}) + .minimumNumberOfAmount(8418) + .minimumNumberOfProducts(3006) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{4,4,0,2,6}) + .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8}) + .productBasedPointRules(new Object[]{items9}) + .amountBasedPointRules(new Object[]{items10,items11,items12}) .subject("money") .setExclusive(false) - .pointExpiresInDays(2474) - .pointExpiresAt("2024-02-17T17:44:31.000000Z") + .pointExpiresInDays(306) + .pointExpiresAt("2022-11-15T12:49:18.000000Z") .status("disabled") - .description("kSjhKrHXePF1aNsQcGEPe") + .description("YbmwucdTPjBOMyHVeFGY5vB7gjE0J3rzoZQgeuXW4rw3Ob3VUIWbzDljJ6klDtciJUcw1wir4yYsQVBNqeXloDbzzGADkOfMAKTboQcaiYXr4rnNnjCoeQH") .event("external-transaction") - .priority(2179) - .endsAt("2021-03-25T18:53:17.000000Z") - .startsAt("2021-03-20T20:56:39.000000Z") - .name("2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3Tb"); + .priority(2125) + .endsAt("2022-09-16T22:42:40.000000Z") + .startsAt("2024-04-23T23:51:24.000000Z") + .name("XiGNUysmU86lvAOTbcLzXO1sbMRuBNUlL6K0ReLv75kg6qcs3cEpI1m3wABqtL3bdaVTKdkTjUxGpAh3awQssfAXqJYYr4ARYbJcmLujs894lRg4qB30GRMkbzDn742"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1049,7 +961,7 @@ void test19() throws ConnectionError, ProcessingError { } } @Test - void test20() throws ConnectionError, ProcessingError { + void test19() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -1069,47 +981,32 @@ void test20() throws ConnectionError, ProcessingError { items6.addProperty("from", "12:00"); items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); JsonObject items9 = new JsonObject(); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("from", "12:00"); + items9.addProperty("to", "23:59"); JsonObject items10 = new JsonObject(); items10.addProperty("product_code", "4912345678904"); items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("classification_code", "c123"); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); @@ -1119,13 +1016,15 @@ void test20() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("subject_more_than_or_equal", 1000); - items17.addProperty("subject_less_than", 5000); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("subject_more_than_or_equal", 1000); - items18.addProperty("subject_less_than", 5000); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); @@ -1152,29 +1051,28 @@ void test20() throws ConnectionError, ProcessingError { items23.addProperty("subject_more_than_or_equal", 1000); items23.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"bd452a4a-a4dc-4f4e-89ba-cf32576de231","a22149e1-feb8-47e8-915a-267408c21dfc","977b3b6d-e535-492b-8273-8f5fd2ef37ef","2ecfa17d-cbb8-404d-9aa4-ec2cae65e87a"}) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(7169) - .minimumNumberOfAmount(8480) - .minimumNumberOfProducts(3386) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) - .applicableDaysOfWeek(new Integer[]{4,3,6,5,0,4,1,6}) - .blacklistedProductRules(new Object[]{items7,items8,items9,items10}) - .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16}) - .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23}) - .subject("all") - .setExclusive(false) - .pointExpiresInDays(933) - .pointExpiresAt("2021-10-23T00:17:29.000000Z") - .status("enabled") - .description("hdalQqRPyTvG2tPeRbQcNODGa3Iheb") - .event("payment") - .priority(6052) - .endsAt("2020-05-02T03:16:50.000000Z") - .startsAt("2023-01-31T02:06:10.000000Z") - .name("xi8kuGoSk8mm"); + .applicableShopIds(new String[]{"70468d38-978f-46bc-8b6d-c836cd80b0e6","69743740-acc4-4bc1-abf3-c4fefa994190","abe96258-f088-4d04-9c43-a186292597e3","2ac5a16a-b153-442b-a721-0a7f684f10ee","5436ed4d-7525-4f3e-91f7-b6dd3b7d61eb","720af602-5279-43d5-96c4-0fb7d3a8e343","e4bc824e-ac1c-4a87-a902-d30dc8ac966c"}) + .minimumNumberForCombinationPurchase(2931) + .minimumNumberOfAmount(1177) + .minimumNumberOfProducts(3272) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .applicableDaysOfWeek(new Integer[]{5,5,3}) + .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15}) + .productBasedPointRules(new Object[]{items16,items17,items18}) + .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(9153) + .pointExpiresAt("2020-12-07T15:48:04.000000Z") + .status("disabled") + .description("OwW2YlKo3D8R") + .event("external-transaction") + .priority(7431) + .endsAt("2023-07-05T10:41:32.000000Z") + .startsAt("2021-01-10T02:04:25.000000Z") + .name("F9uqtTYDUe0c6WMBb0vMyrrNo2CtAij6bFWlBc9nMouBhD3xaVyDbF9dQAdVbIjdKodnIqsg2hwfCC3ynrJLnPSb5d8avvWNGGZpHcQub7jyKGPEze4eDg0kaj205Q9Vfs0xgdWlEYjRq"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1187,79 +1085,151 @@ void test20() throws ConnectionError, ProcessingError { } } @Test - void test21() throws ConnectionError, ProcessingError { + void test20() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("classification_code", "c123"); + JsonObject items12 = new JsonObject(); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("classification_code", "c123"); + JsonObject items13 = new JsonObject(); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("classification_code", "c123"); + JsonObject items14 = new JsonObject(); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("classification_code", "c123"); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("product_code", "4912345678904"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("product_code", "4912345678904"); + items20.addProperty("is_multiply_by_count", true); + items20.addProperty("required_count", 2); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("product_code", "4912345678904"); + items21.addProperty("is_multiply_by_count", true); + items21.addProperty("required_count", 2); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("product_code", "4912345678904"); + items22.addProperty("is_multiply_by_count", true); + items22.addProperty("required_count", 2); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); + JsonObject items26 = new JsonObject(); + items26.addProperty("point_amount", 5); + items26.addProperty("point_amount_unit", "percent"); + items26.addProperty("subject_more_than_or_equal", 1000); + items26.addProperty("subject_less_than", 5000); + JsonObject items27 = new JsonObject(); + items27.addProperty("point_amount", 5); + items27.addProperty("point_amount_unit", "percent"); + items27.addProperty("subject_more_than_or_equal", 1000); + items27.addProperty("subject_less_than", 5000); + JsonObject items28 = new JsonObject(); + items28.addProperty("point_amount", 5); + items28.addProperty("point_amount_unit", "percent"); + items28.addProperty("subject_more_than_or_equal", 1000); + items28.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"ad657cd0-bc17-4b81-be41-31c7e1574a3a","380985b5-1e54-455b-bbe1-5f9811272b0d","201963cf-54d3-4ea9-834a-cc24eafd9672","3cad24c6-4cf7-4c0f-9554-3a361170f0c9"}) - .maxPointAmount(9678) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(2514) - .minimumNumberOfAmount(3114) - .minimumNumberOfProducts(8416) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{4,4}) - .blacklistedProductRules(new Object[]{items2,items3,items4,items5}) - .productBasedPointRules(new Object[]{items6,items7}) - .amountBasedPointRules(new Object[]{items8,items9,items10,items11}) + .applicableShopIds(new String[]{"d6a98b5d-fa3a-4b4f-81fc-d728c361e2e2"}) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(3651) + .minimumNumberOfAmount(4110) + .minimumNumberOfProducts(2007) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .applicableDaysOfWeek(new Integer[]{1,5,2,0,4,4,2}) + .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13,items14}) + .productBasedPointRules(new Object[]{items15,items16,items17,items18,items19,items20,items21,items22}) + .amountBasedPointRules(new Object[]{items23,items24,items25,items26,items27,items28}) .subject("money") - .setExclusive(false) - .pointExpiresInDays(1367) - .pointExpiresAt("2023-06-12T23:49:59.000000Z") + .setExclusive(true) + .pointExpiresInDays(5218) + .pointExpiresAt("2023-06-22T02:22:22.000000Z") .status("disabled") - .description("vsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DM") - .event("external-transaction") - .priority(4015) - .endsAt("2020-07-01T14:25:53.000000Z") - .startsAt("2023-05-21T06:48:20.000000Z") - .name("Wi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q9"); + .description("G8IRGQBS0nchLLndRaY2NqmWOdlkOhTjC67yWAbgIrPt858HfVR") + .event("payment") + .priority(9016) + .endsAt("2022-05-20T00:53:39.000000Z") + .startsAt("2026-01-19T06:57:08.000000Z") + .name("5UPvkC2RO0Ka4lYXy6v8yeYaDtl3yxclWSiWAV8VoZ5q4f3l3OfQm9YtxuJKrDFgfnOa5xAhF9FsFDzTIAFGDPhpB"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1272,13 +1242,13 @@ void test21() throws ConnectionError, ProcessingError { } } @Test - void test22() throws ConnectionError, ProcessingError { + void test21() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); items3.addProperty("product_code", "4912345678904"); items3.addProperty("classification_code", "c123"); @@ -1289,11 +1259,8 @@ void test22() throws ConnectionError, ProcessingError { items5.addProperty("product_code", "4912345678904"); items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); @@ -1321,34 +1288,83 @@ void test22() throws ConnectionError, ProcessingError { JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); + JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"42acff7f-c5af-4ed0-9857-8370aca60182","dc69a240-d8cc-49a1-9ebe-89bfab4db297","5066581b-f502-459e-ad0a-912d01504a0d"}) - .maxTotalPointAmount(839) - .maxPointAmount(1358) + .applicableShopIds(new String[]{"7e0df9e7-359a-45a1-9ebb-07084b8bbe14","69c7239d-6822-4dcb-8eed-858c548ca07a","9738bdad-d345-42e0-81d2-0c1cde695316","bb9fe39b-7cca-4ab1-9887-1a7223a58976","d0861901-edac-4640-ad2c-5771337441c9","900d4931-4e93-4de2-8fa5-7cd306780ef3","1b72ec52-7509-4923-ab27-616bf6679d01","28d11cac-9f6a-451f-bd7d-3cd1d498a182","e8bd07a9-52d6-4c42-9cb7-840680e1053c","0a6b875f-9eae-4657-9097-1951cda5862b"}) + .maxPointAmount(5985) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(8401) - .minimumNumberOfAmount(9108) - .minimumNumberOfProducts(7700) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{6,1,4}) - .blacklistedProductRules(new Object[]{items2,items3,items4,items5}) - .productBasedPointRules(new Object[]{items6,items7,items8,items9,items10}) - .amountBasedPointRules(new Object[]{items11}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(2656) - .pointExpiresAt("2020-03-09T16:28:30.000000Z") - .status("disabled") - .description("rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQo") + .minimumNumberForCombinationPurchase(9254) + .minimumNumberOfAmount(1359) + .minimumNumberOfProducts(693) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{3,6,3,6,1,1}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6}) + .productBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14,items15}) + .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(8076) + .pointExpiresAt("2021-01-21T14:09:48.000000Z") + .status("enabled") + .description("eX4akuWpKD9afhWN8gpYbk1UQRVGeT6q9QlLL4St0RhV6KdSsO2fKUxMoBriyYb61zvPjBcIHUY8RekKTAhSuM7Lo0VuZ1eCkX9fHokIFlVQAOjB0XTIEf02Fg3NvwAf7hOlSBfFEUcOQMXEYHzF8m9cIjwUyTMaVMoVAP5OP1CjryzsDN5Z0UkOPXKep") .event("payment") - .priority(1355) - .endsAt("2022-03-07T14:25:07.000000Z") - .startsAt("2021-11-08T00:38:06.000000Z") - .name("Wzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnN"); + .priority(4957) + .endsAt("2024-04-11T15:21:58.000000Z") + .startsAt("2023-02-20T03:26:34.000000Z") + .name("sPNeua1jB7iZEF7xhaxWIxTjjuPniB6yr4Okg2Udv9iXSqMQb8J3iQSJeJic2mGuJKmsKLe"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1361,10 +1377,7 @@ void test22() throws ConnectionError, ProcessingError { } } @Test - void test23() throws ConnectionError, ProcessingError { - JsonObject applicable_account_metadata = new JsonObject(); - applicable_account_metadata.addProperty("key", "sex"); - applicable_account_metadata.addProperty("value", "male"); + void test22() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -1372,8 +1385,8 @@ void test23() throws ConnectionError, ProcessingError { items2.addProperty("from", "12:00"); items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); items4.addProperty("product_code", "4912345678904"); items4.addProperty("classification_code", "c123"); @@ -1390,8 +1403,11 @@ void test23() throws ConnectionError, ProcessingError { items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); @@ -1407,27 +1423,23 @@ void test23() throws ConnectionError, ProcessingError { JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("subject_more_than_or_equal", 1000); + items12.addProperty("subject_less_than", 5000); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); @@ -1453,33 +1465,37 @@ void test23() throws ConnectionError, ProcessingError { items20.addProperty("point_amount_unit", "percent"); items20.addProperty("subject_more_than_or_equal", 1000); items20.addProperty("subject_less_than", 5000); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"548de50d-4dd0-481b-b954-6a98ef7f3761","414931f3-20a7-4cf1-b149-cc2caa3f61c6","e94e7191-01e5-4e78-8af8-9919c1e50648","aa68976f-2da4-46cf-bd73-a7147a409559","5ab17d17-8533-4ad8-932f-a7ed13f41ce6","8b3fff53-088f-412b-834d-e0cddb9a8ddb","33cdbec0-a8c9-4d07-b0dc-35059caf39e8","6a024150-328a-49fb-bc49-f9cf0c989163"}) - .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(1905) - .maxPointAmount(6824) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(1909) - .minimumNumberOfAmount(1160) - .minimumNumberOfProducts(8172) - .applicableTimeRanges(new Object[]{items,items2,items3}) - .applicableDaysOfWeek(new Integer[]{5,3,6,6,6,0,6,5,1}) - .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8,items9}) - .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15}) - .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20}) + .applicableShopIds(new String[]{"f450090c-be86-4c56-8be9-2a89f22f8bff","c82b4d77-59bf-4ce8-bdbe-ad7d6ee3001d","d55f55b5-a258-4e13-a830-dede305a358e","e083fc4f-3682-420e-a80e-21103f15cfe5","a2c23cb1-1f8c-4ac5-8048-cbfebf64c995","27595373-b874-4232-b64f-84261f224b84","f4c85bec-de75-4cce-be41-3685d9f24a92","96ad9469-2e05-4778-ba9a-10f36a0a3a36"}) + .maxTotalPointAmount(68) + .maxPointAmount(9906) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(8109) + .minimumNumberOfAmount(4979) + .minimumNumberOfProducts(2537) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{2,4,5,4,3}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11}) + .amountBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18,items19,items20,items21}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(3296) - .pointExpiresAt("2020-09-13T21:12:42.000000Z") - .status("disabled") - .description("epcLNjePvmbsJ6aAodX3l") - .event("external-transaction") - .priority(2387) - .endsAt("2023-10-18T12:31:22.000000Z") - .startsAt("2020-10-24T22:23:54.000000Z") - .name("TfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiB"); + .setExclusive(false) + .pointExpiresInDays(8907) + .pointExpiresAt("2023-12-23T07:53:58.000000Z") + .status("enabled") + .description("kUyg63OuNEg3mOoFwMhlx1RPa6KYFReAbXhU3xeAmdgIIk86pUwNP4PXVypEGcP3yMzT6mxM4uuK6GdmBVGY71PucWuEB8iBjiFIbSubHrvAi7K4jyfS9") + .event("topup") + .priority(305) + .endsAt("2023-04-12T04:16:29.000000Z") + .startsAt("2021-04-21T19:11:56.000000Z") + .name("S1q6jH34UfMTbaogiuk2Hs0mRi4FH4wAH9Jfj7o054MsL4b1CJFFK6iXZLbDkWhxmVZQrN7vHF2MDKVtEIQupvmKHRwHKhrE1cew1CNfgi7sglFQ4wI7YctoKArmPX6ICAqae4Gsnk7CCks4Hk5SfM8qCg753Xc8sxEuuaOPh40uyY7zIQa1dL"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1492,10 +1508,7 @@ void test23() throws ConnectionError, ProcessingError { } } @Test - void test24() throws ConnectionError, ProcessingError { - JsonObject applicable_transaction_metadata = new JsonObject(); - applicable_transaction_metadata.addProperty("key", "rank"); - applicable_transaction_metadata.addProperty("value", "bronze"); + void test23() throws ConnectionError, ProcessingError { JsonObject applicable_account_metadata = new JsonObject(); applicable_account_metadata.addProperty("key", "sex"); applicable_account_metadata.addProperty("value", "male"); @@ -1512,8 +1525,8 @@ void test24() throws ConnectionError, ProcessingError { items4.addProperty("from", "12:00"); items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); JsonObject items6 = new JsonObject(); items6.addProperty("product_code", "4912345678904"); items6.addProperty("classification_code", "c123"); @@ -1596,34 +1609,58 @@ void test24() throws ConnectionError, ProcessingError { items20.addProperty("point_amount_unit", "percent"); items20.addProperty("subject_more_than_or_equal", 1000); items20.addProperty("subject_less_than", 5000); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"fe324792-ddfe-466e-95fd-8c2c05c73622","a60dbc42-604c-469d-817d-e056cf36cb2f","5a0d7700-11b9-458f-b725-fdbe5209707e","59d32859-b0e6-40f4-8b29-cf54fb00a9be","d8200119-694d-43f0-88e8-78936ced7ea8","62f9d31d-4857-43de-8dd5-fbcb5a541abc","54ca7a33-7d99-411d-bcc0-53dc97515b91","3a58a4a3-0f0f-4b5e-9bae-03d33b971019","5b5e1a3e-c79a-490a-93c3-8e0cc560226d"}) - .applicableTransactionMetadata(applicable_transaction_metadata) + .applicableShopIds(new String[]{"9d042d78-6727-4587-b28d-2b80ec4f747b","7e3359c8-f018-468b-8705-b931f16986b1","cb452381-4876-4310-b7ab-d2b1d227ed76","29656af1-cc34-4637-9f23-f540cb1a084d","b4663817-bbf7-47be-8265-0affef0d67bc","0deb87cc-e264-47b7-8113-a7bc31e04e29"}) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(2112) - .maxPointAmount(7523) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(5593) - .minimumNumberOfAmount(2306) - .minimumNumberOfProducts(2160) - .applicableTimeRanges(new Object[]{items,items2,items3,items4}) - .applicableDaysOfWeek(new Integer[]{4,2,3}) - .blacklistedProductRules(new Object[]{items5,items6}) + .maxTotalPointAmount(3142) + .maxPointAmount(3673) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(6959) + .minimumNumberOfAmount(1177) + .minimumNumberOfProducts(317) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) + .applicableDaysOfWeek(new Integer[]{6,3,2,2,3,0,1,6,1,1}) + .blacklistedProductRules(new Object[]{items6}) .productBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14,items15}) - .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(5043) - .pointExpiresAt("2024-04-08T07:42:21.000000Z") + .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23,items24,items25}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(3492) + .pointExpiresAt("2023-12-04T20:55:02.000000Z") .status("enabled") - .description("HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJ") - .event("payment") - .priority(4953) - .endsAt("2022-10-28T17:56:15.000000Z") - .startsAt("2022-09-07T01:00:52.000000Z") - .name("zM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gU"); + .description("e") + .event("topup") + .priority(1977) + .endsAt("2024-11-06T08:36:28.000000Z") + .startsAt("2025-08-17T01:58:20.000000Z") + .name("z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1g"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1636,7 +1673,7 @@ void test24() throws ConnectionError, ProcessingError { } } @Test - void test25() throws ConnectionError, ProcessingError { + void test24() throws ConnectionError, ProcessingError { JsonObject applicable_transaction_metadata = new JsonObject(); applicable_transaction_metadata.addProperty("key", "rank"); applicable_transaction_metadata.addProperty("value", "bronze"); @@ -1662,11 +1699,11 @@ void test25() throws ConnectionError, ProcessingError { items6.addProperty("from", "12:00"); items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); JsonObject items9 = new JsonObject(); items9.addProperty("product_code", "4912345678904"); items9.addProperty("classification_code", "c123"); @@ -1727,18 +1764,21 @@ void test25() throws ConnectionError, ProcessingError { JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("subject_more_than_or_equal", 1000); - items21.addProperty("subject_less_than", 5000); + items21.addProperty("product_code", "4912345678904"); + items21.addProperty("is_multiply_by_count", true); + items21.addProperty("required_count", 2); JsonObject items22 = new JsonObject(); items22.addProperty("point_amount", 5); items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("subject_more_than_or_equal", 1000); - items22.addProperty("subject_less_than", 5000); + items22.addProperty("product_code", "4912345678904"); + items22.addProperty("is_multiply_by_count", true); + items22.addProperty("required_count", 2); JsonObject items23 = new JsonObject(); items23.addProperty("point_amount", 5); items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("subject_more_than_or_equal", 1000); - items23.addProperty("subject_less_than", 5000); + items23.addProperty("product_code", "4912345678904"); + items23.addProperty("is_multiply_by_count", true); + items23.addProperty("required_count", 2); JsonObject items24 = new JsonObject(); items24.addProperty("point_amount", 5); items24.addProperty("point_amount_unit", "percent"); @@ -1769,109 +1809,39 @@ void test25() throws ConnectionError, ProcessingError { items29.addProperty("point_amount_unit", "percent"); items29.addProperty("subject_more_than_or_equal", 1000); items29.addProperty("subject_less_than", 5000); + JsonObject items30 = new JsonObject(); + items30.addProperty("point_amount", 5); + items30.addProperty("point_amount_unit", "percent"); + items30.addProperty("subject_more_than_or_equal", 1000); + items30.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .applicableShopIds(new String[]{"515ecff8-201a-4a38-af3f-66c8f04c1cd5","29cad8a1-88df-4c22-83f7-23b9d74b818b","3067ab19-5bc9-43ae-841d-99d55cbf7e24","eee0f438-f3e0-412d-9f90-a4a8203c5b76","e395a2b5-2f81-4c9e-b489-dfe537f3b684","5d15713c-d895-4862-abb7-f7b2fcbdcee2","d0e1e5ad-2b16-415b-aef1-bc35b4203ed6","470b7b7f-bd31-4523-bfd0-aa3d1c8ddfae","6dd96f59-7c75-4a20-b913-1a40ca9b00ad"}) - .budgetCapsAmount(1384174614) + .applicableShopIds(new String[]{"5fe48150-b3af-497e-9ea9-34119e1274cf","78737dda-6243-443a-bcd7-742725af97c2"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(8658) - .maxPointAmount(8307) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(2756) - .minimumNumberOfAmount(6332) - .minimumNumberOfProducts(4190) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) - .applicableDaysOfWeek(new Integer[]{2}) - .blacklistedProductRules(new Object[]{items7,items8,items9,items10,items11,items12,items13}) - .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20}) - .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27,items28,items29}) + .maxTotalPointAmount(8510) + .maxPointAmount(11) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(8608) + .minimumNumberOfAmount(7602) + .minimumNumberOfProducts(6403) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .applicableDaysOfWeek(new Integer[]{6,6}) + .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13}) + .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20,items21,items22,items23}) + .amountBasedPointRules(new Object[]{items24,items25,items26,items27,items28,items29,items30}) .subject("all") .setExclusive(false) - .pointExpiresInDays(4908) - .pointExpiresAt("2022-10-17T13:31:06.000000Z") - .status("enabled") - .description("YeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6") - .event("topup") - .priority(4147) - .endsAt("2020-02-27T14:07:49.000000Z") - .startsAt("2024-08-22T02:39:45.000000Z") - .name("adi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQ"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test26() throws ConnectionError, ProcessingError { - Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" - ) - .blacklistedShopIds(new String[]{"33c1f10d-7f75-4dd3-885f-3ce0dd9e03d8","08e97924-828f-43db-a054-d60169b5be6d","5c36650e-200b-4f45-9304-9e52ab9800fd"}); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test27() throws ConnectionError, ProcessingError { - Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" - ) - .blacklistedShopIds(new String[]{"27bedd27-eac5-4d31-9d59-071be2186919","cee2ccd6-0db9-44bd-a5e2-343ffaf5856e","2a08cbd5-e4fb-4307-adc2-c3dfedacf0f0","54fdafc0-effa-4044-b7e4-ba398d86a09d","1db3d69d-0544-4f73-87ee-0e1eeecf054f","eb8785be-dff6-4200-9074-7c5a7194334f"}) - .name("Q7wRQgMzlEQYhb78oA0LE9nGzsoBI"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test28() throws ConnectionError, ProcessingError { - Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" - ) - .blacklistedShopIds(new String[]{"181b2253-cf2e-4bbe-835a-347dcc32fa82","e7c3d7c5-35ee-4726-9090-186312946d43"}) - .startsAt("2021-10-14T04:55:45.000000Z") - .name("jIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test29() throws ConnectionError, ProcessingError { - Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" - ) - .blacklistedShopIds(new String[]{"e8a11a2f-1048-45bc-baa1-4406603cd51c","15f675e2-e918-428a-8eb0-750f38ecf587","03b5052a-7c8a-490e-828c-4af6479316b5","4c092bb1-a14a-4711-8ee5-f5bcd23e2278","df8df297-79f8-4632-b0c2-77dbc207d885","eae38c1e-ceec-452f-a328-2a23e0032aff","0153f85c-f810-426f-a264-106cdbb0282f","f623f5d4-31d9-4d9c-859f-f5365b4c03a8","eb26b65c-e06e-4eb3-8ce2-bde06152c77b","1a218acb-25b6-402a-9675-603451d0091f"}) - .endsAt("2023-04-27T05:38:53.000000Z") - .startsAt("2022-12-12T16:20:04.000000Z") - .name("hE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYY"); + .pointExpiresInDays(6219) + .pointExpiresAt("2023-03-25T09:36:48.000000Z") + .status("disabled") + .description("cnlAGNGxl68QC9Lc8mXM6C7FzYciEIbzm3gXQmkrBpe2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOjNPScM2HIOB9HTAlispEbZ0nm2AG9fUViptA") + .event("external-transaction") + .priority(2618) + .endsAt("2026-01-08T15:31:11.000000Z") + .startsAt("2023-06-28T18:20:29.000000Z") + .name("bz3OlMcIwPiDhPvFVPSC9IO8VxniaFu09a6CuuEqXlxnf5GR396SeNDqXXKEJV0JkE3TjLaqeZOsjEI7E22Wl6YSAD7vVGJBWjZfkSD8toOPMhnrU8KE3wpUrjUs8sizjd1z2FtADy5Q3C5jNeYsU9MpL2cFyrblmxyYFjVJ1ksDCE"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1884,19 +1854,272 @@ void test29() throws ConnectionError, ProcessingError { } } @Test - void test30() throws ConnectionError, ProcessingError { - Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" - ) - .blacklistedShopIds(new String[]{"6a20dea8-0563-44e7-90d0-6f898775279a","85b93efc-54ae-4584-8b20-59b3a6b5d8ae","9aa204c4-ada3-41a7-a386-92682567dc82","c0bedbfc-d38b-43f1-9da9-ede9cc68e11c","1b6c7a6b-fe8b-4935-8336-dd20c6a706b2","f0fb8bee-5551-41a3-9a1c-394a37da290d","d7654ca5-47c0-4137-a6c0-523d03fc655f"}) - .priority(6189) - .endsAt("2024-08-05T02:11:22.000000Z") - .startsAt("2020-12-12T23:58:18.000000Z") - .name("N9nEMDfH9ZULXMKOjFu2fGiSho"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { + void test25() throws ConnectionError, ProcessingError { + JsonObject applicable_transaction_metadata = new JsonObject(); + applicable_transaction_metadata.addProperty("key", "rank"); + applicable_transaction_metadata.addProperty("value", "bronze"); + JsonObject applicable_account_metadata = new JsonObject(); + applicable_account_metadata.addProperty("key", "sex"); + applicable_account_metadata.addProperty("value", "male"); + JsonObject items = new JsonObject(); + items.addProperty("from", "12:00"); + items.addProperty("to", "23:59"); + JsonObject items2 = new JsonObject(); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); + JsonObject items3 = new JsonObject(); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); + JsonObject items4 = new JsonObject(); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); + JsonObject items5 = new JsonObject(); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); + JsonObject items6 = new JsonObject(); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); + JsonObject items7 = new JsonObject(); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); + JsonObject items8 = new JsonObject(); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); + JsonObject items9 = new JsonObject(); + items9.addProperty("from", "12:00"); + items9.addProperty("to", "23:59"); + JsonObject items10 = new JsonObject(); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("classification_code", "c123"); + JsonObject items11 = new JsonObject(); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("classification_code", "c123"); + JsonObject items12 = new JsonObject(); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("classification_code", "c123"); + JsonObject items13 = new JsonObject(); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("classification_code", "c123"); + JsonObject items14 = new JsonObject(); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("classification_code", "c123"); + JsonObject items15 = new JsonObject(); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("classification_code", "c123"); + JsonObject items16 = new JsonObject(); + items16.addProperty("product_code", "4912345678904"); + items16.addProperty("classification_code", "c123"); + JsonObject items17 = new JsonObject(); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("classification_code", "c123"); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("product_code", "4912345678904"); + items20.addProperty("is_multiply_by_count", true); + items20.addProperty("required_count", 2); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("product_code", "4912345678904"); + items21.addProperty("is_multiply_by_count", true); + items21.addProperty("required_count", 2); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("product_code", "4912345678904"); + items22.addProperty("is_multiply_by_count", true); + items22.addProperty("required_count", 2); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("product_code", "4912345678904"); + items23.addProperty("is_multiply_by_count", true); + items23.addProperty("required_count", 2); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("product_code", "4912345678904"); + items24.addProperty("is_multiply_by_count", true); + items24.addProperty("required_count", 2); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("product_code", "4912345678904"); + items25.addProperty("is_multiply_by_count", true); + items25.addProperty("required_count", 2); + JsonObject items26 = new JsonObject(); + items26.addProperty("point_amount", 5); + items26.addProperty("point_amount_unit", "percent"); + items26.addProperty("product_code", "4912345678904"); + items26.addProperty("is_multiply_by_count", true); + items26.addProperty("required_count", 2); + JsonObject items27 = new JsonObject(); + items27.addProperty("point_amount", 5); + items27.addProperty("point_amount_unit", "percent"); + items27.addProperty("product_code", "4912345678904"); + items27.addProperty("is_multiply_by_count", true); + items27.addProperty("required_count", 2); + JsonObject items28 = new JsonObject(); + items28.addProperty("point_amount", 5); + items28.addProperty("point_amount_unit", "percent"); + items28.addProperty("subject_more_than_or_equal", 1000); + items28.addProperty("subject_less_than", 5000); + JsonObject items29 = new JsonObject(); + items29.addProperty("point_amount", 5); + items29.addProperty("point_amount_unit", "percent"); + items29.addProperty("subject_more_than_or_equal", 1000); + items29.addProperty("subject_less_than", 5000); + JsonObject items30 = new JsonObject(); + items30.addProperty("point_amount", 5); + items30.addProperty("point_amount_unit", "percent"); + items30.addProperty("subject_more_than_or_equal", 1000); + items30.addProperty("subject_less_than", 5000); + JsonObject items31 = new JsonObject(); + items31.addProperty("point_amount", 5); + items31.addProperty("point_amount_unit", "percent"); + items31.addProperty("subject_more_than_or_equal", 1000); + items31.addProperty("subject_less_than", 5000); + Request request = new UpdateCampaign( + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" + ) + .applicableShopIds(new String[]{"3fc144a9-976c-4c8b-b88b-94099914e5fc","2c7cc60d-b4a3-4233-a1a8-49f32fd05574"}) + .budgetCapsAmount(440953308) + .applicableTransactionMetadata(applicable_transaction_metadata) + .applicableAccountMetadata(applicable_account_metadata) + .maxTotalPointAmount(3548) + .maxPointAmount(7177) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(7188) + .minimumNumberOfAmount(9140) + .minimumNumberOfProducts(202) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .applicableDaysOfWeek(new Integer[]{0,5,6,5}) + .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17}) + .productBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24,items25,items26,items27}) + .amountBasedPointRules(new Object[]{items28,items29,items30,items31}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(4254) + .pointExpiresAt("2025-03-20T23:42:14.000000Z") + .status("enabled") + .description("aJM8EwjAmRBWR0j6oBZVp6NIn0X9ZNmVTX8mLedIikedmC30Ia") + .event("topup") + .priority(7173) + .endsAt("2025-06-26T08:00:59.000000Z") + .startsAt("2025-12-19T06:04:24.000000Z") + .name("I72wGGaOUhWf0bdfCQE42KbdvTX1CfA4ud9qfvPOSoxFI1UweO2XRdO2hY0pCC8FQpyDiFdYn6ST7vY9DrqkrzPV8XVdQkJOO2v1m3AEScwYzlsF"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test26() throws ConnectionError, ProcessingError { + Request request = new UpdateCampaign( + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" + ) + .blacklistedShopIds(new String[]{"152ef443-5900-417e-883c-6d7c1c07060b","1c367d2e-caaa-4c1e-a04f-4dbd91d5681f","4e0e11fb-a7de-4d1a-8be6-7e6997cc1a27","d1aafff1-aad6-4d91-815e-3c0ddad6f602","411ddee6-e38d-49e4-a4bb-20f1e300e32d","6bf1285a-8158-43a8-a348-d27c397416f9","57cf7b2f-46a6-4c9a-a0c0-036c48def139","2091c646-2974-4bcd-8090-3d8f2d389fb3","d8438f08-0320-43c2-a93d-bec199c7cb06","c157ff62-6c82-491c-8ac7-f63450d499d2"}); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test27() throws ConnectionError, ProcessingError { + Request request = new UpdateCampaign( + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" + ) + .blacklistedShopIds(new String[]{"9f85a7c6-8761-462f-ac55-4244100a40ed","c51682b4-4d51-46cf-8847-6133e6ab0fb6","4ecf20a7-3908-4d7a-88df-b697779cba30","82841170-830a-4741-aaab-43960372ad65","62774dc3-798e-4095-905b-dfd42aeb065c","33b681dc-4d04-4926-a5fb-13e956ecb67b"}) + .name("225IXwhDEUvB4npxY9ubMTI7cGyilStc03UjxERdVoe6HFhJgKELPhJZ4V6jG807jn4ij0yxfSZTliY3BcoO0R3ofHxO79PyMPuNxlOm9TssUDzbSN9easDT5qaXE9oVV6dzFzoMTL1nMwdKXWkN1V7WK5N3KEyrv8oYx3uFnGQ6ZUjkvuDzL1kINhlYHLw7eGbmo6z2mwFW2G7CePrEb6qc1vzC0TUXZ7gJxmZbR4QIZxkVF44SiHUuKL"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test28() throws ConnectionError, ProcessingError { + Request request = new UpdateCampaign( + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" + ) + .blacklistedShopIds(new String[]{"03badb81-1d2a-43e5-8be1-e214d2bbdf36","00a50926-59a5-414b-acd8-e57eb2ebb1cb","d928b0a0-3919-4399-a9cd-9589474f6f94","8a3e41fb-1054-4378-be98-479c7e903da4","e72412ee-3b89-41a7-bebf-ae946eed137c","15e92675-9152-47f0-aa8c-c1e77ee109e9","c85f7b04-57ad-484b-8de9-ac5ebeaf67d4","06a496e5-ca4b-4554-9918-cee82a24a4f3"}) + .startsAt("2023-01-01T13:18:18.000000Z") + .name("Hvt0FegcXhZNGhoP3dbXW7imuFIarDCIG12cWukEiPRDcMrsI69et7tZGcxsWh3x4WMFG9JtXGOrRTCDsNsdOxykdQVM02fdP8dPWgv17gnjksnVKZ2Yg2XW7z7bqKh4VDMi81vkZfIvFF2aVGBrt4d4BQcmvC7IyShbMWHW8OrxkYJbesefuwz6QVslbgmox4sylqaj0m4NHRO5ZxO4O3N"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test29() throws ConnectionError, ProcessingError { + Request request = new UpdateCampaign( + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" + ) + .blacklistedShopIds(new String[]{"90509a2d-135f-4d4c-85f9-bb189a87282b"}) + .endsAt("2026-04-15T04:54:39.000000Z") + .startsAt("2020-10-18T04:26:48.000000Z") + .name("sHxuDJHz86s8rMyDwBbVQMVNIv43CsGJ1N1Ty1LpoGWtPPIzjjzRC7Vh9LObliCnClJEf5Qg177zO5rbJQyEpgsB3u1k6p1M3AaDCD8U2M3hy0vfxtwSmqJp6yKA"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test30() throws ConnectionError, ProcessingError { + Request request = new UpdateCampaign( + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" + ) + .blacklistedShopIds(new String[]{"d8545ee8-a335-4b5a-9257-e833c443004b","d7aae25c-5378-45f1-b923-47f66da65bf5","2193f074-03db-42fa-844d-282a18bd2294"}) + .priority(2917) + .endsAt("2025-05-31T07:18:41.000000Z") + .startsAt("2021-03-19T13:57:34.000000Z") + .name("TZUuVlFabCqRikwgbBJfMhTrHTPQ"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { System.out.println(e.getType()); System.out.println(e.getMessage()); System.out.println(e.getRawJson()); @@ -1907,14 +2130,14 @@ void test30() throws ConnectionError, ProcessingError { @Test void test31() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"12f000d3-cfe6-437b-9bec-5c1d30c1076e","eec5345b-06d2-4dd0-9adc-1c0ee8384116","fbd063cb-0df6-46bc-9448-001c1bd72b80","eb48cd23-01b4-4ed1-af62-a61857292cb4","b8b9a108-69dd-4ac8-8e3c-cc4bea9e099e","97137b91-7708-4631-aa1b-7589945aad44","fa147445-93b5-4efa-9ea0-d27070d7115b","99a08340-d0c8-48e9-b066-b3748b646393","220bd653-1a42-469d-bbad-3c284bc1af0c","925836f5-cc75-47d5-b960-7061f3a9e9ea"}) - .event("topup") - .priority(9851) - .endsAt("2021-04-29T23:37:40.000000Z") - .startsAt("2021-11-27T22:03:32.000000Z") - .name("G1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJA"); + .blacklistedShopIds(new String[]{"5f1c1052-4384-4cbf-8a05-18c63769d7d2","2a41dffa-1d4c-4a72-921b-d54cb722d570"}) + .event("external-transaction") + .priority(7869) + .endsAt("2026-08-04T22:12:35.000000Z") + .startsAt("2022-11-28T14:26:33.000000Z") + .name("H0GqkthOAKJR8VBFpRQxxKQexm5F4TlRS3PsnDMFQKcrRJGtyzouTG0fNi1SBzVwDCpwO7mzwiIebwBbgsjluVjYrLryI60OsM6yKVZ1jPy1npNVd9AFxrpWfPQQvIa1xbdNYJvyCZXCjbARIpuKvOzHCuCdyUUls75UdwXdZijuTLMB27QQHuatNtp6PKSLh839k28z03zy6Qc9GYSlX2n5lak1n33o382bj7JojzlN4lU5sMlhBuyia62bkzz"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1929,15 +2152,15 @@ void test31() throws ConnectionError, ProcessingError { @Test void test32() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"af463a41-c3e5-43a5-9bc8-ed65ba62777f","e8966403-d3d5-4279-a711-44b7e449b1b8","64c9a465-b6c3-4bde-b071-007788120abf","1f103666-1a62-4256-a123-bf89e980c6c7","b5a11019-0a26-4d60-89ba-1b8460c38838"}) - .description("MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4") + .blacklistedShopIds(new String[]{"5cfc9bec-ae71-46c9-80e3-cb30098836ab","c0329022-2cf9-45e4-9dd4-547c4112207b","2c6b8f36-56ed-4683-9009-228bc139391b","7b9f813f-d071-4511-9299-24bbc6dae969","3c035941-0438-4726-922b-7bbd7525eb4e","90dfb723-21a0-4164-aa33-ba9fcab5ebff","9e5fe9e0-ef55-4879-9471-a6c883d1a021","f5379355-43f2-4ac9-b7e5-37e3646854f0","d29473ef-d1a3-4046-9694-7d1e7931a008"}) + .description("XApISgLQUaMJL6dBoxy3dS4rnSGnuDl1WGraodKKbLrRBGbYLtxgB5z5qrK2mXuD0UWST9ldTa29xEBfE4jaoCgaw81ksIPXp") .event("topup") - .priority(3174) - .endsAt("2023-12-19T09:00:52.000000Z") - .startsAt("2024-07-06T05:11:02.000000Z") - .name("0jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232"); + .priority(8858) + .endsAt("2025-03-25T01:54:18.000000Z") + .startsAt("2025-07-28T15:04:56.000000Z") + .name("oHnKZwzgtMuSjmXprQOJI"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1952,16 +2175,16 @@ void test32() throws ConnectionError, ProcessingError { @Test void test33() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"6e2469a4-9222-4c20-ac8b-a615be48a1f6","5a8f2544-06fb-44c4-9050-278d2ff2a6f4","862e9622-c74d-4ff5-9ff3-7a5b4d0c97e5","f35f09ed-afb1-49ff-975c-f7d3296f11a6","cce9d081-bfd0-48cf-a4c1-746bd9245108","31f635ba-07aa-4c12-8757-e6de45c790cc","54ee4f43-c789-4048-be97-14dd068f309c","a7727268-3c82-4393-90ba-fc7f99a4e137","5efda571-9837-4d04-aa0e-15aa55ae8edb","af058ff9-8add-47ea-85ef-9138c61e580b"}) - .status("disabled") - .description("V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbD") - .event("payment") - .priority(374) - .endsAt("2022-11-05T16:15:07.000000Z") - .startsAt("2024-08-06T07:29:13.000000Z") - .name("Sa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1"); + .blacklistedShopIds(new String[]{"df759e4d-9a74-4e9b-bf6b-3ef89eb5ff0a","14185b81-28d5-483c-8133-61e046120a43","fb0c2e77-f285-47cd-bd20-bdefc2416b77","3e8f71d9-bcf7-401f-bd0a-aa01729ba173","b8810608-9bef-4716-8868-47f9e284a722"}) + .status("enabled") + .description("o54EyGXhKAybq9is4L00eclCf6ygQgmzcLUKbT5feGtXeOgCjHXo5HdhOmdyoXuDdYfk0Kl5lQobWMeUrTL0yrW2IFnoVrabBtuZMnnkajdAwZKazac8bckasxqrpu0M7pIUsW64iTD7nd9oi4jTu3F0HRYKCBEMlkDUnah6fkhvDARp5vX7Mup") + .event("topup") + .priority(389) + .endsAt("2021-12-17T09:57:34.000000Z") + .startsAt("2026-03-08T01:13:32.000000Z") + .name("FVnb6JjAKYX8HzepSQlFXs1g1p8h9cEw94TVm3QEXbRfQ4MBKBqC3S2iDFnRE3SwskPWs7mGvsLBFz2ikalm5QIcpZb2q5YnZ6axCoTTIbjOEPBaRli2lUAMJ7CyG5TMfzsA0CzHGei6FNa5iNHS8ae3s1VgKjc7Q8j7Z0SWMLPnzw7xhca7VuC"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1976,17 +2199,17 @@ void test33() throws ConnectionError, ProcessingError { @Test void test34() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"171644c7-d45d-4b16-b2bf-bba97acd78ed","c5f319c7-ba05-4e55-b9a1-fd265fdaf59f","d6c398d9-90e5-4544-9902-f5c824e323b5","1f3b4a7c-76d4-45f9-bc0d-fb40a14c1b3e","9a5a2bf3-3dea-4afa-ba8e-3ce052bad5b5","25fbcb25-8a01-4ff6-88df-1d024fa5d634","3e7fd694-9848-4906-97b6-2a6575f680f1","93c8c2eb-d8d3-4c6b-8500-6c9fa201d212","a1ed030c-b2ee-4783-889b-64ea7547b52f"}) - .pointExpiresAt("2022-02-17T16:54:47.000000Z") + .blacklistedShopIds(new String[]{"c9266fd1-555f-4182-8c1a-bf1479783388"}) + .pointExpiresAt("2023-09-19T19:13:50.000000Z") .status("disabled") - .description("aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpS") + .description("tgDKKsPg1tK8tF9sjwQnBp1nM") .event("payment") - .priority(4689) - .endsAt("2023-05-25T06:25:42.000000Z") - .startsAt("2023-09-05T23:10:15.000000Z") - .name("Lu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7Oo"); + .priority(6373) + .endsAt("2024-02-18T02:29:48.000000Z") + .startsAt("2021-06-05T02:35:26.000000Z") + .name("Y6Xeri5tCJDZsGcVm09iZYX0jHs0"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2001,18 +2224,18 @@ void test34() throws ConnectionError, ProcessingError { @Test void test35() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"7a89b61c-b83f-4d91-9c20-7ded5ae2228a","597f87e2-0316-4c3b-8f82-8957f29aaea5","0fb0b1d8-90f6-4263-9d85-f4f1c53bfaeb","1acb9a48-67c0-4b91-b64f-39436942f717","ed551fc7-0d8b-48fd-9bfc-728e1a1dfb38","f1ef6862-57fe-486a-aec6-35f3565cdbb6","71902ddf-2eae-49d7-b8a4-87619e71c767","3973e337-4740-476b-86d6-088ccefe30d4"}) - .pointExpiresInDays(9612) - .pointExpiresAt("2021-01-12T03:12:02.000000Z") + .blacklistedShopIds(new String[]{"dd6b8802-f8f3-4e90-970b-e9b3584bc4d9","769bc327-bb34-4431-ac16-955d4bb080af","0f1deca0-874b-4488-9e30-0bfde655db12","306649a2-1b32-49c2-9ea5-62011b24c726","31c57e0f-b4b8-40ca-983d-825f3402e0c1"}) + .pointExpiresInDays(9324) + .pointExpiresAt("2021-09-04T19:59:10.000000Z") .status("disabled") - .description("ZtjqA6") - .event("external-transaction") - .priority(3221) - .endsAt("2024-04-25T18:39:26.000000Z") - .startsAt("2020-02-18T13:31:47.000000Z") - .name("XCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWS"); + .description("FKSHaiDX11U4V4") + .event("payment") + .priority(2595) + .endsAt("2023-01-14T15:49:14.000000Z") + .startsAt("2026-01-07T15:48:59.000000Z") + .name("iQ9KgdufJCOqQoqEQic9b7rjANNhMIW5uX0nomeRn6xi8YDAJH7HJXNF3Oy8VhKyGvyermibojKhVPIvz1I1HvcbolySSXeAcLtwR11xDAJrx0pv2XvsLcCeEcDmfq2CKw2F1KvbCjTFkaD9SEmE89oiZ9sjC"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2027,19 +2250,19 @@ void test35() throws ConnectionError, ProcessingError { @Test void test36() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"ac893094-547e-4b36-8184-1c8b91f3c8ed"}) + .blacklistedShopIds(new String[]{"f7e6d548-504e-47cb-ad02-1f1af7153cc8","8725dd62-596b-47c4-99d6-c637fea8122c"}) .setExclusive(false) - .pointExpiresInDays(6452) - .pointExpiresAt("2021-12-27T15:21:00.000000Z") - .status("enabled") - .description("gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9") - .event("topup") - .priority(5939) - .endsAt("2024-05-05T03:29:53.000000Z") - .startsAt("2021-06-01T02:41:12.000000Z") - .name("RLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgGE"); + .pointExpiresInDays(6946) + .pointExpiresAt("2022-07-04T13:54:00.000000Z") + .status("disabled") + .description("9UgYkUYCn38T5jddntLP9wvyYD1qoSVwF6tpYAPGi6YnBQDM8MlLw6WNmhQ1XbNNNiRTERN1SPoqCbHjtLPWoEeyLYkaItEzRnlzKYkySdT2Gi04uqdwqTzZvD1PwMG5sUToLzAoDfdSJfprAXytppmaGjNfTvZeWlNcmFKOSukrPpaSteC08CcbsYxt96gmv0VcO") + .event("payment") + .priority(6552) + .endsAt("2025-11-05T06:51:54.000000Z") + .startsAt("2023-10-17T00:39:30.000000Z") + .name("gxJasez0E3N0w4tVAdgt1xX1dSRHXsAmJyubVIv51Dnx9WEjtPQeVvIzNJybaWd5nDKgnWgGOF388caTufq1V8gMtPEUm5qxAkXQdgmA6Ox4Cr60B3K44a0163kByMdg32LG1oWyluqXLUpztzpGIdluCdFeopAnKzAxtAmMd124CMe44VQ69lqvNuxrP4SroQtmwf2SR0athJ6w5HZkze23HnekgXpUMEHxZW0Tc6eMEIuVp5eKpdv05iSfHRA4"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2054,20 +2277,20 @@ void test36() throws ConnectionError, ProcessingError { @Test void test37() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"8a0367ee-3e46-4264-a357-3768b1925904","a361c0d3-0f64-4a3c-9197-9b7cbc7bb824","8c379061-034a-4c5e-a6ca-fbb64fa7f90a"}) + .blacklistedShopIds(new String[]{"3841ffc0-b3cd-4e4a-8b1b-0129238d5065"}) .subject("money") .setExclusive(true) - .pointExpiresInDays(305) - .pointExpiresAt("2024-01-06T22:44:45.000000Z") + .pointExpiresInDays(3029) + .pointExpiresAt("2023-08-18T22:44:13.000000Z") .status("disabled") - .description("2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67y") - .event("topup") - .priority(8998) - .endsAt("2020-03-20T09:11:34.000000Z") - .startsAt("2022-05-14T10:09:49.000000Z") - .name("xWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9Tez"); + .description("WEJu4ZLaQXIwCGI0d9iWW97shqF2iDJgp3ZW8SpDn16YEfYX3JUUHHD0kbha6rpojFdIy8Lev3F8En8XgQCp5V2i4zKRr") + .event("payment") + .priority(8878) + .endsAt("2021-05-18T00:24:24.000000Z") + .startsAt("2024-05-05T19:50:50.000000Z") + .name("yq1iTaMXh9J32aBI"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2086,37 +2309,22 @@ void test38() throws ConnectionError, ProcessingError { items.addProperty("point_amount_unit", "percent"); items.addProperty("subject_more_than_or_equal", 1000); items.addProperty("subject_less_than", 5000); - JsonObject items2 = new JsonObject(); - items2.addProperty("point_amount", 5); - items2.addProperty("point_amount_unit", "percent"); - items2.addProperty("subject_more_than_or_equal", 1000); - items2.addProperty("subject_less_than", 5000); - JsonObject items3 = new JsonObject(); - items3.addProperty("point_amount", 5); - items3.addProperty("point_amount_unit", "percent"); - items3.addProperty("subject_more_than_or_equal", 1000); - items3.addProperty("subject_less_than", 5000); - JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); - items4.addProperty("subject_more_than_or_equal", 1000); - items4.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"26f30113-6213-4ea7-aca1-958505591023","2659686a-b006-4e33-81be-29161e31edb0","f02ead1f-89b8-40b5-b92e-68942ebfbdc0","d598b035-aa8a-4008-a8de-f88033c0d90c","6f78321e-7303-4ad7-9105-6311fc68fba1"}) - .amountBasedPointRules(new Object[]{items,items2,items3,items4}) + .blacklistedShopIds(new String[]{"755c2894-da3c-42ec-8ae5-dc46330cec44","62392368-b732-4e5e-ac8b-c33ade8a7641","f0b84393-dbd6-40c4-aec0-86ffbb42c207"}) + .amountBasedPointRules(new Object[]{items}) .subject("all") .setExclusive(true) - .pointExpiresInDays(8613) - .pointExpiresAt("2020-06-26T07:19:03.000000Z") - .status("enabled") - .description("OWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIsw") - .event("external-transaction") - .priority(6296) - .endsAt("2020-12-29T16:02:19.000000Z") - .startsAt("2023-11-23T10:23:05.000000Z") - .name("c2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpC"); + .pointExpiresInDays(3154) + .pointExpiresAt("2022-09-29T13:46:23.000000Z") + .status("disabled") + .description("PI4cS2rMsWBfreBRQpW9vUd58fde96uK1qpkeDgc6Hbo3o2wSmfRoo5OKt3yV5Bzt1djpGomL7u0oZNCkYK3XxpWAlchemsnykqWhGOYpMimrLQy1efJIm6p2nFeDatBkmxJUfJ8iWJ5x76ilzTFGw7NqxtlVIVfYnX2Qn") + .event("topup") + .priority(7735) + .endsAt("2023-11-17T04:10:45.000000Z") + .startsAt("2024-07-28T07:36:14.000000Z") + .name("ChsUwktnh8VjRFve7MdNMBgFvJyEEmkecVySQ3ucJUKFqVhyrEcw3WNc5IXHiI2Hhl1OjgN6fFukYqihBSq8D0896GNWlaYQ8akcWxDZkhOozkzesx2mnek2LIVGGp8Vx16M91diHUGfol8Mhj42rW4z5Wjzvhmx48Q4mMZZBBUosSdONTSqEGwk1DyPJJ9VhetNR8hTecHZnx73"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2169,8 +2377,9 @@ void test39() throws ConnectionError, ProcessingError { JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("subject_more_than_or_equal", 1000); - items7.addProperty("subject_less_than", 5000); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); JsonObject items8 = new JsonObject(); items8.addProperty("point_amount", 5); items8.addProperty("point_amount_unit", "percent"); @@ -2201,23 +2410,28 @@ void test39() throws ConnectionError, ProcessingError { items13.addProperty("point_amount_unit", "percent"); items13.addProperty("subject_more_than_or_equal", 1000); items13.addProperty("subject_less_than", 5000); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"4e04f3fb-8bbc-4767-8937-a79ea7e39423","759e2927-17e3-4e5f-9549-a4ed7e48e0be","2d8451a6-856a-452c-aa67-e70fb59b3163","00a2ff5c-d07b-4dbc-9008-7fed6e48a88f","f5f865eb-1607-4141-8515-f55ec0702cfd"}) - .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6}) - .amountBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13}) + .blacklistedShopIds(new String[]{"8623f70e-4120-4d52-a8da-1e8e507fa3ad","d9496895-0906-48c0-8958-7b40f993f327","c70d85e4-9028-4daa-a5d0-a5433d60b4bc","99e8743b-d5c8-4c24-8b71-4eae2f70bc32"}) + .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .amountBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14}) .subject("all") .setExclusive(false) - .pointExpiresInDays(9256) - .pointExpiresAt("2021-07-22T23:55:17.000000Z") + .pointExpiresInDays(4287) + .pointExpiresAt("2023-05-18T21:20:50.000000Z") .status("disabled") - .description("jMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwF") - .event("external-transaction") - .priority(5903) - .endsAt("2021-08-01T00:18:14.000000Z") - .startsAt("2024-03-22T21:04:38.000000Z") - .name("cNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqK"); + .description("AXAtqrIkbL0z4gSPzn4") + .event("payment") + .priority(648) + .endsAt("2023-06-25T17:42:24.000000Z") + .startsAt("2022-11-15T22:41:46.000000Z") + .name("TeyJUPoxQJ9n1IVWSFIGUqJ4N6z6sZDMXDGqemkORDDzJGZ9TM0TySjAlVWDrjsx0UNdOCeykFyfPkq8IYlCnIEfVjyhIzvswfx06lwewFlBxBPgZymInLxkpSlp0CcXJpCFZzCR1WWP7a67366cHWh"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2282,23 +2496,27 @@ void test40() throws ConnectionError, ProcessingError { JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); @@ -2325,23 +2543,23 @@ void test40() throws ConnectionError, ProcessingError { items19.addProperty("subject_more_than_or_equal", 1000); items19.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"07c18bf7-1f95-4599-8cd2-514096c6a170","883e9605-608c-432d-95f9-89894d5ab15d","572a729f-3792-4b66-a81b-2876be285653","2e4a82bd-de3b-449e-a270-8692c0591e99"}) + .blacklistedShopIds(new String[]{"9c080817-aad9-43eb-8183-91364cb3e5f4","13ae9a3c-5bf2-4619-a19e-8b68a4e9cd62"}) .blacklistedProductRules(new Object[]{items,items2,items3,items4}) - .productBasedPointRules(new Object[]{items5,items6,items7,items8,items9,items10}) - .amountBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18,items19}) + .productBasedPointRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17,items18,items19}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(3319) - .pointExpiresAt("2020-04-16T07:10:54.000000Z") - .status("disabled") - .description("9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP") - .event("topup") - .priority(2707) - .endsAt("2021-04-02T02:58:31.000000Z") - .startsAt("2022-04-10T09:41:26.000000Z") - .name("srDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuC"); + .setExclusive(true) + .pointExpiresInDays(6445) + .pointExpiresAt("2023-02-22T02:31:39.000000Z") + .status("enabled") + .description("PinjNzKWZdpxUSeeatx6TLoIfkctcu3TkkDZexm") + .event("payment") + .priority(4941) + .endsAt("2025-08-10T23:20:52.000000Z") + .startsAt("2023-08-24T06:00:20.000000Z") + .name("89kas1F7Tkqoaqe1JDLI1WZ64tiSollupgL4JictCeDSHD3C2Yn"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2374,67 +2592,6 @@ void test41() throws ConnectionError, ProcessingError { items6.addProperty("product_code", "4912345678904"); items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); - JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); - Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" - ) - .blacklistedShopIds(new String[]{"afa2926d-16b4-46f4-80cd-0e1afb8204b4","3050fda5-5af2-42d1-b73d-5298d71fe154","93ba6ccd-375d-48d7-8020-3d3ee2fd9216","6e700277-2e9e-4ddc-a5a3-a9adf71bff51","4be1a9d1-5f27-46be-a588-6c67f7c93741"}) - .applicableDaysOfWeek(new Integer[]{1,1,6,5,1,0,3}) - .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6}) - .productBasedPointRules(new Object[]{items7}) - .amountBasedPointRules(new Object[]{items8}) - .subject("all") - .setExclusive(false) - .pointExpiresInDays(5093) - .pointExpiresAt("2021-04-20T22:14:33.000000Z") - .status("enabled") - .description("koAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz") - .event("payment") - .priority(804) - .endsAt("2024-07-16T14:28:33.000000Z") - .startsAt("2024-02-13T17:21:15.000000Z") - .name("XV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHN"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test42() throws ConnectionError, ProcessingError { - JsonObject items = new JsonObject(); - items.addProperty("from", "12:00"); - items.addProperty("to", "23:59"); - JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); - JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); - JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); - JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); - JsonObject items6 = new JsonObject(); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); - JsonObject items7 = new JsonObject(); items7.addProperty("product_code", "4912345678904"); items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); @@ -2444,11 +2601,8 @@ void test42() throws ConnectionError, ProcessingError { items9.addProperty("product_code", "4912345678904"); items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); + items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); @@ -2464,9 +2618,8 @@ void test42() throws ConnectionError, ProcessingError { JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); @@ -2507,26 +2660,30 @@ void test42() throws ConnectionError, ProcessingError { items21.addProperty("point_amount_unit", "percent"); items21.addProperty("subject_more_than_or_equal", 1000); items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"8d6ce735-072d-4eb7-89a3-ba92972113cf","c1730050-a80f-4fe7-9a90-6af95d856227","3d07bd95-320b-46fd-9a1e-d50148a16919"}) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) - .applicableDaysOfWeek(new Integer[]{4,2,1,0}) - .blacklistedProductRules(new Object[]{items6,items7,items8,items9}) - .productBasedPointRules(new Object[]{items10,items11,items12,items13}) - .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20,items21}) + .blacklistedShopIds(new String[]{"b3711406-cc49-41e9-8d39-17712f635e72","0c63c546-ece8-4483-af48-72554105ffb4","3bb52512-f5d5-45c3-a8c2-04101535b86b","17044b74-a3e0-4ad6-8a4d-cb36323b96c5","c6266468-5e6f-4d61-b4a5-65b5e51fa8d2","ed6b6a73-9a04-426b-8fa9-229b6d431fe0"}) + .applicableDaysOfWeek(new Integer[]{4,3,3,2,5,2,3,0,1,6}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12}) + .amountBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19,items20,items21,items22}) .subject("all") - .setExclusive(true) - .pointExpiresInDays(2895) - .pointExpiresAt("2023-06-22T20:29:05.000000Z") - .status("enabled") - .description("Kg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4") + .setExclusive(false) + .pointExpiresInDays(9292) + .pointExpiresAt("2020-12-15T05:18:57.000000Z") + .status("disabled") + .description("jiVjkWGZfXbhOFvNY55OwkPTEUz8oSFQe") .event("topup") - .priority(1391) - .endsAt("2021-02-08T05:24:06.000000Z") - .startsAt("2020-02-28T23:46:04.000000Z") - .name("F1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW6"); + .priority(5231) + .endsAt("2026-01-27T06:22:12.000000Z") + .startsAt("2025-09-03T06:18:47.000000Z") + .name("3k81y4L7o3GM3UKBXMJoycpsy4LyLZFxRuuFLA4Ui8k1KypnJ8Uw7M1CvtXboHcAQ9ViIsvWqws3eBMzyIUtiNxNhmRynGWfznERPtN3LViJS1dpiuu6JWeysJ5UR27acols8OLFNhYvqrdgeoTKVw3QKHsut3x"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2539,7 +2696,7 @@ void test42() throws ConnectionError, ProcessingError { } } @Test - void test43() throws ConnectionError, ProcessingError { + void test42() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -2571,6 +2728,96 @@ void test43() throws ConnectionError, ProcessingError { items10.addProperty("product_code", "4912345678904"); items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); + JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); + Request request = new UpdateCampaign( + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" + ) + .blacklistedShopIds(new String[]{"aeb6e11a-9cdb-4783-8028-5475e4d27b62","16658d7b-6695-4e49-bca8-e4a793be20cc","57d23d1f-55d0-441a-9afb-dc561898329f","6ebac01d-0406-4349-937c-f74bb3342896","73306a43-c5a1-490a-85ae-9e2b20d12515","13d21fcb-8b5e-4470-8255-c56f43a99542","933d59e3-d01e-4ab7-a6d6-0398071cf2ea"}) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .applicableDaysOfWeek(new Integer[]{2,3,6,0,6,0,6,2}) + .blacklistedProductRules(new Object[]{items10}) + .productBasedPointRules(new Object[]{items11,items12}) + .amountBasedPointRules(new Object[]{items13,items14,items15}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(5658) + .pointExpiresAt("2023-10-22T16:18:48.000000Z") + .status("enabled") + .description("m8RljnuLcC94xG8sb1tOVm7p5XAwHfSXk3eOR6TecHTnhwvZsEsT85OfQ8lzdmqxGSg8e3RhOb5BMcQPLOIjmc8VMDMHWqGdZh4akY") + .event("payment") + .priority(363) + .endsAt("2021-12-17T18:33:46.000000Z") + .startsAt("2026-08-29T08:11:04.000000Z") + .name("FCJxLZHGXI2AIAE56GVf0Gw7kmQ3kNPt7OvjdgkL3FTfLMcm3icBM39ZlgHnODxDuHCOV9jJuZqWToSer58JP7CddvYZG2P4sGsjZKQxe7fKpax0Uc45ft1nisEBoOyK7IWRvWeQ7WqJw3BcrA0ZJmOfUMnfydDiDxugYD9evfD1PJtdO3SdiMuiIPxXLPGXeapZ447jeLeg5dXfz8LlL819MpDMdbxSiedHtUdWqjwNZ6SqXcjRYXWjjppT0"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test43() throws ConnectionError, ProcessingError { + JsonObject items = new JsonObject(); + items.addProperty("from", "12:00"); + items.addProperty("to", "23:59"); + JsonObject items2 = new JsonObject(); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); + JsonObject items3 = new JsonObject(); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); + JsonObject items4 = new JsonObject(); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); + JsonObject items5 = new JsonObject(); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); + JsonObject items6 = new JsonObject(); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); + JsonObject items7 = new JsonObject(); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); + JsonObject items8 = new JsonObject(); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); + JsonObject items9 = new JsonObject(); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); + JsonObject items10 = new JsonObject(); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("classification_code", "c123"); + JsonObject items11 = new JsonObject(); items11.addProperty("product_code", "4912345678904"); items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); @@ -2583,23 +2830,14 @@ void test43() throws ConnectionError, ProcessingError { items14.addProperty("product_code", "4912345678904"); items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("classification_code", "c123"); JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); + items16.addProperty("classification_code", "c123"); JsonObject items17 = new JsonObject(); - items17.addProperty("point_amount", 5); - items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("classification_code", "c123"); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); @@ -2615,13 +2853,15 @@ void test43() throws ConnectionError, ProcessingError { JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("subject_more_than_or_equal", 1000); - items20.addProperty("subject_less_than", 5000); + items20.addProperty("product_code", "4912345678904"); + items20.addProperty("is_multiply_by_count", true); + items20.addProperty("required_count", 2); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("subject_more_than_or_equal", 1000); - items21.addProperty("subject_less_than", 5000); + items21.addProperty("product_code", "4912345678904"); + items21.addProperty("is_multiply_by_count", true); + items21.addProperty("required_count", 2); JsonObject items22 = new JsonObject(); items22.addProperty("point_amount", 5); items22.addProperty("point_amount_unit", "percent"); @@ -2643,26 +2883,26 @@ void test43() throws ConnectionError, ProcessingError { items25.addProperty("subject_more_than_or_equal", 1000); items25.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"15aaff14-cd8d-4936-90b3-b8c99b619a2c"}) - .minimumNumberOfProducts(6205) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .applicableDaysOfWeek(new Integer[]{2,0,1,3,1,0,5,3}) - .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14}) - .productBasedPointRules(new Object[]{items15,items16,items17,items18,items19}) - .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24,items25}) + .blacklistedShopIds(new String[]{"699df98f-f103-47b9-b825-14765c55a081","00534dbb-4893-480c-ac43-b983b7c173a0","9166988c-f384-44f5-9a7e-2f769b9a7206"}) + .minimumNumberOfProducts(8259) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{2,3,3}) + .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17}) + .productBasedPointRules(new Object[]{items18,items19,items20,items21}) + .amountBasedPointRules(new Object[]{items22,items23,items24,items25}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(4377) - .pointExpiresAt("2023-12-01T19:03:03.000000Z") - .status("enabled") - .description("smRtGnF7L4kFCWrbFqt27c2GHcIyayD2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsM") - .event("payment") - .priority(6343) - .endsAt("2022-12-02T04:36:47.000000Z") - .startsAt("2023-08-15T16:25:46.000000Z") - .name("bxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0Xd"); + .setExclusive(false) + .pointExpiresInDays(9766) + .pointExpiresAt("2023-04-01T13:11:54.000000Z") + .status("disabled") + .description("DI9VlsfxLxW5axZvNGABU1Kq4dKF1bCFldqrEeXCX83UsZSPbix6b1Za3ly7V1xEBLXcDk2ABcz8aQVQ46LRceMuSvImdDq9y3aEus7kZPbP6pY7uTyJAbvra0dcpr2XBaxBtLUqtpR4s1JU0lVQ") + .event("external-transaction") + .priority(3838) + .endsAt("2023-04-03T11:19:43.000000Z") + .startsAt("2022-12-07T18:50:33.000000Z") + .name("pewcGn6EYrIoiJUtnz4tPDjzGeH1vMI9teS2D85S1UHA16vfzALVhDfzoJqhsy99eYUXwCEgrx3b6fZBGl5iNgWbOvie519sB5ATfDwJwr3eQ20YGcyYu0bMGv3vztYfqlxs"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2683,29 +2923,29 @@ void test44() throws ConnectionError, ProcessingError { items2.addProperty("from", "12:00"); items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); JsonObject items6 = new JsonObject(); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); JsonObject items9 = new JsonObject(); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("from", "12:00"); + items9.addProperty("to", "23:59"); JsonObject items10 = new JsonObject(); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("from", "12:00"); + items10.addProperty("to", "23:59"); JsonObject items11 = new JsonObject(); items11.addProperty("product_code", "4912345678904"); items11.addProperty("classification_code", "c123"); @@ -2713,17 +2953,11 @@ void test44() throws ConnectionError, ProcessingError { items12.addProperty("product_code", "4912345678904"); items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); @@ -2739,18 +2973,21 @@ void test44() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("subject_more_than_or_equal", 1000); - items17.addProperty("subject_less_than", 5000); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("subject_more_than_or_equal", 1000); - items18.addProperty("subject_less_than", 5000); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); @@ -2761,28 +2998,43 @@ void test44() throws ConnectionError, ProcessingError { items21.addProperty("point_amount_unit", "percent"); items21.addProperty("subject_more_than_or_equal", 1000); items21.addProperty("subject_less_than", 5000); - Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" - ) - .blacklistedShopIds(new String[]{"08f4a642-e910-4927-b10d-2d76e0797efa","a6329a32-194c-455a-b153-0e2031ef8a62","74feb294-5fb1-44c3-9872-63b91c611b47","a141be05-3992-4781-b6a8-5cca0920d1aa","c5d26084-2beb-4fb1-b518-303657000592","18dd654a-7bd6-486e-a217-73a8e6b67d30"}) - .minimumNumberOfAmount(5415) - .minimumNumberOfProducts(821) - .applicableTimeRanges(new Object[]{items,items2}) - .applicableDaysOfWeek(new Integer[]{3,2,6,4,3,4,6,5,0,6}) - .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8,items9,items10,items11,items12}) - .productBasedPointRules(new Object[]{items13,items14,items15,items16}) - .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(5594) - .pointExpiresAt("2020-11-12T07:00:27.000000Z") - .status("enabled") - .description("JhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1t1s3zE32Vk24Ceen1NSjytDUp3byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7JLPWT4P") + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + Request request = new UpdateCampaign( + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" + ) + .blacklistedShopIds(new String[]{"3b236e62-8a5f-49cf-85a1-504e865a7dea"}) + .minimumNumberOfAmount(5062) + .minimumNumberOfProducts(8316) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{1,2,0,6,6}) + .blacklistedProductRules(new Object[]{items11,items12,items13,items14}) + .productBasedPointRules(new Object[]{items15,items16,items17,items18,items19}) + .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(4766) + .pointExpiresAt("2021-07-30T21:32:50.000000Z") + .status("disabled") + .description("zZK4Rxx8sLYfBb6BjvrBrNNM0rEDhKG45tzzgCXrxrouPH3hhI04AO4rgTAhQAt0OqjGLP0DBUnGxElSvEGfkoczpVf2XfhCesDbLNG") .event("topup") - .priority(1700) - .endsAt("2021-02-26T00:46:07.000000Z") - .startsAt("2023-01-21T04:06:34.000000Z") - .name("IKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5Xg"); + .priority(3504) + .endsAt("2023-12-02T17:42:27.000000Z") + .startsAt("2025-06-20T01:37:57.000000Z") + .name("3YX4ee6SkSSSI0RCCs8xN6z62EIsVi251R9OVM6dJXfTSVkQAgLF0UCGkzWfvHQLNpl08zkirPvpqWe6LFMxqHgshQQxZyXH54xcjjzE4jf3bC"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2815,8 +3067,8 @@ void test45() throws ConnectionError, ProcessingError { items6.addProperty("from", "12:00"); items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); @@ -2824,47 +3076,26 @@ void test45() throws ConnectionError, ProcessingError { items9.addProperty("product_code", "4912345678904"); items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); + items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("classification_code", "c123"); JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); + items16.addProperty("classification_code", "c123"); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); @@ -2880,31 +3111,88 @@ void test45() throws ConnectionError, ProcessingError { JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("product_code", "4912345678904"); + items20.addProperty("is_multiply_by_count", true); + items20.addProperty("required_count", 2); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("product_code", "4912345678904"); + items21.addProperty("is_multiply_by_count", true); + items21.addProperty("required_count", 2); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("product_code", "4912345678904"); + items22.addProperty("is_multiply_by_count", true); + items22.addProperty("required_count", 2); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("product_code", "4912345678904"); + items23.addProperty("is_multiply_by_count", true); + items23.addProperty("required_count", 2); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("product_code", "4912345678904"); + items24.addProperty("is_multiply_by_count", true); + items24.addProperty("required_count", 2); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("product_code", "4912345678904"); + items25.addProperty("is_multiply_by_count", true); + items25.addProperty("required_count", 2); + JsonObject items26 = new JsonObject(); + items26.addProperty("point_amount", 5); + items26.addProperty("point_amount_unit", "percent"); + items26.addProperty("subject_more_than_or_equal", 1000); + items26.addProperty("subject_less_than", 5000); + JsonObject items27 = new JsonObject(); + items27.addProperty("point_amount", 5); + items27.addProperty("point_amount_unit", "percent"); + items27.addProperty("subject_more_than_or_equal", 1000); + items27.addProperty("subject_less_than", 5000); + JsonObject items28 = new JsonObject(); + items28.addProperty("point_amount", 5); + items28.addProperty("point_amount_unit", "percent"); + items28.addProperty("subject_more_than_or_equal", 1000); + items28.addProperty("subject_less_than", 5000); + JsonObject items29 = new JsonObject(); + items29.addProperty("point_amount", 5); + items29.addProperty("point_amount_unit", "percent"); + items29.addProperty("subject_more_than_or_equal", 1000); + items29.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"d62ee4c4-ed98-4e2c-b5a0-335b1d5dc74a","a6439743-97b7-4744-8629-2a1c3baf3247","cac2cce0-fa58-400f-9702-b8cafc609ab1"}) - .minimumNumberForCombinationPurchase(8773) - .minimumNumberOfAmount(9565) - .minimumNumberOfProducts(6861) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) - .applicableDaysOfWeek(new Integer[]{1,4,2,2,6,0,4,1,5}) - .blacklistedProductRules(new Object[]{items7,items8,items9}) - .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18}) - .amountBasedPointRules(new Object[]{items19}) + .blacklistedShopIds(new String[]{"adaa31f5-3a68-44f2-a0c2-a200fd1aaa14","d1d3edfc-752e-473d-a4be-222653f27104"}) + .minimumNumberForCombinationPurchase(5081) + .minimumNumberOfAmount(9510) + .minimumNumberOfProducts(5125) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{4,1}) + .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16}) + .productBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25}) + .amountBasedPointRules(new Object[]{items26,items27,items28,items29}) .subject("all") .setExclusive(false) - .pointExpiresInDays(1343) - .pointExpiresAt("2022-12-21T20:43:10.000000Z") - .status("enabled") - .description("st44xBM1tMMoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nS") - .event("external-transaction") - .priority(9651) - .endsAt("2024-09-15T11:27:27.000000Z") - .startsAt("2022-01-07T23:48:28.000000Z") - .name("jzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf7XzEp3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6"); + .pointExpiresInDays(4542) + .pointExpiresAt("2026-06-07T13:31:07.000000Z") + .status("disabled") + .description("jwzIEhcNYML2OSzpp2xgjGNFVHJxj8ajHmdLScmLSMjxtIdUuX8NpagwVisjQjWa0Ga7Mr0dbte93IwLTuppNmEhXnyUDrs0YSyLNNnFCcwr1avxToYBT4VEV6evoILJv7tTWIqRKgT33Bi9tzz6Ttxk7d6FPiA0lsYPm9uy3bOLitkN0KHj5fbn2") + .event("topup") + .priority(1550) + .endsAt("2020-03-23T17:24:13.000000Z") + .startsAt("2020-09-27T07:12:54.000000Z") + .name("2B0UJuNrXCxgjdk6CWOkAWhJ0Lot3toFslAl38fcibrdPRjjy3jeyeKg5ECx1SgJEpSlopBJNy3qmiwYmDuOlcchHpAG2gwwi3nOK6tJxpePLFHBs9kILByZGqDqm9YAgnobRajraam0rBpkfu82GZD"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2934,138 +3222,47 @@ void test46() throws ConnectionError, ProcessingError { items5.addProperty("from", "12:00"); items5.addProperty("to", "23:59"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); - items9.addProperty("from", "12:00"); - items9.addProperty("to", "23:59"); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); items10.addProperty("product_code", "4912345678904"); items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("subject_more_than_or_equal", 1000); - items16.addProperty("subject_less_than", 5000); - Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" - ) - .blacklistedShopIds(new String[]{"fbabc2ea-21b9-402c-8a18-aba6fc5545d8","0eccf0ef-8956-467b-9ea4-8e2bb8381357","fa0939c5-349a-464f-aa94-c89b27afc79e"}) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(651) - .minimumNumberOfAmount(5656) - .minimumNumberOfProducts(9444) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .applicableDaysOfWeek(new Integer[]{0,5,3,1,4}) - .blacklistedProductRules(new Object[]{items10}) - .productBasedPointRules(new Object[]{items11,items12,items13}) - .amountBasedPointRules(new Object[]{items14,items15,items16}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(2588) - .pointExpiresAt("2020-10-14T16:45:05.000000Z") - .status("enabled") - .description("Dc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME") - .event("topup") - .priority(5548) - .endsAt("2022-10-17T21:35:50.000000Z") - .startsAt("2023-02-26T01:31:03.000000Z") - .name("RlyybO27figMsVRHKPW"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test47() throws ConnectionError, ProcessingError { - JsonObject items = new JsonObject(); - items.addProperty("from", "12:00"); - items.addProperty("to", "23:59"); - JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); - JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); - JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); - JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); - JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); - JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); - JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); - JsonObject items9 = new JsonObject(); - items9.addProperty("from", "12:00"); - items9.addProperty("to", "23:59"); - JsonObject items10 = new JsonObject(); - items10.addProperty("from", "12:00"); - items10.addProperty("to", "23:59"); - JsonObject items11 = new JsonObject(); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); - JsonObject items12 = new JsonObject(); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); - JsonObject items13 = new JsonObject(); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); - JsonObject items14 = new JsonObject(); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); - JsonObject items15 = new JsonObject(); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("classification_code", "c123"); - JsonObject items16 = new JsonObject(); items16.addProperty("product_code", "4912345678904"); - items16.addProperty("classification_code", "c123"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); @@ -3075,13 +3272,15 @@ void test47() throws ConnectionError, ProcessingError { JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("subject_more_than_or_equal", 1000); - items18.addProperty("subject_less_than", 5000); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); @@ -3107,31 +3306,35 @@ void test47() throws ConnectionError, ProcessingError { items24.addProperty("point_amount_unit", "percent"); items24.addProperty("subject_more_than_or_equal", 1000); items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"a9fd01a2-26c5-4d2e-bc85-49afa92b1162","46d1d815-4464-4094-85fd-e4e619357cf5","f2289ba9-452f-45cb-a420-c6e204708cf9","ef4c18db-fa66-4015-a3ea-c3594ddab61d","6a6318ce-7418-47c4-9678-a53471c9113e","20207195-daab-4941-b26f-34f6129a4971","4dd73196-b150-464d-96da-e841fb7c08a9","0e3c0fb8-6329-4069-b217-552f5dac81ba","7be81458-be4a-4139-9523-b4c54f3dea8d"}) - .maxPointAmount(2592) + .blacklistedShopIds(new String[]{"07669b94-b7d0-4795-8474-80522331201d","3ce26914-6062-4435-b681-d856e9bd2974","421e68fe-ea7e-4833-94f1-f2ed244bbb7d","4f6535a5-a5ae-48da-b2f8-d03dfc4f4569","b11f9ee1-a532-4575-a7aa-3805e2309b69","3bfd9b36-6ebb-4656-aed7-1a723f0c1029","9666d233-dcfd-4211-8ddc-bae7abb3e6bf","c2dc63a9-8475-4751-922e-9c41126d5877","100fdd35-9227-4d1d-ac43-f17131df0f34"}) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(3132) - .minimumNumberOfAmount(1636) - .minimumNumberOfProducts(2463) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) - .applicableDaysOfWeek(new Integer[]{1,1,6,0,3,6,0,4,4,1}) - .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16}) - .productBasedPointRules(new Object[]{items17}) - .amountBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(9941) - .pointExpiresAt("2024-01-26T17:16:23.000000Z") - .status("enabled") - .description("11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS5mnHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1a") - .event("topup") - .priority(6965) - .endsAt("2022-02-03T05:48:08.000000Z") - .startsAt("2023-04-28T08:13:57.000000Z") - .name("GpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxV"); + .minimumNumberForCombinationPurchase(8349) + .minimumNumberOfAmount(5724) + .minimumNumberOfProducts(3576) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) + .applicableDaysOfWeek(new Integer[]{3,5,6}) + .blacklistedProductRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13}) + .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19}) + .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24,items25}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(5098) + .pointExpiresAt("2021-01-29T14:42:29.000000Z") + .status("disabled") + .description("u21d4ST7CuEydnlBtSyriuS9M5GXcqFt6wV9qfsP61uEwZU") + .event("external-transaction") + .priority(9075) + .endsAt("2021-11-13T14:18:25.000000Z") + .startsAt("2021-08-21T20:53:44.000000Z") + .name("MhNzPArurgTCGgpfTuJZDkeCAQBkolLroUrTRKy1uTbc45m4YwxjxtGbA05zcwQ8eNnH7AYfIcNt7NKHBDT4zItl3ZAd6IFhkcz8jRzOJNYNTmAx0cRygrFZ66y9EQQUqakXyxFnuW2T4m1VyTa1OoANMT3g8KQuzrvKESksiTJQTVnHiOfPR4wy7f2LYwmiQ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3144,13 +3347,13 @@ void test47() throws ConnectionError, ProcessingError { } } @Test - void test48() throws ConnectionError, ProcessingError { + void test47() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); items3.addProperty("product_code", "4912345678904"); items3.addProperty("classification_code", "c123"); @@ -3176,123 +3379,51 @@ void test48() throws ConnectionError, ProcessingError { items10.addProperty("product_code", "4912345678904"); items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("subject_more_than_or_equal", 1000); + items12.addProperty("subject_less_than", 5000); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); - JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); - JsonObject items17 = new JsonObject(); - items17.addProperty("point_amount", 5); - items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); - JsonObject items18 = new JsonObject(); - items18.addProperty("point_amount", 5); - items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); - JsonObject items19 = new JsonObject(); - items19.addProperty("point_amount", 5); - items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); - JsonObject items20 = new JsonObject(); - items20.addProperty("point_amount", 5); - items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); - JsonObject items21 = new JsonObject(); - items21.addProperty("point_amount", 5); - items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("subject_more_than_or_equal", 1000); - items21.addProperty("subject_less_than", 5000); - JsonObject items22 = new JsonObject(); - items22.addProperty("point_amount", 5); - items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("subject_more_than_or_equal", 1000); - items22.addProperty("subject_less_than", 5000); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("subject_more_than_or_equal", 1000); - items23.addProperty("subject_less_than", 5000); - JsonObject items24 = new JsonObject(); - items24.addProperty("point_amount", 5); - items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("subject_more_than_or_equal", 1000); - items24.addProperty("subject_less_than", 5000); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("subject_more_than_or_equal", 1000); - items25.addProperty("subject_less_than", 5000); - JsonObject items26 = new JsonObject(); - items26.addProperty("point_amount", 5); - items26.addProperty("point_amount_unit", "percent"); - items26.addProperty("subject_more_than_or_equal", 1000); - items26.addProperty("subject_less_than", 5000); - JsonObject items27 = new JsonObject(); - items27.addProperty("point_amount", 5); - items27.addProperty("point_amount_unit", "percent"); - items27.addProperty("subject_more_than_or_equal", 1000); - items27.addProperty("subject_less_than", 5000); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"f542e138-d461-4ed6-801a-df195e015e8c","d1efe22b-c2ad-49cf-b007-15e9de1c5aad","039c3553-9bb1-4d45-9165-16cba294d5e5","ed700b32-da1f-4f45-a7a0-c7ee2c7f2e13"}) - .maxTotalPointAmount(4215) - .maxPointAmount(2733) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(5343) - .minimumNumberOfAmount(967) - .minimumNumberOfProducts(6330) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{4,5,2,3,2,0}) - .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9,items10,items11}) - .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18,items19,items20}) - .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(566) - .pointExpiresAt("2022-10-10T20:59:11.000000Z") + .blacklistedShopIds(new String[]{"cbab79ad-7791-4cd5-990a-e0fbfd3cdde0"}) + .maxPointAmount(3677) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(3478) + .minimumNumberOfAmount(8776) + .minimumNumberOfProducts(5198) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{5,2,2,6,5,2}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8,items9,items10}) + .productBasedPointRules(new Object[]{items11}) + .amountBasedPointRules(new Object[]{items12,items13,items14}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(6242) + .pointExpiresAt("2021-10-18T21:32:07.000000Z") .status("disabled") - .description("pEZQNOtI") + .description("bCugQ2sjreB3py6MReMgsNKNI6WrDerxdbupVy8ATO6lTexkb25xKe3io9ZDBIqGu38r7vCoqpH5QhZu1k2tSxqrr7YJPVhda0ziWsQtZgRc6cmsvPcY7y") .event("topup") - .priority(1159) - .endsAt("2020-02-14T18:41:22.000000Z") - .startsAt("2023-02-14T00:23:45.000000Z") - .name("p7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN"); + .priority(2690) + .endsAt("2025-07-18T02:06:27.000000Z") + .startsAt("2025-11-14T16:48:40.000000Z") + .name("kSXuhO9OLfbw29j7FyeDINdaRXM95lPwMwz9IKIn6wEZkPRJyErXa70KC1ZDBuFoL3t7T5TQkGNyZe8GBabvL25GCAVUwr2eojbDaPOXkEpyp"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3305,10 +3436,7 @@ void test48() throws ConnectionError, ProcessingError { } } @Test - void test49() throws ConnectionError, ProcessingError { - JsonObject applicable_account_metadata = new JsonObject(); - applicable_account_metadata.addProperty("key", "sex"); - applicable_account_metadata.addProperty("value", "male"); + void test48() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -3322,14 +3450,14 @@ void test49() throws ConnectionError, ProcessingError { items4.addProperty("from", "12:00"); items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); @@ -3349,17 +3477,29 @@ void test49() throws ConnectionError, ProcessingError { items13.addProperty("product_code", "4912345678904"); items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("classification_code", "c123"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); items16.addProperty("product_code", "4912345678904"); - items16.addProperty("classification_code", "c123"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("classification_code", "c123"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); @@ -3369,15 +3509,13 @@ void test49() throws ConnectionError, ProcessingError { JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); @@ -3393,68 +3531,32 @@ void test49() throws ConnectionError, ProcessingError { items23.addProperty("point_amount_unit", "percent"); items23.addProperty("subject_more_than_or_equal", 1000); items23.addProperty("subject_less_than", 5000); - JsonObject items24 = new JsonObject(); - items24.addProperty("point_amount", 5); - items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("subject_more_than_or_equal", 1000); - items24.addProperty("subject_less_than", 5000); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("subject_more_than_or_equal", 1000); - items25.addProperty("subject_less_than", 5000); - JsonObject items26 = new JsonObject(); - items26.addProperty("point_amount", 5); - items26.addProperty("point_amount_unit", "percent"); - items26.addProperty("subject_more_than_or_equal", 1000); - items26.addProperty("subject_less_than", 5000); - JsonObject items27 = new JsonObject(); - items27.addProperty("point_amount", 5); - items27.addProperty("point_amount_unit", "percent"); - items27.addProperty("subject_more_than_or_equal", 1000); - items27.addProperty("subject_less_than", 5000); - JsonObject items28 = new JsonObject(); - items28.addProperty("point_amount", 5); - items28.addProperty("point_amount_unit", "percent"); - items28.addProperty("subject_more_than_or_equal", 1000); - items28.addProperty("subject_less_than", 5000); - JsonObject items29 = new JsonObject(); - items29.addProperty("point_amount", 5); - items29.addProperty("point_amount_unit", "percent"); - items29.addProperty("subject_more_than_or_equal", 1000); - items29.addProperty("subject_less_than", 5000); - JsonObject items30 = new JsonObject(); - items30.addProperty("point_amount", 5); - items30.addProperty("point_amount_unit", "percent"); - items30.addProperty("subject_more_than_or_equal", 1000); - items30.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"1d28ddb6-9d70-4ab0-85b7-3632e40ec371","00ab16d7-cda1-43de-bd9c-ac011c6923f4","e3db6fbd-a6cf-40bd-aa6b-59963b5f9513","b599481a-8c0e-4e5d-a990-24338764b7ab","93b282d1-a955-4d5b-9626-a6e20a7ea8aa","01a7d945-7853-4ac5-97d0-e3742d4e4763","4046c146-033b-4af9-b5fc-05879ae0b1a6"}) - .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(3855) - .maxPointAmount(5034) + .blacklistedShopIds(new String[]{"e9bf1f8c-37b4-4718-a1ca-04a145cd7ef2","0250a767-b668-46c1-a0e0-3ee63d6bab36","30c145b7-e220-4d55-877a-e6e4bfa19adc","0307bcde-d792-469b-b41a-0706561d2a67","2cc8d724-5b62-4def-8fbe-918b5d410659","447e8071-3eb9-48b9-ad83-e3fde82898be","48e3e97a-70ad-460f-834d-ac3a29d27351","e0c00b15-4d39-4d20-9ab7-75ce2c3e967a","41e41169-cd82-4b41-b56a-aa11e0532f4c"}) + .maxTotalPointAmount(9401) + .maxPointAmount(4581) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(6030) - .minimumNumberOfAmount(2596) - .minimumNumberOfProducts(5176) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{2,5,4,1,1,3}) - .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17}) - .productBasedPointRules(new Object[]{items18,items19,items20}) - .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27,items28,items29,items30}) + .minimumNumberForCombinationPurchase(4271) + .minimumNumberOfAmount(5548) + .minimumNumberOfProducts(7153) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{1,4,5,1}) + .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13}) + .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18}) + .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23}) .subject("all") .setExclusive(true) - .pointExpiresInDays(2977) - .pointExpiresAt("2020-03-03T08:35:28.000000Z") + .pointExpiresInDays(2643) + .pointExpiresAt("2026-06-20T06:28:32.000000Z") .status("disabled") - .description("tFPfUfw") - .event("payment") - .priority(5091) - .endsAt("2021-07-22T02:49:01.000000Z") - .startsAt("2022-06-30T17:18:06.000000Z") - .name("lmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFr"); + .description("xfkjlz1SjQKzzKh9mzyFG6lnGeQBDP1uxJ6IIDy8VE7WwBdF0msuDaOhM5oqV2xleoqU08aoK4SSRQxNI4HYZa4lL8vlyT5v2fWiN7LjHjlDtCGjTLI9kXm") + .event("external-transaction") + .priority(7234) + .endsAt("2021-08-03T06:18:46.000000Z") + .startsAt("2025-06-17T02:37:38.000000Z") + .name("lgeqVtAvQ0rVDYOMHbm3FgLktaUhgEFTnEcwpkpUTSKxUsOoZPlM9KHj0LscW1P81Qy90jmz1sBL2rdIxI95Aq016ZjJCH7wtIwkByOxgZ1CmhlD7BVFzYE678HYgrDW8XfB04cuHe8uQqeJWnp68s54oON3JT7TlfvcjHRgsbjroXcf1fxLB1yf5dH6gwvhweVkrWRctnJ2TSLmfSkWFb6oLKvNkr7xERwVYEzuAqPS2Yq"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3467,10 +3569,7 @@ void test49() throws ConnectionError, ProcessingError { } } @Test - void test50() throws ConnectionError, ProcessingError { - JsonObject applicable_transaction_metadata = new JsonObject(); - applicable_transaction_metadata.addProperty("key", "rank"); - applicable_transaction_metadata.addProperty("value", "bronze"); + void test49() throws ConnectionError, ProcessingError { JsonObject applicable_account_metadata = new JsonObject(); applicable_account_metadata.addProperty("key", "sex"); applicable_account_metadata.addProperty("value", "male"); @@ -3481,11 +3580,17 @@ void test50() throws ConnectionError, ProcessingError { items2.addProperty("product_code", "4912345678904"); items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); + items3.addProperty("point_amount", 5); + items3.addProperty("point_amount_unit", "percent"); items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); + items3.addProperty("is_multiply_by_count", true); + items3.addProperty("required_count", 2); JsonObject items4 = new JsonObject(); + items4.addProperty("point_amount", 5); + items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); + items4.addProperty("is_multiply_by_count", true); + items4.addProperty("required_count", 2); JsonObject items5 = new JsonObject(); items5.addProperty("point_amount", 5); items5.addProperty("point_amount_unit", "percent"); @@ -3507,9 +3612,88 @@ void test50() throws ConnectionError, ProcessingError { JsonObject items8 = new JsonObject(); items8.addProperty("point_amount", 5); items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("subject_more_than_or_equal", 1000); + items8.addProperty("subject_less_than", 5000); + JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); + items9.addProperty("subject_more_than_or_equal", 1000); + items9.addProperty("subject_less_than", 5000); + JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("subject_more_than_or_equal", 1000); + items10.addProperty("subject_less_than", 5000); + Request request = new UpdateCampaign( + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" + ) + .blacklistedShopIds(new String[]{"dcea2e5a-8c78-4237-b26c-56388a44b855","b97ac1f7-4b9e-4010-a29e-ce369c96c564","d4ba29fe-b16a-47e2-9189-40c0eef6d1c5","94735d2c-01af-497c-ab20-ac27d7a99023","cf350d83-c72e-4cee-b845-fad60ce3f9f5","defb4fdd-2201-4316-baf5-efc242e2fa8d"}) + .applicableAccountMetadata(applicable_account_metadata) + .maxTotalPointAmount(8950) + .maxPointAmount(4332) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(6976) + .minimumNumberOfAmount(4428) + .minimumNumberOfProducts(8603) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{1,6}) + .blacklistedProductRules(new Object[]{items2}) + .productBasedPointRules(new Object[]{items3,items4,items5,items6,items7}) + .amountBasedPointRules(new Object[]{items8,items9,items10}) + .subject("all") + .setExclusive(false) + .pointExpiresInDays(1424) + .pointExpiresAt("2024-10-17T13:01:41.000000Z") + .status("disabled") + .description("UO2HA5dwLtiNF6M5qahAMFoXb9rmaZQXIsaxB2CgIcPvFHqcQFB1JdewR9buGPpBiWlh") + .event("topup") + .priority(9628) + .endsAt("2020-05-13T17:43:00.000000Z") + .startsAt("2024-12-07T12:02:44.000000Z") + .name("GbWvDfmVaNvPs9iu3XzENeNNhWBPj9P6rAeXLgWVKiBaMXABCznkolZF0XVehDsumc383ILCYIvwae0oDTZVM9Vn0NHWZb8ZS9tjcczZ4Gwb0PhYqZg"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test50() throws ConnectionError, ProcessingError { + JsonObject applicable_transaction_metadata = new JsonObject(); + applicable_transaction_metadata.addProperty("key", "rank"); + applicable_transaction_metadata.addProperty("value", "bronze"); + JsonObject applicable_account_metadata = new JsonObject(); + applicable_account_metadata.addProperty("key", "sex"); + applicable_account_metadata.addProperty("value", "male"); + JsonObject items = new JsonObject(); + items.addProperty("from", "12:00"); + items.addProperty("to", "23:59"); + JsonObject items2 = new JsonObject(); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); + JsonObject items3 = new JsonObject(); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); + JsonObject items4 = new JsonObject(); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); + JsonObject items5 = new JsonObject(); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); + JsonObject items6 = new JsonObject(); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); + JsonObject items7 = new JsonObject(); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); + JsonObject items8 = new JsonObject(); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); @@ -3543,13 +3727,15 @@ void test50() throws ConnectionError, ProcessingError { JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); @@ -3570,34 +3756,39 @@ void test50() throws ConnectionError, ProcessingError { items19.addProperty("point_amount_unit", "percent"); items19.addProperty("subject_more_than_or_equal", 1000); items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"87866201-3684-460e-8bb4-d74ee3fdd4c8","612b55d0-7982-42f6-aca8-2c14971f6c34","6173b38d-34d6-4368-b111-59cf150fbc06","de14c591-8264-4071-b9cb-51c8998b527c","afd176e3-fdc9-404f-a150-3d214e133368","20a4079e-971a-4eae-a222-a3ffb7fa7cf6"}) + .blacklistedShopIds(new String[]{"fb33e704-0d1d-425a-90c2-4d4af49682db"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(906) - .maxPointAmount(3467) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(3119) - .minimumNumberOfAmount(872) - .minimumNumberOfProducts(1504) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{5}) - .blacklistedProductRules(new Object[]{items2,items3,items4}) - .productBasedPointRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13}) - .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19}) + .maxTotalPointAmount(961) + .maxPointAmount(623) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(1413) + .minimumNumberOfAmount(4065) + .minimumNumberOfProducts(5475) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) + .applicableDaysOfWeek(new Integer[]{3,0,5,4}) + .blacklistedProductRules(new Object[]{items6,items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15}) + .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20}) .subject("all") .setExclusive(false) - .pointExpiresInDays(4508) - .pointExpiresAt("2021-04-28T08:51:45.000000Z") - .status("enabled") - .description("T9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbR") + .pointExpiresInDays(8555) + .pointExpiresAt("2020-02-11T15:25:47.000000Z") + .status("disabled") + .description("hy5TEcMRzowrgDb6GM4mHTaOBMMolvbDp36ZS9Ve1qo3bvmXucCaFZQN2ap2j3Mr8o8HkBWUUKfQKZC3BSMS3hsgpJcOAd6ocE4mBLmKXcPupi77r56oXCNc3dwl2FKTZG70JMbSmw5RMuvJN6cdbvg50QHlnDydRn68Kb") .event("payment") - .priority(5945) - .endsAt("2022-04-28T11:37:24.000000Z") - .startsAt("2024-05-22T20:52:59.000000Z") - .name("UhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGS"); + .priority(5509) + .endsAt("2023-07-28T12:18:27.000000Z") + .startsAt("2023-03-28T18:23:37.000000Z") + .name("vDsNqKoorksWBQ398rR59EiVvlwAljCUfIeXX8HLaAA7O7c9AzboPOcXU3N4H4mDJiKqsHB9PJplqhMYaIBcQj7mL59HnlNHLuA0aOdVgj6K1GxL1yIWWOf6rndacFLJTT1b61igwFwXc9Xw81AcLgJ7HUPLZ2JY3Pzdzio"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3621,23 +3812,23 @@ void test51() throws ConnectionError, ProcessingError { items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); JsonObject items6 = new JsonObject(); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); @@ -3645,60 +3836,150 @@ void test51() throws ConnectionError, ProcessingError { items9.addProperty("product_code", "4912345678904"); items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); + items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("product_code", "4912345678904"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("product_code", "4912345678904"); + items20.addProperty("is_multiply_by_count", true); + items20.addProperty("required_count", 2); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("product_code", "4912345678904"); + items21.addProperty("is_multiply_by_count", true); + items21.addProperty("required_count", 2); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("product_code", "4912345678904"); + items22.addProperty("is_multiply_by_count", true); + items22.addProperty("required_count", 2); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); + JsonObject items26 = new JsonObject(); + items26.addProperty("point_amount", 5); + items26.addProperty("point_amount_unit", "percent"); + items26.addProperty("subject_more_than_or_equal", 1000); + items26.addProperty("subject_less_than", 5000); + JsonObject items27 = new JsonObject(); + items27.addProperty("point_amount", 5); + items27.addProperty("point_amount_unit", "percent"); + items27.addProperty("subject_more_than_or_equal", 1000); + items27.addProperty("subject_less_than", 5000); + JsonObject items28 = new JsonObject(); + items28.addProperty("point_amount", 5); + items28.addProperty("point_amount_unit", "percent"); + items28.addProperty("subject_more_than_or_equal", 1000); + items28.addProperty("subject_less_than", 5000); + JsonObject items29 = new JsonObject(); + items29.addProperty("point_amount", 5); + items29.addProperty("point_amount_unit", "percent"); + items29.addProperty("subject_more_than_or_equal", 1000); + items29.addProperty("subject_less_than", 5000); + JsonObject items30 = new JsonObject(); + items30.addProperty("point_amount", 5); + items30.addProperty("point_amount_unit", "percent"); + items30.addProperty("subject_more_than_or_equal", 1000); + items30.addProperty("subject_less_than", 5000); + JsonObject items31 = new JsonObject(); + items31.addProperty("point_amount", 5); + items31.addProperty("point_amount_unit", "percent"); + items31.addProperty("subject_more_than_or_equal", 1000); + items31.addProperty("subject_less_than", 5000); + JsonObject items32 = new JsonObject(); + items32.addProperty("point_amount", 5); + items32.addProperty("point_amount_unit", "percent"); + items32.addProperty("subject_more_than_or_equal", 1000); + items32.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e5bb6cf7-eb85-4a82-9801-6d8fef9c6b1b" ) - .blacklistedShopIds(new String[]{"579d66c0-542a-4ea0-9ea4-11c26d44c7b9","7ab22c73-a2cd-4a2f-bbc3-3b16decc2dec","64aef242-d113-4316-bc93-4225add7aa61","28b2f27e-9446-4fea-9af4-8abd04056fda"}) - .budgetCapsAmount(1576527131) + .blacklistedShopIds(new String[]{"000e6fdd-5aa7-48da-923b-3bceb2d15730","903ac4e5-f79f-4855-bfec-ff6e7c0bcdd7","2156f10a-4441-45ed-94c5-dae452a20f61","f66716f1-13a0-48d9-9dde-d2b82904b2f0","38e9a54a-2b3f-4b54-b95f-5c47a7f72983","1d4f8a35-e9b8-4dd7-97dd-a4afa5fb9e6f","4725de9f-6956-4dbe-abd4-3a60d5812e5b"}) + .budgetCapsAmount(1196160269) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(3267) - .maxPointAmount(6431) + .maxTotalPointAmount(8650) + .maxPointAmount(240) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(6991) - .minimumNumberOfAmount(9120) - .minimumNumberOfProducts(1817) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{4,1,2,5}) - .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9}) - .productBasedPointRules(new Object[]{items10}) - .amountBasedPointRules(new Object[]{items11,items12,items13,items14}) - .subject("money") + .minimumNumberForCombinationPurchase(5863) + .minimumNumberOfAmount(7211) + .minimumNumberOfProducts(1115) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{3,3,2,0,4}) + .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13}) + .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20,items21,items22}) + .amountBasedPointRules(new Object[]{items23,items24,items25,items26,items27,items28,items29,items30,items31,items32}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(6007) - .pointExpiresAt("2023-02-06T09:56:17.000000Z") + .pointExpiresInDays(9000) + .pointExpiresAt("2021-02-10T16:04:29.000000Z") .status("enabled") - .description("0Cr3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXon") + .description("ZaoOg0V0uaqelttkE7ehROL4XrOdkUWUyHCGGZhBjhjuTKoJ3qm") .event("topup") - .priority(3727) - .endsAt("2020-03-14T12:41:41.000000Z") - .startsAt("2023-10-21T08:38:31.000000Z") - .name("mfKJhNI2H30SlKK1O1UKOiryeoJ2KHqioForPYYFDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVupSap8p4f5efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3"); + .priority(6204) + .endsAt("2023-03-21T12:04:31.000000Z") + .startsAt("2022-12-10T07:26:44.000000Z") + .name("aRjWQ8gKOhK9uTt59dHqyzQZgDiWvj8etzcFhDXwcbaPJFYUtWSDUUOzA6JdRqRnPGGmxcvLiruhnUYA2evPNgfEtt9VoXY8Zbi4bO3aVrBDzVdWXtFy5mPY7A1qrS8dHstlQrZdGZnteTqjTP7dz4MDySQpvknUff9KCWQcYJFvGq64qVmrZJcpFiWZHeIfQdHdvs4v2aUitPGe5J3m0ryc2OEvFX8WzzwH3wI"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCashtrayTest.java index 61925332..f5dc1be7 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateCashtrayTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateCashtrayTest.java @@ -12,7 +12,7 @@ public class UpdateCashtrayTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateCashtray( - "5dac37c8-967a-4962-8818-43f58aac4ee3" + "9db4a593-f049-446b-bfc3-9ac048d9a958" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateCashtray( - "5dac37c8-967a-4962-8818-43f58aac4ee3" + "9db4a593-f049-446b-bfc3-9ac048d9a958" ) - .expiresIn(2373); + .expiresIn(6239); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateCashtray( - "5dac37c8-967a-4962-8818-43f58aac4ee3" + "9db4a593-f049-446b-bfc3-9ac048d9a958" ) - .description("hID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8WbkxbWTp66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6GGJ1GXo5UPiFJuScrEGcY5") - .expiresIn(6071); + .description("GENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3Hc5MrDSrYQmTFD8MK4LhwIRladKEnUCUBMTsHjSLXQWZdqZHX") + .expiresIn(4131); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateCashtray( - "5dac37c8-967a-4962-8818-43f58aac4ee3" + "9db4a593-f049-446b-bfc3-9ac048d9a958" ) - .amount(6557.0) - .description("YJqEcansSsP2ceIvKP9bgYanQbVQM9Z6RG0kCsPdzwEr5mXGzuLW3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhr") - .expiresIn(9919); + .amount(8527.0) + .description("S9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl1nws6Ne3S7kdpHli9FCf9vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn6U1tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0") + .expiresIn(733); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java index c7bf6f8c..5ae25286 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java @@ -12,7 +12,7 @@ public class UpdateCheckTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "40ac8f20-6f58-4b05-8ea2-47453736b61d" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "40ac8f20-6f58-4b05-8ea2-47453736b61d" ) .setDisabled(true); try { @@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "40ac8f20-6f58-4b05-8ea2-47453736b61d" ) - .bearPointAccount("0ef62065-a6e8-4745-b01e-b4465ebf2893") + .bearPointAccount("b48c03c2-eac4-452c-a520-a97f9a6f36e2") .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "40ac8f20-6f58-4b05-8ea2-47453736b61d" ) - .pointExpiresInDays(8115) - .bearPointAccount("50b4b7e4-86c0-4731-a6c0-d000e06e77f3") - .setDisabled(false); + .pointExpiresInDays(6611) + .bearPointAccount("2f4460cf-a0eb-4549-b58b-1889f4093836") + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "40ac8f20-6f58-4b05-8ea2-47453736b61d" ) - .pointExpiresAt("2022-09-17T04:14:34.000000Z") - .pointExpiresInDays(6114) - .bearPointAccount("120cd1dc-82f1-40db-b4e3-d8738f704eaf") - .setDisabled(true); + .pointExpiresAt("2024-10-08T05:56:30.000000Z") + .pointExpiresInDays(6778) + .bearPointAccount("9f3cfdee-4501-499c-bdb3-681527ec2896") + .setDisabled(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "40ac8f20-6f58-4b05-8ea2-47453736b61d" ) - .expiresAt("2021-12-26T07:08:50.000000Z") - .pointExpiresAt("2020-04-20T21:24:42.000000Z") - .pointExpiresInDays(9361) - .bearPointAccount("add2afb3-924a-4e3f-b238-e78e930de5f8") - .setDisabled(false); + .startsAt("2025-07-20T17:54:04.000000Z") + .pointExpiresAt("2020-07-22T22:28:29.000000Z") + .pointExpiresInDays(7543) + .bearPointAccount("b3a15941-5b64-4d67-b2d7-b62cf2add97a") + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "40ac8f20-6f58-4b05-8ea2-47453736b61d" ) - .usageLimit(5850) - .expiresAt("2022-09-20T22:54:41.000000Z") - .pointExpiresAt("2022-06-21T06:26:38.000000Z") - .pointExpiresInDays(9091) - .bearPointAccount("e6b60915-66a2-463e-b156-c43425c0e7bf") - .setDisabled(false); + .expiresAt("2024-11-13T18:36:24.000000Z") + .startsAt("2024-01-05T14:54:46.000000Z") + .pointExpiresAt("2023-04-12T11:00:51.000000Z") + .pointExpiresInDays(5802) + .bearPointAccount("7cd04551-ad13-48be-a604-b282be1a6906") + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "40ac8f20-6f58-4b05-8ea2-47453736b61d" ) - .setOnetime(false) - .usageLimit(6690) - .expiresAt("2021-06-13T06:42:46.000000Z") - .pointExpiresAt("2024-02-20T12:53:17.000000Z") - .pointExpiresInDays(3236) - .bearPointAccount("59559e61-6e5c-4a87-8d38-dd650e4cb294") - .setDisabled(true); + .usageLimit(9387) + .expiresAt("2023-03-05T04:38:58.000000Z") + .startsAt("2025-11-24T11:38:51.000000Z") + .pointExpiresAt("2021-02-14T03:06:19.000000Z") + .pointExpiresInDays(7723) + .bearPointAccount("9dff3256-e382-4be8-8324-7e59d5f1fa6d") + .setDisabled(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -168,15 +168,15 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "40ac8f20-6f58-4b05-8ea2-47453736b61d" ) - .description("KBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0eLy") .setOnetime(false) - .usageLimit(666) - .expiresAt("2020-05-04T10:41:03.000000Z") - .pointExpiresAt("2020-03-06T08:42:24.000000Z") - .pointExpiresInDays(4807) - .bearPointAccount("f22beb4e-a05a-4d14-b711-7187892faaa4") + .usageLimit(6059) + .expiresAt("2024-12-18T05:21:13.000000Z") + .startsAt("2026-01-30T04:00:33.000000Z") + .pointExpiresAt("2024-03-19T23:10:21.000000Z") + .pointExpiresInDays(9482) + .bearPointAccount("011991c0-2a47-485c-b4a4-419d60480979") .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -192,16 +192,16 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "40ac8f20-6f58-4b05-8ea2-47453736b61d" ) - .pointAmount(7166.0) - .description("9bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4VsaDUMga8HPH") - .setOnetime(true) - .usageLimit(6288) - .expiresAt("2023-09-02T05:02:34.000000Z") - .pointExpiresAt("2023-01-19T14:30:30.000000Z") - .pointExpiresInDays(7609) - .bearPointAccount("618163de-18d6-4441-aa8e-45f8f4b0868f") + .description("iVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taF") + .setOnetime(false) + .usageLimit(591) + .expiresAt("2022-02-27T19:34:39.000000Z") + .startsAt("2023-07-24T18:41:34.000000Z") + .pointExpiresAt("2020-03-21T18:53:11.000000Z") + .pointExpiresInDays(8838) + .bearPointAccount("fa82d6ff-dfaa-4bdc-a898-adcecf8f937c") .setDisabled(true); try { PartnerAPITest.getClient().send(request); @@ -217,17 +217,44 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "40ac8f20-6f58-4b05-8ea2-47453736b61d" + ) + .pointAmount(6201.0) + .description("omkOYYX") + .setOnetime(false) + .usageLimit(4657) + .expiresAt("2022-09-11T10:15:22.000000Z") + .startsAt("2024-10-03T07:04:01.000000Z") + .pointExpiresAt("2024-08-01T05:36:35.000000Z") + .pointExpiresInDays(5442) + .bearPointAccount("49088d2b-732b-49a4-952c-4422dd17bced") + .setDisabled(true); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test11() throws ConnectionError, ProcessingError { + Request request = new UpdateCheck( + "40ac8f20-6f58-4b05-8ea2-47453736b61d" ) - .moneyAmount(9425.0) - .pointAmount(1504.0) - .description("n6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqy") + .moneyAmount(325.0) + .pointAmount(9913.0) + .description("WtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQPcXHRn98CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqS") .setOnetime(true) - .usageLimit(383) - .expiresAt("2022-04-12T23:40:04.000000Z") - .pointExpiresAt("2021-03-06T21:54:59.000000Z") - .pointExpiresInDays(7574) - .bearPointAccount("eda3cfd8-5227-4ac6-939b-581886060b57") + .usageLimit(6498) + .expiresAt("2025-09-13T01:49:38.000000Z") + .startsAt("2022-10-21T00:39:40.000000Z") + .pointExpiresAt("2024-09-18T01:25:06.000000Z") + .pointExpiresInDays(1169) + .bearPointAccount("088c8e35-64dd-4428-bd3c-0635dcc768d2") .setDisabled(false); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java index dd408019..c88ca3ca 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java @@ -12,9 +12,9 @@ public class UpdateCouponTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(8569); + .discountAmount(2632); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(6935) - .name("8UduAdQ5IH0TK2HSa"); + .discountAmount(3453) + .name("W7he8Z1qLepuyyE02MG8yUNtUKfprHpGaVcCOEeWb"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -47,11 +47,11 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(8052) - .description("A6ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvII6xukRoB486IcnSrXwZGPsDFfbhpjo") - .name("CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FA"); + .discountAmount(1825) + .description("TQI3q8qslujxF3n4fR7Vfp3vRJLnSgiLPjnc4kQ0HdyTor536XOfVM3XXOQ3tGi0CJH7VMgkZVkFMaOxCQ0Il4LS1H9Rmh1BhIW8NFmlvrlMvNLwEsnbNKTS2h75GF8UpjoAlQvJzCU8IgWIQfnPgb4T4DEkgPLD0xZMd5yjnHtiPzKYB9uBkIh8") + .name("qvqswUq9MIMd1v50tEiK5VU8UR"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -66,12 +66,12 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(8042) - .discountUpperLimit(1963) - .description("tbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEEKedrMwdHukpCicHBj64f1DT6D6") - .name("Mien3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4S"); + .discountAmount(2790) + .discountUpperLimit(8436) + .description("XY7iH91521L9iCZDgOHv8ccbKA9zaXWInrPmgciqGxhGUs6ZnMyMQoClDSK7KRPQ6M6EMYtB6Ep2GnDZJdtjBh5VRBTfV5MJhYQTBRBM7G8j00YInJitv9WP6kwxoiXMMFgIG6MJKNbnVLomjuJJQI4ykecPid861BWO2utY6ykCTVCcIXTPlbcMZgCJ9BjKA9Lvl") + .name("TLcW71b8cClVacDr5l3x4FVfYiLUL8Bb8dzaB45kELqQHfqMF0cAfS47CSQOovJ8c1i3feNO1qJBnpp3tyKjZPjTs65qzNTqIMvOUP7lDJ3"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -86,13 +86,13 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(6201) - .startsAt("2024-05-22T11:46:17.000000Z") - .discountUpperLimit(7049) - .description("Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouPF8sEd3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4Lx") - .name("Yp1VFXi65IWH287FkS1AdoZmrqVFQp8fp9IpDGNT32XXjSeAsfsowmrnytFnDNPErJC0T6j8TSBN1GRIxfJ3UGUUM2jHDzbRjTfUU5d5AtO"); + .discountAmount(8370) + .startsAt("2025-08-14T16:06:41.000000Z") + .discountUpperLimit(4876) + .description("SCMXHu4UsQsifzmvmEGKnmcQWOqm2bxZSUNMN2LXvZ3UB0bY6L3973iqLKkGFIZmfuXhD9mm06njf2aXb7PnD9gNpMDYfCPceKjPow2YL1adnoZFEUP94ii4uT2NJ6DSRSGMdhjjWzKEnHt1GlWmv2y5j3kpGt0e4jNi92dahlnnkKHVszpYHPkZF0J60lUnUwRinT2la9EMVbGBQcWz4E8fUZnWcjAk0kMso3CQzadAG14rJr7OIiIwKYtN") + .name("zp8nODkJL8EIU81Vy5zPsQOGlQlr06Jl9JLWCZ8neyUVmWBR3xve7r3YSLXQYTyvYaa"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -107,14 +107,14 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(2829) - .endsAt("2021-12-12T09:02:22.000000Z") - .startsAt("2023-03-24T23:29:09.000000Z") - .discountUpperLimit(8481) - .description("L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNR") - .name("sJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1TG2yJEOhnrWkQVh8G8vXFKeuF0FhTncNlMmgEuaHAH"); + .discountAmount(4908) + .endsAt("2026-06-21T10:29:50.000000Z") + .startsAt("2026-01-26T00:36:44.000000Z") + .discountUpperLimit(1424) + .description("I2qvRlrSNIrRDPa1eyCiQOxDTwWc9gws9") + .name("XAUrux74v2ITxjA0PgzICgqeJVlSY26G92wNF5y9aZ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -129,15 +129,15 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(1922) - .displayStartsAt("2023-04-09T08:14:22.000000Z") - .endsAt("2020-06-03T00:04:43.000000Z") - .startsAt("2020-11-04T09:07:58.000000Z") - .discountUpperLimit(8471) - .description("z60OEH7JgjiAw3cGaLL5KHpinnRK5y0OzJ9Hvf2cVYRMoN8ciCbZWnzcDnK4LA4gWzsFxrEWGQmIqwq80GWYOCdqp3aMw45RftnlC78XMJnZ0CKAQudtFEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVu") - .name("axHAAztkflrbX507aitxdTcYjjCJVatXW3s3mbWjjaocKJS9JHlwFlJcsltjjmodDQEUxDaghv7DnSC5Rfu0C0uKF"); + .discountAmount(4195) + .displayStartsAt("2021-12-12T01:40:37.000000Z") + .endsAt("2025-07-07T10:38:24.000000Z") + .startsAt("2023-03-18T04:53:21.000000Z") + .discountUpperLimit(4561) + .description("T3BxPWw78yOKfPR1NUJQvD2rVGC84JJKMYYu6jp9XJncsuSh46krybNv1zjGCQgXpBAn6vYjVqpA4IONiLV0kr6A1DgXWodpkxho8rBfuxAgk4G7K3EbPTtYbjyxowsbeNA1qdSnOGMCPl7IMBQKQv86A0JZpBpvSAXbo") + .name("bD9Ki30vC5rrnazdVnK3PrJ5SiaT9q7d0MByh1j24T8jie07UHeDFjaRvAps3KfAZfCcJF6TIEeRcrhiMDEAjwsoqC0B7Kc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,16 +152,16 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(8592) - .displayEndsAt("2024-05-23T10:02:09.000000Z") - .displayStartsAt("2024-01-20T05:34:47.000000Z") - .endsAt("2020-05-11T15:53:17.000000Z") - .startsAt("2021-11-24T22:53:36.000000Z") - .discountUpperLimit(3664) - .description("PjblE3KxRrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0MuCLswxDV9drgRKhLSvZ2KQORxMHroQo6jM66W2y8KrZ8xMlNalvWasLjNh8s14cZJ7e4Q9GCUyL2v9u3mWzZwKqxzujrUlmkKRdRXeieY6AmMB38WCqGZQWNed5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3") - .name("ijXWL36Ne9BIyD0VsxUMLq2pynj2i9JShHMs7dpHbhmzmDvsuxdQFF1b9FFVSxNRhY3CeG383Fyff0GWuf"); + .discountAmount(4272) + .displayEndsAt("2022-06-17T10:38:22.000000Z") + .displayStartsAt("2023-02-18T09:27:32.000000Z") + .endsAt("2020-10-06T03:14:35.000000Z") + .startsAt("2020-11-03T13:11:38.000000Z") + .discountUpperLimit(7583) + .description("agkhJ7wfZWTULKa8VECsBZr3IToxXjdyKGc7ZzHUV5fOm8mtNakhvcdUzoLcA59nUhEAXqtCyQcPmsvpgfmd8PIAhkngoJScrC1WRAvXHATbSrzSbRU1v2KZFFhdMjCCzsHpBmrvRb2UjrXmXby0g0KQCQJco6Fst7K2jJcCqUZTewzuJ3F92QKd3C9M0vBcKWIUBdcBNwq9T0OG7VRzcPfWGO1YJqrl83WexbWjPBIcMUJ3ob") + .name("VqULs"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -176,17 +176,17 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(8580) + .discountAmount(2231) .setDisabled(true) - .displayEndsAt("2022-09-29T02:55:39.000000Z") - .displayStartsAt("2021-02-10T01:03:09.000000Z") - .endsAt("2022-11-06T07:41:41.000000Z") - .startsAt("2020-04-06T13:06:29.000000Z") - .discountUpperLimit(6001) - .description("G40T5H1YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6dE59eFWe4PxHJhHM6PRObQxj3f4w8El4HGgfInUuZUZacdXJKlldoDuv9TA2XHRXocL0a2ENjq4YdkJGWgFmKTEIA1MAf2HgecI") - .name("l74FyRST7ScfdaiXI0aphnQpmaEH46JpxMwBWB66twUX"); + .displayEndsAt("2024-11-21T06:36:57.000000Z") + .displayStartsAt("2022-08-13T16:46:43.000000Z") + .endsAt("2021-04-11T17:59:46.000000Z") + .startsAt("2022-05-27T10:20:40.000000Z") + .discountUpperLimit(4295) + .description("AUAdxQTQ69L5ufP3C8GoKbqWo6okozRxG7O1lnWZInpqxewkSnO8G8BVdp2SnU56fm1ftu8RnsdeIRkNWykpBgBjKxJ1kVUP7sJk9W7sPqDCWwYS94nlMA9QMeCa") + .name("fNqHwyM"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -201,18 +201,18 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(8570) + .discountAmount(4509) .setHidden(true) - .setDisabled(false) - .displayEndsAt("2020-10-21T09:48:49.000000Z") - .displayStartsAt("2023-06-28T22:41:05.000000Z") - .endsAt("2022-06-24T14:40:49.000000Z") - .startsAt("2021-09-05T08:59:36.000000Z") - .discountUpperLimit(5166) - .description("REjqmyqJkEdfkYviMgBpZAYBbcvRZzaI37qk5Qpl5Gz36NQavWZXSE0IrKdpz0FXntwLwsP6PlvtKfS7zk6Hoi0oeAT0NWEwBSET0oVnBy6crZKnvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB304Jmf05hgJ") - .name("rNiPO7Acqsb1X8oQj9wf9SU4WjLK1VT02GEDFloz09QK5UFuC"); + .setDisabled(true) + .displayEndsAt("2024-10-30T20:16:15.000000Z") + .displayStartsAt("2020-10-10T05:15:43.000000Z") + .endsAt("2023-09-28T00:27:07.000000Z") + .startsAt("2024-11-10T05:57:55.000000Z") + .discountUpperLimit(7066) + .description("Wi3JTYLChkb6TlitzWaW4uPhPny3cB55XyFtx17Q") + .name("BRLdwgp38D246YReej2SSeva"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -227,19 +227,19 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(9501) - .setPublic(false) + .discountAmount(8203) + .setPublic(true) .setHidden(false) - .setDisabled(true) - .displayEndsAt("2021-03-27T16:01:28.000000Z") - .displayStartsAt("2022-01-12T06:57:26.000000Z") - .endsAt("2023-12-15T21:42:57.000000Z") - .startsAt("2022-01-25T09:25:13.000000Z") - .discountUpperLimit(3382) - .description("yQZu56A1wWzKTTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6cvEGDQNsufaSx2VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkw") - .name("C6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbV"); + .setDisabled(false) + .displayEndsAt("2021-03-29T23:20:25.000000Z") + .displayStartsAt("2024-12-14T18:31:11.000000Z") + .endsAt("2020-06-02T12:53:42.000000Z") + .startsAt("2024-08-23T23:51:29.000000Z") + .discountUpperLimit(3627) + .description("0ViKFLpI4REDYgLWo2Q8cwkpiTfx0K3NI9FJ11nkGfRQlGszH71XXMwwageqdiCUtiam5OCYCyW06FKS14FS73G8a3ijeaDjTIJss0bIT0ZqOXGSTVH9BRjr8phyPclxsBq9XBmkTSfhHrb5sDnsI3ZWU") + .name("9QMTgobmXveIIZc15XikWWDvoW8CZvliqF7CSsjWcuOJS4Ehtu4LwcLHvZh25xxfXebiI3VayaI3kTnTLIkpOXuMZobSfeWKzoEFQ5p"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -254,20 +254,20 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(4884) - .code("Nuqq") - .setPublic(true) - .setHidden(false) - .setDisabled(true) - .displayEndsAt("2024-01-19T14:39:22.000000Z") - .displayStartsAt("2020-10-29T23:27:00.000000Z") - .endsAt("2022-03-24T20:14:37.000000Z") - .startsAt("2022-09-21T08:59:37.000000Z") - .discountUpperLimit(8700) - .description("VdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8B2QPQ9Y2Rpsj0heI1pcWBx1T31cQtfbPCATbfETgM8KooCtS8z1fc4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCq") - .name("bvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9"); + .discountAmount(4601) + .code("5j9pCzj3hQ") + .setPublic(false) + .setHidden(true) + .setDisabled(false) + .displayEndsAt("2020-11-08T15:02:15.000000Z") + .displayStartsAt("2020-08-18T22:23:06.000000Z") + .endsAt("2021-04-04T21:45:43.000000Z") + .startsAt("2022-03-28T18:25:45.000000Z") + .discountUpperLimit(9795) + .description("jzGKx9aFgv0XlTl34KeRysjITa2wXz1O8xVGeOGcFlOxiVnFhvQYgTq0yLoByCmHUuVyH3cfcF8Pf92JXudRmeZmjiokTl") + .name("117bHBnYglbQt4QBFDEJKi3AHyd9yQ5W9RMhIq1dhsWz"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -282,21 +282,21 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(8882) - .usageLimit(5765) - .code("bnV3FEVOMM") - .setPublic(true) + .discountAmount(4468) + .usageLimit(6447) + .code("Tud1TnBQZ") + .setPublic(false) .setHidden(true) - .setDisabled(false) - .displayEndsAt("2023-01-27T01:56:48.000000Z") - .displayStartsAt("2024-07-13T16:36:59.000000Z") - .endsAt("2023-08-13T04:41:18.000000Z") - .startsAt("2024-08-07T10:48:03.000000Z") - .discountUpperLimit(6304) - .description("SgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72QaNrZpzYfcTDxwidoKxhgH4IlA44068ievlutMBS788il7UEqSzLy9xJxJq4hHbOAXXY") - .name("VgVjKzFhmxuYV64qe5o2B2OlLXdk5kJbuw4YuJbyUdwtweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424DF7dkeP"); + .setDisabled(true) + .displayEndsAt("2020-09-08T16:14:26.000000Z") + .displayStartsAt("2025-11-14T23:46:51.000000Z") + .endsAt("2022-05-17T19:13:40.000000Z") + .startsAt("2020-02-15T11:48:26.000000Z") + .discountUpperLimit(9048) + .description("TKKWD0fiDnREQQDwR5XEyIFeG77xZhQ031Bv0fXxSyFQJeZ6rdQ8buBb1f9slLRuiYJe4XyJvTb23aa3twUxtKvikbKV7hqTJveoI19ynJs1QCqTRlC3W1MGePxsBFCAyv0dcBt87MHAdufVNZM7qsWa8JyqZo0jQRpDPE6rh6Exox") + .name("n0c43cEW5yWSswalnNSPl4nKgIh67Gkz5WkqpvEXvT4G0zj9vSzfdqnwxVoVRAJZtMnbN2a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -311,22 +311,22 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(4539) - .minAmount(4628) - .usageLimit(8984) - .code("prAJuqXJL") + .discountAmount(2788) + .minAmount(8073) + .usageLimit(8410) + .code("WSJweQkjD") .setPublic(false) .setHidden(true) .setDisabled(false) - .displayEndsAt("2020-01-05T12:35:41.000000Z") - .displayStartsAt("2022-11-05T08:42:48.000000Z") - .endsAt("2021-09-27T23:52:02.000000Z") - .startsAt("2022-03-31T21:30:07.000000Z") - .discountUpperLimit(1625) - .description("53kHtf9cD7bpNKlOmIqFEpEzlkbZXsHeK96R7zZjofXop8q4Bfps6VchHwOSBaSPaNKxM4bPYPan8UYIRAISeS032nbwP9uwXrTB") - .name("WthKP8SFB1epaCsenfTVlWMFnuMgJI5wZ1cKhV86"); + .displayEndsAt("2024-08-17T07:07:58.000000Z") + .displayStartsAt("2026-02-07T22:03:44.000000Z") + .endsAt("2022-05-08T22:06:13.000000Z") + .startsAt("2026-08-26T17:38:21.000000Z") + .discountUpperLimit(9763) + .description("iBur4dbIER") + .name("6acqYlwDJKQEp9D3oXWbniSWqI7xTzrPkAXyiXMztQxtJ4M2WJmA50gKlyd"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -341,23 +341,23 @@ void test13() throws ConnectionError, ProcessingError { @Test void test14() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(8499) - .setShopSpecified(false) - .minAmount(179) - .usageLimit(4444) - .code("LMEPLj") - .setPublic(false) + .discountAmount(2018) + .setShopSpecified(true) + .minAmount(4952) + .usageLimit(2509) + .code("1sy") + .setPublic(true) .setHidden(true) .setDisabled(false) - .displayEndsAt("2024-05-19T14:02:16.000000Z") - .displayStartsAt("2021-05-13T02:34:55.000000Z") - .endsAt("2023-02-20T00:05:19.000000Z") - .startsAt("2020-01-17T07:31:07.000000Z") - .discountUpperLimit(5181) - .description("E7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2MaByNhkorzLzXS") - .name("7sax7iYOPlAj5UlMDxo6iDarlMDzJC7wMAkFY"); + .displayEndsAt("2026-04-23T22:56:59.000000Z") + .displayStartsAt("2026-04-13T15:01:59.000000Z") + .endsAt("2020-05-16T16:30:33.000000Z") + .startsAt("2020-02-03T14:52:07.000000Z") + .discountUpperLimit(8881) + .description("Pf0MqzXeXqK5rRDKBvomcRcTm4csmVWyjay9TthXSYCbv") + .name("a0t32yWLYVWM4QhXAPz9W0"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -372,24 +372,24 @@ void test14() throws ConnectionError, ProcessingError { @Test void test15() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(6440) - .availableShopIds(new String[]{"8903de65-e06d-409b-ab7a-415a3bacd7f0","23dccdf6-20ad-4c86-848f-c8763e77e2ef","3d449d5c-ffe7-4c0c-b012-ec6c8d2cccbb","85d79f04-a867-4a6c-8c76-8532d645b254"}) + .discountAmount(4159) + .availableShopIds(new String[]{"2c9127cd-5778-42ed-835b-57b5d398e74f","e7c65efd-d51e-4798-99a3-30226ea86947","a472a62d-e8e8-4033-8eb4-e65e3d22f45a","0c726136-12cd-45a8-8bdc-7a5f8b8cb7b9","1063861a-6a15-417c-8e58-4f2df6ef3f1c","8302673b-0128-4685-8a42-7cc089c59ad9","4adff7b9-729d-4494-af82-927be24c2d5b","17fe6b50-d8d6-4c67-8937-10dc533885b6"}) .setShopSpecified(true) - .minAmount(9057) - .usageLimit(7685) - .code("OF7q") + .minAmount(9972) + .usageLimit(1092) + .code("y") .setPublic(true) .setHidden(true) .setDisabled(true) - .displayEndsAt("2022-05-02T10:44:14.000000Z") - .displayStartsAt("2023-05-05T19:51:56.000000Z") - .endsAt("2020-12-25T09:57:39.000000Z") - .startsAt("2020-01-10T18:15:38.000000Z") - .discountUpperLimit(6999) - .description("FW8mYG8iBpA9wK7FerKmMDJDN9kjnE") - .name("AtWkM10yTZC3mt5NbCfjtxFXhJHyZxe38yvM1SEczLfO"); + .displayEndsAt("2026-02-10T14:19:47.000000Z") + .displayStartsAt("2024-07-17T03:20:29.000000Z") + .endsAt("2021-10-16T11:48:27.000000Z") + .startsAt("2025-04-02T15:35:00.000000Z") + .discountUpperLimit(4391) + .description("nUym9pFRmUved6upvYmgnlSSsYDRmoQAbzux2YVPLs6mqcLQO6KAfySYCh0uqCGrCwLPs") + .name("ZTQHaYj"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -404,25 +404,25 @@ void test15() throws ConnectionError, ProcessingError { @Test void test16() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(7859) - .storageId("2cdaf362-15a4-432c-8e27-a8251a6cb20f") - .availableShopIds(new String[]{"d6c31202-144d-44d3-a075-5acb4c302ebd","1128e664-2df1-4b33-86f3-f609ade1300e","61052515-5082-4f28-9eec-177d6ab7c647","d8952262-d18a-47eb-8807-51264406a515"}) + .discountAmount(9883) + .storageId("3cc50b38-e9e2-4585-b86f-81c12df50595") + .availableShopIds(new String[]{"3c90f76a-718a-43f1-8857-b0c8ce3933c5","6e8f92a5-2d89-4e27-9aa8-c5ae9d9bd108"}) .setShopSpecified(false) - .minAmount(958) - .usageLimit(5795) - .code("xbbT2umOR") - .setPublic(true) - .setHidden(true) - .setDisabled(true) - .displayEndsAt("2020-12-23T22:29:05.000000Z") - .displayStartsAt("2021-12-10T07:01:50.000000Z") - .endsAt("2020-01-27T09:11:32.000000Z") - .startsAt("2022-08-29T03:00:12.000000Z") - .discountUpperLimit(7014) - .description("kPqeu7VG") - .name("hCxzDjEPJsArCV0qEvJPpVoq77PuYo1FVSdDE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQHQhhRs2PIaofbMQ1Wyxx6iPX8wNVpCNUyiEzApKM66ZkEO"); + .minAmount(9104) + .usageLimit(7874) + .code("gsFSQYVjy") + .setPublic(false) + .setHidden(false) + .setDisabled(false) + .displayEndsAt("2023-07-21T12:21:15.000000Z") + .displayStartsAt("2023-01-13T09:18:02.000000Z") + .endsAt("2025-06-18T06:28:19.000000Z") + .startsAt("2023-08-27T22:15:37.000000Z") + .discountUpperLimit(9449) + .description("1osniwzvMM5724wrvJulOUj4A8M3jM0zpEWete9qDkCIpsjezZ2M4DgCUcWaYN25M17e8QItVUDPdnGbbjUMIkwxnSAoHyUqS2WrdyexDJw4m5W5NSAarqtGtlcKJp9") + .name("gTWhEWSlBiVnl9lORTBFy0IWWO4H8KmbVB2M5EG"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -437,10 +437,26 @@ void test16() throws ConnectionError, ProcessingError { @Test void test17() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(2060) - .discountPercentage(8252.0); + .discountAmount(7759) + .numRecipientsCap(1133) + .storageId("c88c35ce-acbc-4e95-9a98-325f054e1f7d") + .availableShopIds(new String[]{"d247687f-bae7-428a-b1be-df76e2ff8253"}) + .setShopSpecified(false) + .minAmount(4652) + .usageLimit(1129) + .code("8sr7") + .setPublic(true) + .setHidden(false) + .setDisabled(false) + .displayEndsAt("2021-10-13T03:45:05.000000Z") + .displayStartsAt("2023-05-31T03:26:24.000000Z") + .endsAt("2020-04-11T17:21:42.000000Z") + .startsAt("2022-07-12T15:14:44.000000Z") + .discountUpperLimit(6187) + .description("m2GfCQqu6PVWox7elCTfrAqAyLdOvPV5cpp3AIIQZmW74G7CnNpvzFPpYINeb1rEwk") + .name("SNbZUKM9QJifASeEjt7rgfB4dUvUA5MkBa"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -455,11 +471,10 @@ void test17() throws ConnectionError, ProcessingError { @Test void test18() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(6260) - .discountPercentage(6255.0) - .name("1oTpzcZyDOIWVwoFQc"); + .discountAmount(505) + .discountPercentage(6650.0); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -474,12 +489,11 @@ void test18() throws ConnectionError, ProcessingError { @Test void test19() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(9817) - .discountPercentage(9826.0) - .description("DKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZsgSDOAS6m6W4ycEK") - .name("eHr4636lRXTr2iPpZt0j1CI3l6J30qBjXV2f99mPOolq1eiW9RuNHXLsbYmrfHw"); + .discountAmount(8298) + .discountPercentage(4638.0) + .name("ixvqernP2ia0JTvsqFBudbGeZdEPGzzDd2lyZr3fyGm4G1h2gpnMz4EtR2vopXxSWiIg6gduAWVf9"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -494,13 +508,12 @@ void test19() throws ConnectionError, ProcessingError { @Test void test20() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(1408) - .discountPercentage(933.0) - .discountUpperLimit(182) - .description("AehvKLu9jSykyDMxjQhXvqsNkUwpnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD62pEennAfXO8IbuWWi93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMiAoASOIgsAFMRnA6RqJv3Yoi1HNQ6SUUxfHdkFZrSjoj4E906hjOO") - .name("DSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyxQz7D"); + .discountAmount(9372) + .discountPercentage(9098.0) + .description("kDSsioG64sbfbtlCMIRDD7seSSxbRy6UJ2yU6TRb2QsyUYaFBg0rLG7ixw8rumX9lPF6p8o2y11Yrgt4LCmHaJMs2PMcoeItTVcWkxXihexQXo312p3Wls1sE7BHULcZQtWWfaD4rWZB2GIm3dWvJq3fHzlHa") + .name("nO6pf4h9ws9kLnk6cNbb0JJrPLyLIGGlYxmDF5NDmHAR3RBnK7"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -515,14 +528,13 @@ void test20() throws ConnectionError, ProcessingError { @Test void test21() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(6289) - .discountPercentage(5503.0) - .startsAt("2022-03-22T13:16:43.000000Z") - .discountUpperLimit(8449) - .description("6SGfEdpD0U") - .name("VkFLTmlxp8SI9cXescrmSD5nkp7THGlyH3t2HB4wHFbCGx0Xzqx2wtaKpu1qdmiKn22F3ctIsxTTV24W3iM"); + .discountAmount(818) + .discountPercentage(3761.0) + .discountUpperLimit(3505) + .description("paMW4hGPanWOZJLbDfcebA2uxdCspznoi6atFNTbrEABXoODKwUOy71jHzimbjyuBcqQnQ9Lj9uq1rjYyblkDRghHjQDZe") + .name("zbRZC9FxfNOIHrbpOq6m"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -537,15 +549,14 @@ void test21() throws ConnectionError, ProcessingError { @Test void test22() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(826) - .discountPercentage(5907.0) - .endsAt("2020-01-10T04:04:58.000000Z") - .startsAt("2022-11-05T13:54:18.000000Z") - .discountUpperLimit(359) - .description("Caf4v1F7zb24TvVYyzGoNYLIXxqonkMGqXlJ") - .name("pJRQwp9nn9cv0p2uygmHKqGnn"); + .discountAmount(8145) + .discountPercentage(5283.0) + .startsAt("2024-05-27T20:33:49.000000Z") + .discountUpperLimit(7689) + .description("G2GPSQQB1U6IjRsZr2eFWgbnzGrBQcbaSK3iX1ZFYsGd1YMLCaCs0F5pkoUcbMvLHGSU2LTCLPQ5GJELxIJ85m7pWO5Oq5sU8iwoJ735Qje9VnUZQt0pzes3TegY2AoCAsHwCP5A6Scunsmt5agjEkUDn1nh1J0PoLY33AeuLX1vt0Xc0DOPIsjoZ1AHyJKzNRcJ") + .name("glLKTrsJZ4LsdIfCC8uQL5mCoKagjGEM3GfsC9B0w8zKt"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -560,16 +571,15 @@ void test22() throws ConnectionError, ProcessingError { @Test void test23() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(6817) - .discountPercentage(2689.0) - .displayStartsAt("2020-05-21T18:56:37.000000Z") - .endsAt("2020-01-04T10:37:01.000000Z") - .startsAt("2024-08-02T07:28:33.000000Z") - .discountUpperLimit(7878) - .description("to3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwmdx9H0OP7RXsy9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTKy9baAX") - .name("UrNxQgJv2d1RjRDvxxlQFhM2eopmIlmvqzqnGOYbg6rdqjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T5nZ"); + .discountAmount(6582) + .discountPercentage(3731.0) + .endsAt("2023-09-22T01:34:20.000000Z") + .startsAt("2026-02-19T18:26:25.000000Z") + .discountUpperLimit(8681) + .description("1LgqOPtR6wzZdUh56Q0WZf8IPC7BRlPxu7PJAL2SSrdIkCx2w3UniyERaYjCV8kJefHmgXwlVomKPcnp5Z68uiRVcRs6iSVq6CAE1cyk") + .name("PfFVTBynTVWrp1vTM1qsdO4ANmXuI4pjaa3jMjNf8XzKneiyaJFmKrTqfSFemIMfA7XBmcoIx81EXrZTOXzCYdtNcSc50TRhvcO"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -584,17 +594,16 @@ void test23() throws ConnectionError, ProcessingError { @Test void test24() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(8544) - .discountPercentage(1041.0) - .displayEndsAt("2020-08-28T09:26:45.000000Z") - .displayStartsAt("2023-08-28T18:10:27.000000Z") - .endsAt("2022-11-29T12:21:33.000000Z") - .startsAt("2020-03-08T19:47:16.000000Z") - .discountUpperLimit(8307) - .description("HuPmGiUoPteza9Foxx3GETJuunMNM7JUVu7YgDI0zSm63cU49za1QJALcpDZJ7YKoaGZqFQRMYj7eI0OiTgfPr68fP2A8RCqVjIMZulltZtjgMfuD") - .name("n3QgsidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0Kto"); + .discountAmount(3730) + .discountPercentage(3010.0) + .displayStartsAt("2021-01-27T07:08:50.000000Z") + .endsAt("2024-09-07T21:15:00.000000Z") + .startsAt("2020-03-25T05:02:25.000000Z") + .discountUpperLimit(3289) + .description("XxGHr5BD4DZSX0CKWqFPB7cXogK3lXTpk1ACQL5MC28qImQU81piDFRyBs61QA64ubFmiSNGPB6PWeR4fjojaItl7qDDnWfDz83II3SsVbGfWZSjJAztxkiC6dodh0lsFj5rFalo907TQSGuwj68ad9K1XBWVYxIt1hLKB6GROESgi9KMGwAvzt2XDFLhsltsxjHevXAeaqJQdiPE4BeJCcIbjYCJA60910zNdhVnyX38KqA1fvky") + .name("rtqclFU9jljopVrQrbVbWUr1E2HhlclCQRWx8FEGzWXdbWzamEGXFO5PHpjs"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -609,18 +618,17 @@ void test24() throws ConnectionError, ProcessingError { @Test void test25() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(9376) - .discountPercentage(4837.0) - .setDisabled(true) - .displayEndsAt("2024-01-04T06:44:39.000000Z") - .displayStartsAt("2024-10-02T12:04:03.000000Z") - .endsAt("2021-02-16T23:36:22.000000Z") - .startsAt("2020-03-04T13:25:02.000000Z") - .discountUpperLimit(7223) - .description("wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltqUbvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3EykNpjwCPjAkzyY2kmUe2JJ53U3N6F0e26pbO3HttlG4e") - .name("yiatMI7VF3dtugJSz1Q3v"); + .discountAmount(1491) + .discountPercentage(820.0) + .displayEndsAt("2022-09-15T03:49:39.000000Z") + .displayStartsAt("2024-03-27T05:47:27.000000Z") + .endsAt("2025-07-13T06:37:19.000000Z") + .startsAt("2020-09-07T15:27:12.000000Z") + .discountUpperLimit(4164) + .description("BVrOHFo8xzE1tgCZyMtCfVQXKeHEaCm6v4bOQPdSecOojChLhuEaRbGgSXO57u6cTOWbPpHzT8SBHVxA4uTsQXNQLVTsa7Enw9cnxOrtkyrYkFM2fsUIFcBc3xUhfvCQABU9yhdPlghv2VJu1lljCVVYSCGNIDxlSztThgX67n2PgbzVLVHAuqNRKSFbkQwzExi4cSpvsggIAlYe") + .name("v9bZPRWKzkKRFsQ10G0TlaGn12vl36ewyKaB6SHyKZZn5jR7G8GZiBnTaUgy7N3mTLemMZeIt74bhbcXSO6mPwoW10WefOcGtzUdCSHPXTvrjAo"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -635,19 +643,18 @@ void test25() throws ConnectionError, ProcessingError { @Test void test26() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(8030) - .discountPercentage(5262.0) - .setHidden(true) + .discountAmount(8991) + .discountPercentage(3750.0) .setDisabled(true) - .displayEndsAt("2022-09-28T21:37:20.000000Z") - .displayStartsAt("2023-07-20T05:43:11.000000Z") - .endsAt("2023-05-04T18:20:50.000000Z") - .startsAt("2021-09-04T09:10:55.000000Z") - .discountUpperLimit(9447) - .description("FsW05W19aXuGVVRQlUVJv9CZ2ZsBhmJBENJ2Jp2YLnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ9bvTSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8NITOun") - .name("WJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wDY3Y"); + .displayEndsAt("2022-09-13T20:00:43.000000Z") + .displayStartsAt("2025-09-10T04:15:10.000000Z") + .endsAt("2026-04-18T05:45:25.000000Z") + .startsAt("2022-07-12T01:55:50.000000Z") + .discountUpperLimit(6951) + .description("h5LysIScuFPNL3GzqnMP5NZDifqWbMDgjD68XvQQECUSjutOosOC5LZHJPKApv7OfARAe3RnFd9nT02p1eaStaJkR7kpHzHVrWIJ1LETykZPKAQBgMPUGbEnOIPDq2CLAbjX1Djn2XWSw") + .name("ThwDAcCZY6YtawxId266BZVwZVmHyD1UpI6d83jiZ9uTzP4YjXFZyT5vOgrOJYvJ3LNaiOIeknn7RYaYRsrRINAXrIL7Vokdd5FDSOlHXvP"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -662,20 +669,19 @@ void test26() throws ConnectionError, ProcessingError { @Test void test27() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(9044) - .discountPercentage(5553.0) - .setPublic(true) - .setHidden(true) - .setDisabled(true) - .displayEndsAt("2020-01-26T06:26:17.000000Z") - .displayStartsAt("2022-11-02T01:42:53.000000Z") - .endsAt("2021-06-24T12:35:58.000000Z") - .startsAt("2023-01-22T21:35:42.000000Z") - .discountUpperLimit(5471) - .description("5jqThl0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSuhWG") - .name("p4IuNXEvAYv341undTljbWPhfpiwPMjupC65xVDnAJbsKD6b895iftqbY67Ut2zsAKH6lKT6gJXbaEKAddoU"); + .discountAmount(8164) + .discountPercentage(6142.0) + .setHidden(false) + .setDisabled(false) + .displayEndsAt("2025-08-14T16:37:10.000000Z") + .displayStartsAt("2020-04-08T03:04:13.000000Z") + .endsAt("2024-05-28T18:18:45.000000Z") + .startsAt("2024-05-03T11:34:00.000000Z") + .discountUpperLimit(3443) + .description("gX4oL5ObnN7xsSw29hgwVKZ3q7f2G5Csbw765Up6rDPAvgZ3Lft7QdtUV0xBtYCY2peqF3OIROYkI2OmNuQfBQjabCuZA7I27PPKAWnF0PAVPIqlw5xHvbneEVFJO1vUShUNViyLhmVZrKtrf8fOXhtgmBfxN2mKWhxAVox0bSxOCeaMv9sV8PCVe8gGULXYHHQVItPbBIgVhkWUs64kjPOvg7oSgfBaWrA04virOZrFH9") + .name("NvZWQOhHbcPsVzudSsho4D4Vucvtqjo5TxhMxHQM1DHEyhnbl8ZtFdCq3PjvYo6pCNI1mfIpJ9f4NksvlPiC4Vu3XtdH9FsNEZ86HjJPe4Lp6"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -690,21 +696,20 @@ void test27() throws ConnectionError, ProcessingError { @Test void test28() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(5837) - .discountPercentage(7725.0) - .code("0CR") + .discountAmount(8684) + .discountPercentage(9134.0) .setPublic(true) .setHidden(true) .setDisabled(true) - .displayEndsAt("2022-05-31T19:31:33.000000Z") - .displayStartsAt("2023-02-28T10:08:45.000000Z") - .endsAt("2022-02-21T00:31:29.000000Z") - .startsAt("2023-10-02T22:25:23.000000Z") - .discountUpperLimit(2989) - .description("DeoQ9lXXELG9oQdgpEse81VvpXr3HeuSevupI3Lg6cydG4") - .name("CQY3zROLCcC3cDzGwCmJXHiF5C"); + .displayEndsAt("2026-02-22T06:06:49.000000Z") + .displayStartsAt("2020-11-01T12:43:34.000000Z") + .endsAt("2024-11-28T07:52:33.000000Z") + .startsAt("2024-07-10T21:13:49.000000Z") + .discountUpperLimit(9927) + .description("rUXXkhfXnecRVysjqOC6xGnpm1kxDBXzRf1f9JiZjCJBrJjt5kCWz5zMWjynyv6KSgRW4BSGACMY5nowhDUZD5IZKMp0STmYDwTtHP0E") + .name("cP6hogkn6nAjgTjLkVtsanieCAlqrCK8PwmGod9YcEsgY2DC2Vj8cKXwgERagqKSGsUKboeeiIHlMnCdyvxKvSOqTvlYodFyg21jiUhByaB66BNcapTyLZWxad9qMqf"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -719,22 +724,21 @@ void test28() throws ConnectionError, ProcessingError { @Test void test29() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(9717) - .discountPercentage(9468.0) - .usageLimit(7920) - .code("0Hph0EUC") + .discountAmount(7146) + .discountPercentage(9941.0) + .code("CaVI") .setPublic(false) .setHidden(false) .setDisabled(true) - .displayEndsAt("2022-08-18T13:57:47.000000Z") - .displayStartsAt("2023-02-22T19:34:01.000000Z") - .endsAt("2024-08-16T08:03:14.000000Z") - .startsAt("2023-04-06T10:00:07.000000Z") - .discountUpperLimit(7006) - .description("LYnE6HiVXoG09ihrRj4aejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6F3HhJclpvEl0kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCNCl989Inr9h5b") - .name("KrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtOnbZ"); + .displayEndsAt("2024-10-23T13:19:16.000000Z") + .displayStartsAt("2023-12-21T06:55:54.000000Z") + .endsAt("2022-10-06T02:41:08.000000Z") + .startsAt("2020-12-22T19:08:39.000000Z") + .discountUpperLimit(5223) + .description("gbbuuhXvkkv63jx716j9qYeQTBsHYxIvY8A2kLLFzDvGgwT6RWA89QL9Vp03GIkTp5cuONNVFc9v9gdz5hWfe1J2XdVSiGrZnaj14JqvayOvsUjS1TQRpGXwusKVKoDVo20K4pvhym0ixofoZrqcO9xmrGI7Yq8b7zKf4Zjq1K3jlOjYQfsbEScihoRIGPs251h35D6R") + .name("qOUv7GYFIehbCx0by4HajPsFnZyPkDxfEbj7EZ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -749,23 +753,22 @@ void test29() throws ConnectionError, ProcessingError { @Test void test30() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(3254) - .discountPercentage(6072.0) - .minAmount(8091) - .usageLimit(8638) - .code("JstsOcxw5") - .setPublic(false) + .discountAmount(1763) + .discountPercentage(8358.0) + .usageLimit(2762) + .code("NW") + .setPublic(true) .setHidden(true) .setDisabled(true) - .displayEndsAt("2021-03-10T22:22:52.000000Z") - .displayStartsAt("2023-10-02T15:46:06.000000Z") - .endsAt("2023-01-29T17:10:48.000000Z") - .startsAt("2022-12-29T10:13:04.000000Z") - .discountUpperLimit(2215) - .description("omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc") - .name("2ISnCuuu6HEZICTUsFd55cysKpzPw06buTFvYo"); + .displayEndsAt("2026-03-18T17:30:03.000000Z") + .displayStartsAt("2024-08-17T16:51:48.000000Z") + .endsAt("2024-12-09T16:45:34.000000Z") + .startsAt("2023-01-06T19:48:32.000000Z") + .discountUpperLimit(3784) + .description("JtG7uLWNnv9bkjUCUVfq92VQxP0FMeHm2Gc8mWOktzQrw5GjJ8uGQSasHDUHsEK1qalHwNsBFFvhBAfKd9pYjNXINvRo8XrSFeFKEUniweS0acjh4qrH7klovo9x1qmkFFjd91zhnaGMzUdCsP1zaX0YECE0zSsUS9uGcWpU50I9EOF1CbY7DQvP") + .name("yLth6tJk3Z9fxM6OljXWNCah5Q3Axy3"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -780,24 +783,23 @@ void test30() throws ConnectionError, ProcessingError { @Test void test31() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(1678) - .discountPercentage(2946.0) - .setShopSpecified(false) - .minAmount(2440) - .usageLimit(3333) - .code("bGw6jV") + .discountAmount(70) + .discountPercentage(3400.0) + .minAmount(4407) + .usageLimit(3016) + .code("lL9hetKrZ") .setPublic(true) .setHidden(false) .setDisabled(true) - .displayEndsAt("2022-01-02T20:53:06.000000Z") - .displayStartsAt("2024-07-26T06:22:27.000000Z") - .endsAt("2021-10-22T12:20:11.000000Z") - .startsAt("2020-03-10T15:06:45.000000Z") - .discountUpperLimit(163) - .description("NyPqoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPTZ7efHVp4Du6bqVzq0H9hNDIpWOGRlL4QDCIWrLzYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCF") - .name("nlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCis"); + .displayEndsAt("2021-10-19T04:46:56.000000Z") + .displayStartsAt("2025-07-04T14:38:14.000000Z") + .endsAt("2023-09-15T14:03:39.000000Z") + .startsAt("2022-01-25T23:40:13.000000Z") + .discountUpperLimit(8334) + .description("Y5mSWLpoOzWuTFDp0xZJMmmZyM3omHaaYolohp4juaWxRzzc4S4bskUY0GUghtLrKdmw4Mj2vrs21Q3QscjDt5dNl9IacbccU5Qd92Qhefxi61LsaPXprVMDsZV4dkyP5lnQdeGG2WwubsLa4vnCWV1QVssD1Im12VLZ") + .name("8F0u3SxrrH"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -812,25 +814,24 @@ void test31() throws ConnectionError, ProcessingError { @Test void test32() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(3006) - .discountPercentage(4902.0) - .availableShopIds(new String[]{"771fe6b5-a671-4848-9798-2a7e10005920","05e9ee26-7344-43f3-8de4-1b1aa013f20a","61a3f6c7-169a-4e1c-a38d-c540d742fab7","672494f7-c7e2-4854-ad4b-17459fcc1670","89e2210d-0c14-4aa9-981a-54faa24d7779","5a6439d3-9dfe-473d-b1a1-378c95ad3002"}) - .setShopSpecified(false) - .minAmount(9253) - .usageLimit(611) - .code("4sXP") - .setPublic(false) - .setHidden(false) - .setDisabled(false) - .displayEndsAt("2022-04-17T00:14:56.000000Z") - .displayStartsAt("2021-01-02T13:59:05.000000Z") - .endsAt("2021-11-22T18:07:25.000000Z") - .startsAt("2022-05-31T15:32:30.000000Z") - .discountUpperLimit(9623) - .description("uwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZF") - .name("tSWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREfojZVoiIjURbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3r"); + .discountAmount(6409) + .discountPercentage(5937.0) + .setShopSpecified(true) + .minAmount(8632) + .usageLimit(4901) + .code("VkWU2") + .setPublic(true) + .setHidden(true) + .setDisabled(true) + .displayEndsAt("2026-01-16T17:53:48.000000Z") + .displayStartsAt("2025-11-12T21:28:46.000000Z") + .endsAt("2022-12-14T16:48:14.000000Z") + .startsAt("2024-01-12T17:56:22.000000Z") + .discountUpperLimit(8241) + .description("QRXrkYNIOtHHG8yHnSu7dDAUDz3Ba7wXTCzgYCbLTAWi1ohaetMA7WNeaonbTVSEX134CEzJmLXodVipQoaS9jpxZmBe1IVqn6l0xvjbPmp4eCBlLWO5LUEEnWeZcSGLtIalNYra2M0CMIf3qWb7LuUMWb2crhAOjAg46Wxwepf8NCoyrEsYCM3co0m5f7Zf0Wz840Yp6krkF1YbRmwvxymb30gk854pQwTzmFQFV2uDFFIi8EFMWMycoOxYLCK5") + .name("275yaFTfZ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -845,26 +846,25 @@ void test32() throws ConnectionError, ProcessingError { @Test void test33() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountAmount(8803) - .discountPercentage(1126.0) - .storageId("7a404fc2-a15c-4c75-a5f3-1c154e869d05") - .availableShopIds(new String[]{"11a110a8-b4b6-455d-9af5-b9c8ce433b13","b84e9ca3-2b91-43ef-a210-58f9c98ad1fe","799609ee-c230-4489-903d-6e8913d2e96b","451d5c3b-b059-4dac-83b9-7e12bc5b9d1d","5d351174-5b75-4081-a5b0-1bb877aeb5c1","1bff186b-16bb-41ea-84c3-d93e56c3e5b0","2fb33710-5185-4fba-97d0-1ecbdc5d18e2","4fa0b651-b4a8-43ff-9903-39a364466b98","42f8d5f6-bfad-46be-bb83-058922628a04","29110f8d-5059-4bef-b739-5f5c305bea46"}) + .discountAmount(216) + .discountPercentage(4213.0) + .availableShopIds(new String[]{"c1373577-f21b-407b-b452-0a3d9421e5af","f10440e1-6dd7-427f-ae46-7b24686754a6"}) .setShopSpecified(false) - .minAmount(8904) - .usageLimit(3294) - .code("zD7S") + .minAmount(6253) + .usageLimit(7121) + .code("3H") .setPublic(false) - .setHidden(true) - .setDisabled(false) - .displayEndsAt("2024-03-04T08:18:26.000000Z") - .displayStartsAt("2024-02-20T15:40:54.000000Z") - .endsAt("2020-04-15T08:33:57.000000Z") - .startsAt("2023-12-12T01:24:30.000000Z") - .discountUpperLimit(5315) - .description("pGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpWdg5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4Il") - .name("VfzKQeAZtwqv4AGYkQ5Y"); + .setHidden(false) + .setDisabled(true) + .displayEndsAt("2022-12-01T21:35:15.000000Z") + .displayStartsAt("2020-02-14T09:20:05.000000Z") + .endsAt("2021-12-14T21:01:37.000000Z") + .startsAt("2024-06-19T11:15:47.000000Z") + .discountUpperLimit(5236) + .description("SeGuAJyXtCyfPpoPjMTr8crob004vlXwUsthEoZOk8UXfYg8fdpzyB6W0dkeo5uEqZaCFDcbEj9ISDmaB2afkehiCZS1KVArQKeygi1aTs9dwArWQhOtANqAqTESOlpuGW5FhrbDgJ77XFXl4NKb3zycQebaty6OYZVBO6i7OrH9y83QqXgWF2opiVdC1V5KC13EYjcxvJwZkwVKG4nhx51AwtpZIv6uv80k2eZHBR50sHyhGa26Q") + .name("KgCzW91ijqwGz4iwxLvGQu8A"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -879,9 +879,26 @@ void test33() throws ConnectionError, ProcessingError { @Test void test34() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(9978.0); + .discountAmount(4441) + .discountPercentage(6262.0) + .storageId("3024c491-7f35-49bf-bc41-0c1bcae63ecc") + .availableShopIds(new String[]{"c08ea15d-b25c-4ae9-addf-48549710f695","c04b3ff7-f1fe-41dd-9f4b-708aefd90c41","1e8b03b5-4015-486b-beb6-557feb979217","fd35e7b0-87e2-45c1-8634-5edbab084287","9e0be43e-790c-42aa-b8b1-08c3362383fc","d8861057-df05-4b1e-83f6-b88af2d42c89","31db72d3-56da-4242-b6c3-f167d5ee9e71","e32f5a1e-3b9e-4fc3-a4b3-a7e22fcff152","27661f10-4c74-41a2-b5eb-ef26131352d8","4f528eb2-837b-47e2-aa23-b4bb715d0b6f"}) + .setShopSpecified(false) + .minAmount(4028) + .usageLimit(1612) + .code("nyfuc6vmm9") + .setPublic(true) + .setHidden(false) + .setDisabled(false) + .displayEndsAt("2023-01-10T15:58:53.000000Z") + .displayStartsAt("2023-03-27T18:13:16.000000Z") + .endsAt("2026-03-28T15:06:24.000000Z") + .startsAt("2020-01-11T20:11:25.000000Z") + .discountUpperLimit(2592) + .description("O4dzrTnN2hnl6jClpe10uHCcbxZraKIE5JV72jwXeLc5ziCQvgnEPrwn8MGASAuLD3WLJqm2LErGcclueraXSCDvzDuhvkKIoa3xl900hkmeYLn1AjsWrIn7wWX9Rc7bgZ9BG44UnK5kugEbv8t3i1UGnc40madwkN30KxIK4R69fUEBg5VG6fY3BMw3LzyuQr74J") + .name("jTjvnySfqw4U7H9TvwAB8eScBfn1Rj6bF7qwsumEcO5tiAsHMCj6rQ8znpAP2Ct8CHPFNDEoS5JXEhny5IMhsG4v0CQldqzxJ6XAxrUg5QJXjIdY8iZka"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -896,10 +913,27 @@ void test34() throws ConnectionError, ProcessingError { @Test void test35() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(3445.0) - .name("0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsP"); + .discountAmount(339) + .discountPercentage(363.0) + .numRecipientsCap(7486) + .storageId("75fb4bca-7592-454b-9d1c-fce5f6fb0e9d") + .availableShopIds(new String[]{"a3813421-e102-4161-a47c-030e9bf55bf1","447f5c26-1842-4b7d-b8aa-bd86880628fd","ff031f2c-7741-4a9c-9dd9-c0a0218ca4ea"}) + .setShopSpecified(true) + .minAmount(2943) + .usageLimit(9760) + .code("UEnMrrxLZO") + .setPublic(false) + .setHidden(false) + .setDisabled(false) + .displayEndsAt("2026-02-03T09:35:43.000000Z") + .displayStartsAt("2022-08-06T14:46:21.000000Z") + .endsAt("2022-05-24T01:48:58.000000Z") + .startsAt("2023-03-22T15:16:41.000000Z") + .discountUpperLimit(6052) + .description("WcJG86z8KVqUt2uzqsseXYFYKRp5jWej4Zir7EPOVCpM4N6VpPYojnLWN99oUAp27dRdHXT0bu9kBbfQDVxrOePjXnEEoR26VQKj59HY9GxwaIDAEfbXDBB3FNIL8Usakbi9ZrjBPmCyriSuUZrqYwqtbArFxY0nh8lQ2iQavwvhDr8TNB4vIcRTpSaC") + .name("V5lZtxsN8hQh23jWL68GyttBaIaA6b"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -914,11 +948,9 @@ void test35() throws ConnectionError, ProcessingError { @Test void test36() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(8978.0) - .description("ccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8") - .name("JafcwBDpLTRN1a0lar5cvmWk6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5Ps"); + .discountPercentage(7892.0); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -933,12 +965,10 @@ void test36() throws ConnectionError, ProcessingError { @Test void test37() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(9928.0) - .discountUpperLimit(1593) - .description("tmnNiOZyV9AO3DnB1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8r") - .name("kq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQk"); + .discountPercentage(5938.0) + .name("oimSP8aDw1fwYQo1a8Jvio1NlXmWokT3fCZ0aqdulZZGglvs1mmHvcGJdXuM"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -953,13 +983,11 @@ void test37() throws ConnectionError, ProcessingError { @Test void test38() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(4048.0) - .startsAt("2023-02-25T20:09:17.000000Z") - .discountUpperLimit(358) - .description("a5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKv") - .name("yAHQ0Cmh0GR2iNpQgbrTS2HEffP70D"); + .discountPercentage(2477.0) + .description("ofsG8E4KIFxs3y0EBuTM1S0") + .name("PJraQIMtAPJ1JN9CtWW30Uo4UAg9arJ4XCMrwN15cIxDvF6fUC0OQCualYkGbJ73b3nYCrV9uDJehyXJGfZSkx4G3NTiGEBvJP8jVkcC85"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -974,14 +1002,12 @@ void test38() throws ConnectionError, ProcessingError { @Test void test39() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(1429.0) - .endsAt("2023-03-24T15:14:16.000000Z") - .startsAt("2022-11-21T09:12:45.000000Z") - .discountUpperLimit(67) - .description("ohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBpAMRk3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9FitjutUJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmm") - .name("XsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3H"); + .discountPercentage(6638.0) + .discountUpperLimit(990) + .description("npCpVaAaHx1iEs8vFtOGvU65Sy7b45F1sYQbanmxI5u8gze9wV9utYjWSxV0PYaS2m3w11YOcIRgqxweZ1D5GDujWwLCtS0wYAR5oiTurYC7yg59bUqlzl8RTsqHpDWU8ApGdTbLUnpU1baTn5DB15m1nGHAyRImJ6G1b1LBudJBaCIrObUZ5ZC0h2jyrMS4IVkYp7d5uCmZcCGsDsYW6iBTOJJ") + .name("tmv4ZbMGqyaKdWN8wtUzEEJzkH6S98QQghHEuISiLlQ9W3XgJB2NaMYnzVdH4lBEl49jCEcrfC"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -996,15 +1022,13 @@ void test39() throws ConnectionError, ProcessingError { @Test void test40() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(9087.0) - .displayStartsAt("2022-02-12T00:52:45.000000Z") - .endsAt("2023-05-13T08:40:49.000000Z") - .startsAt("2024-08-02T17:07:25.000000Z") - .discountUpperLimit(6290) - .description("DSrYQmTFD8MK4LhwIRladKEnUCUBMTsHjSLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl1nws6Ne3S7kdpHli9FCf9") - .name("vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn"); + .discountPercentage(1097.0) + .startsAt("2023-10-12T18:11:25.000000Z") + .discountUpperLimit(4) + .description("ObL3OoO8rAUeIJBL5bUAsdaXhLa6DeYgow42MLUfdk8XuchSqSbTRRUD8SL") + .name("RBVzctWtyXmcrdg7VkR4X33FNwVK3ZsilsWVKactBtuAItB6ycarokvOGbxOtjjILQMz1SY"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1019,16 +1043,14 @@ void test40() throws ConnectionError, ProcessingError { @Test void test41() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(1850.0) - .displayEndsAt("2023-04-13T11:52:53.000000Z") - .displayStartsAt("2021-07-26T11:21:57.000000Z") - .endsAt("2024-06-30T03:27:13.000000Z") - .startsAt("2020-02-14T18:14:30.000000Z") - .discountUpperLimit(1447) - .description("tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQ") - .name("KCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z"); + .discountPercentage(7005.0) + .endsAt("2023-02-14T00:47:10.000000Z") + .startsAt("2020-06-16T11:11:30.000000Z") + .discountUpperLimit(2537) + .description("gi3uqGy9JaET7yaI77xfyzjZfk3Eg446tN2eZbvNHRDlrWw9qEb2szCXBkkHRCtXprtOEGF7FA7qtYAU5XoCNIUER98LHSRVry41mwGLHNUS9ycac0Neld0xGYOxpvYgvz5c96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wG") + .name("I85BEYoV"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1043,17 +1065,15 @@ void test41() throws ConnectionError, ProcessingError { @Test void test42() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(2100.0) - .setDisabled(false) - .displayEndsAt("2023-05-19T00:53:00.000000Z") - .displayStartsAt("2023-12-25T17:43:44.000000Z") - .endsAt("2022-01-27T15:06:39.000000Z") - .startsAt("2020-04-06T00:43:01.000000Z") - .discountUpperLimit(3633) - .description("pGDCB7WpLioRLUylhwp3jBXylmnzTDYQPTQEhEDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3a7y1jkUDzYl") - .name("QVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkE"); + .discountPercentage(7814.0) + .displayStartsAt("2025-06-07T17:51:34.000000Z") + .endsAt("2020-11-26T06:48:31.000000Z") + .startsAt("2020-11-22T18:04:51.000000Z") + .discountUpperLimit(9887) + .description("AWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCurmIpiTiNJmdhSFJZDo3oq9jSUkc9PdtCnJGKBJDfwGwTHxDL2") + .name("OdXfkEBpMjbpCPBsioaYW8Yi4hZj4xdPTFTA02UZKecENyKp2Io7TZBqCIqL4rp2EFrfcK15LTb24Ur3nzPNHJH0RK2HZRZXaO0"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1068,18 +1088,16 @@ void test42() throws ConnectionError, ProcessingError { @Test void test43() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(3613.0) - .setHidden(false) - .setDisabled(true) - .displayEndsAt("2021-11-30T21:36:02.000000Z") - .displayStartsAt("2021-06-16T21:49:18.000000Z") - .endsAt("2020-07-15T13:10:21.000000Z") - .startsAt("2021-05-03T22:35:12.000000Z") - .discountUpperLimit(4126) - .description("OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxqLSG8S4a") - .name("P0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kB"); + .discountPercentage(4345.0) + .displayEndsAt("2022-04-21T21:04:02.000000Z") + .displayStartsAt("2020-11-09T07:01:01.000000Z") + .endsAt("2021-01-03T22:05:55.000000Z") + .startsAt("2024-03-10T19:36:48.000000Z") + .discountUpperLimit(9460) + .description("9KlGpQkqx0Eg2tYlbUkqmQv60CMZa5pywmhrY89J06nrffjpXgwax0yxzxVt1fgZx65QyqRA0ErxUFPGG3NtnfgRNPusLiOWBNvfaPU20jqHqD7fumjHr0s87ojVjQllJBsdX8PqB5vj6KZvk9I14B0wJjv5PZV8BzD6xxeVZJr6fOg9zsFZTThoFxkwxW9hiLZrgw5GsDKhgqi6fonQRpg8o6w595UP") + .name("zcgZED4PiUtNnp74WiiOwd8iyY6Z0zhmmU4qjfXM0iaeCNkqwEBU16Jq12CxO1vOYhEe55St2TiyraOemZRjiAchwL6b1jB1Cg1nBS"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1094,19 +1112,17 @@ void test43() throws ConnectionError, ProcessingError { @Test void test44() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(9845.0) - .setPublic(false) - .setHidden(true) - .setDisabled(true) - .displayEndsAt("2020-08-14T17:00:51.000000Z") - .displayStartsAt("2023-01-23T22:18:17.000000Z") - .endsAt("2022-07-30T11:13:18.000000Z") - .startsAt("2020-05-26T01:14:15.000000Z") - .discountUpperLimit(7893) - .description("7BlWsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomWlXA8y2vwAsTNYaeLyV7CWdrmk7DRyx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4xhz7DzBywKIciMlN0S7L0N0uBHj0xIlmI7crwjgiJmBq8x2BMoiejWmPY8qwKCFWRUhTWJtrSHM5") - .name("vGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wp"); + .discountPercentage(5004.0) + .setDisabled(false) + .displayEndsAt("2026-04-02T01:51:13.000000Z") + .displayStartsAt("2021-01-12T23:47:26.000000Z") + .endsAt("2023-03-31T01:26:18.000000Z") + .startsAt("2026-05-26T21:11:41.000000Z") + .discountUpperLimit(9400) + .description("Sxgo6Taagdxx1mLakIn0CpIISvuAWSZZfn8k") + .name("rGsRTJu"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1121,20 +1137,18 @@ void test44() throws ConnectionError, ProcessingError { @Test void test45() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(3782.0) - .code("s") - .setPublic(false) + .discountPercentage(9160.0) .setHidden(true) .setDisabled(false) - .displayEndsAt("2021-12-28T17:38:18.000000Z") - .displayStartsAt("2024-04-24T07:37:39.000000Z") - .endsAt("2022-04-08T06:55:14.000000Z") - .startsAt("2024-07-21T19:55:51.000000Z") - .discountUpperLimit(4577) - .description("BKUJdHLf9kwaxRbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1By6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9VDX3NEhsO0rjGagOIQ6x9sSfu0zX8zd") - .name("niT7rbp4RdF8jzLLX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZhOiq9TM1kL"); + .displayEndsAt("2022-06-06T23:24:32.000000Z") + .displayStartsAt("2026-07-03T03:37:20.000000Z") + .endsAt("2021-03-09T18:21:37.000000Z") + .startsAt("2023-10-02T09:56:19.000000Z") + .discountUpperLimit(5352) + .description("TRpHb3xaMjpGa8gaJHdl18J3d41BsVgtiwJjEQgl2khqccOMjuNbV7gJFoloels8545DuKxo1Vi0yj9LZ0SyJWAaPdTI8GQRoTVVLo6s0iJqu2Tp6qxM61gVY0GH358hWkV2Uf2KtDFhJ8HG79vPf61T8wOYbBgjhnixJKbSXHCrQ2sJdGjdC") + .name("NpP7vZgP6rij5EfD6DtnR73iSkAgC1lY6yupHUdfLL0DHjlwSaRnmrgoUZ8HPuG9MGiaGFzsfWWWy9Im8UxT025mhbVLE"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1149,21 +1163,19 @@ void test45() throws ConnectionError, ProcessingError { @Test void test46() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(8962.0) - .usageLimit(1825) - .code("MOaPoa") - .setPublic(false) + .discountPercentage(6785.0) + .setPublic(true) .setHidden(false) .setDisabled(false) - .displayEndsAt("2023-09-10T13:28:35.000000Z") - .displayStartsAt("2022-08-09T04:43:07.000000Z") - .endsAt("2021-06-17T02:46:52.000000Z") - .startsAt("2021-05-28T17:55:21.000000Z") - .discountUpperLimit(7102) - .description("1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIECbUavopCer6amUqWii2uDVrmTki6pqO0f8cnptMkBRjmpnn") - .name("beCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSblk7QSM"); + .displayEndsAt("2026-05-24T17:36:13.000000Z") + .displayStartsAt("2020-07-09T22:02:01.000000Z") + .endsAt("2023-08-17T08:49:37.000000Z") + .startsAt("2023-05-17T07:38:03.000000Z") + .discountUpperLimit(6079) + .description("ZVZOefO3wRMVsdsI7UYvxBYHMaYiviU38jqbyVWH5DFcnmWcaw5XgZyYFJIldgknhDa91EmSrsQOnBNxdurOw7gkjQ3w") + .name("pef72Il4E5ZWsSecpIqr43pcjq1LwdcVMUb7XEBzGNuyNwO3"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1178,22 +1190,20 @@ void test46() throws ConnectionError, ProcessingError { @Test void test47() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(6628.0) - .minAmount(4459) - .usageLimit(4224) - .code("kKPrtzfsC") + .discountPercentage(3100.0) + .code("Th") .setPublic(false) - .setHidden(false) + .setHidden(true) .setDisabled(true) - .displayEndsAt("2023-06-29T08:12:17.000000Z") - .displayStartsAt("2020-07-18T08:24:12.000000Z") - .endsAt("2023-06-11T14:41:15.000000Z") - .startsAt("2023-03-08T13:39:55.000000Z") - .discountUpperLimit(7603) - .description("OFn1WKJz5hhBZBCZgSERTDaoK9IqITw9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq6VpVqu1DpFd0JaBsPB") - .name("jjxsN82R5bV74h6MclFLskpVJhF8OvhWGp3gTZC60RTw4fZ8zWBqSC3vDIMcnooU2vsEkh"); + .displayEndsAt("2025-06-27T13:16:19.000000Z") + .displayStartsAt("2025-09-05T16:59:13.000000Z") + .endsAt("2021-06-10T03:23:53.000000Z") + .startsAt("2023-07-13T03:36:26.000000Z") + .discountUpperLimit(935) + .description("aVVhfSd3BmnZxBBpR9nxMbDW2Wv9nIAuvJ07T9KHTjKX9sc30nVHddo9MOLvGZ61adHItwXOUDj8FvTz5QBGaQdIsgWXQM5x1yXUhp2cjgTiUn5rz1pVqBgYfePziyv4mtwf363wthBO4FjlbNSGHxbjuEMAeQokaUOBkEJMomGEE3qtgKMvjDsKXEFhYl0BRpqUDYmqwBJzhV6dtnsmaJHCLyhHLjUCzekHgQwDCfsWS6JXTLuG14K9HQ") + .name("pPICoaRhYRcaR59QCffGIaaiPRXQUB9KSDwnfHx9gXjCberbb7S8DARwQI05I6eJLYrFtVTc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1208,23 +1218,114 @@ void test47() throws ConnectionError, ProcessingError { @Test void test48() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" + ) + .discountPercentage(4920.0) + .usageLimit(5774) + .code("F6Iz7He5Q") + .setPublic(true) + .setHidden(false) + .setDisabled(false) + .displayEndsAt("2023-07-09T04:42:15.000000Z") + .displayStartsAt("2024-11-16T16:37:58.000000Z") + .endsAt("2022-07-24T02:34:18.000000Z") + .startsAt("2025-09-05T01:08:58.000000Z") + .discountUpperLimit(6131) + .description("P0lBKY5Zym6qbNd5Gezpxyuuv2alBrKWaTbSFgzh7CQVHCWblj8QDbDxzNolTpcO") + .name("7N2cnroE2RpkIIvh8Erjc"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test49() throws ConnectionError, ProcessingError { + Request request = new UpdateCoupon( + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(8196.0) + .discountPercentage(9324.0) + .minAmount(2227) + .usageLimit(1379) + .code("nN") + .setPublic(true) + .setHidden(true) + .setDisabled(false) + .displayEndsAt("2023-02-08T02:16:54.000000Z") + .displayStartsAt("2024-10-16T10:37:23.000000Z") + .endsAt("2024-03-28T01:55:03.000000Z") + .startsAt("2023-06-13T15:39:52.000000Z") + .discountUpperLimit(1644) + .description("XpjEUxFP9ZbCN8RnV7Q3f92KNkDfzWRiioT9QYFPklAn30gj1CmaOUBeCZvfeO7Sgh2QcnuYHCBxXNgm1qjvh6lwQ5YfQRfoj2wOYmg9391o91QzyCQzu6PMATfONJfxW9vGUYm5paU0VcU") + .name("2VDfrMfAvz54ATPoiAdZgkLgRvu594uUs007xOusoKdSFtNkw4qjPQJ7"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test50() throws ConnectionError, ProcessingError { + Request request = new UpdateCoupon( + "48cdec88-c364-4af3-91e3-00dd5eac3acd" + ) + .discountPercentage(1770.0) + .setShopSpecified(true) + .minAmount(7340) + .usageLimit(4546) + .code("34RHyBZkw") + .setPublic(false) + .setHidden(false) + .setDisabled(false) + .displayEndsAt("2024-04-28T15:42:53.000000Z") + .displayStartsAt("2021-02-09T18:43:38.000000Z") + .endsAt("2021-09-13T11:40:02.000000Z") + .startsAt("2024-09-28T21:54:35.000000Z") + .discountUpperLimit(5471) + .description("p1bmTMaDirN4G2FVcRAILTPQLxfz7QYzqiXv1dBYjUZmnwyS1m") + .name("AzTO6PEOOvujUYEjG1bsd93HwfuPWrouBgDOWBAyx1cuE"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test51() throws ConnectionError, ProcessingError { + Request request = new UpdateCoupon( + "48cdec88-c364-4af3-91e3-00dd5eac3acd" + ) + .discountPercentage(4569.0) + .availableShopIds(new String[]{"a0062abb-c67b-4854-bdbd-d455c31c6f32"}) .setShopSpecified(false) - .minAmount(5806) - .usageLimit(9152) - .code("MP7") + .minAmount(9809) + .usageLimit(5060) + .code("Edr") .setPublic(true) .setHidden(false) .setDisabled(true) - .displayEndsAt("2023-12-29T13:03:03.000000Z") - .displayStartsAt("2022-05-28T12:08:14.000000Z") - .endsAt("2021-04-16T05:06:06.000000Z") - .startsAt("2023-04-05T21:00:40.000000Z") - .discountUpperLimit(6792) - .description("0jy8CyXSjsNQfhm4JdiSR8LU0sAxVpKo9Pr8tnCR4b3VVcnR7ySaTJSL") - .name("XaRbjFaOCY9HY0faJMcRsZ"); + .displayEndsAt("2022-08-31T11:44:41.000000Z") + .displayStartsAt("2022-07-19T16:38:59.000000Z") + .endsAt("2024-12-20T19:23:00.000000Z") + .startsAt("2022-01-03T09:26:41.000000Z") + .discountUpperLimit(879) + .description("H7roprIUCAGYbFfz98qEYs3fTBqIMEk6UFEGcRCIsN4Zfz8ZjlCqkGEh1KM2WnP") + .name("d3zzJU6PO3sdcI8PDT08v74BI2VP"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1237,26 +1338,27 @@ void test48() throws ConnectionError, ProcessingError { } } @Test - void test49() throws ConnectionError, ProcessingError { + void test52() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(1706.0) - .availableShopIds(new String[]{"3cc2a17e-e514-48f4-80e6-2a7f71ff55ac","d5806b2b-bb18-476e-b108-d8a61340b199","a83fb634-3ff0-4ef1-925d-eb0f7ac099a4","b1cf6f27-ecbf-48af-8564-9805f453bdf0"}) + .discountPercentage(1313.0) + .storageId("2eb63be0-423b-4098-84e5-63b8feade9f1") + .availableShopIds(new String[]{"80e0eef3-a434-493b-8109-2f2217a53810","62d05825-ed08-42a8-899b-a20a74d7b67d","57f0e48e-3a32-4ddc-8dc5-c39e625ab1a2","7010ca93-ea41-4c34-a7ca-f46a96587e2d","77a94948-ac2e-49f4-8796-94a48302eb06"}) .setShopSpecified(true) - .minAmount(6419) - .usageLimit(2905) - .code("gOV") + .minAmount(6500) + .usageLimit(7962) + .code("B") .setPublic(false) .setHidden(true) .setDisabled(true) - .displayEndsAt("2021-09-04T11:53:12.000000Z") - .displayStartsAt("2023-06-16T21:20:50.000000Z") - .endsAt("2022-10-05T16:52:43.000000Z") - .startsAt("2023-03-31T03:38:41.000000Z") - .discountUpperLimit(7816) - .description("FcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt7JZTknlcSLOAfgHki7iE") - .name("UUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOlUDO"); + .displayEndsAt("2024-01-04T01:05:06.000000Z") + .displayStartsAt("2025-08-06T17:09:24.000000Z") + .endsAt("2023-02-17T07:02:47.000000Z") + .startsAt("2023-07-30T07:20:03.000000Z") + .discountUpperLimit(6757) + .description("Yn8uvrsJwmXqAKgViXf2eJim1RdN4XCU5aG5xcoPdJ6AA1qyCCpsvposWm2l41CxysbDiZ7jcWk9v3rFUsJH0jVcUr5HWJNhtXiYy5phVTxCRdiZLpJEvBgW4klcH2ny0NUmrDOqBFYNnMLa09HShYwuBZNHwHLuF2sQorRpPsZtE76w8OXjsudRpCiPYzaozDVed5HY97wwuPUMWYXf") + .name("SOYkBqdKQHMj0xj5uvmLIH1QsPN0PjhwTGf2mN"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1269,27 +1371,28 @@ void test49() throws ConnectionError, ProcessingError { } } @Test - void test50() throws ConnectionError, ProcessingError { + void test53() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "48cdec88-c364-4af3-91e3-00dd5eac3acd" ) - .discountPercentage(7949.0) - .storageId("176f15a5-ab22-42c2-93d2-60e90be3adf9") - .availableShopIds(new String[]{"372c90e5-fce1-477d-9810-1002017936ed","ecafef65-d7cd-4e61-81d9-505e92224e89"}) - .setShopSpecified(true) - .minAmount(4101) - .usageLimit(4380) - .code("b") + .discountPercentage(670.0) + .numRecipientsCap(5528) + .storageId("693897b1-b6c6-4eb2-a48c-e57a6b5dab97") + .availableShopIds(new String[]{"dcf32c84-9c1b-4e6b-923b-aeb647eeb185","4b3d1c83-33ef-47e8-aa47-c1d15162b588","e3dff5d8-d4d8-4520-8f29-bbbdaedffed7","1afa11c7-7614-411d-8dfa-4fa5066fbc53","9f7935d0-2c0d-4ce0-ab28-35e0ef44e779","b8a70e59-689c-4188-98d8-5eb44e4430c7","325c2b7a-e62a-4521-8e18-e537a3de26c0","1295963d-b8d4-4e37-8f6b-a91dbf2086e3","0c90d838-8901-4048-bd2d-6d203609aa34","7fa61e12-6ebc-4b87-b9d7-273981e0a96b"}) + .setShopSpecified(false) + .minAmount(2021) + .usageLimit(6909) + .code("7Preq8n0M") .setPublic(false) .setHidden(false) - .setDisabled(true) - .displayEndsAt("2023-03-21T00:35:26.000000Z") - .displayStartsAt("2023-09-13T00:28:40.000000Z") - .endsAt("2021-04-26T03:38:10.000000Z") - .startsAt("2021-06-30T14:15:07.000000Z") - .discountUpperLimit(9957) - .description("v3hkGmk4iWQZAVafOlabiOcEnloh2DXft8ZR3ZIT5H8aSOl3MDXnG9yHqEAThwDuq1zewsMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDIn3iuFQrrgeXzyNXNrNkeWa9hWsLSo6RhlRrNdmMatyDW") - .name("2s5SKsd06fYHa9pHdUJ2NkpD9XRln1g4q1AmzenaBAIYsPX5BE"); + .setDisabled(false) + .displayEndsAt("2024-06-25T05:02:34.000000Z") + .displayStartsAt("2026-07-20T10:40:16.000000Z") + .endsAt("2020-03-09T14:11:33.000000Z") + .startsAt("2025-12-21T11:41:45.000000Z") + .discountUpperLimit(4655) + .description("vcVzayJGxdqzoO9uXS4XBDN0o0Mu7ieKvzIZjqj6ciQDbUqTLqf5I0WmQsV3ZqnN3F5j5hei5eenuWOLqxpAqKhr1PiatJCFbxFePHe8fLp7pW") + .name("tBDbGEkzsRtHz3ymmInXbIX7AII"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCustomerAccountTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCustomerAccountTest.java index 52eeed6d..7690ead7 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateCustomerAccountTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateCustomerAccountTest.java @@ -12,7 +12,7 @@ public class UpdateCustomerAccountTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateCustomerAccount( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + "52e9723d-d443-4465-8be1-c807d4a504c5" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateCustomerAccount( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + "52e9723d-d443-4465-8be1-c807d4a504c5" ) .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); try { @@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateCustomerAccount( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + "52e9723d-d443-4465-8be1-c807d4a504c5" ) - .externalId("hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qq") + .externalId("wIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fcKmGRU") .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); try { PartnerAPITest.getClient().send(request); @@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateCustomerAccount( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + "52e9723d-d443-4465-8be1-c807d4a504c5" ) - .accountName("rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfd") - .externalId("KJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCb") + .accountName("7sMhCFW8ODbHkZSUPXBsmObvnHUjDTSSciw3PX7IImkvl5vCAHh7QD95u0YIcm0Sp2RluFOAxJTKKlkJp5ENq52OLTcJlnsa7zuy1tusdwen7Z1wrrgdxWfKkMLwrBpORQ9LHlnKRmCd4nadmeyKnqGyqpn3W7S36l34SSSOxW72gqSjd8QPzbjt0rt7UmerReZGbvGgvAZbyLJ1Lea6an4P1AnQALadFsAzgfKjbtuXgZDedIJqTHGg") + .externalId("OhGiwZBj5AvHdO2AtfcLabY2vDzXzQx3sP8V6IT9VFC5bo0") .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); try { PartnerAPITest.getClient().send(request); @@ -82,11 +82,11 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new UpdateCustomerAccount( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + "52e9723d-d443-4465-8be1-c807d4a504c5" ) .status("pre-closed") - .accountName("nT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fc") - .externalId("KmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUj") + .accountName("KXfPASw8jPQ0hMJ4nPgNJOUuVI3xkUSOX0vTgyFK1FOp7pl9MWii2exAarzlUllr") + .externalId("sQZQAnUYeKIbZQuPYAKNLvTyMcIYlLoYSz5jRHNP") .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateShopTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateShopTest.java index feb6c5ba..a670dfa4 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateShopTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateShopTest.java @@ -12,7 +12,7 @@ public class UpdateShopTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "f1044bc1-2545-4ac3-afb2-2867987f8e07" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "f1044bc1-2545-4ac3-afb2-2867987f8e07" ) .status("active"); try { @@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "f1044bc1-2545-4ac3-afb2-2867987f8e07" ) - .canTopupPrivateMoneyIds(new String[]{"9852d914-b345-425b-93b8-dca15f403b48","1bf8aaff-f5ff-4748-8aad-f96094ec44a3","ae46d9dc-d41d-4508-be66-c4bc7a989435","b2a9a4a4-0eb0-4cd4-9582-72df747d59c3","81904a92-37b5-4b79-9c90-37b26d46d548","6d8e4e09-16a2-4e13-8e81-ae1e8e0837f2"}) + .canTopupPrivateMoneyIds(new String[]{"5283bb00-d8dd-45c4-8372-23155e0ba4d6","9c94ea86-49af-44b3-be50-4878b38e9b92","85f99a6f-272b-4bfa-a076-8aec38d98f5d","40cdc89c-6bf0-4904-ae67-b6838f77cbd7"}) .status("active"); try { PartnerAPITest.getClient().send(request); @@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "f1044bc1-2545-4ac3-afb2-2867987f8e07" ) - .privateMoneyIds(new String[]{}) - .canTopupPrivateMoneyIds(new String[]{"5728d3b3-a034-4f8b-a8a8-b744bd59d03b","ee49f0b1-f1f5-4d78-af49-cbe26410ef5f","1d6f1f75-aba0-4964-9080-53e7f02256cb","a3c1cb63-065f-48c1-8834-47ccddca635e","02d62971-ba05-4da9-b476-808e999c7787","ed6de882-f06e-4259-93e4-d9027866f90f","b002ff05-e505-4cfc-928c-07ca0164397f"}) + .privateMoneyIds(new String[]{"7c4817b6-3694-4421-b8e2-935aaf258ccd"}) + .canTopupPrivateMoneyIds(new String[]{"da1fb68f-4266-44e3-b03f-b1aacf385a75"}) .status("disabled"); try { PartnerAPITest.getClient().send(request); @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "f1044bc1-2545-4ac3-afb2-2867987f8e07" ) - .externalId("VxWy0PirB5ccKSjPsnaJy0xSUaUZ3K") - .privateMoneyIds(new String[]{"67971269-72bb-4b70-ae5d-2347d45e0383","07e91f76-d9e5-4618-8ef0-d9b153d44db1","9b1e1f5f-eed7-4f27-870d-c4e9dfcb6d96","86f77bd3-6b72-4db0-9a29-9cb8c1440675","6e6cf586-7f1b-4e43-baa5-2eae1952f6c2","7d1294c0-6b30-463e-9dfc-a91e270b838f","cc70784a-2f84-49d3-9eac-60f400b15928","72200037-d68b-459a-a807-5cda45b9949c","3f345ead-5c4e-41cc-b663-1b76f0c059ff"}) - .canTopupPrivateMoneyIds(new String[]{"904eec3b-0c89-4b3a-b1c2-656e2f941c68","e86447ac-6bc7-4fee-a725-45793daf15d2","6cb8fb12-1ea2-4073-a4b1-95daf3408162"}) - .status("disabled"); + .externalId("Nu3aeeMh7M") + .privateMoneyIds(new String[]{"ca0a6d71-94f1-433f-baa6-b95a509a42fc","e076c7a0-ea03-40df-8b05-74e0e2554d86","aff129af-1744-45e8-90cf-8bef0e98a289","5bb93ee2-1799-4d08-9095-9688b5cc2a87","16ad65f0-a44b-46ad-b654-38805c476750","44b634dd-8d0e-4961-9ff2-0d7522935bf5","03ea9ea4-d46c-44e7-9fa0-16921c9c6418"}) + .canTopupPrivateMoneyIds(new String[]{"f5c9e631-ae82-40ff-a72d-9d55778cbc0b"}) + .status("active"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,12 +102,12 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "f1044bc1-2545-4ac3-afb2-2867987f8e07" ) - .email("EX46DL0EY9@Dfg2.com") - .externalId("2KSBJ32yceHk") - .privateMoneyIds(new String[]{}) - .canTopupPrivateMoneyIds(new String[]{"47031610-468f-480e-8a03-0701ad16ffd3","51f19c19-1d35-422e-b372-bbdffd022a2a","07488c1a-ee51-45d9-8672-84a561fc77fd","1aebc8c9-61c5-4052-b61c-25ecad8e7cb0","e5d8604b-05f2-4cfd-9be9-d4f575f3e55f"}) + .email("rgWq51AuUo@unyH.com") + .externalId("v57rDbvmuL7BqYd28Ylq4PTRllx603") + .privateMoneyIds(new String[]{"ddd59b04-62d5-4282-b98f-5675b514fa85","9c479ede-b39d-44a1-bff4-5df8d7958bde"}) + .canTopupPrivateMoneyIds(new String[]{"ad1f4c1e-9320-451e-8a45-4b3abe87bab1","c54b6909-7540-4b3d-aa4c-715da881205e","3778a692-ff8d-4ae0-9b4b-b87f60acc191","fa75431e-f0e1-4ec3-815f-cf3b8f13b4e7","42f9955a-d956-4b97-a9a9-86241de4f37a","c29b50a4-2201-410f-996e-0b5c85ed83f6","6a2c137b-efae-429d-86fd-66da742c8290"}) .status("active"); try { PartnerAPITest.getClient().send(request); @@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "f1044bc1-2545-4ac3-afb2-2867987f8e07" ) - .tel("01813768343") - .email("nnsKFojcLO@uuur.com") - .externalId("aaP5zVuitJAWBnMTQrqQLb4F279") - .privateMoneyIds(new String[]{"fc9ec563-0e05-4b07-b364-b2108203d244","cf9981f4-70bc-46a6-834d-d1b3c74ccdac","c5c87499-e6f5-432c-97c0-408bc5a6a98c","9eb27d88-aa5e-4c53-a11d-87c540654e59","c1060862-d4f5-4d98-a17e-eeba284b644f","3286cee0-dff9-42a7-b1c1-12973aca16f4","3532624a-9219-4014-aa9c-16a002783062"}) - .canTopupPrivateMoneyIds(new String[]{"5ca9c410-3c7b-41da-a08c-9999113a20dc","47f4bac6-40f6-4985-988c-e63440782044","0d9d74dc-5ed4-45f2-a5db-d2807b407e6e","bd9d470d-f19b-4b59-bcac-89ea1922f35b","7d0459ff-ad9a-4710-b6bb-a3f2f35533c5","a3efa5b9-d4e0-4348-b55e-1c93e807f32b"}) - .status("disabled"); + .tel("045-60-8459") + .email("2b5Vs5gPuv@HuA5.com") + .externalId("WIqhNUoMi") + .privateMoneyIds(new String[]{"b1031177-4e07-41ce-893c-6d610f7a155d","7f5da83b-ffca-4faf-9bf9-02495cc750b2","b3867cf0-bbc1-4c97-a0c4-2012a64f83f3","9dfadc32-18c0-4d42-b45e-7891cc16a5f9","6ce7b016-6742-4fb1-87a9-0b1192468b5a","28c22717-bc02-4e13-946b-8b2ead629c02","4f82f204-4334-44c2-b1bf-20a2a417d59f","18d22fd0-232f-434b-8896-add28e4c4b91","388a425f-72a2-4132-93c5-a51f6b57e500"}) + .canTopupPrivateMoneyIds(new String[]{"07f9c6d7-9de8-468c-9024-35da77621e53","66968c76-64d6-4938-aa6e-2ad3dc7dae5f","0245f663-e59b-4ed4-bff6-414ac407a9a5","df27835d-103d-4586-838d-d71725378cb4","e8ce142c-9029-460d-960e-2d481c5c0194","3cb3367e-cc91-45be-8d98-daf0f4b29d19","282db25e-1ca7-478a-845b-9397c76b0855","e4df2c2e-59e1-4bea-9bcc-5f876c54896d","2878c3be-48bb-42c4-9b39-df850d42129b"}) + .status("active"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "f1044bc1-2545-4ac3-afb2-2867987f8e07" ) - .address("Gm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y") - .tel("070697-082") - .email("EUoqg0zXsu@vc8L.com") - .externalId("4mbP1hy") - .privateMoneyIds(new String[]{"62f6f59d-b5d0-4582-84af-aa2ba2787ce2","2ae8bbce-0a80-4956-aae3-6b9d4ff9bbbe","9b28ea88-92ba-4c93-89e0-ed13e3122e9f","f799f274-b4af-4935-b951-2ba77e63ed01","4addd0ce-9a1c-4c00-a9e0-9da37efd6119","cd0f48ea-4356-40db-aebf-1d9c92faf87d"}) - .canTopupPrivateMoneyIds(new String[]{}) - .status("disabled"); + .address("cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6oO") + .tel("09-320156") + .email("prWtPSGZrL@9Urm.com") + .externalId("NU") + .privateMoneyIds(new String[]{"184c760c-d198-40b3-b646-7767316c925a","2f5c1eaa-7c9e-4311-b618-3483f3094388","0bc0e939-f776-4e77-98a5-06122d4f2c00"}) + .canTopupPrivateMoneyIds(new String[]{"a811e605-3462-4b5f-8aac-8d60eb4a37b7","b0378779-a5ac-4490-a0fb-e2ff14ecbf42","1c477411-0132-4a07-be75-abaf12aebea3","fcddbf8e-632f-49e0-8962-45e42446edd4","d5b26792-5cdc-428e-b806-8dff7c9a4fdb","68bf756f-699c-447f-8489-96366d44c100","ed73da3e-5ca1-4294-9933-935e5c91f0e0","ff852e74-2f5e-4b7c-a01a-3263960e5258","8c619850-697f-42fa-8090-6c295aa5766d"}) + .status("active"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -168,15 +168,15 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "f1044bc1-2545-4ac3-afb2-2867987f8e07" ) - .postalCode("3254867") - .address("40vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEyp") - .tel("0812-256-2716") - .email("GgyrO7oaIP@GJ7J.com") - .externalId("BC1o5Rc9") - .privateMoneyIds(new String[]{"9a97ec77-edbb-4466-ad8a-60d6f4c9e8f2","3cdf80d7-22f2-4e4b-a4b8-892059fc8dda","39c4f4e3-9a6b-456e-a0e4-77968729de97","d8ab7c50-6e6e-4a1c-b09e-001fbe9d0ab3","34ecc8ee-2dbf-4128-a512-4f123e4c0adb","9e2cc413-bb91-4ffc-8c6f-56cde6c42624"}) - .canTopupPrivateMoneyIds(new String[]{"099843e5-94af-4002-ace5-e48ef262e4b3"}) + .postalCode("910-7289") + .address("CjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKL") + .tel("037893-189") + .email("cFOYpAAHYY@K9z7.com") + .externalId("3uxDP2") + .privateMoneyIds(new String[]{}) + .canTopupPrivateMoneyIds(new String[]{"7d495569-9606-4763-b4e9-c4a88d4c84f8","a2a939d9-fc3a-4cd3-bed7-1830371db141","95a86593-c983-4fdb-8f6e-acaf8647f1ec","b7955ffe-cf0e-4a27-8af9-15070527c15b","5e154fd1-c896-4c34-af02-1e67934b4f26"}) .status("active"); try { PartnerAPITest.getClient().send(request); @@ -192,16 +192,16 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "f1044bc1-2545-4ac3-afb2-2867987f8e07" ) - .name("pOb8vOALeCaVZzJ21Wkjwh096vY0") - .postalCode("7961126") - .address("OxtHaQb") - .tel("05860669461") - .email("YgBl99xXSI@Gv3O.com") - .externalId("n3SH7ljqEdpqCcPOpWjivoOnvdw0Y") - .privateMoneyIds(new String[]{"cbe99a17-ac76-4c7d-ace4-4c3b5e7dbab3","b7aaa03c-b649-4565-8a17-711186b577f9","022dade8-883f-412d-92af-d454cb75da7d","7d88e26c-81d2-4022-a7a3-8b545cd4aad4","1c373fdd-b6a2-4abd-b2ba-464e6e9bd15e","32548178-5ed3-4769-b068-e614e5a677da"}) - .canTopupPrivateMoneyIds(new String[]{"9a2d9c52-141c-48ec-8c82-5f2f7a19f5dc","e8460319-2210-476f-ac22-b0ab2144bb06","e156e2cc-0722-4bfd-bf9b-d0882f60821d","38553eea-774d-4514-ad91-d2bea7a7afcc"}) + .name("gbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPr") + .postalCode("421-0890") + .address("Ju43wB7scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPb") + .tel("04185-2206") + .email("6uSRwX6Rx7@fOEo.com") + .externalId("SQiDYpT") + .privateMoneyIds(new String[]{}) + .canTopupPrivateMoneyIds(new String[]{"30e8bd3d-78d4-4a67-9e72-55885cca8479","d3bd9980-8d14-4df7-a26b-3783bf08f39d","18c002ec-33a3-4e05-8256-3fc4ec15c401","98544a2a-8e09-47ba-8b1c-a6b4cc507d6d","39a11895-10be-4c20-85ac-094c98b930e5","f293a032-4865-4adf-bedb-7a6426c43dd1","e5bd3da7-84e4-4b0a-9136-76a532f3793d","1026a34d-df91-4977-bc5c-4597e04a6775"}) .status("disabled"); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java index 3fa93354..f8e17139 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java @@ -12,7 +12,7 @@ public class UpdateWebhookTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateWebhook( - "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" + "e50e2675-062e-4528-ab9a-66556674d49d" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateWebhook( - "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" + "e50e2675-062e-4528-ab9a-66556674d49d" ) - .task("process_user_stats_operation"); + .task("bulk_shops"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateWebhook( - "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" + "e50e2675-062e-4528-ab9a-66556674d49d" ) - .setActive(true) + .setActive(false) .task("process_user_stats_operation"); try { PartnerAPITest.getClient().send(request); @@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateWebhook( - "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" + "e50e2675-062e-4528-ab9a-66556674d49d" ) - .url("QNFRYY") - .setActive(false) + .url("o") + .setActive(true) .task("process_user_stats_operation"); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/tdsl/CreateNewCustomerWithAccountTest.java b/src/test/java/jp/pokepay/partnerapi/tdsl/CreateNewCustomerWithAccountTest.java new file mode 100644 index 00000000..5e63f2ef --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/tdsl/CreateNewCustomerWithAccountTest.java @@ -0,0 +1,72 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.tdsl; + +import jp.pokepay.partnerapi.PartnerAPITest; +import jp.pokepay.partnerapi.response.*; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CreateNewCustomerWithAccountTest { + @Test + void testCreateNewCustomerWithAccount() throws Exception { + String userName = "user-name" + PartnerAPITest.randomString(6); + String accountName = "account-name" + PartnerAPITest.randomString(6); + AccountWithUser customerAccount = (AccountWithUser)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateCustomerAccount( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" + ) + .userName(userName) + .accountName(accountName)); + assertEquals(userName, customerAccount.getUser().getName()); + assertEquals(accountName, customerAccount.getName()); + String shopName = "shop-name" + PartnerAPITest.randomString(6); + ShopWithAccounts shop = (ShopWithAccounts)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateShopV2( + shopName + ) + .privateMoneyIds(new String[]{ + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" + }) + .canTopupPrivateMoneyIds(new String[]{ + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" + })); + TransactionDetail topupTransaction = (TransactionDetail)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateTopupTransaction( + shop.getId(), + customerAccount.getUser().getId(), + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" + ) + .moneyAmount(1000) + .pointAmount(1000)); + assertEquals(topupTransaction.getType(), "topup"); + TransactionDetail paymentTransaction = (TransactionDetail)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreatePaymentTransaction( + shop.getId(), + customerAccount.getUser().getId(), + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + 100 + )); + BillWithAdditionalPrivateMoneys bill = (BillWithAdditionalPrivateMoneys)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateBill( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + shop.getId() + )); + BillWithAdditionalPrivateMoneys billUpdated = (BillWithAdditionalPrivateMoneys)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.UpdateBill( + bill.getId() + ) + .amount(200.0)); + TransactionDetail billPayment = (TransactionDetail)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreatePaymentTransactionWithBill( + bill.getId(), + customerAccount.getUser().getId() + )); + assertEquals(paymentTransaction.getType(), "payment"); + assertEquals(billPayment.getType(), "payment"); + PaginatedTransactionV2 transactions = (PaginatedTransactionV2)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.ListTransactionsV2() + .privateMoneyId("4b138a4c-8944-4f98-a5c4-96d3c1c415eb") + .shopId(shop.getId()) + .customerId(customerAccount.getUser().getId())); + PaginatedBillTransaction billTransactions = (PaginatedBillTransaction)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.ListBillTransactions() + .privateMoneyId("4b138a4c-8944-4f98-a5c4-96d3c1c415eb") + .shopId(shop.getId()) + .customerId(customerAccount.getUser().getId())); + assertEquals(transactions.getCount(), 3); + assertEquals(billTransactions.getCount(), 1); + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/tdsl/CreateOrganizationTest.java b/src/test/java/jp/pokepay/partnerapi/tdsl/CreateOrganizationTest.java index ddb65615..2ad07c94 100644 --- a/src/test/java/jp/pokepay/partnerapi/tdsl/CreateOrganizationTest.java +++ b/src/test/java/jp/pokepay/partnerapi/tdsl/CreateOrganizationTest.java @@ -16,8 +16,8 @@ void testCreateOrganization() throws Exception { String[] privateMoneyIds = new String[]{ "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" }; - String issuerAdminUserEmail = PartnerAPITest.randomString(6) + "@pokepay-tests.jp"; - String memberAdminUserEmail = PartnerAPITest.randomString(6) + "@pokepay-tests.jp"; + String issuerAdminUserEmail = "blackhole@pokepay.jp"; + String memberAdminUserEmail = "blackhole@pokepay.jp"; Organization response = (Organization)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateOrganization( code, name, @@ -35,8 +35,8 @@ void testCreateOrganizationWithMetadata() throws Exception { String[] privateMoneyIds = new String[]{ "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" }; - String issuerAdminUserEmail = PartnerAPITest.randomString(6) + "@pokepay-tests.jp"; - String memberAdminUserEmail = PartnerAPITest.randomString(6) + "@pokepay-tests.jp"; + String issuerAdminUserEmail = "blackhole@pokepay.jp"; + String memberAdminUserEmail = "blackhole@pokepay.jp"; String bankCode = "1234"; String bankName = PartnerAPITest.randomString(4) + "銀行"; String bankBranchCode = "123"; diff --git a/src/test/java/jp/pokepay/partnerapi/tdsl/RegisterBankAccount.java b/src/test/java/jp/pokepay/partnerapi/tdsl/RegisterBankAccount.java new file mode 100644 index 00000000..8a47990d --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/tdsl/RegisterBankAccount.java @@ -0,0 +1,45 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.tdsl; + +import jp.pokepay.partnerapi.PartnerAPITest; +import jp.pokepay.partnerapi.response.*; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class RegisterBankAccount { + @Test + void testRegisterBankAccount() throws Exception { + String customerName = "customer-name" + PartnerAPITest.randomString(6); + String accountName = "account-name" + PartnerAPITest.randomString(6); + AccountWithUser customer = (AccountWithUser)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateCustomerAccount( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" + ) + .userName(customerName) + .accountName(accountName)); + String userDeviceMetadata = "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}"; + UserDevice userDevice = (UserDevice)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateUserDevice( + customer.getUser().getId() + ) + .metadata(userDeviceMetadata)); + UserDevice getUserDeviceResponse = (UserDevice)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.GetUserDevice( + userDevice.getId() + )); + assertEquals(getUserDeviceResponse.isActive(), false); + UserDevice userDeviceActivated = (UserDevice)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.ActivateUserDevice( + getUserDeviceResponse.getId() + )); + assertEquals(userDeviceActivated.isActive(), true); + BankRegisteringInfo createBank = (BankRegisteringInfo)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateBank( + getUserDeviceResponse.getId(), + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + "dummy", + "ポケペイタロウ" + )); + Banks bankAccountsListed = (Banks)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.ListBanks( + getUserDeviceResponse.getId() + )); + assertEquals(bankAccountsListed.getCount(), 0); + } +} From 51741110bf14e07ce8d9c75c7b44dc4eeb32d498 Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Mon, 31 Aug 2026 10:52:06 +0000 Subject: [PATCH 2/3] update error-response.csv --- docs/error-response.csv | 682 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 625 insertions(+), 57 deletions(-) diff --git a/docs/error-response.csv b/docs/error-response.csv index 9fc60683..a88c75c9 100644 --- a/docs/error-response.csv +++ b/docs/error-response.csv @@ -1,4 +1,6 @@ method,path,status_code,type,ja,en +GET,/ping,418,,, +POST,/sentry-notification-test,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission GET,/user,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission GET,/dashboard,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found @@ -12,12 +14,19 @@ GET,/transactions,403,,, ,,503,temporarily_unavailable,,Service Unavailable GET,/transactions-v2,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,503,temporarily_unavailable,,Service Unavailable +GET,/transactions/bill,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, ,,422,customer_user_not_found,,The customer user is not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -27,8 +36,14 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. ,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. ,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. @@ -38,7 +53,7 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed -,,422,customer_account_not_found,,The customer account is not found +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed @@ -76,7 +91,12 @@ POST,/transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -86,8 +106,13 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. ,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. ,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. @@ -105,14 +130,21 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id -,,422,customer_account_not_found,,The customer account is not found +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found ,,422,check_not_found,"これはチャージQRコードではありません",This is not a topup QR code -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -122,8 +154,13 @@ POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザ ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. ,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. ,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. @@ -133,7 +170,7 @@ POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザ ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed -,,422,customer_account_not_found,,The customer account is not found +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed @@ -143,22 +180,78 @@ POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザ ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,check_already_received,"このチャージQRコードは既に受取済みの為、チャージ出来ませんでした",Check is already received +,,422,check_not_started_yet,"このチャージQRコードはまだ使用できません",Check is not usable yet ,,422,check_unavailable,"このチャージQRコードは利用できません",The topup QR code is not available ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,account_suspended,"アカウントは停止されています",The account is suspended +,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts +,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed +,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user +,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated +,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled +,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid +,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough ,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. +,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. +,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. +,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. +,,422,coupon_not_sent,"このウォレットに対して配信されていないクーポンです。",This coupon is not sent to this account yet. +,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. +,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. +,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,503,temporarily_unavailable,,Service Unavailable +POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed +,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled +,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account +,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough +,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money +,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer +,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. ,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. ,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. @@ -168,8 +261,6 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed -,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -177,9 +268,23 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency -,,503,temporarily_unavailable,,Service Unavailable -POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable +POST,/transactions/payment/bill,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,disabled_bill,"支払いQRコードが無効です",Bill is disabled +,,422,customer_user_not_found,,The customer user is not found +,,422,bill_not_found,"支払いQRコードが見つかりません",Bill not found +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -189,8 +294,13 @@ POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザに ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. ,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. ,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. @@ -200,6 +310,8 @@ POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザに ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -208,14 +320,18 @@ POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザに ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id -,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found -,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -225,8 +341,13 @@ POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザに ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. ,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. ,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. @@ -236,7 +357,7 @@ POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザに ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed -,,422,customer_account_not_found,,The customer account is not found +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed @@ -246,11 +367,18 @@ POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザに ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/exchange,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,transaction_restricted,,Transaction is not allowed ,,422,can_not_exchange_between_same_private_money,"同じマネーとの交換はできません", ,,422,can_not_exchange_between_users,"異なるユーザー間での交換は出来ません", +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -266,8 +394,14 @@ POST,/transactions/exchange,422,account_not_found,"アカウントが見つか ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. ,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. ,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. @@ -284,10 +418,16 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,cpm_token_strategy_conflict,"CPMトークンに設定された支払い方式と異なる支払い方式が指定されました。",The strategy conflicts with the one set in the CPM token ,,422,cpm_token_already_proceed,"このCPMトークンは既に処理されています。",The CPM token is already proceed ,,422,cpm_token_already_expired,"このCPMトークンは既に失効しています。",The CPM token is already expired ,,422,cpm_token_not_found,"CPMトークンが見つかりませんでした。",The CPM token is not found. -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -297,8 +437,13 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. ,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. ,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. @@ -308,7 +453,7 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed -,,422,customer_account_not_found,,The customer account is not found +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed @@ -318,16 +463,25 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable -POST,/transactions/bulk,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +POST,/transactions/bulk,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,organization_not_issuer,"発行体以外に許可されていない操作です",Unpermitted operation except for issuer organizations. ,,409,,, ,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,bulk_transaction_invalid_csv_format,"入力されたCSVデータに誤りがあります",Invalid csv format +,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,cashtray_not_found,"決済QRコードが見つかりません",Cashtray is not found -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -337,8 +491,13 @@ POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザに ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. ,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. ,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. @@ -348,7 +507,7 @@ POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザに ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed -,,422,customer_account_not_found,,The customer account is not found +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed @@ -358,20 +517,30 @@ POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザに ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,cashtray_already_proceed,"この決済QRコードは既に処理されています",Cashtray is already proceed ,,422,cashtray_expired,"この決済QRコードは有効期限が切れています",Cashtray is expired ,,422,cashtray_already_canceled,"この決済QRコードは既に無効化されています",Cashtray is already canceled ,,503,temporarily_unavailable,,Service Unavailable +POST,/transaction-groups,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,transaction_group_name_reserved,"指定されたトランザクショングループ名は使用できません",Transaction group name is reserved +GET,/transaction-groups/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found POST,/external-transactions,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format -,,422,customer_account_not_found,,The customer account is not found +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed @@ -388,8 +557,13 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. ,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. ,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. @@ -397,6 +571,8 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. ,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/external-transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -422,16 +598,28 @@ GET,/external-transactions/requests/:request-id,403,unpermitted_admin_user,"こ GET,/bulk-transactions/:uuid,404,notfound,,Not found GET,/bulk-transactions/:uuid/jobs,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,bulk_transaction_not_found,"Bulk取引が見つかりません",Bulk transaction not found +POST,/bulk-transactions/:uuid/cancel,404,notfound,,Not found +,,422,bulk_transaction_not_cancelable,"Bulk取引は現在のステータスではキャンセルできません",Bulk transaction cannot be canceled in its current status +,,503,temporarily_unavailable,,Service Unavailable +POST,/bulk-transactions/:uuid/resume,404,notfound,,Not found +,,422,bulk_transaction_not_resumable,"Bulk取引は現在のステータスでは再開できません",Bulk transaction cannot be resumed in its current status +,,503,temporarily_unavailable,,Service Unavailable GET,/bills,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -POST,/bills,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +GET,/bills/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,bill_not_found,"支払いQRコードが見つかりません",Bill not found +POST,/bills,400,invalid_parameter_bill_amount_or_range_exceeding_transfer_limit,"支払いQRコードの金額がマネーの取引可能金額の上限を超えています",The input amount is exceeding the private money's limit for transfer +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found -,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_suspended,"アカウントは停止されています",The account is suspended -PATCH,/bills/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +PATCH,/bills/:uuid,400,invalid_parameter_bill_amount_or_range_exceeding_transfer_limit,"支払いQRコードの金額がマネーの取引可能金額の上限を超えています",The input amount is exceeding the private money's limit for transfer +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/checks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,organization_not_found,,Organization not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found @@ -439,6 +627,7 @@ GET,/checks,403,unpermitted_admin_user,"この管理ユーザには権限があ POST,/checks,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameter_only_merchants_can_attach_points_to_check,,Only merchants can attach points to check ,,400,invalid_parameter_combination_usage_limit_and_is_onetime,,'usage_limit' can not be specified if 'is_onetime' is true. +,,400,invalid_parameter_starts_at_after_expires_at,"「starts_at」は「expires_at」より前の日時を指定してください",'starts_at' must be earlier than 'expires_at' ,,400,invalid_parameter_expires_at,,'expires_at' must be in the future ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,400,invalid_parameter_bear_point_account_identification_item_not_unique,"ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます",Request parameters include either bear_point_account or bear_point_shop_id. @@ -456,6 +645,7 @@ PATCH,/checks/:uuid,400,invalid_parameter_combination_usage_limit_and_is_onetime ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,400,invalid_parameter_expires_at,,'expires_at' must be in the future ,,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number +,,400,invalid_parameter_starts_at_after_expires_at,"「starts_at」は「expires_at」より前の日時を指定してください",'starts_at' must be earlier than 'expires_at' ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer @@ -509,28 +699,37 @@ GET,/private-moneys/:uuid/clearings,403,unpermitted_admin_user,"この管理ユ GET,/private-moneys/:uuid/organization-summaries,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, ,,404,,, -POST,/private-moneys,400,invalid_parameters,"項目が無効です",Invalid parameters +POST,/private-moneys,400,credit_card_monthly_cap_less_than_daily_cap,"クレジットカードの1か月間のチャージ額上限は1日あたりチャージ上限額以上である必要があります",Credit card's monthly topup cap is less than its daily cap. +,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, +,,409,itrust_tenant_code_conflict,"テナント識別子はすでに登録されています",The tenant code is already registered ,,409,private_money_conflict,"このマネーは既に登録されています。",The money is already used +,,422,private_money_invalid_fallback_private_money,"指定されたフォールバックマネーは有効ではありません",The specified fallback private money is not valid ,,422,organization_not_found,,Organization not found ,,422,only_one_of_months_and_days_can_be_selected,"月と日のどちらか1つだけを選択できます",Only one of months and days can be selected ,,422,private_money_topup_transaction_limit_exceeded,"一回のチャージ取引の最大チャージ可能額がウォレットの最大マネー残高を越えています",The money amount for the transaction exceeds the maximum balance +,,503,temporarily_unavailable,,Service Unavailable GET,/terminals,403,,, GET,/organizations,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,private_money_not_found,"マネーが見つかりません",Private money not found -POST,/organizations,403,,, +POST,/organizations,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,,, ,,409,organization_conflict,,The organization code is already used +,,409,organization_invoice_registration_number_conflict,"この登録番号は既に登録されています",The invoice registration number is conflict ,,409,shop_name_conflict,,The shop name is already used ,,422,organization_private_money_not_found,,Issuer organization does not have private-money ,,422,unavailable_private_money,,Given private money(s) is/are not available +,,422,organization_application_setting_not_found,"加盟店申込み設定が見つかりません",Organization application setting not found ,,503,failed_to_send_email,,Failed to send an E-mail. +,,503,temporarily_unavailable,,Service Unavailable GET,/organizations/:code,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,organization_not_found,,Organization not found ,,422,organization_not_member_organization,,The specified organization is not a member organization of the organization accessing this API ,,422,organization_third_party_private_money_not_found,,Issuer organization does not have third-party private-money PUT,/organizations/:code,403,,, ,,404,,, +,,409,organization_invoice_registration_number_conflict,"この登録番号は既に登録されています",The invoice registration number is conflict ,,422,organization_not_member_organization,,The specified organization is not a member organization of the organization accessing this API ,,422,organization_third_party_private_money_not_found,,Issuer organization does not have third-party private-money ,,503,temporarily_unavailable,,Service Unavailable @@ -552,12 +751,15 @@ POST,/shops-v2,400,invalid_parameters,"項目が無効です",Invalid parameters ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available ,,422,unavailable_private_money,,Given private money(s) is/are not available ,,422,organization_not_member_organization,,The specified organization is not a member organization of the organization accessing this API +,,503,geocoding_api_key_missing,"住所検索サービスは一時的に利用できません",Geocoding service is temporarily unavailable +,,503,geocoding_api_error,"住所検索 API がエラーを返しました",Geocoding API returned an error +,,503,geocoding_http_error,"住所検索リクエストに失敗しました",Geocoding request failed GET,/shops/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found PATCH,/shops/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,409,shop_name_conflict,,The shop name is already used -,,422,head_office_can_not_be_disabled,,Head office can not be disabled +,,422,head_office_can_not_be_disabled,"本店は無効化できません",Head office can not be disabled ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,unavailable_private_money,,Given private money(s) is/are not available ,,422,organization_not_member_organization,,The specified organization is not a member organization of the organization accessing this API @@ -573,9 +775,225 @@ GET,/customers/:uuid,400,invalid_parameters,"項目が無効です",Invalid para ,,404,notfound,,Not found ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found +GET,/customers/:uuid/cards,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,customer_user_not_found,,The customer user is not found +,,503,temporarily_unavailable,,Service Unavailable +POST,/customers/:uuid/cards,400,invalid_email_domain,"メールアドレスのドメインが間違っています",Invalid domain name error +,,400,invalid_mdk_token,,Invalid MDK token +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,card_not_found,"カードが見つかりません", +,,409,already_registered_veritrans_card,"このカードは既に登録されています", +,,409,already_registered_veritrans_account,"この会員は既に登録されています", +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found +,,422,customer_user_not_found,,The customer user is not found +,,422,dev_env_user_veritrans_membership_deleted,"テスト環境におけるVeritrans4Gのカード情報の定期的な削除によって、ポケペイに登録済みのカード情報を削除しました。お手数ですが、カード情報の登録から再度お試しください",User Veritrans membership on development environment is deleted +,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable +,,422,veritrans_wrong_password_or_cancel,"本人認証に失敗しました。(パスワード間違い、キャンセル、カード会社判定)",Not complete authentication by cardholder. +,,422,unacceptable_card,,Card is not acceptable for some reason +,,422,veritrans_membership_not_registered,"会員登録をしていません", +,,503,failed_to_send_email,,Failed to send an E-mail. +,,503,veritrans_api_error,"カード決済サービスが一時的にご利用になれません。時間を置いて再度お試しください",Credit card service is temporarily unavailable. Please wait a moment and try again +POST,/customers/:uuid/cards/delete,400,invalid_email_domain,"メールアドレスのドメインが間違っています",Invalid domain name error +,,400,invalid_mdk_token,,Invalid MDK token +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,card_not_found,"カードが見つかりません", +,,409,already_registered_veritrans_card,"このカードは既に登録されています", +,,409,already_registered_veritrans_account,"この会員は既に登録されています", +,,422,card_has_active_credit_session,"アクティブなオーソリセッションがあるためカードを削除できません",Cannot delete card with active credit session +,,422,customer_user_not_found,,The customer user is not found +,,422,dev_env_user_veritrans_membership_deleted,"テスト環境におけるVeritrans4Gのカード情報の定期的な削除によって、ポケペイに登録済みのカード情報を削除しました。お手数ですが、カード情報の登録から再度お試しください",User Veritrans membership on development environment is deleted +,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable +,,422,veritrans_wrong_password_or_cancel,"本人認証に失敗しました。(パスワード間違い、キャンセル、カード会社判定)",Not complete authentication by cardholder. +,,422,unacceptable_card,,Card is not acceptable for some reason +,,422,veritrans_membership_not_registered,"会員登録をしていません", +,,503,failed_to_send_email,,Failed to send an E-mail. +,,503,veritrans_api_error,"カード決済サービスが一時的にご利用になれません。時間を置いて再度お試しください",Credit card service is temporarily unavailable. Please wait a moment and try again +,,503,temporarily_unavailable,,Service Unavailable +POST,/customers/:uuid/card-authorize/topup-with-membership,400,invalid_mdk_token,,Invalid MDK token +,,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,403,forbidden,,Forbidden +,,404,card_not_found,"カードが見つかりません", +,,409,transaction_conflict,"別の取引と競合します。もう一度やり直してください",Transaction conflicts with another one. Please try again. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,customer_user_not_found,,The customer user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,dev_env_user_veritrans_membership_deleted,"テスト環境におけるVeritrans4Gのカード情報の定期的な削除によって、ポケペイに登録済みのカード情報を削除しました。お手数ですが、カード情報の登録から再度お試しください",User Veritrans membership on development environment is deleted +,,422,cannot_authenticate_error,"認証に失敗しました",Authentication failed +,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable +,,422,authenticate_failure_unsupported_device,"未対応デバイス(未対応ブラウザ、携帯等)等の理由で認証できません。",Ineligible for 3D-secure service. +,,422,troubled_client_error,"誤った操作を行なった可能性があります", +,,422,veritrans_rfc_invalid_email,"登録されているメールアドレスはカード登録に使用できないフォーマットになっています。メールアドレスの先頭または@の直前に.がある場合や、連続した.が含まれている場合はメールアドレスを変更してください",The registered email address is in a format that cannot be used for card registration +,,422,veritrans_tel_email_missing,"クレジットカードを利用するには、ポケペイに電話番号かEmailのどちらかは登録されている必要があります","In order to use a credit card, either a phone number or email address must be registered to Pokepay" +,,422,veritrans_membership_not_registered,"会員登録をしていません", +,,422,creditcard_disabled_private_money,"このマネーはクレジットカードが使えません",This money can not use credit card +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed +,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled +,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account +,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough +,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money +,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer +,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. +,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. +,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. +,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. +,,422,coupon_not_sent,"このウォレットに対して配信されていないクーポンです。",This coupon is not sent to this account yet. +,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. +,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. +,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,422,account_suspended,"アカウントは停止されています",The account is suspended +,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts +,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed +,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user +,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated +,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid +,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,total_credit_card_topup_amount_over_the_past_month_exceeding_monthly_cap,"過去一か月のクレジットカードでのチャージの合計金額が上限を超えています",Total topup amount using credit card over the past month is exceeding the monthly cap +,,422,total_credit_card_topup_amount_today_exceeding_daily_cap,"一日のクレジットカードでのチャージの合計金額が上限を超えています",Total topup amount using credit card today is exceeding the daily cap +,,503,veritrans_api_error,"カード決済サービスが一時的にご利用になれません。時間を置いて再度お試しください",Credit card service is temporarily unavailable. Please wait a moment and try again +,,503,temporarily_unavailable,,Service Unavailable +POST,/customers/:uuid/card-authorize/topup-with-mdk-token,400,invalid_mdk_token,,Invalid MDK token +,,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,403,forbidden,,Forbidden +,,404,card_not_found,"カードが見つかりません", +,,409,transaction_conflict,"別の取引と競合します。もう一度やり直してください",Transaction conflicts with another one. Please try again. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,customer_user_not_found,,The customer user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,cannot_authenticate_error,"認証に失敗しました",Authentication failed +,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable +,,422,authenticate_failure_unsupported_device,"未対応デバイス(未対応ブラウザ、携帯等)等の理由で認証できません。",Ineligible for 3D-secure service. +,,422,troubled_client_error,"誤った操作を行なった可能性があります", +,,422,veritrans_rfc_invalid_email,"登録されているメールアドレスはカード登録に使用できないフォーマットになっています。メールアドレスの先頭または@の直前に.がある場合や、連続した.が含まれている場合はメールアドレスを変更してください",The registered email address is in a format that cannot be used for card registration +,,422,veritrans_tel_email_missing,"クレジットカードを利用するには、ポケペイに電話番号かEmailのどちらかは登録されている必要があります","In order to use a credit card, either a phone number or email address must be registered to Pokepay" +,,422,veritrans_membership_not_registered,"会員登録をしていません", +,,422,creditcard_disabled_private_money,"このマネーはクレジットカードが使えません",This money can not use credit card +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed +,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled +,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account +,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough +,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money +,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer +,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. +,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. +,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. +,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. +,,422,coupon_not_sent,"このウォレットに対して配信されていないクーポンです。",This coupon is not sent to this account yet. +,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. +,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. +,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,422,account_suspended,"アカウントは停止されています",The account is suspended +,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts +,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed +,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user +,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated +,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid +,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,total_credit_card_topup_amount_over_the_past_month_exceeding_monthly_cap,"過去一か月のクレジットカードでのチャージの合計金額が上限を超えています",Total topup amount using credit card over the past month is exceeding the monthly cap +,,422,total_credit_card_topup_amount_today_exceeding_daily_cap,"一日のクレジットカードでのチャージの合計金額が上限を超えています",Total topup amount using credit card today is exceeding the daily cap +,,503,veritrans_api_error,"カード決済サービスが一時的にご利用になれません。時間を置いて再度お試しください",Credit card service is temporarily unavailable. Please wait a moment and try again +,,503,temporarily_unavailable,,Service Unavailable +POST,/cvs,400,cvs_invalid_request_parameter,"入力データが不正です",Parameter invalid +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,veritrans_merchant_not_found,"veritrans加盟店が見つかりません",veritrans merchant not found +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,customer_user_not_found,,The customer user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed +,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled +,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account +,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough +,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money +,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer +,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. +,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. +,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. +,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. +,,422,coupon_not_sent,"このウォレットに対して配信されていないクーポンです。",This coupon is not sent to this account yet. +,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. +,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. +,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,422,account_suspended,"アカウントは停止されています",The account is suspended +,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts +,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed +,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user +,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated +,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid +,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,cvs_disabled_private_money,"このマネーはコンビニ決済に対応していません",This money cannot be charged from the cvs +,,503,temporarily_unavailable,,Service Unavailable +GET,/cvs,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,veritrans_merchant_not_found,"veritrans加盟店が見つかりません",veritrans merchant not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +GET,/cvs/:order-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,cvs_authorization_not_found,,CVS Authorization not found. +DELETE,/cvs/:order-id,400,cvs_invalid_request_parameter,"入力データが不正です",Parameter invalid +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,cvs_authorization_has_already_been_canceled,"このコンビニ決済はすでにキャンセルされています",This authorization has already been canceled. +,,422,completed_cvs_authorization_cannot_be_canceled,"完了したコンビニ決済はキャンセルできません",Completed authorizations cannot be canceled. +,,422,cvs_authorization_not_found,,CVS Authorization not found. PATCH,/clearings/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,clearing_not_found,"精算が見つかりません",Clearing not found -,,503,temporarily_unavailable,,Service Unavailable +,,422,clearing_invoice_has_pending_offset,"予定相殺が付いている請求です。先に相殺を除外してから精算してください",The invoice has a pending offset; exclude the offset before settling it GET,/clearings,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,503,temporarily_unavailable,,Service Unavailable GET,/clearings/preview,400,clearing_to_should_be_past_date,"締め日は過去の日付を指定してください",Should set past date for 'closing_date' @@ -594,7 +1012,7 @@ POST,/messaging-operations,400,messaging_operation_over_transfer_limit,,The mess ,,400,messaging_operation_is_draft,,The messaging operation is draft ,,400,messaging_attachment_user_not_exist,,The user does not exist ,,403,,, -,,409,messaging_operation_already_done,,The messaging operation is already done +,,409,messaging_operation_already_done,"既に実行済みのため操作できません",The messaging operation is already done ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,503,temporarily_unavailable,,Service Unavailable @@ -608,16 +1026,20 @@ PATCH,/messaging-operations/:uuid,400,messaging_operation_over_transfer_limit,,T ,,400,messaging_attachment_user_not_exist,,The user does not exist ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,,, -,,409,messaging_operation_already_done,,The messaging operation is already done +,,409,messaging_operation_already_done,"既に実行済みのため操作できません",The messaging operation is already done ,,503,temporarily_unavailable,,Service Unavailable DELETE,/messaging-operations/:uuid,403,,, ,,404,,, +,,409,messaging_operation_already_done,"既に実行済みのため操作できません",The messaging operation is already done ,,503,temporarily_unavailable,,Service Unavailable POST,/user-stats,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,invalid_promotional_operation_user,"ユーザーの指定に不正な値が含まれています",Invalid user data is specified ,,422,invalid_promotional_operation_status,"不正な処理ステータスです",Invalid operation status is specified -,,503,user_stats_operation_service_unavailable,"一時的にユーザー統計サービスが利用不能です",User stats service is temporarily unavailable +POST,/user-stats/terminate,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,user_stats_operation_already_done,"指定されたIDの集計処理タスクは既に完了しています",The specified user stats operation is already done +,,422,user_stats_operation_not_found,"指定されたIDの集計処理タスクが見つかりません",User stats task not found for the operation ID +,,503,temporarily_unavailable,,Service Unavailable POST,/device/pokeregis,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, ,,409,hardware_id_conflict,,Hardware id is already registered @@ -683,10 +1105,16 @@ GET,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権 ,,503,temporarily_unavailable,,Service Unavailable PATCH,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,422,account_has_active_credit_session,"アクティブなオーソリセッションがあるためアカウントのステータスを変更できません",Cannot change account status with active credit session ,,503,temporarily_unavailable,,Service Unavailable DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,account_not_pre_closed,"アカウントが退会準備中ではありません",The account is not pre-closed +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -702,8 +1130,14 @@ DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. ,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. ,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. @@ -724,6 +1158,7 @@ GET,/accounts/:uuid/expired-balances,403,unpermitted_admin_user,"この管理ユ ,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/:uuid/transfers/summary,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,503,temporarily_unavailable,,Service Unavailable GET,/users/:uuid/accounts,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,503,temporarily_unavailable,,Service Unavailable @@ -793,8 +1228,10 @@ GET,/coupons/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限 PATCH,/coupons/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,partner_storage_not_found,"指定したIDのデータは保存されていません",Not found by storage_id +,,422,coupon_recipients_cap_not_set,"クーポンに受け取り人数の上限が設定されていません",Recipients cap is not set to the coupon. ,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. ,,422,coupon_image_storage_conflict,"クーポン画像のストレージIDは既に存在します",The coupon image storage_id is already exists +,,422,coupon_reached_recipients_cap,"クーポンの受け取り人数の上限に達しました",The number of recipients of the coupon reached its cap. ,,503,temporarily_unavailable,,Service Unavailable POST,/storage/v1,400,partner_decryption_failed,"リクエスト中の暗号データを復号化することができませんでした。",Could not decrypt the data. ,,400,partner_client_not_found,"partner_clientが見つかりません。",The partner client is not found. @@ -827,8 +1264,12 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,user_device_is_disabled,"このデバイスは無効化されています",The user-device is disabled ,,422,user_device_not_found,,The user-device not found -,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id ,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -838,8 +1279,14 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. ,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. ,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. @@ -849,7 +1296,7 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed -,,422,customer_account_not_found,,The customer account is not found +,,422,customer_account_not_found,"ユーザアカウントが見つかりません",The customer account is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed @@ -858,11 +1305,132 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id ,,422,paytree_disabled_private_money,"このマネーは銀行から引き落とし出来ません",This money cannot be charged from the bank ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available ,,503,temporarily_unavailable,,Service Unavailable ,,503,incomplete_configration_for_organization_bank,"現状、このマネーは銀行からのチャージを行えません。システム管理者へお問合せ下さい","Currently, this money cannot be topup from this bank. Please contact your system administrator." +DELETE,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,403,forbidden,,Forbidden +,,404,user_bank_not_found,"登録された銀行が見つかりません",Bank not found +,,422,user_device_not_found,,The user-device not found POST,/paytree/charge-entry-result,400,partner_decryption_failed,"リクエスト中の暗号データを復号化することができませんでした。",Could not decrypt the data. ,,400,partner_client_not_found,"partner_clientが見つかりません。",The partner client is not found. POST,/paytree/reconcile,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable +POST,/accounts/:uuid/topup-quotas,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +GET,/accounts/:uuid/topup-quotas,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +GET,/accounts/:uuid/topup-quotas/:quota-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +PATCH,/accounts/:uuid/topup-quotas/:quota-id,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +DELETE,/accounts/:uuid/topup-quotas/:quota-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +GET,/topup-quotas,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +POST,/credit-sessions,503,temporarily_unavailable,,Service Unavailable +POST,/credit-sessions/:uuid/transactions,503,temporarily_unavailable,,Service Unavailable +POST,/credit-sessions/:uuid/capture,503,temporarily_unavailable,,Service Unavailable +POST,/internals/transaction-groups,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +GET,/internals/transaction-groups/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found +DELETE,/internals/transaction-groups/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found +,,503,temporarily_unavailable,,Service Unavailable +POST,/internals/transactions,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found +,,409,transaction_already_belongs_to_transaction_group,"取引はすでに別のグループに属しています",Transaction already belongs to another group +,,422,transaction_amount_not_determined,"取引金額が指定されておらず、特定できません",Transaction amount is not specified and cannot be determined +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,transaction_not_found,"取引が見つかりません",Transaction not found +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,503,temporarily_unavailable,,Service Unavailable +POST,/internals/expire-balance,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found +,,409,transaction_already_belongs_to_transaction_group,"取引はすでに別のグループに属しています",Transaction already belongs to another group +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts +,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user +,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated +,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,private_money_closed,"このマネーは解約されています",This money was closed +,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled +,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid +,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account +,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough +,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money +,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer +,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. +,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. +,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. +,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. +,,422,coupon_not_sent,"このウォレットに対して配信されていないクーポンです。",This coupon is not sent to this account yet. +,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. +,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. +,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,422,account_suspended,"アカウントは停止されています",The account is suspended +,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed +,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,transaction_not_found,"取引が見つかりません",Transaction not found +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,503,temporarily_unavailable,,Service Unavailable +GET,/internals/system-user,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,503,temporarily_unavailable,,Service Unavailable +GET,/internals/private-moneys/:uuid/credit-session-settings,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable +GET,/jihanpi-vending-machines,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,organization_not_found,,Organization not found +,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +POST,/jihanpi-vending-machines,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,409,jihanpi_vending_machine_nfc_tag_id_conflict,"同じ自販機NFCタグIDがすでに存在します",Jihanpi vending machine NFC tag ID conflict +,,422,jihanpi_vending_machine_not_found,"自販機情報が見つかりません",Jihanpi vending machine not found +,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found +GET,/jihanpi-vending-machines/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,jihanpi_vending_machine_not_found,"自販機情報が見つかりません",Jihanpi vending machine not found +PATCH,/jihanpi-vending-machines/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,409,jihanpi_vending_machine_nfc_tag_id_conflict,"同じ自販機NFCタグIDがすでに存在します",Jihanpi vending machine NFC tag ID conflict +,,422,jihanpi_vending_machine_not_found,"自販機情報が見つかりません",Jihanpi vending machine not found +,,503,temporarily_unavailable,,Service Unavailable +DELETE,/jihanpi-vending-machines/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,jihanpi_vending_machine_not_found,"自販機情報が見つかりません",Jihanpi vending machine not found +,,503,temporarily_unavailable,,Service Unavailable From e63dd48f988d8afc75ae6bc195f61a6a3779b4e5 Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Mon, 31 Aug 2026 10:52:06 +0000 Subject: [PATCH 3/3] 0.2.8 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 872021fb..7af24ef4 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'partner-java-sdk' -version '0.2.7' +version '0.2.8' sourceCompatibility = 1.8