diff --git a/build.gradle b/build.gradle index 872021f..7af24ef 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 diff --git a/docs/README.md b/docs/README.md index 7896453..82f9acb 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トークンによる取引作成 @@ -89,6 +92,7 @@ APIサーバがエラーレスポンスを返した場合に使われます。 - [GetBulkTransaction](./transaction.md#get-bulk-transaction): バルク取引ジョブの実行状況を取得する - [ListBulkTransactionJobs](./transaction.md#list-bulk-transaction-jobs): バルク取引ジョブの詳細情報一覧を取得する - [RequestUserStats](./transaction.md#request-user-stats): 指定期間内の顧客が行った取引の統計情報をCSVでダウンロードする +- [TerminateUserStats](./transaction.md#terminate-user-stats): RequestUserStatsのタスクを強制終了する ### Transfer - [GetAccountTransferSummary](./transfer.md#get-account-transfer-summary): @@ -105,7 +109,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コードを読み取ることで取引する @@ -126,6 +132,11 @@ APIサーバがエラーレスポンスを返した場合に使われます。 - [GetShopAccounts](./customer.md#get-shop-accounts): 店舗ユーザーのウォレット一覧を表示する - [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 + ### Organization - [ListOrganizations](./organization.md#list-organizations): 加盟店組織の一覧を取得する - [CreateOrganization](./organization.md#create-organization): 新規加盟店組織を追加する @@ -180,6 +191,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 44b41d1..c28701e 100644 --- a/docs/account.md +++ b/docs/account.md @@ -8,21 +8,22 @@ Request request = new ListUserAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // userId: ユーザーID ) - .page(1170) // ページ番号 - .perPage(3512); // 1ページ分の取引数 + .page(8920) // ページ番号 + .perPage(8198); // 1ページ分の取引数 ``` ### Parameters -**`userId`** - - +#### `userId` ユーザーIDです。 指定したユーザーIDのウォレット一覧を取得します。パートナーキーと紐づく組織が発行しているマネーのウォレットのみが表示されます。 +
+スキーマ + ```json { "type": "string", @@ -30,11 +31,14 @@ Request request = new ListUserAccounts( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -42,11 +46,14 @@ Request request = new ListUserAccounts( } ``` -**`perPage`** - +
+#### `perPage` 1ページ当たりのウォレット数です。デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -54,6 +61,8 @@ Request request = new ListUserAccounts( } ``` +
+ 成功したときは @@ -74,8 +83,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("EdtL2ujHbA770c9iXi2Q1VWdznJovLhT0BrHHw3tEdBOJZocfpIFBg2EP1IMpzVlOR0ZjHbJ4pIYeH1mIjK91BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2IgQjODYIDOJbPEulQIvNSkQ") // ウォレット名 + .externalId("ALktsxpQNr6y6a28m0nRuldHpSu") // 外部ID .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); // ウォレットに付加するメタデータ ``` @@ -83,11 +92,12 @@ Request request = new CreateUserAccount( ### Parameters -**`userId`** - - +#### `userId` ユーザーIDです。 +
+スキーマ + ```json { "type": "string", @@ -95,13 +105,16 @@ Request request = new CreateUserAccount( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 作成するウォレットのマネーを指定します。このパラメータは必須です。 +
+スキーマ + ```json { "type": "string", @@ -109,9 +122,12 @@ Request request = new CreateUserAccount( } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -120,9 +136,12 @@ Request request = new CreateUserAccount( } ``` -**`externalId`** - +
+#### `externalId` + +
+スキーマ ```json { @@ -131,15 +150,18 @@ Request request = new CreateUserAccount( } ``` -**`metadata`** - +
+#### `metadata` ウォレットに付加するメタデータをJSON文字列で指定します。 指定できるJSON文字列には以下のような制約があります。 - フラットな構造のJSONを文字列化したものであること。 - keyは最大32文字の文字列(同じkeyを複数指定することはできません) - valueには128文字以下の文字列が指定できます +
+スキーマ + ```json { "type": "string", @@ -147,6 +169,8 @@ Request request = new CreateUserAccount( } ``` +
+ 成功したときは diff --git a/docs/bank_pay.md b/docs/bank_pay.md index 2d27c7f..9ff2a20 100644 --- a/docs/bank_pay.md +++ b/docs/bank_pay.md @@ -2,6 +2,60 @@ 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 +71,10 @@ Request request = new ListBanks( ### Parameters -**`userDeviceId`** - +#### `userDeviceId` +
+スキーマ ```json { @@ -28,9 +83,12 @@ Request request = new ListBanks( } ``` -**`privateMoneyId`** - +
+ +#### `privateMoneyId` +
+スキーマ ```json { @@ -39,6 +97,8 @@ Request request = new ListBanks( } ``` +
+ 成功したときは @@ -65,7 +125,7 @@ Request request = new CreateBank( "", // callbackUrl: コールバックURL "ポケペイタロウ" // kana: ユーザーの氏名 (片仮名で指定) ) - .email("wpVUwFU1am@kd1F.com") // ユーザーのメールアドレス + .email("9qH3Tntlxm@PSv0.com") // ユーザーのメールアドレス .birthdate("19901142"); // 生年月日 ``` @@ -73,9 +133,10 @@ Request request = new CreateBank( ### Parameters -**`userDeviceId`** - +#### `userDeviceId` +
+スキーマ ```json { @@ -84,9 +145,12 @@ Request request = new CreateBank( } ``` -**`privateMoneyId`** - +
+ +#### `privateMoneyId` +
+スキーマ ```json { @@ -95,9 +159,12 @@ Request request = new CreateBank( } ``` -**`callbackUrl`** - +
+#### `callbackUrl` + +
+スキーマ ```json { @@ -106,9 +173,12 @@ Request request = new CreateBank( } ``` -**`kana`** - +
+ +#### `kana` +
+スキーマ ```json { @@ -117,9 +187,12 @@ Request request = new CreateBank( } ``` -**`email`** - +
+#### `email` + +
+スキーマ ```json { @@ -129,9 +202,12 @@ Request request = new CreateBank( } ``` -**`birthdate`** - +
+ +#### `birthdate` +
+スキーマ ```json { @@ -140,6 +216,8 @@ Request request = new CreateBank( } ``` +
+ 成功したときは @@ -159,7 +237,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: チャージ金額 + 3942, // amount: チャージ金額 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // bankId: 銀行ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // requestId: リクエストID ) @@ -170,9 +248,10 @@ Request request = new CreateBankTopupTransaction( ### Parameters -**`userDeviceId`** - +#### `userDeviceId` +
+スキーマ ```json { @@ -181,9 +260,12 @@ Request request = new CreateBankTopupTransaction( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` + +
+スキーマ ```json { @@ -192,9 +274,12 @@ Request request = new CreateBankTopupTransaction( } ``` -**`amount`** - +
+ +#### `amount` +
+スキーマ ```json { @@ -203,9 +288,12 @@ Request request = new CreateBankTopupTransaction( } ``` -**`bankId`** - +
+ +#### `bankId` +
+スキーマ ```json { @@ -214,9 +302,12 @@ Request request = new CreateBankTopupTransaction( } ``` -**`receiverUserId`** - +
+#### `receiverUserId` + +
+スキーマ ```json { @@ -225,9 +316,12 @@ Request request = new CreateBankTopupTransaction( } ``` -**`requestId`** - +
+ +#### `requestId` +
+スキーマ ```json { @@ -236,6 +330,8 @@ Request request = new CreateBankTopupTransaction( } ``` +
+ 成功したときは diff --git a/docs/bill.md b/docs/bill.md index 3aaf5d9..9d1b343 100644 --- a/docs/bill.md +++ b/docs/bill.md @@ -7,18 +7,18 @@ ```JAVA Request request = new ListBills() - .page(2897) // ページ番号 - .perPage(1066) // 1ページの表示数 - .billId("r") // 支払いQRコードのID + .page(9346) // ページ番号 + .perPage(3724) // 1ページの表示数 + .billId("nlZj") // 支払いQRコードのID .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID - .organizationCode("b--BUl96") // 組織コード + .organizationCode("7--n4f-k-X6XR4YArBD8Bne") // 組織コード .description("test bill") // 取引説明文 - .createdFrom("2020-02-16T12:28:09.000000Z") // 作成日時(起点) - .createdTo("2022-11-02T03:28:47.000000Z") // 作成日時(終点) + .createdFrom("2024-10-19T08:15:04.000000Z") // 作成日時(起点) + .createdTo("2023-03-27T02:36:11.000000Z") // 作成日時(終点) .shopName("bill test shop1") // 店舗名 .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID - .lowerLimitAmount(8267) // 金額の範囲によるフィルタ(下限) - .upperLimitAmount(7846) // 金額の範囲によるフィルタ(上限) + .lowerLimitAmount(1760) // 金額の範囲によるフィルタ(下限) + .upperLimitAmount(6383) // 金額の範囲によるフィルタ(上限) .setDisabled(true); // 支払いQRコードが無効化されているかどうか ``` @@ -26,11 +26,12 @@ Request request = new ListBills() ### Parameters -**`page`** - - +#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -38,11 +39,14 @@ Request request = new ListBills() } ``` -**`perPage`** - +
+#### `perPage` 1ページに表示する支払いQRコードの数です。 +
+スキーマ + ```json { "type": "integer", @@ -50,22 +54,28 @@ Request request = new ListBills() } ``` -**`billId`** - +
+#### `billId` 支払いQRコードのIDを指定して検索します。IDは前方一致で検索されます。 +
+スキーマ + ```json { "type": "string" } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` 支払いQRコードの送金元ウォレットのマネーIDでフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -73,11 +83,14 @@ Request request = new ListBills() } ``` -**`organizationCode`** - +
+#### `organizationCode` 支払いQRコードの送金元店舗が所属する組織の組織コードでフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -86,11 +99,14 @@ Request request = new ListBills() } ``` -**`description`** - +
+#### `description` 支払いQRコードを読み取ることで作られた取引の説明文としてアプリなどに表示されます。 +
+スキーマ + ```json { "type": "string", @@ -98,13 +114,16 @@ Request request = new ListBills() } ``` -**`createdFrom`** - +
+#### `createdFrom` 支払いQRコードの作成日時でフィルターします。 これ以降に作成された支払いQRコードのみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -112,13 +131,16 @@ Request request = new ListBills() } ``` -**`createdTo`** - +
+#### `createdTo` 支払いQRコードの作成日時でフィルターします。 これ以前に作成された支払いQRコードのみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -126,11 +148,14 @@ Request request = new ListBills() } ``` -**`shopName`** - +
+#### `shopName` 支払いQRコードを作成した店舗名でフィルターします。店舗名は部分一致で検索されます。 +
+スキーマ + ```json { "type": "string", @@ -138,11 +163,14 @@ Request request = new ListBills() } ``` -**`shopId`** - +
+#### `shopId` 支払いQRコードを作成した店舗IDでフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -150,11 +178,14 @@ Request request = new ListBills() } ``` -**`lowerLimitAmount`** - +
+#### `lowerLimitAmount` 支払いQRコードの金額の下限を指定してフィルターします。 +
+スキーマ + ```json { "type": "integer", @@ -163,11 +194,14 @@ Request request = new ListBills() } ``` -**`upperLimitAmount`** - +
+#### `upperLimitAmount` 支払いQRコードの金額の上限を指定してフィルターします。 +
+スキーマ + ```json { "type": "integer", @@ -176,17 +210,22 @@ Request request = new ListBills() } ``` -**`setDisabled`** - +
+#### `setDisabled` 支払いQRコードが無効化されているかどうかを表します。デフォルト値は偽(有効)です。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -212,7 +251,7 @@ Request request = new CreateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: 支払いマネーのマネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // shopId: 支払い先(受け取り人)の店舗ID ) - .amount(7728.0) // 支払い額 + .amount(7217.0) // 支払い額 .description("test bill"); // 説明文(アプリ上で取引の説明文として表示される) ``` @@ -220,10 +259,13 @@ Request request = new CreateBill( ### Parameters -**`amount`** - - +#### `amount` 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 +また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 + + +
+スキーマ ```json { @@ -233,9 +275,12 @@ Request request = new CreateBill( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` + +
+スキーマ ```json { @@ -244,9 +289,12 @@ Request request = new CreateBill( } ``` -**`shopId`** - +
+ +#### `shopId` +
+スキーマ ```json { @@ -255,9 +303,12 @@ Request request = new CreateBill( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -266,6 +317,8 @@ Request request = new CreateBill( } ``` +
+ 成功したときは @@ -275,6 +328,7 @@ Request request = new CreateBill( ### 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_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -285,6 +339,46 @@ Request request = new CreateBill( +--- + + + +## 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" +} +``` + +
+ + + +成功したときは +[Bill](./responses.md#bill) +を返します + + + --- @@ -296,20 +390,21 @@ Request request = new CreateBill( Request request = new UpdateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // billId: 支払いQRコードのID ) - .amount(4321.0) // 支払い額 + .amount(2059.0) // 支払い額 .description("test bill") // 説明文 - .setDisabled(false); // 無効化されているかどうか + .setDisabled(true); // 無効化されているかどうか ``` ### Parameters -**`billId`** - - +#### `billId` 更新対象の支払いQRコードのIDです。 +
+スキーマ + ```json { "type": "string", @@ -317,10 +412,13 @@ Request request = new UpdateBill( } ``` -**`amount`** - +
-支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 +#### `amount` +支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 + +
+スキーマ ```json { @@ -330,11 +428,14 @@ Request request = new UpdateBill( } ``` -**`description`** - +
+#### `description` 支払いQRコードの詳細説明文です。アプリ上で取引の説明文として表示されます。 +
+スキーマ + ```json { "type": "string", @@ -342,17 +443,22 @@ Request request = new UpdateBill( } ``` -**`setDisabled`** - +
+#### `setDisabled` 支払いQRコードが無効化されているかどうかを指定します。真にすると無効化され、偽にすると有効化します。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -364,4 +470,182 @@ Request request = new UpdateBill( --- + +## 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" + ] +} +``` + +
+ + + +成功したときは +[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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|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 2659b64..8e7f069 100644 --- a/docs/bulk.md +++ b/docs/bulk.md @@ -6,23 +6,25 @@ CSVファイルから一括取引をします。 ```JAVA Request request = new BulkCreateTransaction( - "oMxEFE11voG9m7g", // name: 一括取引タスク名 - "WI", // content: 取引する情報のCSV - "lidcsFhnnSlOPQSKVW980GqQVfPuvUPiEFV6" // requestId: リクエストID + "Pie9q", // name: 一括取引タスク名 + "2G", // content: 取引する情報のCSV + "FfC0at9jn8DwInc5YWbNc2E2NkkIcBn5byBG" // requestId: リクエストID ) - .description("DyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1Cipp2C") // 一括取引の説明 - .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // マネーID + .description("xSlhAbqrppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEli1NcEVyTrbdyJqmh3WR") // 一括取引の説明 + .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID + .callbackUrl("https://fGT9d54N.example.com"); // コールバックURL ``` ### Parameters -**`name`** - - +#### `name` 一括取引タスクの管理用の名前です。 +
+スキーマ + ```json { "type": "string", @@ -30,11 +32,14 @@ Request request = new BulkCreateTransaction( } ``` -**`description`** - +
+#### `description` 一括取引タスクの管理用の説明文です。 +
+スキーマ + ```json { "type": "string", @@ -42,9 +47,9 @@ Request request = new BulkCreateTransaction( } ``` -**`content`** - +
+#### `content` 一括取引する情報を書いたCSVの文字列です。 1行目はヘッダ行で、2行目以降の各行にカンマ区切りの取引データを含みます。 カラムは以下の7つです。任意のカラムには空文字を指定します。 @@ -68,17 +73,23 @@ Request request = new BulkCreateTransaction( - `point_expires_at`: ポイントの有効期限 - 任意。指定がないときはマネーに設定された有効期限を適用 +
+スキーマ + ```json { "type": "string" } ``` -**`requestId`** - +
+#### `requestId` 重複したリクエストを判断するためのユニークID。ランダムな36字の文字列を生成して渡してください。 +
+スキーマ + ```json { "type": "string", @@ -87,11 +98,14 @@ Request request = new BulkCreateTransaction( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -99,6 +113,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,6 +162,7 @@ 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| diff --git a/docs/campaign.md b/docs/campaign.md index 5e88243..07b64c6 100644 --- a/docs/campaign.md +++ b/docs/campaign.md @@ -11,8 +11,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("2020-02-06T06:57:45.000000Z") // 指定された日時以降に適用可能期間が含まれているか + .availableTo("2022-04-12T17:10:58.000000Z") // 指定された日時以前に適用可能期間が含まれているか .page(1) // ページ番号 .perPage(20); // 1ページ分の取得数 @@ -21,13 +21,14 @@ Request request = new ListCampaigns( ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -35,25 +36,31 @@ Request request = new ListCampaigns( } ``` -**`setOngoing`** - +
+#### `setOngoing` 有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 デフォルトでは未指定(フィルターなし)です。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`availableFrom`** - +
+#### `availableFrom` キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。 デフォルトでは未指定(フィルターなし)です。 +
+スキーマ + ```json { "type": "string", @@ -61,12 +68,15 @@ Request request = new ListCampaigns( } ``` -**`availableTo`** - +
+#### `availableTo` キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。 デフォルトでは未指定(フィルターなし)です。 +
+スキーマ + ```json { "type": "string", @@ -74,11 +84,14 @@ Request request = new ListCampaigns( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -86,11 +99,14 @@ Request request = new ListCampaigns( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取得数です。デフォルトでは 20 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -99,6 +115,8 @@ Request request = new ListCampaigns( } ``` +
+ 成功したときは @@ -144,20 +162,11 @@ 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"); -JsonObject items8 = new JsonObject(); -items8.addProperty("from", "12:00"); -items8.addProperty("to", "23:59"); +items6.addProperty("from", "12:00"); +items6.addProperty("to", "23:59"); JsonObject applicable_account_metadata = new JsonObject(); applicable_account_metadata.addProperty("key", "sex"); applicable_account_metadata.addProperty("value", "male"); @@ -165,50 +174,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: キャンペーン名 + "bZax1gbEqwtEhHNUjZJEl7H6aHeFVmJSAKrLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5BuCe0yTSEIanUYTV2eUYLa0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf7GbuKVOo81owGN6i0XTT33lqYdKQ0h3ghVZk7eOE9tcwx8MOK", // name: キャンペーン名 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - "2020-05-27T16:30:33.000000Z", // startsAt: キャンペーン開始日時 - "2022-03-29T07:15:33.000000Z", // endsAt: キャンペーン終了日時 - 4491, // priority: キャンペーンの適用優先度 - "external-transaction" // event: イベント種別 + "2025-09-26T13:02:36.000000Z", // startsAt: キャンペーン開始日時 + "2022-05-23T22:39:23.000000Z", // endsAt: キャンペーン終了日時 + 271, // priority: キャンペーンの適用優先度 + "payment" // event: イベント種別 ) .bearPointShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント負担先店舗ID - .description("7kqGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOfsuO") // キャンペーンの説明文 - .status("disabled") // キャンペーン作成時の状態 - .pointExpiresAt("2023-06-21T16:01:16.000000Z") // ポイント有効期限(絶対日時指定) - .pointExpiresInDays(5365) // ポイント有効期限(相対日数指定) - .setExclusive(false) // キャンペーンの重複設定 - .subject("all") // ポイント付与の対象金額の種別 + .description("5MRsa1MFEYPO") // キャンペーンの説明文 + .status("enabled") // キャンペーン作成時の状態 + .pointExpiresAt("2021-12-05T06:21:53.000000Z") // ポイント有効期限(絶対日時指定) + .pointExpiresInDays(2903) // ポイント有効期限(相対日数指定) + .setExclusive(true) // キャンペーンの重複設定 + .subject("money") // ポイント付与の対象金額の種別 .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}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト + .applicableDaysOfWeek(new Integer[]{5}) // キャンペーンを適用する曜日 (複数指定) + .applicableTimeRanges(new Object[]{items6}) // キャンペーンを適用する時間帯 (複数指定) + .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(4268) // キャンペーンを適用する1会計内の商品個数の下限 + .minimumNumberOfAmount(7091) // キャンペーンを適用する1会計内の商品総額の下限 + .minimumNumberForCombinationPurchase(5360) // 複数種類の商品を同時購入するときの商品種別数の下限 + .existInEachProductGroups(true) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + .maxPointAmount(9118) // キャンペーンによって付与されるポイントの上限 + .maxTotalPointAmount(6171) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 .destPrivateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント付与先となるマネーID .applicableAccountMetadata(applicable_account_metadata) // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 .applicableTransactionMetadata(applicable_transaction_metadata) // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - .budgetCapsAmount(1859163538); // キャンペーン予算上限 + .budgetCapsAmount(350761972); // キャンペーン予算上限 ``` ### Parameters -**`name`** - - +#### `name` キャンペーン名です(必須項目)。 ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 +
+スキーマ + ```json { "type": "string", @@ -216,11 +226,14 @@ Request request = new CreateCampaign( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` キャンペーン対象のマネーのIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -228,13 +241,16 @@ Request request = new CreateCampaign( } ``` -**`startsAt`** - +
+#### `startsAt` キャンペーン開始日時です(必須項目)。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -242,13 +258,16 @@ Request request = new CreateCampaign( } ``` -**`endsAt`** - +
+#### `endsAt` キャンペーン終了日時です(必須項目)。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -256,23 +275,26 @@ Request request = new CreateCampaign( } ``` -**`priority`** - +
+#### `priority` キャンペーンの適用優先度です。 優先度が大きいものから順に適用判定されていきます。 キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 +
+スキーマ + ```json { "type": "integer" } ``` -**`event`** - +
+#### `event` キャンペーンのトリガーとなるイベントの種類を指定します(必須項目)。 以下のいずれかを指定できます。 @@ -284,6 +306,9 @@ Request request = new CreateCampaign( 3. external-transaction ポケペイ外の取引(現金決済など) +
+スキーマ + ```json { "type": "string", @@ -295,12 +320,15 @@ Request request = new CreateCampaign( } ``` -**`bearPointShopId`** - +
+#### `bearPointShopId` ポイントを負担する店舗のIDです。デフォルトではマネー発行体の本店が設定されます。 ポイント負担先店舗は後から更新することはできません。 +
+スキーマ + ```json { "type": "string", @@ -308,11 +336,14 @@ Request request = new CreateCampaign( } ``` -**`description`** - +
+#### `description` キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 +
+スキーマ + ```json { "type": "string", @@ -320,9 +351,9 @@ Request request = new CreateCampaign( } ``` -**`status`** - +
+#### `status` キャンペーン作成時の状態を指定します。デフォルトではenabledです。 以下のいずれかを指定できます。 @@ -332,6 +363,9 @@ Request request = new CreateCampaign( 2. disabled 無効 +
+スキーマ + ```json { "type": "string", @@ -342,12 +376,15 @@ Request request = new CreateCampaign( } ``` -**`pointExpiresAt`** - +
+#### `pointExpiresAt` キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -355,12 +392,15 @@ Request request = new CreateCampaign( } ``` -**`pointExpiresInDays`** - +
+#### `pointExpiresInDays` キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "integer", @@ -368,23 +408,26 @@ Request request = new CreateCampaign( } ``` -**`setExclusive`** - +
+#### `setExclusive` キャンペーンの重ね掛けを行うかどうかのフラグです。 これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。 falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`subject`** - +
+#### `subject` ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。 @@ -397,6 +440,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) 注意: event を topup にしたときはポイントの付与に対しても適用されます +
+スキーマ + ```json { "type": "string", @@ -407,9 +453,9 @@ all を指定すると決済額全体を対象にします (「ポイント」 } ``` -**`amountBasedPointRules`** - +
+#### `amountBasedPointRules` 金額をベースとしてポイント付与を行うルールを指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 @@ -433,6 +479,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し ] ``` +
+スキーマ + ```json { "type": "array", @@ -442,9 +491,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し } ``` -**`productBasedPointRules`** - +
+#### `productBasedPointRules` 商品情報をベースとしてポイント付与を行うルールを指定します。 ルールは商品ごとに設定可能で、ルールの配列として指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 @@ -491,6 +540,9 @@ event が payment か external-transaction の時のみ有効です。 ] ``` +
+スキーマ + ```json { "type": "array", @@ -500,13 +552,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`blacklistedProductRules`** - +
+#### `blacklistedProductRules` 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 除外対象の商品コード、または分類コードのパターンの配列として指定します。 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 +
+スキーマ + ```json { "type": "array", @@ -516,13 +571,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicableDaysOfWeek`** - +
+#### `applicableDaysOfWeek` キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) +
+スキーマ + ```json { "type": "array", @@ -534,13 +592,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicableTimeRanges`** - +
+#### `applicableTimeRanges` キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 +
+スキーマ + ```json { "type": "array", @@ -550,12 +611,15 @@ fromとtoは両方必要です。 } ``` -**`applicableShopIds`** - +
+#### `applicableShopIds` キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 +
+スキーマ + ```json { "type": "array", @@ -566,13 +630,16 @@ fromとtoは両方必要です。 } ``` -**`blacklistedShopIds`** - +
+#### `blacklistedShopIds` キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 +
+スキーマ + ```json { "type": "array", @@ -583,11 +650,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimumNumberOfProducts`** - +
+#### `minimumNumberOfProducts` このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -595,11 +665,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimumNumberOfAmount`** - +
+#### `minimumNumberOfAmount` このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -607,9 +680,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimumNumberForCombinationPurchase`** - +
+#### `minimumNumberForCombinationPurchase` 複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。デフォルトでは未指定で、指定する場合は1以上の整数を指定します。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 @@ -682,6 +755,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` +
+スキーマ + ```json { "type": "integer", @@ -689,9 +765,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`existInEachProductGroups`** - +
+#### `existInEachProductGroups` 複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 @@ -772,19 +848,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 +874,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`maxTotalPointAmount`** - +
+#### `maxTotalPointAmount` キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 +
+スキーマ + ```json { "type": "integer", @@ -807,9 +892,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`destPrivateMoneyId`** - +
+#### `destPrivateMoneyId` キャンペーンを駆動するイベントのマネーとは「別のマネー」に対してポイントを付けたいときに、そのマネーIDを指定します。 ポイント付与先のマネーはキャンペーンを駆動するイベントのマネーと同一発行体が発行しているものに限ります。その他のマネーIDが指定された場合は private_money_not_found (422) が返ります。 @@ -820,6 +905,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 別マネーに対するポイント付与は別のtransactionとなります。 RefundTransaction で元のイベントをキャンセルしたときはポイント付与のtransactionもキャンセルされ、逆にポイント付与のtransactionをキャンセルしたときは連動して元のイベントがキャンセルされます。 +
+スキーマ + ```json { "type": "string", @@ -827,9 +915,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`applicableAccountMetadata`** - +
+#### `applicableAccountMetadata` ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 @@ -856,15 +944,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`applicableTransactionMetadata`** - +
+#### `applicableTransactionMetadata` 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 @@ -891,20 +982,26 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`budgetCapsAmount`** - +
+#### `budgetCapsAmount` キャンペーンの予算上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 +
+スキーマ + ```json { "type": "integer", @@ -913,6 +1010,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+ 成功したときは @@ -952,13 +1051,14 @@ Request request = new GetCampaign( ### Parameters -**`campaignId`** - - +#### `campaignId` キャンペーンIDです。 指定したIDのキャンペーンを取得します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -966,6 +1066,8 @@ Request request = new GetCampaign( } ``` +
+ 成功したときは @@ -1001,17 +1103,14 @@ items3.addProperty("product_code", "4912345678904"); 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("is_multiply_by_count", true); -items4.addProperty("required_count", 2); +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("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"); @@ -1027,46 +1126,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) // キャンペーンの適用優先度 + .name("UtXGZ9lfp9TwgYPOmismihXWyqdhqoMR6oAdT5yPsPRTmUYdZdYDDGZDuZn0XgqQIqTu14tSh13qLZDYdRTWbMgZiB4q5yXIKvcyeytZU") // キャンペーン名 + .startsAt("2021-08-29T14:34:13.000000Z") // キャンペーン開始日時 + .endsAt("2023-11-08T14:35:47.000000Z") // キャンペーン終了日時 + .priority(7348) // キャンペーンの適用優先度 .event("payment") // イベント種別 - .description("98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcINC0MaOVTzOYUS4YiFzadS1dG4VhCAXdvL") // キャンペーンの説明文 + .description("e7CQ6mogsi4OQ6jQwMdVQzET3CTZR3naadmHoO937wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5QfKEnNvZa51B6RuNHWw3kkEIImb7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6FlBm7k1iTzlm9ILQGKVJoUCSY3") // キャンペーンの説明文 .status("disabled") // キャンペーン作成時の状態 - .pointExpiresAt("2023-11-21T12:04:13.000000Z") // ポイント有効期限(絶対日時指定) - .pointExpiresInDays(740) // ポイント有効期限(相対日数指定) - .setExclusive(true) // キャンペーンの重複設定 - .subject("all") // ポイント付与の対象金額の種別 + .pointExpiresAt("2025-11-22T09:22:43.000000Z") // ポイント有効期限(絶対日時指定) + .pointExpiresInDays(357) // ポイント有効期限(相対日数指定) + .setExclusive(false) // キャンペーンの重複設定 + .subject("money") // ポイント付与の対象金額の種別 .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) // 複数種類の商品を同時購入するときの商品種別数の下限 + .productBasedPointRules(new Object[]{items2,items3}) // 商品情報ベースのポイント付与ルール + .blacklistedProductRules(new Object[]{items4,items5,items6}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト + .applicableDaysOfWeek(new Integer[]{1,6,6}) // キャンペーンを適用する曜日 (複数指定) + .applicableTimeRanges(new Object[]{items7,items8}) // キャンペーンを適用する時間帯 (複数指定) + .applicableShopIds(new String[]{"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(8006) // キャンペーンを適用する1会計内の商品個数の下限 + .minimumNumberOfAmount(5193) // キャンペーンを適用する1会計内の商品総額の下限 + .minimumNumberForCombinationPurchase(1993) // 複数種類の商品を同時購入するときの商品種別数の下限 .existInEachProductGroups(false) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - .maxPointAmount(5449) // キャンペーンによって付与されるポイントの上限 - .maxTotalPointAmount(1307) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + .maxPointAmount(1301) // キャンペーンによって付与されるポイントの上限 + .maxTotalPointAmount(5987) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 .applicableAccountMetadata(applicable_account_metadata) // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 .applicableTransactionMetadata(applicable_transaction_metadata) // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - .budgetCapsAmount(456514657); // キャンペーン予算上限 + .budgetCapsAmount(1011748593); // キャンペーン予算上限 ``` ### Parameters -**`campaignId`** - - +#### `campaignId` キャンペーンIDです。 指定したIDのキャンペーンを更新します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -1074,13 +1174,16 @@ Request request = new UpdateCampaign( } ``` -**`name`** - +
+#### `name` キャンペーン名です。 ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 +
+スキーマ + ```json { "type": "string", @@ -1088,13 +1191,16 @@ Request request = new UpdateCampaign( } ``` -**`startsAt`** - +
+#### `startsAt` キャンペーン開始日時です。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -1102,13 +1208,16 @@ Request request = new UpdateCampaign( } ``` -**`endsAt`** - +
+#### `endsAt` キャンペーン終了日時です。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -1116,23 +1225,26 @@ Request request = new UpdateCampaign( } ``` -**`priority`** - +
+#### `priority` キャンペーンの適用優先度です。 優先度が大きいものから順に適用判定されていきます。 キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 +
+スキーマ + ```json { "type": "integer" } ``` -**`event`** - +
+#### `event` キャンペーンのトリガーとなるイベントの種類を指定します。 以下のいずれかを指定できます。 @@ -1144,6 +1256,9 @@ Request request = new UpdateCampaign( 3. external-transaction ポケペイ外の取引(現金決済など) +
+スキーマ + ```json { "type": "string", @@ -1155,11 +1270,14 @@ Request request = new UpdateCampaign( } ``` -**`description`** - +
+#### `description` キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 +
+スキーマ + ```json { "type": "string", @@ -1167,9 +1285,9 @@ Request request = new UpdateCampaign( } ``` -**`status`** - +
+#### `status` キャンペーン作成時の状態を指定します。デフォルトではenabledです。 以下のいずれかを指定できます。 @@ -1179,6 +1297,9 @@ Request request = new UpdateCampaign( 2. disabled 無効 +
+スキーマ + ```json { "type": "string", @@ -1189,12 +1310,15 @@ Request request = new UpdateCampaign( } ``` -**`pointExpiresAt`** - +
+#### `pointExpiresAt` キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -1202,12 +1326,15 @@ Request request = new UpdateCampaign( } ``` -**`pointExpiresInDays`** - +
+#### `pointExpiresInDays` キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "integer", @@ -1215,23 +1342,26 @@ Request request = new UpdateCampaign( } ``` -**`setExclusive`** - +
+#### `setExclusive` キャンペーンの重ね掛けを行うかどうかのフラグです。 これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。 falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`subject`** - +
+#### `subject` ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。 @@ -1244,6 +1374,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) 注意: event を topup にしたときはポイントの付与に対しても適用されます +
+スキーマ + ```json { "type": "string", @@ -1254,9 +1387,9 @@ all を指定すると決済額全体を対象にします (「ポイント」 } ``` -**`amountBasedPointRules`** - +
+#### `amountBasedPointRules` 金額をベースとしてポイント付与を行うルールを指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 @@ -1280,6 +1413,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し ] ``` +
+スキーマ + ```json { "type": "array", @@ -1289,9 +1425,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し } ``` -**`productBasedPointRules`** - +
+#### `productBasedPointRules` 商品情報をベースとしてポイント付与を行うルールを指定します。 ルールは商品ごとに設定可能で、ルールの配列として指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 @@ -1338,6 +1474,9 @@ event が payment か external-transaction の時のみ有効です。 ] ``` +
+スキーマ + ```json { "type": "array", @@ -1347,13 +1486,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`blacklistedProductRules`** - +
+#### `blacklistedProductRules` 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 除外対象の商品コード、または分類コードのパターンの配列として指定します。 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 +
+スキーマ + ```json { "type": "array", @@ -1363,13 +1505,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicableDaysOfWeek`** - +
+#### `applicableDaysOfWeek` キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) +
+スキーマ + ```json { "type": "array", @@ -1381,13 +1526,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicableTimeRanges`** - +
+#### `applicableTimeRanges` キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 +
+スキーマ + ```json { "type": "array", @@ -1397,12 +1545,15 @@ fromとtoは両方必要です。 } ``` -**`applicableShopIds`** - +
+#### `applicableShopIds` キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 +
+スキーマ + ```json { "type": "array", @@ -1413,13 +1564,16 @@ fromとtoは両方必要です。 } ``` -**`blacklistedShopIds`** - +
+#### `blacklistedShopIds` キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 +
+スキーマ + ```json { "type": "array", @@ -1430,11 +1584,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimumNumberOfProducts`** - +
+#### `minimumNumberOfProducts` このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -1442,11 +1599,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimumNumberOfAmount`** - +
+#### `minimumNumberOfAmount` このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -1454,9 +1614,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimumNumberForCombinationPurchase`** - +
+#### `minimumNumberForCombinationPurchase` 複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 @@ -1529,6 +1689,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` +
+スキーマ + ```json { "type": "integer", @@ -1536,9 +1699,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`existInEachProductGroups`** - +
+#### `existInEachProductGroups` 複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 @@ -1619,19 +1782,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 +1808,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`maxTotalPointAmount`** - +
+#### `maxTotalPointAmount` キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 +
+スキーマ + ```json { "type": "integer", @@ -1654,9 +1826,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`applicableAccountMetadata`** - +
+#### `applicableAccountMetadata` ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 @@ -1683,15 +1855,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`applicableTransactionMetadata`** - +
+#### `applicableTransactionMetadata` 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 @@ -1718,15 +1893,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`budgetCapsAmount`** - +
+#### `budgetCapsAmount` キャンペーンの予算上限を指定します。 キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 @@ -1734,6 +1912,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。 キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。 +
+スキーマ + ```json { "type": "integer", @@ -1742,6 +1923,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+ 成功したときは diff --git a/docs/cashtray.md b/docs/cashtray.md index ed49087..b901786 100644 --- a/docs/cashtray.md +++ b/docs/cashtray.md @@ -1,5 +1,6 @@ # Cashtray Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。 +店舗ユーザはCashtrayの状態を監視することができ、取引の成否やエラー事由を知ることができます。 Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。 Cashtrayはワンタイムで、一度読み取りに成功するか、取引エラーになると失効します。 また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 @@ -26,13 +27,14 @@ Request request = new CreateTransactionWithCashtray( ### Parameters -**`cashtrayId`** - - +#### `cashtrayId` Cashtray用QRコードのIDです。 QRコード生成時に送金元店舗のウォレット情報や、金額などが登録されています。 +
+スキーマ + ```json { "type": "string", @@ -40,11 +42,14 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 +
+スキーマ + ```json { "type": "string", @@ -52,9 +57,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など } ``` -**`strategy`** - +
+#### `strategy` 支払い時に残高がどのように消費されるかを指定します。 チャージの場合は無効です。 デフォルトでは point-preferred (ポイント優先)が採用されます。 @@ -64,6 +69,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 +
+スキーマ + ```json { "type": "string", @@ -74,9 +82,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。 @@ -86,6 +94,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -93,6 +104,8 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など } ``` +
+ 成功したときは @@ -105,7 +118,10 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|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.| @@ -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| @@ -160,21 +183,22 @@ Cashtrayを作成します。 Request request = new CreateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ユーザーID - 4669.0 // amount: 金額 + 6437.0 // amount: 金額 ) .description("たい焼き(小倉)") // 取引履歴に表示する説明文 - .expiresIn(7102); // 失効時間(秒) + .expiresIn(2787); // 失効時間(秒) ``` ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` 取引対象のマネーのIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -182,11 +206,14 @@ Request request = new CreateCashtray( } ``` -**`shopId`** - +
+#### `shopId` 店舗のユーザーIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -194,24 +221,30 @@ Request request = new CreateCashtray( } ``` -**`amount`** - +
+#### `amount` マネー額です(必須項目)。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。 アプリや管理画面などの取引履歴に表示されます。デフォルトでは空文字になります。 +
+スキーマ + ```json { "type": "string", @@ -219,11 +252,14 @@ Cashtrayを読み取ったときに作られる取引の説明文です(最大20 } ``` -**`expiresIn`** - +
+#### `expiresIn` Cashtrayが失効するまでの時間を秒単位で指定します(任意項目、デフォルト値は1800秒(30分))。 +
+スキーマ + ```json { "type": "integer", @@ -231,6 +267,8 @@ Cashtrayが失効するまでの時間を秒単位で指定します(任意項 } ``` +
+ 成功したときは @@ -266,11 +304,12 @@ Request request = new CancelCashtray( ### Parameters -**`cashtrayId`** - - +#### `cashtrayId` 無効化するCashtrayのIDです。 +
+スキーマ + ```json { "type": "string", @@ -278,6 +317,8 @@ Request request = new CancelCashtray( } ``` +
+ 成功したときは @@ -360,11 +401,12 @@ Request request = new GetCashtray( ### Parameters -**`cashtrayId`** - - +#### `cashtrayId` 情報を取得するCashtrayのIDです。 +
+スキーマ + ```json { "type": "string", @@ -372,6 +414,8 @@ Request request = new GetCashtray( } ``` +
+ 成功したときは @@ -391,20 +435,21 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可 Request request = new UpdateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // cashtrayId: CashtrayのID ) - .amount(2045.0) // 金額 + .amount(1670.0) // 金額 .description("たい焼き(小倉)") // 取引履歴に表示する説明文 - .expiresIn(624); // 失効時間(秒) + .expiresIn(5221); // 失効時間(秒) ``` ### Parameters -**`cashtrayId`** - - +#### `cashtrayId` 更新対象のCashtrayのIDです。 +
+スキーマ + ```json { "type": "string", @@ -412,24 +457,30 @@ Request request = new UpdateCashtray( } ``` -**`amount`** - +
+#### `amount` マネー額です(任意項目)。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。 アプリや管理画面などの取引履歴に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -437,11 +488,14 @@ Cashtrayを読み取ったときに作られる取引の説明文です(最大20 } ``` -**`expiresIn`** - +
+#### `expiresIn` Cashtrayが失効するまでの時間を秒で指定します(任意項目、デフォルト値は1800秒(30分))。 +
+スキーマ + ```json { "type": "integer", @@ -449,6 +503,8 @@ Cashtrayが失効するまでの時間を秒で指定します(任意項目、 } ``` +
+ 成功したときは diff --git a/docs/check.md b/docs/check.md index b643ab3..e91babf 100644 --- a/docs/check.md +++ b/docs/check.md @@ -5,7 +5,8 @@ `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です。 @@ -13,17 +14,17 @@ QRコードを読み取る方法以外にも、このURLリンクを直接スマ ```JAVA Request request = new ListChecks() - .page(3549) // ページ番号 + .page(6579) // ページ番号 .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("2bsCqxQkk2AG5TT") // 組織コード + .expiresFrom("2024-12-28T06:38:41.000000Z") // 有効期限の期間によるフィルター(開始時点) + .expiresTo("2020-07-25T00:12:13.000000Z") // 有効期限の期間によるフィルター(終了時点) + .createdFrom("2023-09-08T09:14:00.000000Z") // 作成日時の期間によるフィルター(開始時点) + .createdTo("2020-01-10T14:58:11.000000Z") // 作成日時の期間によるフィルター(終了時点) .issuerShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 発行店舗ID - .description("CjOUSN") // チャージQRコードの説明文 - .setOnetime(false) // ワンタイムのチャージQRコードかどうか + .description("IlCZ5t") // チャージQRコードの説明文 + .setOnetime(true) // ワンタイムのチャージQRコードかどうか .setDisabled(false); // 無効化されたチャージQRコードかどうか ``` @@ -31,9 +32,10 @@ Request request = new ListChecks() ### Parameters -**`page`** - +#### `page` +
+スキーマ ```json { @@ -42,11 +44,14 @@ Request request = new ListChecks() } ``` -**`perPage`** - +
+#### `perPage` 1ページ当たり表示数です。デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -54,12 +59,15 @@ Request request = new ListChecks() } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -67,12 +75,15 @@ Request request = new ListChecks() } ``` -**`organizationCode`** - +
+#### `organizationCode` チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -80,13 +91,16 @@ Request request = new ListChecks() } ``` -**`expiresFrom`** - +
+#### `expiresFrom` 有効期限の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -94,13 +108,16 @@ Request request = new ListChecks() } ``` -**`expiresTo`** - +
+#### `expiresTo` 有効期限の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -108,13 +125,16 @@ Request request = new ListChecks() } ``` -**`createdFrom`** - +
+#### `createdFrom` 作成日時の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -122,13 +142,16 @@ Request request = new ListChecks() } ``` -**`createdTo`** - +
+#### `createdTo` 作成日時の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -136,13 +159,16 @@ Request request = new ListChecks() } ``` -**`issuerShopId`** - +
+#### `issuerShopId` チャージQRコードを発行した店舗IDによってフィルターします。 デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -150,50 +176,61 @@ Request request = new ListChecks() } ``` -**`description`** - +
+#### `description` チャージQRコードの説明文(description)によってフィルターします。 部分一致(前方一致)したものを表示します。 デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string" } ``` -**`setOnetime`** - +
+#### `setOnetime` チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 `true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 未指定の場合はフィルターしません。 デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`setDisabled`** - +
+#### `setDisabled` チャージQRコードが無効化されているかどうかでフィルターします。 `true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 未指定の場合はフィルターしません。 デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -220,13 +257,13 @@ Request request = new ListChecks() Request request = new CreateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: 送金元の店舗アカウントID ) - .moneyAmount(5709.0) // 付与マネー額 - .pointAmount(9032.0) // 付与ポイント額 + .moneyAmount(3667.0) // 付与マネー額 + .pointAmount(9693.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(1025) // ワンタイムでない場合の最大読み取り回数 + .expiresAt("2020-09-19T18:31:43.000000Z") // チャージQRコード自体の失効日時 + .pointExpiresAt("2023-07-25T04:32:22.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 .pointExpiresInDays(60) // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) .bearPointAccount("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ポイント額を負担する店舗のウォレットID @@ -238,13 +275,14 @@ Request request = new CreateCheck( ### Parameters -**`moneyAmount`** - - +#### `moneyAmount` チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 +
+スキーマ + ```json { "type": "number", @@ -253,13 +291,16 @@ Request request = new CreateCheck( } ``` -**`pointAmount`** - +
+#### `pointAmount` チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 +
+スキーマ + ```json { "type": "number", @@ -268,9 +309,12 @@ Request request = new CreateCheck( } ``` -**`accountId`** - +
+#### `accountId` + +
+スキーマ ```json { @@ -279,9 +323,12 @@ Request request = new CreateCheck( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -290,43 +337,52 @@ Request request = new CreateCheck( } ``` -**`setOnetime`** - +
+#### `setOnetime` チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`usageLimit`** - +
+#### `usageLimit` 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 デフォルト値はNULLです。 ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 +
+スキーマ + ```json { "type": "integer" } ``` -**`expiresAt`** - +
+#### `expiresAt` チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 +
+スキーマ + ```json { "type": "string", @@ -334,14 +390,17 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`pointExpiresAt`** - +
+#### `pointExpiresAt` チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 +
+スキーマ + ```json { "type": "string", @@ -349,14 +408,17 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`pointExpiresInDays`** - +
+#### `pointExpiresInDays` チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 +
+スキーマ + ```json { "type": "integer", @@ -364,13 +426,16 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`bearPointAccount`** - +
+#### `bearPointAccount` ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 +
+スキーマ + ```json { "type": "string", @@ -378,6 +443,8 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` +
+ 成功したときは @@ -418,11 +485,12 @@ Request request = new GetCheck( ### Parameters -**`checkId`** - - +#### `checkId` 表示対象のチャージQRコードのIDです。 +
+スキーマ + ```json { "type": "string", @@ -430,6 +498,8 @@ Request request = new GetCheck( } ``` +
+ 成功したときは @@ -448,27 +518,28 @@ Request request = new GetCheck( Request request = new UpdateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // checkId: チャージQRコードのID ) - .moneyAmount(1623.0) // 付与マネー額 - .pointAmount(2280.0) // 付与ポイント額 + .moneyAmount(6866.0) // 付与マネー額 + .pointAmount(329.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コードによって付与されるポイント残高の有効期限 + .setOnetime(false) // ワンタイムかどうかのフラグ + .usageLimit(9920) // ワンタイムでない場合の最大読み取り回数 + .expiresAt("2022-11-18T09:32:44.000000Z") // チャージQRコード自体の失効日時 + .pointExpiresAt("2023-12-01T03:01:32.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,13 +547,16 @@ Request request = new UpdateCheck( } ``` -**`moneyAmount`** - +
+#### `moneyAmount` チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 +
+スキーマ + ```json { "type": "number", @@ -491,13 +565,16 @@ Request request = new UpdateCheck( } ``` -**`pointAmount`** - +
+#### `pointAmount` チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 +
+スキーマ + ```json { "type": "number", @@ -506,13 +583,16 @@ Request request = new UpdateCheck( } ``` -**`description`** - +
+#### `description` チャージQRコードの説明文です。 チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 +
+スキーマ + ```json { "type": "string", @@ -520,42 +600,51 @@ Request request = new UpdateCheck( } ``` -**`setOnetime`** - +
+#### `setOnetime` チャージQRコードが一度の読み取りで失効するときに`true`にします。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`usageLimit`** - +
+#### `usageLimit` 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 +
+スキーマ + ```json { "type": "integer" } ``` -**`expiresAt`** - +
+#### `expiresAt` チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 +
+スキーマ + ```json { "type": "string", @@ -563,14 +652,17 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`pointExpiresAt`** - +
+#### `pointExpiresAt` チャージQRコードによって付与されるポイント残高の有効起源を指定します。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 +
+スキーマ + ```json { "type": "string", @@ -578,15 +670,18 @@ 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 { "type": "integer", @@ -594,12 +689,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`bearPointAccount`** - +
+#### `bearPointAccount` ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 +
+スキーマ + ```json { "type": "string", @@ -607,19 +705,24 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`setDisabled`** - +
+#### `setDisabled` チャージQRコードを無効化するときに`true`にします。 `false`の場合は無効化されているチャージQRコードを再有効化します。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -650,13 +753,14 @@ Request request = new CreateTopupTransactionWithCheck( ### Parameters -**`checkId`** - - +#### `checkId` チャージ用QRコードのIDです。 QRコード生成時に送金元店舗のウォレット情報や、送金額などが登録されています。 +
+スキーマ + ```json { "type": "string", @@ -664,13 +768,16 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 送金先のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -678,9 +785,9 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -688,6 +795,9 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -695,6 +805,8 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な } ``` +
+ 成功したときは @@ -707,7 +819,10 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|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 +832,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.| @@ -738,6 +858,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|check_already_received|このチャージQRコードは既に受取済みの為、チャージ出来ませんでした|Check is already received| |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 6ff76c6..8adb30f 100644 --- a/docs/coupon.md +++ b/docs/coupon.md @@ -11,12 +11,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("HjzBAZfWzO") // クーポンID + .couponName("7") // クーポン名 + .issuedShopName("yHWR5F") // 発行店舗名 + .availableShopName("Ma9") // 利用可能店舗名 + .availableFrom("2021-11-24T15:03:31.000000Z") // 利用可能期間 (開始日時) + .availableTo("2023-03-18T14:55:25.000000Z") // 利用可能期間 (終了日時) .page(1) // ページ番号 .perPage(50); // 1ページ分の取得数 @@ -25,13 +25,14 @@ Request request = new ListCoupons( ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` 対象クーポンのマネーIDです(必須項目)。 存在しないマネーIDを指定した場合はprivate_money_not_foundエラー(422)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -39,61 +40,76 @@ Request request = new ListCoupons( } ``` -**`couponId`** - +
+#### `couponId` 指定されたクーポンIDで結果をフィルターします。 部分一致(前方一致)します。 +
+スキーマ + ```json { "type": "string" } ``` -**`couponName`** - +
+#### `couponName` 指定されたクーポン名で結果をフィルターします。 +
+スキーマ + ```json { "type": "string" } ``` -**`issuedShopName`** - +
+#### `issuedShopName` 指定された発行店舗で結果をフィルターします。 +
+スキーマ + ```json { "type": "string" } ``` -**`availableShopName`** - +
+#### `availableShopName` 指定された利用可能店舗で結果をフィルターします。 +
+スキーマ + ```json { "type": "string" } ``` -**`availableFrom`** - +
+#### `availableFrom` 利用可能期間でフィルターします。フィルターの開始日時をISO8601形式で指定します。 +
+スキーマ + ```json { "type": "string", @@ -101,12 +117,15 @@ Request request = new ListCoupons( } ``` -**`availableTo`** - +
+#### `availableTo` 利用可能期間でフィルターします。フィルターの終了日時をISO8601形式で指定します。 +
+スキーマ + ```json { "type": "string", @@ -114,11 +133,14 @@ Request request = new ListCoupons( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -126,11 +148,14 @@ Request request = new ListCoupons( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -138,6 +163,8 @@ Request request = new ListCoupons( } ``` +
+ 成功したときは @@ -163,26 +190,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", + "3GmqQepv7doxpRjgZI2VSDvLJkkZMMdEANfWVavAje3PJg4zkA5dwRQrAEDCEBzCTk0pNAGkxkj3y6Qj", + "2021-06-07T09:28:44.000000Z", + "2024-05-22T01:14:03.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") // クーポンの掲載期間(終了日時) + .description("E9oTv9S3Zg4O5dK9OBTn3gY0HIwJr5Xn6R9PIw5eC52tvIBnMyMg4CnT2dj7ORUTt4jEgn4792da7QYy7V605lzcBixerwgOsZo2yFQXiifPwyEPkMTjwK5UmBamQcUvvHD25XYGaGoRmlkWpVKSQYACWhdJgT5oXIAxp1c5Q2vG7By") + .discountAmount(3513) + .discountPercentage(8483.0) + .discountUpperLimit(5407) + .displayStartsAt("2025-02-16T10:47:26.000000Z") // クーポンの掲載期間(開始日時) + .displayEndsAt("2020-02-09T09:57:39.000000Z") // クーポンの掲載期間(終了日時) .setDisabled(true) // 無効化フラグ .setHidden(true) // クーポン一覧に掲載されるかどうか .setPublic(true) // アプリ配信なしで受け取れるかどうか - .code("HosccmXh") // クーポン受け取りコード - .usageLimit(5575) // ユーザごとの利用可能回数(NULLの場合は無制限) - .minAmount(8497) // クーポン適用可能な最小取引額 + .code("wbMvROW") // クーポン受け取りコード + .usageLimit(2790) // ユーザごとの利用可能回数(NULLの場合は無制限) + .minAmount(7381) // クーポン適用可能な最小取引額 .setShopSpecified(false) // 特定店舗限定のクーポンかどうか - .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト - .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ストレージID + .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト + .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ストレージID + .numRecipientsCap(3010); // クーポンを受け取ることができるユーザ数上限 ``` @@ -190,9 +218,10 @@ Request request = new CreateCoupon( ### Parameters -**`privateMoneyId`** - +#### `privateMoneyId` +
+スキーマ ```json { @@ -201,9 +230,12 @@ Request request = new CreateCoupon( } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -212,9 +244,12 @@ Request request = new CreateCoupon( } ``` -**`description`** - +
+#### `description` + +
+スキーマ ```json { @@ -223,9 +258,12 @@ Request request = new CreateCoupon( } ``` -**`discountAmount`** - +
+ +#### `discountAmount` +
+スキーマ ```json { @@ -234,9 +272,12 @@ Request request = new CreateCoupon( } ``` -**`discountPercentage`** - +
+#### `discountPercentage` + +
+スキーマ ```json { @@ -245,9 +286,12 @@ Request request = new CreateCoupon( } ``` -**`discountUpperLimit`** - +
+ +#### `discountUpperLimit` +
+スキーマ ```json { @@ -256,9 +300,12 @@ Request request = new CreateCoupon( } ``` -**`startsAt`** - +
+ +#### `startsAt` +
+スキーマ ```json { @@ -267,9 +314,12 @@ Request request = new CreateCoupon( } ``` -**`endsAt`** - +
+#### `endsAt` + +
+スキーマ ```json { @@ -278,9 +328,12 @@ Request request = new CreateCoupon( } ``` -**`displayStartsAt`** - +
+ +#### `displayStartsAt` +
+スキーマ ```json { @@ -289,9 +342,12 @@ Request request = new CreateCoupon( } ``` -**`displayEndsAt`** - +
+#### `displayEndsAt` + +
+スキーマ ```json { @@ -300,9 +356,12 @@ Request request = new CreateCoupon( } ``` -**`setDisabled`** - +
+ +#### `setDisabled` +
+スキーマ ```json { @@ -310,22 +369,28 @@ Request request = new CreateCoupon( } ``` -**`setHidden`** - +
+#### `setHidden` アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`setPublic`** - +
+#### `setPublic` + +
+スキーマ ```json { @@ -333,9 +398,12 @@ Request request = new CreateCoupon( } ``` -**`code`** - +
+ +#### `code` +
+スキーマ ```json { @@ -343,9 +411,12 @@ Request request = new CreateCoupon( } ``` -**`usageLimit`** - +
+#### `usageLimit` + +
+スキーマ ```json { @@ -353,9 +424,12 @@ Request request = new CreateCoupon( } ``` -**`minAmount`** - +
+ +#### `minAmount` +
+スキーマ ```json { @@ -363,9 +437,12 @@ Request request = new CreateCoupon( } ``` -**`issuedShopId`** - +
+ +#### `issuedShopId` +
+スキーマ ```json { @@ -374,9 +451,12 @@ Request request = new CreateCoupon( } ``` -**`setShopSpecified`** - +
+#### `setShopSpecified` + +
+スキーマ ```json { @@ -384,9 +464,12 @@ Request request = new CreateCoupon( } ``` -**`availableShopIds`** - +
+ +#### `availableShopIds` +
+スキーマ ```json { @@ -398,11 +481,14 @@ Request request = new CreateCoupon( } ``` -**`storageId`** - +
+#### `storageId` Storage APIでアップロードしたクーポン画像のStorage IDを指定します +
+スキーマ + ```json { "type": "string", @@ -410,6 +496,22 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 } ``` +
+ +#### `numRecipientsCap` + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ 成功したときは @@ -445,13 +547,14 @@ Request request = new GetCoupon( ### Parameters -**`couponId`** - - +#### `couponId` 取得するクーポンのIDです。 UUIDv4フォーマットである必要があり、フォーマットが異なる場合は InvalidParametersエラー(400)が返ります。 指定したIDのクーポンが存在しない場合はCouponNotFoundエラー(422)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -459,6 +562,8 @@ UUIDv4フォーマットである必要があり、フォーマットが異な } ``` +
+ 成功したときは @@ -478,24 +583,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") // クーポンの掲載期間(終了日時) + .name("hh6XnZz0yJYgRGAM6oTzljbZYS9b6qmrSFaDiVxdn1z0TuA7dLQ8GnuuGnm3um0ZKYlqHYAPfacx4ba4pxXiFCicQd3QQrd") + .description("pp5IlW8KnTaroT8w3801ZxeZpTa0FFkkUFLVCDKp9TvCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7EhkzGk22yYle2ZOPXJOiEYcNwwBKhoxCdqw8SDS6L7O6ohLm8HBuYz7E9ZuYBAHz0vH45u4SHdXpfYeqMtcfd8wxcygIW1kAzyAHjkW0eFslSf8NaBTyV6GBT8tDHI0zWcr0sMpkdiHOOwl5xIQiAP4UplfuFUQK5yc0JqyEbk") + .discountAmount(4660) + .discountPercentage(4088.0) + .discountUpperLimit(936) + .startsAt("2024-05-04T01:56:01.000000Z") + .endsAt("2021-02-20T23:05:41.000000Z") + .displayStartsAt("2023-09-21T06:48:47.000000Z") // クーポンの掲載期間(開始日時) + .displayEndsAt("2025-10-25T23:34:34.000000Z") // クーポンの掲載期間(終了日時) .setDisabled(true) // 無効化フラグ - .setHidden(false) // クーポン一覧に掲載されるかどうか - .setPublic(true) // アプリ配信なしで受け取れるかどうか - .code("2aIO") // クーポン受け取りコード - .usageLimit(7115) // ユーザごとの利用可能回数(NULLの場合は無制限) - .minAmount(6094) // クーポン適用可能な最小取引額 - .setShopSpecified(false) // 特定店舗限定のクーポンかどうか - .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト - .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ストレージID + .setHidden(true) // クーポン一覧に掲載されるかどうか + .setPublic(false) // アプリ配信なしで受け取れるかどうか + .code("gCs3REJ") // クーポン受け取りコード + .usageLimit(6488) // ユーザごとの利用可能回数(NULLの場合は無制限) + .minAmount(3692) // クーポン適用可能な最小取引額 + .setShopSpecified(true) // 特定店舗限定のクーポンかどうか + .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト + .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ストレージID + .numRecipientsCap(767); // クーポンを受け取ることができるユーザ数上限 ``` @@ -505,9 +611,10 @@ Request request = new UpdateCoupon( ### Parameters -**`couponId`** - +#### `couponId` +
+スキーマ ```json { @@ -516,9 +623,12 @@ Request request = new UpdateCoupon( } ``` -**`name`** - +
+#### `name` + +
+スキーマ ```json { @@ -527,9 +637,12 @@ Request request = new UpdateCoupon( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -538,9 +651,12 @@ Request request = new UpdateCoupon( } ``` -**`discountAmount`** - +
+ +#### `discountAmount` +
+スキーマ ```json { @@ -549,9 +665,12 @@ Request request = new UpdateCoupon( } ``` -**`discountPercentage`** - +
+#### `discountPercentage` + +
+スキーマ ```json { @@ -560,9 +679,12 @@ Request request = new UpdateCoupon( } ``` -**`discountUpperLimit`** - +
+ +#### `discountUpperLimit` +
+スキーマ ```json { @@ -571,9 +693,12 @@ Request request = new UpdateCoupon( } ``` -**`startsAt`** - +
+#### `startsAt` + +
+スキーマ ```json { @@ -582,9 +707,12 @@ Request request = new UpdateCoupon( } ``` -**`endsAt`** - +
+ +#### `endsAt` +
+スキーマ ```json { @@ -593,9 +721,12 @@ Request request = new UpdateCoupon( } ``` -**`displayStartsAt`** - +
+ +#### `displayStartsAt` +
+スキーマ ```json { @@ -604,9 +735,12 @@ Request request = new UpdateCoupon( } ``` -**`displayEndsAt`** - +
+#### `displayEndsAt` + +
+スキーマ ```json { @@ -615,9 +749,12 @@ Request request = new UpdateCoupon( } ``` -**`setDisabled`** - +
+ +#### `setDisabled` +
+スキーマ ```json { @@ -625,22 +762,28 @@ Request request = new UpdateCoupon( } ``` -**`setHidden`** - +
+#### `setHidden` アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`setPublic`** - +
+ +#### `setPublic` +
+スキーマ ```json { @@ -648,9 +791,12 @@ Request request = new UpdateCoupon( } ``` -**`code`** - +
+ +#### `code` +
+スキーマ ```json { @@ -658,9 +804,12 @@ Request request = new UpdateCoupon( } ``` -**`usageLimit`** - +
+#### `usageLimit` + +
+スキーマ ```json { @@ -668,9 +817,12 @@ Request request = new UpdateCoupon( } ``` -**`minAmount`** - +
+ +#### `minAmount` +
+スキーマ ```json { @@ -678,9 +830,12 @@ Request request = new UpdateCoupon( } ``` -**`setShopSpecified`** - +
+#### `setShopSpecified` + +
+スキーマ ```json { @@ -688,9 +843,12 @@ Request request = new UpdateCoupon( } ``` -**`availableShopIds`** - +
+ +#### `availableShopIds` +
+スキーマ ```json { @@ -702,11 +860,14 @@ Request request = new UpdateCoupon( } ``` -**`storageId`** - +
+#### `storageId` Storage APIでアップロードしたクーポン画像のStorage IDを指定します +
+スキーマ + ```json { "type": "string", @@ -714,6 +875,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 0000000..7f5e707 --- /dev/null +++ b/docs/credit_session.md @@ -0,0 +1,231 @@ +# CreditSession + + +## PostCreditSession: Create credit session + +```JAVA +Request request = new PostCreditSession( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "2024-04-04T15:31:52.000000Z" // expiresAt: セッション有効期限 +); + +``` + + + +### 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" +} +``` + +
+ + + +成功したときは +[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 + 1232.0 // amount: 取引金額 +) + .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID + .description("rGorQztiuURWZ5r1OnryKkdpmMzmoITgipjScgSjEKEvn9tkKJsfEeEirDJBvMOLUpWvpkfaBwAHAugbJ1KgmPImdwaTBcNwqaqeRCH16a6zzUqrHdosHdbmLywquk"); // 取引説明 + +``` + + + +### 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 +} +``` + +
+ + + + + + +--- + + + +## CaptureCreditSession: Capture credit session +クレジットセッションの売上確定(キャプチャ)を行います。 +セッション内で行われた支払いの合計金額をクレジットカードに請求します。 + + +```JAVA +Request request = new CaptureCreditSession( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // sessionId: クレジットセッションID +); + +``` + + + +### Parameters +#### `sessionId` +クレジットセッションID + +キャプチャ対象のクレジットセッションのIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + + + + +--- + + + diff --git a/docs/customer.md b/docs/customer.md index f599172..968dcd2 100644 --- a/docs/customer.md +++ b/docs/customer.md @@ -15,13 +15,14 @@ Request request = new DeleteAccount( ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 指定したウォレットIDのウォレットを退会します。 +
+スキーマ + ```json { "type": "string", @@ -29,17 +30,22 @@ Request request = new DeleteAccount( } ``` -**`cashback`** - +
+#### `cashback` 退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -65,13 +71,14 @@ Request request = new GetAccount( ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 フィルターとして使われ、指定したウォレットIDのウォレットを取得します。 +
+スキーマ + ```json { "type": "string", @@ -79,6 +86,8 @@ Request request = new GetAccount( } ``` +
+ 成功したときは @@ -104,7 +113,7 @@ Request request = new GetAccount( Request request = new UpdateAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .setSuspended(true) // ウォレットが凍結されているかどうか + .setSuspended(false) // ウォレットが凍結されているかどうか .status("active") // ウォレット状態 .canTransferTopup(false); // チャージ可能かどうか @@ -113,13 +122,14 @@ Request request = new UpdateAccount( ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 指定したウォレットIDのウォレットの状態を更新します。 +
+スキーマ + ```json { "type": "string", @@ -127,22 +137,28 @@ Request request = new UpdateAccount( } ``` -**`setSuspended`** - +
+#### `setSuspended` ウォレットの凍結状態です。真にするとウォレットが凍結され、そのウォレットでは新規取引ができなくなります。偽にすると凍結解除されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`status`** - +
+#### `status` ウォレットの状態です。 +
+スキーマ + ```json { "type": "string", @@ -154,17 +170,22 @@ Request request = new UpdateAccount( } ``` -**`canTransferTopup`** - +
+#### `canTransferTopup` 店舗ユーザーがエンドユーザーにチャージ可能かどうかです。真にするとチャージ可能となり、偽にするとチャージ不可能となります。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -184,10 +205,10 @@ 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") // 有効期限の期間によるフィルター(終了時点) + .page(3188) // ページ番号 + .perPage(7499) // 1ページ分の取引数 + .expiresAtFrom("2020-10-19T04:58:08.000000Z") // 有効期限の期間によるフィルター(開始時点) + .expiresAtTo("2021-03-13T06:06:05.000000Z") // 有効期限の期間によるフィルター(終了時点) .direction("desc"); // 有効期限によるソート順序 ``` @@ -195,13 +216,14 @@ Request request = new ListAccountBalances( ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。 +
+スキーマ + ```json { "type": "string", @@ -209,11 +231,14 @@ Request request = new ListAccountBalances( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -221,11 +246,14 @@ Request request = new ListAccountBalances( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分のウォレット残高数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -233,11 +261,14 @@ Request request = new ListAccountBalances( } ``` -**`expiresAtFrom`** - +
+#### `expiresAtFrom` 有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -245,11 +276,14 @@ Request request = new ListAccountBalances( } ``` -**`expiresAtTo`** - +
+#### `expiresAtTo` 有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -257,11 +291,14 @@ Request request = new ListAccountBalances( } ``` -**`direction`** - +
+#### `direction` 有効期限によるソートの順序を指定します。デフォルト値はasc (昇順)です。 +
+スキーマ + ```json { "type": "string", @@ -272,6 +309,8 @@ Request request = new ListAccountBalances( } ``` +
+ 成功したときは @@ -291,10 +330,10 @@ 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") // 有効期限の期間によるフィルター(終了時点) + .page(1900) // ページ番号 + .perPage(4351) // 1ページ分の取引数 + .expiresAtFrom("2020-08-31T17:47:08.000000Z") // 有効期限の期間によるフィルター(開始時点) + .expiresAtTo("2021-03-24T12:31:00.000000Z") // 有効期限の期間によるフィルター(終了時点) .direction("asc"); // 有効期限によるソート順序 ``` @@ -302,13 +341,14 @@ Request request = new ListAccountExpiredBalances( ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。 +
+スキーマ + ```json { "type": "string", @@ -316,11 +356,14 @@ Request request = new ListAccountExpiredBalances( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -328,11 +371,14 @@ Request request = new ListAccountExpiredBalances( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分のウォレット残高数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -340,11 +386,14 @@ Request request = new ListAccountExpiredBalances( } ``` -**`expiresAtFrom`** - +
+#### `expiresAtFrom` 有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -352,11 +401,14 @@ Request request = new ListAccountExpiredBalances( } ``` -**`expiresAtTo`** - +
+#### `expiresAtTo` 有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -364,11 +416,14 @@ Request request = new ListAccountExpiredBalances( } ``` -**`direction`** - +
+#### `direction` 有効期限によるソートの順序を指定します。デフォルト値はdesc (降順)です。 +
+スキーマ + ```json { "type": "string", @@ -379,6 +434,8 @@ Request request = new ListAccountExpiredBalances( } ``` +
+ 成功したときは @@ -398,9 +455,9 @@ Request request = new ListAccountExpiredBalances( Request request = new UpdateCustomerAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .status("suspended") // ウォレット状態 - .accountName("MgU5LJ8nedbEkL6VCbZlYCZFu0YjXrv") // アカウント名 - .externalId("ck1kbCzvMElblaTUskxDWTi4syFdijXYZ6Fkp0v2rO") // 外部ID + .status("pre-closed") // ウォレット状態 + .accountName("It9zNKCX0VzisXLLiEpULitiIsW57odiOHhS8DsZfAQRFK6oTTeP8tTTuInowX2TMHi2vDKbmu86aUF4jypKaAY4yQaiw0JpUpNfjrUKaU") // アカウント名 + .externalId("CU4cuncfOgZgC0vnz9vdHX3zI21M9POKUq") // 外部ID .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); // ウォレットに付加するメタデータ ``` @@ -408,13 +465,14 @@ Request request = new UpdateCustomerAccount( ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 指定したウォレットIDのウォレットの状態を更新します。 +
+スキーマ + ```json { "type": "string", @@ -422,11 +480,14 @@ Request request = new UpdateCustomerAccount( } ``` -**`status`** - +
+#### `status` ウォレットの状態です。 +
+スキーマ + ```json { "type": "string", @@ -438,11 +499,14 @@ Request request = new UpdateCustomerAccount( } ``` -**`accountName`** - +
+#### `accountName` 変更するウォレット名です。 +
+スキーマ + ```json { "type": "string", @@ -450,11 +514,14 @@ Request request = new UpdateCustomerAccount( } ``` -**`externalId`** - +
+#### `externalId` 変更する外部IDです。 +
+スキーマ + ```json { "type": "string", @@ -462,9 +529,9 @@ Request request = new UpdateCustomerAccount( } ``` -**`metadata`** - +
+#### `metadata` ウォレットに付加するメタデータをJSON文字列で指定します。 指定できるJSON文字列には以下のような制約があります。 - フラットな構造のJSONを文字列化したものであること。 @@ -482,6 +549,9 @@ Request request = new UpdateCustomerAccount( このときkey1はfooからbazに更新され、key2に対するデータは消去されます。 +
+スキーマ + ```json { "type": "string", @@ -489,6 +559,8 @@ Request request = new UpdateCustomerAccount( } ``` +
+ 成功したときは @@ -508,28 +580,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) // ウォレットが凍結状態かどうかでフィルターする - .status("suspended") // ウォレット状態 - .externalId("KP7CaX5R9O7hnOQMfDj4u8or1Z5a") // 外部ID - .tel("0629-6637554") // エンドユーザーの電話番号 - .email("vasIan6Df8@qsq2.com"); // エンドユーザーのメールアドレス + .page(4460) // ページ番号 + .perPage(4997) // 1ページ分のウォレット数 + .createdAtFrom("2024-02-08T03:22:05.000000Z") // ウォレット作成日によるフィルター(開始時点) + .createdAtTo("2022-02-25T05:44:03.000000Z") // ウォレット作成日によるフィルター(終了時点) + .setSuspended(false) // ウォレットが凍結状態かどうかでフィルターする + .status("active") // ウォレット状態 + .externalId("AeLmERqX5bwDROtzb2hizqeaCyQX") // 外部ID + .tel("07-61446") // エンドユーザーの電話番号 + .email("1s5IzgftNO@CeiO.com"); // エンドユーザーのメールアドレス ``` ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 一覧するウォレットのマネーを指定します。このパラメータは必須です。 +
+スキーマ + ```json { "type": "string", @@ -537,11 +610,14 @@ Request request = new GetCustomerAccounts( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -549,11 +625,14 @@ Request request = new GetCustomerAccounts( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分のウォレット数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -561,11 +640,14 @@ Request request = new GetCustomerAccounts( } ``` -**`createdAtFrom`** - +
+#### `createdAtFrom` ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -573,11 +655,14 @@ Request request = new GetCustomerAccounts( } ``` -**`createdAtTo`** - +
+#### `createdAtTo` ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -585,22 +670,28 @@ Request request = new GetCustomerAccounts( } ``` -**`setSuspended`** - +
+#### `setSuspended` このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`status`** - +
+#### `status` このパラメータが指定されている場合、ウォレットの状態で結果がフィルターされます。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -612,11 +703,14 @@ Request request = new GetCustomerAccounts( } ``` -**`externalId`** - +
+#### `externalId` 外部IDでのフィルタリングです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -624,11 +718,14 @@ Request request = new GetCustomerAccounts( } ``` -**`tel`** - +
+#### `tel` エンドユーザーの電話番号でのフィルタリングです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -636,11 +733,14 @@ Request request = new GetCustomerAccounts( } ``` -**`email`** - +
+#### `email` エンドユーザーのメールアドレスでのフィルタリングです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -648,6 +748,8 @@ Request request = new GetCustomerAccounts( } ``` +
+ 成功したときは @@ -678,20 +780,21 @@ Request request = new CreateCustomerAccount( ) .userName("ポケペイ太郎") // ユーザー名 .accountName("ポケペイ太郎のアカウント") // アカウント名 - .externalId("k3ETquM3SQujWFDE153B47G8gAIFr9"); // 外部ID + .externalId("bpouk4VaYSYsKX6oU3L46cfT"); // 外部ID ``` ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 これによって作成するウォレットのマネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -699,11 +802,14 @@ Request request = new CreateCustomerAccount( } ``` -**`userName`** - +
+#### `userName` ウォレットと共に作成するユーザ名です。省略した場合は空文字となります。 +
+スキーマ + ```json { "type": "string", @@ -711,11 +817,14 @@ Request request = new CreateCustomerAccount( } ``` -**`accountName`** - +
+#### `accountName` 作成するウォレット名です。省略した場合は空文字となります。 +
+スキーマ + ```json { "type": "string", @@ -723,11 +832,14 @@ Request request = new CreateCustomerAccount( } ``` -**`externalId`** - +
+#### `externalId` PAPIクライアントシステムから利用するPokepayユーザーのIDです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -735,6 +847,8 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで } ``` +
+ 成功したときは @@ -766,10 +880,10 @@ 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") // ウォレット作成日によるフィルター(終了時点) + .page(591) // ページ番号 + .perPage(971) // 1ページ分のウォレット数 + .createdAtFrom("2023-11-05T12:38:15.000000Z") // ウォレット作成日によるフィルター(開始時点) + .createdAtTo("2022-01-05T23:36:44.000000Z") // ウォレット作成日によるフィルター(終了時点) .setSuspended(true); // ウォレットが凍結状態かどうかでフィルターする ``` @@ -777,13 +891,14 @@ Request request = new GetShopAccounts( ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 一覧するウォレットのマネーを指定します。このパラメータは必須です。 +
+スキーマ + ```json { "type": "string", @@ -791,11 +906,14 @@ Request request = new GetShopAccounts( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -803,11 +921,14 @@ Request request = new GetShopAccounts( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分のウォレット数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -815,11 +936,14 @@ Request request = new GetShopAccounts( } ``` -**`createdAtFrom`** - +
+#### `createdAtFrom` ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -827,11 +951,14 @@ Request request = new GetShopAccounts( } ``` -**`createdAtTo`** - +
+#### `createdAtTo` ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -839,17 +966,22 @@ Request request = new GetShopAccounts( } ``` -**`setSuspended`** - +
+#### `setSuspended` このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -877,10 +1009,10 @@ Request request = new ListCustomerTransactions( ) .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") // 終了日時 + .type("cashback") // 取引種別 + .setModified(false) // キャンセル済みかどうか + .from("2021-10-06T13:44:11.000000Z") // 開始日時 + .to("2020-12-01T10:47:34.000000Z") // 終了日時 .page(1) // ページ番号 .perPage(50); // 1ページ分の取引数 @@ -889,12 +1021,13 @@ Request request = new ListCustomerTransactions( ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -902,13 +1035,16 @@ Request request = new ListCustomerTransactions( } ``` -**`senderCustomerId`** - +
+#### `senderCustomerId` 送金ユーザーIDです。 フィルターとして使われ、指定された送金ユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -916,13 +1052,16 @@ Request request = new ListCustomerTransactions( } ``` -**`receiverCustomerId`** - +
+#### `receiverCustomerId` 受取ユーザーIDです。 フィルターとして使われ、指定された受取ユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -930,9 +1069,9 @@ Request request = new ListCustomerTransactions( } ``` -**`type`** - +
+#### `type` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -950,6 +1089,9 @@ Request request = new ListCustomerTransactions( 6. expire ウォレット退会時失効 +
+スキーマ + ```json { "type": "string", @@ -964,28 +1106,34 @@ Request request = new ListCustomerTransactions( } ``` -**`setModified`** - +
+#### `setModified` キャンセル済みかどうかを判定するフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 falseを指定するとキャンセルされていない取引のみ一覧に表示されます 何も指定しなければキャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`from`** - +
+#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -993,13 +1141,16 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -1007,11 +1158,14 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -1019,11 +1173,14 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -1031,6 +1188,8 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` +
+ 成功したときは diff --git a/docs/error-response.csv b/docs/error-response.csv index 9fc6068..067eff3 100644 --- a/docs/error-response.csv +++ b/docs/error-response.csv @@ -1,4 +1,5 @@ method,path,status_code,type,ja,en +GET,/ping,418,,, 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 +13,17 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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 +33,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. @@ -76,7 +88,10 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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 +101,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,6 +125,8 @@ 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,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 @@ -112,7 +134,10 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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 +147,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. @@ -143,22 +173,73 @@ 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_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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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 +249,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 +256,21 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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 +280,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 +296,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 +306,16 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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 +325,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. @@ -246,11 +351,16 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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 +376,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. @@ -287,7 +403,10 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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 +416,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. @@ -318,8 +442,11 @@ 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 @@ -327,7 +454,10 @@ POST,/transactions/bulk,403,unpermitted_admin_user,"この管理ユーザには 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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 +467,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. @@ -358,20 +493,28 @@ 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,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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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 +531,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 +545,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 @@ -423,14 +573,18 @@ 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 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_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 GET,/checks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,organization_not_found,,Organization not found @@ -509,12 +663,14 @@ 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,private_money_conflict,"このマネーは既に登録されています。",The money is already used ,,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 @@ -617,7 +773,10 @@ POST,/user-stats,400,invalid_parameters,"項目が無効です",Invalid paramete ,,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 @@ -687,6 +846,9 @@ PATCH,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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 +864,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 +892,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 +962,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 +998,10 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,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 +1011,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. @@ -858,11 +1037,59 @@ 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 +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,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 +,,503,temporarily_unavailable,,Service Unavailable +GET,/internals/system-user,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,503,temporarily_unavailable,,Service Unavailable diff --git a/docs/event.md b/docs/event.md index e5935b6..bcdf461 100644 --- a/docs/event.md +++ b/docs/event.md @@ -16,38 +16,31 @@ 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 CreateExternalTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 1360 // amount: 取引額 + 3066 // amount: 取引額 ) .description("たい焼き(小倉)") // 取引説明文 .metadata("{\"key\":\"value\"}") // ポケペイ外部取引メタデータ - .products(new Object[]{items,items2}) // 商品情報データ + .products(new Object[]{items}) // 商品情報データ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID - .doneAt("2020-06-15T08:52:34.000000Z"); // ポケペイ外部取引の実施時間 + .doneAt("2021-01-10T19:17:47.000000Z"); // ポケペイ外部取引の実施時間 ``` ### Parameters -**`shopId`** - - +#### `shopId` 店舗IDです。 ポケペイ外部取引が行なう店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -55,13 +48,16 @@ Request request = new CreateExternalTransaction( } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 エンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -69,13 +65,16 @@ Request request = new CreateExternalTransaction( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -83,11 +82,14 @@ Request request = new CreateExternalTransaction( } ``` -**`amount`** - +
+#### `amount` 取引金額です。 +
+スキーマ + ```json { "type": "integer", @@ -95,13 +97,16 @@ Request request = new CreateExternalTransaction( } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -109,13 +114,16 @@ Request request = new CreateExternalTransaction( } ``` -**`metadata`** - +
+#### `metadata` ポケペイ外部取引作成時に指定され、取引と紐付けられるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSONで指定します。 +
+スキーマ + ```json { "type": "string", @@ -123,9 +131,9 @@ Request request = new CreateExternalTransaction( } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -137,6 +145,9 @@ Request request = new CreateExternalTransaction( - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -146,15 +157,18 @@ Request request = new CreateExternalTransaction( } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +
+スキーマ + ```json { "type": "string", @@ -162,13 +176,16 @@ Request request = new CreateExternalTransaction( } ``` -**`doneAt`** - +
+#### `doneAt` ポケペイ外部取引が実際に起こった時間です。 時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。 デフォルトではCreateExternalTransactionがリクエストされた時間になります。 +
+スキーマ + ```json { "type": "string", @@ -176,6 +193,8 @@ Request request = new CreateExternalTransaction( } ``` +
+ 成功したときは @@ -190,11 +209,13 @@ 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|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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|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 +232,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 +246,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 +275,10 @@ Request request = new RefundExternalTransaction( ### Parameters -**`eventId`** - +#### `eventId` +
+スキーマ ```json { @@ -258,9 +287,12 @@ Request request = new RefundExternalTransaction( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -269,6 +301,8 @@ Request request = new RefundExternalTransaction( } ``` +
+ 成功したときは @@ -296,9 +330,10 @@ Request request = new GetExternalTransactionByRequestId( ### Parameters -**`requestId`** - +#### `requestId` +
+スキーマ ```json { @@ -307,6 +342,8 @@ Request request = new GetExternalTransactionByRequestId( } ``` +
+ 成功したときは diff --git a/docs/organization.md b/docs/organization.md index 1c9c347..392be4d 100644 --- a/docs/organization.md +++ b/docs/organization.md @@ -9,20 +9,21 @@ Request request = new ListOrganizations( ) .page(1) // ページ番号 .perPage(50) // 1ページ分の取引数 - .name("AZ") // 組織名 - .code("81ee9F1zae"); // 組織コード + .name("vEUDGTtuu") // 組織名 + .code("mLHhGQ"); // 組織コード ``` ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 このマネーに加盟している加盟組織がフィルターされます。 +
+スキーマ + ```json { "type": "string", @@ -30,11 +31,14 @@ Request request = new ListOrganizations( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -42,11 +46,14 @@ Request request = new ListOrganizations( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -54,9 +61,12 @@ Request request = new ListOrganizations( } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -64,9 +74,12 @@ Request request = new ListOrganizations( } ``` -**`code`** - +
+#### `code` + +
+スキーマ ```json { @@ -74,6 +87,8 @@ Request request = new ListOrganizations( } ``` +
+ 成功したときは @@ -100,8 +115,8 @@ 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: 新規組織担当者メールアドレス + "9yekqoyNLK@N2h7.com", // issuerAdminUserEmail: 発行体担当者メールアドレス + "BNq3rRMob2@yqEg.com" // memberAdminUserEmail: 新規組織担当者メールアドレス ) .bankName("XYZ銀行") // 銀行名 .bankCode("1234") // 銀行金融機関コード @@ -117,9 +132,10 @@ Request request = new CreateOrganization( ### Parameters -**`code`** - +#### `code` +
+スキーマ ```json { @@ -128,9 +144,12 @@ Request request = new CreateOrganization( } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -139,9 +158,12 @@ Request request = new CreateOrganization( } ``` -**`privateMoneyIds`** - +
+#### `privateMoneyIds` + +
+スキーマ ```json { @@ -154,9 +176,12 @@ Request request = new CreateOrganization( } ``` -**`issuerAdminUserEmail`** - +
+ +#### `issuerAdminUserEmail` +
+スキーマ ```json { @@ -165,9 +190,12 @@ Request request = new CreateOrganization( } ``` -**`memberAdminUserEmail`** - +
+#### `memberAdminUserEmail` + +
+スキーマ ```json { @@ -176,9 +204,12 @@ Request request = new CreateOrganization( } ``` -**`bankName`** - +
+ +#### `bankName` +
+スキーマ ```json { @@ -187,9 +218,12 @@ Request request = new CreateOrganization( } ``` -**`bankCode`** - +
+ +#### `bankCode` +
+スキーマ ```json { @@ -198,9 +232,12 @@ Request request = new CreateOrganization( } ``` -**`bankBranchName`** - +
+#### `bankBranchName` + +
+スキーマ ```json { @@ -209,9 +246,12 @@ Request request = new CreateOrganization( } ``` -**`bankBranchCode`** - +
+ +#### `bankBranchCode` +
+スキーマ ```json { @@ -220,9 +260,12 @@ Request request = new CreateOrganization( } ``` -**`bankAccountType`** - +
+#### `bankAccountType` + +
+スキーマ ```json { @@ -235,9 +278,12 @@ Request request = new CreateOrganization( } ``` -**`bankAccount`** - +
+ +#### `bankAccount` +
+スキーマ ```json { @@ -247,9 +293,12 @@ Request request = new CreateOrganization( } ``` -**`bankAccountHolderName`** - +
+ +#### `bankAccountHolderName` +
+スキーマ ```json { @@ -259,9 +308,12 @@ Request request = new CreateOrganization( } ``` -**`contactName`** - +
+#### `contactName` + +
+スキーマ ```json { @@ -270,6 +322,8 @@ Request request = new CreateOrganization( } ``` +
+ 成功したときは diff --git a/docs/private_money.md b/docs/private_money.md index 622fef6..0a22cca 100644 --- a/docs/private_money.md +++ b/docs/private_money.md @@ -17,11 +17,12 @@ Request request = new GetPrivateMoneys() ### Parameters -**`organizationCode`** - - +#### `organizationCode` パートナーキーの管理者が発行体組織に属している場合、発行マネーのうち、この組織コードで指定した決済加盟店組織が加盟しているマネーの一覧を返します。決済加盟店組織の管理者は自組織以外を指定することはできません。 +
+スキーマ + ```json { "type": "string", @@ -30,9 +31,12 @@ Request request = new GetPrivateMoneys() } ``` -**`page`** - +
+#### `page` + +
+スキーマ ```json { @@ -41,9 +45,12 @@ Request request = new GetPrivateMoneys() } ``` -**`perPage`** - +
+ +#### `perPage` +
+スキーマ ```json { @@ -52,6 +59,8 @@ Request request = new GetPrivateMoneys() } ``` +
+ 成功したときは @@ -76,8 +85,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-09-13T03:25:48.000000Z") // 開始日時(toと同時に指定する必要有) + .to("2021-01-19T17:09:25.000000Z") // 終了日時(fromと同時に指定する必要有) .page(1) // ページ番号 .perPage(50); // 1ページ分の取引数 @@ -87,9 +96,10 @@ Request request = new GetPrivateMoneyOrganizationSummaries( ### Parameters -**`privateMoneyId`** - +#### `privateMoneyId` +
+スキーマ ```json { @@ -98,9 +108,12 @@ Request request = new GetPrivateMoneyOrganizationSummaries( } ``` -**`from`** - +
+ +#### `from` +
+スキーマ ```json { @@ -109,9 +122,12 @@ Request request = new GetPrivateMoneyOrganizationSummaries( } ``` -**`to`** - +
+ +#### `to` +
+スキーマ ```json { @@ -120,9 +136,12 @@ Request request = new GetPrivateMoneyOrganizationSummaries( } ``` -**`page`** - +
+#### `page` + +
+スキーマ ```json { @@ -131,9 +150,12 @@ Request request = new GetPrivateMoneyOrganizationSummaries( } ``` -**`perPage`** - +
+ +#### `perPage` +
+スキーマ ```json { @@ -142,6 +164,8 @@ Request request = new GetPrivateMoneyOrganizationSummaries( } ``` +
+ 成功したときは @@ -160,17 +184,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("2021-08-10T15:37:57.000000Z") // 開始日時 + .to("2022-10-22T07:55:07.000000Z"); // 終了日時 ``` ### Parameters -**`privateMoneyId`** - +#### `privateMoneyId` +
+スキーマ ```json { @@ -179,9 +204,12 @@ Request request = new GetPrivateMoneySummary( } ``` -**`from`** - +
+#### `from` + +
+スキーマ ```json { @@ -190,9 +218,12 @@ Request request = new GetPrivateMoneySummary( } ``` -**`to`** - +
+ +#### `to` +
+スキーマ ```json { @@ -201,6 +232,8 @@ Request request = new GetPrivateMoneySummary( } ``` +
+ 成功したときは diff --git a/docs/responses.md b/docs/responses.md index 5b3cb83..7f96ab4 100644 --- a/docs/responses.md +++ b/docs/responses.md @@ -1,4 +1,9 @@ # Responses + +## CreditSession +* `getId() String`: +* `getExpiresAt() String`: + ## AccountWithUser * `getId() String`: @@ -43,6 +48,7 @@ * `getAccount() AccountWithUser`: 支払いQRコード発行ウォレット * `isDisabled() boolean`: 無効化されているかどうか * `getToken() String`: 支払いQRコードを解析したときに出てくるURL +* `getCreatedAt() String`: 支払いQRコードの作成日時 `getAccount`は [AccountWithUser](#account-with-user) クラスのインスタンスを返します。 @@ -161,6 +167,16 @@ `getTransfers`は [Transfer](#transfer) クラスのインスタンスの配列を返します。 + +## TransactionGroup +* `getId() String`: トランザクショングループID +* `getName() String`: トランザクショングループ名 +* `getCreatedAt() String`: 作成日時 +* `getUpdatedAt() String`: 更新日時 +* `getTransactions() Transaction[]`: グループに属する取引一覧 + +`getTransactions`は [Transaction](#transaction) クラスのインスタンスの配列を返します。 + ## ShopWithAccounts * `getId() String`: 店舗ID @@ -273,6 +289,9 @@ `getRows`は [Bank](#bank) クラスのインスタンスの配列を返します。 + +## BankDeleted + ## PaginatedTransaction * `getRows() Transaction[]`: @@ -293,6 +312,16 @@ `getRows`は [Transaction](#transaction) クラスのインスタンスの配列を返します。 + +## PaginatedBillTransaction +* `getRows() BillTransaction[]`: +* `getPerPage() int`: +* `getCount() int`: +* `getNextPageCursorId() String`: +* `getPrevPageCursorId() String`: + +`getRows`は [BillTransaction](#bill-transaction) クラスのインスタンスの配列を返します。 + ## PaginatedTransfers * `getRows() Transfer[]`: @@ -461,6 +490,8 @@ * `getCouponImage() String`: クーポン画像のURL * `getAvailableShops() User[]`: 利用可能店舗リスト * `getPrivateMoney() PrivateMoney`: クーポンのマネー +* `getNumRecipientsCap() int`: クーポンを受け取ることができるユーザ数上限 +* `getNumRecipients() int`: クーポンを受け取ったユーザ数 `getIssuedShop`は [User](#user) クラスのインスタンスを返します。 @@ -657,6 +688,15 @@ `getPrivateMoney`は [PrivateMoney](#private-money) クラスのインスタンスを返します。 + +## BillTransaction +* `getTransaction() Transaction`: +* `getBill() Bill`: + +`getTransaction`は [Transaction](#transaction) クラスのインスタンスを返します。 + +`getBill`は [Bill](#bill) クラスのインスタンスを返します。 + ## AccountBalance * `getExpiresAt() String`: @@ -703,6 +743,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 741b540..e822496 100644 --- a/docs/seven_bank_atm_session.md +++ b/docs/seven_bank_atm_session.md @@ -8,7 +8,7 @@ ```JAVA Request request = new GetSevenBankATMSession( - "ZBysF" // qrInfo: QRコードの情報 + "M" // qrInfo: QRコードの情報 ); ``` @@ -16,17 +16,20 @@ Request request = new GetSevenBankATMSession( ### Parameters -**`qrInfo`** - - +#### `qrInfo` 取得するセブン銀行ATMチャージのQRコードの情報です。 +
+スキーマ + ```json { "type": "string" } ``` +
+ 成功したときは diff --git a/docs/shop.md b/docs/shop.md index 6e8b15e..03a247b 100644 --- a/docs/shop.md +++ b/docs/shop.md @@ -8,12 +8,12 @@ Request request = new ListShops() .organizationCode("pocketchange") // 組織コード .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID .name("oxスーパー三田店") // 店舗名 - .postalCode("3903470") // 店舗の郵便番号 + .postalCode("430-8040") // 店舗の郵便番号 .address("東京都港区芝...") // 店舗の住所 - .tel("0341-24862") // 店舗の電話番号 - .email("5mN9clYyKl@8cUs.com") // 店舗のメールアドレス - .externalId("Yw8CW8rHVcmWZsjKlFT0f7di") // 店舗の外部ID - .withDisabled(true) // 無効な店舗を含める + .tel("053157027674") // 店舗の電話番号 + .email("ADg0EGo2tY@0BvA.com") // 店舗のメールアドレス + .externalId("rU") // 店舗の外部ID + .withDisabled(false) // 無効な店舗を含める .page(1) // ページ番号 .perPage(50); // 1ページ分の取引数 @@ -22,12 +22,13 @@ Request request = new ListShops() ### Parameters -**`organizationCode`** - - +#### `organizationCode` このパラメータを渡すとその組織の店舗のみが返され、省略すると加盟店も含む店舗が返されます。 +
+スキーマ + ```json { "type": "string", @@ -36,12 +37,15 @@ Request request = new ListShops() } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` このパラメータを渡すとそのマネーのウォレットを持つ店舗のみが返されます。 +
+スキーマ + ```json { "type": "string", @@ -49,12 +53,15 @@ Request request = new ListShops() } ``` -**`name`** - +
+#### `name` このパラメータを渡すとその名前の店舗のみが返されます。 +
+スキーマ + ```json { "type": "string", @@ -63,12 +70,15 @@ Request request = new ListShops() } ``` -**`postalCode`** - +
+#### `postalCode` このパラメータを渡すとその郵便番号が登録された店舗のみが返されます。 +
+スキーマ + ```json { "type": "string", @@ -76,12 +86,15 @@ Request request = new ListShops() } ``` -**`address`** - +
+#### `address` このパラメータを渡すとその住所が登録された店舗のみが返されます。 +
+スキーマ + ```json { "type": "string", @@ -89,12 +102,15 @@ Request request = new ListShops() } ``` -**`tel`** - +
+#### `tel` このパラメータを渡すとその電話番号が登録された店舗のみが返されます。 +
+スキーマ + ```json { "type": "string", @@ -102,12 +118,15 @@ Request request = new ListShops() } ``` -**`email`** - +
+#### `email` このパラメータを渡すとそのメールアドレスが登録された店舗のみが返されます。 +
+スキーマ + ```json { "type": "string", @@ -116,12 +135,15 @@ Request request = new ListShops() } ``` -**`externalId`** - +
+#### `externalId` このパラメータを渡すとその外部IDが登録された店舗のみが返されます。 +
+スキーマ + ```json { "type": "string", @@ -129,23 +151,29 @@ Request request = new ListShops() } ``` -**`withDisabled`** - +
+#### `withDisabled` このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -153,11 +181,14 @@ Request request = new ListShops() } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -165,6 +196,8 @@ Request request = new ListShops() } ``` +
+ 成功したときは @@ -192,11 +225,11 @@ Request request = new ListShops() Request request = new CreateShop( "oxスーパー三田店" // shopName: 店舗名 ) - .shopPostalCode("720-9003") // 店舗の郵便番号 + .shopPostalCode("4338032") // 店舗の郵便番号 .shopAddress("東京都港区芝...") // 店舗の住所 - .shopTel("06-5528-1163") // 店舗の電話番号 - .shopEmail("Ory7pQcwkQ@vvHf.com") // 店舗のメールアドレス - .shopExternalId("ZTUiaSBniTvgiFcfFWfXo") // 店舗の外部ID + .shopTel("0237314-319") // 店舗の電話番号 + .shopEmail("hEQlphw1Dk@mThP.com") // 店舗のメールアドレス + .shopExternalId("dPA7X1r8JT") // 店舗の外部ID .organizationCode("ox-supermarket"); // 組織コード ``` @@ -204,9 +237,10 @@ Request request = new CreateShop( ### Parameters -**`shopName`** - +#### `shopName` +
+スキーマ ```json { @@ -216,9 +250,12 @@ Request request = new CreateShop( } ``` -**`shopPostalCode`** - +
+ +#### `shopPostalCode` +
+スキーマ ```json { @@ -227,9 +264,12 @@ Request request = new CreateShop( } ``` -**`shopAddress`** - +
+#### `shopAddress` + +
+スキーマ ```json { @@ -238,9 +278,12 @@ Request request = new CreateShop( } ``` -**`shopTel`** - +
+ +#### `shopTel` +
+スキーマ ```json { @@ -249,9 +292,12 @@ Request request = new CreateShop( } ``` -**`shopEmail`** - +
+ +#### `shopEmail` +
+スキーマ ```json { @@ -261,9 +307,12 @@ Request request = new CreateShop( } ``` -**`shopExternalId`** - +
+#### `shopExternalId` + +
+スキーマ ```json { @@ -272,9 +321,12 @@ Request request = new CreateShop( } ``` -**`organizationCode`** - +
+ +#### `organizationCode` +
+スキーマ ```json { @@ -284,6 +336,8 @@ Request request = new CreateShop( } ``` +
+ 成功したときは @@ -312,27 +366,28 @@ Request request = new CreateShop( Request request = new CreateShopV2( "oxスーパー三田店" // name: 店舗名 ) - .postalCode("8426726") // 店舗の郵便番号 + .postalCode("093-1875") // 店舗の郵便番号 .address("東京都港区芝...") // 店舗の住所 - .tel("02-11-332") // 店舗の電話番号 - .email("xSJQCC2TKE@3m70.com") // 店舗のメールアドレス - .externalId("u0i2E7e3WCog3HknLhb4mGHjaX24j") // 店舗の外部ID + .tel("08292-822") // 店舗の電話番号 + .email("cNMgqN77FQ@wuiG.com") // 店舗のメールアドレス + .externalId("W4pnFSkfz0ZAYuHKEr") // 店舗の外部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","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}); // 店舗でチャージ可能にするマネーIDの配列 ``` ### Parameters -**`name`** - - +#### `name` 店舗名です。 同一組織内に同名の店舗があった場合は`name_conflict`エラーが返ります。 +
+スキーマ + ```json { "type": "string", @@ -341,9 +396,12 @@ Request request = new CreateShopV2( } ``` -**`postalCode`** - +
+#### `postalCode` + +
+スキーマ ```json { @@ -352,9 +410,12 @@ Request request = new CreateShopV2( } ``` -**`address`** - +
+ +#### `address` +
+スキーマ ```json { @@ -363,9 +424,12 @@ Request request = new CreateShopV2( } ``` -**`tel`** - +
+ +#### `tel` +
+スキーマ ```json { @@ -374,9 +438,12 @@ Request request = new CreateShopV2( } ``` -**`email`** - +
+#### `email` + +
+スキーマ ```json { @@ -386,9 +453,12 @@ Request request = new CreateShopV2( } ``` -**`externalId`** - +
+ +#### `externalId` +
+スキーマ ```json { @@ -397,9 +467,12 @@ Request request = new CreateShopV2( } ``` -**`organizationCode`** - +
+ +#### `organizationCode` +
+スキーマ ```json { @@ -409,14 +482,17 @@ Request request = new CreateShopV2( } ``` -**`privateMoneyIds`** - +
+#### `privateMoneyIds` 店舗で有効にするマネーIDの配列を指定します。 店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。 このパラメータを省略したときは、店舗が所属する組織が発行または加盟している全てのマネーのウォレットができます。 +
+スキーマ + ```json { "type": "array", @@ -428,14 +504,17 @@ Request request = new CreateShopV2( } ``` -**`canTopupPrivateMoneyIds`** - +
+#### `canTopupPrivateMoneyIds` 店舗でチャージ可能にするマネーIDの配列を指定します。 このパラメータは発行体のみが指定でき、自身が発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。 省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。 +
+スキーマ + ```json { "type": "array", @@ -447,6 +526,8 @@ Request request = new CreateShopV2( } ``` +
+ 成功したときは @@ -485,9 +566,10 @@ Request request = new GetShop( ### Parameters -**`shopId`** - +#### `shopId` +
+スキーマ ```json { @@ -496,6 +578,8 @@ Request request = new GetShop( } ``` +
+ 成功したときは @@ -516,23 +600,24 @@ Request request = new UpdateShop( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // shopId: 店舗ユーザーID ) .name("oxスーパー三田店") // 店舗名 - .postalCode("6312761") // 店舗の郵便番号 + .postalCode("180-8467") // 店舗の郵便番号 .address("東京都港区芝...") // 店舗の住所 - .tel("01441419") // 店舗の電話番号 - .email("pgFNSux0je@obdQ.com") // 店舗のメールアドレス - .externalId("1VXjU") // 店舗の外部ID - .privateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗で有効にするマネーIDの配列 - .canTopupPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗でチャージ可能にするマネーIDの配列 - .status("disabled"); // 店舗の状態 + .tel("082780-1734") // 店舗の電話番号 + .email("xt1HL4wWzm@kMDA.com") // 店舗のメールアドレス + .externalId("VfWD13Zj3L9DQPYajb0t") // 店舗の外部ID + .privateMoneyIds(new String[]{}) // 店舗で有効にするマネーIDの配列 + .canTopupPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗でチャージ可能にするマネーIDの配列 + .status("active"); // 店舗の状態 ``` ### Parameters -**`shopId`** - +#### `shopId` +
+スキーマ ```json { @@ -541,13 +626,16 @@ Request request = new UpdateShop( } ``` -**`name`** - +
+#### `name` 店舗名です。 同一組織内に同名の店舗があった場合は`shop_name_conflict`エラーが返ります。 +
+スキーマ + ```json { "type": "string", @@ -556,11 +644,14 @@ Request request = new UpdateShop( } ``` -**`postalCode`** - +
+#### `postalCode` 店舗住所の郵便番号(7桁の数字)です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -568,9 +659,12 @@ Request request = new UpdateShop( } ``` -**`address`** - +
+ +#### `address` +
+スキーマ ```json { @@ -579,11 +673,14 @@ Request request = new UpdateShop( } ``` -**`tel`** - +
+#### `tel` 店舗の電話番号です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -591,11 +688,14 @@ Request request = new UpdateShop( } ``` -**`email`** - +
+#### `email` 店舗の連絡先メールアドレスです。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -604,11 +704,14 @@ Request request = new UpdateShop( } ``` -**`externalId`** - +
+#### `externalId` 店舗の外部IDです(最大36文字)。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -616,14 +719,17 @@ Request request = new UpdateShop( } ``` -**`privateMoneyIds`** - +
+#### `privateMoneyIds` 店舗で有効にするマネーIDの配列を指定します。 店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。 店舗が既にウォレットを持っている場合に、ここでそのウォレットのマネーIDを指定しないで更新すると、そのマネーのウォレットは凍結(無効化)されます。 +
+スキーマ + ```json { "type": "array", @@ -635,14 +741,17 @@ Request request = new UpdateShop( } ``` -**`canTopupPrivateMoneyIds`** - +
+#### `canTopupPrivateMoneyIds` 店舗でチャージ可能にするマネーIDの配列を指定します。 このパラメータは発行体のみが指定でき、発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。 省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。 +
+スキーマ + ```json { "type": "array", @@ -654,11 +763,14 @@ Request request = new UpdateShop( } ``` -**`status`** - +
+#### `status` 店舗の状態です。activeを指定すると有効となり、disabledを指定するとリスト表示から除外されます。 +
+スキーマ + ```json { "type": "string", @@ -669,6 +781,8 @@ Request request = new UpdateShop( } ``` +
+ 成功したときは diff --git a/docs/transaction.md b/docs/transaction.md index 4119302..480ef9a 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -6,7 +6,7 @@ CPMトークンの現在の状態を取得します。CPMトークンの有効 ```JAVA Request request = new GetCpmToken( - "l7UfMqNeIWxDQ5mYkDBp76" // cpmToken: CPMトークン + "Bkey7pr4d2jpaf36YY6mrG" // cpmToken: CPMトークン ); ``` @@ -14,11 +14,12 @@ Request request = new GetCpmToken( ### Parameters -**`cpmToken`** - - +#### `cpmToken` CPM取引時にエンドユーザーが店舗に提示するバーコードを解析して得られる22桁の文字列です。 +
+スキーマ + ```json { "type": "string", @@ -27,6 +28,8 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを } ``` +
+ 成功したときは @@ -44,15 +47,15 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを ```JAVA Request request = new ListTransactions() - .from("2020-04-18T09:50:55.000000Z") // 開始日時 - .to("2022-09-23T18:31:36.000000Z") // 終了日時 + .from("2024-02-18T10:13:13.000000Z") // 開始日時 + .to("2022-07-31T17:23:38.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("2ztoKUUUx5") // 取引ID .organizationCode("pocketchange") // 組織コード .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID .setModified(true) // キャンセルフラグ @@ -64,13 +67,14 @@ Request request = new ListTransactions() ### Parameters -**`from`** - - +#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -78,13 +82,16 @@ Request request = new ListTransactions() } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -92,11 +99,14 @@ Request request = new ListTransactions() } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -104,11 +114,14 @@ Request request = new ListTransactions() } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -116,13 +129,16 @@ Request request = new ListTransactions() } ``` -**`shopId`** - +
+#### `shopId` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -130,13 +146,16 @@ Request request = new ListTransactions() } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -144,13 +163,16 @@ Request request = new ListTransactions() } ``` -**`customerName`** - +
+#### `customerName` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -158,13 +180,16 @@ Request request = new ListTransactions() } ``` -**`terminalId`** - +
+#### `terminalId` 端末IDです。 フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -172,26 +197,32 @@ Request request = new ListTransactions() } ``` -**`transactionId`** - +
+#### `transactionId` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string" } ``` -**`organizationCode`** - +
+#### `organizationCode` 組織コードです。 フィルターとして使われ、指定された組織での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -200,13 +231,16 @@ Request request = new ListTransactions() } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -214,23 +248,26 @@ Request request = new ListTransactions() } ``` -**`setModified`** - +
+#### `setModified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`types`** - +
+#### `types` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -253,6 +290,9 @@ Request request = new ListTransactions() 6. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -270,13 +310,16 @@ Request request = new ListTransactions() } ``` -**`description`** - +
+#### `description` 取引を指定の取引説明文でフィルターします。 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -284,6 +327,8 @@ Request request = new ListTransactions() } ``` +
+ 成功したときは @@ -311,19 +356,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(1300) + .pointAmount(1804) + .pointExpiresAt("2024-10-16T20:48:49.000000Z") // ポイント有効期限 + .description("SO8xEgnoe60dnWTCVmm3x115QsBZT6dCGgqZsePkl6iY0bdXM6Nza2rTctUJQmh0gNd3qkWY4lVW5zCUF3zWzIdrHm6OsiyHBxs"); ``` ### Parameters -**`shopId`** - +#### `shopId` +
+スキーマ ```json { @@ -332,9 +378,12 @@ Request request = new CreateTransaction( } ``` -**`customerId`** - +
+#### `customerId` + +
+スキーマ ```json { @@ -343,9 +392,12 @@ Request request = new CreateTransaction( } ``` -**`privateMoneyId`** - +
+ +#### `privateMoneyId` +
+スキーマ ```json { @@ -354,9 +406,12 @@ Request request = new CreateTransaction( } ``` -**`moneyAmount`** - +
+#### `moneyAmount` + +
+スキーマ ```json { @@ -366,9 +421,12 @@ Request request = new CreateTransaction( } ``` -**`pointAmount`** - +
+ +#### `pointAmount` +
+スキーマ ```json { @@ -378,12 +436,15 @@ Request request = new CreateTransaction( } ``` -**`pointExpiresAt`** - +
+#### `pointExpiresAt` ポイントをチャージした場合の、付与されるポイントの有効期限です。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -391,9 +452,12 @@ Request request = new CreateTransaction( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -402,6 +466,8 @@ Request request = new CreateTransaction( } ``` +
+ 成功したときは @@ -417,6 +483,9 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|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 +495,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.| @@ -450,6 +525,93 @@ Request request = new CreateTransaction( +--- + + + +## CreateTransactionGroup: トランザクショングループを作成する +複数の取引を1つのグループとして管理できるようにします。 + +```JAVA +Request request = new CreateTransactionGroup( + "Btx4G7cLViMByCBNzcDCX5bb" // 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 +628,11 @@ Request request = new ListTransactionsV2() .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID .customerName("太郎") // エンドユーザー名 .description("店頭QRコードによる支払い") // 取引説明文 - .transactionId("peG") // 取引ID + .transactionId("PzVU") // 取引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("2024-12-28T08:29:25.000000Z") // 開始日時 + .to("2021-05-03T18:48:58.000000Z") // 終了日時 .nextPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 次ページへ遷移する際に起点となるtransactionのID .prevPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 前ページへ遷移する際に起点となるtransactionのID .perPage(50); // 1ページ分の取引数 @@ -480,13 +642,14 @@ Request request = new ListTransactionsV2() ### Parameters -**`privateMoneyId`** - - +#### `privateMoneyId` マネーIDです。 指定したマネーでの取引が一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -494,13 +657,16 @@ Request request = new ListTransactionsV2() } ``` -**`organizationCode`** - +
+#### `organizationCode` 組織コードです。 フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -509,13 +675,16 @@ Request request = new ListTransactionsV2() } ``` -**`shopId`** - +
+#### `shopId` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -523,13 +692,16 @@ Request request = new ListTransactionsV2() } ``` -**`terminalId`** - +
+#### `terminalId` 端末IDです。 フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -537,13 +709,16 @@ Request request = new ListTransactionsV2() } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -551,13 +726,16 @@ Request request = new ListTransactionsV2() } ``` -**`customerName`** - +
+#### `customerName` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -565,13 +743,16 @@ Request request = new ListTransactionsV2() } ``` -**`description`** - +
+#### `description` 取引を指定の取引説明文でフィルターします。 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -579,36 +760,42 @@ Request request = new ListTransactionsV2() } ``` -**`transactionId`** - +
+#### `transactionId` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string" } ``` -**`setModified`** - +
+#### `setModified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`types`** - +
+#### `types` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -635,6 +822,9 @@ Request request = new ListTransactionsV2() 6. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -652,13 +842,16 @@ Request request = new ListTransactionsV2() } ``` -**`from`** - +
+#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -666,13 +859,16 @@ Request request = new ListTransactionsV2() } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -680,15 +876,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 +895,9 @@ next_page_cursor_idのtransaction自体は次のページには含まれませ } ``` -**`prevPageCursorId`** - +
+#### `prevPageCursorId` 前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 @@ -706,6 +905,9 @@ UUIDである場合は前のページが存在することを意味し、このp prev_page_cursor_idのtransaction自体は前のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -713,13 +915,16 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取引数です。 デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -728,6 +933,8 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ } ``` +
+ 成功したときは @@ -742,6 +949,311 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ +--- + + + +## 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("2024-12-08T05:22:25.000000Z") // 開始日時 + .to("2024-08-27T15:30:58.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に部分一致(前方一致)する取引のみが一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `setModified` +キャンセルフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + +
+スキーマ + +```json +{ + "type": "boolean" +} +``` + +
+ +#### `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 +} +``` + +
+ + + +成功したときは +[PaginatedBillTransaction](./responses.md#paginated-bill-transaction) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|503|temporarily_unavailable||Service Unavailable| + + + --- @@ -756,9 +1268,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(1291) // マネー額 + .pointAmount(4000) // ポイント額 + .pointExpiresAt("2025-05-29T13:29:38.000000Z") // ポイント有効期限 .description("初夏のチャージキャンペーン") // 取引履歴に表示する説明文 .metadata("{\"key\":\"value\"}") // 取引メタデータ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID @@ -768,13 +1280,14 @@ Request request = new CreateTopupTransaction( ### Parameters -**`shopId`** - - +#### `shopId` 店舗IDです。 送金元の店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -782,13 +1295,16 @@ Request request = new CreateTopupTransaction( } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 送金先のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -796,13 +1312,16 @@ Request request = new CreateTopupTransaction( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -810,13 +1329,16 @@ Request request = new CreateTopupTransaction( } ``` -**`bearPointShopId`** - +
+#### `bearPointShopId` ポイント支払時の負担店舗IDです。 ポイント支払い時に実際お金を負担する店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -824,14 +1346,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 +1364,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 +1382,15 @@ Request request = new CreateTopupTransaction( } ``` -**`pointExpiresAt`** - +
+#### `pointExpiresAt` ポイントをチャージした場合の、付与されるポイントの有効期限です。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -867,13 +1398,16 @@ Request request = new CreateTopupTransaction( } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -881,13 +1415,16 @@ Request request = new CreateTopupTransaction( } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -895,9 +1432,9 @@ Request request = new CreateTopupTransaction( } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -905,6 +1442,9 @@ Request request = new CreateTopupTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -912,6 +1452,8 @@ Request request = new CreateTopupTransaction( } ``` +
+ 成功したときは @@ -924,7 +1466,10 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|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 +1479,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,6 +1503,8 @@ 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|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| @@ -998,26 +1550,28 @@ 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: 支払い額 + 8279 // amount: 支払い額 ) .description("たい焼き(小倉)") // 取引履歴に表示する説明文 .metadata("{\"key\":\"value\"}") // 取引メタデータ .products(new Object[]{items,items2,items3}) // 商品情報データ .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 +1579,16 @@ Request request = new CreatePaymentTransaction( } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 送金元のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1039,13 +1596,16 @@ Request request = new CreatePaymentTransaction( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1053,13 +1613,16 @@ Request request = new CreatePaymentTransaction( } ``` -**`amount`** - +
+#### `amount` マネー額です。 送金するマネー額を指定します。 +
+スキーマ + ```json { "type": "integer", @@ -1067,13 +1630,16 @@ Request request = new CreatePaymentTransaction( } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -1081,13 +1647,16 @@ Request request = new CreatePaymentTransaction( } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1095,9 +1664,9 @@ Request request = new CreatePaymentTransaction( } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -1109,6 +1678,9 @@ Request request = new CreatePaymentTransaction( - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -1118,9 +1690,9 @@ Request request = new CreatePaymentTransaction( } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1128,6 +1700,9 @@ Request request = new CreatePaymentTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1135,9 +1710,9 @@ Request request = new CreatePaymentTransaction( } ``` -**`strategy`** - +
+#### `strategy` 支払い時に残高がどのように消費されるかを指定します。 デフォルトでは point-preferred (ポイント優先)が採用されます。 @@ -1146,6 +1721,9 @@ Request request = new CreatePaymentTransaction( マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 +
+スキーマ + ```json { "type": "string", @@ -1156,6 +1734,23 @@ Request request = new CreatePaymentTransaction( } ``` +
+ +#### `couponId` +支払いに対して適用するクーポンのIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ 成功したときは @@ -1166,7 +1761,10 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|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,6 +1798,8 @@ 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|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| @@ -1228,22 +1833,14 @@ 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 CreateCpmTransaction( - "NKIGuoyWD3BHeU5bcdtREm", // cpmToken: CPMトークン + "p2XUNEsAtEjlivj0Nhalsa", // cpmToken: CPMトークン "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID - 1095.0 // amount: 取引金額 + 8182.0 // amount: 取引金額 ) .description("たい焼き(小倉)") // 取引説明文 .metadata("{\"key\":\"value\"}") // 店舗側メタデータ - .products(new Object[]{items,items2,items3}) // 商品情報データ + .products(new Object[]{items,items2}) // 商品情報データ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID .strategy("point-preferred"); // 支払い時の残高消費方式 @@ -1252,13 +1849,14 @@ Request request = new CreateCpmTransaction( ### Parameters -**`cpmToken`** - - +#### `cpmToken` エンドユーザーによって作られ、アプリなどに表示され、店舗に対して提示される22桁の文字列です。 エンドユーザーによって許可された取引のスコープを持っています。 +
+スキーマ + ```json { "type": "string", @@ -1267,13 +1865,16 @@ Request request = new CreateCpmTransaction( } ``` -**`shopId`** - +
+#### `shopId` 店舗IDです。 支払いやチャージを行う店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1281,26 +1882,32 @@ Request request = new CreateCpmTransaction( } ``` -**`amount`** - +
+#### `amount` 取引金額を指定します。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` 取引説明文です。 エンドユーザーアプリの取引履歴などに表示されます。 +
+スキーマ + ```json { "type": "string", @@ -1308,13 +1915,16 @@ Request request = new CreateCpmTransaction( } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に店舗側から指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1322,9 +1932,9 @@ Request request = new CreateCpmTransaction( } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -1336,6 +1946,9 @@ Request request = new CreateCpmTransaction( - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -1345,9 +1958,9 @@ Request request = new CreateCpmTransaction( } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1355,6 +1968,9 @@ Request request = new CreateCpmTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1362,9 +1978,9 @@ Request request = new CreateCpmTransaction( } ``` -**`strategy`** - +
+#### `strategy` 支払い時に残高がどのように消費されるかを指定します。 デフォルトでは point-preferred (ポイント優先)が採用されます。 @@ -1373,6 +1989,9 @@ Request request = new CreateCpmTransaction( マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 +
+スキーマ + ```json { "type": "string", @@ -1383,6 +2002,8 @@ Request request = new CreateCpmTransaction( } ``` +
+ 成功したときは @@ -1399,7 +2020,10 @@ Request request = new CreateCpmTransaction( |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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|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 +2033,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.| @@ -1430,6 +2059,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| @@ -1448,7 +2079,7 @@ 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: 送金額 + 8932.0 // amount: 送金額 ) .metadata("{\"key\":\"value\"}") // 取引メタデータ .description("たい焼き(小倉)") // 取引履歴に表示する説明文 @@ -1459,13 +2090,14 @@ Request request = new CreateTransferTransaction( ### Parameters -**`senderId`** - - +#### `senderId` エンドユーザーIDです。 送金元のエンドユーザー(送り主)を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1473,13 +2105,16 @@ Request request = new CreateTransferTransaction( } ``` -**`receiverId`** - +
+#### `receiverId` エンドユーザーIDです。 送金先のエンドユーザー(受け取り人)を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1487,13 +2122,16 @@ Request request = new CreateTransferTransaction( } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1501,13 +2139,16 @@ Request request = new CreateTransferTransaction( } ``` -**`amount`** - +
+#### `amount` マネー額です。 送金するマネー額を指定します。 +
+スキーマ + ```json { "type": "number", @@ -1515,13 +2156,16 @@ Request request = new CreateTransferTransaction( } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1529,13 +2173,16 @@ Request request = new CreateTransferTransaction( } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -1543,9 +2190,9 @@ Request request = new CreateTransferTransaction( } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1553,6 +2200,9 @@ Request request = new CreateTransferTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1560,6 +2210,8 @@ Request request = new CreateTransferTransaction( } ``` +
+ 成功したときは @@ -1572,7 +2224,10 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|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 +2237,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.| @@ -1603,6 +2263,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 +2280,9 @@ Request request = new CreateExchangeTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 961 + 246 ) - .description("PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7V") + .description("Xynvh05rJdAnnKPkjJzRbGyuQYyb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qpLKYfd3JbJX5QcdKyJ1DmsToKu4w1tRUaP7awM87Mt7bWysOyzqkBrGaMjb1sugqjEeek3DeIDBfKsRBbYLkU2TfJXzuBqGFPReFsmxaxT8Xwuc649") .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID ``` @@ -1628,9 +2290,10 @@ Request request = new CreateExchangeTransaction( ### Parameters -**`userId`** - +#### `userId` +
+スキーマ ```json { @@ -1639,9 +2302,12 @@ Request request = new CreateExchangeTransaction( } ``` -**`senderPrivateMoneyId`** - +
+ +#### `senderPrivateMoneyId` +
+スキーマ ```json { @@ -1650,9 +2316,12 @@ Request request = new CreateExchangeTransaction( } ``` -**`receiverPrivateMoneyId`** - +
+#### `receiverPrivateMoneyId` + +
+スキーマ ```json { @@ -1661,9 +2330,12 @@ Request request = new CreateExchangeTransaction( } ``` -**`amount`** - +
+ +#### `amount` +
+スキーマ ```json { @@ -1672,9 +2344,12 @@ Request request = new CreateExchangeTransaction( } ``` -**`description`** - +
+#### `description` + +
+スキーマ ```json { @@ -1683,9 +2358,9 @@ Request request = new CreateExchangeTransaction( } ``` -**`requestId`** - +
+#### `requestId` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1693,6 +2368,9 @@ Request request = new CreateExchangeTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1700,6 +2378,8 @@ Request request = new CreateExchangeTransaction( } ``` +
+ 成功したときは @@ -1713,6 +2393,9 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|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 +2411,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 +2451,14 @@ Request request = new GetTransaction( ### Parameters -**`transactionId`** - - +#### `transactionId` 取引IDです。 フィルターとして使われ、指定した取引IDの取引を取得します。 +
+スキーマ + ```json { "type": "string", @@ -1776,6 +2466,8 @@ Request request = new GetTransaction( } ``` +
+ 成功したときは @@ -1802,16 +2494,17 @@ Request request = new RefundTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // transactionId: 取引ID ) .description("返品対応のため") // 取引履歴に表示する返金事由 - .returningPointExpiresAt("2020-03-20T07:43:18.000000Z"); // 返却ポイントの有効期限 + .returningPointExpiresAt("2024-03-16T01:23:09.000000Z"); // 返却ポイントの有効期限 ``` ### Parameters -**`transactionId`** - +#### `transactionId` +
+スキーマ ```json { @@ -1820,9 +2513,12 @@ Request request = new RefundTransaction( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -1831,11 +2527,14 @@ Request request = new RefundTransaction( } ``` -**`returningPointExpiresAt`** - +
+#### `returningPointExpiresAt` ポイント支払いを含む支払い取引をキャンセルする際にユーザへ返却されるポイントの有効期限です。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -1843,6 +2542,8 @@ Request request = new RefundTransaction( } ``` +
+ 成功したときは @@ -1868,13 +2569,14 @@ Request request = new GetTransactionByRequestId( ### Parameters -**`requestId`** - - +#### `requestId` 取引作成時にクライアントが生成し指定するリクエストIDです。 リクエストIDに対応する取引が存在すればその取引を返し、無ければNotFound(404)を返します。 +
+スキーマ + ```json { "type": "string", @@ -1882,6 +2584,8 @@ Request request = new GetTransactionByRequestId( } ``` +
+ 成功したときは @@ -1906,12 +2610,13 @@ Request request = new GetBulkTransaction( ### Parameters -**`bulkTransactionId`** - - +#### `bulkTransactionId` バルク取引ジョブIDです。 バルク取引ジョブ登録時にレスポンスに含まれます。 +
+スキーマ + ```json { "type": "string", @@ -1919,6 +2624,8 @@ Request request = new GetBulkTransaction( } ``` +
+ 成功したときは @@ -1945,12 +2652,13 @@ Request request = new ListBulkTransactionJobs( ### Parameters -**`bulkTransactionId`** - - +#### `bulkTransactionId` バルク取引ジョブIDです。 バルク取引ジョブ登録時にレスポンスに含まれます。 +
+スキーマ + ```json { "type": "string", @@ -1958,11 +2666,14 @@ Request request = new ListBulkTransactionJobs( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -1970,11 +2681,14 @@ Request request = new ListBulkTransactionJobs( } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -1982,6 +2696,8 @@ Request request = new ListBulkTransactionJobs( } ``` +
+ 成功したときは @@ -2023,12 +2739,13 @@ Request request = new RequestUserStats( ### Parameters -**`from`** - - +#### `from` 集計する期間の開始時刻をISO8601形式で指定します。 時刻は現在時刻、及び `to` で指定する時刻以前である必要があります。 +
+スキーマ + ```json { "type": "string", @@ -2036,12 +2753,15 @@ Request request = new RequestUserStats( } ``` -**`to`** - +
+#### `to` 集計する期間の終了時刻をISO8601形式で指定します。 時刻は現在時刻、及び `from` で指定する時刻の間である必要があります。 +
+スキーマ + ```json { "type": "string", @@ -2049,6 +2769,8 @@ Request request = new RequestUserStats( } ``` +
+ 成功したときは @@ -2062,7 +2784,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 c6ceb53..071b576 100644 --- a/docs/transfer.md +++ b/docs/transfer.md @@ -8,8 +8,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("2025-02-28T06:17:08.000000Z") // 集計期間の開始時刻 + .to("2021-11-28T05:34:21.000000Z") // 集計期間の終了時刻 .transferTypes(new String[]{"topup","payment"}); // 取引明細種別 (複数指定可) ``` @@ -17,13 +17,14 @@ Request request = new GetAccountTransferSummary( ### Parameters -**`accountId`** - - +#### `accountId` ウォレットIDです。 ここで指定したウォレットIDの取引明細レベルでの集計を取得します。 +
+スキーマ + ```json { "type": "string", @@ -31,9 +32,12 @@ Request request = new GetAccountTransferSummary( } ``` -**`from`** - +
+ +#### `from` +
+スキーマ ```json { @@ -42,9 +46,12 @@ Request request = new GetAccountTransferSummary( } ``` -**`to`** - +
+#### `to` + +
+スキーマ ```json { @@ -53,9 +60,9 @@ Request request = new GetAccountTransferSummary( } ``` -**`transferTypes`** - +
+#### `transferTypes` 取引明細の種別でフィルターします。 以下の種別を指定できます。 @@ -84,6 +91,9 @@ Request request = new GetAccountTransferSummary( - refund-exchange-outflow 交換による他マネーへの流出取引に対するキャンセル取引 +
+スキーマ + ```json { "type": "array", @@ -107,6 +117,8 @@ Request request = new GetAccountTransferSummary( } ``` +
+ 成功したときは @@ -123,19 +135,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("2021-05-25T07:49:02.000000Z") + .to("2020-02-19T01:26:54.000000Z") + .page(4843) + .perPage(3060) .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") - .shopName("3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCx") + .shopName("qwxML0aHpiMuFL917lUTrE8EACTMWkW53") .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") - .customerName("ziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9") + .customerName("gnqE0TT1OD00WYy") .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"}) // 取引明細の種類でフィルターします。 + .setModified(true) + .transactionTypes(new String[]{"transfer","payment","topup"}) + .transferTypes(new String[]{"campaign","topup","payment","exchange","transfer","coupon"}) // 取引明細の種類でフィルターします。 .description("店頭QRコードによる支払い"); // 取引詳細説明文 ``` @@ -143,9 +155,10 @@ Request request = new ListTransfers() ### Parameters -**`from`** - +#### `from` +
+スキーマ ```json { @@ -154,9 +167,12 @@ Request request = new ListTransfers() } ``` -**`to`** - +
+ +#### `to` +
+スキーマ ```json { @@ -165,9 +181,12 @@ Request request = new ListTransfers() } ``` -**`page`** - +
+ +#### `page` +
+スキーマ ```json { @@ -176,9 +195,12 @@ Request request = new ListTransfers() } ``` -**`perPage`** - +
+#### `perPage` + +
+スキーマ ```json { @@ -187,9 +209,12 @@ Request request = new ListTransfers() } ``` -**`shopId`** - +
+ +#### `shopId` +
+スキーマ ```json { @@ -198,9 +223,12 @@ Request request = new ListTransfers() } ``` -**`shopName`** - +
+#### `shopName` + +
+スキーマ ```json { @@ -209,9 +237,12 @@ Request request = new ListTransfers() } ``` -**`customerId`** - +
+ +#### `customerId` +
+スキーマ ```json { @@ -220,9 +251,12 @@ Request request = new ListTransfers() } ``` -**`customerName`** - +
+ +#### `customerName` +
+スキーマ ```json { @@ -231,9 +265,12 @@ Request request = new ListTransfers() } ``` -**`transactionId`** - +
+#### `transactionId` + +
+スキーマ ```json { @@ -242,9 +279,12 @@ Request request = new ListTransfers() } ``` -**`privateMoneyId`** - +
+ +#### `privateMoneyId` +
+スキーマ ```json { @@ -253,9 +293,12 @@ Request request = new ListTransfers() } ``` -**`setModified`** - +
+#### `setModified` + +
+スキーマ ```json { @@ -263,9 +306,12 @@ Request request = new ListTransfers() } ``` -**`transactionTypes`** - +
+ +#### `transactionTypes` +
+スキーマ ```json { @@ -284,9 +330,9 @@ Request request = new ListTransfers() } ``` -**`transferTypes`** - +
+#### `transferTypes` 取引明細の種類でフィルターします。 以下の種類を指定できます。 @@ -312,6 +358,9 @@ Request request = new ListTransfers() 7. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -331,13 +380,16 @@ Request request = new ListTransfers() } ``` -**`description`** - +
+#### `description` 取引詳細を指定の取引詳細説明文でフィルターします。 取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -345,6 +397,8 @@ Request request = new ListTransfers() } ``` +
+ 成功したときは @@ -368,33 +422,34 @@ Request request = new ListTransfers() ```JAVA Request request = new ListTransfersV2() .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID - .shopName("pzYekawpUouvYHKlj0G") // 店舗名 + .shopName("KAlbrPQ0st0t7yJcv8GqBqgGEHafl1jNP9k7uydClg9A7an27PrVxBqiE9YWo8xjmzBGJVwTTanAXyFjLag") // 店舗名 .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID - .customerName("L0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLKUg3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7") // エンドユーザー名 + .customerName("gPPvlq0FFntKGY10p27NPGQTdAXKNGuLNgDO4Ma1ptA22IkyjkgPuZUMAq2NjJocNYKTrm2m1ssPqyT3XyCFCrR8uZnHFgU1ZOwuoeukDxIIOg9CcbCgtxt4qQAP06TDLYKBc2zPf6wToG8lTKcMPiFJX3LNKTomMc8wnROYRP673oHx5N3D") // エンドユーザー名 .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 + .setModified(true) // キャンセルフラグ + .transactionTypes(new String[]{"payment"}) // 取引種別 (複数指定可)、チャージ=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[]{"payment","expire","cashback","campaign"}) // 取引明細種別 (複数指定可) .description("店頭QRコードによる支払い") // 取引詳細説明文 - .from("2020-02-10T06:55:29.000000Z") // 開始日時 - .to("2024-03-31T15:07:15.000000Z"); // 終了日時 + .from("2022-11-19T09:17:00.000000Z") // 開始日時 + .to("2022-03-05T01:29:04.000000Z"); // 終了日時 ``` ### Parameters -**`shopId`** - - +#### `shopId` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -402,13 +457,16 @@ Request request = new ListTransfersV2() } ``` -**`shopName`** - +
+#### `shopName` 店舗名です。 フィルターとして使われ、入力された名前に部分一致する店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -416,13 +474,16 @@ Request request = new ListTransfersV2() } ``` -**`customerId`** - +
+#### `customerId` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -430,13 +491,16 @@ Request request = new ListTransfersV2() } ``` -**`customerName`** - +
+#### `customerName` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -444,13 +508,16 @@ Request request = new ListTransfersV2() } ``` -**`transactionId`** - +
+#### `transactionId` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -458,13 +525,16 @@ Request request = new ListTransfersV2() } ``` -**`privateMoneyId`** - +
+#### `privateMoneyId` マネーIDです。 指定したマネーでの取引が一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -472,23 +542,26 @@ Request request = new ListTransfersV2() } ``` -**`setModified`** - +
+#### `setModified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`transactionTypes`** - +
+#### `transactionTypes` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -515,6 +588,9 @@ Request request = new ListTransfersV2() 6. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -532,15 +608,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 +627,9 @@ next_page_cursor_idのtransfer自体は次のページには含まれません } ``` -**`prevPageCursorId`** - +
+#### `prevPageCursorId` 前ページへ遷移する際に起点となるtransferのID(次ページの先頭要素のID)です。 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 @@ -558,6 +637,9 @@ UUIDである場合は前のページが存在することを意味し、このp prev_page_cursor_idのtransfer自体は前のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -565,13 +647,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取引数です。 デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -580,9 +665,9 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`transferTypes`** - +
+#### `transferTypes` 取引明細の種類でフィルターします。 以下の種類を指定できます。 @@ -608,6 +693,9 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません 7. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -627,13 +715,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`description`** - +
+#### `description` 取引詳細を指定の取引詳細説明文でフィルターします。 取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -641,13 +732,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`from`** - +
+#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -655,13 +749,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -669,6 +766,8 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` +
+ 成功したときは diff --git a/docs/user_device.md b/docs/user_device.md index 7f88a82..612c270 100644 --- a/docs/user_device.md +++ b/docs/user_device.md @@ -19,9 +19,10 @@ Request request = new CreateUserDevice( ### Parameters -**`userId`** - +#### `userId` +
+スキーマ ```json { @@ -30,13 +31,16 @@ Request request = new CreateUserDevice( } ``` -**`metadata`** - +
+#### `metadata` ユーザーのデバイス用の情報をメタデータを保持するために用います。 例: 端末の固有情報やブラウザのUser-Agent +
+スキーマ + ```json { "type": "string", @@ -44,6 +48,8 @@ Request request = new CreateUserDevice( } ``` +
+ 成功したときは @@ -75,9 +81,10 @@ Request request = new GetUserDevice( ### Parameters -**`userDeviceId`** - +#### `userDeviceId` +
+スキーマ ```json { @@ -86,6 +93,8 @@ Request request = new GetUserDevice( } ``` +
+ 成功したときは @@ -112,9 +121,10 @@ Request request = new ActivateUserDevice( ### Parameters -**`userDeviceId`** - +#### `userDeviceId` +
+スキーマ ```json { @@ -123,6 +133,8 @@ Request request = new ActivateUserDevice( } ``` +
+ 成功したときは diff --git a/docs/webhook.md b/docs/webhook.md index f9cd713..5cd1c19 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -17,11 +17,12 @@ Request request = new ListWebhooks() ### Parameters -**`page`** - - +#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -29,11 +30,14 @@ Request request = new ListWebhooks() } ``` -**`perPage`** - +
+#### `perPage` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -41,6 +45,8 @@ Request request = new ListWebhooks() } ``` +
+ 成功したときは @@ -65,8 +71,8 @@ Request request = new ListWebhooks() ```JAVA Request request = new CreateWebhook( - "bulk_shops", // task: タスク名 - "r5u" // url: URL + "process_user_stats_operation", // task: タスク名 + "YByLz0xsJ" // url: URL ); ``` @@ -74,11 +80,12 @@ Request request = new CreateWebhook( ### Parameters -**`task`** - - +#### `task` ワーカータスク名を指定します +
+スキーマ + ```json { "type": "string", @@ -89,17 +96,22 @@ Request request = new CreateWebhook( } ``` -**`url`** - +
+#### `url` 通知先のURLを指定します +
+スキーマ + ```json { "type": "string" } ``` +
+ 成功したときは @@ -131,11 +143,12 @@ Request request = new DeleteWebhook( ### Parameters -**`webhookId`** - - +#### `webhookId` 削除するWebhookのIDです。 +
+スキーマ + ```json { "type": "string", @@ -143,6 +156,8 @@ Request request = new DeleteWebhook( } ``` +
+ 成功したときは @@ -162,8 +177,8 @@ Request request = new DeleteWebhook( Request request = new UpdateWebhook( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // webhookId: Webhook ID ) - .url("MSg7mI2h9") // URL - .setActive(true) // 有効/無効 + .url("hRV") // URL + .setActive(false) // 有効/無効 .task("bulk_shops"); // タスク名 ``` @@ -171,11 +186,12 @@ Request request = new UpdateWebhook( ### Parameters -**`webhookId`** - - +#### `webhookId` 更新するWebhookのIDです。 +
+スキーマ + ```json { "type": "string", @@ -183,33 +199,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 +245,8 @@ trueならWebhookによる通知が有効になり、falseなら無効になり } ``` +
+ 成功したときは diff --git a/partner.yaml b/partner.yaml index 7bf01bf..c953818 100644 --- a/partner.yaml +++ b/partner.yaml @@ -22,17 +22,20 @@ tags: `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: | Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。 + 店舗ユーザはCashtrayの状態を監視することができ、取引の成否やエラー事由を知ることができます。 Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。 Cashtrayはワンタイムで、一度読み取りに成功するか、取引エラーになると失効します。 また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 - name: Customer + - name: CreditSession - name: Organization - name: Shop - name: User @@ -79,6 +82,16 @@ components: pattern: '^ok$' message: type: string + CreditSession: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + expires_at: + type: string + description: 有効期限 + format: date-time Pagination: x-pokepay-schema-type: "response" properties: @@ -261,6 +274,10 @@ components: token: type: string title: 支払いQRコードを解析したときに出てくるURL + created_at: + type: string + format: date-time + title: 支払いQRコードの作成日時 Check: x-pokepay-schema-type: "response" properties: @@ -696,6 +713,37 @@ components: type: array items: $ref: '#/components/schemas/Transfer' + 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: @@ -1283,6 +1331,10 @@ components: type: integer minimum: 0 + BankDeleted: + x-pokepay-schema-type: "response" + properties: {} + PaginatedTransaction: x-pokepay-schema-type: "response" properties: @@ -1322,6 +1374,32 @@ components: 前ページ取得するためのID。 実際にはrows先頭 + PaginatedBillTransaction: + x-pokepay-schema-type: "response" + properties: + rows: + type: array + items: + $ref: '#/components/schemas/BillTransaction' + per_page: + type: integer + count: + type: integer + next_page_cursor_id: + type: string + format: uuid + nullable: true + description: |- + 次ページ取得するためのID。次ページ取得するためのID。 + 実際にはrows末尾 + prev_page_cursor_id: + type: string + format: uuid + nullable: true + description: |- + 前ページ取得するためのID。 + + 実際にはrows先頭 PaginatedTransfers: x-pokepay-schema-type: "response" properties: @@ -1667,6 +1745,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: @@ -1753,6 +1845,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: @@ -1988,6 +2094,12 @@ components: 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 +2139,156 @@ 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" + responses: + '200': + description: Credit session created + content: + application/json: + schema: + $ref: '#/components/schemas/CreditSession' + '400': + $ref: '#/components/responses/BadRequest' + '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 + description: | + 取引説明 + 取引の説明や備考を指定します。 + responses: + '200': + description: Transaction created successfully + content: + application/json: + schema: + type: object + description: | + 取引結果。Veritrans microserviceから返されたレスポンスをそのまま返します。 + '400': + $ref: '#/components/responses/BadRequest' + '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を指定します。 + responses: + '200': + description: Credit session captured successfully + content: + application/json: + schema: + type: object + properties: + session_id: + type: string + format: uuid + description: キャプチャされたセッションのID + '400': + $ref: '#/components/responses/BadRequest' + '404': + $ref: '#/components/responses/NotFound' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' /user: get: tags: @@ -2893,7 +3155,9 @@ paths: nullable: true format: decimal title: '支払い額' - description: 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + description: | + 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 private_money_id: type: string format: uuid @@ -2922,6 +3186,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/Bill' + '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 +3247,7 @@ paths: nullable: true format: decimal title: '支払い額' - description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 description: type: string maxLength: 200 @@ -3541,44 +3837,294 @@ paths: private_money_id: type: string format: uuid - money_amount: - type: integer - format: decimal - minimum: 0 - point_amount: + money_amount: + type: integer + format: decimal + minimum: 0 + point_amount: + type: integer + format: decimal + minimum: 0 + point_expires_at: + type: string + format: date-time + title: 'ポイント有効期限' + description: |- + ポイントをチャージした場合の、付与されるポイントの有効期限です。 + 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + description: + type: string + maxLength: 200 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionDetail' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $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: + - Transaction + summary: '取引履歴を取得する' + description: 取引一覧を返します。 + x-pokepay-operator-name: "ListTransactionsV2" + 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です。 + + フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + terminal_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: 太郎 + description: + type: string + maxLength: 200 + title: '取引説明文' + description: |- + 取引を指定の取引説明文でフィルターします。 + + 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + example: 店頭QRコードによる支払い + transaction_id: + type: string + title: '取引ID' + description: |- + 取引IDです。 + + フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + is_modified: + type: boolean + title: 'キャンセルフラグ' + description: |- + キャンセルフラグです。 + + これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 + デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + types: + type: array + title: '取引種別 (複数指定可)、チャージ=topup、支払い=payment' + example: '["topup", "payment"]' + description: |- + 取引の種類でフィルターします。 + + 以下の種類を指定できます。 + + 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 + 退会時失効取引 + items: + type: string + enum: [topup, payment, exchange_outflow, exchange_inflow, cashback, expire] + 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 - format: decimal - minimum: 0 - point_expires_at: - type: string - format: date-time - title: 'ポイント有効期限' + minimum: 1 + maximum: 1000 + title: '1ページ分の取引数' description: |- - ポイントをチャージした場合の、付与されるポイントの有効期限です。 - 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 - description: - type: string - maxLength: 200 + 1ページ分の取引数です。 + + デフォルト値は50です。 + example: 50 responses: '200': description: OK content: application/json: schema: - $ref: '#/components/schemas/TransactionDetail' + $ref: '#/components/schemas/PaginatedTransactionV2' '400': - $ref: '#/components/responses/BadRequest' + $ref: '#/components/responses/InvalidParameters' '403': $ref: '#/components/responses/Forbidden' - '422': - $ref: '#/components/responses/UnprocessableEntity' - /transactions-v2: + /transactions/bill: get: tags: - Transaction - summary: '取引履歴を取得する' - description: 取引一覧を返します。 - x-pokepay-operator-name: "ListTransactionsV2" + summary: '支払い取引履歴を取得する' + description: 支払いによって発生した取引を支払いのデータとともに一覧で返します。 + x-pokepay-operator-name: "ListBillTransactions" x-pokepay-allow-server-side: true requestBody: required: true @@ -3612,14 +4158,6 @@ paths: 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 - terminal_id: - type: string - format: uuid - title: '端末ID' - description: |- - 端末IDです。 - - フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 customer_id: type: string format: uuid @@ -3637,6 +4175,13 @@ paths: フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 example: 太郎 + terminal_id: + type: string + format: uuid + title: 'エンドユーザー端末ID' + description: |- + エンドユーザーの端末IDです。 + フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 description: type: string maxLength: 200 @@ -3648,11 +4193,20 @@ paths: 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: 'キャンセルフラグ' @@ -3661,39 +4215,6 @@ paths: これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 - types: - type: array - title: '取引種別 (複数指定可)、チャージ=topup、支払い=payment' - example: '["topup", "payment"]' - description: |- - 取引の種類でフィルターします。 - - 以下の種類を指定できます。 - - 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 - 退会時失効取引 - items: - type: string - enum: [topup, payment, exchange_outflow, exchange_inflow, cashback, expire] from: type: string format: date-time @@ -3735,6 +4256,7 @@ paths: type: integer minimum: 1 maximum: 1000 + default: 50 title: '1ページ分の取引数' description: |- 1ページ分の取引数です。 @@ -3747,9 +4269,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTransactionV2' + $ref: '#/components/schemas/PaginatedBillTransaction' '400': $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' /transactions/topup: post: tags: @@ -4020,6 +4544,96 @@ paths: - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) - money-only: マネー残高のみから消費され、ポイント残高は使われません + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + example: 'point-preferred' + coupon_id: + type: string + format: uuid + title: 'クーポンID' + description: |- + 支払いに対して適用するクーポンのIDを指定します。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionDetail' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $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: @@ -4033,6 +4647,8 @@ paths: $ref: '#/components/responses/BadRequest' '403': $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' /transactions/cpm: @@ -4484,6 +5100,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 @@ -7989,6 +8636,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" @@ -8367,6 +9058,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: @@ -8598,6 +9329,10 @@ paths: format: uuid title: "ストレージID" description: "Storage APIでアップロードしたクーポン画像のStorage IDを指定します" + num_recipients_cap: + type: integer + minimum: 1 + title: 'クーポンを受け取ることができるユーザ数上限' responses: '200': description: OK @@ -8741,6 +9476,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 +9527,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 22cbf61..a91b93c 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/CaptureCreditSession.java b/src/main/java/jp/pokepay/partnerapi/request/CaptureCreditSession.java new file mode 100644 index 0000000..0d227d5 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/CaptureCreditSession.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 CaptureCreditSession extends Request { + private String sessionId; + + public CaptureCreditSession(String sessionId) { + this.sessionId = sessionId; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/credit-sessions" + "/" + this.sessionId + "/capture"; + } + + @Override + public Type getResponseClass() { + return NIL.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreateCoupon.java b/src/main/java/jp/pokepay/partnerapi/request/CreateCoupon.java index c965988..a714acf 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 0000000..71a8ec2 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/CreateCreditSessionTransaction.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 CreateCreditSessionTransaction extends Request { + private Double amount; + private String shopId; + private String description; + 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; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/credit-sessions" + "/" + this.sessionId + "/transactions"; + } + + @Override + public Type getResponseClass() { + return NIL.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)); } + 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 9bc1e21..eb87e82 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 0000000..9e2b79b --- /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 0000000..b7176b4 --- /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/DeleteBank.java b/src/main/java/jp/pokepay/partnerapi/request/DeleteBank.java new file mode 100644 index 0000000..cf6194b --- /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/GetBill.java b/src/main/java/jp/pokepay/partnerapi/request/GetBill.java new file mode 100644 index 0000000..e2e4504 --- /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 Bill.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + 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 0000000..dd03057 --- /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/PostCreditSession.java b/src/main/java/jp/pokepay/partnerapi/request/PostCreditSession.java new file mode 100644 index 0000000..cc2b02f --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/PostCreditSession.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 PostCreditSession extends Request { + private String customerId; + private String privateMoneyId; + private String cardId; + private String expiresAt; + + public PostCreditSession(String customerId, String privateMoneyId, String cardId, String expiresAt) { + this.customerId = customerId; + this.privateMoneyId = privateMoneyId; + this.cardId = cardId; + this.expiresAt = expiresAt; + } + + @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)); } + 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 0000000..461e57f --- /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 0000000..9c07769 --- /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/UpdateCoupon.java b/src/main/java/jp/pokepay/partnerapi/request/UpdateCoupon.java index 1836afd..177759e 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/CaptureCreditSessionSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CaptureCreditSessionSerializer.java new file mode 100644 index 0000000..6779f29 --- /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 0000000..7a104c8 --- /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/CreatePaymentTransactionWithBillSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreatePaymentTransactionWithBillSerializer.java new file mode 100644 index 0000000..2bbdbd7 --- /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 0000000..5deec7f --- /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/DeleteBankSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteBankSerializer.java new file mode 100644 index 0000000..6fcf7b7 --- /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/GetBillSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetBillSerializer.java new file mode 100644 index 0000000..9e229f5 --- /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/ListBillTransactionsSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/ListBillTransactionsSerializer.java new file mode 100644 index 0000000..a52e27b --- /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 0000000..659ef57 --- /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/SerializerHelper.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java index 8c05830..9e84792 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,6 +23,7 @@ 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; @@ -28,10 +32,14 @@ import jp.pokepay.partnerapi.request.GetCpmToken; 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; @@ -67,6 +75,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 +83,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 +97,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,6 +115,7 @@ 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()); @@ -110,10 +124,14 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) { gsonBuilder.registerTypeAdapter(GetCpmToken.class, new GetCpmTokenSerializer()); 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()); @@ -149,6 +167,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 +175,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 0000000..94ef92c --- /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 0000000..e9fae8b --- /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 0000000..163da62 --- /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 fd0c85e..f460db5 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 0000000..d856cb3 --- /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/Coupon.java b/src/main/java/jp/pokepay/partnerapi/response/Coupon.java index 6d2bccf..f46e97e 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 256ab46..49e397d 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/CreditSession.java b/src/main/java/jp/pokepay/partnerapi/response/CreditSession.java new file mode 100644 index 0000000..b57f0bf --- /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/PaginatedBillTransaction.java b/src/main/java/jp/pokepay/partnerapi/response/PaginatedBillTransaction.java new file mode 100644 index 0000000..408281c --- /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/TransactionGroup.java b/src/main/java/jp/pokepay/partnerapi/response/TransactionGroup.java new file mode 100644 index 0000000..084384b --- /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/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java b/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java index 67f4d08..e6be9ca 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" + "adb6417f-2436-42a0-a95f-9e1c4cb2f96b" ); 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 f9e8a64..7908264 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" + "8zwWTQtwhgEUQrpqVtFI20RqU", + "84w", + "WVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzO" ); 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" + "8zwWTQtwhgEUQrpqVtFI20RqU", + "84w", + "WVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzO" ) - .privateMoneyId("52d410b7-8c36-4486-acc0-708a5e74ce01"); + .callbackUrl("https://lLMmdBSZ.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" + "8zwWTQtwhgEUQrpqVtFI20RqU", + "84w", + "WVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzO" ) - .description("HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0kt") - .privateMoneyId("7e11363a-9aeb-479a-b179-4573a184ff65"); + .privateMoneyId("b7bac872-3632-4fe0-bd32-26e0aff46b5f") + .callbackUrl("https://0xtZpZdQ.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( + "8zwWTQtwhgEUQrpqVtFI20RqU", + "84w", + "WVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzO" + ) + .description("ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXm") + .privateMoneyId("7e33e549-d7b4-49d0-a7ec-c13a756c6a50") + .callbackUrl("https://vyiodipy.example.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java index 7462e69..e9203ef 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" + "56dbfb6c-c5d9-4a9a-93dc-5f6400fcae6b" ); try { PartnerAPITest.getClient().send(request); 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 0000000..12c96f1 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/CaptureCreditSessionTest.java @@ -0,0 +1,28 @@ +// 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( + "edec3d2f-0d88-4b28-ad4d-c9746f946da2" + ); + 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 af76506..51bb86a 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" + "a389775f-a10f-407e-b09c-1ddf45f98d01", + "5f02a763-984b-4f6a-8f25-868a2a94c1cf", + "JZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64V", + "E" ); 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" + "a389775f-a10f-407e-b09c-1ddf45f98d01", + "5f02a763-984b-4f6a-8f25-868a2a94c1cf", + "JZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64V", + "E" ) - .birthdate("vsFX8p"); + .birthdate("3m"); 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" + "a389775f-a10f-407e-b09c-1ddf45f98d01", + "5f02a763-984b-4f6a-8f25-868a2a94c1cf", + "JZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64V", + "E" ) - .email("CgUNdYXQCh@ONhw.com") - .birthdate("GHDaQRst"); + .email("uyUE26kLnI@wLEQ.com") + .birthdate("fb"); 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 c35d61b..41f3b73 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" + "0c93b421-8b93-4395-8292-a0429e7e01f1", + "885345ae-cc77-4779-a863-e1faafcb9594", + 168, + "2d10b8eb-b855-46de-8498-4953d0075a13", + "55449276-3885-4030-86cc-173ddc3577eb" ); 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" + "0c93b421-8b93-4395-8292-a0429e7e01f1", + "885345ae-cc77-4779-a863-e1faafcb9594", + 168, + "2d10b8eb-b855-46de-8498-4953d0075a13", + "55449276-3885-4030-86cc-173ddc3577eb" ) - .receiverUserId("c581ccb9-aa16-41e2-bec4-09ae24384255"); + .receiverUserId("3aca3749-047a-4ae3-a65a-e5186cbd48e2"); 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 d28ad54..f486525 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" + "dba585c8-1001-4412-b608-160e706db5af", + "78dd0b60-09cd-45dc-84fc-38a58492885a" ); 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" + "dba585c8-1001-4412-b608-160e706db5af", + "78dd0b60-09cd-45dc-84fc-38a58492885a" ) - .description("wVYBDQiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj"); + .description("Ok3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeA"); 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 CreateBill( - "c404cacf-f9c6-4b71-8977-32134cce0494", - "887fe62c-62c0-4078-b276-e6f80b19b3eb" + "dba585c8-1001-4412-b608-160e706db5af", + "78dd0b60-09cd-45dc-84fc-38a58492885a" ) - .amount(3754.0) - .description("k3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWw"); + .amount(8697.0) + .description("xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3"); 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 6e6fe27..17cbfb2 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .applicableShopIds(new String[]{"5907704a-6730-41fd-85b9-2c95e35a3a0b","c8b53f99-3b77-4329-a812-f1ec9b21671b","eb5011c6-da36-4d94-8ac3-c522c7fa359d"}); + .applicableShopIds(new String[]{"feec9c1f-6ca4-4949-88fd-b62dbf3cfcf3","d732deb3-9c00-4773-8673-f93d7a4b66f3","163a513a-d3b0-43e2-935a-f5b14948a6fc","5cb12b63-c3a0-47d2-8735-ba7295336d04"}); 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"980727cd-c844-4e89-bd67-9a9679730e08"}) + .bearPointShopId("3789bc85-64b0-4984-bcaf-d90752e18d18"); 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"923525c2-b844-4414-9232-05e5ff431718","2cffdc74-cb11-4e36-8c05-44119128dad2","3193dd38-9339-41f6-9282-4807c885f481","f806a765-a4e8-4559-895a-7ae2615ddcbf","c96ae27c-b9cd-4268-b625-25cdbaafb710","8586262f-49e6-47bf-a503-03bb2df6977d","9658ed1e-04aa-4653-a841-edb8e44b5244","908165b4-d940-44e0-85f6-32b72d26c00f","2e3f1e1a-bf21-47cf-9cb7-e680fdf09ebe","1714b4d4-cd14-4747-9437-b730e130824c"}) + .description("Q2epxhXvfJrqwCwzvGv5tXB9341AdQSvr2jD2CPBEg6qDXhS") + .bearPointShopId("d5161248-0bb8-4d1c-a861-fa5b393f2066"); 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"b11b0084-82f9-4405-bb30-6f2d1ac6c21d","82a3850d-05c0-4573-8489-a2286cc9893e","b864f182-712e-4d54-ae4d-b9d04eeabefc","bba0557c-a810-41f4-815e-e9b7a9ad5a26","a1026e54-8590-471a-a533-958472f4c4c5","efff9aae-5db2-4bee-a524-1e11098b7ec3","676a4ba4-ec80-479b-b8ca-7aa03293505a","93702ee3-081b-4df1-96c9-e1635ee3fb19","7ca72571-615a-4629-8232-1f6e3278bc7b","b7ce886b-db3e-441e-8268-41ad198dc777"}) .status("disabled") - .description("E0n87A30l6vspNWH9u8x4Yq2mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ff") - .bearPointShopId("4a270b59-c3c1-4b65-9fab-04807155db36"); + .description("nh29qWQZz14xB891rPV7FcdDeB61vcOZ1uNBAdr6lfzbfqKlnsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43") + .bearPointShopId("614c8f0c-933d-4886-9568-fbcbe853b0cf"); 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"5d0cd008-0741-4bef-bf29-048dce507f58","8f5fca88-89a7-4137-a76f-09704cde362c","4cda0814-3df5-4261-a523-2c374d61a86c","edcfe79a-2710-45cf-aeb5-17ad137f8e38","607f33c1-fe3d-4222-bce5-31b6195ae2a8"}) + .pointExpiresAt("2025-04-03T08:47:55.000000Z") .status("enabled") - .description("LuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC39nZBUv4F8J7UzyDYEv7bctcmIqdmvTV8RBzp0gixsK") - .bearPointShopId("d12b845a-9510-43d7-af55-afabd0e15793"); + .description("nrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtC") + .bearPointShopId("abbac41f-c483-48ee-b39a-b62f7feeb5e0"); 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"b68c390d-a125-412c-86bd-e214415103d6","a8fa778f-4a2d-4ddf-a383-1bdce3901aea","c91b8fc6-ed78-4c2e-a0f0-9ee080ee48eb","cf29068b-21ae-450b-ae72-73058035730f","ca9b915b-09b7-4b6e-bf42-b9db4ef516e9"}) + .pointExpiresInDays(6059) + .pointExpiresAt("2021-08-23T23:51:06.000000Z") .status("disabled") - .description("kiR4daTST401zYU9O5bmxo5R8HDeIrg38UDixRQOsOxJyiut30") - .bearPointShopId("3ca2b36f-445f-4388-9206-17a809bf05f3"); + .description("4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3qRbX") + .bearPointShopId("01ca0cc3-7a12-4382-b00e-177bc7e6d721"); 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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"}) - .setExclusive(false) - .pointExpiresInDays(5594) - .pointExpiresAt("2024-01-26T14:59:07.000000Z") + .applicableShopIds(new String[]{"c0fa9da8-76e8-4bc8-b5f1-632bfabf3eb5","66076710-63db-4702-9fce-1236de6b250a","a197aeac-5e3d-42f2-a01f-231c2f08c253","8b8fd414-5e71-4607-affd-dfecc507e890","d8de25db-d611-41e8-98e3-d7bcb022ba01","a20d50a7-c36c-455d-9e83-b27dcce872f8","091fa762-0de2-4893-9fc9-a5313f7c9a8c"}) + .setExclusive(true) + .pointExpiresInDays(1597) + .pointExpiresAt("2025-10-06T06:02:31.000000Z") .status("disabled") - .description("7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9k") - .bearPointShopId("0b3c2c76-0f49-417e-ba20-32e3dc79c4b3"); + .description("NVNkX1wbtHq7h4XHkBbxR0RnL") + .bearPointShopId("0f208074-c55d-41e9-bb72-99c72157634a"); 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"c1a5b6df-d02d-4153-b298-4ebba756f61c","8390834e-5bb5-4217-9fd3-37b61b207edc","a1ca295d-5745-457b-8d16-5ddb5fae25c0","66ee4945-b84f-4729-bc0a-6eb5cc29c142","19099b97-93a2-43f0-acb0-91547f785989","a9523461-2d3d-4fa1-8d99-6ca922998284","6a8ee715-848c-4cbc-9119-dac20abebb72"}) .subject("all") - .setExclusive(true) - .pointExpiresInDays(164) - .pointExpiresAt("2021-01-10T21:46:04.000000Z") + .setExclusive(false) + .pointExpiresInDays(8894) + .pointExpiresAt("2023-09-10T21:00:20.000000Z") .status("disabled") - .description("YgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79qoFTViWGk7rsKgu") - .bearPointShopId("7220fe40-9fb2-4469-a880-b8ef757ac34d"); + .description("CNxXXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYg") + .bearPointShopId("90511989-a94d-485f-9328-60795b7812e4"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -235,23 +235,43 @@ 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); + 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 CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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}) + .applicableShopIds(new String[]{"2e2033e1-256c-4247-bb37-d8a9405419b6","eeb8a802-aa71-45bc-ae94-2845ebb06b8f","1887acb4-8501-48d4-b1f6-814f622fb7f2","9529f90c-b482-49cb-8d41-fa1e85f34834","154c8c49-e277-4aa5-84e7-f619a479e253","9f49b3b5-10c1-4a01-a721-e0697fd30809"}) + .amountBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) .subject("money") - .setExclusive(false) - .pointExpiresInDays(8993) - .pointExpiresAt("2022-11-29T18:34:52.000000Z") + .setExclusive(true) + .pointExpiresInDays(9688) + .pointExpiresAt("2021-10-13T16:35:30.000000Z") .status("disabled") - .description("iaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrE") - .bearPointShopId("4e803ceb-cbd5-4ef2-8b5d-74d55fa15309"); + .description("xneekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJAVzV6vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44B") + .bearPointShopId("45e400ef-43a2-4df6-91ab-2780e2da8848"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -310,31 +330,54 @@ void test9() 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("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); + 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); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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}) + .applicableShopIds(new String[]{"3d99363f-e089-4b2a-8bab-b8887e95e819","a7dc8a71-bdd9-4f7a-abb7-9f127a759460"}) + .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .amountBasedPointRules(new Object[]{items11,items12,items13}) .subject("all") .setExclusive(false) - .pointExpiresInDays(2564) - .pointExpiresAt("2022-03-27T05:22:02.000000Z") - .status("enabled") - .description("9RliuqOBINm") - .bearPointShopId("1508f3b4-0651-4022-b737-9d5b2511702f"); + .pointExpiresInDays(7598) + .pointExpiresAt("2022-01-12T23:51:33.000000Z") + .status("disabled") + .description("G1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTe") + .bearPointShopId("836fff59-b075-4ae1-b544-3ef659b1110c"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -364,53 +407,51 @@ void test10() 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"); - 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); - 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); + 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"881f8e4a-34f3-44ee-b8a7-74a6469c7dec","863562e8-35c0-453b-8984-1055d08779a0","aec26663-0a0d-407e-a7c9-39086b933f6b","bd6950d9-59b0-4fae-af4e-4360c881a088","5720cc84-068a-40a8-9512-9a3433c90e08","2de60bfd-d3bb-4924-9240-cca42697b11b"}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5}) + .productBasedPointRules(new Object[]{items6,items7}) + .amountBasedPointRules(new Object[]{items8,items9,items10}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(8894) - .pointExpiresAt("2023-08-22T21:01:30.000000Z") - .status("disabled") - .description("QJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs") - .bearPointShopId("c8946e96-32b3-417b-a8ea-37212adf9a9d"); + .setExclusive(false) + .pointExpiresInDays(5358) + .pointExpiresAt("2024-01-27T07:31:48.000000Z") + .status("enabled") + .description("N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E") + .bearPointShopId("636c6696-a6fb-4631-9055-ded162d0b869"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -473,146 +514,26 @@ void test11() 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); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "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}) + .applicableShopIds(new String[]{"03175e2b-5175-4cd6-bffa-b03a8d34de8f","49ec67fc-f792-4264-8d54-9b8003573026","c3366816-945b-4c60-a1b2-7e0615eb5690","482431be-8a59-41d6-963b-dbce1613d2a1","79ced667-920b-431d-9d6b-d1687843dec7","a23e5c5b-e23e-4789-bee9-73cf221091e1","1321d024-494a-4f96-abb8-651269be73a4","3cee3023-3d27-48c8-9757-4b9f66188be2","9205f3d8-0c4f-461e-924d-de73a4e113f9","5f3dbc1a-a4cd-4e8c-9ed6-8a903bc07c98"}) + .applicableDaysOfWeek(new Integer[]{3,3,1}) .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"); - 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("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("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); - 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); - 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[]{"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}) + .amountBasedPointRules(new Object[]{items12,items13}) .subject("money") .setExclusive(false) - .pointExpiresInDays(9667) - .pointExpiresAt("2023-04-07T15:17:38.000000Z") - .status("enabled") - .description("t6R89vRehYIZbMh6MfShA8D4E") - .bearPointShopId("e65a7cf6-32b7-400f-9a21-37cf67d8d1dc"); + .pointExpiresInDays(1162) + .pointExpiresAt("2024-09-15T12:26:01.000000Z") + .status("disabled") + .description("FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4y") + .bearPointShopId("96b2c940-5186-489a-92f2-a27102a600bb"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -625,7 +546,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"); @@ -636,17 +557,17 @@ void test13() 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("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); @@ -660,11 +581,8 @@ void test13() 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); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); @@ -723,33 +641,27 @@ void test13() throws ConnectionError, ProcessingError { 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{5,4,1,4}) - .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}) - .subject("all") + .applicableShopIds(new String[]{"1935336c-49c9-482b-b3ed-9848d67af92a","617aa2af-e60f-4a79-bbf6-f8ae957a7566","839fec41-d93e-4def-b10f-9dbcbc2c935a","24c65b99-f16b-4277-ab18-606462089fa4","c7ec92b2-3001-42c1-aa17-01447935ed8d"}) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{6,1,2,0,4,0,5,1,5,0}) + .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11,items12}) + .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19,items20}) + .amountBasedPointRules(new Object[]{items21,items22}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(2046) - .pointExpiresAt("2022-03-14T05:45:03.000000Z") + .pointExpiresInDays(7321) + .pointExpiresAt("2022-10-27T22:42:12.000000Z") .status("enabled") - .description("AdQSvr2jD2CPBEg6qDXhSH8hafJy0sDTnMPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14xB891rPV7FcdDeB61vcOZ1uNBAdr6lfzbfqKlnsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOt") - .bearPointShopId("5d0cd008-0741-4bef-bf29-048dce507f58"); + .description("E5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iBoGU1OxUmIl7jlWxrfEKMQ8FCs062PLb59yfzniw8Z7TrjWh0") + .bearPointShopId("ff54fc91-7642-4ae0-919d-07e4e7d7a11f"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -762,7 +674,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"); @@ -776,17 +688,122 @@ void test14() 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("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + 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("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); + Request request = new CreateCampaign( + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, + "topup" + ) + .applicableShopIds(new String[]{"c991800c-4272-42b7-9862-8a219c6aee0c","4e580d4f-3220-47c3-8230-8624f60439c1","52d1d955-4266-4a4a-971b-daee83aff97d"}) + .minimumNumberOfProducts(2455) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{0,3,5,3,6,6,6,0}) + .blacklistedProductRules(new Object[]{items5,items6,items7}) + .productBasedPointRules(new Object[]{items8,items9,items10,items11}) + .amountBasedPointRules(new Object[]{items12,items13,items14,items15,items16}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(7230) + .pointExpiresAt("2025-04-05T19:13:01.000000Z") + .status("enabled") + .description("2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL0") + .bearPointShopId("2172ef03-dd9f-4eb6-84f7-8d52a71836cf"); + 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 { + 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("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); items9.addProperty("product_code", "4912345678904"); items9.addProperty("classification_code", "c123"); @@ -797,116 +814,98 @@ void test14() 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("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("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("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("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("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); + 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(5580) - .pointExpiresAt("2024-08-01T12:57:01.000000Z") - .status("disabled") - .description("cWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjP") - .bearPointShopId("c5f62e06-7f17-4426-92ac-f1a83e64c546"); + .applicableShopIds(new String[]{"fa6d1496-7cbf-4a5a-ab33-a817024b4d8e","d3e5be33-ede4-481c-938a-7a623a471235"}) + .minimumNumberOfAmount(2098) + .minimumNumberOfProducts(2973) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{1,3,4}) + .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11}) + .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16}) + .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(8098) + .pointExpiresAt("2023-01-03T16:21:24.000000Z") + .status("enabled") + .description("orM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt") + .bearPointShopId("9a5527a5-bca9-46b1-bc7a-b42ebc238254"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -939,8 +938,8 @@ void test15() 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("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); @@ -963,11 +962,17 @@ void test15() 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"); 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"); @@ -977,32 +982,206 @@ void test15() 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); + 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 CreateCampaign( + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, + "topup" + ) + .applicableShopIds(new String[]{"9f96afed-3e35-4ade-be97-0cd1b0d3005b","f5ae4ffb-9409-493f-b355-694a89df4c5f","173e0749-662e-470a-b837-113fae85f586"}) + .minimumNumberForCombinationPurchase(3488) + .minimumNumberOfAmount(6313) + .minimumNumberOfProducts(8427) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) + .applicableDaysOfWeek(new Integer[]{2,4}) + .blacklistedProductRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14}) + .productBasedPointRules(new Object[]{items15,items16,items17,items18}) + .amountBasedPointRules(new Object[]{items19,items20}) + .subject("all") + .setExclusive(false) + .pointExpiresInDays(7177) + .pointExpiresAt("2025-12-13T15:02:04.000000Z") + .status("disabled") + .description("0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPr") + .bearPointShopId("356bc146-caec-4ddd-af12-0c1b41434d28"); + 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 test16() 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("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("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); + 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("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); + 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 CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(1676) - .pointExpiresAt("2024-03-24T10:38:38.000000Z") + .applicableShopIds(new String[]{"5661efbe-1138-4e61-a33c-ca62d8394992"}) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(3349) + .minimumNumberOfAmount(4380) + .minimumNumberOfProducts(9957) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .applicableDaysOfWeek(new Integer[]{5}) + .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13}) + .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19}) + .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24,items25,items26,items27,items28,items29}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(1761) + .pointExpiresAt("2023-12-12T21:10:15.000000Z") .status("disabled") - .description("r7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6Mis") - .bearPointShopId("9f337750-19a8-4dd4-81d8-003bd1fc6d76"); + .description("FsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWI") + .bearPointShopId("c88b97d1-e5b2-4d86-a15c-2d6c1ee2fc6a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1015,7 +1194,7 @@ void test15() throws ConnectionError, ProcessingError { } } @Test - void test16() throws ConnectionError, ProcessingError { + void test17() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -1026,17 +1205,29 @@ void test16() 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("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("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"); @@ -1071,31 +1262,47 @@ 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); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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"}) + .applicableShopIds(new String[]{"df59f792-f5e7-40b7-9570-0057231d1ebc","bf434d9e-0235-43a6-b488-5acce330a2bd","78b084c4-1682-4bd3-8c33-89dcf518993e","be6120fe-9a98-4cae-857c-03d0024e177f","83b5dd59-32fb-4f05-9876-a79829a407dc","794de84d-be2b-4b8f-9864-f4ac12b576fc","5e47b749-2558-4ddc-86f8-b7dfcf5c33c7"}) + .maxPointAmount(5314) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(8003) - .minimumNumberOfAmount(7361) - .minimumNumberOfProducts(77) + .minimumNumberForCombinationPurchase(6201) + .minimumNumberOfAmount(7270) + .minimumNumberOfProducts(4604) .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") + .applicableDaysOfWeek(new Integer[]{3,4,6,5,4,4,4,0,5,5}) + .blacklistedProductRules(new Object[]{items3}) + .productBasedPointRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11}) + .amountBasedPointRules(new Object[]{items12,items13,items14,items15,items16}) + .subject("money") .setExclusive(true) - .pointExpiresInDays(2597) - .pointExpiresAt("2020-03-27T07:03:19.000000Z") - .status("disabled") - .description("9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO") - .bearPointShopId("64659729-edbc-420a-b542-9b973fb793a2"); + .pointExpiresInDays(6519) + .pointExpiresAt("2025-06-29T21:34:46.000000Z") + .status("enabled") + .description("UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQUyWa") + .bearPointShopId("9608e256-2ae7-4bc2-8b61-9b4ccf302757"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1108,7 +1315,7 @@ void test16() throws ConnectionError, ProcessingError { } } @Test - void test17() throws ConnectionError, ProcessingError { + void test18() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -1134,11 +1341,11 @@ void test17() throws ConnectionError, ProcessingError { items8.addProperty("from", "12:00"); items8.addProperty("to", "23:59"); 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("from", "12:00"); - items10.addProperty("to", "23:59"); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); items11.addProperty("product_code", "4912345678904"); items11.addProperty("classification_code", "c123"); @@ -1175,158 +1382,65 @@ void test17() 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); + 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); - 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 CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" - ) - .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") - .setExclusive(false) - .pointExpiresInDays(5055) - .pointExpiresAt("2023-03-03T21:23:26.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); + 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "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}) + .applicableShopIds(new String[]{"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","18d9c289-baef-4484-912b-6e5fc1e4d7cd","22906b88-0350-4247-9331-9f2b24ffac94","450483c5-83b8-4bb1-ae6a-ce96e9939a2c","1b9d918b-cac3-41c1-a0d2-29fd77437129"}) + .maxTotalPointAmount(7009) + .maxPointAmount(5821) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(5925) + .minimumNumberOfAmount(4733) + .minimumNumberOfProducts(6840) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .applicableDaysOfWeek(new Integer[]{3}) + .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13,items14,items15}) + .productBasedPointRules(new Object[]{items16,items17,items18}) + .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25}) .subject("money") .setExclusive(true) - .pointExpiresInDays(906) - .pointExpiresAt("2021-04-08T00:19:48.000000Z") - .status("enabled") - .description("evW68NKpdkq0PMSo6iR11TAHpgNTXOx") - .bearPointShopId("87223ac6-6082-4aa1-bd26-17778d231371"); + .pointExpiresInDays(8058) + .pointExpiresAt("2024-09-07T16:02:20.000000Z") + .status("disabled") + .description("xBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggr") + .bearPointShopId("1218eafa-876e-43ce-978a-8cc2e76f0856"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1356,14 +1470,17 @@ void test19() 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("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + 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"); @@ -1403,27 +1520,23 @@ void test19() throws ConnectionError, ProcessingError { 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); + 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"); @@ -1434,34 +1547,49 @@ void test19() 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); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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) - .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}) + .applicableShopIds(new String[]{"7379a4b0-2f5d-4205-b00f-26b9cc760a8d","e1638b08-21c2-4dc2-8f54-752c66834a54","0fa189f0-92ab-4d29-b69c-73c1bba5dfc7","37e084f0-a94d-4e9a-8e82-55cd35039622","2b68eaa3-3ae0-428f-9d3e-09cfdad7109e","950b447e-4e3d-4e81-b3e2-17745dfcd0c0","9da3ff48-daad-4f59-a39c-a61729d6e947","19d439e9-f5aa-4dc2-a814-9fb42ad1fb98","7930df2d-070a-4a1b-91e1-44ec248aa002","d40a1b75-b1b6-4f03-9c00-85120c5d789e"}) + .destPrivateMoneyId("3c0c4263-0168-4627-ba3b-dca2a369adc4") + .maxTotalPointAmount(792) + .maxPointAmount(7127) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(8481) + .minimumNumberOfAmount(6353) + .minimumNumberOfProducts(5604) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) + .applicableDaysOfWeek(new Integer[]{6,1,2,3,4}) + .blacklistedProductRules(new Object[]{items6,items7}) + .productBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17,items18,items19,items20,items21,items22,items23}) .subject("all") .setExclusive(false) - .pointExpiresInDays(2086) - .pointExpiresAt("2020-04-13T12:51:34.000000Z") - .status("enabled") - .description("vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsP") - .bearPointShopId("3cf579ef-5eb2-42f6-abbf-6ce36c4fbcda"); + .pointExpiresInDays(5912) + .pointExpiresAt("2022-08-15T08:38:37.000000Z") + .status("disabled") + .description("3qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKI") + .bearPointShopId("a1efb859-a897-41d2-816c-a331ffa8685d"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1482,186 +1610,115 @@ void test20() 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("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("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("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + 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("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("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + 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("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); - 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("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); - 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); + 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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"}) + .applicableShopIds(new String[]{"b7f4f943-7a75-4ddc-93d1-b17b76ef6b79","700af5e3-ddd7-4b67-9846-2f6ca99c995b","ee279551-dcf2-4b94-9ec7-8a2f3e83bc2d","23746f5b-a15c-4de4-9bd2-6e8f6939c371","ee21a37f-b22d-4856-a433-42c386afe982","c7c944fd-9649-4996-acc5-f8b359a968a0"}) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("bd69dc67-93ed-4eea-85de-e7f86a483e90") - .maxTotalPointAmount(5697) - .maxPointAmount(5312) + .destPrivateMoneyId("9127d928-3be0-46ab-a4a5-c24ffbe3d5ac") + .maxTotalPointAmount(3001) + .maxPointAmount(2249) .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}) + .minimumNumberForCombinationPurchase(8933) + .minimumNumberOfAmount(7550) + .minimumNumberOfProducts(8066) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{3,0,1,1,3,2,1,0,5}) + .blacklistedProductRules(new Object[]{items2,items3}) + .productBasedPointRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11,items12,items13}) + .amountBasedPointRules(new Object[]{items14,items15,items16}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(9158) - .pointExpiresAt("2021-06-30T00:37:58.000000Z") + .setExclusive(false) + .pointExpiresInDays(5608) + .pointExpiresAt("2021-03-28T05:20:29.000000Z") .status("enabled") - .description("dsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQi") - .bearPointShopId("6a264609-5e2b-4175-967f-0ffab378b03a"); + .description("K5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vg") + .bearPointShopId("f4066ccc-1a9d-4791-88be-b03d73692afc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1706,17 +1763,20 @@ void test21() throws ConnectionError, ProcessingError { 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"); 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"); @@ -1756,27 +1816,23 @@ void test21() 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); + 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"); @@ -1797,51 +1853,36 @@ void test21() 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); - 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 CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .applicableShopIds(new String[]{"844a8264-bd0d-4254-8026-68169967945b","cb04ac60-18a1-45b2-8690-31be9e408a59","1efed1d6-2656-4c3b-8ea1-d667e1c0920b"}) + .applicableShopIds(new String[]{"4ec18423-7318-4604-a66e-47b27e45a51d","e3ad3080-0913-4c4f-a42d-3bfd6fd08b0f","e85bb160-d910-461c-ace0-f7ad35dc5bf8","b8acf4e7-55f8-4999-b703-113d670c33c6","739a4832-6bb9-420a-a5d6-a3695fe54c26","1a752f00-5300-43dd-b50e-76dc9092a377","1774efcb-dd12-4aa6-b47e-026abf113df3","dae269a3-7540-49a9-926a-867af3dc3ba2"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("ffce731d-2d5d-496b-a8c7-5c5b04dde23e") - .maxTotalPointAmount(6026) - .maxPointAmount(4578) + .destPrivateMoneyId("d3bb04a4-331e-4729-9ff6-abaaec97c8e2") + .maxTotalPointAmount(4800) + .maxPointAmount(2496) .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}) + .minimumNumberForCombinationPurchase(1423) + .minimumNumberOfAmount(5718) + .minimumNumberOfProducts(4354) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{4,1,0,2,6,6}) + .blacklistedProductRules(new Object[]{items11}) + .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18}) + .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25,items26}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(5123) - .pointExpiresAt("2021-05-25T21:20:11.000000Z") - .status("disabled") - .description("L1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iB") - .bearPointShopId("c444f0ef-22c7-4555-b1cf-7b8d299f1103"); + .setExclusive(false) + .pointExpiresInDays(99) + .pointExpiresAt("2025-01-04T01:42:29.000000Z") + .status("enabled") + .description("E0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseLQBXI") + .bearPointShopId("d748e101-7a1e-46d5-a985-4bbfa40aed59"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1865,87 +1906,87 @@ 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"); 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("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("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); + 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); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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) + .applicableShopIds(new String[]{"dc0f56f0-4292-460d-9e95-e39f0d6e24d4","4e190d5b-0680-4476-a54e-659910eb3411","8ff75a06-67e7-42e6-a0e1-f64b4808c611","77d28e7c-6ebf-4d14-b3dc-e150f1b7616f","9d14976f-5598-4677-b04b-50c1866495f8","85603725-1e33-448f-9f6b-df0ff6aa8c24","65a2c966-8d87-4841-b3b1-b5f7effa4c58","4a41a964-2ab0-4334-9adf-1ca754506e92","0223dba7-ca53-4e59-b187-132116bbf0cf"}) + .budgetCapsAmount(2050904285) .applicableTransactionMetadata(applicable_transaction_metadata) .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}) - .subject("money") + .destPrivateMoneyId("c7048138-ce5d-4d10-9e3d-44bfea40c280") + .maxTotalPointAmount(4028) + .maxPointAmount(2331) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(2445) + .minimumNumberOfAmount(3983) + .minimumNumberOfProducts(2989) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{6}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8,items9}) + .productBasedPointRules(new Object[]{items10,items11}) + .amountBasedPointRules(new Object[]{items12,items13,items14}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(3171) - .pointExpiresAt("2020-09-03T19:49:23.000000Z") + .pointExpiresInDays(8745) + .pointExpiresAt("2025-01-09T08:05:15.000000Z") .status("enabled") - .description("AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw") - .bearPointShopId("fb7cdc35-e47e-4404-92b8-763347af603c"); + .description("ye61uzmBIXd") + .bearPointShopId("b029329b-46bc-446e-9f1a-e8c54d0890ce"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1960,14 +2001,14 @@ void test22() throws ConnectionError, ProcessingError { @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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .blacklistedShopIds(new String[]{"84d572d7-385f-4c45-8269-026999279bdc","1f34dacf-d196-4ac6-bb10-39f552b52577","774f7d6e-0e80-413f-871b-c9ad0aa54f65"}); + .blacklistedShopIds(new String[]{"fa3ba695-e2f3-4d29-8833-352ead2b6624","bae15a8e-8ec0-4a0d-aaa6-d4c25a57b1df","c25fad23-166c-4677-9a89-0f814a596d60","247eccf2-a3c4-4c7f-92b7-acb21251a9e0","33ba3d7c-ba16-48a3-84c2-7f8d1e982eb3","10a25e24-52e0-4a37-a613-4307875daac3","5dcc4e8b-fb52-4fbc-8074-98fb8ed0f4b8"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1982,15 +2023,15 @@ 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "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"); + .blacklistedShopIds(new String[]{"75e2aca7-85bc-4e78-881f-a2e9ada790d0"}) + .bearPointShopId("b91348fe-8f49-481a-b7c3-cabe1efb146c"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2005,16 +2046,16 @@ void test24() throws ConnectionError, ProcessingError { @Test void test25() 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .blacklistedShopIds(new String[]{"9bd596dc-834c-4730-839f-beb6bbe9ed84"}) - .description("OQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0Pi") - .bearPointShopId("71a17849-07a4-432f-9ede-3a0f1b86900c"); + .blacklistedShopIds(new String[]{"3dead11c-109a-4c25-9a31-92cb2fed15a2","f267bdcf-7ec7-4909-a7c5-0a32f7b0e1dc","a3d2cef3-346a-418e-bd0f-0637a9fc4a3d","710a31db-3dc8-4475-b6d7-ca4b744f2e09","586e2da1-eab5-4d0c-acdc-ebcd34a3ed03","5c8bba82-95a2-4ebc-a21f-7b8847ee0337","47504985-546e-4cdd-a270-91fba70de912","ce37af85-9e5b-4c67-b563-bbaf785aa2e8"}) + .description("s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwxF") + .bearPointShopId("d9782dc2-1758-44a6-ae26-e7ba353b6a4a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2029,17 +2070,17 @@ void test25() throws ConnectionError, ProcessingError { @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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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"}) + .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"}) .status("enabled") - .description("QN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZ") - .bearPointShopId("a2a0fd3f-b088-4098-a639-962b3e8ea54b"); + .description("Ybz4K3IA8JYUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8g") + .bearPointShopId("b660694b-c0a4-4f77-ba61-aa6479b7e707"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2054,18 +2095,18 @@ void test26() throws ConnectionError, ProcessingError { @Test 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"beafb8fb-f795-46de-b7b5-22e5ba51f2a0"}) + .pointExpiresAt("2023-10-19T11:23:47.000000Z") + .status("disabled") + .description("qfZdksVLOz") + .bearPointShopId("8566d5e2-afed-4f57-89fb-304a5ee2533e"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2080,19 +2121,19 @@ void test27() throws ConnectionError, ProcessingError { @Test 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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") - .status("disabled") - .description("PG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG") - .bearPointShopId("711f3035-2733-4d2d-b1dd-915a9e3153d7"); + .blacklistedShopIds(new String[]{"817eb5a9-4986-4720-bf61-0f7bb6aedc38","568bcf17-ad59-4cba-876b-97d67fb945b1","57570cb0-47d6-4db0-a37f-f32c5f3c6f35"}) + .pointExpiresInDays(6633) + .pointExpiresAt("2021-04-10T15:37:11.000000Z") + .status("enabled") + .description("f8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOest") + .bearPointShopId("3e24cb0e-be2c-4e82-a6de-758753c3362a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2107,20 +2148,20 @@ void test28() throws ConnectionError, ProcessingError { @Test 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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"}) + .blacklistedShopIds(new String[]{"b2c89020-2446-4615-8a75-9f269c468960","a090236d-29c7-4dd1-96af-48e62cbcc9ad"}) .setExclusive(false) - .pointExpiresInDays(4603) - .pointExpiresAt("2024-05-24T17:09:19.000000Z") + .pointExpiresInDays(6936) + .pointExpiresAt("2021-12-12T01:14:48.000000Z") .status("disabled") - .description("18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZ") - .bearPointShopId("37819da9-3c01-43aa-a863-cd5ac5da415f"); + .description("sw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhL") + .bearPointShopId("6847157e-0cf0-43c1-87b3-44760ce5bd94"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2135,21 +2176,21 @@ void test29() throws ConnectionError, ProcessingError { @Test void test30() 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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") + .blacklistedShopIds(new String[]{"7c0a7caa-7490-4313-9898-5ec90f586152","77a97abd-7906-414d-9671-b35e721bafe2"}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(7926) - .pointExpiresAt("2020-05-21T11:57:51.000000Z") + .pointExpiresInDays(849) + .pointExpiresAt("2021-10-23T10:09:44.000000Z") .status("enabled") - .description("7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbip") - .bearPointShopId("1666ee43-0f86-4c8f-8898-be15675033bb"); + .description("PKwzwzrbVYc") + .bearPointShopId("e932099e-7370-4add-aeaa-dd04a84fc893"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2188,33 +2229,23 @@ void test31() throws ConnectionError, ProcessingError { 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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}) + .blacklistedShopIds(new String[]{"840a6d3e-6292-4984-b5a4-88b80f42df25"}) + .amountBasedPointRules(new Object[]{items,items2,items3,items4,items5}) .subject("money") .setExclusive(true) - .pointExpiresInDays(1136) - .pointExpiresAt("2020-03-08T17:47:40.000000Z") - .status("enabled") - .description("uqVIJLmWFeGJqYbyf9xqe") - .bearPointShopId("52140f2a-5ad6-4eb9-8caa-aa9afb4f11e7"); + .pointExpiresInDays(733) + .pointExpiresAt("2025-05-22T17:54:19.000000Z") + .status("disabled") + .description("xDTzMnM7RDpI6DZQ") + .bearPointShopId("7de27390-4754-472a-90e6-7ec92732d161"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2237,27 +2268,59 @@ void test32() 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("subject_more_than_or_equal", 1000); + items3.addProperty("subject_less_than", 5000); + Request request = new CreateCampaign( + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, + "topup" + ) + .blacklistedShopIds(new String[]{"5d76d5a3-0ac0-47d3-99c2-71ed0bfa0120","c52f6b15-f857-4509-ba46-ce2eee852f26","94819aa4-eebd-4402-8de2-0dd6e4282be6","97810ae1-b1fe-41cc-b5ae-4bbd9d01a9ae","ecd739cc-c854-4b0b-b2a8-dae3dca6a10e","a03dc1d0-e6ea-4be3-b466-e812130140ac"}) + .productBasedPointRules(new Object[]{items}) + .amountBasedPointRules(new Object[]{items2,items3}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(4957) + .pointExpiresAt("2024-11-06T11:04:30.000000Z") + .status("disabled") + .description("A5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7M") + .bearPointShopId("b821bbbd-5877-4d71-b13f-febaab2c88a6"); + 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 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("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"); @@ -2267,61 +2330,75 @@ void test32() 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"); - 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"); - 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"); + 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(9934) - .pointExpiresAt("2022-06-02T04:13:13.000000Z") - .status("disabled") - .description("CN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s") - .bearPointShopId("fe8eee24-94b2-434a-b6b7-34b0dc7a8681"); + .blacklistedShopIds(new String[]{"5e3eea03-b0df-460b-85e0-4d86aff129af"}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5}) + .productBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15}) + .subject("all") + .setExclusive(false) + .pointExpiresInDays(8842) + .pointExpiresAt("2020-04-12T11:16:41.000000Z") + .status("enabled") + .description("pK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnv") + .bearPointShopId("6a2c137b-efae-429d-86fd-66da742c8290"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2334,7 +2411,7 @@ void test32() throws ConnectionError, ProcessingError { } } @Test - void test33() throws ConnectionError, ProcessingError { + void test34() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("product_code", "4912345678904"); items.addProperty("classification_code", "c123"); @@ -2360,11 +2437,8 @@ void test33() 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("is_multiply_by_count", true); - items9.addProperty("required_count", 2); + items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); @@ -2392,6 +2466,114 @@ void test33() 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); + 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( + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, + "topup" + ) + .blacklistedShopIds(new String[]{"f678dc65-55b6-458e-9455-d0578818651c","d2b7e2a3-5bc6-4edf-a057-3e0f98f238c8","941b4124-76a5-4bf9-bea7-201ba68d37b2","728dcae2-9635-4d56-abf3-0eb50dd72467","2620cf50-7575-4010-9ef6-750d02482490","9a960fc8-c095-4b75-bb5d-588505e17641","54b7b435-9148-47d7-9b20-e8499d927e11"}) + .applicableDaysOfWeek(new Integer[]{0,6}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .productBasedPointRules(new Object[]{items10,items11,items12,items13}) + .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(1200) + .pointExpiresAt("2020-07-25T03:35:11.000000Z") + .status("disabled") + .description("i9wNIa") + .bearPointShopId("0f7a155d-a83b-4fca-afdb-69f988de0249"); + 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 test35() 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("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("product_code", "4912345678904"); items14.addProperty("is_multiply_by_count", true); items14.addProperty("required_count", 2); @@ -2404,8 +2586,9 @@ void test33() throws ConnectionError, ProcessingError { 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"); @@ -2431,40 +2614,27 @@ void test33() 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); - 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 CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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}) - .subject("all") + .blacklistedShopIds(new String[]{"b3867cf0-bbc1-4c97-a0c4-2012a64f83f3","9dfadc32-18c0-4d42-b45e-7891cc16a5f9","6ce7b016-6742-4fb1-87a9-0b1192468b5a"}) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .applicableDaysOfWeek(new Integer[]{3,4,3}) + .blacklistedProductRules(new Object[]{items9,items10,items11}) + .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16}) + .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(1998) - .pointExpiresAt("2024-04-05T06:31:47.000000Z") - .status("enabled") - .description("n521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwx") - .bearPointShopId("99787046-2dc2-4758-a66e-fe26e557e7ba"); + .pointExpiresInDays(1216) + .pointExpiresAt("2021-11-30T10:49:06.000000Z") + .status("disabled") + .description("KHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnIC") + .bearPointShopId("b74c1a25-6788-4c0a-ba08-bc225a5bc4c2"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2477,58 +2647,37 @@ void test33() throws ConnectionError, ProcessingError { } } @Test - void test34() throws ConnectionError, ProcessingError { + void test36() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); - items.addProperty("product_code", "4912345678904"); - items.addProperty("classification_code", "c123"); + 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("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("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("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("product_code", "4912345678904"); - items9.addProperty("is_multiply_by_count", true); - items9.addProperty("required_count", 2); + 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"); @@ -2538,48 +2687,42 @@ void test34() throws ConnectionError, ProcessingError { 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); - 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"bc66c96d-b42a-4547-8202-684b2523cebb","a65e7169-048c-416f-b014-43aca29040a0","081e6cf2-9e3d-4eae-a181-21d6f005e700","d37e07b9-4cc6-427d-8975-7c345153ff37","4a785fbe-17be-47d7-94e9-707d598c2c06","6127c3df-2344-43e7-827c-2b947884536e","9ce4d227-cd39-42d6-8aea-c89ba01a9d5f","e5db62c5-2744-4089-b1de-22b7124c5d16","cb1f736b-702e-4d6a-a84e-d93aabe8d129","e9aee72f-0ff2-4f25-be32-edbeca7f851c"}) + .minimumNumberOfProducts(2052) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) + .applicableDaysOfWeek(new Integer[]{5,6,3,3,5,2,2,0}) + .blacklistedProductRules(new Object[]{items7,items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12,items13}) + .amountBasedPointRules(new Object[]{items14}) .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(2327) + .pointExpiresAt("2023-04-25T19:35:42.000000Z") + .status("disabled") + .description("IsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6") + .bearPointShopId("e7a93a19-5f6f-4022-be1a-bbcf3d8b4af0"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2592,7 +2735,7 @@ void test34() throws ConnectionError, ProcessingError { } } @Test - void test35() throws ConnectionError, ProcessingError { + void test37() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -2606,8 +2749,8 @@ void test35() 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"); @@ -2656,39 +2799,94 @@ 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); + 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); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"2948b319-2b0d-4008-8c6e-5d8314d81c92","cbf452d8-65b5-4170-a165-b586c41d9aa6","ce538f26-3b70-44f2-9857-2574578a5ad0","06352c53-1cc7-44da-b2cc-6a399f86463b","e719873f-27fd-42d5-a472-546d9c8a3581","16b0a614-face-4925-ba12-92021ec74355"}) + .minimumNumberOfAmount(6548) + .minimumNumberOfProducts(4505) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{6,2,2,6,1,6,0}) + .blacklistedProductRules(new Object[]{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,items26,items27}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(9700) - .pointExpiresAt("2023-04-26T22:54:50.000000Z") + .pointExpiresInDays(985) + .pointExpiresAt("2021-11-28T02:18:58.000000Z") .status("enabled") - .description("EUxwAJXNLOLDUjAEUO9KUSGzbSRmd") - .bearPointShopId("74cd1581-dfa3-49e0-a1a4-ff363808f0b6"); + .description("bJ7yB2") + .bearPointShopId("ecc5ca07-f27e-4475-afa3-bf8ed4ed632f"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2701,7 +2899,7 @@ void test35() throws ConnectionError, ProcessingError { } } @Test - void test36() throws ConnectionError, ProcessingError { + void test38() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -2709,23 +2907,17 @@ 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("classification_code", "c123"); JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); @@ -2735,18 +2927,21 @@ void test36() 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"); @@ -2762,207 +2957,60 @@ void test36() throws ConnectionError, ProcessingError { items13.addProperty("point_amount_unit", "percent"); items13.addProperty("subject_more_than_or_equal", 1000); items13.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" - ) - .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") - .setExclusive(true) - .pointExpiresInDays(1547) - .pointExpiresAt("2020-12-16T05:35:03.000000Z") - .status("enabled") - .description("jexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1") - .bearPointShopId("7fcfb2da-cf11-462f-87ae-782da38bcf7d"); - 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 test37() 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("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"); + 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("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("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); - 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); - 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); + 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"da8945c9-f762-45e4-9492-5cdc5733928e"}) + .minimumNumberForCombinationPurchase(8185) + .minimumNumberOfAmount(3584) + .minimumNumberOfProducts(4060) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) + .applicableDaysOfWeek(new Integer[]{6,0,6,1,4,1,3,6,0,4}) + .blacklistedProductRules(new Object[]{items6}) + .productBasedPointRules(new Object[]{items7,items8,items9,items10}) + .amountBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18,items19}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(5346) - .pointExpiresAt("2020-11-19T19:29:32.000000Z") + .pointExpiresInDays(763) + .pointExpiresAt("2022-07-22T19:41:52.000000Z") .status("enabled") - .description("ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6") - .bearPointShopId("dc513694-9421-47f8-a25a-8ccd6655641d"); + .description("mao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0") + .bearPointShopId("bcb2a5d5-6df3-4a7b-a69a-345f58bf30fd"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2975,7 +3023,7 @@ void test37() throws ConnectionError, ProcessingError { } } @Test - void test38() throws ConnectionError, ProcessingError { + void test39() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -2989,14 +3037,14 @@ void test38() 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"); + 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"); @@ -3007,23 +3055,14 @@ void test38() 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("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"); @@ -3039,9 +3078,8 @@ void test38() 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"); @@ -3072,45 +3110,31 @@ void test38() throws ConnectionError, ProcessingError { 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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}) + .blacklistedShopIds(new String[]{"012767e6-158b-4047-9e96-41195097b9f2","afbb0aca-5879-487f-8c4b-220b60855f14","bc9270f3-46d2-41c8-aefd-d24633e2e750"}) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(1679) + .minimumNumberOfAmount(4465) + .minimumNumberOfProducts(9417) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{4,4,6,3}) + .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13}) + .productBasedPointRules(new Object[]{items14,items15}) + .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(2638) - .pointExpiresAt("2024-04-28T00:47:57.000000Z") - .status("disabled") - .description("qZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5") - .bearPointShopId("39b59148-a7d7-4d5b-a049-7e119e987df1"); + .setExclusive(true) + .pointExpiresInDays(7487) + .pointExpiresAt("2023-10-02T10:29:02.000000Z") + .status("enabled") + .description("Rwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qc") + .bearPointShopId("4419281d-734d-4fd1-b4a3-24b2d71d2a8a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3123,118 +3147,132 @@ void test38() throws ConnectionError, ProcessingError { } } @Test - void test39() 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("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"); + 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("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"); 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"); items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("classification_code", "c123"); 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("classification_code", "c123"); + 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("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); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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}) + .blacklistedShopIds(new String[]{"b0c19c33-5ecf-4072-9040-08c1ed490259"}) + .maxPointAmount(3476) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(6629) + .minimumNumberOfAmount(2483) + .minimumNumberOfProducts(1714) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .applicableDaysOfWeek(new Integer[]{5,4,4,6,6,0}) + .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18,items19}) + .productBasedPointRules(new Object[]{items20,items21}) + .amountBasedPointRules(new Object[]{items22,items23,items24,items25,items26,items27}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(7764) - .pointExpiresAt("2023-07-03T06:40:54.000000Z") - .status("enabled") - .description("nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn") - .bearPointShopId("9ce4d227-cd39-42d6-8aea-c89ba01a9d5f"); + .setExclusive(false) + .pointExpiresInDays(1206) + .pointExpiresAt("2021-04-24T18:55:56.000000Z") + .status("disabled") + .description("4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRf") + .bearPointShopId("1ca6c93f-f292-4c24-8e01-b2bca3a51eed"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3247,19 +3285,19 @@ void test39() throws ConnectionError, ProcessingError { } } @Test - void test40() throws ConnectionError, ProcessingError { + void test41() 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"); @@ -3267,125 +3305,93 @@ void test40() 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("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"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + 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("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("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"); - 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); - 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); - 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); + 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"4c2d5af6-ff7e-41df-ab8d-1354aa99e04a","62d656b8-af6a-45ad-906f-dfff5c9f6579","314b55d4-0453-4e13-8e48-deff8efb58ed","1bef0849-4f9e-441c-a0df-6eb2b475e12d","dc849e73-b99f-41e5-a5b5-eafed047e8c0"}) + .maxTotalPointAmount(2057) + .maxPointAmount(2594) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(2580) + .minimumNumberOfAmount(5096) + .minimumNumberOfProducts(9935) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{4,3}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6}) + .productBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12}) + .amountBasedPointRules(new Object[]{items13,items14,items15,items16,items17}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(9944) - .pointExpiresAt("2020-09-09T05:23:52.000000Z") + .setExclusive(true) + .pointExpiresInDays(7614) + .pointExpiresAt("2024-03-29T12:13:31.000000Z") .status("disabled") - .description("dNFDbX7fss0ltmaJnxsla") - .bearPointShopId("89f5a3d5-94cc-4537-9fd2-cef20bd60cf8"); + .description("v5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b") + .bearPointShopId("cda3f788-9e2c-4412-ab32-11af9b37a68e"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3398,7 +3404,7 @@ void test40() throws ConnectionError, ProcessingError { } } @Test - void test41() throws ConnectionError, ProcessingError { + void test42() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -3412,20 +3418,20 @@ void test41() 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"); + 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"); @@ -3433,35 +3439,20 @@ void test41() 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); + 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"); @@ -3477,55 +3468,91 @@ void test41() 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("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"); + 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); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .blacklistedShopIds(new String[]{"b0e10ae2-16c2-4f01-bf22-cd9a02680d01","90fad016-1378-4f05-99b5-3517fd97613a"}) - .maxTotalPointAmount(5316) - .maxPointAmount(9116) - .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}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(6173) - .pointExpiresAt("2021-09-26T21:28:04.000000Z") - .status("enabled") - .description("wUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6o") - .bearPointShopId("0653e022-a97e-4b1a-8ff0-4e552948b319"); + .blacklistedShopIds(new String[]{"41988eaf-65eb-453e-bb4d-b4207bc0c43b","f6a4950a-ce63-42d3-9004-110b8e3bc572","2a00056d-b7f4-49df-8b0e-d42240b76a2d","3ae395a1-0c89-40b0-9c68-d16a744fff49","53be3690-6b40-4bca-8175-ef20776230b4","9aeace9a-b801-453b-8433-86f757ec61c2","f1d62317-ed37-4473-91e3-677d5662cb57","ef11b512-e2ab-4d6c-9969-78aaaee6805f"}) + .destPrivateMoneyId("ddae1a92-ed72-40f2-abea-362f58515136") + .maxTotalPointAmount(985) + .maxPointAmount(2719) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(8558) + .minimumNumberOfAmount(161) + .minimumNumberOfProducts(896) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .applicableDaysOfWeek(new Integer[]{1,1,6,5,6}) + .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16}) + .productBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23}) + .amountBasedPointRules(new Object[]{items24,items25,items26,items27,items28,items29}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(6210) + .pointExpiresAt("2021-03-03T15:31:17.000000Z") + .status("disabled") + .description("5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc4uS") + .bearPointShopId("0d0484eb-0beb-491b-b282-0cc0840bd296"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3538,7 +3565,10 @@ void test41() throws ConnectionError, ProcessingError { } } @Test - void test42() throws ConnectionError, ProcessingError { + void test43() throws ConnectionError, ProcessingError { + 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"); @@ -3558,11 +3588,11 @@ 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("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); items9.addProperty("product_code", "4912345678904"); items9.addProperty("classification_code", "c123"); @@ -3576,8 +3606,11 @@ void test42() 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("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"); @@ -3593,9 +3626,8 @@ void test42() 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"); @@ -3621,54 +3653,35 @@ 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); - 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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) - .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}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(4060) - .pointExpiresAt("2024-08-25T16:06:07.000000Z") - .status("enabled") - .description("63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0") - .bearPointShopId("ff40b6e4-c8ff-49c5-a8cf-c79204df1027"); + .blacklistedShopIds(new String[]{"553184f5-0a02-4cd3-92fc-08f7b3a3cd58","c57cbb36-f240-4fd2-9e26-b57872739437","5119de66-4089-42cf-85ef-2c46f2635e53","96b01e9d-208d-478d-9116-d9692aa5c5c4","03e1bb59-5bf0-4f8e-abd4-45c0f45f34bf","99139508-bd3d-48d4-a7de-ee725cdf5588","5cca8479-9980-4d14-b7a2-3e6bce3e3783"}) + .applicableAccountMetadata(applicable_account_metadata) + .destPrivateMoneyId("bf08f39d-02ec-43a3-8502-2d56b0243fc4") + .maxTotalPointAmount(1026) + .maxPointAmount(2603) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(1420) + .minimumNumberOfAmount(7197) + .minimumNumberOfProducts(9909) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) + .applicableDaysOfWeek(new Integer[]{5}) + .blacklistedProductRules(new Object[]{items7,items8,items9,items10,items11,items12}) + .productBasedPointRules(new Object[]{items13,items14,items15}) + .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(7132) + .pointExpiresAt("2023-08-06T22:29:37.000000Z") + .status("disabled") + .description("6Mwu12UeT7T") + .bearPointShopId("98d49e06-8de8-4415-b5cc-344cbb3c1e67"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3681,7 +3694,10 @@ void test42() throws ConnectionError, ProcessingError { } } @Test - void test43() throws ConnectionError, ProcessingError { + void test44() 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"); @@ -3692,17 +3708,11 @@ void test43() 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"); @@ -3712,8 +3722,9 @@ void test43() throws ConnectionError, ProcessingError { 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("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"); @@ -3734,55 +3745,36 @@ void test43() throws ConnectionError, ProcessingError { 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); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .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[]{"da83b650-a554-4403-b2fa-a28ba2e47ebd","37e89a15-f6c7-4da5-936b-01787181fe4f","84b6674f-c67a-4a68-94a8-26f0dcf84e50","4707df88-514c-4aa5-ae55-cffd4046cfbf","b6061b3d-858c-4f85-91ae-289d1506125c","7663347b-c458-43e5-a133-250ce043bae5","e8f9343e-f954-4199-a740-c1af3679ccc2","f9ab35ec-2650-43a3-b17a-8ae10a19e7fd","0b9d1e31-7118-456e-b7bd-53c998386e5b","ccc75ce3-c800-45bc-a157-8e29d6f68801"}) + .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("03777006-54d5-46f5-b97b-a844b8d0a8d6") - .maxTotalPointAmount(5436) - .maxPointAmount(8339) + .destPrivateMoneyId("45ff8b1c-f44d-4880-ac9d-8472bfade9bd") + .maxTotalPointAmount(1760) + .maxPointAmount(5847) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(7643) - .minimumNumberOfAmount(4442) - .minimumNumberOfProducts(6502) + .minimumNumberForCombinationPurchase(3604) + .minimumNumberOfAmount(3302) + .minimumNumberOfProducts(2170) .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}) + .applicableDaysOfWeek(new Integer[]{6,3,3,1,1,3}) + .blacklistedProductRules(new Object[]{items2,items3,items4}) + .productBasedPointRules(new Object[]{items5,items6}) + .amountBasedPointRules(new Object[]{items7,items8,items9,items10}) .subject("all") .setExclusive(false) - .pointExpiresInDays(6020) - .pointExpiresAt("2022-06-22T08:49:37.000000Z") + .pointExpiresInDays(3522) + .pointExpiresAt("2020-07-06T19:52:18.000000Z") .status("enabled") - .description("DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS7") - .bearPointShopId("f326f101-4a5f-480e-94fe-50a26de542b0"); + .description("m76E35ql4XfUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMnt") + .bearPointShopId("1bcdaf2c-2423-4e7e-b949-b9d0dbba41fa"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3795,7 +3787,7 @@ void test43() throws ConnectionError, ProcessingError { } } @Test - void test44() throws ConnectionError, ProcessingError { + void test45() throws ConnectionError, ProcessingError { JsonObject applicable_transaction_metadata = new JsonObject(); applicable_transaction_metadata.addProperty("key", "rank"); applicable_transaction_metadata.addProperty("value", "bronze"); @@ -3830,8 +3822,8 @@ void test44() throws ConnectionError, ProcessingError { 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"); @@ -3851,11 +3843,8 @@ void test44() 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("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"); @@ -3871,251 +3860,59 @@ void test44() 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); - 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); - 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[]{"bacc3b26-2723-4e4a-8f55-091d3a28e0fe"}) - .applicableTransactionMetadata(applicable_transaction_metadata) - .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("67872fcb-41ea-4e4b-8ce5-3b47df08b8dc") - .maxTotalPointAmount(2654) - .maxPointAmount(4548) - .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}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(9410) - .pointExpiresAt("2022-10-14T12:36:17.000000Z") - .status("enabled") - .description("HYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiB") - .bearPointShopId("a21959f4-c4d2-4b5f-bb2d-642a030a4668"); - 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 { - 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("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("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); - 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); + 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, + "I7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si", + "29f6c691-56b7-40be-97eb-8886839228f4", + "2020-07-26T10:07:55.000000Z", + "2020-01-02T19:09:35.000000Z", + 8557, "topup" ) - .blacklistedShopIds(new String[]{"506c48bc-2226-4961-9d76-10d73ed2e5ef"}) - .budgetCapsAmount(1517025453) + .blacklistedShopIds(new String[]{"7b209922-1c71-4512-9541-998997b4e089","8a18dd98-c597-4fc7-a49d-46e1a34421a8","223a548a-2e3f-4c00-9f2a-445bfd8047af"}) + .budgetCapsAmount(464627699) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("011241ed-9e37-4e03-ae9b-36697259f353") - .maxTotalPointAmount(4495) - .maxPointAmount(6749) + .destPrivateMoneyId("03ff9c2e-f48b-492d-a9dc-b008f21aa19b") + .maxTotalPointAmount(8299) + .maxPointAmount(100) .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(9484) + .minimumNumberOfAmount(1971) + .minimumNumberOfProducts(2658) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{5}) + .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16,items17}) + .productBasedPointRules(new Object[]{items18,items19}) + .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(189) - .pointExpiresAt("2022-01-27T14:38:20.000000Z") + .setExclusive(false) + .pointExpiresInDays(1140) + .pointExpiresAt("2024-07-06T04:46:50.000000Z") .status("enabled") - .description("LBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJ") - .bearPointShopId("7b804381-8d75-4f20-b49a-b801d39ba53b"); + .description("8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO") + .bearPointShopId("73a9f787-0d81-4afd-b7b8-359063bf39d9"); 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 ca20e97..6941284 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 + "14f2c89f-45ae-4684-a946-28e996ead448", + "e42d6b4c-6ca2-4df4-8e0d-87397e2b55d9", + 1009.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 + "14f2c89f-45ae-4684-a946-28e996ead448", + "e42d6b4c-6ca2-4df4-8e0d-87397e2b55d9", + 1009.0 ) - .expiresIn(5237); + .expiresIn(7034); 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 + "14f2c89f-45ae-4684-a946-28e996ead448", + "e42d6b4c-6ca2-4df4-8e0d-87397e2b55d9", + 1009.0 ) - .description("PfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMg") - .expiresIn(1558); + .description("R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3") + .expiresIn(3485); 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 a7d6411..b7d3fac 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" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(9410.0); + .moneyAmount(840.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" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(8482.0) - .description("6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXXM3Y5XPxnjF"); + .moneyAmount(9770.0) + .description("bteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4"); 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" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(9448.0) + .moneyAmount(9188.0) .setOnetime(true) - .description("YgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp"); + .description("SWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv94bnDyHK"); 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" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(3210.0) - .usageLimit(6298) + .moneyAmount(4967.0) + .usageLimit(5972) .setOnetime(true) - .description("5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47Xe"); + .description("Dusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7"); 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" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(4346.0) - .expiresAt("2022-03-26T18:20:47.000000Z") - .usageLimit(1113) - .setOnetime(false) - .description("aQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnh"); + .moneyAmount(7170.0) + .expiresAt("2022-05-11T04:27:16.000000Z") + .usageLimit(8547) + .setOnetime(true) + .description("qfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4"); 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" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(4677.0) - .pointExpiresAt("2020-12-02T11:49:10.000000Z") - .expiresAt("2021-03-16T21:57:04.000000Z") - .usageLimit(8337) - .setOnetime(false) - .description("VfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAb"); + .moneyAmount(2977.0) + .pointExpiresAt("2025-09-02T20:40:35.000000Z") + .expiresAt("2025-07-11T05:10:38.000000Z") + .usageLimit(6142) + .setOnetime(true) + .description("ZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgU"); 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" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(5887.0) - .pointExpiresInDays(8507) - .pointExpiresAt("2024-02-28T08:15:03.000000Z") - .expiresAt("2023-12-03T05:36:08.000000Z") - .usageLimit(6826) - .setOnetime(true) - .description("HRtQBqCHsxk71kIOiSHcZ37"); + .moneyAmount(3998.0) + .pointExpiresInDays(9326) + .pointExpiresAt("2023-11-24T16:39:09.000000Z") + .expiresAt("2024-06-13T16:22:15.000000Z") + .usageLimit(8255) + .setOnetime(false) + .description("2kFchNQksZB6ByT3lVRQ7O823WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f"); 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" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .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) + .moneyAmount(567.0) + .bearPointAccount("07c83ec6-bfa7-420a-ad0b-75c099718ee3") + .pointExpiresInDays(7822) + .pointExpiresAt("2021-01-06T22:11:47.000000Z") + .expiresAt("2021-12-14T00:26:22.000000Z") + .usageLimit(1206) .setOnetime(true) - .description("3qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQ"); + .description("SXXM3Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -176,10 +176,10 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(1926.0) - .pointAmount(1737.0); + .moneyAmount(2225.0) + .pointAmount(2620.0); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -194,11 +194,11 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(3633.0) - .pointAmount(9333.0) - .description("CwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApo"); + .moneyAmount(3631.0) + .pointAmount(4367.0) + .description("eTNJcIKtWyeNc1zzlxW2hgO"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -213,12 +213,12 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(9105.0) - .pointAmount(1004.0) + .moneyAmount(1227.0) + .pointAmount(7736.0) .setOnetime(true) - .description("rzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5Az"); + .description("I225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfI"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -233,13 +233,13 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(9132.0) - .pointAmount(465.0) - .usageLimit(8034) - .setOnetime(false) - .description("E5VhNxjrtNh84WLuHKWoYQpDL"); + .moneyAmount(5567.0) + .pointAmount(6298.0) + .usageLimit(3606) + .setOnetime(true) + .description("FFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1Ug"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -254,14 +254,14 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(2676.0) - .pointAmount(5322.0) - .expiresAt("2024-03-10T02:31:21.000000Z") - .usageLimit(7962) - .setOnetime(false) - .description("WbDVy6Ss7attO0"); + .moneyAmount(2814.0) + .pointAmount(4807.0) + .expiresAt("2022-11-20T03:26:05.000000Z") + .usageLimit(3528) + .setOnetime(true) + .description("k2IRflsv"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -276,15 +276,15 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(5779.0) - .pointAmount(6184.0) - .pointExpiresAt("2021-10-19T08:15:57.000000Z") - .expiresAt("2020-04-27T09:52:11.000000Z") - .usageLimit(2593) + .moneyAmount(9079.0) + .pointAmount(6165.0) + .pointExpiresAt("2025-04-19T05:32:37.000000Z") + .expiresAt("2022-08-22T10:53:22.000000Z") + .usageLimit(8704) .setOnetime(true) - .description("Z2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu"); + .description("Zxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDT"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -299,16 +299,16 @@ void test13() throws ConnectionError, ProcessingError { @Test void test14() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .moneyAmount(6601.0) - .pointAmount(7035.0) - .pointExpiresInDays(3528) - .pointExpiresAt("2021-10-21T23:47:41.000000Z") - .expiresAt("2022-05-27T09:41:16.000000Z") - .usageLimit(2708) - .setOnetime(true) - .description("b57N6Bfk723xgVJhWc2FL"); + .moneyAmount(1743.0) + .pointAmount(9278.0) + .pointExpiresInDays(9114) + .pointExpiresAt("2025-11-14T20:43:00.000000Z") + .expiresAt("2024-06-01T05:33:19.000000Z") + .usageLimit(1702) + .setOnetime(false) + .description("fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHy"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -323,17 +323,17 @@ void test14() throws ConnectionError, ProcessingError { @Test void test15() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .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(8850.0) + .pointAmount(5739.0) + .bearPointAccount("aa92f50d-93f6-40a2-9803-fed3e036e42f") + .pointExpiresInDays(2610) + .pointExpiresAt("2021-07-17T16:59:08.000000Z") + .expiresAt("2020-10-14T17:12:53.000000Z") + .usageLimit(1918) + .setOnetime(true) + .description("KMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHsxk71kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCw"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -348,9 +348,9 @@ void test15() throws ConnectionError, ProcessingError { @Test void test16() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .pointAmount(1701.0); + .pointAmount(4296.0); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -365,10 +365,10 @@ void test16() throws ConnectionError, ProcessingError { @Test void test17() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .pointAmount(6900.0) - .description("p1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQY"); + .pointAmount(5080.0) + .description("vSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApoltrzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -383,11 +383,11 @@ void test17() throws ConnectionError, ProcessingError { @Test void test18() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .pointAmount(4691.0) - .setOnetime(true) - .description("SoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkD"); + .pointAmount(644.0) + .setOnetime(false) + .description("22UU1er3T1gBtfr20CiDsCwyLdW5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -402,12 +402,12 @@ void test18() throws ConnectionError, ProcessingError { @Test void test19() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .pointAmount(93.0) - .usageLimit(2886) - .setOnetime(false) - .description("GmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4uwaN6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w"); + .pointAmount(5787.0) + .usageLimit(7503) + .setOnetime(true) + .description("7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6Kg"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -422,13 +422,13 @@ void test19() throws ConnectionError, ProcessingError { @Test void test20() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .pointAmount(8001.0) - .expiresAt("2022-12-01T00:06:04.000000Z") - .usageLimit(5044) - .setOnetime(true) - .description("MRFhBa1KS"); + .pointAmount(4678.0) + .expiresAt("2024-03-17T17:10:43.000000Z") + .usageLimit(7636) + .setOnetime(false) + .description("UMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -443,14 +443,14 @@ void test20() throws ConnectionError, ProcessingError { @Test void test21() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .pointAmount(7226.0) - .pointExpiresAt("2023-06-01T14:20:15.000000Z") - .expiresAt("2022-08-21T00:16:06.000000Z") - .usageLimit(6434) - .setOnetime(false) - .description("AtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4"); + .pointAmount(5726.0) + .pointExpiresAt("2020-12-06T07:41:58.000000Z") + .expiresAt("2021-06-12T17:17:18.000000Z") + .usageLimit(8296) + .setOnetime(true) + .description("KuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5J"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -465,15 +465,15 @@ void test21() throws ConnectionError, ProcessingError { @Test void test22() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .pointAmount(8059.0) - .pointExpiresInDays(9472) - .pointExpiresAt("2021-05-25T04:18:07.000000Z") - .expiresAt("2020-09-12T18:57:04.000000Z") - .usageLimit(6469) - .setOnetime(false) - .description("c6DIDKem3xaXPio5o0"); + .pointAmount(1552.0) + .pointExpiresInDays(26) + .pointExpiresAt("2023-08-23T12:47:16.000000Z") + .expiresAt("2025-02-25T16:12:28.000000Z") + .usageLimit(307) + .setOnetime(true) + .description("OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQYSSoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioi"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -488,16 +488,16 @@ void test22() throws ConnectionError, ProcessingError { @Test void test23() throws ConnectionError, ProcessingError { Request request = new CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf" + "b41a731b-506e-4ec6-869a-6c84f4dd9ef9" ) - .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) - .setOnetime(false) - .description("rfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHAM5JdvP"); + .pointAmount(7822.0) + .bearPointAccount("34fa8a47-e2e0-4c48-8a37-e9bb463ab6ba") + .pointExpiresInDays(8937) + .pointExpiresAt("2022-11-14T15:42:40.000000Z") + .expiresAt("2024-07-20T18:34:22.000000Z") + .usageLimit(3960) + .setOnetime(true) + .description("z5S2r82nr4Char2"); 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 057c8af..eee5e69 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(8539); + .discountAmount(2681); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(5276) - .storageId("f77ee315-9cdc-45f7-88d8-4e2dea98d2ec"); + .discountAmount(7376) + .numRecipientsCap(2575); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(475) - .minAmount(1579) - .storageId("f46b87ca-beac-4246-959f-632718138880"); + .discountAmount(8895) + .storageId("dd2e2c33-65ab-4fc8-8394-5dd5638ce208") + .numRecipientsCap(1086); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(9602) - .usageLimit(5001) - .minAmount(5144) - .storageId("03c2523f-6a22-4428-890e-3db6b613f48b"); + .discountAmount(525) + .minAmount(2435) + .storageId("410d3c8c-f904-4310-a8cf-93c57b1abd64") + .numRecipientsCap(3238); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(5533) - .code("xf") - .usageLimit(8070) - .minAmount(5763) - .storageId("3de35655-d515-43b8-9712-dbc857ad1c49"); + .discountAmount(2922) + .usageLimit(2186) + .minAmount(7622) + .storageId("cded5876-0385-404b-adfa-92d73d0cef4c") + .numRecipientsCap(4517); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(4094) - .setPublic(false) - .code("LO5Dd5X") - .usageLimit(1164) - .minAmount(144) - .storageId("3bac0488-36c6-4f57-8c0e-308cab040384"); + .discountAmount(2736) + .code("X17seRboX") + .usageLimit(9389) + .minAmount(9871) + .storageId("0d24db79-1296-4296-bee1-c754124bdff0") + .numRecipientsCap(8502); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(2528) - .setHidden(false) + .discountAmount(9504) .setPublic(false) - .code("oU011Xo") - .usageLimit(7962) - .minAmount(5831) - .storageId("59691fef-5a9b-4693-83f0-4eba34c704e5"); + .code("fx") + .usageLimit(3142) + .minAmount(9545) + .storageId("8cb84953-fe09-4a66-b584-343b1fd24953") + .numRecipientsCap(5551); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(8684) - .setDisabled(true) + .discountAmount(3755) .setHidden(true) .setPublic(true) - .code("PpOt9Y") - .usageLimit(9916) - .minAmount(7954) - .storageId("59c54db3-d86d-42f3-b874-eb634e0f0273"); + .code("R4g3InaFkg") + .usageLimit(5829) + .minAmount(1477) + .storageId("f7fbd29b-cf4b-46e5-a42f-12726e9ed04d") + .numRecipientsCap(6207); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(1542) - .displayEndsAt("2022-07-16T04:09:00.000000Z") - .setDisabled(true) - .setHidden(false) + .discountAmount(6116) + .setDisabled(false) + .setHidden(true) .setPublic(false) - .code("QEq") - .usageLimit(4475) - .minAmount(9266) - .storageId("65bac18f-ed23-4441-9d55-29ec72878374"); + .code("C") + .usageLimit(9827) + .minAmount(3324) + .storageId("32b2d8c8-59c2-4a21-aab6-153405e15466") + .numRecipientsCap(4530); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(9323) - .displayStartsAt("2020-01-17T13:55:18.000000Z") - .displayEndsAt("2023-11-10T17:58:13.000000Z") - .setDisabled(false) + .discountAmount(4867) + .displayEndsAt("2025-12-20T02:06:55.000000Z") + .setDisabled(true) .setHidden(true) - .setPublic(false) - .code("V8aSNO9") - .usageLimit(2060) - .minAmount(6855) - .storageId("84f34919-7dd1-4521-95c0-d76e3459a144"); + .setPublic(true) + .code("6Mien") + .usageLimit(5249) + .minAmount(4229) + .storageId("bc172833-ef49-4660-8fb4-a01202159b8e") + .numRecipientsCap(3282); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(5875) - .discountUpperLimit(1146) - .displayStartsAt("2024-04-11T07:18:28.000000Z") - .displayEndsAt("2020-05-25T08:09:45.000000Z") + .discountAmount(7212) + .displayStartsAt("2025-06-18T09:52:14.000000Z") + .displayEndsAt("2021-10-13T09:24:33.000000Z") .setDisabled(false) .setHidden(false) - .setPublic(true) - .code("g8bbFQz") - .usageLimit(4669) - .minAmount(9680) - .storageId("e9db5f89-f6e4-4c24-acd8-ef0e9fc4b1c4"); + .setPublic(false) + .code("SiE") + .usageLimit(1714) + .minAmount(4230) + .storageId("52865cc6-8c0f-4d33-8dc7-ca77d5627e8c") + .numRecipientsCap(8483); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(5467) - .description("ujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6wIXIQ") - .discountUpperLimit(9314) - .displayStartsAt("2021-08-02T00:37:40.000000Z") - .displayEndsAt("2023-08-06T16:53:53.000000Z") + .discountAmount(2535) + .discountUpperLimit(4415) + .displayStartsAt("2021-02-07T08:58:52.000000Z") + .displayEndsAt("2021-12-10T12:45:42.000000Z") .setDisabled(false) - .setHidden(true) + .setHidden(false) .setPublic(false) - .code("wXW1Rg") - .usageLimit(7926) - .minAmount(3472) - .storageId("a29dc282-bb78-4a3f-aa10-4d1f86482a65"); + .code("ZFNm4") + .usageLimit(6201) + .minAmount(5253) + .storageId("3b1da397-fa09-4b89-bb90-cf7b991d391f") + .numRecipientsCap(5860); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .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(2029) + .description("3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1") + .discountUpperLimit(2975) + .displayStartsAt("2021-06-04T04:18:17.000000Z") + .displayEndsAt("2020-05-12T15:12:53.000000Z") + .setDisabled(false) + .setHidden(true) + .setPublic(false) + .code("U") + .usageLimit(6117) + .minAmount(9992) + .storageId("352c4067-71ee-4b1f-91ea-ecdca7cee995") + .numRecipientsCap(6604); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .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(9013) + .setShopSpecified(false) + .availableShopIds(new String[]{"00dee6b2-d486-4e7b-96fd-a2fb46af0bff","d4c8b3de-4acd-4957-b691-6afd10196543"}); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(4058) + .discountAmount(4214) .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"); + .availableShopIds(new String[]{"159a8bb9-9244-46ea-b041-61f63da99a3e","74aaf57b-7c6d-4220-be53-0412416e173e"}) + .numRecipientsCap(6421); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(2182) + .discountAmount(5911) .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[]{"3560fe75-5d00-4950-80c6-6e38c0e70573","081e1713-f6c5-4a99-a40e-ffa9c96ca5bf","4d0e179b-3bb3-4c6c-8b42-baf4720db14e","8cd00882-96ec-4530-8a2f-c3c2200bbb09"}) + .storageId("3dfd4432-2c2a-4a81-828f-45affbfc3fad") + .numRecipientsCap(5989); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .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(4667) + .setShopSpecified(true) + .availableShopIds(new String[]{"5468f0cb-6778-44a9-8a2e-44d66c6d0f1d","f93d1bf2-a06c-44bf-984c-f7c5483dbd6f","d2e50aee-8f43-4d10-988d-0440b46bbd31","f10ce2cb-fdf3-4ba8-94ef-271091b341ba","26e09e1d-3585-4000-923b-c5095c7519a4","6d436624-3514-4045-8d3e-9213888eaee5","c203af90-8dde-4ce8-b284-19d20c3d0a7d","1a6c8f87-21af-4558-b183-a5483b374f67","321d5fa3-8e46-4e3d-8f3f-db92cb18827f"}) + .minAmount(8883) + .storageId("07be8afd-5cdf-4d07-9ce2-16929b89817b") + .numRecipientsCap(4920); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(1822) - .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"); + .discountAmount(8278) + .setShopSpecified(false) + .availableShopIds(new String[]{"9d33d9f7-9445-4a64-8f50-7e4757d26b58","b44ac98c-5a1f-4cd3-8192-35e5d5cdaf39","c04afbbc-450c-434f-8f6f-3f111ff9c798","0abbe865-88f0-4db5-ab4c-43ebeadaedd1","c970c0c4-5117-4ca0-82a2-4faa90abfc13"}) + .usageLimit(9390) + .minAmount(598) + .storageId("f3d594b7-58bb-40f1-8a89-fbf7beca1bb1") + .numRecipientsCap(9601); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(5150) + .discountAmount(3778) .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[]{"396dce36-6f85-4716-b5a5-2dc6e0c5b011","495539c8-9414-4811-abaa-1213ff499bc2","c31a5abb-b4c8-4268-aa1b-8bbc786ca79e","cff7353d-fd1f-4bf5-b2c8-f3ef1c469d5a","3c6ca3ec-4a63-4224-ac04-c7f6fe4e3092","0ef29dd2-5e37-4c51-b027-1ed4b0e89328","7491cc64-92a3-487b-a774-2bd28e608f38","cc961939-557a-40aa-88b4-e4c242057ad2","d0d933e2-cf18-44a2-841d-f034002caf1b","3fd8ee97-b6cc-4d2e-b86a-cf03fdc9db07"}) + .code("p1VFXi65IW") + .usageLimit(818) + .minAmount(5260) + .storageId("c4e1e5dd-3621-46b8-baba-c2379ddf99fc") + .numRecipientsCap(9300); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(7936) + .discountAmount(269) .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"); + .availableShopIds(new String[]{"7655667c-e31e-442c-81e4-b96f83b2b593","9e32705a-7f0f-44a5-ad72-eae0597a1dbb"}) + .setPublic(true) + .code("qVFQp8") + .usageLimit(9024) + .minAmount(9200) + .storageId("8d19feb9-8c49-4570-84c7-7cceb93e3754") + .numRecipientsCap(7860); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(5469) + .discountAmount(6450) .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) + .availableShopIds(new String[]{"4a0cf1d8-a0bf-4a6a-939f-8765c0de1b41","d99f3873-29e6-45f3-af77-746da357371e","98969a7e-0a72-4094-8d0a-b7eea7c54b79","714ae8f4-18ae-4cc6-aec4-274e72677cd0","c295b145-f572-49ca-8587-e7c3731d6592","9d895a30-9954-47bc-897e-899bf26474b6","2c2b00bc-e7ea-4ab8-9428-451c4eceafd3","740b2a42-cdce-4da6-b1c7-4889cb9a18d2","f2d6a049-1478-4fe6-8ab3-1c25143e19d5"}) .setHidden(false) - .setPublic(true) - .code("j3cWX") - .usageLimit(3634) - .minAmount(3770) - .storageId("f89234cc-76c8-4f00-8cdb-5b786f0b6a09"); + .setPublic(false) + .code("M2jHDz") + .usageLimit(3968) + .minAmount(9308) + .storageId("88898ad2-6e99-4382-aad4-a2e6cc32ddd5") + .numRecipientsCap(1582); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(7932) - .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") - .setDisabled(true) - .setHidden(true) + .discountAmount(4917) + .setShopSpecified(true) + .availableShopIds(new String[]{"56aaf141-335e-40af-b44f-4b0dea290ee9","5cdb36f0-d99e-4000-880e-5145e8ef6121","953695b6-b44c-4f8d-b06c-a145e894aae5","2867d4d9-fdd8-4ef8-9380-184cc200528e","6960961a-5696-4584-a7a2-c9ad02fbedca","574854bf-4297-4b0c-96a0-83044602118c"}) + .setDisabled(false) + .setHidden(false) .setPublic(false) - .code("kGd5KFM") - .usageLimit(6689) - .minAmount(5918) - .storageId("3ff0cbea-6953-4c7b-be3e-4e25fc26bbc8"); + .code("Oq") + .usageLimit(9060) + .minAmount(2275) + .storageId("cd2c59b8-557a-403a-957a-605488842b5b") + .numRecipientsCap(75); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(9996) + .discountAmount(2885) .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") - .setDisabled(true) - .setHidden(true) - .setPublic(true) - .code("iSyzzCHj") - .usageLimit(1238) - .minAmount(6853) - .storageId("20142e89-d545-40e7-b087-ecba52153bfc"); + .availableShopIds(new String[]{"694712fb-010b-4192-8d04-e17f5d7d4ba7","7d37ba26-1621-47cd-a28d-e8a7b3cdc061","23e5ec4b-815b-4492-84c9-9b4507b1e63f","88aaf72e-ab80-4e95-a8af-6d2580c30421","336afdba-a88c-466e-82c8-618c860c54df","726e203e-3b92-4fe6-9620-3a1ef2dbbd06","bf722db6-94a4-40f4-9e0e-b2c7dcf8f21f"}) + .displayEndsAt("2025-05-27T03:54:07.000000Z") + .setDisabled(false) + .setHidden(false) + .setPublic(false) + .code("VGRur") + .usageLimit(1910) + .minAmount(7417) + .storageId("ecf23ec5-6bfb-4c97-a82c-18a299c1f698") + .numRecipientsCap(4159); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountAmount(3312) + .discountAmount(5939) .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) - .setHidden(true) - .setPublic(false) - .code("VDn") - .usageLimit(7260) - .minAmount(6071) - .storageId("466bd282-148a-470e-965f-c802f899a2c1"); + .availableShopIds(new String[]{"e6c72615-e3df-4072-b9c9-bc4fe803c8f3","a1b5edd0-acc8-402e-84dc-d35f9dcf1d9f","2d18e47a-ef34-443b-9adf-526464d836fb","2333d3fc-cead-4eb6-ad3a-14a2f72ea7f5"}) + .displayStartsAt("2025-10-13T09:23:31.000000Z") + .displayEndsAt("2020-06-05T00:51:10.000000Z") + .setDisabled(true) + .setHidden(false) + .setPublic(true) + .code("hCBvnC8wC") + .usageLimit(4305) + .minAmount(6980) + .storageId("7d11d26e-917e-4e9a-8f25-3640971a03b5") + .numRecipientsCap(6655); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(6905.0); + .discountAmount(8148) + .setShopSpecified(true) + .availableShopIds(new String[]{"94366f5e-b09a-477f-b880-a1e5500a5b12","67cc5998-8900-4f3d-9950-99478148afdb","ed66c82a-773a-493d-ada5-ad4377a4c4be","3f719b9f-82cb-4820-a336-84fa9233ae71","e26b0bb0-63f6-46e2-8273-ad604557e411","3dcd9116-3021-4b8b-a686-f51fb4344dc1","508e9c11-fcde-4e77-a6c3-9fc2f1f27b23","a7d5c219-c0d3-4600-ad45-6425af525f77","4461a73c-d404-4888-92fe-1b0442cbbbdf"}) + .discountUpperLimit(6052) + .displayStartsAt("2020-12-16T09:54:46.000000Z") + .displayEndsAt("2023-12-26T17:51:44.000000Z") + .setDisabled(true) + .setHidden(false) + .setPublic(true) + .code("iZy") + .usageLimit(5995) + .minAmount(6426) + .storageId("8a9915cf-25e5-4379-b77a-390634061b6a") + .numRecipientsCap(8978); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(3816.0) - .storageId("025def26-9766-4731-960b-e5e1d03e4c32"); + .discountAmount(8399) + .setShopSpecified(true) + .availableShopIds(new String[]{"af1ae260-334a-4bd0-b833-6c0d7cd5bb8c","fae411fb-41f8-49aa-86b3-2f08274cbafe","2003865b-827e-462e-a506-27f599b07b2f","993f617b-4b4c-464c-9da2-7fd44ef3b5cf","9618a7d0-a96a-4c2d-8448-e6b695cc786a","0bf98d6a-4685-47c6-bd9f-57eecf7007df","06b601a7-a9ec-4b60-a395-90d226a8c121","e3c3a33a-c196-49d3-bfc7-1f510177128e","34b39deb-30fc-4f8d-8f00-da4c8b37ac6f","9d27e6f7-0634-4575-8f9c-05d0fdca83d2"}) + .description("jYUkie5Rbdop3nbAQNRasJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT") + .discountUpperLimit(9909) + .displayStartsAt("2022-08-06T13:07:11.000000Z") + .displayEndsAt("2025-05-24T06:55:20.000000Z") + .setDisabled(true) + .setHidden(false) + .setPublic(false) + .code("dTsebRu") + .usageLimit(3713) + .minAmount(9181) + .storageId("ae12bb98-1556-4d62-bd7a-2d5c0c884fd0") + .numRecipientsCap(7638); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(1815.0) - .minAmount(8361) - .storageId("2fcab82a-92e9-4e91-9693-61b4e4962c8d"); + .discountPercentage(8888.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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(7640.0) - .usageLimit(2402) - .minAmount(9467) - .storageId("0d909ab0-0836-47d9-8f13-f081575448b5"); + .discountPercentage(350.0) + .numRecipientsCap(3059); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(6535.0) - .code("FN9bW") - .usageLimit(7865) - .minAmount(2539) - .storageId("adbf89ad-7822-4513-b3c6-922a83c93cba"); + .discountPercentage(5389.0) + .storageId("bdaa03b1-ddd4-462e-843f-6947f5612fb2") + .numRecipientsCap(6906); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(7691.0) - .setPublic(true) - .code("8sMw") - .usageLimit(6242) - .minAmount(9832) - .storageId("2d4b08c0-8201-4831-9746-89a56d1f4194"); + .discountPercentage(8389.0) + .minAmount(9645) + .storageId("bee2838c-c2e0-4468-a26e-8c72c59b6857") + .numRecipientsCap(8450); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(9204.0) - .setHidden(true) - .setPublic(true) - .code("EmCrF") - .usageLimit(5037) - .minAmount(4749) - .storageId("143eb371-58ce-4392-b73f-b128c0ef59a9"); + .discountPercentage(9227.0) + .usageLimit(6188) + .minAmount(7329) + .storageId("72e3236b-923e-4f51-8e08-6b0ec89f163e") + .numRecipientsCap(7581); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(3684.0) - .setDisabled(true) - .setHidden(true) - .setPublic(false) - .code("5Q") - .usageLimit(5856) - .minAmount(8045) - .storageId("8c30ebc6-f94d-4a05-b6fb-e5ecc5ed5123"); + .discountPercentage(8680.0) + .code("8G8v") + .usageLimit(3935) + .minAmount(7512) + .storageId("2d249523-d1aa-4446-913c-65cb81ba3ce5") + .numRecipientsCap(3643); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(6297.0) - .displayEndsAt("2022-04-29T07:55:42.000000Z") - .setDisabled(true) - .setHidden(true) + .discountPercentage(5149.0) .setPublic(true) - .code("a2") - .usageLimit(8588) - .minAmount(1448) - .storageId("0ad47ba4-5ea6-4e83-a76f-ea18a4c48b28"); + .code("F") + .usageLimit(1000) + .minAmount(2772) + .storageId("1b2b4aee-74a2-401c-a3ce-bfecab7dca86") + .numRecipientsCap(4942); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(8908.0) - .displayStartsAt("2023-12-22T04:20:55.000000Z") - .displayEndsAt("2023-10-15T14:09:14.000000Z") - .setDisabled(false) + .discountPercentage(5256.0) .setHidden(false) .setPublic(false) - .code("E9OEvOU") - .usageLimit(4169) - .minAmount(7785) - .storageId("3d98deae-d342-4b3e-b7e2-19bc6c04764a"); + .code("HA") + .usageLimit(6984) + .minAmount(1922) + .storageId("162692de-081b-4d01-ae17-7af40757021c") + .numRecipientsCap(8600); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(5017.0) - .discountUpperLimit(4268) - .displayStartsAt("2023-04-20T09:30:47.000000Z") - .displayEndsAt("2020-06-02T02:54:45.000000Z") + .discountPercentage(7802.0) .setDisabled(true) - .setHidden(false) - .setPublic(false) - .code("fgOe9n") - .usageLimit(1238) - .minAmount(6254) - .storageId("27c7e262-9c4f-46ae-8de6-bb5bcc92f031"); + .setHidden(true) + .setPublic(true) + .code("O") + .usageLimit(41) + .minAmount(9413) + .storageId("c61635c8-c2b7-44ca-a76a-6de97291bc8a") + .numRecipientsCap(9875); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(1885.0) - .description("ceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8") - .discountUpperLimit(8336) - .displayStartsAt("2020-01-06T07:23:01.000000Z") - .displayEndsAt("2020-06-15T12:46:52.000000Z") - .setDisabled(false) + .discountPercentage(6323.0) + .displayEndsAt("2023-12-17T13:10:59.000000Z") + .setDisabled(true) .setHidden(false) .setPublic(true) - .code("kI4pFJl") - .usageLimit(6655) - .minAmount(3551) - .storageId("126693af-cedc-4cb8-a1b4-05b925102d26"); + .code("LL") + .usageLimit(4661) + .minAmount(9675) + .storageId("2192c648-9770-4569-a66e-cf200a38cfee") + .numRecipientsCap(679); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(8325.0) - .setShopSpecified(true) - .availableShopIds(new String[]{"55e623d3-3008-4ae9-92d6-d0729014de2b"}); + .discountPercentage(385.0) + .displayStartsAt("2022-12-15T08:03:23.000000Z") + .displayEndsAt("2024-09-22T18:49:25.000000Z") + .setDisabled(false) + .setHidden(true) + .setPublic(false) + .code("O") + .usageLimit(1692) + .minAmount(3615) + .storageId("dca8d629-a285-434a-a439-63487e0b21f6") + .numRecipientsCap(3815); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .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(1020.0) + .discountUpperLimit(7837) + .displayStartsAt("2024-11-22T20:02:30.000000Z") + .displayEndsAt("2022-04-17T10:35:40.000000Z") + .setDisabled(true) + .setHidden(false) + .setPublic(true) + .code("ciCbZWnzc") + .usageLimit(2075) + .minAmount(8579) + .storageId("e3d61140-32a1-4d44-aecb-97b498294d60") + .numRecipientsCap(3149); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .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(7429.0) + .description("A4gWzsFxrEWGQmIqwq80GWYOCdqp3aMw45RftnlC78XMJnZ0CKAQudtFEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvML") + .discountUpperLimit(3574) + .displayStartsAt("2023-12-16T06:04:37.000000Z") + .displayEndsAt("2023-05-25T17:35:00.000000Z") + .setDisabled(true) + .setHidden(true) + .setPublic(true) + .code("JxeesKk") + .usageLimit(9847) + .minAmount(6114) + .storageId("bd0c50c5-ad8d-4ac8-b8eb-66ce434663fb") + .numRecipientsCap(746); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(2185.0) + .discountPercentage(8295.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"); + .availableShopIds(new String[]{"be44dae3-74d2-4656-b558-e995999bdde1","886cbc15-7af8-4b99-85c8-a341da557241","198730a3-077c-4f5d-8c90-3c7a3ac5b57e","5de97974-53eb-4e66-ac88-9d10ce23bc0d"}); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .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(2729.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"aa936362-db07-4aa7-9894-7aa86ff57935","dfc44fb0-94b7-4a61-abba-45a56324f2e9","eb8a7074-44f8-4364-9463-76d9e12a5616"}) + .numRecipientsCap(1003); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .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(5610.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"f34e894a-3a95-41d6-a27c-2194510d09e1"}) + .storageId("404f413e-acac-45f4-98d7-b0b3d2b7983d") + .numRecipientsCap(4084); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(344.0) + .discountPercentage(8328.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[]{"175456ed-2da1-4eac-a25b-3cd75028b5ea","0b254b09-476a-4861-af7e-8ba608279663","203ee590-d7dc-42cb-8ad3-3eb9da2c2dca","1d365126-1a5d-4a92-881d-fb6cccb5e7f7"}) + .minAmount(2758) + .storageId("2589866c-98fd-4fca-a326-a782bd5c77fb") + .numRecipientsCap(7853); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1172,22 +1189,137 @@ 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" + ) + .discountPercentage(9075.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"b909aeec-5b3f-4a74-aa6a-2fed0bf343bf","5274ee9a-ceef-45e4-ae5e-3cbcacb1e521","a6046028-49c4-45fb-9103-5945580bfd2b","6e8fe586-e21e-4c0f-bb07-70d51e527506","67354213-e3db-4e02-b844-f9e17cbce467","e04cb02b-4d68-453b-b62c-9ab7c063a344"}) + .usageLimit(2822) + .minAmount(9454) + .storageId("135467dd-f7d3-47c3-8f23-a4b5e91e832d") + .numRecipientsCap(3209); + 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( + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" + ) + .discountPercentage(7698.0) + .setShopSpecified(true) + .availableShopIds(new String[]{"b67344af-a9d2-43e6-b530-ea8135930c5d","74ef3e1e-1a43-4230-b517-eb22f6439aad"}) + .code("KFw") + .usageLimit(5101) + .minAmount(8560) + .storageId("061f8e50-78eb-41d0-beea-2687ae8041e2") + .numRecipientsCap(6525); + 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( + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" + ) + .discountPercentage(8812.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"f74c72db-289d-4d8a-b34b-1017eb9c34f8","3b845552-e69f-40db-b255-13d44c34da05","645e8fc6-f720-4d84-8da9-169a8a20781b","13327540-f52e-492a-8fd3-56f0f9a5481e","99fadf49-4694-4985-805e-d1acbd4d2508","174998b6-0489-426a-9977-ddca1cce3ed5","7c361e60-df55-4d20-b872-79a13bd70255","5929a11b-0363-4c24-b559-b1ed9104583a","642a5f58-ff65-4e6c-ab1a-d4bef54ee0df","b6f29432-0241-4ab2-aeab-3cde818e4d30"}) + .setPublic(true) + .code("g") + .usageLimit(8108) + .minAmount(9499) + .storageId("e83b2e9a-fa82-4b56-8493-2636956e1115") + .numRecipientsCap(71); + 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 test46() throws ConnectionError, ProcessingError { + Request request = new CreateCoupon( + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(3857.0) + .discountPercentage(1661.0) .setShopSpecified(true) - .availableShopIds(new String[]{"0b31ac34-f91f-4253-815c-3c3fdd13c1f2","39da7e0d-6db1-4667-8fab-81d32052d05c"}) + .availableShopIds(new String[]{"9bc520fe-bc2d-4559-a066-cc25d4174f8c"}) + .setHidden(false) + .setPublic(false) + .code("CiS0MuCL") + .usageLimit(4755) + .minAmount(1651) + .storageId("1d017100-42fd-4cff-b7f8-f2442522d814") + .numRecipientsCap(6359); + 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( + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" + ) + .discountPercentage(6756.0) + .setShopSpecified(true) + .availableShopIds(new String[]{"4bc64152-8b13-42cb-a800-2ce8fba6e460","108f68bb-76fc-4e88-8cde-5a605ac0295b","eaf69253-a304-40f6-9b96-315fe87d515a","cffd0a32-56cb-4021-91cf-7fd271eb3fe0","955adaf8-a89c-40cd-96fc-387bfd4008c8","4c94d6f2-cf19-4a6f-bad1-c06f90eac136","4f3a726a-7baa-46a0-a540-00220d9ba2fb","67cfc04d-f6db-4b83-b636-c08cd9e1da80"}) .setDisabled(false) .setHidden(true) .setPublic(false) - .code("Pel") - .usageLimit(7033) - .minAmount(3063) - .storageId("f12ef0a9-645b-4f71-ae27-6f6b27922871"); + .code("KrZ8xMlNa") + .usageLimit(2156) + .minAmount(7767) + .storageId("1f33f261-f7f3-41cc-9699-04ea910cb48c") + .numRecipientsCap(797); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1200,25 +1332,26 @@ void test43() throws ConnectionError, ProcessingError { } } @Test - void test44() 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(7976.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") + .discountPercentage(4480.0) + .setShopSpecified(true) + .availableShopIds(new String[]{"d3ca147d-5624-4f8b-9b1d-92382d6cd573","76a85b22-d81f-499c-9ffe-cd8a7f6c2311","e1a5f131-bab4-4adb-a35a-0bbf96434e7b","117976ad-9bab-4160-8a23-92a88f19c837","da5d03aa-11bd-4a2f-a00d-5520accc4e3c","60506e83-9b7d-4f8d-a521-e318d5ba2cbc","ce91d6b4-1bd1-4139-8fc7-21c30be08655","92820979-908c-4103-a07b-108ff3ae694c","db26e932-af76-48be-b975-0395d3ce7e33"}) + .displayEndsAt("2025-11-16T19:24:12.000000Z") .setDisabled(false) .setHidden(false) .setPublic(false) - .code("Wf") - .usageLimit(6811) - .minAmount(8019) - .storageId("08830937-d988-4741-b15c-657798bfddcc"); + .code("wKq") + .usageLimit(6700) + .minAmount(5380) + .storageId("96c694f8-30fa-483b-b5ab-2bea55ede50f") + .numRecipientsCap(316); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1231,26 +1364,27 @@ void test44() throws ConnectionError, ProcessingError { } } @Test - void test45() throws ConnectionError, ProcessingError { + void test49() 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(492.0) + .discountPercentage(2986.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") + .availableShopIds(new String[]{"f2e0f8df-5398-448b-bed5-7b21b8e4acdd","b72d3c0f-8aec-439b-ad6d-e7ebc28f3904","8621688d-01cb-4a28-8885-4d81ebd5a752","5b70e7fc-f32d-4f81-9664-26a8168267d2","729fe3d8-7be5-4769-a519-f2de0f1acb7c","d715657b-39d9-4836-a8c1-ffed9f6c0a4d","3e719d5e-3f42-4a14-b3a5-3aa892efbe8f"}) + .displayStartsAt("2024-01-20T06:05:10.000000Z") + .displayEndsAt("2024-02-06T13:44:24.000000Z") .setDisabled(true) - .setHidden(true) + .setHidden(false) .setPublic(false) - .code("F") - .usageLimit(4045) - .minAmount(8409) - .storageId("a3f6e75e-cad1-464c-911b-720b25f9c608"); + .code("qGZQWNed5B") + .usageLimit(8374) + .minAmount(7149) + .storageId("1cfddede-4d0d-413a-b65c-9535efc4e197") + .numRecipientsCap(3889); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .discountPercentage(3147.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") + .discountPercentage(5614.0) + .setShopSpecified(true) + .availableShopIds(new String[]{"cee82852-77ed-41c0-bea1-79bc902b59e8"}) + .discountUpperLimit(848) + .displayStartsAt("2024-02-07T18:25:33.000000Z") + .displayEndsAt("2024-04-12T08:39:42.000000Z") .setDisabled(true) .setHidden(true) .setPublic(false) - .code("89Abrha") - .usageLimit(5397) - .minAmount(389) - .storageId("c28b0a7e-0bd7-4eff-921c-1acdbdd36389"); + .code("f1QdSFas") + .usageLimit(146) + .minAmount(8172) + .storageId("20edb4c9-f416-4f3b-be5e-ed43bde3ffa1") + .numRecipientsCap(7319); 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" + "a9bb14d5-aa60-46b4-ab54-e22a41a6097d", + "H2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW", + "2023-02-05T02:01:10.000000Z", + "2025-06-16T17:28:21.000000Z", + "f0088ff3-bec6-4e26-b041-f83f2556d652" ) - .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(2185.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"4a82bd65-8611-4953-a7e3-8aa5a99edfc7","57f3d78a-6f80-40f3-93b3-2b2126a90518","ff4bfb50-33c1-4a17-a835-a62d372421ff","8b3ea4c2-c8cd-43d5-bf2a-0bb5696a9c3f","b2e2b80f-73b4-4115-b76c-0cce16564a90","957180ca-6afe-4e64-bd1e-dece97cdbeb5"}) + .description("73CatnkU3QijX") + .discountUpperLimit(1495) + .displayStartsAt("2022-08-26T02:06:39.000000Z") + .displayEndsAt("2023-02-09T07:30:20.000000Z") + .setDisabled(true) .setHidden(false) .setPublic(false) - .code("hAD4rp") - .usageLimit(7287) - .minAmount(5143) - .storageId("505e7faa-8ce8-4cd7-931b-1c1116ecf546"); + .code("6") + .usageLimit(3599) + .minAmount(3813) + .storageId("01ad37a8-b839-4e20-822a-81c96b2af3a7") + .numRecipientsCap(3876); 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 6d28c48..ab3b020 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 + "jIsFsWbo7bpQq9anT6Pszk", + "ef7eb08c-4e4e-4b9a-86bc-db8730a560b3", + 9897.0 ); try { PartnerAPITest.getClient().send(request); @@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "jIsFsWbo7bpQq9anT6Pszk", + "ef7eb08c-4e4e-4b9a-86bc-db8730a560b3", + 9897.0 ) - .strategy("point-preferred"); + .strategy("money-only"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -49,11 +49,11 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "jIsFsWbo7bpQq9anT6Pszk", + "ef7eb08c-4e4e-4b9a-86bc-db8730a560b3", + 9897.0 ) - .requestId("77fe478d-5bc6-4e78-8807-b6de97513e52") + .requestId("30d01c3e-e73c-4731-b488-e80e69aaa6b4") .strategy("point-preferred"); try { PartnerAPITest.getClient().send(request); @@ -132,22 +132,14 @@ void test3() throws ConnectionError, ProcessingError { items8.addProperty("quantity", 1); items8.addProperty("is_discounted", false); items8.addProperty("other", "{}"); - JsonObject items9 = new JsonObject(); - items9.addProperty("jan_code", "abc"); - items9.addProperty("name", "name1"); - items9.addProperty("unit_price", 100); - items9.addProperty("price", 100); - items9.addProperty("quantity", 1); - items9.addProperty("is_discounted", false); - items9.addProperty("other", "{}"); Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "jIsFsWbo7bpQq9anT6Pszk", + "ef7eb08c-4e4e-4b9a-86bc-db8730a560b3", + 9897.0 ) - .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .requestId("27df3392-3887-41d4-a9d4-dcd7c7e0a74f") - .strategy("money-only"); + .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .requestId("cde92489-820a-479d-a85d-78d9681ca673") + .strategy("point-preferred"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -201,14 +193,22 @@ 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 + "jIsFsWbo7bpQq9anT6Pszk", + "ef7eb08c-4e4e-4b9a-86bc-db8730a560b3", + 9897.0 ) .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3,items4,items5}) - .requestId("94f12ee0-aa98-42cb-8c1e-da6849d2aba5") + .products(new Object[]{items,items2,items3,items4,items5,items6}) + .requestId("96528069-3fc5-430e-94b8-fe3bd4971060") .strategy("money-only"); try { PartnerAPITest.getClient().send(request); @@ -239,16 +239,32 @@ void test5() 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", "{}"); Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "jIsFsWbo7bpQq9anT6Pszk", + "ef7eb08c-4e4e-4b9a-86bc-db8730a560b3", + 9897.0 ) - .description("4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjH") + .description("8p") .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2}) - .requestId("391bed4c-b269-4fab-b226-1d00f8db6c8b") - .strategy("money-only"); + .products(new Object[]{items,items2,items3,items4}) + .requestId("4a3bd1c0-c548-4def-a705-2214641effa6") + .strategy("point-preferred"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { 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 0000000..f938f0d --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/CreateCreditSessionTransactionTest.java @@ -0,0 +1,66 @@ +// 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( + "cc450cba-668f-4380-854c-2e6dae6d9426", + 5723.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( + "cc450cba-668f-4380-854c-2e6dae6d9426", + 5723.0 + ) + .description("BMnn24Y00BddIYIaGsnHTfyj3vGhpYs6lE3PVxThCRcEAVa4JmfjoJZ9ajsO39BqxPDSP5B"); + 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( + "cc450cba-668f-4380-854c-2e6dae6d9426", + 5723.0 + ) + .shopId("c77780f0-6fba-42e6-818b-46b0919e6d64") + .description("cuMmHpa4aDHWm32hBFhI0DxRhz83lKq4Wp1hKlNvpHM0s7Dd9Uu6qWqC0qUtLag9adxARTcCtKjz1M2kusM3cVDMOG"); + 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 bdd7685..615f3f1 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" + "beefdc5e-6697-4955-acec-413a9e060308" ); 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" + "beefdc5e-6697-4955-acec-413a9e060308" ) - .externalId("e87oi"); + .externalId("rgsQZQAnUYeKIbZQuPYAKNLvTyMcIYlLo"); 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" + "beefdc5e-6697-4955-acec-413a9e060308" ) - .accountName("kJDB6ZsUUsk6umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXh") - .externalId("26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5"); + .accountName("Sz5jRHNPv9LO3MtPyt1wTnktL8AYkBvD7caRgncONv8Kje2pUTWzADNDe87oiAkJDB6ZsUUsk6umIdkjysmBoCy1Ud") + .externalId("1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yG"); 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" + "beefdc5e-6697-4955-acec-413a9e060308" ) - .userName("bgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH") - .accountName("emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdW") - .externalId("jKy82N74m"); + .userName("Awg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5IbgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0O") + .accountName("KxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi6") + .externalId("2IzWH9emhQ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java index ea29985..1e793b8 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 + "1ba7be5e-39f6-4c36-b773-998144324a70", + "6a5a0bef-05d2-476f-8850-443c9e7e9011", + "25c8bc0b-c8cb-4f55-a77e-302f23022409", + 1838 ); 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 + "1ba7be5e-39f6-4c36-b773-998144324a70", + "6a5a0bef-05d2-476f-8850-443c9e7e9011", + "25c8bc0b-c8cb-4f55-a77e-302f23022409", + 1838 ) - .requestId("92f5b7ff-f7c2-450e-bc37-458e428585bb"); + .requestId("b8d75bab-d21b-4756-8513-3cbf3f1610dd"); 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 + "1ba7be5e-39f6-4c36-b773-998144324a70", + "6a5a0bef-05d2-476f-8850-443c9e7e9011", + "25c8bc0b-c8cb-4f55-a77e-302f23022409", + 1838 ) - .description("f3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5c") - .requestId("1ea02ddd-cfa7-4d7b-9c0d-0729624b266b"); + .description("a3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5BruF") + .requestId("ed596f8c-6135-49a3-96d1-88cf7f197bca"); 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 73757b9..c74c55a 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 + "f0662458-d0d5-42d2-9920-0529b41152eb", + "48c13fea-3f43-4063-a167-b5bcfab6ce03", + "05a444e7-b031-4778-b025-0b1229d464a1", + 2628 ); 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 + "f0662458-d0d5-42d2-9920-0529b41152eb", + "48c13fea-3f43-4063-a167-b5bcfab6ce03", + "05a444e7-b031-4778-b025-0b1229d464a1", + 2628 ) - .doneAt("2021-12-27T02:20:28.000000Z"); + .doneAt("2020-07-05T11:13:07.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 + "f0662458-d0d5-42d2-9920-0529b41152eb", + "48c13fea-3f43-4063-a167-b5bcfab6ce03", + "05a444e7-b031-4778-b025-0b1229d464a1", + 2628 ) - .requestId("043b69d1-e8c2-4486-9f49-0d0c4338b4d8") - .doneAt("2021-07-15T01:50:22.000000Z"); + .requestId("6631f3a6-4804-48f9-b43c-640d2ba2c473") + .doneAt("2024-09-05T06:27:36.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -87,15 +87,31 @@ 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", "{}"); Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "f0662458-d0d5-42d2-9920-0529b41152eb", + "48c13fea-3f43-4063-a167-b5bcfab6ce03", + "05a444e7-b031-4778-b025-0b1229d464a1", + 2628 ) - .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}) + .requestId("9ec4b92c-d782-48fc-8bd2-9f601d7b2d0b") + .doneAt("2024-02-04T18:10:05.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -133,16 +149,48 @@ void test4() throws ConnectionError, ProcessingError { 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 + "f0662458-d0d5-42d2-9920-0529b41152eb", + "48c13fea-3f43-4063-a167-b5bcfab6ce03", + "05a444e7-b031-4778-b025-0b1229d464a1", + 2628 ) .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,items2,items3,items4,items5,items6,items7}) + .requestId("aeca875d-d5b7-4bee-90d4-1419036dc9d7") + .doneAt("2022-06-06T15:35:31.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -220,17 +268,33 @@ void test5() throws ConnectionError, ProcessingError { items8.addProperty("quantity", 1); items8.addProperty("is_discounted", false); items8.addProperty("other", "{}"); + JsonObject items9 = new JsonObject(); + items9.addProperty("jan_code", "abc"); + items9.addProperty("name", "name1"); + items9.addProperty("unit_price", 100); + items9.addProperty("price", 100); + items9.addProperty("quantity", 1); + items9.addProperty("is_discounted", false); + items9.addProperty("other", "{}"); + JsonObject items10 = new JsonObject(); + items10.addProperty("jan_code", "abc"); + items10.addProperty("name", "name1"); + items10.addProperty("unit_price", 100); + items10.addProperty("price", 100); + items10.addProperty("quantity", 1); + items10.addProperty("is_discounted", false); + items10.addProperty("other", "{}"); Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "f0662458-d0d5-42d2-9920-0529b41152eb", + "48c13fea-3f43-4063-a167-b5bcfab6ce03", + "05a444e7-b031-4778-b025-0b1229d464a1", + 2628 ) - .description("FlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rW") + .description("It3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7") .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,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .requestId("7b05ae55-5929-443c-a4e2-dbbdabdacda3") + .doneAt("2025-09-15T11:43:05.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 c3c77a8..2a24a76 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" + "mHWdPUiVDqeH", + "PcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98Y", + new String[]{"26639617-61ea-4b12-be03-2494ab3663a7","8d502c53-31cb-4f93-8ba8-a1fcf5d66752","90cbea8c-6bc7-4789-8c51-71af70799c70","4fab5cce-8093-4a94-a6a1-8d0cbc804d07","19fc2c78-ddc0-46b8-8963-2b6986fd9ae0","841e4321-a7ce-4d72-8bf7-2b654d5e9d15","9db5a4c7-d2ca-4974-aec7-7471da68cdae","7c44961b-a72a-4822-a9dd-430fa472ee64"}, + "Sp90ci6D0i@GddO.com", + "VzLT6tirwJ@LurB.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" + "mHWdPUiVDqeH", + "PcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98Y", + new String[]{"26639617-61ea-4b12-be03-2494ab3663a7","8d502c53-31cb-4f93-8ba8-a1fcf5d66752","90cbea8c-6bc7-4789-8c51-71af70799c70","4fab5cce-8093-4a94-a6a1-8d0cbc804d07","19fc2c78-ddc0-46b8-8963-2b6986fd9ae0","841e4321-a7ce-4d72-8bf7-2b654d5e9d15","9db5a4c7-d2ca-4974-aec7-7471da68cdae","7c44961b-a72a-4822-a9dd-430fa472ee64"}, + "Sp90ci6D0i@GddO.com", + "VzLT6tirwJ@LurB.com" ) - .contactName("SoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcda"); + .contactName("yrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd"); 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" + "mHWdPUiVDqeH", + "PcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98Y", + new String[]{"26639617-61ea-4b12-be03-2494ab3663a7","8d502c53-31cb-4f93-8ba8-a1fcf5d66752","90cbea8c-6bc7-4789-8c51-71af70799c70","4fab5cce-8093-4a94-a6a1-8d0cbc804d07","19fc2c78-ddc0-46b8-8963-2b6986fd9ae0","841e4321-a7ce-4d72-8bf7-2b654d5e9d15","9db5a4c7-d2ca-4974-aec7-7471da68cdae","7c44961b-a72a-4822-a9dd-430fa472ee64"}, + "Sp90ci6D0i@GddO.com", + "VzLT6tirwJ@LurB.com" ) - .bankAccountHolderName("R") - .contactName("9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs8"); + .bankAccountHolderName("K") + .contactName("f0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8V"); 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" + "mHWdPUiVDqeH", + "PcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98Y", + new String[]{"26639617-61ea-4b12-be03-2494ab3663a7","8d502c53-31cb-4f93-8ba8-a1fcf5d66752","90cbea8c-6bc7-4789-8c51-71af70799c70","4fab5cce-8093-4a94-a6a1-8d0cbc804d07","19fc2c78-ddc0-46b8-8963-2b6986fd9ae0","841e4321-a7ce-4d72-8bf7-2b654d5e9d15","9db5a4c7-d2ca-4974-aec7-7471da68cdae","7c44961b-a72a-4822-a9dd-430fa472ee64"}, + "Sp90ci6D0i@GddO.com", + "VzLT6tirwJ@LurB.com" ) - .bankAccount("116767") - .bankAccountHolderName("8") - .contactName("zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7"); + .bankAccount("64957") + .bankAccountHolderName("セ") + .contactName("myi8jmBN0T80aLvrKoRyTXgPVT4AzeoZEOYuu1RyqlWwyCNVezTDDCUN00F2V"); 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" + "mHWdPUiVDqeH", + "PcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98Y", + new String[]{"26639617-61ea-4b12-be03-2494ab3663a7","8d502c53-31cb-4f93-8ba8-a1fcf5d66752","90cbea8c-6bc7-4789-8c51-71af70799c70","4fab5cce-8093-4a94-a6a1-8d0cbc804d07","19fc2c78-ddc0-46b8-8963-2b6986fd9ae0","841e4321-a7ce-4d72-8bf7-2b654d5e9d15","9db5a4c7-d2ca-4974-aec7-7471da68cdae","7c44961b-a72a-4822-a9dd-430fa472ee64"}, + "Sp90ci6D0i@GddO.com", + "VzLT6tirwJ@LurB.com" ) - .bankAccountType("other") - .bankAccount("89874") - .bankAccountHolderName(",") - .contactName("43AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchk"); + .bankAccountType("saving") + .bankAccount("803813") + .bankAccountHolderName("7") + .contactName("SMDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqR"); 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" + "mHWdPUiVDqeH", + "PcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98Y", + new String[]{"26639617-61ea-4b12-be03-2494ab3663a7","8d502c53-31cb-4f93-8ba8-a1fcf5d66752","90cbea8c-6bc7-4789-8c51-71af70799c70","4fab5cce-8093-4a94-a6a1-8d0cbc804d07","19fc2c78-ddc0-46b8-8963-2b6986fd9ae0","841e4321-a7ce-4d72-8bf7-2b654d5e9d15","9db5a4c7-d2ca-4974-aec7-7471da68cdae","7c44961b-a72a-4822-a9dd-430fa472ee64"}, + "Sp90ci6D0i@GddO.com", + "VzLT6tirwJ@LurB.com" ) - .bankBranchCode("165") - .bankAccountType("saving") - .bankAccount("300") - .bankAccountHolderName("ラ") - .contactName("ZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RI"); + .bankBranchCode("") + .bankAccountType("current") + .bankAccount("571") + .bankAccountHolderName(".") + .contactName("i0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo"); 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" + "mHWdPUiVDqeH", + "PcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98Y", + new String[]{"26639617-61ea-4b12-be03-2494ab3663a7","8d502c53-31cb-4f93-8ba8-a1fcf5d66752","90cbea8c-6bc7-4789-8c51-71af70799c70","4fab5cce-8093-4a94-a6a1-8d0cbc804d07","19fc2c78-ddc0-46b8-8963-2b6986fd9ae0","841e4321-a7ce-4d72-8bf7-2b654d5e9d15","9db5a4c7-d2ca-4974-aec7-7471da68cdae","7c44961b-a72a-4822-a9dd-430fa472ee64"}, + "Sp90ci6D0i@GddO.com", + "VzLT6tirwJ@LurB.com" ) - .bankBranchName("GwbFSZ2qU3L") - .bankBranchCode("624") - .bankAccountType("saving") - .bankAccount("5") - .bankAccountHolderName("\\") - .contactName("3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7"); + .bankBranchName("6kwtt0eE996vZBp0zzwPN5DIhcy9tg03") + .bankBranchCode("") + .bankAccountType("other") + .bankAccount("95573") + .bankAccountHolderName("ヲ") + .contactName("9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MIK7GdyM50XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pf"); 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" + "mHWdPUiVDqeH", + "PcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98Y", + new String[]{"26639617-61ea-4b12-be03-2494ab3663a7","8d502c53-31cb-4f93-8ba8-a1fcf5d66752","90cbea8c-6bc7-4789-8c51-71af70799c70","4fab5cce-8093-4a94-a6a1-8d0cbc804d07","19fc2c78-ddc0-46b8-8963-2b6986fd9ae0","841e4321-a7ce-4d72-8bf7-2b654d5e9d15","9db5a4c7-d2ca-4974-aec7-7471da68cdae","7c44961b-a72a-4822-a9dd-430fa472ee64"}, + "Sp90ci6D0i@GddO.com", + "VzLT6tirwJ@LurB.com" ) - .bankCode("4615") - .bankBranchName("klIR5ig74Fkbtbb0Sl") - .bankBranchCode("219") - .bankAccountType("other") - .bankAccount("7948") - .bankAccountHolderName("\\") - .contactName("Hxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp9"); + .bankCode("") + .bankBranchName("8OgNhhqnfBQjVsClPPd") + .bankBranchCode("") + .bankAccountType("current") + .bankAccount("65") + .bankAccountHolderName("5") + .contactName("o5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZ"); 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" + "mHWdPUiVDqeH", + "PcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98Y", + new String[]{"26639617-61ea-4b12-be03-2494ab3663a7","8d502c53-31cb-4f93-8ba8-a1fcf5d66752","90cbea8c-6bc7-4789-8c51-71af70799c70","4fab5cce-8093-4a94-a6a1-8d0cbc804d07","19fc2c78-ddc0-46b8-8963-2b6986fd9ae0","841e4321-a7ce-4d72-8bf7-2b654d5e9d15","9db5a4c7-d2ca-4974-aec7-7471da68cdae","7c44961b-a72a-4822-a9dd-430fa472ee64"}, + "Sp90ci6D0i@GddO.com", + "VzLT6tirwJ@LurB.com" ) - .bankName("ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5Y") - .bankCode("") - .bankBranchName("VquVYsbDyy") - .bankBranchCode("292") - .bankAccountType("other") - .bankAccount("534") - .bankAccountHolderName(".") - .contactName("qoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJ"); + .bankName("P3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCv") + .bankCode("9441") + .bankBranchName("5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wi") + .bankBranchCode("739") + .bankAccountType("current") + .bankAccount("14640") + .bankAccountHolderName("ノ") + .contactName("IDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4Dl"); 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 96db774..3b6c6e0 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 + "3bd2bd97-7274-44ff-bd6d-83c0d0d273b9", + "aaad21b8-b033-48eb-b3c4-50643863fc4b", + "65ec8a2b-d6e6-4d62-8390-f8a82864c239", + 1078 ); 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 + "3bd2bd97-7274-44ff-bd6d-83c0d0d273b9", + "aaad21b8-b033-48eb-b3c4-50643863fc4b", + "65ec8a2b-d6e6-4d62-8390-f8a82864c239", + 1078 ) - .strategy("money-only"); + .couponId("1ea67a44-f240-435f-a98f-457c537aea1d"); 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 + "3bd2bd97-7274-44ff-bd6d-83c0d0d273b9", + "aaad21b8-b033-48eb-b3c4-50643863fc4b", + "65ec8a2b-d6e6-4d62-8390-f8a82864c239", + 1078 ) - .requestId("2aa855f3-c72b-4758-bde2-f146fa62868a") - .strategy("money-only"); + .strategy("point-preferred") + .couponId("d35331c2-123f-4aa5-8d88-18f6d85a6380"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -71,63 +71,15 @@ 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", "{}"); - 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 + "3bd2bd97-7274-44ff-bd6d-83c0d0d273b9", + "aaad21b8-b033-48eb-b3c4-50643863fc4b", + "65ec8a2b-d6e6-4d62-8390-f8a82864c239", + 1078 ) - .products(new Object[]{items,items2,items3,items4,items5,items6}) - .requestId("3829af74-a55a-42fb-b477-53c649410e93") - .strategy("point-preferred"); + .requestId("076747f5-d9c3-4930-9cd1-df54bd7f365f") + .strategy("point-preferred") + .couponId("c58d1de6-ffbc-4fa2-9740-a278051eb982"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -205,16 +157,24 @@ void test4() throws ConnectionError, ProcessingError { items8.addProperty("quantity", 1); items8.addProperty("is_discounted", false); items8.addProperty("other", "{}"); + JsonObject items9 = new JsonObject(); + items9.addProperty("jan_code", "abc"); + items9.addProperty("name", "name1"); + items9.addProperty("unit_price", 100); + items9.addProperty("price", 100); + items9.addProperty("quantity", 1); + items9.addProperty("is_discounted", false); + items9.addProperty("other", "{}"); Request request = new CreatePaymentTransaction( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "3bd2bd97-7274-44ff-bd6d-83c0d0d273b9", + "aaad21b8-b033-48eb-b3c4-50643863fc4b", + "65ec8a2b-d6e6-4d62-8390-f8a82864c239", + 1078 ) - .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,items3,items4,items5,items6,items7,items8,items9}) + .requestId("10b6a96c-a5b2-45bb-9a9a-9a5a842f42a0") + .strategy("point-preferred") + .couponId("3c4b07bc-196a-4299-b93f-1ed1cb0b8d8d"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -228,6 +188,46 @@ void test4() throws ConnectionError, ProcessingError { } @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 CreatePaymentTransaction( + "3bd2bd97-7274-44ff-bd6d-83c0d0d273b9", + "aaad21b8-b033-48eb-b3c4-50643863fc4b", + "65ec8a2b-d6e6-4d62-8390-f8a82864c239", + 1078 + ) + .metadata("{\"key\":\"value\"}") + .products(new Object[]{items,items2}) + .requestId("c8cc079d-7f65-4720-8f1e-090f9aeee731") + .strategy("point-preferred") + .couponId("c9734f2b-5a39-4d3f-8b68-039964f5b446"); + 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 { JsonObject items = new JsonObject(); items.addProperty("jan_code", "abc"); items.addProperty("name", "name1"); @@ -260,49 +260,18 @@ void test5() 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", "{}"); - 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 + "3bd2bd97-7274-44ff-bd6d-83c0d0d273b9", + "aaad21b8-b033-48eb-b3c4-50643863fc4b", + "65ec8a2b-d6e6-4d62-8390-f8a82864c239", + 1078 ) - .description("LsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zL") + .description("xiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGS") .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}) + .requestId("8f05ec2d-a656-4d17-a7d6-e927e10b503b") + .strategy("money-only") + .couponId("02099884-2de3-46f3-b30f-eb4f88c39551"); 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 0000000..fed01e9 --- /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( + "03f6104d-06e4-4248-b15a-224ce7192092", + "5cf0f56c-b000-4b76-b0b1-e186782db0bd" + ); + 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( + "03f6104d-06e4-4248-b15a-224ce7192092", + "5cf0f56c-b000-4b76-b0b1-e186782db0bd" + ) + .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 test2() throws ConnectionError, ProcessingError { + Request request = new CreatePaymentTransactionWithBill( + "03f6104d-06e4-4248-b15a-224ce7192092", + "5cf0f56c-b000-4b76-b0b1-e186782db0bd" + ) + .requestId("42b8b147-1196-4ea0-b182-68cf1063889f") + .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 test3() throws ConnectionError, ProcessingError { + Request request = new CreatePaymentTransactionWithBill( + "03f6104d-06e4-4248-b15a-224ce7192092", + "5cf0f56c-b000-4b76-b0b1-e186782db0bd" + ) + .metadata("{\"key\":\"value\"}") + .requestId("811a5d15-e4a7-4b98-9f8a-70256162186e") + .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 5a50ce6..4f2b5f0 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" + "fjs9RSVIuRLJamUg" ); 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" + "fjs9RSVIuRLJamUg" ) - .organizationCode("T-sG-A-Y4rx3806--"); + .organizationCode("C-35sO0P-E"); 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" + "fjs9RSVIuRLJamUg" ) - .shopExternalId("cqmENfDor1zgwF9x3") - .organizationCode("2-"); + .shopExternalId("OC9my1YOO8CjR0YFmv40UM5wZgue6") + .organizationCode("k614iF-4I--e-Eh56cdgx"); 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" + "fjs9RSVIuRLJamUg" ) - .shopEmail("fU4cD6smAe@qngi.com") - .shopExternalId("ikqDE3OudXpYhNw") - .organizationCode("ZA7BK-"); + .shopEmail("HUNUhMpEnc@zyOh.com") + .shopExternalId("MWAPbHXytdjUT8FkE6WXDem2rgSzz35aQ") + .organizationCode("5--m-"); 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" + "fjs9RSVIuRLJamUg" ) - .shopTel("0476633-271") - .shopEmail("1FfneXYRV1@FBu9.com") - .shopExternalId("VqwmK2QWEkaIk3Nf304AeRoMBnYR") - .organizationCode("I-sc750tZXruc"); + .shopTel("069-3666878") + .shopEmail("zWzCAqp2Za@nhrL.com") + .shopExternalId("A3cZ4NnyIEjaN6d") + .organizationCode("Qj-90-AVnU6-1V-TmQ-B--E-t"); 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" + "fjs9RSVIuRLJamUg" ) - .shopAddress("EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJ") - .shopTel("02557640") - .shopEmail("g3h5b1QYmV@Ctk7.com") - .shopExternalId("JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspa") - .organizationCode("Y1l-3S-a99d39XW2-OAW4--i"); + .shopAddress("K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhc") + .shopTel("03-556-5040") + .shopEmail("Dp6qm5enNI@Ylp4.com") + .shopExternalId("WuULLQB3hzZG357PPnW") + .organizationCode("1cvc-uWw-Bm7z"); 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" + "fjs9RSVIuRLJamUg" ) - .shopPostalCode("1393414") - .shopAddress("bb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd") - .shopTel("0061231408") - .shopEmail("qoWmfQbT09@Lp66.com") - .shopExternalId("g0d7eGITtIklkYFTO7OJe9dSEOGAL") - .organizationCode("t518798nQhn-67"); + .shopPostalCode("9731842") + .shopAddress("WT1kP64chZLEzZT") + .shopTel("095-13-5853") + .shopEmail("ILicKJugPM@hkbN.com") + .shopExternalId("W44x5lpizelx6Zw3ANkreMSnigb4Yb3t") + .organizationCode("bVso1r--0-mnj-Q"); 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 8ac3f45..17c1ba0 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" + "A3BNnPJo0CH10G" ); 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" + "A3BNnPJo0CH10G" ) - .canTopupPrivateMoneyIds(new String[]{}); + .canTopupPrivateMoneyIds(new String[]{"c9e06b62-7a39-4297-9f36-18cae73755fa"}); 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" + "A3BNnPJo0CH10G" ) - .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[]{"fffe155e-4ee5-467d-96e6-12b77a4cd326","ce443c66-5dff-42a0-b3c8-042606c8253e","afa90065-45de-46a8-befc-de315e0e78e6","546784b0-1d1d-4ed1-993a-52dcee4a5c5f"}) + .canTopupPrivateMoneyIds(new String[]{"5d49efeb-a667-4aca-ae63-263399a0e969","d2867d69-9b1f-4085-8093-a95da97ae1ae","45c36340-9eca-4b0f-a233-024e96d5a240","0d6c3544-789b-4423-9bd6-050f93e5f0c6","f793221f-436b-403a-829b-244ecf935be0"}); 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" + "A3BNnPJo0CH10G" ) - .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("H-5J--wZTom2Rx-7bjI") + .privateMoneyIds(new String[]{"259cc6ed-eb96-406c-8403-72b551df88df","8fae0ca6-8481-4a2a-bf9d-dd4180191d27","4fa170e7-683f-45dd-aeca-f434c6d9af03","6c1dba40-9508-4c04-a484-5caeaa80a54f","e88a5db8-7813-40bb-9645-05a1eafe2e60","653b57a9-e299-413c-bea7-c41c68ef6d74","1268aa33-8d14-40e8-b94e-c030a176b127","07527f8b-175e-4eb1-b8d7-74a182d130cb"}) + .canTopupPrivateMoneyIds(new String[]{}); 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" + "A3BNnPJo0CH10G" ) - .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("SJX1OiNUbqHXuSEWeM8VLmM8qznKIn") + .organizationCode("") + .privateMoneyIds(new String[]{"c2a63929-4572-493e-9204-09753cc2abe3","b3ca396d-9ec6-40b8-ae01-c83803220bd6","e03ec89d-e386-4eee-aac6-5c913f61025b","d0fdefef-ccc5-4d89-bd73-4db5c4e163e6","beed5eab-43bf-4a07-9e36-d908d20e9714","163d2bb4-8809-4fed-b67c-6dd82ad2094b","dba92a0e-03bd-4bc3-a330-a479760dccc9","9968318b-422e-43e0-af3a-ef083364f713"}) + .canTopupPrivateMoneyIds(new String[]{"195a3644-5972-4ca2-8fed-ffa8d8d32866","0d06d283-e618-40da-8e76-c6630fdd99e6","6266c380-7643-4321-a57b-62e4a9c3fd26","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"}); 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" + "A3BNnPJo0CH10G" ) - .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("P34hD1uxIb@udPg.com") + .externalId("cAH4LqtvnYdJ") + .organizationCode("1-DbKQy-BV3-J-oH-5orX--J309v3") + .privateMoneyIds(new String[]{"55432eae-f6c2-44c0-b03e-271df1eaabfc","78bca91e-838f-484a-84d3-7f5e6124acac","150360f4-5928-4037-8b9a-61e872dd9d07","d7d85cda-949c-4ead-8ecc-973646007363","d71a1b76-59ff-46e3-bb89-bb3af40a8af1","2bcc2bc2-656e-4c68-acc7-9feed5973527"}) + .canTopupPrivateMoneyIds(new String[]{"65694579-15d2-4b12-a273-10246a0fd1b1","729f95da-8162-41e7-888d-ef45617a7e96","c0125458-1634-45b6-8424-85cc31003eb0","f882e65f-0f45-46a5-993b-febfdef2f39a","0b86d4b9-a786-4814-8466-116727bfb9b2"}); 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" + "A3BNnPJo0CH10G" ) - .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("032390-4325") + .email("HkpeJS53rQ@YrIE.com") + .externalId("vl0KriuNlhP5RwfRsdm") + .organizationCode("WJkX4I--SRcu6-64X-9") + .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","b9c14ea6-c410-4c7b-9ae0-088c402e9999"}) + .canTopupPrivateMoneyIds(new String[]{"1b3140f6-e985-4158-8c34-20440d9d74dc","89c75ed4-05f2-45ff-a5db-d2807b407e6e","bd9d470d-f19b-4b59-bcac-89ea1922f35b","7d0459ff-ad9a-4710-b6bb-a3f2f35533c5","a3efa5b9-d4e0-4348-b55e-1c93e807f32b","3ebca7d7-9c3f-41c7-ad2c-ba350fb6eb07"}); 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" + "A3BNnPJo0CH10G" ) - .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("xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu") + .tel("05486573661") + .email("GLqQiqaG2p@9irV.com") + .externalId("NMOOMEypf2sbMz5") + .organizationCode("3lX-VsAf-Z6--674a3-0w-oq38S3") + .privateMoneyIds(new String[]{"4f6d6ffc-e3cc-456f-8d24-9681099843e5","92a594af-9002-4bec-a58e-e4b3f8dcee70"}) + .canTopupPrivateMoneyIds(new String[]{}); 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" + "A3BNnPJo0CH10G" ) - .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("8282155") + .address("CaVZzJ21Wkjwh096vY0YkfqArkVOxtHaQbqrekxj6KVFbsIqYgBl99xXSIGv3Ovn3SH7ljqEdpqCcPOpWjivoOnvdw0Yvld3IeJyhTlRgTT2NxSiphZRlLoLjMmLSH") + .tel("069-40-083") + .email("e4tHPdlvKx@C8Qo.com") + .externalId("jNK") + .organizationCode("-PmBnibTq1Ew3W") + .privateMoneyIds(new String[]{"603ff958-16cc-406b-98fb-018dc7644311","35028b1f-67c0-4180-af17-b548768afbe1","9e693314-0864-4a8e-b963-6e4f4cee3590","b776a90e-d2ae-422f-9322-bd400428413c"}) + .canTopupPrivateMoneyIds(new String[]{"9ee6f9d2-44e5-4a91-aa31-b7999080ccd4","8ea232f7-9362-4232-a104-1872d04f5f76","04cd68f0-53e9-4f77-a0ca-9507221c3ca7"}); 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 b01d70c..5c4a3f7 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" + "b60aa8f7-2eda-47b1-94d9-78d1f45a9888", + "157ad3a6-4dfb-43e0-8174-37663bb26e02", + "fb5859a0-0527-4500-b247-f1d09e5ac666" ); 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" + "b60aa8f7-2eda-47b1-94d9-78d1f45a9888", + "157ad3a6-4dfb-43e0-8174-37663bb26e02", + "fb5859a0-0527-4500-b247-f1d09e5ac666" ) - .requestId("6c64555b-d9af-4745-97c9-087ea03b9908"); + .requestId("1fa09f3e-e948-4e59-9be5-6c9c3f60a365"); 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" + "b60aa8f7-2eda-47b1-94d9-78d1f45a9888", + "157ad3a6-4dfb-43e0-8174-37663bb26e02", + "fb5859a0-0527-4500-b247-f1d09e5ac666" ) .metadata("{\"key\":\"value\"}") - .requestId("f939997e-bb86-43a1-8662-9fa926ac4089"); + .requestId("44ff57ca-bed7-4016-a9ca-ffbf67947e4c"); 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" + "b60aa8f7-2eda-47b1-94d9-78d1f45a9888", + "157ad3a6-4dfb-43e0-8174-37663bb26e02", + "fb5859a0-0527-4500-b247-f1d09e5ac666" ) - .description("7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecq") + .description("n1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXy") .metadata("{\"key\":\"value\"}") - .requestId("53596018-c257-4fe4-bcc4-8d098d867fd6"); + .requestId("d5777316-5b45-4656-ba5f-91e81a558c8f"); 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" + "b60aa8f7-2eda-47b1-94d9-78d1f45a9888", + "157ad3a6-4dfb-43e0-8174-37663bb26e02", + "fb5859a0-0527-4500-b247-f1d09e5ac666" ) - .pointExpiresAt("2022-04-26T11:41:07.000000Z") - .description("stoEtPVoykbtA6l7WDayqQLAKXyhWYdlIH") + .pointExpiresAt("2020-02-19T04:07:07.000000Z") + .description("2OJwUM0ktk1yse") .metadata("{\"key\":\"value\"}") - .requestId("2ce8fee6-9053-40fe-8242-cc4bb1fa0349"); + .requestId("0a12dd2d-bb34-4fc3-aee4-0502dbfefb4e"); 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" + "b60aa8f7-2eda-47b1-94d9-78d1f45a9888", + "157ad3a6-4dfb-43e0-8174-37663bb26e02", + "fb5859a0-0527-4500-b247-f1d09e5ac666" ) - .pointAmount(817) - .pointExpiresAt("2021-09-07T09:54:19.000000Z") - .description("Ql4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNto") + .pointAmount(4747) + .pointExpiresAt("2021-01-17T22:24:07.000000Z") + .description("hZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcN") .metadata("{\"key\":\"value\"}") - .requestId("ca208929-ae70-4cf1-893f-8fbf31547cbb"); + .requestId("4972ef25-bddd-4ac5-846c-579ba3aa113a"); 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" + "b60aa8f7-2eda-47b1-94d9-78d1f45a9888", + "157ad3a6-4dfb-43e0-8174-37663bb26e02", + "fb5859a0-0527-4500-b247-f1d09e5ac666" ) - .moneyAmount(6582) - .pointAmount(2496) - .pointExpiresAt("2021-03-28T20:33:04.000000Z") - .description("rDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJ") + .moneyAmount(275) + .pointAmount(3582) + .pointExpiresAt("2021-09-11T04:09:06.000000Z") + .description("x") .metadata("{\"key\":\"value\"}") - .requestId("28d8b055-11a7-4321-8657-46f08b430634"); + .requestId("3a05f98e-a93f-4b9f-b44b-0db720e31d6f"); 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" + "b60aa8f7-2eda-47b1-94d9-78d1f45a9888", + "157ad3a6-4dfb-43e0-8174-37663bb26e02", + "fb5859a0-0527-4500-b247-f1d09e5ac666" ) - .bearPointShopId("6bfc44af-b553-494a-9dc4-281b2f3b2864") - .moneyAmount(1469) - .pointAmount(9488) - .pointExpiresAt("2023-01-18T11:40:14.000000Z") - .description("9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3") + .bearPointShopId("98e4476d-ab81-40f0-8e84-07bed8a8f4fd") + .moneyAmount(4638) + .pointAmount(8603) + .pointExpiresAt("2024-02-09T08:48:33.000000Z") + .description("BLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIcNrFvlQBIX1JBgnrD1yLFlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rWWdK") .metadata("{\"key\":\"value\"}") - .requestId("a5258802-a1a5-41a5-84d0-40d1007639c2"); + .requestId("fb7a439a-37b2-45f9-90e2-4499681094c4"); 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 dba2d88..39993c2 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" + "f52b980c-bd74-4458-8a69-dbe9aa6b66af", + "2f76de7b-4f9d-4d5e-abfc-61dafd933483" ); 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" + "f52b980c-bd74-4458-8a69-dbe9aa6b66af", + "2f76de7b-4f9d-4d5e-abfc-61dafd933483" ) - .requestId("3e9427b9-30bb-4edd-b9ac-acea3da3f083"); + .requestId("94fa0085-e27a-4bbe-8293-a96b2f2e76bc"); 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 0000000..337adaa --- /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( + "hr8QjYlB" + ); + 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 6a05f39..2ccfe4c 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" + "e774df22-344d-4f85-8783-087892896cf2", + "41581a13-d7e7-4313-a8d4-4b28afa802f8", + "cad24a08-1a72-425e-9aed-b089c52d8ca5" ); 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" + "e774df22-344d-4f85-8783-087892896cf2", + "41581a13-d7e7-4313-a8d4-4b28afa802f8", + "cad24a08-1a72-425e-9aed-b089c52d8ca5" ) - .description("jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhM"); + .description("2c2b7AqdqrRaU4tsNqOUthYSxSa5qYfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua2WPHw1UTjf1quigD2l2JnK33Y2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQdZofRUOU"); 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" + "e774df22-344d-4f85-8783-087892896cf2", + "41581a13-d7e7-4313-a8d4-4b28afa802f8", + "cad24a08-1a72-425e-9aed-b089c52d8ca5" ) - .pointExpiresAt("2022-04-18T05:29:48.000000Z") - .description("y1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7WZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX"); + .pointExpiresAt("2020-05-20T14:52:47.000000Z") + .description("AciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAa"); 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" + "e774df22-344d-4f85-8783-087892896cf2", + "41581a13-d7e7-4313-a8d4-4b28afa802f8", + "cad24a08-1a72-425e-9aed-b089c52d8ca5" ) - .pointAmount(350) - .pointExpiresAt("2023-05-10T17:38:49.000000Z") - .description("RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZP"); + .pointAmount(8151) + .pointExpiresAt("2021-07-16T23:34:38.000000Z") + .description("q9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KDx3FmD9kbb"); 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" + "e774df22-344d-4f85-8783-087892896cf2", + "41581a13-d7e7-4313-a8d4-4b28afa802f8", + "cad24a08-1a72-425e-9aed-b089c52d8ca5" ) - .moneyAmount(2628) - .pointAmount(4634) - .pointExpiresAt("2020-05-01T08:52:03.000000Z") - .description("vKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFT"); + .moneyAmount(5824) + .pointAmount(6164) + .pointExpiresAt("2025-03-05T23:14:52.000000Z") + .description("i1vOnH69EFivIjA6JEHCCuKlnfNVTWFTkh4YZxFD"); 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 c25b1d2..6b9303f 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" + "dd04e86b-ab38-4b64-b820-1475cc94934b", + "1e05a79c-7385-4309-80e7-04a75e82aa9c" ); 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" + "dd04e86b-ab38-4b64-b820-1475cc94934b", + "1e05a79c-7385-4309-80e7-04a75e82aa9c" ) - .requestId("3d343bff-c2c6-48b3-ba66-3afb9fbd6b2b"); + .requestId("d375a943-ad0d-4246-8994-9f3d1b0065b0"); 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" + "dd04e86b-ab38-4b64-b820-1475cc94934b", + "1e05a79c-7385-4309-80e7-04a75e82aa9c" ) .strategy("money-only") - .requestId("5520406f-93a1-4145-8e34-eb68de8c927e"); + .requestId("bc1cfa3e-d776-4931-9ce2-af72ac04bb6e"); 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 361e0f0..a61bf39 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 + "b9559c05-7838-460c-ac41-dc8d1a18f995", + "def8b697-7cd4-4587-ba14-bacdd0ea45d4", + "2ba57cce-062d-464d-8d89-be3b9b2c7ec5", + 8057.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 + "b9559c05-7838-460c-ac41-dc8d1a18f995", + "def8b697-7cd4-4587-ba14-bacdd0ea45d4", + "2ba57cce-062d-464d-8d89-be3b9b2c7ec5", + 8057.0 ) - .requestId("e78dc0d9-42d4-48d3-8abe-8ab90e73616f"); + .requestId("6971a20c-3ad6-4a9f-842b-7941300c66f0"); 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 + "b9559c05-7838-460c-ac41-dc8d1a18f995", + "def8b697-7cd4-4587-ba14-bacdd0ea45d4", + "2ba57cce-062d-464d-8d89-be3b9b2c7ec5", + 8057.0 ) - .description("hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyEN") - .requestId("4c32a7ee-12ee-4cef-b424-561b0fc1aaca"); + .description("kaDeYuOtBoCZgc4gwc8RSE7") + .requestId("91641442-2fb5-4977-9d0b-b421e06ac073"); 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 + "b9559c05-7838-460c-ac41-dc8d1a18f995", + "def8b697-7cd4-4587-ba14-bacdd0ea45d4", + "2ba57cce-062d-464d-8d89-be3b9b2c7ec5", + 8057.0 ) .metadata("{\"key\":\"value\"}") - .description("M2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoC") - .requestId("7cd2c5aa-6d59-462f-afd9-e01a7bbac46d"); + .description("fAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwa") + .requestId("67d01e06-b05a-4602-b9f6-7dcf6d06ffee"); 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 d3095ff..807718e 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" + "cb7a1247-3d5e-487e-a37d-7770cfc3bcb6", + "332ade50-41fc-4125-9793-680f3d759e10" ); 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" + "cb7a1247-3d5e-487e-a37d-7770cfc3bcb6", + "332ade50-41fc-4125-9793-680f3d759e10" ) .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" + "cb7a1247-3d5e-487e-a37d-7770cfc3bcb6", + "332ade50-41fc-4125-9793-680f3d759e10" ) - .externalId("FBMnn24Y00BddIYIaGsnHTfyj3vGhpYs6lE3PVx") + .externalId("iNym") .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" + "cb7a1247-3d5e-487e-a37d-7770cfc3bcb6", + "332ade50-41fc-4125-9793-680f3d759e10" ) - .name("hCRcEAVa4JmfjoJZ9ajsO39BqxPDSP5BpfA0dYcuMmHpa4aDHWm32hBFhI0DxRhz83lKq4Wp1hKlNvpHM0s7Dd9Uu6qWqC0qUtLag9adxARTcCtKjz1M2kusM3cVDMOGMtpxWNvKR6Gcp6PWCiNymBaUIu6lQIyVNDYRttS46oTXBYnbHbMuAdnXANiixumuncg7egxc7L05i8jkZ1Waa") - .externalId("h6AAgB9jXehhbgs") + .name("aUIu6lQIyVNDYRttS46oTXBYnbHbMuAdnXANiixumuncg7egxc7L05i8jkZ1Waa6h6AAgB9jXehhbgsnyiHZ1n3qwk3r3QhfSXAhy6Q6NsE0G4ETHn0hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qqrLtRpMZnFJMuPuuYDxHZdnikAchiJbV") + .externalId("3ZTnJxIJTqpbj9hQa") .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 6c6047a..a8b47ac 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" + "d59e2430-5554-464b-9fdf-45b2728b4aa7" ); 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" + "d59e2430-5554-464b-9fdf-45b2728b4aa7" ) .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 16fa1aa..1950b62 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" + "rpz6whWSFA" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/DeleteAccountTest.java b/src/test/java/jp/pokepay/partnerapi/DeleteAccountTest.java index 9c48765..a0b1814 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" + "86ec4732-f6b9-414c-b482-d3ae217c7787" ); 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" + "86ec4732-f6b9-414c-b482-d3ae217c7787" ) - .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 0000000..906900d --- /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( + "73112ace-ca87-4362-874f-27b64d0d2a6e", + "c089e59b-e5f6-468a-9c8b-d832755ba3c0" + ); + 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 8c5dd7e..96f55d4 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" + "a999ced8-1882-481b-84fd-dc2c98643617" ); 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 09f7c5a..5116787 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" + "182d452c-5a62-457a-9049-4086c19bac85" ); 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 5189499..c20894b 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" + "bab552d8-5ac2-4caf-9673-518c373ee1ff" ); 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" + "bab552d8-5ac2-4caf-9673-518c373ee1ff" ) - .transferTypes(new String[]{"exchange-outflow","exchange-inflow","refund-topup","use-coupon","refund-coupon","payment","refund-campaign","campaign-topup","refund-exchange-outflow"}); + .transferTypes(new String[]{"campaign-topup","topup","payment","refund-topup","refund-exchange-outflow","refund-payment","refund-campaign","use-coupon","refund-exchange-inflow","exchange-inflow","refund-coupon"}); 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" + "bab552d8-5ac2-4caf-9673-518c373ee1ff" ) - .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-01-16T17:22:12.000000Z") + .transferTypes(new String[]{"refund-payment","payment","exchange-outflow","refund-campaign"}); 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" + "bab552d8-5ac2-4caf-9673-518c373ee1ff" ) - .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-06-30T03:20:48.000000Z") + .to("2024-02-10T18:28:03.000000Z") + .transferTypes(new String[]{"payment","use-coupon","refund-exchange-inflow","refund-exchange-outflow"}); 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 0000000..6c70e03 --- /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( + "e33727f7-01bc-41a1-8ae8-34fd975ed2de" + ); + 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 cb70175..a055fff 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" + "000d4946-a56c-4102-bdcd-a184ef7085a9" ); 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 907a235..8313c7a 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" + "526bafba-80f3-4ae1-9638-6b94e43f5e46" ); 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 935108d..31307ce 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" + "09e0a27e-50d2-4e2c-a4bd-2c4955ec36c8" ); 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 c906341..8223ebc 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" + "1a9bb444-d7f3-423c-8336-0a9a440314bb" ); 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 11647b4..f02cce7 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" + "aed58440-fefd-430d-9bf9-a04407baaa7c" ); 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 729a9ee..d7ce534 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" + "jRtKJ3Y50yRgOZb7LyYKRM" ); 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 b746291..62a3bb0 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" + "d93c71ed-b0eb-4276-917e-80862d991284" ); 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" + "d93c71ed-b0eb-4276-917e-80862d991284" ) - .email("cm0Sp2RluF@OAxJ.com"); + .email("l5vCAHh7QD@95u0.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" + "d93c71ed-b0eb-4276-917e-80862d991284" ) - .tel("07-0551-2657") - .email("TcJlnsa7zu@y1tu.com"); + .tel("01-033522") + .email("luFOAxJTKK@lkJp.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" + "d93c71ed-b0eb-4276-917e-80862d991284" ) - .externalId("dw") - .tel("071-69745487") - .email("fKkMLwrBpO@RQ9L.com"); + .externalId("ENq52OLTcJlns") + .tel("0775-9145-4752") + .email("n7Z1wrrgdx@WfKk.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" + "d93c71ed-b0eb-4276-917e-80862d991284" ) .status("suspended") - .externalId("lnKRmCd4n") - .tel("045-981479") - .email("qpn3W7S36l@34SS.com"); + .externalId("L") + .tel("037283-190") + .email("LHlnKRmCd4@nadm.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" + "d93c71ed-b0eb-4276-917e-80862d991284" ) .setSuspended(false) - .status("active") - .externalId("W72gqSjd8QPzbjt0rt7UmerReZGbvGgvA") - .tel("09215911045") - .email("P1AnQALadF@sAzg.com"); + .status("suspended") + .externalId("KnqGyqpn3W7S36l34SSSO") + .tel("07-71-0481") + .email("Pzbjt0rt7U@merR.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" + "d93c71ed-b0eb-4276-917e-80862d991284" ) - .createdAtTo("2022-07-27T22:59:50.000000Z") + .createdAtTo("2024-10-14T06:25:41.000000Z") .setSuspended(true) - .status("pre-closed") - .externalId("tuXgZDedIJqTHGgnOhGiwZBj5AvHdO2Atfc") - .tel("0129-664-818") - .email("3sP8V6IT9V@FC5b.com"); + .status("active") + .externalId("GbvGgvAZbyLJ1Lea6an4P1AnQAL") + .tel("046-7625609") + .email("XgZDedIJqT@HGgn.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" + "d93c71ed-b0eb-4276-917e-80862d991284" ) - .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("2024-10-14T18:14:00.000000Z") + .createdAtTo("2020-09-17T05:33:06.000000Z") + .setSuspended(false) + .status("pre-closed") + .externalId("j5A") + .tel("0694-250") + .email("AtfcLabY2v@DzXz.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" + "d93c71ed-b0eb-4276-917e-80862d991284" ) - .perPage(6435) - .createdAtFrom("2022-12-18T13:21:30.000000Z") - .createdAtTo("2022-10-28T02:45:21.000000Z") + .perPage(2642) + .createdAtFrom("2023-11-22T05:39:04.000000Z") + .createdAtTo("2022-05-20T22:26:59.000000Z") .setSuspended(true) - .status("active") - .externalId("YeKIbZQuPYAKNLvTyMcIYl") - .tel("079352848") - .email("Pv9LO3MtPy@t1wT.com"); + .status("pre-closed") + .externalId("sP8V6IT9VFC5bo") + .tel("08137-145") + .email("8jPQ0hMJ4n@PgNJ.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" + "d93c71ed-b0eb-4276-917e-80862d991284" ) - .page(8687) - .perPage(8494) - .createdAtFrom("2024-02-11T20:15:48.000000Z") - .createdAtTo("2023-10-06T20:45:00.000000Z") - .setSuspended(true) - .status("active") - .externalId("Yk") - .tel("004073-175") - .email("ncONv8Kje2@pUTW.com"); + .page(7300) + .perPage(3837) + .createdAtFrom("2025-04-26T08:31:17.000000Z") + .createdAtTo("2023-05-31T18:51:06.000000Z") + .setSuspended(false) + .status("pre-closed") + .externalId("3xkUSOX0vT") + .tel("031023-7330") + .email("l9MWii2exA@arzl.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java b/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java index a57658a..8f029bf 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" + "72789150-092b-4ef2-9005-6b296db53240" ); 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 c761d9b..84aa290 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" + "66fdcfad-fd05-44df-8fb5-3f3b31843821" ); 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" + "66fdcfad-fd05-44df-8fb5-3f3b31843821" ) - .page(3863); + .page(227); 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" + "66fdcfad-fd05-44df-8fb5-3f3b31843821" ) - .perPage(4164) - .page(1671); + .perPage(1470) + .page(9356); 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" + "66fdcfad-fd05-44df-8fb5-3f3b31843821" ) - .from("2023-02-24T15:38:45.000000Z") - .to("2020-06-01T22:27:12.000000Z"); + .from("2022-05-13T16:48:47.000000Z") + .to("2023-02-21T05:41:29.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" + "66fdcfad-fd05-44df-8fb5-3f3b31843821" ) - .from("2022-04-29T04:44:50.000000Z") - .to("2023-02-28T01:22:24.000000Z") - .page(2940); + .from("2024-12-08T23:51:32.000000Z") + .to("2021-10-19T23:39:33.000000Z") + .page(5636); 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" + "66fdcfad-fd05-44df-8fb5-3f3b31843821" ) - .from("2020-06-22T06:48:08.000000Z") - .to("2024-10-03T11:36:06.000000Z") - .perPage(2431) - .page(6798); + .from("2020-06-07T14:20:12.000000Z") + .to("2021-02-21T21:48:16.000000Z") + .perPage(4093) + .page(3110); 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 2725120..6266a8d 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" + "1b9e5a94-2c92-44c8-9b2b-39c4e36d7965" ); 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" + "1b9e5a94-2c92-44c8-9b2b-39c4e36d7965" ) - .to("2020-02-01T06:05:29.000000Z"); + .to("2024-11-07T11:44: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 GetPrivateMoneySummary( - "bc754716-7e01-46ff-bef3-b315e34c3f20" + "1b9e5a94-2c92-44c8-9b2b-39c4e36d7965" ) - .from("2023-06-06T15:44:55.000000Z") - .to("2022-07-27T19:34:17.000000Z"); + .from("2024-05-05T23:12:50.000000Z") + .to("2024-11-07T07:31:51.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 06f90b7..7084ba2 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(7640); 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(5556) + .perPage(6368); 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("qT09") + .page(3771) + .perPage(4922); 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 5691bfa..a39693b 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" + "sr9sdEDT" ); 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 bd0fcdd..8df896f 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" + "3e3ec330-78fb-4e7f-bdc3-3f94ef8780f1" ); 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" + "3e3ec330-78fb-4e7f-bdc3-3f94ef8780f1" ) - .setSuspended(false); + .setSuspended(true); 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 GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863" + "3e3ec330-78fb-4e7f-bdc3-3f94ef8780f1" ) - .createdAtTo("2020-05-06T02:02:55.000000Z") - .setSuspended(true); + .createdAtTo("2020-11-04T22:06:46.000000Z") + .setSuspended(false); 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 GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863" + "3e3ec330-78fb-4e7f-bdc3-3f94ef8780f1" ) - .createdAtFrom("2023-03-17T16:04:05.000000Z") - .createdAtTo("2024-03-19T06:01:45.000000Z") - .setSuspended(false); + .createdAtFrom("2025-07-19T06:46:38.000000Z") + .createdAtTo("2025-08-18T03:26:06.000000Z") + .setSuspended(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 GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863" + "3e3ec330-78fb-4e7f-bdc3-3f94ef8780f1" ) - .perPage(4823) - .createdAtFrom("2023-07-22T08:29:37.000000Z") - .createdAtTo("2020-07-29T13:51:14.000000Z") - .setSuspended(false); + .perPage(1468) + .createdAtFrom("2023-07-05T10:41:54.000000Z") + .createdAtTo("2020-03-05T03:00:15.000000Z") + .setSuspended(true); 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 GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863" + "3e3ec330-78fb-4e7f-bdc3-3f94ef8780f1" ) - .page(4360) - .perPage(8484) - .createdAtFrom("2022-04-08T21:42:45.000000Z") - .createdAtTo("2023-03-08T17:36:02.000000Z") + .page(2524) + .perPage(2782) + .createdAtFrom("2020-07-13T20:09:58.000000Z") + .createdAtTo("2025-07-08T14:08:57.000000Z") .setSuspended(true); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetShopTest.java b/src/test/java/jp/pokepay/partnerapi/GetShopTest.java index 9d2a61b..313fb29 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" + "49ecce4c-2d7c-4298-bbbc-ffd3b6821ef9" ); 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 2812fab..71cafa4 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" + "e957e6a2-bb8f-4916-bc80-4946ce0f8dae" ); 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 6785d46..503e5a3 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" + "88f1bdc0-4ccf-4a93-a83d-ea0e35d87a04" ); 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 c47e730..7aee8d9 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" + "18269c48-d4d3-4c61-a774-16b5fa90d041" ); 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 164b940..1380908 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" + "7d993809-f948-4a36-b7d1-afe9eb142d32" ); 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" + "7d993809-f948-4a36-b7d1-afe9eb142d32" ) - .direction("desc"); + .direction("asc"); 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 ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95" + "7d993809-f948-4a36-b7d1-afe9eb142d32" ) - .expiresAtTo("2020-10-07T18:59:38.000000Z") + .expiresAtTo("2024-05-04T08:49:26.000000Z") .direction("desc"); try { PartnerAPITest.getClient().send(request); @@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95" + "7d993809-f948-4a36-b7d1-afe9eb142d32" ) - .expiresAtFrom("2020-09-07T21:25:03.000000Z") - .expiresAtTo("2024-10-02T20:33:17.000000Z") + .expiresAtFrom("2024-05-07T20:38:39.000000Z") + .expiresAtTo("2025-04-09T03:35:50.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" + "7d993809-f948-4a36-b7d1-afe9eb142d32" ) - .perPage(5374) - .expiresAtFrom("2021-01-13T03:58:59.000000Z") - .expiresAtTo("2024-09-16T05:40:45.000000Z") + .perPage(607) + .expiresAtFrom("2021-05-17T12:24:10.000000Z") + .expiresAtTo("2020-11-29T19:41: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" + "7d993809-f948-4a36-b7d1-afe9eb142d32" ) - .page(9044) - .perPage(3584) - .expiresAtFrom("2022-05-05T20:55:29.000000Z") - .expiresAtTo("2023-04-07T14:57:44.000000Z") + .page(6213) + .perPage(4509) + .expiresAtFrom("2021-08-08T03:34:29.000000Z") + .expiresAtTo("2025-07-30T16:27:23.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 f087907..dcca7f7 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" + "004b6f8a-80de-4166-a99f-afde75fe9d74" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "004b6f8a-80de-4166-a99f-afde75fe9d74" ) .direction("asc"); try { @@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "004b6f8a-80de-4166-a99f-afde75fe9d74" ) - .expiresAtTo("2022-11-08T09:57:39.000000Z") + .expiresAtTo("2022-09-29T03:29:23.000000Z") .direction("desc"); try { PartnerAPITest.getClient().send(request); @@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "004b6f8a-80de-4166-a99f-afde75fe9d74" ) - .expiresAtFrom("2021-02-10T04:23:33.000000Z") - .expiresAtTo("2021-11-27T03:23:28.000000Z") + .expiresAtFrom("2021-05-10T16:50:03.000000Z") + .expiresAtTo("2024-09-22T21:35:34.000000Z") .direction("desc"); try { PartnerAPITest.getClient().send(request); @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "004b6f8a-80de-4166-a99f-afde75fe9d74" ) - .perPage(9269) - .expiresAtFrom("2022-07-27T12:24:37.000000Z") - .expiresAtTo("2020-03-19T18:01:03.000000Z") - .direction("desc"); + .perPage(7372) + .expiresAtFrom("2024-11-12T18:36:01.000000Z") + .expiresAtTo("2024-08-29T23:25:26.000000Z") + .direction("asc"); 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 ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "004b6f8a-80de-4166-a99f-afde75fe9d74" ) - .page(6531) - .perPage(2579) - .expiresAtFrom("2023-10-07T04:30:21.000000Z") - .expiresAtTo("2023-04-20T20:38:29.000000Z") + .page(8409) + .perPage(7631) + .expiresAtFrom("2024-08-01T22:24:27.000000Z") + .expiresAtTo("2020-07-30T00:47:03.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 eb967c0..2495fa9 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" + "11b3830e-d3ad-4130-b6e0-290d83a569be" ); 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" + "11b3830e-d3ad-4130-b6e0-290d83a569be" ) - .privateMoneyId("f13bb85d-66aa-4930-a316-33b8455d28c1"); + .privateMoneyId("234ffdcd-1243-469c-89ef-a2711f491431"); 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 0000000..5dada51 --- /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(122); + 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("9af3b345-8ee5-4ff2-8c4e-7127a8577917") + .perPage(582); + 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("e0b38c4b-a321-4a3e-8d59-9b056d4ad3a8") + .prevPageCursorId("050307fb-2773-422a-9280-8a66590665db") + .perPage(954); + 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("2021-03-12T17:10:14.000000Z") + .nextPageCursorId("13ea8a00-1672-42e9-8759-7ae9b93c833d") + .prevPageCursorId("ea5fdad0-b87b-4d00-a93a-e3b870df68c8") + .perPage(651); + 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-07-02T09:25:02.000000Z") + .to("2024-07-15T20:51:48.000000Z") + .nextPageCursorId("42e9a374-d14c-424b-a7bb-7a0e3b65998e") + .prevPageCursorId("a56b7dc6-5026-4857-bbc9-0f1b1327c5e5") + .perPage(556); + 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(false) + .from("2023-03-22T18:53:29.000000Z") + .to("2021-01-17T22:01:38.000000Z") + .nextPageCursorId("747555b4-5322-4f29-b119-4fa21c573433") + .prevPageCursorId("799b06c3-9211-40be-a038-9085dc694123") + .perPage(251); + 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("8743b12f-c1e3-4ca1-b061-6db0b16451a0") + .setModified(false) + .from("2022-11-18T04:41:03.000000Z") + .to("2022-03-30T08:07:12.000000Z") + .nextPageCursorId("2b803869-f1aa-4ebc-b0f5-daad85ca0acc") + .prevPageCursorId("f86729f4-97b3-4349-914b-155175381551") + .perPage(258); + 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("0663148b-58c8-4f62-bc24-c636b92e5ce6") + .billId("ea945ae9-2b6b-4fa7-aedd-ead6c61a43e7") + .setModified(true) + .from("2022-10-18T08:47:39.000000Z") + .to("2021-04-27T05:10:22.000000Z") + .nextPageCursorId("4a7b9db3-2f58-4a42-9f2e-39696808be01") + .prevPageCursorId("d70cfd96-9c27-4567-afd2-2c7c2c792609") + .perPage(271); + 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("jya01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcb") + .transactionId("36843490-b6c8-487b-9c6c-898a6c9018b2") + .billId("2700952d-ed8e-486b-b4c6-36bcf722b85c") + .setModified(false) + .from("2020-10-09T16:43:05.000000Z") + .to("2024-04-12T22:14:14.000000Z") + .nextPageCursorId("f4a270e7-4d70-4761-90b5-601e471e8eb4") + .prevPageCursorId("463f7a21-6798-4961-a27e-0974c41c9f28") + .perPage(59); + 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("1072e82e-5b74-42d2-8fda-e9630a2c3d12") + .description("bejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyu") + .transactionId("b56b6891-827a-4050-a457-6792cf1b6d5e") + .billId("056ab966-8f2e-44d9-b734-83b84c98f1b2") + .setModified(false) + .from("2021-07-02T18:42:20.000000Z") + .to("2024-11-22T22:50:11.000000Z") + .nextPageCursorId("81545536-e76f-4801-8846-e273070af7da") + .prevPageCursorId("edbcd2a3-931e-488c-a839-19ac559a0dbe") + .perPage(236); + 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("snqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2iLhkB08mWoSEw4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6T") + .terminalId("20b1b5c4-8452-4991-991b-4f11b4ff022d") + .description("xNmjKWPDEzen9VEh") + .transactionId("bdefd739-b8bc-4c26-8a2b-f5cb6291177d") + .billId("c9921b2f-57f7-4388-a17c-62ba9a51e4d5") + .setModified(true) + .from("2021-09-18T06:34:34.000000Z") + .to("2022-05-09T05:39:36.000000Z") + .nextPageCursorId("42fbfef8-8c62-4203-be39-d8f4b28afd23") + .prevPageCursorId("18741591-e6d1-4fcb-89d3-e52a119eb684") + .perPage(859); + 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("fa1d5c8b-8264-4a3a-8d20-c88e6b82c9a5") + .customerName("TJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04aLs4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZma6CRo8nyJO9Y3f9djMgk8QSZwJ1udEIb7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe") + .terminalId("d39730b5-35cc-4f3d-bcaf-1f0c401b300c") + .description("Zzi2NmWBluHrzflOytNd3ROmH9") + .transactionId("f5ac24ee-824d-4fbc-ab66-fb2cda88657f") + .billId("5182f51c-b2c1-4d48-ae90-3958c0ce3233") + .setModified(false) + .from("2020-11-13T12:22:43.000000Z") + .to("2022-02-04T11:34:36.000000Z") + .nextPageCursorId("230a9a4f-b4f3-4b36-a550-aba187955233") + .prevPageCursorId("a0ecb4bb-df7c-4964-aff8-40ccb29c1a68") + .perPage(453); + 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("fc2b04a1-e8ea-4e8a-9072-bdf4e0f8fc21") + .customerId("b50d5d34-a8af-4b43-8c46-01bc3cf72fc5") + .customerName("SWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQl4cK6HLesoN7AsxjaX4b") + .terminalId("103877bb-86eb-4201-9386-030084d299fa") + .description("W5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1C") + .transactionId("a77594a8-2ecf-47b5-88a8-6a08986e74d4") + .billId("1143a6d3-1c03-4d81-868a-459576a29ff9") + .setModified(false) + .from("2025-06-07T13:32:49.000000Z") + .to("2020-11-09T16:16:14.000000Z") + .nextPageCursorId("a02a779c-6d74-486f-a970-7cf1213929c9") + .prevPageCursorId("39084d3f-8fbf-4cbb-b6e2-09c002550700") + .perPage(580); + 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("g9R3Nnn6bkL-S-GmkK4-0T5lf-") + .shopId("0e45ff1e-39d2-4f5c-8385-d41f53e917ab") + .customerId("8013a725-4b4d-458c-96bf-ae19402967d9") + .customerName("MVxniANdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6Axi") + .terminalId("a24cb979-2ebb-468d-a249-5f551b90ab64") + .description("JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0B") + .transactionId("2f6d392a-1915-4726-8597-07a29add4615") + .billId("6576170d-512d-4450-a178-9706225dde5b") + .setModified(false) + .from("2022-01-25T18:09:00.000000Z") + .to("2024-02-02T20:01:29.000000Z") + .nextPageCursorId("eaea0068-447a-4cb8-8184-f1f1d8eed3ac") + .prevPageCursorId("7a87ea82-0af5-4548-b838-ed0e04639fe7") + .perPage(669); + 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("0828e659-df7e-4cf1-9c96-2cd1cabc2c27") + .organizationCode("8hH-9hZ-hjR--D-tC-4xRR") + .shopId("540d029f-7244-4b2e-8abf-6a8ea1b97f06") + .customerId("90ae7852-48ed-4e3d-97c3-e08827ab045d") + .customerName("XV5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qm") + .terminalId("4fe8a8c3-cf18-4bde-bb0b-3bff4482c2c6") + .description("zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLYdgsrsB") + .transactionId("d7c3650e-903c-4a37-8ebb-b46eb003dee6") + .billId("d089a704-45b3-4280-bab7-60a75789eafa") + .setModified(false) + .from("2020-06-10T06:18:31.000000Z") + .to("2025-06-17T03:23:59.000000Z") + .nextPageCursorId("9d961e59-2271-454c-aada-7c29e1ff0268") + .prevPageCursorId("b6b93de4-31ab-4e32-85d6-785d3d5d606d") + .perPage(879); + 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 e875352..0b6e397 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListBills() - .upperLimitAmount(3460) - .setDisabled(false); + .upperLimitAmount(953) + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,8 +57,8 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListBills() - .lowerLimitAmount(3003) - .upperLimitAmount(2795) + .lowerLimitAmount(9893) + .upperLimitAmount(5454) .setDisabled(true); try { PartnerAPITest.getClient().send(request); @@ -74,9 +74,9 @@ 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) + .shopId("806cbb22-a905-40d8-bf80-9fca9378665d") + .lowerLimitAmount(6888) + .upperLimitAmount(5358) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -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("rEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuIVqRIEU93kljq1Q8TjukgNdosrcsbqXkWqVhxkWkSbC") + .shopId("c4f5262b-602c-4fe3-8951-6dd66615ce11") + .lowerLimitAmount(1434) + .upperLimitAmount(5426) + .setDisabled(false); 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 ListBills() - .createdTo("2024-04-18T15:33:35.000000Z") - .shopName("stCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25u") - .shopId("8767767b-8976-455e-afdf-74728b146513") - .lowerLimitAmount(6765) - .upperLimitAmount(7751) - .setDisabled(true); + .createdTo("2023-07-15T22:22:50.000000Z") + .shopName("WKaXC") + .shopId("c490439f-544a-4f7b-a726-a94a4c91d22f") + .lowerLimitAmount(435) + .upperLimitAmount(3128) + .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 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) + .createdFrom("2022-08-24T21:16:47.000000Z") + .createdTo("2025-05-21T12:18:28.000000Z") + .shopName("wW32AKvILX828FihWZQyqSbK0FMXzQI3K0u") + .shopId("1c5dfff0-8154-4438-a196-36638c526e04") + .lowerLimitAmount(3417) + .upperLimitAmount(5907) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -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("uEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3b") + .createdFrom("2021-07-19T09:22:10.000000Z") + .createdTo("2020-07-06T04:09:00.000000Z") + .shopName("b1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBc") + .shopId("e43c48fa-b216-471a-9f2c-c4932953a037") + .lowerLimitAmount(250) + .upperLimitAmount(106) .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("74-ZLB-Lzu-") + .description("hcXRAwlFr4tlYuwM") + .createdFrom("2025-01-09T17:13:11.000000Z") + .createdTo("2022-03-20T02:43:21.000000Z") + .shopName("2c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25uvrmGGKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAa") + .shopId("6d83d0d3-0613-446b-b2ec-45d0e5fbfdbe") + .lowerLimitAmount(9715) + .upperLimitAmount(3811) .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("6826051c-4967-479a-869d-c0da887d62dc") + .organizationCode("h") + .description("Ifqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic") + .createdFrom("2020-07-31T06:46:01.000000Z") + .createdTo("2021-01-30T04:16:39.000000Z") + .shopName("AnsoXtmv8LerXQe8LjF8Q") + .shopId("3752130a-b436-4bf1-a9f6-e7809624e470") + .lowerLimitAmount(452) + .upperLimitAmount(5404) + .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("Z") + .privateMoneyId("f6364562-ddc2-4624-b789-20d8a3d775aa") + .organizationCode("--WI5SSa-5D--Bk43-l-6-7f8-9-") + .description("iV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gK") + .createdFrom("2024-12-05T19:59:51.000000Z") + .createdTo("2020-03-24T23:35:08.000000Z") + .shopName("lsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSIaxZ8O9N2SLzG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4VkAmGgvgI7YgVKC9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteVH8YLvoUoraYyVUvoHuSd144X7ZEq8UGlMat7Q5BMcC1v73v60y8DMLWrlnr061xWZsz") + .shopId("d15084b1-fc2a-425c-9b0a-636fec1fa77c") + .lowerLimitAmount(5649) + .upperLimitAmount(4629) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -246,17 +246,17 @@ 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) + .perPage(8552) + .billId("HitDM") + .privateMoneyId("40bb05e9-5463-439e-9d9e-2b37af6f1258") + .organizationCode("-") + .description("kpZIbqB") + .createdFrom("2024-04-22T02:05:29.000000Z") + .createdTo("2022-01-15T00:45:45.000000Z") + .shopName("ROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZfjz7mGpF3omDB92rueqlmfnAfu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkW") + .shopId("88966816-b78e-47ef-bc40-b8983f2a635e") + .lowerLimitAmount(1377) + .upperLimitAmount(7257) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -272,19 +272,19 @@ 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) - .setDisabled(false); + .page(4527) + .perPage(9459) + .billId("y1") + .privateMoneyId("25d3ab0f-464b-458b-bcc8-e084b3097943") + .organizationCode("--H7-2x-K-m5--wKZ--qYm8-2y6-9-") + .description("jfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20dIuBp2e25ag") + .createdFrom("2022-06-16T15:54:59.000000Z") + .createdTo("2024-09-04T06:32:52.000000Z") + .shopName("yEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDk") + .shopId("c4abb1fa-9dc4-4f4c-bf1a-58ee9a3fe1c1") + .lowerLimitAmount(5303) + .upperLimitAmount(6305) + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java b/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java index cad9959..a0c497c 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" + "dc1fcc47-c668-471b-8f00-263783bbb0cd" ); 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" + "dc1fcc47-c668-471b-8f00-263783bbb0cd" ) - .perPage(986); + .perPage(4102); 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" + "dc1fcc47-c668-471b-8f00-263783bbb0cd" ) - .page(9569) - .perPage(6767); + .page(4080) + .perPage(7694); 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 9406c54..0e7de2b 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" + "731d7773-9e70-4e6d-95e7-86325525cca4" ); 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" + "731d7773-9e70-4e6d-95e7-86325525cca4" ) - .perPage(3); + .perPage(11); 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" + "731d7773-9e70-4e6d-95e7-86325525cca4" ) - .page(4010) - .perPage(31); + .page(8395) + .perPage(48); 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" + "731d7773-9e70-4e6d-95e7-86325525cca4" ) - .availableTo("2024-06-29T01:26:44.000000Z") - .page(5805) - .perPage(8); + .availableTo("2021-12-19T09:46:14.000000Z") + .page(7573) + .perPage(35); 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" + "731d7773-9e70-4e6d-95e7-86325525cca4" ) - .availableFrom("2022-10-27T15:54:11.000000Z") - .availableTo("2020-01-12T10:32:20.000000Z") - .page(5383) - .perPage(18); + .availableFrom("2025-10-10T23:41:33.000000Z") + .availableTo("2022-06-23T00:28:21.000000Z") + .page(4882) + .perPage(39); 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" + "731d7773-9e70-4e6d-95e7-86325525cca4" ) .setOngoing(true) - .availableFrom("2023-10-24T12:23:08.000000Z") - .availableTo("2022-09-21T23:55:07.000000Z") - .page(7663) - .perPage(31); + .availableFrom("2022-01-15T15:15:17.000000Z") + .availableTo("2020-04-19T10:15:20.000000Z") + .page(6269) + .perPage(45); 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 5fee4d1..c429598 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListChecksTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListChecksTest.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .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 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") + .description("m2H") .setOnetime(false) - .setDisabled(false); + .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") - .setOnetime(true) - .setDisabled(true); + .issuerShopId("83761a1d-90c0-40db-99b5-060d76b5ee95") + .description("xBR") + .setOnetime(false) + .setDisabled(false); 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 ListChecks() - .createdTo("2023-04-23T01:28:23.000000Z") - .issuerShopId("dd29802a-5d83-413f-8cfe-74066b7b4bca") - .description("oY") - .setOnetime(false) - .setDisabled(false); + .createdTo("2025-05-21T10:04:54.000000Z") + .issuerShopId("9362d754-e21c-471b-b983-cedf7063ef45") + .description("newbYd4") + .setOnetime(true) + .setDisabled(true); 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 ListChecks() - .createdFrom("2021-11-04T11:35:54.000000Z") - .createdTo("2022-11-08T06:35:09.000000Z") - .issuerShopId("9f6b96c0-dfe2-4138-89f3-a10a20987af0") - .description("1FcaYx8") + .createdFrom("2020-01-05T13:19:22.000000Z") + .createdTo("2020-05-30T05:16:58.000000Z") + .issuerShopId("d4326173-b6c3-4b81-b137-0229f5cbbbdb") + .description("7") .setOnetime(false) - .setDisabled(true); + .setDisabled(false); 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 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) - .setDisabled(true); + .expiresTo("2023-07-15T03:33:52.000000Z") + .createdFrom("2025-11-22T15:44:50.000000Z") + .createdTo("2020-07-18T20:52:40.000000Z") + .issuerShopId("236e1fb2-55ce-4bcb-99c8-2431d1ec81a0") + .description("xHX") + .setOnetime(false) + .setDisabled(false); 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 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") + .expiresFrom("2022-02-19T08:35:27.000000Z") + .expiresTo("2021-08-15T09:13:42.000000Z") + .createdFrom("2023-10-19T16:42:25.000000Z") + .createdTo("2020-11-18T13:45:27.000000Z") + .issuerShopId("995c3213-0494-462c-8078-c4f2f4d9da76") + .description("kxwVYBDQi") .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") + .organizationCode("yVTR") + .expiresFrom("2025-08-29T06:01:32.000000Z") + .expiresTo("2024-02-11T06:37:10.000000Z") + .createdFrom("2022-07-28T22:39:47.000000Z") + .createdTo("2021-12-10T13:28:54.000000Z") + .issuerShopId("8063f523-0810-4c63-ba92-3fa4861e114e") + .description("dw") .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") + .privateMoneyId("20154902-5f94-4051-b94c-cf7a6031b019") + .organizationCode("iqjK5M") + .expiresFrom("2025-08-24T13:19:13.000000Z") + .expiresTo("2020-01-12T11:40:33.000000Z") + .createdFrom("2023-05-01T02:22:18.000000Z") + .createdTo("2021-12-11T12:27:57.000000Z") + .issuerShopId("461a013e-bd81-4ef9-bb41-44d252396807") + .description("X") .setOnetime(true) - .setDisabled(false); + .setDisabled(true); 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 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") + .perPage(4538) + .privateMoneyId("e75cc0c1-251c-4933-b283-14e0a0a93394") + .organizationCode("SqVUKE") + .expiresFrom("2023-01-29T20:14:08.000000Z") + .expiresTo("2024-08-21T17:13:21.000000Z") + .createdFrom("2020-05-07T22:57:11.000000Z") + .createdTo("2020-11-13T04:03:30.000000Z") + .issuerShopId("ec886705-cf4e-4639-8a9e-58f15d2b93af") + .description("LEvyRdA5j") .setOnetime(true) - .setDisabled(true); + .setDisabled(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -246,17 +246,17 @@ 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") - .setOnetime(false) + .page(2995) + .perPage(2609) + .privateMoneyId("d5cd05bc-2ff7-47f3-89b4-a3a9fad3825a") + .organizationCode("1pnjZ8xWKeN3WKGyHXCKDfS0S9") + .expiresFrom("2022-01-29T19:33:22.000000Z") + .expiresTo("2023-12-09T06:55:43.000000Z") + .createdFrom("2021-08-21T04:38:03.000000Z") + .createdTo("2021-01-24T13:56:34.000000Z") + .issuerShopId("ea7a0fec-60f8-488a-b48a-20c353749547") + .description("8sS3") + .setOnetime(true) .setDisabled(false); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java b/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java index 79cc238..bffed8a 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" + "39badfde-3c11-4bee-9043-0ded96328db3" ); 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" + "39badfde-3c11-4bee-9043-0ded96328db3" ) - .perPage(5571); + .perPage(3229); 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" + "39badfde-3c11-4bee-9043-0ded96328db3" ) - .page(8650) - .perPage(7773); + .page(9271) + .perPage(9980); 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" + "39badfde-3c11-4bee-9043-0ded96328db3" ) - .availableTo("2023-09-25T06:22:38.000000Z") - .page(3351) - .perPage(1673); + .availableTo("2022-07-20T09:03:34.000000Z") + .page(8087) + .perPage(364); 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" + "39badfde-3c11-4bee-9043-0ded96328db3" ) - .availableFrom("2024-09-30T09:57:39.000000Z") - .availableTo("2020-03-18T01:00:22.000000Z") - .page(5984) - .perPage(4476); + .availableFrom("2022-12-14T18:49:35.000000Z") + .availableTo("2024-01-27T12:02:59.000000Z") + .page(9525) + .perPage(376); 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" + "39badfde-3c11-4bee-9043-0ded96328db3" ) - .availableShopName("4aTjbZ") - .availableFrom("2021-10-04T14:19:21.000000Z") - .availableTo("2022-03-05T22:16:44.000000Z") - .page(6976) - .perPage(9826); + .availableShopName("MOvII6") + .availableFrom("2024-01-01T16:57:28.000000Z") + .availableTo("2023-11-25T05:10:02.000000Z") + .page(7542) + .perPage(3027); 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" + "39badfde-3c11-4bee-9043-0ded96328db3" ) - .issuedShopName("W") - .availableShopName("Rs") - .availableFrom("2022-03-08T06:29:25.000000Z") - .availableTo("2024-04-24T08:35:06.000000Z") - .page(5499) - .perPage(9438); + .issuedShopName("B") + .availableShopName("86Icn") + .availableFrom("2024-09-20T06:10:27.000000Z") + .availableTo("2024-01-07T12:11:30.000000Z") + .page(7513) + .perPage(2950); 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" + "39badfde-3c11-4bee-9043-0ded96328db3" ) - .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("ZGPsDFfb") + .issuedShopName("hpjo") + .availableShopName("CvZmit6") + .availableFrom("2023-05-25T21:51:47.000000Z") + .availableTo("2025-12-01T01:24:23.000000Z") + .page(7617) + .perPage(350); 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" + "39badfde-3c11-4bee-9043-0ded96328db3" ) - .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("LWp") + .couponName("lWahP") + .issuedShopName("g9MKERKZGy") + .availableShopName("p4Qp4t6WiX") + .availableFrom("2025-08-28T22:40:07.000000Z") + .availableTo("2020-06-19T06:01:45.000000Z") + .page(9437) + .perPage(9944); 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 771c4a4..b459efc 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" + "a483cd33-ea08-4cb8-bb14-c829a7cbdf55" ); 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" + "a483cd33-ea08-4cb8-bb14-c829a7cbdf55" ) - .perPage(6702); + .perPage(1501); 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" + "a483cd33-ea08-4cb8-bb14-c829a7cbdf55" ) - .page(3721) - .perPage(1673); + .page(8441) + .perPage(3295); 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" + "a483cd33-ea08-4cb8-bb14-c829a7cbdf55" ) - .to("2021-06-26T10:33:28.000000Z") - .page(1122) - .perPage(2641); + .to("2020-01-11T05:42:42.000000Z") + .page(7555) + .perPage(95); 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" + "a483cd33-ea08-4cb8-bb14-c829a7cbdf55" ) - .from("2023-08-31T11:35:24.000000Z") - .to("2021-11-27T00:17:30.000000Z") - .page(6128) - .perPage(9468); + .from("2022-11-29T19:38:57.000000Z") + .to("2024-04-28T15:30:39.000000Z") + .page(5524) + .perPage(4432); 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" + "a483cd33-ea08-4cb8-bb14-c829a7cbdf55" ) - .setModified(true) - .from("2021-10-15T20:46:20.000000Z") - .to("2023-11-14T17:02:46.000000Z") - .page(8406) - .perPage(1440); + .setModified(false) + .from("2023-05-16T12:47:28.000000Z") + .to("2024-11-15T19:45:55.000000Z") + .page(3616) + .perPage(8953); 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" + "a483cd33-ea08-4cb8-bb14-c829a7cbdf55" ) - .type("transfer") - .setModified(true) - .from("2022-03-30T21:58:48.000000Z") - .to("2024-01-29T17:38:21.000000Z") - .page(786) - .perPage(2848); + .type("exchange") + .setModified(false) + .from("2025-04-02T13:35:10.000000Z") + .to("2025-03-29T05:33:46.000000Z") + .page(2666) + .perPage(9362); 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" + "a483cd33-ea08-4cb8-bb14-c829a7cbdf55" ) - .receiverCustomerId("476067c0-5180-472f-9748-fbe19e693314") - .type("cashback") + .receiverCustomerId("f145e3a1-d506-4774-b3de-4f04b212bab0") + .type("topup") .setModified(true) - .from("2020-07-04T11:49:13.000000Z") - .to("2020-10-22T23:48:51.000000Z") - .page(4783) - .perPage(8752); + .from("2025-03-07T12:30:43.000000Z") + .to("2020-05-09T04:31:03.000000Z") + .page(1108) + .perPage(205); 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" + "a483cd33-ea08-4cb8-bb14-c829a7cbdf55" ) - .senderCustomerId("d2869b53-2e22-4d40-bc23-f9d272cd44e5") - .receiverCustomerId("03a89a91-73ea-4831-99d4-32f7b9069362") + .senderCustomerId("ce9c2a23-8611-4b5f-a0e9-9d2620d945a8") + .receiverCustomerId("c22edb34-4f0a-4e46-9614-b4c1172415d7") .type("exchange") - .setModified(false) - .from("2020-01-13T05:00:34.000000Z") - .to("2020-03-01T04:56:22.000000Z") - .page(5098) - .perPage(7841); + .setModified(true) + .from("2022-04-16T18:36:10.000000Z") + .to("2022-08-28T20:15:10.000000Z") + .page(7971) + .perPage(7040); 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 2b400f2..2f6ebaf 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" + "f54cf9ab-062a-4148-a0cf-c1f46a81e630" ); 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" + "f54cf9ab-062a-4148-a0cf-c1f46a81e630" ) - .code("yPfCabjEt"); + .code("XiM6"); 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" + "f54cf9ab-062a-4148-a0cf-c1f46a81e630" ) - .name("If7wKoPmNQ") - .code("U6zl3h0Z"); + .name("Qkur8SbZd3") + .code("cuCesxkT"); 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" + "f54cf9ab-062a-4148-a0cf-c1f46a81e630" ) - .perPage(2813) - .name("oCe5IIfE") - .code("aRl"); + .perPage(8424) + .name("UlIAlQ") + .code("L5t780R"); 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" + "f54cf9ab-062a-4148-a0cf-c1f46a81e630" ) - .page(9969) - .perPage(3099) - .name("hTTQp") - .code("QoSR"); + .page(5727) + .perPage(9037) + .name("5Vr") + .code("zRQlVu0Zd"); 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 6e8dde4..73c253c 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(3878); 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(5318) + .perPage(1682); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -58,8 +58,8 @@ void test2() throws ConnectionError, ProcessingError { void test3() throws ConnectionError, ProcessingError { Request request = new ListShops() .withDisabled(true) - .page(516) - .perPage(3314); + .page(814) + .perPage(9253); 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") + .externalId("Lsx2f1PjIk5LFEcZYZR1K1UL") .withDisabled(false) - .page(986) - .perPage(1660); + .page(4456) + .perPage(643); 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("U5oSrsDCn3@6n92.com") + .externalId("JoBnxVWA0Bmx0") + .withDisabled(true) + .page(5172) + .perPage(5716); 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") + .tel("05489812") + .email("Tl06IVYw4z@b7KK.com") + .externalId("Lj26g9D4jd9Fi73fT2e") .withDisabled(false) - .page(5349) - .perPage(5597); + .page(9227) + .perPage(5095); 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") - .withDisabled(true) - .page(9062) - .perPage(6597); + .address("bMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfyc") + .tel("00919396-1372") + .email("FwcqnjKtXS@5ctb.com") + .externalId("DamQiJFavfIlsQjs1Uxv98") + .withDisabled(false) + .page(8842) + .perPage(9840); 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("8771393") + .address("qdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANt") + .tel("054835866899") + .email("CHdZGkENDS@kRyf.com") + .externalId("KAxjQWjCB8nFcqmENfDor1zg") .withDisabled(false) - .page(1942) - .perPage(1073); + .page(248) + .perPage(6043); 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") + .name("9x3xZsR5bLJPhH3FEHzbfU4cD6smAeqngifjNikqDE3OudXpYhNwFWUAKOnWlhna0lYNQbEnbMVdbi9G5aE3q4gTN93gHJA1FfneXYRV1FBu9VqwmK2QWEkaIk3Nf304AeRoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJd") + .postalCode("6570901") + .address("JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVy") + .tel("05250883055") + .email("fON6g3h5b1@QYmV.com") + .externalId("C") .withDisabled(true) - .page(9357) - .perPage(3629); + .page(7436) + .perPage(8468); 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("70841305-33a6-4688-99be-e56b2f67fc02") + .name("78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTg") + .postalCode("9576006") + .address("orRSF9NZATmhqoWmfQbT09Lp665rg0d7eGITtIklkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rqwGDVRdojGjigH") + .tel("04895-823") + .email("QBhMIrdZJT@9MnQ.com") + .externalId("fElkSct5") + .withDisabled(false) + .page(6327) + .perPage(1781); 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") + .organizationCode("zh") + .privateMoneyId("b75cabcd-3a43-4e6b-a5b1-d8b082e4543c") + .name("fApKjBHnAmdlKiUj9JqianI8FqIXqzelGZDONUAJfl2HMto7yaW0Gkt1pOBZosxcU6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKruisPGcjRxKz0hnHtPEmOFzye10sMn1h") + .postalCode("105-1745") + .address("Scflk2JdjznjOo") + .tel("07354859-2599") + .email("UwwyS9B5ht@gNID.com") + .externalId("pzKyj3BEvYp1TbuySIy9vM") .withDisabled(true) - .page(2018) - .perPage(9438); + .page(9441) + .perPage(9150); 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 98fde2c..f4120b5 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("PV8lVcOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7Ry"); 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[]{"payment","exchange_outflow","cashback","exchange_inflow"}) + .description("IVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -58,8 +58,8 @@ void test2() throws ConnectionError, ProcessingError { void test3() throws ConnectionError, ProcessingError { Request request = new ListTransactions() .setModified(true) - .types(new String[]{"topup","exchange_outflow"}) - .description("CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd"); + .types(new String[]{"expire","exchange_outflow","topup","exchange_inflow","cashback","payment"}) + .description("ZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qL"); 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") - .setModified(true) - .types(new String[]{"expire","topup","exchange_outflow","payment"}) - .description("LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mh"); + .privateMoneyId("62c302d4-35f1-4e7e-87c4-3215645cc062") + .setModified(false) + .types(new String[]{"exchange_outflow","topup"}) + .description("v4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPy"); 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("k1SSX-r") + .privateMoneyId("311bd1b2-821b-4fe2-94e0-f5a4694a8a3d") + .setModified(false) + .types(new String[]{"payment","exchange_inflow","expire","topup","exchange_outflow","cashback"}) + .description("FSWXNEvBDebROkI568yn3vAdg2WzE6cQfJbdKVhY"); 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("IeaGt") + .organizationCode("D9A--UB-y5Wn--5I--9u393gS--s3") + .privateMoneyId("fe6213e7-e07d-4a7e-adfe-2cf43ac6f070") .setModified(true) - .types(new String[]{"exchange_inflow","exchange_outflow","payment","cashback"}) - .description("pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXD"); + .types(new String[]{"expire","topup","cashback","payment","exchange_outflow","exchange_inflow"}) + .description("BR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8S"); 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") + .terminalId("9b31a3e7-fc60-4e5d-9839-b6718f656803") + .transactionId("O6") + .organizationCode("3iJ-9dD---7-YolA58m-Vc-996y5l") + .privateMoneyId("1750ab2f-d7c2-480d-842e-9bc53e6fa6aa") .setModified(true) - .types(new String[]{"expire","cashback","topup"}) - .description("PEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLI"); + .types(new String[]{"cashback"}) + .description("S5KI84n4B4JwtxMbsrynF"); 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("zleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2L") + .terminalId("0cdc7118-47d0-4396-a2a9-9f8c6a148ab0") + .transactionId("vCf") + .organizationCode("U8m-EI8MS8hII-tI") + .privateMoneyId("26687349-3c16-4178-b708-abe5d4699ac8") + .setModified(true) + .types(new String[]{"expire"}) + .description("VFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVj"); 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") - .setModified(false) - .types(new String[]{"expire","exchange_inflow"}) - .description("VbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8ZrqfNGAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08a"); + .customerId("05b57152-289f-42cc-99c3-c34692786d8b") + .customerName("S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixL") + .terminalId("8df7af26-c41d-4788-b003-3d76867b583d") + .transactionId("lY8MFYZ") + .organizationCode("Y03-2UWgF9") + .privateMoneyId("0e260079-0ae0-4332-921a-f0180b856949") + .setModified(true) + .types(new String[]{"exchange_outflow","topup","expire","payment","cashback","exchange_inflow"}) + .description("CUonyUv3nTPZ701h3V5Qywi2pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6f"); 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") - .setModified(true) - .types(new String[]{"payment","cashback"}) - .description("kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR"); + .shopId("977e2b08-a061-4a79-8a06-64febe0d9c5a") + .customerId("1bff689c-8cfb-475b-a32a-95326e526f27") + .customerName("E32vm3RMvvWttu1PJb3d04IfskzbRh2") + .terminalId("f52d39cb-6a2d-48aa-9358-6123c140ac44") + .transactionId("Jqy1UyPaGH") + .organizationCode("v39jFTlu-XkApk--324-FW3m--8") + .privateMoneyId("d897650b-e0a6-4c4f-b61c-e2d8149b3754") + .setModified(false) + .types(new String[]{"topup","cashback","expire"}) + .description("PEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLI"); 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(2395) + .shopId("7b52361c-ab20-4604-aea4-95c333415836") + .customerId("cd4922a1-cbf2-4319-84f9-005989664ef5") + .customerName("uG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYM") + .terminalId("2743e2fa-a1c8-49fc-8065-9650cee5841f") + .transactionId("RHJLPebY") + .organizationCode("-Cq10S-E8gQ----jDNN98mfGHwMEIBk") + .privateMoneyId("34e88dfc-36bd-404c-9bb5-d4e327efddb4") .setModified(true) - .types(new String[]{"expire"}) - .description("bXHSU9E0Qlg3gebvAwjzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisL"); + .types(new String[]{"exchange_outflow","cashback","topup","exchange_inflow"}) + .description("Pi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1"); 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") + .page(7539) + .perPage(8246) + .shopId("7261d6a9-1fb2-463f-8e20-eb786615d1ed") + .customerId("66eb1f15-3d9c-431d-9b12-329d5a93ed89") + .customerName("So3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oa") + .terminalId("bf1043fa-ff9c-4b4f-a0a9-5aeedb4aaf53") + .transactionId("RVBAD") + .organizationCode("-i2w-XaN03-R-7n") + .privateMoneyId("b5e91b2f-b889-4b22-a38e-7bc7310df541") .setModified(false) - .types(new String[]{"expire","topup"}) - .description("eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuK"); + .types(new String[]{"exchange_outflow","exchange_inflow","payment","expire","cashback"}) + .description("AIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08aWAgYKgMRg4eijui0x4A"); 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") - .setModified(false) - .types(new String[]{"exchange_outflow","topup","payment","expire","exchange_inflow"}) - .description("OzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRj"); + .to("2020-07-26T10:55:21.000000Z") + .page(2784) + .perPage(4219) + .shopId("f98b4df5-c995-408a-bb6b-47a2f3349e71") + .customerId("7bdf35a9-2b58-4e69-a9b0-1b92641220af") + .customerName("wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrG") + .terminalId("f8b5d8eb-2220-422d-88af-8fc79f2630a0") + .transactionId("nz7dW1L") + .organizationCode("e--Pwgc9HmVBlTce5-o-6v-Mx23q") + .privateMoneyId("87fcfd6b-5fb5-49b5-9cdb-6529a6653d70") + .setModified(true) + .types(new String[]{"expire"}) + .description("BmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyBabDj1sJ7k6dP6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YX"); 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") - .setModified(false) - .types(new String[]{"exchange_inflow","topup","expire","cashback","payment"}) - .description("YdohDRxcepsSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalO"); + .from("2021-12-24T02:28:31.000000Z") + .to("2025-12-16T09:31:03.000000Z") + .page(3505) + .perPage(6919) + .shopId("3294b38d-946f-4901-9188-860a792c76e1") + .customerId("1036e685-9fac-4c3b-9f35-c923852acdbe") + .customerName("SUOR88F7Ubd6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK775FUjJKUwWsCFULHC5xu9xwKzEEFrv0p5VC2XFSxIKMXYPxeKc6v3uyZaCEMZ2Ju8UbXHSU9E0Qlg3gebvAwjz") + .terminalId("a387e891-8847-4c38-9559-5e87acab0e1d") + .transactionId("apgA") + .organizationCode("hA8-") + .privateMoneyId("b1716a84-10a6-4941-965e-b8d8a3798775") + .setModified(true) + .types(new String[]{"topup","cashback","exchange_outflow","expire","payment","exchange_inflow"}) + .description("0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIy"); 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 b9c7ace..6f04c7b 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(636); 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("51ed468d-4747-4c41-961f-20a00917e168") + .perPage(192); 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("9b889779-46ec-4170-86ed-7a94067233ac") + .prevPageCursorId("b525e3dd-470b-4f1b-864f-26ae7dbc5ef7") + .perPage(708); 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("2021-03-28T04:28:20.000000Z") + .nextPageCursorId("884b419f-d4a4-4b3f-be82-fc14aa1889cb") + .prevPageCursorId("e176fe50-47fd-4d41-a0fb-e07ee848679f") + .perPage(400); 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("2024-04-30T03:04:34.000000Z") + .to("2022-09-16T02:44:47.000000Z") + .nextPageCursorId("2e6b65da-c4e4-4a72-9e67-db9163567698") + .prevPageCursorId("21232d9d-a3e8-4db9-9cb8-d4935722f1a9") + .perPage(979); 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[]{"exchange_inflow","cashback","exchange_outflow","topup","expire"}) + .from("2024-05-05T11:09:56.000000Z") + .to("2024-07-25T04:12:50.000000Z") + .nextPageCursorId("27a88a14-4475-4cbe-af24-ad0171a19d4a") + .prevPageCursorId("c47b7e84-f9d3-4b5c-8946-db558bcd67f2") + .perPage(298); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -132,12 +132,12 @@ void test6() throws ConnectionError, ProcessingError { 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); + .types(new String[]{"exchange_outflow"}) + .from("2022-04-10T17:55:14.000000Z") + .to("2025-11-29T11:41:53.000000Z") + .nextPageCursorId("9cd911cb-a018-4f6d-8f8a-c6ce6efecbfb") + .prevPageCursorId("98a976d9-5503-4cd8-9843-ad01e5ee9ee3") + .perPage(523); 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") + .transactionId("e6NgXm") .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); + .types(new String[]{"exchange_inflow","payment"}) + .from("2021-11-23T03:40:41.000000Z") + .to("2024-07-19T12:04:30.000000Z") + .nextPageCursorId("b3e15b37-ee7b-48d9-be64-e3efb64daf79") + .prevPageCursorId("77acaeba-6f68-4c76-894f-eb091b326c8c") + .perPage(460); 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("6oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzrywGRNkAeSHinr7X7r9") + .transactionId("y8K62vZdc") .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[]{"expire","exchange_inflow","exchange_outflow","payment"}) + .from("2024-09-23T13:17:51.000000Z") + .to("2024-08-19T01:30:51.000000Z") + .nextPageCursorId("7440e812-d811-462f-af5f-b514d20a65a5") + .prevPageCursorId("e6444e5d-2e44-44ae-86b7-71cf14b252fa") + .perPage(159); 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("tIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97") + .description("sI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsdecspEcH6zAIM8ju98Xf") + .transactionId("eDqY") .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[]{"expire","exchange_outflow","topup"}) + .from("2022-12-30T00:56:50.000000Z") + .to("2020-05-17T09:31:09.000000Z") + .nextPageCursorId("cb57a87c-ff50-453d-b07b-eb0e8ea6097d") + .prevPageCursorId("b5763b64-a3bc-4cb9-9cb9-8f57461a2190") + .perPage(975); 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") - .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); + .customerId("951bed49-5437-4df9-99f2-fc584db429d3") + .customerName("nnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDX") + .description("mGq20CccqYOFtqhMLy1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyN") + .transactionId("g5qU771SYw") + .setModified(false) + .types(new String[]{"cashback"}) + .from("2020-08-12T02:57:07.000000Z") + .to("2023-03-19T06:49:06.000000Z") + .nextPageCursorId("00f09690-3a12-4af3-bf9d-9db96f9a7c38") + .prevPageCursorId("5288ccdd-8356-4801-b04f-5867195604a3") + .perPage(444); 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("abd215ed-4d88-458f-9963-ab967fc77008") + .customerId("56b5cb38-e170-4dfc-ae53-869b409113b7") + .customerName("ZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81") + .description("h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrV") + .transactionId("WGSg") .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[]{"cashback","topup"}) + .from("2024-10-09T08:13:24.000000Z") + .to("2024-01-14T09:04:07.000000Z") + .nextPageCursorId("00aa78af-22d5-49ee-b71a-56ee1477e95e") + .prevPageCursorId("a457d88a-703d-4684-896e-72e10547fe3a") + .perPage(577); 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") + .shopId("65e177dc-baa4-4054-93db-6ac6bf2bba5f") + .terminalId("23b3977e-130f-4c7e-a38b-9dc08413aabe") + .customerId("b7ffc3fa-d65e-4ad2-8f84-d8a6c6ceb7c1") + .customerName("rCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX") + .description("Ny7Ex4zLyYmVuuwRZjnfSOf90ILh1FnEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34z4jE8W9hhkpYWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEj") + .transactionId("yIUvTVK") .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); + .types(new String[]{"expire","exchange_outflow"}) + .from("2024-08-21T07:54:16.000000Z") + .to("2024-05-20T09:43:15.000000Z") + .nextPageCursorId("6827b215-cb73-40e3-bc11-d8ba9d150c55") + .prevPageCursorId("a95e242e-bd63-475b-bd86-1efd708ae93a") + .perPage(115); 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") + .organizationCode("1QOwj3b--1NCX1t") + .shopId("c15988ec-ffc4-4752-8e75-542e8496382f") + .terminalId("a1762afc-1db1-4fe4-8879-e79aada577f0") + .customerId("bea5d92d-a93a-4bc5-8475-4626fb5ee814") + .customerName("pqRk9KXyywxfAsvQQw8eNXwtPfKAW4UwDxtqXzHNdytk1inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMu") + .description("mFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOp") + .transactionId("1Ez") .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); + .types(new String[]{"expire"}) + .from("2020-06-03T19:17:09.000000Z") + .to("2021-02-26T10:14:58.000000Z") + .nextPageCursorId("dcfeddfd-bce5-4b17-b843-2db60022abb8") + .prevPageCursorId("0bdf512f-e267-493a-814c-f7365724ba3a") + .perPage(682); 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") - .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); + .privateMoneyId("3824185e-6f6e-453e-885e-d8e85f245533") + .organizationCode("nzUq-glh-4-5sWcoR469-xrU--0eU11") + .shopId("d043208d-2a1e-4c74-abd9-32a84d164b14") + .terminalId("0083f3ea-ce85-43d0-9a3e-cfacfc4b2002") + .customerId("d088577c-04ba-4958-9579-da4a04be5f82") + .customerName("1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXf") + .description("zIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTq") + .transactionId("NfSRiXL") + .setModified(false) + .types(new String[]{"exchange_outflow","payment","cashback","topup","exchange_inflow","expire"}) + .from("2020-03-21T03:35:25.000000Z") + .to("2024-04-01T10:24:56.000000Z") + .nextPageCursorId("5206a28d-4385-4def-a066-4734008e4d0f") + .prevPageCursorId("5c103d4e-0833-4ae0-a258-eb5c8fbae437") + .perPage(819); 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 38e5bdd..8bb04fd 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("lsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLym"); 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[]{"exchange","payment","transfer","coupon"}) + .description("zsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPY"); 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[]{"payment","cashback"}) + .transferTypes(new String[]{"payment","cashback","transfer","topup","coupon","exchange","expire"}) + .description("G8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -75,9 +75,9 @@ void test3() throws ConnectionError, ProcessingError { 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"); + .transactionTypes(new String[]{"exchange"}) + .transferTypes(new String[]{"transfer","campaign","expire","payment","exchange","topup","coupon"}) + .description("Z89pSvPCqCpyLyZq50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6"); 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") + .privateMoneyId("f84e565c-a92a-448d-94f8-bf4b0e6f61b3") .setModified(true) - .transactionTypes(new String[]{"cashback","transfer","exchange"}) - .transferTypes(new String[]{"topup"}) - .description("UQr"); + .transactionTypes(new String[]{"exchange"}) + .transferTypes(new String[]{"expire","transfer","topup","coupon","campaign","cashback","exchange"}) + .description("caw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13g"); 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") - .setModified(true) - .transactionTypes(new String[]{"payment"}) - .transferTypes(new String[]{"coupon","campaign","cashback"}) - .description("4wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ"); + .transactionId("9df4022b-04c0-4f90-a866-c9873d595a4f") + .privateMoneyId("a18e09b1-0651-4b24-9328-7dc16690fa2b") + .setModified(false) + .transactionTypes(new String[]{"expire","topup"}) + .transferTypes(new String[]{"payment","cashback","transfer"}) + .description("LuHYzu2Ra1BMEr62gevnEo"); 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("fpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJ") + .transactionId("4c0aa8bd-37f8-4869-94b1-6311a9e1a8d3") + .privateMoneyId("c373d6d4-81a2-4931-97d8-13746e836287") + .setModified(true) + .transactionTypes(new String[]{"topup","payment"}) + .transferTypes(new String[]{"coupon","exchange","topup"}) + .description("1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5rX0rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3Pg"); 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") + .customerId("acec614f-91c9-4607-b8bd-f4ce6beab561") + .customerName("33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaT") + .transactionId("258d1ea0-4ff3-4995-a914-4d9217cc2448") + .privateMoneyId("45c9e14f-516d-4ca2-9ba4-7f632030cec3") .setModified(true) - .transactionTypes(new String[]{"topup","payment","cashback","exchange"}) - .transferTypes(new String[]{"exchange"}) - .description("6HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhK"); + .transactionTypes(new String[]{"exchange","payment","transfer","cashback","topup"}) + .transferTypes(new String[]{"transfer","coupon","topup"}) + .description("zwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLiOm0"); 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("u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNj") + .customerId("33d4dc6a-5836-49df-ac91-7c8095710e06") + .customerName("LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjngl") + .transactionId("e1650d8c-4d4a-4ea3-8363-ef800cba2bd3") + .privateMoneyId("4e590684-f820-465a-a4ae-94523f3c133d") .setModified(true) - .transactionTypes(new String[]{"transfer","exchange","cashback","payment"}) - .transferTypes(new String[]{"expire","coupon","campaign"}) - .description("IFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCp"); + .transactionTypes(new String[]{"exchange","cashback"}) + .transferTypes(new String[]{"payment","expire","transfer","exchange","cashback"}) + .description("sb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWl"); 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") - .setModified(true) - .transactionTypes(new String[]{"cashback","topup","payment","exchange","transfer","expire"}) - .transferTypes(new String[]{"transfer","cashback","coupon","campaign","payment"}) - .description("MyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe"); + .shopId("7e27977e-41f2-4d7c-9050-d413ee0575ab") + .shopName("a8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCx") + .customerId("675f1feb-4716-48eb-b4cd-697e193c4662") + .customerName("dZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLc") + .transactionId("15705c66-3d97-463f-9cef-512191c03a5f") + .privateMoneyId("8ddef3d5-d37e-434d-86a2-f40b89980b53") + .setModified(false) + .transactionTypes(new String[]{"cashback","exchange"}) + .transferTypes(new String[]{"coupon"}) + .description("C6otpSw3LnpbrPkZnNjPW"); 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(2317) + .shopId("21d7ace0-7cb5-4e7b-b511-7a555482be37") + .shopName("DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMah") + .customerId("1b61e4a4-b013-4a07-94ea-e0d97fb620aa") + .customerName("B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX") + .transactionId("54c1ca87-d1b9-47e9-9ae8-1a80e8eae58d") + .privateMoneyId("7809f8d5-c349-4a77-953d-ba729c9b7973") + .setModified(false) + .transactionTypes(new String[]{"payment","topup","cashback","transfer","exchange","expire"}) + .transferTypes(new String[]{"exchange","topup","coupon","cashback","transfer","expire"}) + .description("5dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4"); 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") + .page(2297) + .perPage(994) + .shopId("8d1228cc-a5dd-4a04-956e-91c0e3923ee2") + .shopName("12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4") + .customerId("206c8fea-a0bc-4a1d-ab69-1f5ceec76ff4") + .customerName("wHtujKhwCFGwiyv4vlRBRxfHZeKBVf4j") + .transactionId("2ad17992-a056-4523-a5aa-61947ad8d8f4") + .privateMoneyId("b844b3e5-6706-4763-bed1-d7ce53ef1575") .setModified(true) - .transactionTypes(new String[]{"payment","cashback","transfer","exchange"}) - .transferTypes(new String[]{"transfer","topup","coupon","campaign","exchange","payment","cashback","expire"}) - .description("FgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCG"); + .transactionTypes(new String[]{"payment","expire","transfer","exchange","topup","cashback"}) + .transferTypes(new String[]{"coupon","exchange","topup","transfer"}) + .description("rvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON"); 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("2022-07-25T06:59:02.000000Z") + .page(9709) + .perPage(5236) + .shopId("fa342da7-af88-460e-9bcb-ed9c72281f5f") + .shopName("CXAkk") + .customerId("623ea130-7037-4a90-912c-af3c9ed0aab9") + .customerName("YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTm") + .transactionId("feb7c517-2b66-4a1d-abd3-4c706a9e3764") + .privateMoneyId("8feb7ee3-d03f-4c9d-91cc-460ee73fa851") + .setModified(false) + .transactionTypes(new String[]{"transfer","cashback","payment","topup"}) + .transferTypes(new String[]{"exchange","topup"}) + .description("uvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocs"); 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("2025-04-06T22:58:07.000000Z") + .to("2020-12-07T11:13:54.000000Z") + .page(4244) + .perPage(8463) + .shopId("dbaab9a9-4c37-4cf9-bf5a-1ef0a2701c88") + .shopName("twOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mq") + .customerId("d1bd1ae6-e1d2-4d68-921a-43134536d184") + .customerName("mUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg5") + .transactionId("435cbfbd-2633-4f9f-9e1b-3b2b2272e094") + .privateMoneyId("c1007ea3-0190-48ff-aa3b-192ecc8e6e33") .setModified(false) - .transactionTypes(new String[]{"cashback","exchange","payment","transfer","topup"}) - .transferTypes(new String[]{"coupon","transfer","exchange","payment","topup","expire"}) - .description("NvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtu"); + .transactionTypes(new String[]{"exchange","transfer"}) + .transferTypes(new String[]{"topup","exchange","payment","expire","transfer"}) + .description("nZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX"); 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 b415ce2..921812f 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("2024-12-31T11:41:11.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("2024-04-05T09:30:04.000000Z") + .to("2023-06-20T14:36:29.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("vU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3") + .from("2020-11-10T06:26:36.000000Z") + .to("2024-02-24T12:06:02.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[]{"payment","campaign","exchange","transfer","coupon"}) + .description("TGifN6KrraD5uojwDmQdLNOKHIlDiaOh7") + .from("2025-02-16T18:30:24.000000Z") + .to("2022-07-11T15:56:19.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(569) + .transferTypes(new String[]{"cashback"}) + .description("bZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9") + .from("2020-06-24T07:34:34.000000Z") + .to("2022-07-04T02:03:24.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("d0f0b6f2-3d22-402d-85af-291a958284cb") + .perPage(858) + .transferTypes(new String[]{"campaign","cashback","exchange","expire","payment","transfer","topup"}) + .description("WPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJB") + .from("2020-01-31T15:00:59.000000Z") + .to("2023-12-29T18:19:42.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("03b2a384-17c4-41f6-b578-5f1039237927") + .prevPageCursorId("6f15aa96-bd57-496f-b1e4-11ccde3521bb") + .perPage(279) + .transferTypes(new String[]{"coupon"}) + .description("RbZpwbPRidVG7B6hajGJrCJBxTKH0YU") + .from("2020-07-13T10:45:43.000000Z") + .to("2024-09-18T18:25:47.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -153,13 +153,13 @@ void test7() throws ConnectionError, ProcessingError { 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"); + .nextPageCursorId("b5f577a8-d617-48f7-a9bf-df4a6e9ec34a") + .prevPageCursorId("fd53ada6-a9a8-4e02-b587-484a1679e925") + .perPage(576) + .transferTypes(new String[]{"transfer","campaign","exchange","payment","topup","expire","cashback"}) + .description("lazt") + .from("2021-07-28T18:23:32.000000Z") + .to("2022-01-04T23:59:38.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","cashback","topup"}) + .nextPageCursorId("13b6eca2-6454-46b8-9f22-c51a285e2336") + .prevPageCursorId("b41bb011-ea39-4f52-aabf-9b59650e5fd2") + .perPage(81) + .transferTypes(new String[]{"transfer","exchange","expire"}) + .description("YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMA") + .from("2022-02-26T04:38:35.000000Z") + .to("2020-01-12T03:42:32.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") + .privateMoneyId("eba9e053-175a-4c48-91a2-0911f6b07015") .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"); + .transactionTypes(new String[]{"topup","expire","transfer","payment","exchange","cashback"}) + .nextPageCursorId("faccf7e8-d40b-41e3-aab0-0e68a6306f41") + .prevPageCursorId("c05feb53-cc41-43c0-a384-6145e006ed69") + .perPage(159) + .transferTypes(new String[]{"campaign","transfer","cashback","payment","exchange"}) + .description("u1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5") + .from("2021-11-09T00:25:27.000000Z") + .to("2021-07-14T17:22:22.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("94686200-c950-41f1-b272-42ea4d1fbece") + .privateMoneyId("15ca43ab-069c-4732-a2b8-82a86012a700") + .setModified(false) + .transactionTypes(new String[]{"payment","transfer"}) + .nextPageCursorId("4d5c662d-3714-4d39-9172-c432b7306867") + .prevPageCursorId("a2cc6573-b7b4-4e5f-b2c1-91823ba84b3c") + .perPage(42) + .transferTypes(new String[]{"payment","exchange","expire","campaign"}) + .description("ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24") + .from("2024-02-28T21:56:51.000000Z") + .to("2022-02-21T18:05:52.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("c1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoe") + .transactionId("bc4ee87a-12cf-4f98-9483-33a4687ed578") + .privateMoneyId("c5e7dc36-7a19-404f-9b2c-551f99ac191a") + .setModified(true) + .transactionTypes(new String[]{"cashback","payment"}) + .nextPageCursorId("cc8a1fa1-e0ba-49a8-83a2-66973b24e7f1") + .prevPageCursorId("1efece0b-b578-4a1e-a4bd-8704c833d4ae") + .perPage(594) + .transferTypes(new String[]{"cashback","campaign","transfer","expire","coupon","topup","payment"}) + .description("4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2") + .from("2021-10-24T22:25:52.000000Z") + .to("2024-01-15T12:32:05.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") - .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"); + .customerId("8a23b63e-5962-4c71-b7da-6365d172697b") + .customerName("B8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb") + .transactionId("932b0da6-5d5f-4c35-ab6e-25753ac2b823") + .privateMoneyId("c3505328-3a25-4f91-914f-4d28b76fe144") + .setModified(true) + .transactionTypes(new String[]{"expire","cashback"}) + .nextPageCursorId("e12d13f2-6223-46f0-aeb0-2c32c90c61b2") + .prevPageCursorId("31b7c99a-17fc-41c8-bb0e-c1b3a0b83c03") + .perPage(504) + .transferTypes(new String[]{"payment"}) + .description("bLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLx") + .from("2022-07-06T16:41:34.000000Z") + .to("2025-05-28T19:39:33.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("mOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd") + .customerId("03e72a5b-ae5d-4518-b7ec-0dd6f4918536") + .customerName("QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYk") + .transactionId("b3618841-9950-4ac2-a9ca-3c376a637a1a") + .privateMoneyId("379be177-6ea0-48ed-a714-0d1340e54c43") .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","cashback"}) + .nextPageCursorId("887cf9a0-77a3-4e7f-a5ee-ee96764b4821") + .prevPageCursorId("7ef38a78-975d-4a9a-81a6-df863ac6484b") + .perPage(475) + .transferTypes(new String[]{"exchange","cashback","payment","campaign","topup","transfer","expire"}) + .description("ZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2") + .from("2020-08-03T13:12:18.000000Z") + .to("2021-10-31T05:47:41.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") + .shopId("b0563d89-356d-4d47-9f2a-360e206ca5e1") + .shopName("DjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLl") + .customerId("41c54283-ef99-46ac-8c6f-d34db1f6d411") + .customerName("4TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwh") + .transactionId("ecc0df79-3935-4684-8806-5a2ae4711910") + .privateMoneyId("aef5cb52-fbc9-464a-8447-fb7f7ff8832f") .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"); + .transactionTypes(new String[]{"transfer","cashback","payment","expire","topup","exchange"}) + .nextPageCursorId("ff6e7971-b082-4855-b394-738cd2141f4c") + .prevPageCursorId("717c1139-762b-448b-9b1b-4c6698c28df2") + .perPage(901) + .transferTypes(new String[]{"topup","exchange","expire","payment","campaign"}) + .description("gz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yI") + .from("2022-07-08T09:10:52.000000Z") + .to("2020-10-17T18:22:36.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 263a391..c335f30 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" + "7d160cf0-6b78-4257-8e19-9f9a64c24df6" ); 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" + "7d160cf0-6b78-4257-8e19-9f9a64c24df6" ) - .perPage(5145); + .perPage(3923); 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" + "7d160cf0-6b78-4257-8e19-9f9a64c24df6" ) - .page(7996) - .perPage(3122); + .page(3255) + .perPage(7715); 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 7a9c905..7d09142 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(5442); 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(4924) + .perPage(1349); 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 0000000..3634f23 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/PostCreditSessionTest.java @@ -0,0 +1,31 @@ +// 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()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java index 8f5b0a7..1bdc7c2 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" + "cc872592-9c1d-46a0-acf4-18adfa8130a2" ); 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" + "cc872592-9c1d-46a0-acf4-18adfa8130a2" ) - .description("kZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8Ox"); + .description("59XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22"); 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 b4049b2..2e353fb 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" + "948b4fc2-874c-48f6-aeca-7b02e6648900" ); 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" + "948b4fc2-874c-48f6-aeca-7b02e6648900" ) - .returningPointExpiresAt("2021-08-05T07:10:19.000000Z"); + .returningPointExpiresAt("2025-05-17T23:11:52.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" + "948b4fc2-874c-48f6-aeca-7b02e6648900" ) - .description("gpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziT") - .returningPointExpiresAt("2022-09-30T08:34:41.000000Z"); + .description("7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7") + .returningPointExpiresAt("2020-12-22T06:57:50.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 64d8fcb..5033a7e 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" + "2022-06-21T01:16:33.000000Z", + "2022-12-02T03:47:54.000000Z" ); try { PartnerAPITest.getClient().send(request); 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 0000000..3521057 --- /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( + "193c5cb4-a4a3-4132-babc-912cc80ebbef" + ); + 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 0000000..d6442e2 --- /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( + "7826027d-9c1f-49c9-9506-87680f4ee390" + ); + 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 63beff5..3256113 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" + "a340e755-3507-4e09-83f4-6972ad1659e7" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateAccount( - "f687016b-d0b3-46f2-8833-e8985291851f" + "a340e755-3507-4e09-83f4-6972ad1659e7" ) .canTransferTopup(true); try { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateAccount( - "f687016b-d0b3-46f2-8833-e8985291851f" + "a340e755-3507-4e09-83f4-6972ad1659e7" ) - .status("pre-closed") - .canTransferTopup(true); + .status("active") + .canTransferTopup(false); 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 UpdateAccount( - "f687016b-d0b3-46f2-8833-e8985291851f" + "a340e755-3507-4e09-83f4-6972ad1659e7" ) - .setSuspended(true) - .status("active") + .setSuspended(false) + .status("pre-closed") .canTransferTopup(false); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateBillTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateBillTest.java index ddc95e4..2eaf2d3 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" + "94a35a16-7157-42e0-85a7-8f2a87e11383" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateBill( - "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" + "94a35a16-7157-42e0-85a7-8f2a87e11383" ) .setDisabled(true); try { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateBill( - "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" + "94a35a16-7157-42e0-85a7-8f2a87e11383" ) - .description("RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv") - .setDisabled(false); + .description("Q5cbR62EyfrAyRxoXmZ8au8D4esSHy55WYfHfvN0QEBe9OUmuQoNyAxdhT65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gA") + .setDisabled(true); 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 UpdateBill( - "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" + "94a35a16-7157-42e0-85a7-8f2a87e11383" ) - .amount(140.0) - .description("4bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iM") - .setDisabled(false); + .amount(1756.0) + .description("cPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2pLnur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqM") + .setDisabled(true); 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 484daa0..a1aa598 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"4b1281ed-c915-4f1d-9463-0067ec2c642d","255d6e09-53f9-4b67-9aa7-4219578b7534","ee616ee3-0c5b-4771-96c5-6e61b01205f8","6473e185-11d3-476d-adb8-75eb03ce066d","b8298494-deaf-4e81-8fa8-30d99f03c58f","4e587afa-d49a-4233-a1b7-243f051ee650"}); 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"4b2352bc-8f2f-4e45-9be3-f450043cba3f","ac3a75bc-7119-4c4e-aa4e-86099fdcd0ae","2f399c90-4369-4edd-ab7d-e14bbb665ea1"}) + .name("N5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEa"); 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"512b02a4-7005-4f12-80e8-95af6c6220ce","a16a8fe0-9972-4c1e-8ce7-e6cd616a7088","1f93000c-325d-4e4f-9d39-f419136f4393"}) + .startsAt("2021-11-09T17:41:59.000000Z") + .name("D73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1"); 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"67b7c1cc-c27c-47e7-be82-4d0c4bfd1751","76094c04-1b2a-4780-866f-ea52e50a866c","8393a97a-baba-4375-a65f-225fac7c56f9","39adc21c-d9f8-4e08-8218-c3997cacfd32"}) + .endsAt("2025-12-16T03:43:13.000000Z") + .startsAt("2022-01-27T09:26:31.000000Z") + .name("CPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFot"); 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"7ca230c1-968a-4b33-9dc7-48777d2fd32b"}) + .priority(8969) + .endsAt("2023-07-24T20:20:00.000000Z") + .startsAt("2022-10-15T02:36:58.000000Z") + .name("pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bnX1r8l3hC"); 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .applicableShopIds(new String[]{"d5365c8b-e163-4569-af2b-de2dfaec44bc","98e228e8-4e71-4c57-be20-16f78e636ed7","8648f6cb-c1cc-4c49-83f3-56e748017178","06817d6f-7a92-44f8-85a1-f5dce51de9ab"}) - .event("topup") - .priority(6681) - .endsAt("2023-08-27T09:21:44.000000Z") - .startsAt("2020-11-20T17:43:31.000000Z") - .name("2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFh"); + .applicableShopIds(new String[]{"35d1ca36-2c11-4d53-aea7-c22b62d10928","ab382e6d-4c5e-4f39-903f-b2a8da10786d","9e018b7f-580e-47e6-a354-fc98fc6415b5","931e8ce3-9b4c-40d5-a833-cbac9dc4b3b4","9b14f7ec-92d7-4140-9908-65a381b65a6b","d82ef584-d1b1-4fbc-8158-f9ba188a07e6","483e97b6-7743-45da-95e9-2bbdf5b48ca3","1932b045-229d-434a-ade7-ef6e9491b0e0"}) + .event("payment") + .priority(3453) + .endsAt("2020-06-13T05:42:28.000000Z") + .startsAt("2024-04-06T05:17:09.000000Z") + .name("d6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVV"); 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"99bb2ee8-b9a6-415a-850a-b2e7589d9511","b6bac173-ea18-4a21-bf2b-06867b560730","90cdcc7b-02d3-4868-8425-20c1e41c6d31"}) + .description("T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6BwqET") + .event("external-transaction") + .priority(2081) + .endsAt("2022-01-08T20:24:17.000000Z") + .startsAt("2020-12-27T06:09:57.000000Z") + .name("ggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N"); 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"e4b4137c-772b-4e34-89ef-168fa6c572a6","e2e19b60-61e3-4e17-8dfb-eff5872d06db"}) + .status("disabled") + .description("cZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQ") + .event("payment") + .priority(947) + .endsAt("2020-06-12T23:09:26.000000Z") + .startsAt("2022-11-18T00:19:27.000000Z") + .name("zkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1L"); 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"d49c5430-39dc-431c-8f34-0ff4756c4a09","5fbe5838-339f-49f9-bfa1-68accbf64da0","83955880-41f5-42b2-99ab-80d91a2260b3","6ba44460-3619-40bc-a10b-cb1f6932ef8b","0300f207-a518-426d-a3e2-c67bb9d7755a","082d8790-121d-4bd2-9696-a5469b186a19","e77f4543-2847-4098-835e-5abb373ce51f","6a345457-c794-47c5-862c-aaeca14f94ff","c201777b-ee4d-4841-a847-bef1d9f3f504"}) + .pointExpiresAt("2020-06-30T17:57:47.000000Z") + .status("disabled") + .description("foqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv") + .event("topup") + .priority(3053) + .endsAt("2025-09-26T20:11:21.000000Z") + .startsAt("2023-01-29T07:56:32.000000Z") + .name("bLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQI"); 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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") - .event("external-transaction") - .priority(9745) - .endsAt("2022-04-24T08:50:34.000000Z") - .startsAt("2020-09-05T17:02:02.000000Z") - .name("tFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi2"); + .applicableShopIds(new String[]{"7b0e51d5-ed3f-47ef-a3ba-be916bb49d4e","fe428e7c-12cc-47ed-ba23-3eec538a3f6b","7dc78045-8173-42b1-b39c-161472d6ad97","81e8fd33-9324-436f-8682-5c7b1dbb3e61","38f08d95-8f6a-4e86-978a-56d5af55771b","382d8dc4-836b-46e2-96e2-a8b9449f2a34","181bb47f-e995-4429-9dbd-9813a4b44ba5","c76fbd64-7603-40e8-a351-08ed33d63a5f","dbab5f90-d08e-43a2-bd23-5207a9e13225"}) + .pointExpiresInDays(1858) + .pointExpiresAt("2022-10-06T19:22:51.000000Z") + .status("disabled") + .description("i4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI") + .event("payment") + .priority(4396) + .endsAt("2024-05-11T23:52:52.000000Z") + .startsAt("2022-09-14T21:34:38.000000Z") + .name("t6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6"); 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .applicableShopIds(new String[]{"ca05f932-ed23-42ca-b7ab-ab3a2d0b9bb1","88e8f9e9-d3e4-4441-b894-78e39e4345d1","88ffbeb9-b0d2-4284-9b8b-685164b175e3","ab4472c1-fdb9-43b3-8526-ee8f1983136a"}) + .applicableShopIds(new String[]{"def3c999-6c00-4278-9614-fe4344765ae9","0c0b76bf-833f-4da7-b980-4e98aeb00124","ee9d6b61-1453-4dfe-b70d-ef1bde964f9c","9ef88a27-c516-4a70-8655-868f031a887e","d6f686ee-3e38-449d-b348-35bf74998e44","87e018c5-9106-4700-b4bb-79469ec5df87","850fa7b3-d306-436b-a3e6-f53061cc3303","9db1dfdf-a5e8-4df2-a651-b2b40d6483e1","3b4a1433-d872-4850-89e7-fa54cb75b1e8"}) .setExclusive(true) - .pointExpiresInDays(7419) - .pointExpiresAt("2021-08-22T22:07:08.000000Z") + .pointExpiresInDays(8415) + .pointExpiresAt("2022-04-01T12:26:53.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("S8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPU") + .event("payment") + .priority(9074) + .endsAt("2021-06-08T00:25:38.000000Z") + .startsAt("2024-05-09T05:43:53.000000Z") + .name("2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmV"); 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .applicableShopIds(new String[]{"2cd7121d-8bd2-4e16-9646-6a19e77f4543"}) + .applicableShopIds(new String[]{"e5178e30-4f58-4f71-b14c-12075b19deb2","b312d144-581b-4688-bdc4-fd436355c0e4","3db833ce-3f17-4c47-9cf6-ef21ded81c21","629d5fb9-a840-4cd1-8f61-1987c90d79ce","a398a800-d67e-454d-adf8-bb189a4ddc58","41982c32-8ed3-4e11-b266-11d008f11a26","411e7c5c-61e8-4e3b-9936-c8e6ca03f45c","f09fbba7-f88e-4379-b133-5f35302b1701","05284049-4535-41c4-8a15-707d6358d488"}) .subject("all") .setExclusive(true) - .pointExpiresInDays(7428) - .pointExpiresAt("2020-08-10T07:46:38.000000Z") + .pointExpiresInDays(3016) + .pointExpiresAt("2020-03-04T04:43:19.000000Z") .status("disabled") - .description("WEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4") + .description("nvkdWrHaspAw5Vcp7CE78JSe44PvWgrD") .event("topup") - .priority(3913) - .endsAt("2021-04-27T04:59:45.000000Z") - .startsAt("2023-08-03T21:04:35.000000Z") - .name("wQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5"); + .priority(3823) + .endsAt("2022-05-24T05:58:28.000000Z") + .startsAt("2020-01-03T10:55:32.000000Z") + .name("ffEic8syvxPXUni2oM8QHA7lWY5GL"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -286,22 +286,62 @@ void test12() 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); + 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); + 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); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .applicableShopIds(new String[]{"45af3000-bd9c-4fdb-85f0-277948842199","4579f524-c4c2-4328-a31f-22e443c598e8","10e80104-025d-4066-84f4-aeddcf984e8d"}) - .amountBasedPointRules(new Object[]{items}) + .applicableShopIds(new String[]{"accdfc21-dff1-498a-bd9f-1a0bf0fe9de0","61dbb0c9-8d10-48d4-aa30-29d51d3e92ba","8ef8cc10-02be-4967-8a77-24f82bca25ed","25c96d66-952b-4861-9fc6-2d94da169930","36ae5490-71ad-41e7-9fc7-29baa56cf39d","01aa700a-5f66-4b0f-be67-7fce3095d0ec","c52a6e97-e6c7-4836-9d85-fe8caa08175b","e93c1fb7-da60-4d27-a42c-d5d89d70e3cf","757d74e6-c423-4882-a447-c569a8df98b8"}) + .amountBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) .subject("all") .setExclusive(false) - .pointExpiresInDays(4348) - .pointExpiresAt("2023-04-11T03:47:25.000000Z") + .pointExpiresInDays(1804) + .pointExpiresAt("2020-11-04T11:14:47.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"); + .description("Nv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176Pq") + .event("payment") + .priority(7340) + .endsAt("2025-07-04T01:40:11.000000Z") + .startsAt("2025-03-18T07:46:45.000000Z") + .name("YJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -366,13 +406,15 @@ void test13() 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"); @@ -394,22 +436,22 @@ void test13() throws ConnectionError, ProcessingError { items14.addProperty("subject_more_than_or_equal", 1000); items14.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"f2b52ae6-ef7e-47ad-947e-378185246b50","baae50e7-8ea5-4b03-9ad1-bfdd8e2f6f25","74b5c092-3f1b-4aef-9eaa-a487ee6525c7","bf0f3ca6-5158-4984-ab4c-0c251f6affdc","4a174fba-77db-4784-bee2-918973a98db8","e9e81068-cd54-437d-b50f-6df68f8b478c","3ca7772e-8c7a-46e2-bfdb-c3e2cc7793c6"}) + .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .amountBasedPointRules(new Object[]{items11,items12,items13,items14}) .subject("money") - .setExclusive(false) - .pointExpiresInDays(3659) - .pointExpiresAt("2021-06-17T19:14:20.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"); + .setExclusive(true) + .pointExpiresInDays(6050) + .pointExpiresAt("2024-09-23T22:47:28.000000Z") + .status("disabled") + .description("W03Q8sgkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJ") + .event("external-transaction") + .priority(4282) + .endsAt("2025-11-09T00:43:57.000000Z") + .startsAt("2020-09-01T00:36:19.000000Z") + .name("XlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvM"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -430,62 +472,120 @@ 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("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); + 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); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"66b2f682-e112-45ef-9906-baa920c1c2bc","bb72cb55-4c2c-4149-a1c4-b559f6826485","b2cd1cd4-755b-4154-a239-a1594b05908f","de259607-0ecc-497e-bcfe-87551d2a8fcb","97b638b2-1aaa-4c14-bc83-39daf1572a27"}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18}) + .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23}) .subject("money") .setExclusive(true) - .pointExpiresInDays(8956) - .pointExpiresAt("2022-03-04T23:06:48.000000Z") + .pointExpiresInDays(6000) + .pointExpiresAt("2023-02-06T19:50:05.000000Z") .status("enabled") - .description("S4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7") + .description("c6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOL") .event("topup") - .priority(4973) - .endsAt("2021-02-15T13:07:43.000000Z") - .startsAt("2021-11-28T01:04:01.000000Z") - .name("YOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUe"); + .priority(6213) + .endsAt("2024-11-16T13:49:59.000000Z") + .startsAt("2023-05-04T11:07:09.000000Z") + .name("FPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8ku"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -506,23 +606,14 @@ 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"); @@ -538,9 +629,8 @@ void test15() 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"); @@ -576,25 +666,35 @@ void test15() 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); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(2128) - .pointExpiresAt("2024-10-10T07:55:01.000000Z") + .applicableShopIds(new String[]{"638c967f-a98c-42c7-a92c-8d7f1c7522fb","8b5213ef-e117-4553-ab95-b83835ad5f8d","0d65bd6d-d95d-4c0d-ad43-7cd00548bc17","98c5fb81-3b7e-4941-873a-85b5f7db1e54","c575a55b-12fb-47e1-980d-63cfaba154d3","3db83ea9-8003-4e4a-a472-24c647114cf7"}) + .applicableDaysOfWeek(new Integer[]{4,6,1,4,5,3}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5}) + .productBasedPointRules(new Object[]{items6,items7}) + .amountBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(8658) + .pointExpiresAt("2024-12-20T07:00:20.000000Z") .status("enabled") - .description("FHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEP") + .description("aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXR") .event("topup") - .priority(8523) - .endsAt("2021-11-23T18:33:31.000000Z") - .startsAt("2021-01-31T00:28:24.000000Z") - .name("oSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHa"); + .priority(2681) + .endsAt("2024-02-18T09:19:30.000000Z") + .startsAt("2023-03-13T08:35:30.000000Z") + .name("V8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -627,127 +727,35 @@ void test16() 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"); + 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("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); - 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"); 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"); @@ -782,67 +790,26 @@ void test17() throws ConnectionError, ProcessingError { 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); - 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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) + .applicableShopIds(new String[]{"a535f687-73af-48f3-a382-1a0bc870f65c","fbc7b1d3-6a5b-40ae-8169-a8125a0e2100","03eff94a-d32f-452e-9d0b-ba2669aa0d13"}) .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}) + .applicableDaysOfWeek(new Integer[]{0,4,2,2,4}) + .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16}) + .productBasedPointRules(new Object[]{items17,items18,items19,items20}) + .amountBasedPointRules(new Object[]{items21,items22}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(7051) - .pointExpiresAt("2023-09-27T07:08:06.000000Z") + .setExclusive(true) + .pointExpiresInDays(4881) + .pointExpiresAt("2021-03-01T00:31:29.000000Z") .status("disabled") - .description("W") + .description("sa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs") .event("topup") - .priority(9103) - .endsAt("2020-12-09T22:09:02.000000Z") - .startsAt("2021-09-03T10:28:08.000000Z") - .name("gkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSk"); + .priority(8384) + .endsAt("2020-08-16T10:19:17.000000Z") + .startsAt("2022-01-15T02:05:14.000000Z") + .name("q6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -855,7 +822,7 @@ 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"); @@ -863,8 +830,8 @@ void test18() 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"); @@ -875,17 +842,11 @@ void test18() 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); + 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"); @@ -919,35 +880,58 @@ void test18() 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"); + 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("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 UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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}) - .subject("money") + .applicableShopIds(new String[]{"ef9ccae2-53f0-4621-8197-1af1d82480e3","d86f09be-0583-46a1-9c1c-3e9123d56c57","d1402c04-b74e-4e9c-a74a-d0966945fd86","a04a91f2-464e-44ae-a4d4-660915f270be","ad4b34f3-8f76-46b2-844c-6a6c2b95b865","18ac30f8-8bb1-4f09-a504-3b93d6b997ea","9d451d00-2947-497e-91dd-021b19ad31a3","5c29c65d-5cfc-497c-8532-481808cb9225"}) + .minimumNumberOfProducts(829) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{6,3,0}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16,items17}) + .amountBasedPointRules(new Object[]{items18,items19}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(8694) - .pointExpiresAt("2022-09-02T12:19:44.000000Z") - .status("enabled") - .description("k8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2") + .pointExpiresInDays(9728) + .pointExpiresAt("2021-02-27T08:38:33.000000Z") + .status("disabled") + .description("50Yf2M71M8zENOSGlzUlDTz33P2rJ14") .event("payment") - .priority(6282) - .endsAt("2021-11-17T13:16:21.000000Z") - .startsAt("2022-04-03T18:49:21.000000Z") - .name("ISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNe"); + .priority(4323) + .endsAt("2025-09-19T19:21:18.000000Z") + .startsAt("2025-07-29T01:10:31.000000Z") + .name("KWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAo"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -960,7 +944,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"); @@ -977,20 +961,20 @@ void test19() throws ConnectionError, ProcessingError { 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"); @@ -998,11 +982,8 @@ void test19() 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"); @@ -1015,28 +996,27 @@ void test19() throws ConnectionError, ProcessingError { items15.addProperty("subject_more_than_or_equal", 1000); items15.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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}) + .applicableShopIds(new String[]{"8c69e964-4125-4cd8-87b3-3a6cd0722e8f","40afb44f-8ff3-4f06-931a-c87ae121cc65","4c68242c-5454-4f7c-8c5f-14e6f51a3195","33bab87e-d206-4fd8-b555-662a4d3cabe8"}) + .minimumNumberOfAmount(392) + .minimumNumberOfProducts(3955) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{6,3}) + .blacklistedProductRules(new Object[]{items11,items12,items13}) + .productBasedPointRules(new Object[]{items14}) .amountBasedPointRules(new Object[]{items15}) - .subject("money") + .subject("all") .setExclusive(false) - .pointExpiresInDays(2474) - .pointExpiresAt("2024-02-17T17:44:31.000000Z") - .status("disabled") - .description("kSjhKrHXePF1aNsQcGEPe") + .pointExpiresInDays(809) + .pointExpiresAt("2020-02-08T22:14:55.000000Z") + .status("enabled") + .description("pvZDbUGNbf92zGejiy7b3srgm7L") .event("external-transaction") - .priority(2179) - .endsAt("2021-03-25T18:53:17.000000Z") - .startsAt("2021-03-20T20:56:39.000000Z") - .name("2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3Tb"); + .priority(9385) + .endsAt("2024-10-09T03:35:34.000000Z") + .startsAt("2022-02-22T13:28:14.000000Z") + .name("xTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkU"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1049,37 +1029,58 @@ 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"); 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("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("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("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"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + 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("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"); @@ -1095,86 +1096,174 @@ void test20() 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); - 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"); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); + Request request = new UpdateCampaign( + "e547aced-7199-4ed8-b0e3-8be329103dc1" + ) + .applicableShopIds(new String[]{"a381d40a-bc16-4547-b73e-459c9c305029","4ff4c0fa-1278-4d07-b4d1-0060ff6db750","3f8aa92c-7807-46cc-869f-4b9c7e7ebc19","528ed030-e695-4bde-877b-ef2c768c9a65","442cd9e2-f1d5-4b4f-9c68-f4be793bcdf6","f1ed9033-8142-48fc-b374-123211c011c4"}) + .minimumNumberForCombinationPurchase(422) + .minimumNumberOfAmount(3579) + .minimumNumberOfProducts(7826) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{5}) + .blacklistedProductRules(new Object[]{items2,items3}) + .productBasedPointRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11,items12}) + .amountBasedPointRules(new Object[]{items13}) + .subject("all") + .setExclusive(false) + .pointExpiresInDays(2342) + .pointExpiresAt("2024-10-27T11:57:29.000000Z") + .status("disabled") + .description("eI7vFyo7eM4dNHW25nKJYDvzM004QSYdke") + .event("external-transaction") + .priority(6048) + .endsAt("2024-12-25T05:32:31.000000Z") + .startsAt("2021-09-29T22:53:51.000000Z") + .name("Jzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75"); + 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 test20() 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("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("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("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"); - 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"); - 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"); + 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("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); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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") + .applicableShopIds(new String[]{"043ac265-db03-4254-bf7f-1024916f7132","c96a4c4d-2fec-41ba-bb1a-2acde05bbf61","13cb9673-499d-4619-9864-8bcaa87080c0","80ca4e8b-2baa-4114-83d3-70e75ecea9da"}) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(9899) + .minimumNumberOfAmount(4079) + .minimumNumberOfProducts(6895) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .applicableDaysOfWeek(new Integer[]{1,1,6}) + .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16}) + .productBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24}) + .amountBasedPointRules(new Object[]{items25,items26}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(8723) + .pointExpiresAt("2025-04-12T22:42:00.000000Z") .status("enabled") - .description("hdalQqRPyTvG2tPeRbQcNODGa3Iheb") + .description("uzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmd") .event("payment") - .priority(6052) - .endsAt("2020-05-02T03:16:50.000000Z") - .startsAt("2023-01-31T02:06:10.000000Z") - .name("xi8kuGoSk8mm"); + .priority(2883) + .endsAt("2025-10-12T10:54:22.000000Z") + .startsAt("2020-09-22T11:28:30.000000Z") + .name("CSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxU"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1192,74 +1281,100 @@ void test21() 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("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("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("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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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}) - .subject("money") + .applicableShopIds(new String[]{"7c48f277-a184-4d27-bc8b-16d4b8db7033","3fab9b99-d47e-4698-8d3e-348a87ec5ca1","c4edd039-5928-48b1-bbd8-1b2044ccbe6a","7972ca48-7572-4f54-8713-9b0eb5996faf","1d729d27-fb83-492f-a637-16086dacf2e6","16713b4d-2ec3-466c-b8b1-4049b39a82ca"}) + .maxPointAmount(4256) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(81) + .minimumNumberOfAmount(9426) + .minimumNumberOfProducts(7636) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .applicableDaysOfWeek(new Integer[]{0}) + .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14}) + .productBasedPointRules(new Object[]{items15}) + .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20}) + .subject("all") .setExclusive(false) - .pointExpiresInDays(1367) - .pointExpiresAt("2023-06-12T23:49:59.000000Z") + .pointExpiresInDays(9487) + .pointExpiresAt("2022-11-12T20:24:43.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("ReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluv") + .event("topup") + .priority(5444) + .endsAt("2021-11-27T21:24:07.000000Z") + .startsAt("2020-05-23T16:20:00.000000Z") + .name("IOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctq"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1277,78 +1392,109 @@ 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"); + 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("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("product_code", "4912345678904"); - items9.addProperty("is_multiply_by_count", true); - items9.addProperty("required_count", 2); + 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("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("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); + 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"75d80860-2098-4bee-8530-5dc817fe7179","aeaae59d-c182-432c-8c2a-c06c252577c2","32e4fac5-9bbe-4320-a1d7-2546c84482fd","26fe5199-f2a9-452d-b44b-a9eddf8f6ba0","a67a3747-a78f-49bd-bcf1-7a246dd5fc08","6e24008e-1d54-443e-aa4d-0b5fdd2baf08","a184e23a-78bf-46d2-87a8-da47c349e929","9b6386db-4768-46fd-a689-a44cf8039dbe","fc48cdcb-7c2e-42a4-b408-780d5054c7ed"}) + .maxTotalPointAmount(4069) + .maxPointAmount(2695) .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") + .minimumNumberForCombinationPurchase(8900) + .minimumNumberOfAmount(7232) + .minimumNumberOfProducts(7830) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{4,6,6,2,0}) + .blacklistedProductRules(new Object[]{items8,items9,items10,items11}) + .productBasedPointRules(new Object[]{items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17,items18,items19,items20}) + .subject("money") .setExclusive(true) - .pointExpiresInDays(2656) - .pointExpiresAt("2020-03-09T16:28:30.000000Z") + .pointExpiresInDays(8621) + .pointExpiresAt("2020-03-09T08:37:30.000000Z") .status("disabled") - .description("rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQo") + .description("MUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4U") .event("payment") - .priority(1355) - .endsAt("2022-03-07T14:25:07.000000Z") - .startsAt("2021-11-08T00:38:06.000000Z") - .name("Wzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnN"); + .priority(2481) + .endsAt("2020-12-30T09:24:29.000000Z") + .startsAt("2021-01-29T08:31:11.000000Z") + .name("7nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwq"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1375,8 +1521,8 @@ void test23() throws ConnectionError, ProcessingError { 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"); @@ -1393,23 +1539,14 @@ void test23() 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"); @@ -1431,55 +1568,69 @@ void test23() throws ConnectionError, ProcessingError { 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); + 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"); 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); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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"}) + .applicableShopIds(new String[]{"b3f6d635-929e-49bd-b8b7-d58807275ce6","57b71a1a-de51-4409-a0a5-cfda4b76e398","1f25f55e-3a47-4f06-902a-80e05e63f706","fd7d4c4d-ef2d-4c58-863a-4a96b0fbd2ef","0b6becc0-ec36-4adf-9f88-4bef90dca8c9","5888a11e-9e8f-45f6-9a1d-379793b9e9ab","cc3cdc40-e0c7-489b-9178-215b43e68d55","79876d2d-c3a7-4f97-9e4a-2514e66b3241","789fd72b-5e94-4a41-a5a5-895b4bbcfec8"}) .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}) + .maxTotalPointAmount(9220) + .maxPointAmount(5078) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(1896) + .minimumNumberOfAmount(1208) + .minimumNumberOfProducts(9318) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{1}) + .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12}) + .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19}) + .amountBasedPointRules(new Object[]{items20,items21,items22}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(3296) - .pointExpiresAt("2020-09-13T21:12:42.000000Z") + .setExclusive(false) + .pointExpiresInDays(4900) + .pointExpiresAt("2025-01-19T07:20:39.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"); + .description("I8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP") + .event("topup") + .priority(9144) + .endsAt("2024-01-29T03:18:51.000000Z") + .startsAt("2024-09-29T12:50:56.000000Z") + .name("Ds4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPO"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1512,23 +1663,17 @@ 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"); + 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("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"); @@ -1581,49 +1726,34 @@ void test24() throws ConnectionError, ProcessingError { 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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"}) + .applicableShopIds(new String[]{"1dab39c1-746b-4108-baaa-2c125dd5b387","35dd3457-e6de-40cc-8389-704803f7477e","34cc9097-14dd-409c-a882-2393e0f2c9d0","61fcb3ba-fc7f-4137-b137-fd0499bb136a","9127500e-15aa-4edb-b9dd-47ea4ca18745"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(2112) - .maxPointAmount(7523) + .maxTotalPointAmount(4409) + .maxPointAmount(6156) .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}) - .productBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14,items15}) - .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20}) - .subject("money") + .minimumNumberForCombinationPurchase(3876) + .minimumNumberOfAmount(2775) + .minimumNumberOfProducts(5957) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{1,4,4,2,5,6,0,6,0,2}) + .blacklistedProductRules(new Object[]{items8}) + .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15}) + .amountBasedPointRules(new Object[]{items16,items17}) + .subject("all") .setExclusive(false) - .pointExpiresInDays(5043) - .pointExpiresAt("2024-04-08T07:42:21.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"); + .pointExpiresInDays(4010) + .pointExpiresAt("2020-09-08T17:56:27.000000Z") + .status("disabled") + .description("DdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq") + .event("topup") + .priority(3344) + .endsAt("2021-07-11T21:48:25.000000Z") + .startsAt("2020-10-31T09:13:19.000000Z") + .name("0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1650,154 +1780,130 @@ void test25() 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("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("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("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"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + 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("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("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); + 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("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); - 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); + 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"96fde525-a3df-4da4-9983-104312a0ab6f","fcef347b-df39-4785-9426-34d83a88ad2e","4124f52e-ba22-43c5-8d0c-6ef8958da4ad","f3e753b6-9a27-48d1-b3a8-f0cece5dbe34","5370e6ec-a63a-4279-a4c3-155efa546c7d","5efad0f0-3a42-4cbb-ba87-35d462322f82"}) + .budgetCapsAmount(1861114857) .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}) - .subject("all") + .maxTotalPointAmount(6504) + .maxPointAmount(4816) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(3989) + .minimumNumberOfAmount(3402) + .minimumNumberOfProducts(6678) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{0,5,2,5,5}) + .blacklistedProductRules(new Object[]{items3}) + .productBasedPointRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11}) + .amountBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18,items19,items20}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(4908) - .pointExpiresAt("2022-10-17T13:31:06.000000Z") + .pointExpiresInDays(9186) + .pointExpiresAt("2023-01-17T21:40:41.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"); + .description("NkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfc") + .event("payment") + .priority(9361) + .endsAt("2022-02-18T18:19:28.000000Z") + .startsAt("2023-04-07T17:05:09.000000Z") + .name("sTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWh"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1812,9 +1918,9 @@ void test25() throws ConnectionError, ProcessingError { @Test void test26() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .blacklistedShopIds(new String[]{"33c1f10d-7f75-4dd3-885f-3ce0dd9e03d8","08e97924-828f-43db-a054-d60169b5be6d","5c36650e-200b-4f45-9304-9e52ab9800fd"}); + .blacklistedShopIds(new String[]{"a0e270da-c238-4431-b030-2709b4b3ac81","265be205-4399-448d-8513-9410eb9efca4","50cc6ebd-7544-4238-94c8-469c8d0e9420","e76bcc80-2844-4887-9bb4-5de46163daf0"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1829,10 +1935,10 @@ void test26() throws ConnectionError, ProcessingError { @Test void test27() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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"); + .blacklistedShopIds(new String[]{"92d9c205-5785-4590-8ce8-4983f82f835d","3e0e1578-2d4e-4376-87e8-dd78ba1ce9ea","6a897cd0-7be6-4e2f-a4a4-0fcc60796d7b","d4e79211-c401-43a6-8314-b315fe2a98bb","fbe44a7c-4214-451c-8d26-cb03f47e9faa","697d195b-2589-41f0-a60d-783a43422ac7"}) + .name("OhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlk"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1847,11 +1953,11 @@ void test27() throws ConnectionError, ProcessingError { @Test void test28() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .blacklistedShopIds(new String[]{"181b2253-cf2e-4bbe-835a-347dcc32fa82","e7c3d7c5-35ee-4726-9090-186312946d43"}) - .startsAt("2021-10-14T04:55:45.000000Z") - .name("jIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2"); + .blacklistedShopIds(new String[]{"35a34f3e-adb4-4339-80cf-a6584cbf5309","e8de4fed-0697-4fe3-8ddb-515ebf7be9dc","1287e231-2ca5-4f04-a11b-5f297e42a795","5e442565-b9a8-4181-99cc-373c6476eac3","02177c49-2c99-49f6-917e-7944f26d3c7a","ab602ca3-4a59-459f-ba77-b516f0614b05"}) + .startsAt("2023-05-11T23:35:29.000000Z") + .name("tEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1866,12 +1972,12 @@ void test28() throws ConnectionError, ProcessingError { @Test void test29() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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"); + .blacklistedShopIds(new String[]{"0fd40a8a-65fe-4094-9032-dbbc018a0c0e"}) + .endsAt("2025-09-10T09:10:14.000000Z") + .startsAt("2023-02-17T16:04:42.000000Z") + .name("Tc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoY"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1886,13 +1992,13 @@ void test29() throws ConnectionError, ProcessingError { @Test void test30() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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"); + .blacklistedShopIds(new String[]{"cc8c7d62-9883-48bb-98e5-9ae5f34083c2","31c9f7ff-0f4b-4d5e-9f9a-ad55c8b8dd0a"}) + .priority(8900) + .endsAt("2022-07-18T12:32:57.000000Z") + .startsAt("2021-08-01T07:54:25.000000Z") + .name("4vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1907,14 +2013,14 @@ void test30() throws ConnectionError, ProcessingError { @Test void test31() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"6db2adbe-175d-4ca3-b73a-8805af56b0b6","464fe1a7-e7da-462b-832e-2418dd2d88fe","31e138ec-6c6b-433f-8def-80f1aa9c8056","0f5753e1-026a-403f-af00-15764c745c75","45f46b8b-26c7-491f-9ab5-6efd0874002e","cad7a963-4e1c-4c1e-871d-2819b4475615","1e0573e3-05c2-4902-8f97-36505e212ab5","95286da0-03a9-48ae-8777-4c415a4b2ab9"}) + .event("payment") + .priority(7296) + .endsAt("2022-05-26T15:28:02.000000Z") + .startsAt("2021-07-07T23:13:51.000000Z") + .name("SB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9TezTj3A085y"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1929,15 +2035,15 @@ void test31() throws ConnectionError, ProcessingError { @Test void test32() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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") - .event("topup") - .priority(3174) - .endsAt("2023-12-19T09:00:52.000000Z") - .startsAt("2024-07-06T05:11:02.000000Z") - .name("0jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232"); + .blacklistedShopIds(new String[]{"2ebfbdc0-b035-4a8a-8868-5bdea3cef880","33c0d90c-321e-4303-9751-e10567536311","fc68fba1-38b3-4ba9-a0a4-c067320d9fa8","24ca4fe4-dfe5-47c4-9c4f-7e57c34c3482","23f85b46-86c5-4d78-bbaa-1182930e69c7"}) + .description("O") + .event("external-transaction") + .priority(4306) + .endsAt("2025-12-19T02:18:01.000000Z") + .startsAt("2024-04-09T15:03:42.000000Z") + .name("LJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpE"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1952,16 +2058,16 @@ void test32() throws ConnectionError, ProcessingError { @Test void test33() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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") + .blacklistedShopIds(new String[]{"0e8820ec-9b1e-4cae-9d71-793f39a5ea7d","19f73ef8-684a-43cb-9f12-e9095a668367","520e7ece-0ef9-463e-804f-7d4d531e2bff","cd6471e5-5758-4d98-93bd-34b2cd40881c","1a230af2-edd5-4d3a-9def-f786595c1980","74c10260-9c81-4580-834a-c535fd7c39df","05e0819d-4669-4e93-88c8-38088ea4f9f1","4f2bd2a2-c76f-4ef2-870f-a6c9f602e714","71896eaf-c573-45f7-938a-f1ab4ac8af15","b8f6d898-720b-4709-90e3-6c5e95e0b00a"}) + .status("enabled") + .description("cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWS") .event("payment") - .priority(374) - .endsAt("2022-11-05T16:15:07.000000Z") - .startsAt("2024-08-06T07:29:13.000000Z") - .name("Sa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1"); + .priority(4745) + .endsAt("2022-09-22T06:36:19.000000Z") + .startsAt("2023-08-25T15:47:29.000000Z") + .name("wFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3h"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1976,17 +2082,17 @@ void test33() throws ConnectionError, ProcessingError { @Test void test34() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"3a947575-0cf6-43fe-9766-c05e49a3b9b9","b1aa5349-1053-472d-935a-f813cea6fb12"}) + .pointExpiresAt("2020-07-10T02:06:41.000000Z") .status("disabled") - .description("aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpS") - .event("payment") - .priority(4689) - .endsAt("2023-05-25T06:25:42.000000Z") - .startsAt("2023-09-05T23:10:15.000000Z") - .name("Lu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7Oo"); + .description("5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE") + .event("topup") + .priority(759) + .endsAt("2024-02-12T09:25:37.000000Z") + .startsAt("2023-03-22T16:00:09.000000Z") + .name("qy"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2001,18 +2107,18 @@ void test34() throws ConnectionError, ProcessingError { @Test void test35() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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") - .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"); + .blacklistedShopIds(new String[]{"542dea65-c9ab-4bd0-84b9-b1fe1bbde8b5","41ca8a93-a757-4546-a427-d073f6b2f2f2","667abb44-dbd4-475a-8b73-fcd4a12c11a6","d372ca5c-78c8-4f61-8c4d-c17be3f8d6a7","c9de66c1-ddfb-4282-b8bb-94824b304c2c","d8ebb2b4-e0a8-4bdf-8ff8-7811d74b095d","dee13268-cda8-4285-a3fd-b24a0c27692a"}) + .pointExpiresInDays(412) + .pointExpiresAt("2020-04-22T17:48:29.000000Z") + .status("enabled") + .description("Nb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndS") + .event("payment") + .priority(2183) + .endsAt("2021-01-06T05:24:31.000000Z") + .startsAt("2021-06-02T14:45:49.000000Z") + .name("ijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5E"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2027,19 +2133,19 @@ void test35() throws ConnectionError, ProcessingError { @Test void test36() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .blacklistedShopIds(new String[]{"ac893094-547e-4b36-8184-1c8b91f3c8ed"}) - .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"); + .blacklistedShopIds(new String[]{"10526847-0c2e-46f4-9d1c-41d306a69d0b","12e12992-23fb-417e-b143-8a103d5ae2d2","53c8a147-bc09-4238-88d4-59cf39c4bce6","7a2e45a6-7d5f-4b56-aef6-5870eab7eafc","4cfeb285-2598-4e33-b1c7-965889a7c8ff"}) + .setExclusive(true) + .pointExpiresInDays(8647) + .pointExpiresAt("2021-02-26T23:48:18.000000Z") + .status("disabled") + .description("PHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFu") + .event("payment") + .priority(8648) + .endsAt("2025-01-22T22:20:23.000000Z") + .startsAt("2022-01-11T22:15:31.000000Z") + .name("fSCeHqDX4OovF1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0kXmsTMdugDsmRtGnF7L4kFCW"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2054,20 +2160,20 @@ void test36() throws ConnectionError, ProcessingError { @Test void test37() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .blacklistedShopIds(new String[]{"8a0367ee-3e46-4264-a357-3768b1925904","a361c0d3-0f64-4a3c-9197-9b7cbc7bb824","8c379061-034a-4c5e-a6ca-fbb64fa7f90a"}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(305) - .pointExpiresAt("2024-01-06T22:44:45.000000Z") - .status("disabled") - .description("2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67y") + .blacklistedShopIds(new String[]{"3df79f19-6d8f-48f2-a29a-7b5bca6b5e5f","dbf32b46-6516-49f1-b4df-43a79a3f33b2","9aee2eb7-2d7c-4a2f-a332-ee47d6fc1b48","17e35f20-c801-4828-8fe3-0649cab93103","ad7ff8f9-c212-4209-8a83-c13e70b64ee1","a620c2f9-aec0-47c4-9504-bd940ff8d932"}) + .subject("all") + .setExclusive(false) + .pointExpiresInDays(9707) + .pointExpiresAt("2024-04-29T16:18:22.000000Z") + .status("enabled") + .description("NBWyTy0") .event("topup") - .priority(8998) - .endsAt("2020-03-20T09:11:34.000000Z") - .startsAt("2022-05-14T10:09:49.000000Z") - .name("xWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9Tez"); + .priority(5392) + .endsAt("2022-10-19T04:34:39.000000Z") + .startsAt("2024-01-08T16:57:43.000000Z") + .name("C6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsMYGbxz"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2091,32 +2197,22 @@ void test38() throws ConnectionError, ProcessingError { 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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}) - .subject("all") + .blacklistedShopIds(new String[]{"9dbd1e5f-2ec9-4093-8556-86b282da9772","fb85dcb2-724a-4a16-bff4-bc0ff03e6344","bcdb5245-22aa-403b-a0c7-66249860c9be","af5a2678-31e7-42fa-a78c-d0d8a80804ad","14031e93-9528-402d-875b-1e7bf449a0b9"}) + .amountBasedPointRules(new Object[]{items,items2}) + .subject("money") .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(6961) + .pointExpiresAt("2021-09-26T04:33:34.000000Z") + .status("disabled") + .description("qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhP") + .event("topup") + .priority(6076) + .endsAt("2025-02-10T09:57:17.000000Z") + .startsAt("2020-06-28T10:07:42.000000Z") + .name("ziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0XdBqvz2LZqSb1Cr9GvJk1u6JVnb04lQy4ktenk93ttYPJhO"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2151,73 +2247,25 @@ void test39() throws ConnectionError, ProcessingError { 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); + items4.addProperty("subject_more_than_or_equal", 1000); + items4.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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}) - .subject("all") - .setExclusive(false) - .pointExpiresInDays(9256) - .pointExpiresAt("2021-07-22T23:55:17.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"); + .blacklistedShopIds(new String[]{"4b3e8250-af83-4ec3-99e8-beee2e812a78","617f8f26-c169-457c-b4af-3cfdecb6653b","cf22cede-0150-455c-8a2a-26de17e12468","dcf14df4-b390-4365-905a-8c3917e2eef6","db056334-b908-4794-ac97-33ecaf88c8d9","7dee4f87-1b49-41c6-aa72-d37f6c5e5ad9","f4eae660-7670-4985-9222-ffeeb39a0a07","29bf86bb-2c56-4d0a-a31c-b1ab4236d88c","4eb2a397-b0db-4c04-b3b5-97a628ce9499","51b1fcbe-b7f0-4d18-882f-f703955ac69b"}) + .productBasedPointRules(new Object[]{items,items2,items3}) + .amountBasedPointRules(new Object[]{items4}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(4044) + .pointExpiresAt("2023-11-07T05:53:14.000000Z") + .status("enabled") + .description("EJk") + .event("topup") + .priority(7278) + .endsAt("2023-01-05T23:00:44.000000Z") + .startsAt("2022-04-18T12:38:37.000000Z") + .name("lr99tmpLoTFQeHIPsIBBDhi4oQ1t1s3zE3"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2244,11 +2292,8 @@ void test40() throws ConnectionError, ProcessingError { items4.addProperty("product_code", "4912345678904"); 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"); @@ -2309,39 +2354,24 @@ void test40() throws ConnectionError, ProcessingError { 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 UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .blacklistedShopIds(new String[]{"07c18bf7-1f95-4599-8cd2-514096c6a170","883e9605-608c-432d-95f9-89894d5ab15d","572a729f-3792-4b66-a81b-2876be285653","2e4a82bd-de3b-449e-a270-8692c0591e99"}) - .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}) + .blacklistedShopIds(new String[]{"9207be8a-861b-4b8e-81d6-1aeb0c61c006","37601db2-9797-4f01-b443-13659e9e5f65","d0d95fee-f831-48ce-93ea-0c81af366679"}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5}) + .productBasedPointRules(new Object[]{items6,items7,items8,items9,items10}) + .amountBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16}) .subject("all") .setExclusive(false) - .pointExpiresInDays(3319) - .pointExpiresAt("2020-04-16T07:10:54.000000Z") + .pointExpiresInDays(8063) + .pointExpiresAt("2024-04-13T03:48:42.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"); + .description("byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWP") + .event("external-transaction") + .priority(9340) + .endsAt("2024-07-17T09:27:15.000000Z") + .startsAt("2023-12-20T12:52:04.000000Z") + .name("4xBM1tMMoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR3LjzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf7XzEp3cMOeo"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2365,14 +2395,23 @@ void test41() 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("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("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); @@ -2382,27 +2421,68 @@ void test41() 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("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("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( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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}) + .blacklistedShopIds(new String[]{"f4940f49-cc74-4ee2-9f0f-a7942f1fbe16","ac2922bf-f6ca-491a-8c41-78f05fe0b84e"}) + .applicableDaysOfWeek(new Integer[]{3,6}) + .blacklistedProductRules(new Object[]{items,items2,items3}) + .productBasedPointRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11,items12,items13}) + .amountBasedPointRules(new Object[]{items14,items15}) .subject("all") .setExclusive(false) - .pointExpiresInDays(5093) - .pointExpiresAt("2021-04-20T22:14:33.000000Z") + .pointExpiresInDays(5318) + .pointExpiresAt("2024-06-10T15:01:31.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"); + .description("vNBsiLTmRsG1pcvz") + .event("topup") + .priority(4363) + .endsAt("2023-01-30T03:50:24.000000Z") + .startsAt("2020-12-22T08:56:31.000000Z") + .name("NlMjgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2423,14 +2503,14 @@ void test42() 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("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"); @@ -2444,17 +2524,11 @@ 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"); 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"); @@ -2470,23 +2544,27 @@ void test42() 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"); - 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"); @@ -2502,31 +2580,26 @@ void test42() 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"7c4c4611-fb0e-4b96-bcd5-432deae4469b"}) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{4,4,6,1,4,3,3,0,0}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8,items9,items10,items11}) + .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17}) + .amountBasedPointRules(new Object[]{items18,items19,items20}) .subject("all") - .setExclusive(true) - .pointExpiresInDays(2895) - .pointExpiresAt("2023-06-22T20:29:05.000000Z") + .setExclusive(false) + .pointExpiresInDays(2213) + .pointExpiresAt("2025-02-16T19:30:56.000000Z") .status("enabled") - .description("Kg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4") - .event("topup") - .priority(1391) - .endsAt("2021-02-08T05:24:06.000000Z") - .startsAt("2020-02-28T23:46:04.000000Z") - .name("F1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW6"); + .description("1c5EcN6nLJcb0NEcuMnzKSDb") + .event("payment") + .priority(7882) + .endsAt("2023-10-09T14:12:20.000000Z") + .startsAt("2020-05-30T05:04:19.000000Z") + .name("KRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo5GvBiHKw3I5f57jF"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2577,11 +2650,17 @@ void test43() 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("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"); @@ -2597,72 +2676,39 @@ void test43() 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); - 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); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .blacklistedShopIds(new String[]{"15aaff14-cd8d-4936-90b3-b8c99b619a2c"}) - .minimumNumberOfProducts(6205) + .blacklistedShopIds(new String[]{"b9a05318-5bfe-4145-a334-c1bb101a2511","922b1e35-9f3e-4b81-807b-bee432f1e7b3","75d0261b-fcd0-4398-b231-96d00d83cdfa"}) + .minimumNumberOfProducts(3872) .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}) - .subject("money") + .applicableDaysOfWeek(new Integer[]{2,6,2,2,2,6,4,4,3}) + .blacklistedProductRules(new Object[]{items10,items11,items12}) + .productBasedPointRules(new Object[]{items13,items14,items15,items16}) + .amountBasedPointRules(new Object[]{items17,items18,items19}) + .subject("all") .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"); + .pointExpiresInDays(8753) + .pointExpiresAt("2023-01-03T20:15:08.000000Z") + .status("disabled") + .description("dNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS5mnHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vao") + .event("external-transaction") + .priority(8043) + .endsAt("2021-12-24T03:54:38.000000Z") + .startsAt("2024-06-09T23:32:40.000000Z") + .name("OQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxVOS8aVOpiS1EeKe2EnvF9kW30yXFj5pEZQNOtIwcrR2Tap7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsj"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2683,11 +2729,11 @@ 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"); @@ -2707,11 +2753,17 @@ void test44() 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("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"); @@ -2727,15 +2779,13 @@ void test44() throws ConnectionError, ProcessingError { 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); + 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"); @@ -2756,33 +2806,28 @@ void test44() 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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") - .event("topup") - .priority(1700) - .endsAt("2021-02-26T00:46:07.000000Z") - .startsAt("2023-01-21T04:06:34.000000Z") - .name("IKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5Xg"); + .blacklistedShopIds(new String[]{"d24346fa-292d-4389-849c-48425b58f6fe","b83a798e-4b33-4ad9-a5d0-9fb3ded1a9f7","c6382130-c222-44b2-936a-aaaffdcb824d","ff513f8f-c14e-4ba6-b670-7ab0211cabc5","363171b7-3632-4371-97a1-33de1a94ea7d","5a7cb39c-ac01-43f4-bdcf-a0bdca5af52a"}) + .minimumNumberOfAmount(5228) + .minimumNumberOfProducts(6551) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{0,3,3,1,5,3,6,6,2,2}) + .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17,items18,items19,items20}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(9077) + .pointExpiresAt("2020-02-23T16:03:18.000000Z") + .status("disabled") + .description("37VMAkI2ylOPtFPfUfw5cNQlmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFrJK4NHPvl4VhqO") + .event("external-transaction") + .priority(1425) + .endsAt("2023-03-18T07:08:20.000000Z") + .startsAt("2021-02-10T23:51:13.000000Z") + .name("KHcIOPhbvogj2mEAT9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbRE9tWUhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGSkB9sMClBaFjZtZBNIprWMfHv0Adc0Cr3QSzeJKZKHWOYDy"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2815,8 +2860,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,23 +2869,14 @@ 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"); @@ -2868,43 +2904,41 @@ void test45() 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("subject_more_than_or_equal", 1000); items19.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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}) - .subject("all") + .blacklistedShopIds(new String[]{"bf19fed8-612e-4761-b16e-dd17247064e1","21f4204c-c362-47f0-ba90-d405962bc6b7","4de13179-8a0f-41ef-836b-931d9d0fb3d5","1655440c-19c3-40eb-89cc-d40894013bc8","7b654fc4-823f-42a3-8a6a-1a40b00aeac7","227f2d3d-3f5f-4332-bbdd-c669fb9ed763","668e3d1d-08ef-4d16-a5c0-c7227a412c53","4fd81b80-43ef-45c6-9b04-a4d70b1231ce","7872ba42-5d83-4707-8678-968a52cf217a"}) + .minimumNumberForCombinationPurchase(4454) + .minimumNumberOfAmount(2202) + .minimumNumberOfProducts(7774) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{2,0,4,4,3,5,2,5,6,1}) + .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12}) + .productBasedPointRules(new Object[]{items13,items14,items15,items16}) + .amountBasedPointRules(new Object[]{items17,items18,items19}) + .subject("money") .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(585) + .pointExpiresAt("2021-02-01T16:22:50.000000Z") + .status("disabled") + .description("NvkLrHlN") + .event("topup") + .priority(827) + .endsAt("2024-08-11T08:38:00.000000Z") + .startsAt("2025-01-13T17:08:53.000000Z") + .name("Pf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZir"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2943,8 +2977,8 @@ void test46() throws ConnectionError, ProcessingError { items8.addProperty("from", "12:00"); items8.addProperty("to", "23:59"); 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"); @@ -2969,42 +3003,50 @@ void test46() 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"); - 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); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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}) + .blacklistedShopIds(new String[]{"e90418cb-c894-474b-9089-978e4fb1f410"}) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(3674) + .minimumNumberOfAmount(915) + .minimumNumberOfProducts(196) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .applicableDaysOfWeek(new Integer[]{1,3,0,5,2,1,6,6,1,3}) + .blacklistedProductRules(new Object[]{items9,items10}) + .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16}) + .amountBasedPointRules(new Object[]{items17}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(2588) - .pointExpiresAt("2020-10-14T16:45:05.000000Z") + .setExclusive(false) + .pointExpiresInDays(4599) + .pointExpiresAt("2020-11-14T17:26:56.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"); + .description("mHcE3kg67Mp0CzjOzftNuETzfXo") + .event("external-transaction") + .priority(3727) + .endsAt("2020-03-14T12:41:41.000000Z") + .startsAt("2023-10-21T08:38:31.000000Z") + .name("mfKJhNI2H30SlKK1O1UKOiryeoJ2KHqioForPYYFDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVupSap8p4f5efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3034,104 +3076,74 @@ void test47() 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"); - 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"); - 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("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); + 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("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); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"af0f2b3a-3dd7-4c11-b16e-1efe8a6bcfde","99801040-cdde-462d-be76-54ee55a01f49","4eb6b9d3-8be0-42be-b094-1d9fe065a90d","2169ca7f-d63f-4430-ae72-ad9d87f77e2a","2d6a7487-9dcd-426e-bb85-4d51cfc6670c","3c19ec9e-1fce-42c6-9fd2-de59734a91df","9ea6243e-49d9-4bf1-917e-acc216145632","0575f94c-470f-46ab-874f-777656113b76"}) + .maxPointAmount(761) .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}) + .minimumNumberForCombinationPurchase(3201) + .minimumNumberOfAmount(1042) + .minimumNumberOfProducts(2136) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) + .applicableDaysOfWeek(new Integer[]{4,5,6,5,2,1}) + .blacklistedProductRules(new Object[]{items6,items7,items8,items9,items10,items11}) + .productBasedPointRules(new Object[]{items12}) + .amountBasedPointRules(new Object[]{items13,items14,items15,items16}) .subject("money") - .setExclusive(false) - .pointExpiresInDays(9941) - .pointExpiresAt("2024-01-26T17:16:23.000000Z") + .setExclusive(true) + .pointExpiresInDays(4417) + .pointExpiresAt("2023-04-08T23:20:35.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"); + .description("yr23XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqc") + .event("payment") + .priority(7765) + .endsAt("2020-11-15T11:06:10.000000Z") + .startsAt("2025-06-18T09:53:38.000000Z") + .name("v4rpZxW6C1o0zvPKHwlN5cgpKhTDjrt62aO0gTJKvsFX8pCgUNdYXQChONhwWGHDaQRstzyfCMC6r4ZI5zg9bDUlUJBBIg9Fd6Y7e4aTjbZiLOaWRsEnzqZ6lGrz0tQnP1Co4x4AXMvzQhY1JlrHqbdULcyqcFghqKIiyi3aAuGXWsNdhyWJyqrPAKmmZGZJNC4j2awHXlJF9A7c"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3149,41 +3161,38 @@ void test48() 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"); + 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"); 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"); @@ -3199,100 +3208,44 @@ void test48() throws ConnectionError, ProcessingError { 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); + 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); - 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); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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) + .blacklistedShopIds(new String[]{"d997711c-5418-423f-a228-22099033660e","dcc33db6-f48b-459d-bec1-572f54a34d78","6c0823a9-f2e6-4f86-8355-d515c36f23b8","de357f97-4612-4bc8-89fe-c0cfe95e6436","a1dcd085-25ff-4c4c-8f10-bbb583177ac4","cdc8e564-1835-402f-8358-c48c14ce78ab"}) + .maxTotalPointAmount(145) + .maxPointAmount(1161) .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") + .minimumNumberForCombinationPurchase(1807) + .minimumNumberOfAmount(901) + .minimumNumberOfProducts(2529) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{6,5,4,0,3,3,1,1}) + .blacklistedProductRules(new Object[]{items11,items12}) + .productBasedPointRules(new Object[]{items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(7963) + .pointExpiresAt("2025-01-01T08:46:39.000000Z") .status("disabled") - .description("pEZQNOtI") - .event("topup") - .priority(1159) - .endsAt("2020-02-14T18:41:22.000000Z") - .startsAt("2023-02-14T00:23:45.000000Z") - .name("p7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN"); + .description("CpelXPpOt9Y3msxtcs0WRQEq2AUltkkF5RV8aSNO9GQnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728Rkv") + .event("external-transaction") + .priority(3279) + .endsAt("2025-02-13T14:38:13.000000Z") + .startsAt("2020-12-15T19:54:10.000000Z") + .name("GA0kjIj9fnBbIK8dSJpAN6wIXIQbTWkewXW1RgDvxeuhtqc0lVuVevBpKZFsUJPsCckORoCtdXbeAqJmttYcSXDoCgwypQnQUsnWOKMZ3rJ8aRGwz6VDq2kLV7UR9Ys1BTbKj9QeMGWU46l1ev23Q5PTPgtt4yAIzCwP1Z0JVfF9RSrf0Q1pmhWHNJvae7EjBkQNn9uWl9JunPyftwg9sZ6EOXmzMsMVDhbz"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3328,8 +3281,8 @@ void test49() 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("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); @@ -3340,121 +3293,84 @@ void test49() 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("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); 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("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + 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("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("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); - 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); + 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); + 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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"}) + .blacklistedShopIds(new String[]{"2a5ef63e-43e6-40c6-b6d5-47ec00ea517d","1baeed33-58ac-40d5-b4dd-b7cbdbcd3264","7333394e-81bb-45db-9088-0f927cd537b5","c2fbeaa8-8154-4bcc-961d-341ea21fb910","40f3df00-4768-47e2-a8bf-58ecee50cb5b","e61326c0-ee3d-4d6c-9d01-36b0b87287c7","7226a1d0-0e9c-4834-91a9-19415d0d79eb","6f91130a-37d1-4bbd-a54f-fc2f13cff9a8"}) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(3855) - .maxPointAmount(5034) + .maxTotalPointAmount(800) + .maxPointAmount(6993) .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(4083) + .minimumNumberOfAmount(3483) + .minimumNumberOfProducts(9154) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) + .applicableDaysOfWeek(new Integer[]{0,4,1,0,5,0,5,2,3}) + .blacklistedProductRules(new Object[]{items7,items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12}) + .amountBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19,items20}) .subject("all") - .setExclusive(true) - .pointExpiresInDays(2977) - .pointExpiresAt("2020-03-03T08:35:28.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"); + .setExclusive(false) + .pointExpiresInDays(4875) + .pointExpiresAt("2025-02-21T07:22:45.000000Z") + .status("enabled") + .description("uJCfBO4W1IV2UViZVHRWPkdj3cWX27LHxVCRXJ7RR9vhNIu31vkGd5KFMjSHWQRA9E535lViSyzzCHjVEEg0SpYDFFDY1quxNkSS1vmCLOUldc17zrM7imjJVYnMFmZVKbnQskJ4SJWYdnxMjsH9rlpcWw1Vg") + .event("topup") + .priority(6581) + .endsAt("2020-12-27T15:49:29.000000Z") + .startsAt("2023-12-31T21:14:27.000000Z") + .name("IY5TVDn7VAyGhf1a2i4Xb006Y5FN9bW9vksFBm8sMwbh1WFtpEmCrFqNwdLZ15QmFMvlNaa2goLZ5E9OEvOUIiBwbJ5GuqfgOe9nVnbOf1m"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3487,41 +3403,23 @@ void test50() throws ConnectionError, ProcessingError { items4.addProperty("product_code", "4912345678904"); 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("product_code", "4912345678904"); - items9.addProperty("is_multiply_by_count", true); - items9.addProperty("required_count", 2); + 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"); @@ -3543,61 +3441,106 @@ 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"); - 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); + 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); + 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); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"6b53a993-21e5-41d8-9fe2-ea3b034148a9","750e47cd-544b-4167-8a6d-96e9ae2e6c53","83cf0b32-80ec-414e-bdc3-06ea05f6b6b0","1c63be63-c25d-4f1d-aaef-27097d1cb9d4"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(906) - .maxPointAmount(3467) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(3119) - .minimumNumberOfAmount(872) - .minimumNumberOfProducts(1504) + .maxTotalPointAmount(999) + .maxPointAmount(4039) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(6596) + .minimumNumberOfAmount(8164) + .minimumNumberOfProducts(6377) .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}) - .subject("all") + .applicableDaysOfWeek(new Integer[]{1,5}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18}) + .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25,items26,items27}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(4508) - .pointExpiresAt("2021-04-28T08:51:45.000000Z") + .pointExpiresInDays(4220) + .pointExpiresAt("2024-01-24T21:57:37.000000Z") .status("enabled") - .description("T9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbR") - .event("payment") - .priority(5945) - .endsAt("2022-04-28T11:37:24.000000Z") - .startsAt("2024-05-22T20:52:59.000000Z") - .name("UhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGS"); + .description("bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8UioFkI4pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L6y5R4kNHRMXQTzW1iBiUI5JGbGoEyKdo0WvNvuZ2zOymd6") + .event("topup") + .priority(6785) + .endsAt("2021-01-02T04:08:01.000000Z") + .startsAt("2023-07-26T03:57:08.000000Z") + .name("UzJ163lry8"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3621,14 +3564,14 @@ 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"); @@ -3653,52 +3596,130 @@ void test51() 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"); + 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); + 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" + "e547aced-7199-4ed8-b0e3-8be329103dc1" ) - .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[]{"e3ce41ff-6534-4b2a-b298-edc4fda03ef4","bdc9aa11-8f2b-4994-944a-d5ce4085873f","e2dbf0fa-66fc-4895-a345-c3465577b31d","8abcc864-5df2-400f-b6ef-f2968c5ac117"}) + .budgetCapsAmount(74089251) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(3267) - .maxPointAmount(6431) - .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") + .maxTotalPointAmount(7093) + .maxPointAmount(6333) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(3763) + .minimumNumberOfAmount(1482) + .minimumNumberOfProducts(8230) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{5,2,5,1,5,6}) + .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9}) + .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18}) + .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25,items26,items27,items28}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(6007) - .pointExpiresAt("2023-02-06T09:56:17.000000Z") - .status("enabled") - .description("0Cr3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXon") + .pointExpiresInDays(3937) + .pointExpiresAt("2022-10-09T16:16:22.000000Z") + .status("disabled") + .description("ugVBfTif3qpXYgZnZ3LJOu3iwipHdsS3ShjnA4Sr1g") .event("topup") - .priority(3727) - .endsAt("2020-03-14T12:41:41.000000Z") - .startsAt("2023-10-21T08:38:31.000000Z") - .name("mfKJhNI2H30SlKK1O1UKOiryeoJ2KHqioForPYYFDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVupSap8p4f5efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3"); + .priority(8601) + .endsAt("2025-03-23T02:18:03.000000Z") + .startsAt("2021-09-30T09:28:18.000000Z") + .name("PelpywqnkqJGFUWWcs7OK2a7LaTGiSi2nVCa3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsFLw1OF89AbrhaWMPvJ4w9BbWGLWxTOnqHU20ukx1FDQpVqtvlq3pwtYNpqFJFhJ6HuYWn"); 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 6192533..27d0470 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" + "19422e6c-a3c2-496f-b790-1ce9574d465c" ); 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" + "19422e6c-a3c2-496f-b790-1ce9574d465c" ) - .expiresIn(2373); + .expiresIn(2126); 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" + "19422e6c-a3c2-496f-b790-1ce9574d465c" ) - .description("hID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8WbkxbWTp66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6GGJ1GXo5UPiFJuScrEGcY5") - .expiresIn(6071); + .description("slQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79qoFTViWGk7rsKgu2ihoMxDsfU3TC1A8fV5nkzyaMo6HNFjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYa") + .expiresIn(3798); 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" + "19422e6c-a3c2-496f-b790-1ce9574d465c" ) - .amount(6557.0) - .description("YJqEcansSsP2ceIvKP9bgYanQbVQM9Z6RG0kCsPdzwEr5mXGzuLW3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhr") - .expiresIn(9919); + .amount(511.0) + .description("S4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrx") + .expiresIn(3819); 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 c7bf6f8..41765f2 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" + "8582b704-7449-4e4f-99ec-337df2987d51" ); 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" + "8582b704-7449-4e4f-99ec-337df2987d51" ) .setDisabled(true); try { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "8582b704-7449-4e4f-99ec-337df2987d51" ) - .bearPointAccount("0ef62065-a6e8-4745-b01e-b4465ebf2893") - .setDisabled(false); + .bearPointAccount("55635aaf-7db3-4518-9a43-7461556da738") + .setDisabled(true); 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 UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "8582b704-7449-4e4f-99ec-337df2987d51" ) - .pointExpiresInDays(8115) - .bearPointAccount("50b4b7e4-86c0-4731-a6c0-d000e06e77f3") - .setDisabled(false); + .pointExpiresInDays(9568) + .bearPointAccount("6565865a-107d-496d-8894-934d94358754") + .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" + "8582b704-7449-4e4f-99ec-337df2987d51" ) - .pointExpiresAt("2022-09-17T04:14:34.000000Z") - .pointExpiresInDays(6114) - .bearPointAccount("120cd1dc-82f1-40db-b4e3-d8738f704eaf") - .setDisabled(true); + .pointExpiresAt("2022-07-27T16:17:57.000000Z") + .pointExpiresInDays(6594) + .bearPointAccount("80337edb-1d8f-4546-965e-f8dcc442e441") + .setDisabled(false); 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 UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "8582b704-7449-4e4f-99ec-337df2987d51" ) - .expiresAt("2021-12-26T07:08:50.000000Z") - .pointExpiresAt("2020-04-20T21:24:42.000000Z") - .pointExpiresInDays(9361) - .bearPointAccount("add2afb3-924a-4e3f-b238-e78e930de5f8") + .expiresAt("2020-04-02T03:21:33.000000Z") + .pointExpiresAt("2022-07-01T16:03:21.000000Z") + .pointExpiresInDays(4509) + .bearPointAccount("00308720-a965-48ad-83ce-3e8a156a7d88") .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -123,13 +123,13 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "8582b704-7449-4e4f-99ec-337df2987d51" ) - .usageLimit(5850) - .expiresAt("2022-09-20T22:54:41.000000Z") - .pointExpiresAt("2022-06-21T06:26:38.000000Z") - .pointExpiresInDays(9091) - .bearPointAccount("e6b60915-66a2-463e-b156-c43425c0e7bf") + .usageLimit(7247) + .expiresAt("2024-09-20T23:34:18.000000Z") + .pointExpiresAt("2022-03-11T06:11:14.000000Z") + .pointExpiresInDays(4207) + .bearPointAccount("c699da52-48c3-4888-a3e2-59cc3842b0cf") .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "8582b704-7449-4e4f-99ec-337df2987d51" ) .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(4941) + .expiresAt("2024-12-24T19:38:54.000000Z") + .pointExpiresAt("2021-05-12T14:03:42.000000Z") + .pointExpiresInDays(6709) + .bearPointAccount("dcab8474-6c03-4cad-a76a-bf096ff41614") + .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" + "8582b704-7449-4e4f-99ec-337df2987d51" ) - .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") + .description("xBAROpiRc0j39oPNkDTFwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4uwaN6FqKGuMQEbIhSK") + .setOnetime(true) + .usageLimit(36) + .expiresAt("2022-05-20T20:44:08.000000Z") + .pointExpiresAt("2022-01-23T18:23:26.000000Z") + .pointExpiresInDays(5773) + .bearPointAccount("d7f842e3-8aca-49a6-843b-7c04a5b0a741") .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" + "8582b704-7449-4e4f-99ec-337df2987d51" ) - .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") + .pointAmount(221.0) + .description("0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC5") + .setOnetime(false) + .usageLimit(1057) + .expiresAt("2025-03-22T04:35:41.000000Z") + .pointExpiresAt("2025-02-01T21:58:18.000000Z") + .pointExpiresInDays(3649) + .bearPointAccount("591280a7-f0a7-40d5-b028-aa35a4710bd6") .setDisabled(true); try { PartnerAPITest.getClient().send(request); @@ -217,17 +217,17 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "8582b704-7449-4e4f-99ec-337df2987d51" ) - .moneyAmount(9425.0) - .pointAmount(1504.0) - .description("n6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqy") - .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") + .moneyAmount(7176.0) + .pointAmount(3177.0) + .description("AQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3xaXPio5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeu") + .setOnetime(false) + .usageLimit(3852) + .expiresAt("2025-09-20T23:24:33.000000Z") + .pointExpiresAt("2022-02-21T08:09:26.000000Z") + .pointExpiresInDays(720) + .bearPointAccount("a503d874-d430-4934-9da8-bd9696e081ca") .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 dd40801..5216a3a 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(8569); + .discountAmount(6643); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(6935) - .name("8UduAdQ5IH0TK2HSa"); + .discountAmount(4909) + .name("UMLq2pynj2i9JShHMs7dpHbhmzmDvsuxdQFF1b9FFVSxNRhY3CeG383Fyff0GW"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(8052) - .description("A6ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvII6xukRoB486IcnSrXwZGPsDFfbhpjo") - .name("CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FA"); + .discountAmount(9973) + .description("JQM5UqG40T5H1YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6dE59eFWe4PxHJhHM6PRObQxj3f4w8El4HGgfInUuZUZacdXJKlldoDuv9TA2XHRXocL0a2ENjq4YdkJGWgFmKTEIA1MAf2HgecIl74FyRST7ScfdaiXI0aphnQpmaEH46JpxMwBWB66twUXazpjqxEREjqmyqJkEdfkYviMgBpZAYBbcv") + .name("ZzaI37qk5Qpl5Gz36NQavWZXSE0IrKdpz0FXntwLwsP6PlvtKfS7zk6Hoi0oeAT0NWEwBSET0oVnBy6crZK"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(8042) - .discountUpperLimit(1963) - .description("tbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEEKedrMwdHukpCicHBj64f1DT6D6") - .name("Mien3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4S"); + .discountAmount(8686) + .discountUpperLimit(2563) + .description("tNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB304Jmf05hgJ0rNiPO7Acqsb1X8oQj9wf9SU4WjLK1VT02GEDF") + .name("loz09QK5UFuC5JXRVayFf6oyQZu56A1wWzKTTxm1"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(6201) - .startsAt("2024-05-22T11:46:17.000000Z") - .discountUpperLimit(7049) - .description("Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouPF8sEd3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4Lx") - .name("Yp1VFXi65IWH287FkS1AdoZmrqVFQp8fp9IpDGNT32XXjSeAsfsowmrnytFnDNPErJC0T6j8TSBN1GRIxfJ3UGUUM2jHDzbRjTfUU5d5AtO"); + .discountAmount(6548) + .startsAt("2020-02-12T00:52:50.000000Z") + .discountUpperLimit(8831) + .description("rwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6c") + .name("EGDQNsufaSx2VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQ"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(2829) - .endsAt("2021-12-12T09:02:22.000000Z") - .startsAt("2023-03-24T23:29:09.000000Z") - .discountUpperLimit(8481) - .description("L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNR") - .name("sJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1TG2yJEOhnrWkQVh8G8vXFKeuF0FhTncNlMmgEuaHAH"); + .discountAmount(3872) + .endsAt("2024-04-05T16:04:57.000000Z") + .startsAt("2024-06-07T21:40:41.000000Z") + .discountUpperLimit(5012) + .description("dD") + .name("UkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8B2QPQ9Y2Rpsj0heI1pcWBx1T31cQtfbPCATbfETgM8KooCtS8z1fc4"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(3810) + .displayStartsAt("2024-04-17T09:42:53.000000Z") + .endsAt("2025-07-08T06:52:01.000000Z") + .startsAt("2021-12-05T11:07:28.000000Z") + .discountUpperLimit(106) + .description("KCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9z2bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72QaNrZpzYfcTDxwidoKxhgH4IlA44068") + .name("ievlutMBS788il7UEqSzLy9xJxJq4hHbOAXXYVgVjKzFhmxuYV64qe5o2B2OlLXdk"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(9533) + .displayEndsAt("2020-09-01T08:38:57.000000Z") + .displayStartsAt("2025-05-18T05:26:30.000000Z") + .endsAt("2022-06-27T23:02:29.000000Z") + .startsAt("2022-06-06T09:48:50.000000Z") + .discountUpperLimit(970) + .description("uw4YuJbyUdwtweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424DF7dkePprAJuqXJLC9DlGjqYc53kHtf9cD7bpNKlO") + .name("IqFEpEzlkbZXsHeK96R7zZjofXop8q4Bfps6VchHwOSBaSPaNKxM4bPYPan8UYIRAISeS032nbwP9uwXrTBWthKP8SFB1epaCsenfTVlWMFnuM"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(8580) + .discountAmount(3815) .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("2023-09-09T21:22:04.000000Z") + .displayStartsAt("2024-10-21T12:46:52.000000Z") + .endsAt("2024-10-04T15:39:53.000000Z") + .startsAt("2023-01-28T06:07:49.000000Z") + .discountUpperLimit(4831) + .description("Z1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2MaByNhkorzLzXS7sax7iYOPlAj5UlMDxo6iDarlMDzJC7wMAkFYNemkzZpvDvog0lglLv2T90aOF7qLZJG6mWFW8mYG8iBpA9wK7FerKmMDJDN9kjnEAtWkM10yTZC3mt5NbCfjtxFXhJHyZxe38yvM") + .name("SEczLfO3bcMSuKdq3FslGbkHo1PhxbbT2umORVj1yDfkPqeu7V"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(8570) - .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"); + .discountAmount(1311) + .setHidden(false) + .setDisabled(true) + .displayEndsAt("2020-10-03T10:10:38.000000Z") + .displayStartsAt("2025-07-18T17:21:42.000000Z") + .endsAt("2022-04-07T08:39:35.000000Z") + .startsAt("2022-05-17T19:09:46.000000Z") + .discountUpperLimit(519) + .description("hCxzDjEPJsArCV0qEvJPpVoq77") + .name("PuYo1FVSdDE8cTf3i5qFGBC"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(9501) + .discountAmount(9032) .setPublic(false) .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"); + .displayEndsAt("2023-02-18T06:08:48.000000Z") + .displayStartsAt("2020-06-02T09:50:04.000000Z") + .endsAt("2024-07-31T18:49:28.000000Z") + .startsAt("2023-09-06T14:08:15.000000Z") + .discountUpperLimit(708) + .description("vwgaMAc0JPVvhl1tkrYQHQhhRs2PIaofbMQ1Wyxx6iPX8wNVpCNUyiEzApKM66ZkEOt") + .name("1oTpzcZyDOIWVwoFQcmGYbDKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigs"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(8392) + .code("Gq2ofRT") + .setPublic(false) + .setHidden(true) + .setDisabled(false) + .displayEndsAt("2021-08-12T16:07:53.000000Z") + .displayStartsAt("2025-05-03T04:48:53.000000Z") + .endsAt("2022-12-22T11:02:26.000000Z") + .startsAt("2024-08-05T07:57:27.000000Z") + .discountUpperLimit(9109) + .description("CjIyZIJEzXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwy") + .name("AtZsgSDOAS6m6W4ycEKeHr4636lRXTr2iPpZt0j1CI3l6J30qBjXV2f99mPOolq1eiW9RuNHXLsbYmrfHwiW6AehvKLu9jSykyDMxjQhXvqsNkUwp"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(8882) - .usageLimit(5765) - .code("bnV3FEVOMM") + .discountAmount(2564) + .usageLimit(8157) + .code("OJbMzTMi5") .setPublic(true) - .setHidden(true) + .setHidden(false) .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"); + .displayEndsAt("2021-09-21T17:12:49.000000Z") + .displayStartsAt("2025-06-16T06:16:36.000000Z") + .endsAt("2023-11-02T09:40:06.000000Z") + .startsAt("2023-05-28T06:45:30.000000Z") + .discountUpperLimit(8777) + .description("kEgkU1iGJo4Veu1nD62pEennAfXO8IbuWWi93UYOzWoEzm8A") + .name("AGl9yivXZBxfQ6TXMiAoASOIgsAFMRnA6RqJv3Yoi1HNQ6SUUxf"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(4539) - .minAmount(4628) - .usageLimit(8984) - .code("prAJuqXJL") + .discountAmount(4757) + .minAmount(510) + .usageLimit(6285) + .code("kFZrS") .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("2020-05-19T10:07:43.000000Z") + .displayStartsAt("2023-11-04T23:27:38.000000Z") + .endsAt("2022-02-02T14:56:52.000000Z") + .startsAt("2024-02-05T07:52:37.000000Z") + .discountUpperLimit(1154) + .description("906hjOODSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyx") + .name("z7D46SGfEdpD0URVkFLTmlxp8SI9cXescrmSD5nkp7THGlyH3t2HB4wHFbCGx0Xzqx2wtaKpu1qdmiKn22"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(8499) - .setShopSpecified(false) - .minAmount(179) - .usageLimit(4444) - .code("LMEPLj") + .discountAmount(11) + .setShopSpecified(true) + .minAmount(4239) + .usageLimit(7603) + .code("tIsx") .setPublic(false) - .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"); + .setHidden(false) + .setDisabled(true) + .displayEndsAt("2023-06-04T15:35:48.000000Z") + .displayStartsAt("2023-03-10T04:40:54.000000Z") + .endsAt("2023-08-31T17:43:57.000000Z") + .startsAt("2025-08-01T13:39:23.000000Z") + .discountUpperLimit(3634) + .description("W3iMjgCaf4v1F7zb24TvVYyzGoNYLIXxqonkMGqXlJpJRQwp9nn9cv0p2uygmHKqGnnOeMtFto3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwmdx9H0OP7RXsy9p5y2A7XdzXIF") + .name("XZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTK"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(1923) + .availableShopIds(new String[]{"933ca239-5fba-4f8a-a2e1-fa870b27d58e","8af6da7b-91be-4e41-98f0-c1879c4c2255","c6d974f2-3e8f-44ce-9714-9578167f3d51","e3ace867-494a-41a3-b6b2-20fdc964d064","691c1eb1-b7d2-44ab-aad2-574428d14f2e","c6620476-aaf8-43f8-8396-dc0d441a44ec","d205b5be-6b51-4846-a88d-854d8a9bf432","6bd6881c-ff24-492c-a504-506f81a34370","5c41e260-57ed-4c49-ac1f-b66db71dbb8c","b01a91f6-5fad-4c8f-b1fa-892d712515f1"}) .setShopSpecified(true) - .minAmount(9057) - .usageLimit(7685) - .code("OF7q") + .minAmount(7003) + .usageLimit(3237) + .code("nGOYb") .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"); + .setDisabled(false) + .displayEndsAt("2020-08-28T04:30:51.000000Z") + .displayStartsAt("2024-04-10T00:21:24.000000Z") + .endsAt("2025-10-12T14:21:53.000000Z") + .startsAt("2021-09-17T16:19:57.000000Z") + .discountUpperLimit(7714) + .description("qjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T5nZUMuDqspHuPmGiUoPteza9Foxx3GETJuunMNM7JUVu7YgDI0zSm63cU49za1QJALcpDZJ7YKoaGZqFQRMYj7eI0OiTgfPr68fP2A8RCqVj") + .name("MZulltZtjgMfuDxn3QgsidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(3835) + .storageId("5bab9704-1ca0-4032-890e-bdd6231e5fd9") + .availableShopIds(new String[]{"bf073c32-173c-4a0d-96df-732f92f550d5","f9d509d0-05db-4624-9af8-7e2771ba1f8b","053e4ec5-504b-400c-8838-e0246eb2ff6d","9fb8b377-99ad-4207-8a48-5e1f9e089b6e"}) .setShopSpecified(false) - .minAmount(958) - .usageLimit(5795) - .code("xbbT2umOR") - .setPublic(true) + .minAmount(680) + .usageLimit(9255) + .code("gIC2xteLEm") + .setPublic(false) .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"); + .setDisabled(false) + .displayEndsAt("2021-03-21T02:23:27.000000Z") + .displayStartsAt("2020-09-30T05:38:56.000000Z") + .endsAt("2020-07-22T08:30:35.000000Z") + .startsAt("2024-11-21T06:51:31.000000Z") + .discountUpperLimit(5814) + .description("u4P22rjT4dupTBgLrwJlYmSqD3jh0KtoQaeaW3") + .name("7wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltqUbvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3EykNpjwCP"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(2060) - .discountPercentage(8252.0); + .discountAmount(5017) + .numRecipientsCap(7275) + .storageId("6ce54fae-2ac1-416b-ba81-aee05368c679") + .availableShopIds(new String[]{"35c5a2b2-d81b-4b7b-abfe-596d44537d55","f249bb65-a88a-4932-8a4a-39b590eee53c","e5fc06b3-8ed5-4ab3-8eb6-8d0a60141ebc","987016c6-4730-4223-af65-f6b29f575d36","d111b270-4862-4ecf-92b3-2cc8c216e374","a0a24af4-92ac-4c6c-8795-7d3440c698a3","c3c80165-5514-42f9-a2e9-597d2b5440e1","5a286bf4-818b-444d-893f-f5bad2b26337","91d922de-4bbe-4125-bb04-13997fcb77d6","0a53cafe-c1c6-43b3-9064-1301f431d217"}) + .setShopSpecified(false) + .minAmount(6900) + .usageLimit(1815) + .code("JSz1Q3vo") + .setPublic(false) + .setHidden(true) + .setDisabled(true) + .displayEndsAt("2025-02-07T12:40:46.000000Z") + .displayStartsAt("2023-05-04T18:20:50.000000Z") + .endsAt("2021-09-04T09:10:55.000000Z") + .startsAt("2023-02-02T05:43:15.000000Z") + .discountUpperLimit(9447) + .description("FsW05W19aXuGVVRQlUVJv9CZ2ZsBhmJBENJ2Jp2YLnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ9bvTSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8NITOun") + .name("WJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wDY3Y"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(6260) - .discountPercentage(6255.0) - .name("1oTpzcZyDOIWVwoFQc"); + .discountAmount(9044) + .discountPercentage(5553.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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(9817) - .discountPercentage(9826.0) - .description("DKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZsgSDOAS6m6W4ycEK") - .name("eHr4636lRXTr2iPpZt0j1CI3l6J30qBjXV2f99mPOolq1eiW9RuNHXLsbYmrfHw"); + .discountAmount(8772) + .discountPercentage(8876.0) + .name("U5jqThl0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSuhWGSp4IuNXEvAYv341undTljb"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(1408) - .discountPercentage(933.0) - .discountUpperLimit(182) - .description("AehvKLu9jSykyDMxjQhXvqsNkUwpnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD62pEennAfXO8IbuWWi93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMiAoASOIgsAFMRnA6RqJv3Yoi1HNQ6SUUxfHdkFZrSjoj4E906hjOO") - .name("DSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyxQz7D"); + .discountAmount(4242) + .discountPercentage(1598.0) + .description("WPhfpiwPMjupC65xVDnAJbsKD6b895iftqbY67Ut2zsAKH6lKT6gJXbaEKAddoUM0CRdaSDeoQ9lXXELG9oQdgpEse81VvpXr3HeuSevupI3Lg6cydG4CQY3zROLCcC3cDzGwCmJXHiF5C2aKJupg0Hph0EUCWBeCDLYnE6HiVXo") + .name("G09ihrRj4aejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(6289) - .discountPercentage(5503.0) - .startsAt("2022-03-22T13:16:43.000000Z") - .discountUpperLimit(8449) - .description("6SGfEdpD0U") - .name("VkFLTmlxp8SI9cXescrmSD5nkp7THGlyH3t2HB4wHFbCGx0Xzqx2wtaKpu1qdmiKn22F3ctIsxTTV24W3iM"); + .discountAmount(4678) + .discountPercentage(360.0) + .discountUpperLimit(6158) + .description("clpvEl0kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCNCl989Inr9h5bKrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtOnbZ68JstsOcxw5PoatcF0TU5W5omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc2ISnCuuu6HEZICTUsFd55cysKpzPw06buTFvYo4v") + .name("ubGw6jVHah2jNyPqoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPT"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(9484) + .discountPercentage(806.0) + .startsAt("2021-12-25T23:27:23.000000Z") + .discountUpperLimit(5722) + .description("7efHVp4Du6bqVzq0H9hNDIpWOGRlL4QDCIWrLzYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCFjnlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHr") + .name("7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCisIe5qHDsMdG7wbTKEpXzySqqc4sXPad6xuw"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(2845) + .discountPercentage(7253.0) + .endsAt("2021-04-23T02:07:45.000000Z") + .startsAt("2021-12-07T04:03:25.000000Z") + .discountUpperLimit(7606) + .description("4YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZFtSWx4aRECgS2Rzs2yl") + .name("Iq5ZtrGXVCQUhbREfojZVoiIjURbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3rucfBues6uHoyn0kY9tu"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(2597) + .discountPercentage(5040.0) + .displayStartsAt("2024-01-31T18:51:45.000000Z") + .endsAt("2022-12-19T05:33:47.000000Z") + .startsAt("2020-01-31T18:33:14.000000Z") + .discountUpperLimit(1731) + .description("0WPKbQvYow9FaOH3zD7SQmRuyNCMpGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpWd") + .name("g5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4IlVfzKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTVYxU13omHKmdh2ng7xlmB"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(2222) + .discountPercentage(1328.0) + .displayEndsAt("2021-10-22T16:43:48.000000Z") + .displayStartsAt("2022-01-04T17:29:03.000000Z") + .endsAt("2024-01-19T22:31:02.000000Z") + .startsAt("2024-10-13T22:47:13.000000Z") + .discountUpperLimit(3692) + .description("lsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsPccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqX") + .name("FGoRA4XvfiL62Wv2vl8qJafcwBDpLTRN1a0lar5cvmWk6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4W"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(8030) - .discountPercentage(5262.0) - .setHidden(true) - .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"); + .discountAmount(3014) + .discountPercentage(9940.0) + .setDisabled(false) + .displayEndsAt("2022-08-26T18:42:18.000000Z") + .displayStartsAt("2020-04-13T19:04:01.000000Z") + .endsAt("2025-11-05T01:21:38.000000Z") + .startsAt("2022-12-21T18:37:56.000000Z") + .discountUpperLimit(1631) + .description("PLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5PsH9YtmnNiOZyV9AO3DnB1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVx") + .name("kfS7LC09h1a"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(9044) - .discountPercentage(5553.0) - .setPublic(true) + .discountAmount(127) + .discountPercentage(7086.0) .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"); + .displayEndsAt("2020-09-27T18:31:02.000000Z") + .displayStartsAt("2021-10-28T19:13:41.000000Z") + .endsAt("2024-11-30T07:15:07.000000Z") + .startsAt("2022-10-13T00:20:25.000000Z") + .discountUpperLimit(291) + .description("8rNkq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQkIPmfa5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKvyAHQ0Cmh0GR2iNpQgbrTS2HEffP70DHCUohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBpAMRk3KT9aHDvn68") + .name("0BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(5837) - .discountPercentage(7725.0) - .code("0CR") - .setPublic(true) - .setHidden(true) + .discountAmount(3417) + .discountPercentage(277.0) + .setPublic(false) + .setHidden(false) .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("2025-05-28T17:32:53.000000Z") + .displayStartsAt("2020-04-06T08:20:21.000000Z") + .endsAt("2023-07-15T03:42:21.000000Z") + .startsAt("2022-07-18T21:21:50.000000Z") + .discountUpperLimit(6644) + .description("CEiLAHJ2sW9FitjutUJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3Hc5MrDSrYQmTFD8MK4LhwIRladKEnUCUBMTsHjSLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl1nws") + .name("6Ne3S7kdp"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(9717) - .discountPercentage(9468.0) - .usageLimit(7920) - .code("0Hph0EUC") - .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"); + .discountAmount(7599) + .discountPercentage(6035.0) + .code("li9FCf9") + .setPublic(true) + .setHidden(true) + .setDisabled(false) + .displayEndsAt("2023-12-27T08:25:14.000000Z") + .displayStartsAt("2022-09-27T07:31:01.000000Z") + .endsAt("2024-02-23T03:12:47.000000Z") + .startsAt("2025-10-08T06:58:28.000000Z") + .discountUpperLimit(5041) + .description("wXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn6U1tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQKCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z9k4WtlP60t1pGDCB7WpLioRLUylh") + .name("wp3jBXylmnzTDYQPTQEhEDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYD"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(3254) - .discountPercentage(6072.0) - .minAmount(8091) - .usageLimit(8638) - .code("JstsOcxw5") - .setPublic(false) + .discountAmount(4980) + .discountPercentage(8408.0) + .usageLimit(5505) + .code("RSpeSviFk") + .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"); + .setDisabled(false) + .displayEndsAt("2021-04-19T02:45:43.000000Z") + .displayStartsAt("2021-07-19T14:56:00.000000Z") + .endsAt("2025-10-28T11:06:25.000000Z") + .startsAt("2020-10-14T22:40:49.000000Z") + .discountUpperLimit(6515) + .description("LMcNwe8KEeqmGGreSt4nt1ybC0Ywm3a7y1jkUDzYlQVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxqLSG8S4aP0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kBu7DCNg4aU7BlWsNECFWA4hHlvtcjGtIP") + .name("dSKiVX8t6IuP7AfSh1iSdnomWlXA8y2vwAsTNYaeLyV7CWdrmk7DRyx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4xhz7D"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountAmount(1678) - .discountPercentage(2946.0) - .setShopSpecified(false) - .minAmount(2440) - .usageLimit(3333) - .code("bGw6jV") - .setPublic(true) - .setHidden(false) + .discountAmount(7706) + .discountPercentage(1426.0) + .minAmount(3231) + .usageLimit(633) + .code("wKIci") + .setPublic(false) + .setHidden(true) .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("2020-07-26T01:22:08.000000Z") + .displayStartsAt("2024-01-15T06:13:31.000000Z") + .endsAt("2025-12-24T20:57:50.000000Z") + .startsAt("2021-11-03T08:36:35.000000Z") + .discountUpperLimit(4113) + .description("0uBHj0xIlmI7crwjgiJmBq8x2BMoiejWmPY8qwKCFWRUhTWJtrSHM5KvGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wpFlmsWusC8RGaBKUJdHLf9kwaxRbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1By6vGk0FuWZ3pt") + .name("SyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9VDX3NEhsO0rjGagOIQ6x9sSfu0zX8zdCniT7rbp4RdF8jzLLX07kGwm"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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") + .discountAmount(9480) + .discountPercentage(5594.0) + .setShopSpecified(true) + .minAmount(1848) + .usageLimit(185) + .code("QJDye") .setPublic(false) - .setHidden(false) + .setHidden(true) .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"); + .displayEndsAt("2022-07-02T17:59:10.000000Z") + .displayStartsAt("2023-02-17T22:34:24.000000Z") + .endsAt("2024-04-22T23:39:24.000000Z") + .startsAt("2025-06-10T13:56:49.000000Z") + .discountUpperLimit(7302) + .description("rhi7") + .name("h3KP4T37Wi9g9nZZhOiq9TM1kLnMOaPoayQ1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIECbUavopCer6amUqWii2uDVrmTki6pqO0f8cnptMkBRjm"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(4318) + .discountPercentage(175.0) + .availableShopIds(new String[]{"49dacaac-4d87-4495-ae2d-db62263e6165","5214c343-0b8f-4467-b487-bb78273855f5"}) .setShopSpecified(false) - .minAmount(8904) - .usageLimit(3294) - .code("zD7S") - .setPublic(false) + .minAmount(40) + .usageLimit(9069) + .code("oxK") + .setPublic(true) .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"); + .setDisabled(true) + .displayEndsAt("2020-07-23T17:53:29.000000Z") + .displayStartsAt("2021-11-06T23:06:42.000000Z") + .endsAt("2022-09-06T10:35:57.000000Z") + .startsAt("2023-11-06T14:53:35.000000Z") + .discountUpperLimit(9054) + .description("T4F795unttA065Yr03Qzj1SYSblk7QSMdkkKPrtzfsCSKaR3OFn1WKJz5hhBZBCZgSERTDaoK9IqITw9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9") + .name("mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzr"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountPercentage(9978.0); + .discountAmount(7547) + .discountPercentage(3104.0) + .storageId("524fe6d7-f335-489f-9cc6-35c5ee40bf18") + .availableShopIds(new String[]{"a5bdb8b6-6156-453e-b089-ba92fbe95997","7dfb82d6-b3a8-4cf1-b5b1-7bc43ff6ba9e"}) + .setShopSpecified(true) + .minAmount(385) + .usageLimit(654) + .code("0JaBs") + .setPublic(true) + .setHidden(true) + .setDisabled(true) + .displayEndsAt("2020-10-23T06:23:01.000000Z") + .displayStartsAt("2021-08-29T15:21:57.000000Z") + .endsAt("2024-09-30T12:43:36.000000Z") + .startsAt("2025-10-18T13:06:59.000000Z") + .discountUpperLimit(2510) + .description("2R5bV74h6MclFLskpVJhF8OvhWGp3gTZC60RTw4fZ8zWBqSC3vDIMcnoo") + .name("U2vsEkhFzbMP7H4x70jy8CyXSjsNQfhm4Jdi"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountPercentage(3445.0) - .name("0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsP"); + .discountAmount(2642) + .discountPercentage(5291.0) + .numRecipientsCap(530) + .storageId("d25d1755-061e-4e30-b341-9eaad8783178") + .availableShopIds(new String[]{"0af94a3e-2f70-4fa5-85de-91cb93161b03","f023c26f-020a-4c5d-b97e-2e50a6c64272","6ff89cb8-6a74-40dd-86ee-c80439a12743","6cce19d2-f534-4762-b356-56a8be2307d6","3ca3ce0e-cce3-4d6e-aa40-74d2853edcb7","c79828f9-59af-4cd3-a10a-79d42f6e8311","60897fca-9c53-494c-95de-10baeba560d8"}) + .setShopSpecified(false) + .minAmount(978) + .usageLimit(1066) + .code("aOCY9HY") + .setPublic(true) + .setHidden(false) + .setDisabled(false) + .displayEndsAt("2025-05-07T01:42:39.000000Z") + .displayStartsAt("2020-09-22T02:49:20.000000Z") + .endsAt("2025-05-13T16:56:07.000000Z") + .startsAt("2020-04-13T23:28:26.000000Z") + .discountUpperLimit(921) + .description("aJMcRsZ3tfn14pqdpY2gOVzxC2AMFcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77") + .name("FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnF"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountPercentage(8978.0) - .description("ccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8") - .name("JafcwBDpLTRN1a0lar5cvmWk6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5Ps"); + .discountPercentage(1288.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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountPercentage(9928.0) - .discountUpperLimit(1593) - .description("tmnNiOZyV9AO3DnB1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8r") - .name("kq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQk"); + .discountPercentage(9257.0) + .name("2j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt7JZTknlcSLOAfgHki7iEUUEZsYB8I8w6YX9AjYRSoiU"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountPercentage(4048.0) - .startsAt("2023-02-25T20:09:17.000000Z") - .discountUpperLimit(358) - .description("a5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKv") - .name("yAHQ0Cmh0GR2iNpQgbrTS2HEffP70D"); + .discountPercentage(8352.0) + .description("BYQYTGkBMdZ9gxwOlUDOeBSRiyqeameMaY0bgN8gTUkelv3hkG") + .name("mk4iWQZAVafOlabiOcE"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountPercentage(1429.0) - .endsAt("2023-03-24T15:14:16.000000Z") - .startsAt("2022-11-21T09:12:45.000000Z") - .discountUpperLimit(67) - .description("ohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBpAMRk3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9FitjutUJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmm") - .name("XsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3H"); + .discountPercentage(1900.0) + .discountUpperLimit(1191) + .description("oh2DXft8ZR3ZIT5H8aSOl3MDXnG9yHqEAThwDuq1zewsMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDIn3") + .name("iuFQrrgeXzyNXNrNkeWa9hW"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(2675.0) + .startsAt("2022-12-30T16:19:20.000000Z") + .discountUpperLimit(1484) + .description("o6RhlRrNdmMatyDW12s5SKsd06fYHa9pHdUJ2NkpD9XRln1g4q1AmzenaBAIYsPX5BEVEkSwN7Jl7UfMqNeI") + .name("xDQ5mYkDBp76iPlz0WyF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5qnBpeG29h"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(9367.0) + .endsAt("2025-02-08T16:22:47.000000Z") + .startsAt("2020-04-18T22:19:14.000000Z") + .discountUpperLimit(862) + .description("NKIGuoyWD3BHeU5bcdtREmG3PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJ") + .name("l1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCxlziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZ"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(2647.0) + .displayStartsAt("2022-03-12T20:01:38.000000Z") + .endsAt("2022-10-31T14:00:59.000000Z") + .startsAt("2023-01-15T04:41:20.000000Z") + .discountUpperLimit(6574) + .description("tKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD579HHiyd") + .name("wYbStQsIHShYuqMOfry8huKLaun9q8fRCMt2pzYekawpUouvYHKlj0GUL0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1068,18 +1088,67 @@ void test42() throws ConnectionError, ProcessingError { @Test void test43() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountPercentage(3613.0) + .discountPercentage(8233.0) + .displayEndsAt("2025-04-07T10:49:08.000000Z") + .displayStartsAt("2023-01-26T06:20:22.000000Z") + .endsAt("2025-12-11T15:10:03.000000Z") + .startsAt("2021-12-18T10:47:06.000000Z") + .discountUpperLimit(9405) + .description("b2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLKUg3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcY") + .name("t3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7mxn7kYGzShazS"); + 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 UpdateCoupon( + "58533313-deb0-4eba-9601-0c052c2f9398" + ) + .discountPercentage(3040.0) + .setDisabled(true) + .displayEndsAt("2024-02-07T16:32:44.000000Z") + .displayStartsAt("2025-10-15T21:04:32.000000Z") + .endsAt("2023-03-04T12:41:37.000000Z") + .startsAt("2025-07-21T03:07:06.000000Z") + .discountUpperLimit(8648) + .description("6DDfNqfsVRi3zxzsVzVJLxpF9uCjOUSNMH9fWh27PiOpr3HMMXsb4Lh4b0Gko8iE0P3Cu0AOaTlKzyVFYYoK00acoGlEqYYGWZUMgU5LJ8nedbEkL6VCbZlYCZFu0YjXrvick1kbCzvMElblaTUskxDWTi4syFdijXYZ6Fkp0v2rObj5KP7CaX5R9O7h") + .name("OQMfDj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq2k3ETquM3SQujWFDE153B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1zaeUGprRtPpZgZzOhvm"); + 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 UpdateCoupon( + "58533313-deb0-4eba-9601-0c052c2f9398" + ) + .discountPercentage(1142.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"); + .displayEndsAt("2020-05-09T20:33:15.000000Z") + .displayStartsAt("2022-05-31T08:38:31.000000Z") + .endsAt("2024-01-09T14:28:19.000000Z") + .startsAt("2021-02-01T09:43:50.000000Z") + .discountUpperLimit(1813) + .description("e7aM7QiN4LuTtB8ZF5mN9clYyKl8cUsYw8CW8rHVcm") + .name("ZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSBniTvgiFcfFWfXoobW27D2zSsjxSJQCC2TKE"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1092,21 +1161,21 @@ void test43() throws ConnectionError, ProcessingError { } } @Test - void test44() throws ConnectionError, ProcessingError { + void test46() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountPercentage(9845.0) + .discountPercentage(7038.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"); + .setDisabled(false) + .displayEndsAt("2024-05-20T07:28:29.000000Z") + .displayStartsAt("2023-01-17T17:32:35.000000Z") + .endsAt("2021-08-07T09:03:41.000000Z") + .startsAt("2020-04-13T21:41:33.000000Z") + .discountUpperLimit(2219) + .description("0u0i2E7e3WCog3HknLhb4mGHjaX24jJAlJFQ82MhyQQoipgFNSux0jeobdQD1VXjUggH7qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcsFhnnSlOPQS") + .name("KVW980GqQVfPuvUPiEFV6mDyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1119,22 +1188,22 @@ void test44() throws ConnectionError, ProcessingError { } } @Test - void test45() throws ConnectionError, ProcessingError { + void test47() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountPercentage(3782.0) - .code("s") + .discountPercentage(6553.0) + .code("ipp2") .setPublic(false) .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("2020-06-15T08:52:34.000000Z") + .displayStartsAt("2025-11-07T15:14:49.000000Z") + .endsAt("2023-04-20T21:23:50.000000Z") + .startsAt("2025-03-26T07:26:06.000000Z") + .discountUpperLimit(7301) + .description("rHbdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt") + .name("8y1LpRX9w3aEMSDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClP"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1147,23 +1216,23 @@ void test45() throws ConnectionError, ProcessingError { } } @Test - void test46() throws ConnectionError, ProcessingError { + void test48() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountPercentage(8962.0) - .usageLimit(1825) - .code("MOaPoa") + .discountPercentage(3280.0) + .usageLimit(2369) + .code("3ydu7juMa") .setPublic(false) .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("2025-06-17T00:38:42.000000Z") + .displayStartsAt("2021-08-12T18:17:51.000000Z") + .endsAt("2022-04-08T19:52:41.000000Z") + .startsAt("2021-02-27T17:17:22.000000Z") + .discountUpperLimit(5559) + .description("qGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM") + .name("8ZY9eEBDTjFI18oRpgCoDiEOfsuO3LMtzPm5pmHiztzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2Z23Mwd98ipOldTUQCXPc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1176,24 +1245,24 @@ void test46() throws ConnectionError, ProcessingError { } } @Test - void test47() throws ConnectionError, ProcessingError { + void test49() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountPercentage(6628.0) - .minAmount(4459) - .usageLimit(4224) - .code("kKPrtzfsC") + .discountPercentage(8705.0) + .minAmount(8460) + .usageLimit(9434) + .code("LDZ6t") .setPublic(false) - .setHidden(false) - .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"); + .setHidden(true) + .setDisabled(false) + .displayEndsAt("2022-06-30T08:35:26.000000Z") + .displayStartsAt("2020-06-01T20:33:29.000000Z") + .endsAt("2024-08-05T11:15:31.000000Z") + .startsAt("2025-04-23T10:00:19.000000Z") + .discountUpperLimit(2932) + .description("biaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcI") + .name("C0MaOVTzOYUS4YiFzadS1dG4VhCAXdvLcusNkP92lEHAtBr5uMSg7mI2h9L5UgNjF9pGXPoR6V6EH9o"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1206,25 +1275,25 @@ void test47() throws ConnectionError, ProcessingError { } } @Test - void test48() throws ConnectionError, ProcessingError { + void test50() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .discountPercentage(8196.0) + .discountPercentage(8767.0) .setShopSpecified(false) - .minAmount(5806) - .usageLimit(9152) - .code("MP7") + .minAmount(946) + .usageLimit(9374) + .code("8mJwg7") .setPublic(true) - .setHidden(false) + .setHidden(true) .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("2020-07-20T07:39:54.000000Z") + .displayStartsAt("2021-11-29T06:34:12.000000Z") + .endsAt("2021-09-17T06:11:05.000000Z") + .startsAt("2022-06-22T11:15:22.000000Z") + .discountUpperLimit(7952) + .description("Llab29gfUQ6hTQL306GhITMLHDmfb2965KcWooPsLAa0LofoeILq2j") + .name("JbokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DY"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1237,26 +1306,59 @@ void test48() throws ConnectionError, ProcessingError { } } @Test - void test49() throws ConnectionError, ProcessingError { + void test51() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(3672.0) + .availableShopIds(new String[]{"5d418757-605f-46f7-b443-6742392fb4cb","42bc095d-f22f-44b4-9f84-487966e654c9","961b7f37-b581-4762-b7f2-3975c7504d49"}) .setShopSpecified(true) - .minAmount(6419) - .usageLimit(2905) - .code("gOV") + .minAmount(9905) + .usageLimit(3780) + .code("ef") + .setPublic(true) + .setHidden(false) + .setDisabled(true) + .displayEndsAt("2023-10-17T06:06:52.000000Z") + .displayStartsAt("2025-02-16T16:02:56.000000Z") + .endsAt("2023-06-10T01:12:41.000000Z") + .startsAt("2020-08-05T21:51:23.000000Z") + .discountUpperLimit(4555) + .description("mn0D6u1aqXUg") + .name("XLPq2aRw08aQ0rfHosccmXhG1yeE5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn33R"); + 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 test52() throws ConnectionError, ProcessingError { + Request request = new UpdateCoupon( + "58533313-deb0-4eba-9601-0c052c2f9398" + ) + .discountPercentage(841.0) + .storageId("427bd1d2-6d53-4323-8fed-05103d58596c") + .availableShopIds(new String[]{"e1bb98d3-dcaf-49aa-8bd1-d16671801222","05deadfa-97fa-4005-a80a-08d44e4c3ff7","4b93b47d-ca27-4e6e-b3c4-d396fadc5ef8","919667ae-b774-4c34-8f58-5fe519d099f7","8c946b9d-d5b7-452a-891d-1d2aeb5f54ad","cf2ebad9-73a7-4efa-84ac-740218eb2f61","e537c403-09da-419b-8ea8-ab0564b169ff","8f0d1cb1-c5ca-4439-be2e-e32247bccf03","83995e83-ea3b-42a5-afcf-167dc39122db"}) + .setShopSpecified(false) + .minAmount(1317) + .usageLimit(162) + .code("d") .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"); + .setDisabled(false) + .displayEndsAt("2022-07-29T09:08:14.000000Z") + .displayStartsAt("2020-12-22T15:06:53.000000Z") + .endsAt("2020-06-14T07:16:33.000000Z") + .startsAt("2020-06-26T11:53:49.000000Z") + .discountUpperLimit(6540) + .description("2IVUV93tsgTE0JEew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVUwFU1amkd1FBZBysFgH8TiyAaF4dUSAbqyi68iyJ302sQl233vCftoqwC5tymvF1K23X2") + .name("uYu46ypSW9PxtiaID1SUCf"); 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" + "58533313-deb0-4eba-9601-0c052c2f9398" ) - .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(5894.0) + .numRecipientsCap(2043) + .storageId("ce832c39-771a-4bf9-85ab-26e5164cd47b") + .availableShopIds(new String[]{"d450afa3-e498-4aef-9087-55c679e6baab","e8618d39-3961-4932-97b6-192b76f49727","a64a530d-fbbf-46a3-a3b2-0252bad69fa0","669690cc-b548-4bfa-9351-ecd76bf43bac","3da5c4bb-f68f-4c2c-8f8a-87dc68f5d023"}) + .setShopSpecified(false) + .minAmount(9920) + .usageLimit(52) + .code("2l0") .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"); + .setHidden(true) + .setDisabled(false) + .displayEndsAt("2020-07-02T01:02:48.000000Z") + .displayStartsAt("2023-10-31T17:49:02.000000Z") + .endsAt("2023-10-16T11:34:48.000000Z") + .startsAt("2021-03-24T23:57:48.000000Z") + .discountUpperLimit(4031) + .description("zZ3pUKHHeXuuwg12Ygg3AsTOryI") + .name("KyRmJ3gWCDcmsuvkMrJePtGFhv4aIw1aGtGR3fEQezBo8XnXONHGXDMcl8tuhVdB5KkP8PHvZEmmcBK"); 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 52eeed6..48f4342 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" + "bd098a99-47b7-442e-a45a-569544e13850" ); 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" + "bd098a99-47b7-442e-a45a-569544e13850" ) .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" + "bd098a99-47b7-442e-a45a-569544e13850" ) - .externalId("hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qq") + .externalId("6Ey6Tu3BU56A0DovC2") .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" + "bd098a99-47b7-442e-a45a-569544e13850" ) - .accountName("rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfd") - .externalId("KJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCb") + .accountName("AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfddKJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCbHnT3R8fCd811") + .externalId("5VzfSNwUPij0JCeKaErwIngTct") .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" + "bd098a99-47b7-442e-a45a-569544e13850" ) - .status("pre-closed") - .accountName("nT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fc") - .externalId("KmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUj") + .status("suspended") + .accountName("VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fcKmGRUw7s") + .externalId("hCFW8ODbHkZSUP") .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 feb6c5b..355dd38 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" + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6" ); 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" + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6" ) .status("active"); try { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6" ) - .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"}) - .status("active"); + .canTopupPrivateMoneyIds(new String[]{"f38b3525-7117-474d-97ed-0fda48aeadc5","cb2a538d-fee4-4a6f-b3d4-e93b7fd6d68b","b93f9474-adeb-4041-8da4-c1e0708557d0","8d68d91a-0a87-4a0a-8ce6-be26f09cfa7a","4c0acee9-6686-40f9-a412-c3de35a3efff","b6910004-413b-4ec2-b248-44a367de818d","189d1959-0078-41e1-9312-e1f5e91a00aa"}) + .status("disabled"); 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 UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6" ) - .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"}) - .status("disabled"); + .privateMoneyIds(new String[]{"02d17783-3423-4465-8176-1c87b02d11e3","94db257c-e7ea-40f3-b32b-d80c77441aaf","e77cbc1f-d1af-4d55-b2d1-8feecb77e988","7ed86303-ee5e-4938-b3e7-78db95ece3be","48e97ed7-e916-4086-887f-073778c9a768","dc8b24bc-86bd-4846-b0a6-450f6cee271f"}) + .canTopupPrivateMoneyIds(new String[]{"752ee902-be04-4b38-a703-d94e318ec768","e1657c37-f865-48ef-9f5b-4b4fa1a7c0a9","c8da8810-de17-45a8-ba18-c2b6089ace2a","d8cd2f3a-acff-4519-a17c-d373760504bc"}) + .status("active"); 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 UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6" ) - .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("Oox0RRzWzgJ8qllmxnkMgshIHzbucf") + .privateMoneyIds(new String[]{"fe464f9b-7468-41c9-a492-9ea38bcc6f7b","6d32dd44-2400-4e33-bc21-0771f82c98e5","2b936e9b-13bf-4b6d-ac6f-74034e06c412","0a8a4537-790c-47ca-8dce-f60741d150a8"}) + .canTopupPrivateMoneyIds(new String[]{"24c6189b-ebdb-41d5-a50a-229e3f990415","78c91002-0216-4abf-93a9-9eb8740a68df","2090f68a-2fca-4bf4-b1ef-5266ca7c34cd","a86cb702-7871-4d31-94f9-b946b89e1263","4893f3d7-1c5d-4b30-a055-8ff5291366db","6c69519c-629e-42bf-a323-61b53531887b","cac225f5-bae7-4c91-be95-a532bb7497d3"}) + .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" + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6" ) - .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("pDoeGryI5O@QQ9G.com") + .externalId("oRe") + .privateMoneyIds(new String[]{"fd531d68-2410-42e1-9d00-eb895a4b7599","51d9f9d3-fb2b-4a0d-b94f-dbfe8eac67b2","0e76059c-551c-4b2f-8121-b3886d686809","e97d96a6-4994-49cd-9ab3-81e6fe93b873","88676ddb-e26b-49e0-8a71-1a58c40703b8","044562d7-c197-413e-a2eb-4978dcce315f"}) + .canTopupPrivateMoneyIds(new String[]{"221b7562-70d7-4f54-b086-e2b654ab9fb6","e0dc55af-9469-475b-876a-1cb1b0cf8b97","ded3fe86-756c-48d2-927c-702fb445fa90","2bd0d8b9-be58-427e-a0a8-c4f56b8ec07b","8a5a5e4d-4856-402c-bbaa-e363c570cea5","0fabff73-4d92-44b2-bf7a-558be9f188e5","874db985-48d1-4705-9162-0d7f2c82ddd1","cd8d18dc-662a-4ff7-a2bb-df35a61be5b1","a25f57a5-46ba-451b-ba55-8544c176bcea","aceb8e81-b166-48f9-a12a-0ec707888f02"}) .status("active"); try { PartnerAPITest.getClient().send(request); @@ -123,13 +123,13 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6" ) - .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"}) + .tel("069258633") + .email("d07Li3GyEd@t6GG.com") + .externalId("J1") + .privateMoneyIds(new String[]{"96ebd3a2-a058-4e6f-b5e0-bd2ef3b70088","285ae1ba-5a0f-47d5-9084-4da2e91cc72d","163dd5ab-009f-4a00-8610-9c26429a09e9","825a61c6-cf2d-47ca-aaf5-251a2e164ebe","00997e53-b4e3-4172-85c7-c1e34632bf59","2d5edcb5-f049-47b6-9d76-c92311cf33fe","b27056bb-2759-43a1-bc4a-38aa5f77f094"}) + .canTopupPrivateMoneyIds(new String[]{"b7053e7f-bf7c-4b71-85e3-e261ad76eeee","9369ca73-8853-4b73-90b2-f3633f4f2aa3","e9cf0887-6517-470d-9ebd-00e5089b10fd","10cd95c9-ad76-4b3b-8b1d-acd034109fb9","8bdca693-3ae2-46df-9b67-11aee5b97cd9","2845dee1-e5ae-4111-ae0f-01514eafcce2","aaea48d6-893a-4494-91cd-07398f70a35a","2b95aab6-6c86-4dd2-87b0-49ebf6138ebc"}) .status("disabled"); try { PartnerAPITest.getClient().send(request); @@ -145,14 +145,14 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6" ) - .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[]{}) + .address("sPdzwEr5mXGzuLW3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUB") + .tel("07-691-579") + .email("5lQKirhrBQ@ImBb.com") + .externalId("FT") + .privateMoneyIds(new String[]{"ea8a56ac-98c7-4680-a372-69dbfe137e32","a00f14b4-1506-4b11-b6a8-d62c4b3c3552","e51fc35b-9dee-405e-b021-1f5611b3382f"}) + .canTopupPrivateMoneyIds(new String[]{"438843cb-0ded-453f-8b16-edbcf104e971"}) .status("disabled"); try { PartnerAPITest.getClient().send(request); @@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6" ) - .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"}) - .status("active"); + .postalCode("9805461") + .address("S4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUB") + .tel("051-1864-629") + .email("hvlI4uoOEn@KraN.com") + .externalId("jpsN9SjDxtxrgs7e0dkiAAa8jwX6FLC") + .privateMoneyIds(new String[]{"bd03b1df-cfdf-405b-b13e-ad18fec38858","df324786-3dde-44dd-ac76-217ac2ccd605"}) + .canTopupPrivateMoneyIds(new String[]{"a61ecd11-4461-427a-be53-1fc346fbbc45","71a2b028-c23d-45fb-ba9f-b7317661bbe8"}) + .status("disabled"); 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 UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6" ) - .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"}) - .status("disabled"); + .name("EG2EkkP2VIPy7HW7Ee7skB9BB1YNClE0n87A30l6vspNWH9u8x4Yq2mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XR") + .postalCode("0830744") + .address("vgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8") + .tel("0831-945") + .email("U0HuG332kY@dREQ.com") + .externalId("C39nZBUv4F8J7UzyDYEv7bctcmIqdmvT") + .privateMoneyIds(new String[]{"f763ca38-899e-44d2-82fa-1aa383768899","2a869d1a-425f-4d70-95de-ee08bcddb5b0","3cda3380-46e7-47aa-a978-3bf3b2277304","fed0e182-8b99-424b-9a10-a3d793bd386f","cce72155-afab-4793-a54f-0152340a4a3a","bbb4bacc-b1b9-4bff-9438-20a31ed476ad"}) + .canTopupPrivateMoneyIds(new String[]{"41be219f-1e3e-4d44-b639-405b1a248e54"}) + .status("active"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java index 3fa9335..4b51a8a 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" + "27795492-c616-4b4d-925e-95f166ce74a0" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateWebhook( - "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" + "27795492-c616-4b4d-925e-95f166ce74a0" ) .task("process_user_stats_operation"); try { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateWebhook( - "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" + "27795492-c616-4b4d-925e-95f166ce74a0" ) - .setActive(true) - .task("process_user_stats_operation"); + .setActive(false) + .task("bulk_shops"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,9 +63,9 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateWebhook( - "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" + "27795492-c616-4b4d-925e-95f166ce74a0" ) - .url("QNFRYY") + .url("UduAdQ5IH") .setActive(false) .task("process_user_stats_operation"); try { 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 0000000..5ed8e13 --- /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 + )); + Bill bill = (Bill)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateBill( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + shop.getId() + )); + Bill billUpdated = (Bill)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 ddb6561..2ad07c9 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 0000000..8a47990 --- /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); + } +}