diff --git a/build.gradle b/build.gradle index 62edeca..872021f 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'partner-java-sdk' -version '0.2.6' +version '0.2.7' sourceCompatibility = 1.8 diff --git a/docs/account.md b/docs/account.md index 7785bd8..44b41d1 100644 --- a/docs/account.md +++ b/docs/account.md @@ -8,8 +8,8 @@ Request request = new ListUserAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // userId: ユーザーID ) - .page(7596) // ページ番号 - .perPage(8261); // 1ページ分の取引数 + .page(1170) // ページ番号 + .perPage(3512); // 1ページ分の取引数 ``` @@ -74,8 +74,8 @@ Request request = new CreateUserAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userId: ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .name("xIIOg9CcbCgtxt4qQAP06TDLYKBc2zPf6wToG8lTKcMPiFJX3LNKTomMc8wnROYRP673oHx5N3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX05IlCZ5tUdSwXVRIVCnl") // ウォレット名 - .externalId("Zj6NtOwX2FI8Wr1369uaTF42") // 外部ID + .name("qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9") // ウォレット名 + .externalId("iCp3raZonaiDazAfoV") // 外部ID .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); // ウォレットに付加するメタデータ ``` diff --git a/docs/bank_pay.md b/docs/bank_pay.md index 6728569..2d27c7f 100644 --- a/docs/bank_pay.md +++ b/docs/bank_pay.md @@ -65,7 +65,7 @@ Request request = new CreateBank( "", // callbackUrl: コールバックURL "ポケペイタロウ" // kana: ユーザーの氏名 (片仮名で指定) ) - .email("NJhR9grzsE@T9HH.com") // ユーザーのメールアドレス + .email("wpVUwFU1am@kd1F.com") // ユーザーのメールアドレス .birthdate("19901142"); // 生年月日 ``` @@ -159,10 +159,11 @@ Request request = new CreateBank( Request request = new CreateBankTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 6059, // amount: チャージ金額 + 8003, // amount: チャージ金額 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // bankId: 銀行ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // requestId: リクエストID -); +) + .receiverUserId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // 受け取りユーザーID (デフォルトは自身) ``` @@ -206,6 +207,17 @@ Request request = new CreateBankTopupTransaction( +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`receiverUserId`** + + + ```json { "type": "string", diff --git a/docs/bill.md b/docs/bill.md index c6df4ab..3aaf5d9 100644 --- a/docs/bill.md +++ b/docs/bill.md @@ -7,18 +7,18 @@ ```JAVA Request request = new ListBills() - .page(8059) // ページ番号 - .perPage(5147) // 1ページの表示数 - .billId("zIdrHm6O") // 支払いQRコードのID + .page(2897) // ページ番号 + .perPage(1066) // 1ページの表示数 + .billId("r") // 支払いQRコードのID .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID - .organizationCode("-23E-1evC3-m6V-ESLc-029-YOZ-UkK") // 組織コード + .organizationCode("b--BUl96") // 組織コード .description("test bill") // 取引説明文 - .createdFrom("2022-04-17T00:55:51.000000Z") // 作成日時(起点) - .createdTo("2020-04-15T22:23:38.000000Z") // 作成日時(終点) + .createdFrom("2020-02-16T12:28:09.000000Z") // 作成日時(起点) + .createdTo("2022-11-02T03:28:47.000000Z") // 作成日時(終点) .shopName("bill test shop1") // 店舗名 .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID - .lowerLimitAmount(4503) // 金額の範囲によるフィルタ(下限) - .upperLimitAmount(605) // 金額の範囲によるフィルタ(上限) + .lowerLimitAmount(8267) // 金額の範囲によるフィルタ(下限) + .upperLimitAmount(7846) // 金額の範囲によるフィルタ(上限) .setDisabled(true); // 支払いQRコードが無効化されているかどうか ``` @@ -212,7 +212,7 @@ Request request = new CreateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: 支払いマネーのマネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // shopId: 支払い先(受け取り人)の店舗ID ) - .amount(5417.0) // 支払い額 + .amount(7728.0) // 支払い額 .description("test bill"); // 説明文(アプリ上で取引の説明文として表示される) ``` @@ -276,8 +276,8 @@ Request request = new CreateBill( |status|type|ja|en| |---|---|---|---| |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_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| @@ -296,7 +296,7 @@ Request request = new CreateBill( Request request = new UpdateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // billId: 支払いQRコードのID ) - .amount(232.0) // 支払い額 + .amount(4321.0) // 支払い額 .description("test bill") // 説明文 .setDisabled(false); // 無効化されているかどうか diff --git a/docs/bulk.md b/docs/bulk.md index 7d27ce6..2659b64 100644 --- a/docs/bulk.md +++ b/docs/bulk.md @@ -6,11 +6,11 @@ CSVファイルから一括取引をします。 ```JAVA Request request = new BulkCreateTransaction( - "mtEHAWzKVmwmqN4ax1Q1", // name: 一括取引タスク名 - "Fha0", // content: 取引する情報のCSV - "o1JxRbdO7sJMkOiIt9zNKCX0VzisXLLiEpUL" // requestId: リクエストID + "oMxEFE11voG9m7g", // name: 一括取引タスク名 + "WI", // content: 取引する情報のCSV + "lidcsFhnnSlOPQSKVW980GqQVfPuvUPiEFV6" // requestId: リクエストID ) - .description("tiIsW57odiOHhS8DsZfAQRFK6oTTeP8tTTuInowX2TMHi2vDKbmu86aUF4jypKaAY4yQaiw0JpUpNfjrUKaUCU4cuncfOgZgC0vnz9vdHX") // 一括取引の説明 + .description("DyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1Cipp2C") // 一括取引の説明 .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // マネーID ``` @@ -111,7 +111,7 @@ Request request = new BulkCreateTransaction( |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |403|organization_not_issuer|発行体以外に許可されていない操作です|Unpermitted operation except for issuer organizations.| |409|NULL|NULL|NULL| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|bulk_transaction_invalid_csv_format|入力されたCSVデータに誤りがあります|Invalid csv format| diff --git a/docs/campaign.md b/docs/campaign.md index 26466e8..5e88243 100644 --- a/docs/campaign.md +++ b/docs/campaign.md @@ -10,9 +10,9 @@ Request request = new ListCampaigns( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .setOngoing(true) // 現在適用可能なキャンペーンかどうか - .availableFrom("2022-09-07T22:32:35.000000Z") // 指定された日時以降に適用可能期間が含まれているか - .availableTo("2023-05-15T12:34:21.000000Z") // 指定された日時以前に適用可能期間が含まれているか + .setOngoing(false) // 現在適用可能なキャンペーンかどうか + .availableFrom("2023-04-20T21:23:50.000000Z") // 指定された日時以降に適用可能期間が含まれているか + .availableTo("2020-11-27T03:39:30.000000Z") // 指定された日時以前に適用可能期間が含まれているか .page(1) // ページ番号 .perPage(20); // 1ページ分の取得数 @@ -135,18 +135,23 @@ items2.addProperty("subject_less_than", 5000); JsonObject items3 = new JsonObject(); items3.addProperty("point_amount", 5); items3.addProperty("point_amount_unit", "percent"); -items3.addProperty("product_code", "4912345678904"); -items3.addProperty("is_multiply_by_count", true); -items3.addProperty("required_count", 2); +items3.addProperty("subject_more_than_or_equal", 1000); +items3.addProperty("subject_less_than", 5000); JsonObject items4 = new JsonObject(); +items4.addProperty("point_amount", 5); +items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); -items4.addProperty("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("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"); @@ -160,37 +165,37 @@ JsonObject applicable_transaction_metadata = new JsonObject(); applicable_transaction_metadata.addProperty("key", "rank"); applicable_transaction_metadata.addProperty("value", "bronze"); Request request = new CreateCampaign( - "9POKUqkrXtAeLmERqX5bwDROtzb2hizqeaCyQXA4kt1s5IzgftNOCeiOWbpouk4VaYSYsKX6oU3L46cfTNsJ74FdhPrGorQztiuURWZ5r1OnryKkdpmMzmoITgipjScgSjEKEvn9tkKJsfEeEirDJBv", // name: キャンペーン名 + "bdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w3aEMSDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClPPAh3ydu7juMa", // name: キャンペーン名 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - "2021-03-02T06:27:25.000000Z", // startsAt: キャンペーン開始日時 - "2020-12-09T08:29:09.000000Z", // endsAt: キャンペーン終了日時 - 4255, // priority: キャンペーンの適用優先度 - "topup" // event: イベント種別 + "2020-05-27T16:30:33.000000Z", // startsAt: キャンペーン開始日時 + "2022-03-29T07:15:33.000000Z", // endsAt: キャンペーン終了日時 + 4491, // priority: キャンペーンの適用優先度 + "external-transaction" // event: イベント種別 ) .bearPointShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント負担先店舗ID - .description("pkfaBwAHAugbJ1KgmPImdwaTBcNwqaqeRCH16a6zzUqrHdosHdbmLywqukvEUDGTtuu5mLHhGQ9yekqoyNLKN2h7BNq3rRMob2yqEgXsKX0DNjA5LloLW2Z") // キャンペーンの説明文 - .status("enabled") // キャンペーン作成時の状態 - .pointExpiresAt("2020-09-03T09:26:31.000000Z") // ポイント有効期限(絶対日時指定) - .pointExpiresInDays(5798) // ポイント有効期限(相対日数指定) + .description("7kqGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOfsuO") // キャンペーンの説明文 + .status("disabled") // キャンペーン作成時の状態 + .pointExpiresAt("2023-06-21T16:01:16.000000Z") // ポイント有効期限(絶対日時指定) + .pointExpiresInDays(5365) // ポイント有効期限(相対日数指定) .setExclusive(false) // キャンペーンの重複設定 - .subject("money") // ポイント付与の対象金額の種別 - .amountBasedPointRules(new Object[]{items,items2}) // 取引金額ベースのポイント付与ルール - .productBasedPointRules(new Object[]{items3}) // 商品情報ベースのポイント付与ルール - .blacklistedProductRules(new Object[]{items4,items5}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト - .applicableDaysOfWeek(new Integer[]{4,0,0}) // キャンペーンを適用する曜日 (複数指定) - .applicableTimeRanges(new Object[]{items6,items7,items8}) // キャンペーンを適用する時間帯 (複数指定) - .applicableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象となる店舗IDのリスト - .blacklistedShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) - .minimumNumberOfProducts(6673) // キャンペーンを適用する1会計内の商品個数の下限 - .minimumNumberOfAmount(9777) // キャンペーンを適用する1会計内の商品総額の下限 - .minimumNumberForCombinationPurchase(6470) // 複数種類の商品を同時購入するときの商品種別数の下限 + .subject("all") // ポイント付与の対象金額の種別 + .amountBasedPointRules(new Object[]{items,items2,items3}) // 取引金額ベースのポイント付与ルール + .productBasedPointRules(new Object[]{items4,items5}) // 商品情報ベースのポイント付与ルール + .blacklistedProductRules(new Object[]{items6}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト + .applicableDaysOfWeek(new Integer[]{0,0,5}) // キャンペーンを適用する曜日 (複数指定) + .applicableTimeRanges(new Object[]{items7,items8}) // キャンペーンを適用する時間帯 (複数指定) + .applicableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象となる店舗IDのリスト + .blacklistedShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + .minimumNumberOfProducts(3310) // キャンペーンを適用する1会計内の商品個数の下限 + .minimumNumberOfAmount(9962) // キャンペーンを適用する1会計内の商品総額の下限 + .minimumNumberForCombinationPurchase(1410) // 複数種類の商品を同時購入するときの商品種別数の下限 .existInEachProductGroups(false) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - .maxPointAmount(3585) // キャンペーンによって付与されるポイントの上限 - .maxTotalPointAmount(1096) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + .maxPointAmount(4219) // キャンペーンによって付与されるポイントの上限 + .maxTotalPointAmount(3453) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 .destPrivateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント付与先となるマネーID .applicableAccountMetadata(applicable_account_metadata) // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 .applicableTransactionMetadata(applicable_transaction_metadata) // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - .budgetCapsAmount(244065392); // キャンペーン予算上限 + .budgetCapsAmount(1859163538); // キャンペーン予算上限 ``` @@ -920,11 +925,11 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 |400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|campaign_overlaps|同期間に開催されるキャンペーン間で優先度が重複してます|The campaign period overlaps under the same private-money / type / priority| -|422|shop_account_not_found||The shop account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|campaign_period_overlaps|同期間に開催されるキャンペーン間で優先度が重複してます|The campaign period overlaps under the same private-money / type / priority| |422|campaign_invalid_period||Invalid campaign period starts_at later than ends_at| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -1005,11 +1010,11 @@ 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"); +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("from", "12:00"); items8.addProperty("to", "23:59"); @@ -1022,33 +1027,33 @@ applicable_transaction_metadata.addProperty("value", "bronze"); Request request = new UpdateCampaign( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // campaignId: キャンペーンID ) - .name("tY0BvAArU4c3Hcr3rYtMZs1YhEQlphw1DkmThPoIdPA7X1r8JTPyIk7mw82VAIRkHcNMgqN77FQwuiGtQW4pnFSkfz0ZAYuHKErS89ga8rAwXpAiqwTxt1HL4wWzmkMDA4SVfWD13Zj3L9DQPYajb0tVdWEdtL2ujHbA770c9iXi2Q1VWdz") // キャンペーン名 - .startsAt("2023-11-07T17:31:26.000000Z") // キャンペーン開始日時 - .endsAt("2023-06-07T23:51:37.000000Z") // キャンペーン終了日時 - .priority(9621) // キャンペーンの適用優先度 - .event("topup") // イベント種別 - .description("ovLhT0BrHHw3tEdBOJZocfpIFB") // キャンペーンの説明文 + .name("tzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2") // キャンペーン名 + .startsAt("2022-07-19T10:00:07.000000Z") // キャンペーン開始日時 + .endsAt("2024-05-22T15:43:46.000000Z") // キャンペーン終了日時 + .priority(7347) // キャンペーンの適用優先度 + .event("payment") // イベント種別 + .description("98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcINC0MaOVTzOYUS4YiFzadS1dG4VhCAXdvL") // キャンペーンの説明文 .status("disabled") // キャンペーン作成時の状態 - .pointExpiresAt("2021-09-30T19:01:51.000000Z") // ポイント有効期限(絶対日時指定) - .pointExpiresInDays(1295) // ポイント有効期限(相対日数指定) + .pointExpiresAt("2023-11-21T12:04:13.000000Z") // ポイント有効期限(絶対日時指定) + .pointExpiresInDays(740) // ポイント有効期限(相対日数指定) .setExclusive(true) // キャンペーンの重複設定 .subject("all") // ポイント付与の対象金額の種別 .amountBasedPointRules(new Object[]{items}) // 取引金額ベースのポイント付与ルール .productBasedPointRules(new Object[]{items2,items3,items4}) // 商品情報ベースのポイント付与ルール - .blacklistedProductRules(new Object[]{items5,items6,items7}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト - .applicableDaysOfWeek(new Integer[]{3,6}) // キャンペーンを適用する曜日 (複数指定) - .applicableTimeRanges(new Object[]{items8}) // キャンペーンを適用する時間帯 (複数指定) - .applicableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象となる店舗IDのリスト + .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(334) // キャンペーンを適用する1会計内の商品個数の下限 - .minimumNumberOfAmount(1905) // キャンペーンを適用する1会計内の商品総額の下限 - .minimumNumberForCombinationPurchase(3323) // 複数種類の商品を同時購入するときの商品種別数の下限 + .minimumNumberOfProducts(7318) // キャンペーンを適用する1会計内の商品個数の下限 + .minimumNumberOfAmount(9052) // キャンペーンを適用する1会計内の商品総額の下限 + .minimumNumberForCombinationPurchase(6125) // 複数種類の商品を同時購入するときの商品種別数の下限 .existInEachProductGroups(false) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - .maxPointAmount(6052) // キャンペーンによって付与されるポイントの上限 - .maxTotalPointAmount(2753) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + .maxPointAmount(5449) // キャンペーンによって付与されるポイントの上限 + .maxTotalPointAmount(1307) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 .applicableAccountMetadata(applicable_account_metadata) // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 .applicableTransactionMetadata(applicable_transaction_metadata) // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - .budgetCapsAmount(1475333151); // キャンペーン予算上限 + .budgetCapsAmount(456514657); // キャンペーン予算上限 ``` diff --git a/docs/cashtray.md b/docs/cashtray.md index 8d491a6..ed49087 100644 --- a/docs/cashtray.md +++ b/docs/cashtray.md @@ -18,7 +18,7 @@ Request request = new CreateTransactionWithCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // cashtrayId: Cashtray用QRコードのID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // customerId: エンドユーザーのID ) - .strategy("money-only") // 支払い時の残高消費方式 + .strategy("point-preferred") // 支払い時の残高消費方式 .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID ``` @@ -107,6 +107,7 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など |422|cashtray_not_found|決済QRコードが見つかりません|Cashtray is not found| |422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |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| @@ -126,7 +127,7 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など |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|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| @@ -159,10 +160,10 @@ Cashtrayを作成します。 Request request = new CreateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ユーザーID - 8842.0 // amount: 金額 + 4669.0 // amount: 金額 ) .description("たい焼き(小倉)") // 取引履歴に表示する説明文 - .expiresIn(1916); // 失効時間(秒) + .expiresIn(7102); // 失効時間(秒) ``` @@ -390,9 +391,9 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可 Request request = new UpdateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // cashtrayId: CashtrayのID ) - .amount(4358.0) // 金額 + .amount(2045.0) // 金額 .description("たい焼き(小倉)") // 取引履歴に表示する説明文 - .expiresIn(6147); // 失効時間(秒) + .expiresIn(624); // 失効時間(秒) ``` diff --git a/docs/check.md b/docs/check.md index 69cf63b..b643ab3 100644 --- a/docs/check.md +++ b/docs/check.md @@ -13,17 +13,17 @@ QRコードを読み取る方法以外にも、このURLリンクを直接スマ ```JAVA Request request = new ListChecks() - .page(5349) // ページ番号 + .page(3549) // ページ番号 .perPage(50) // 1ページの表示数 .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID - .organizationCode("CGgqZsePkl6iY0bdXM6Nza2rTctUJ") // 組織コード - .expiresFrom("2024-07-07T06:06:09.000000Z") // 有効期限の期間によるフィルター(開始時点) - .expiresTo("2024-03-25T17:20:45.000000Z") // 有効期限の期間によるフィルター(終了時点) - .createdFrom("2021-11-02T11:24:24.000000Z") // 作成日時の期間によるフィルター(開始時点) - .createdTo("2024-03-05T18:33:11.000000Z") // 作成日時の期間によるフィルター(終了時点) + .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") // 作成日時の期間によるフィルター(終了時点) .issuerShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 発行店舗ID - .description("3qkWY") // チャージQRコードの説明文 - .setOnetime(true) // ワンタイムのチャージQRコードかどうか + .description("CjOUSN") // チャージQRコードの説明文 + .setOnetime(false) // ワンタイムのチャージQRコードかどうか .setDisabled(false); // 無効化されたチャージQRコードかどうか ``` @@ -205,7 +205,7 @@ Request request = new ListChecks() |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|organization_not_found||Organization not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |503|temporarily_unavailable||Service Unavailable| @@ -220,13 +220,13 @@ Request request = new ListChecks() Request request = new CreateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: 送金元の店舗アカウントID ) - .moneyAmount(8428.0) // 付与マネー額 - .pointAmount(7341.0) // 付与ポイント額 + .moneyAmount(5709.0) // 付与マネー額 + .pointAmount(9032.0) // 付与ポイント額 .description("test check") // 説明文(アプリ上で取引の説明文として表示される) - .setOnetime(false) // ワンタイムかどうかのフラグ - .usageLimit(9112) // ワンタイムでない場合の最大読み取り回数 - .expiresAt("2023-07-29T11:40:37.000000Z") // チャージQRコード自体の失効日時 - .pointExpiresAt("2023-07-24T13:43:22.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 + .setOnetime(true) // ワンタイムかどうかのフラグ + .usageLimit(569) // ワンタイムでない場合の最大読み取り回数 + .expiresAt("2022-11-10T08:44:22.000000Z") // チャージQRコード自体の失効日時 + .pointExpiresAt("2023-02-21T16:04:27.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 .pointExpiresInDays(60) // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) .bearPointAccount("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ポイント額を負担する店舗のウォレットID @@ -389,16 +389,16 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード |---|---|---|---| |400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| |400|invalid_parameter_only_merchants_can_attach_points_to_check||Only merchants can attach points to check| -|400|invalid_parameter_bear_point_account_identification_item_not_unique|ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます|Request parameters include either bear_point_account or bear_point_shop_id.| |400|invalid_parameter_combination_usage_limit_and_is_onetime||'usage_limit' can not be specified if 'is_onetime' is true.| -|400|invalid_parameters|項目が無効です|Invalid parameters| |400|invalid_parameter_expires_at||'expires_at' must be in the future| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|400|invalid_parameter_bear_point_account_identification_item_not_unique|ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます|Request parameters include either bear_point_account or bear_point_shop_id.| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|account_private_money_is_not_issued_by_organization||The account's private money is not issued by this organization| -|422|shop_account_not_found||The shop account is not found| -|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|bear_point_account_not_found|ポイントを負担する店舗アカウントが見つかりません|Bear point account not found.| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| @@ -448,13 +448,13 @@ Request request = new GetCheck( Request request = new UpdateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // checkId: チャージQRコードのID ) - .moneyAmount(7423.0) // 付与マネー額 - .pointAmount(8981.0) // 付与ポイント額 + .moneyAmount(1623.0) // 付与マネー額 + .pointAmount(2280.0) // 付与ポイント額 .description("test check") // チャージQRコードの説明文 - .setOnetime(false) // ワンタイムかどうかのフラグ - .usageLimit(1674) // ワンタイムでない場合の最大読み取り回数 - .expiresAt("2023-08-20T18:59:10.000000Z") // チャージQRコード自体の失効日時 - .pointExpiresAt("2022-03-02T01:05:10.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 + .setOnetime(true) // ワンタイムかどうかのフラグ + .usageLimit(3244) // ワンタイムでない場合の最大読み取り回数 + .expiresAt("2024-08-13T14:04:59.000000Z") // チャージQRコード自体の失効日時 + .pointExpiresAt("2021-08-26T07:57:47.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 .pointExpiresInDays(60) // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) .bearPointAccount("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント額を負担する店舗のウォレットID .setDisabled(false); // 無効化されているかどうかのフラグ @@ -709,6 +709,7 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |422|check_not_found|これはチャージQRコードではありません|This is not a topup QR code| |422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |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| @@ -728,7 +729,7 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |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|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| diff --git a/docs/coupon.md b/docs/coupon.md index 3873334..6ff76c6 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("bJ4pI") // クーポンID - .couponName("eH1mIjK91B") // クーポン名 - .issuedShopName("ovJNiyan2R") // 発行店舗名 - .availableShopName("9xEgMUhI") // 利用可能店舗名 - .availableFrom("2020-07-31T17:05:34.000000Z") // 利用可能期間 (開始日時) - .availableTo("2023-05-17T11:38:58.000000Z") // 利用可能期間 (終了日時) + .couponId("UgNjF9") // クーポンID + .couponName("pGXPoR6") // クーポン名 + .issuedShopName("V6EH9oG2E") // 発行店舗名 + .availableShopName("mJwg74tJd") // 利用可能店舗名 + .availableFrom("2021-09-17T06:11:05.000000Z") // 利用可能期間 (開始日時) + .availableTo("2022-06-22T11:15:22.000000Z") // 利用可能期間 (終了日時) .page(1) // ページ番号 .perPage(50); // 1ページ分の取得数 @@ -149,7 +149,7 @@ Request request = new ListCoupons( |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -163,24 +163,24 @@ Request request = new ListCoupons( ```JAVA Request request = new CreateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "yB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2IgQjODYIDOJbPEulQIvNSkQAL", - "2023-07-04T23:11:33.000000Z", - "2020-03-21T18:55:36.000000Z", + "5Llab29gfUQ6hTQL3", + "2020-12-30T15:57:59.000000Z", + "2021-01-11T11:18:00.000000Z", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // issuedShopId: 発行元の店舗ID ) - .description("tsxpQNr6y6a28m0nRuldHpSuEUpdPie9qQ2GFfC0at9jn8DwInc5YWbNc2E2NkkIcBn5byBGxSlhAbqrppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEli1NcEVyTrbdyJqmh3WRfGT9d54NzUibZax1gbEqwtEhHNUjZJEl7H6aHeFVmJSAKrLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5BuCe0yTSEIanUYTV2eUYLa") - .discountAmount(7344) - .discountPercentage(6877.0) - .discountUpperLimit(1564) - .displayStartsAt("2021-12-20T01:02:32.000000Z") // クーポンの掲載期間(開始日時) - .displayEndsAt("2022-05-04T02:49:32.000000Z") // クーポンの掲載期間(終了日時) + .description("ITMLHDmfb2965KcWooPsLAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aR") + .discountAmount(5623) + .discountPercentage(6960.0) + .discountUpperLimit(9272) + .displayStartsAt("2021-04-27T12:56:01.000000Z") // クーポンの掲載期間(開始日時) + .displayEndsAt("2020-11-05T14:23:13.000000Z") // クーポンの掲載期間(終了日時) .setDisabled(true) // 無効化フラグ .setHidden(true) // クーポン一覧に掲載されるかどうか - .setPublic(false) // アプリ配信なしで受け取れるかどうか - .code("2R1myjYz") // クーポン受け取りコード - .usageLimit(4422) // ユーザごとの利用可能回数(NULLの場合は無制限) - .minAmount(3587) // クーポン適用可能な最小取引額 - .setShopSpecified(true) // 特定店舗限定のクーポンかどうか + .setPublic(true) // アプリ配信なしで受け取れるかどうか + .code("HosccmXh") // クーポン受け取りコード + .usageLimit(5575) // ユーザごとの利用可能回数(NULLの場合は無制限) + .minAmount(8497) // クーポン適用可能な最小取引額 + .setShopSpecified(false) // 特定店舗限定のクーポンかどうか .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ストレージID @@ -423,7 +423,7 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |404|partner_storage_not_found|指定したIDのデータは保存されていません|Not found by storage_id| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|coupon_image_storage_conflict|クーポン画像のストレージIDは既に存在します|The coupon image storage_id is already exists| @@ -478,23 +478,23 @@ UUIDv4フォーマットである必要があり、フォーマットが異な Request request = new UpdateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // couponId: クーポンID ) - .name("TXKtxMi6tvMf7GbuKVOo81owGN6i0XTT33lqYdKQ0h3ghVZk7eOE9tcwx8MOKl5MRsa1MFEYP") - .description("OVzvPSXDUkbgX2oBshUtXGZ9lfp9TwgYPOmismihXWyqdhqoMR6oAdT5yPsPRTmUYdZdYDDGZDuZn0XgqQIqTu14tSh13qLZDYdRTWbMgZiB4q5yXIKvcyeytZUeCOzn479Q7e7CQ6mogsi4OQ6jQwMdVQzET3CTZR3naadmHoO9") - .discountAmount(6295) - .discountPercentage(6519.0) - .discountUpperLimit(5287) - .startsAt("2022-02-06T00:32:11.000000Z") - .endsAt("2022-07-31T18:16:53.000000Z") - .displayStartsAt("2022-06-17T14:02:15.000000Z") // クーポンの掲載期間(開始日時) - .displayEndsAt("2020-09-05T10:19:57.000000Z") // クーポンの掲載期間(終了日時) - .setDisabled(false) // 無効化フラグ + .name("E5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JE") + .description("ew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQa") + .discountAmount(3454) + .discountPercentage(7341.0) + .discountUpperLimit(5424) + .startsAt("2022-11-19T21:09:25.000000Z") + .endsAt("2020-10-04T17:07:18.000000Z") + .displayStartsAt("2022-03-16T02:48:40.000000Z") // クーポンの掲載期間(開始日時) + .displayEndsAt("2020-06-03T00:23:31.000000Z") // クーポンの掲載期間(終了日時) + .setDisabled(true) // 無効化フラグ .setHidden(false) // クーポン一覧に掲載されるかどうか - .setPublic(false) // アプリ配信なしで受け取れるかどうか - .code("wuXtyGn") // クーポン受け取りコード - .usageLimit(2149) // ユーザごとの利用可能回数(NULLの場合は無制限) - .minAmount(3067) // クーポン適用可能な最小取引額 + .setPublic(true) // アプリ配信なしで受け取れるかどうか + .code("2aIO") // クーポン受け取りコード + .usageLimit(7115) // ユーザごとの利用可能回数(NULLの場合は無制限) + .minAmount(6094) // クーポン適用可能な最小取引額 .setShopSpecified(false) // 特定店舗限定のクーポンかどうか - .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト + .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ストレージID ``` diff --git a/docs/customer.md b/docs/customer.md index 81402f3..f599172 100644 --- a/docs/customer.md +++ b/docs/customer.md @@ -105,8 +105,8 @@ Request request = new UpdateAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) .setSuspended(true) // ウォレットが凍結されているかどうか - .status("suspended") // ウォレット状態 - .canTransferTopup(true); // チャージ可能かどうか + .status("active") // ウォレット状態 + .canTransferTopup(false); // チャージ可能かどうか ``` @@ -184,10 +184,10 @@ Request request = new UpdateAccount( Request request = new ListAccountBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .page(5976) // ページ番号 - .perPage(8154) // 1ページ分の取引数 - .expiresAtFrom("2022-06-17T11:02:50.000000Z") // 有効期限の期間によるフィルター(開始時点) - .expiresAtTo("2021-12-31T04:15:32.000000Z") // 有効期限の期間によるフィルター(終了時点) + .page(7941) // ページ番号 + .perPage(3708) // 1ページ分の取引数 + .expiresAtFrom("2021-10-09T23:01:25.000000Z") // 有効期限の期間によるフィルター(開始時点) + .expiresAtTo("2023-02-28T03:03:13.000000Z") // 有効期限の期間によるフィルター(終了時点) .direction("desc"); // 有効期限によるソート順序 ``` @@ -291,10 +291,10 @@ Request request = new ListAccountBalances( Request request = new ListAccountExpiredBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .page(246) // ページ番号 - .perPage(9136) // 1ページ分の取引数 - .expiresAtFrom("2022-08-23T15:53:44.000000Z") // 有効期限の期間によるフィルター(開始時点) - .expiresAtTo("2020-12-16T22:49:43.000000Z") // 有効期限の期間によるフィルター(終了時点) + .page(2601) // ページ番号 + .perPage(9562) // 1ページ分の取引数 + .expiresAtFrom("2021-09-14T00:24:39.000000Z") // 有効期限の期間によるフィルター(開始時点) + .expiresAtTo("2020-04-28T23:50:47.000000Z") // 有効期限の期間によるフィルター(終了時点) .direction("asc"); // 有効期限によるソート順序 ``` @@ -398,9 +398,9 @@ Request request = new ListAccountExpiredBalances( Request request = new UpdateCustomerAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .status("pre-closed") // ウォレット状態 - .accountName("05rJdAnnKPkjJzRbGyuQYyb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qpLKYfd3JbJX5QcdKyJ1DmsToKu4w1tRUaP7awM87Mt7bWysO") // アカウント名 - .externalId("zqkBrGaMjb1sugqjEeek3") // 外部ID + .status("suspended") // ウォレット状態 + .accountName("MgU5LJ8nedbEkL6VCbZlYCZFu0YjXrv") // アカウント名 + .externalId("ck1kbCzvMElblaTUskxDWTi4syFdijXYZ6Fkp0v2rO") // 外部ID .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); // ウォレットに付加するメタデータ ``` @@ -508,15 +508,15 @@ Request request = new UpdateCustomerAccount( Request request = new GetCustomerAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .page(2150) // ページ番号 - .perPage(2245) // 1ページ分のウォレット数 - .createdAtFrom("2022-09-21T07:31:14.000000Z") // ウォレット作成日によるフィルター(開始時点) - .createdAtTo("2021-12-15T02:56:38.000000Z") // ウォレット作成日によるフィルター(終了時点) + .page(1321) // ページ番号 + .perPage(4359) // 1ページ分のウォレット数 + .createdAtFrom("2023-03-20T21:15:42.000000Z") // ウォレット作成日によるフィルター(開始時点) + .createdAtTo("2024-02-12T10:09:46.000000Z") // ウォレット作成日によるフィルター(終了時点) .setSuspended(true) // ウォレットが凍結状態かどうかでフィルターする - .status("pre-closed") // ウォレット状態 - .externalId("BbYL") // 外部ID - .tel("04659017") // エンドユーザーの電話番号 - .email("FPReFsmxax@T8Xw.com"); // エンドユーザーのメールアドレス + .status("suspended") // ウォレット状態 + .externalId("KP7CaX5R9O7hnOQMfDj4u8or1Z5a") // 外部ID + .tel("0629-6637554") // エンドユーザーの電話番号 + .email("vasIan6Df8@qsq2.com"); // エンドユーザーのメールアドレス ``` @@ -658,7 +658,7 @@ Request request = new GetCustomerAccounts( |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -678,7 +678,7 @@ Request request = new CreateCustomerAccount( ) .userName("ポケペイ太郎") // ユーザー名 .accountName("ポケペイ太郎のアカウント") // アカウント名 - .externalId("uc649dznjsqwxML0aHp"); // 外部ID + .externalId("k3ETquM3SQujWFDE153B47G8gAIFr9"); // 外部ID ``` @@ -745,8 +745,8 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|user_not_found||The user is not found| -|422|private_money_not_found||Private money not found| +|422|user_not_found|ユーザーが見つかりません|The user is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|user_attributes_external_id_not_match|ユーザー属性情報の外部IDが一致しません|Not match external id of user attributes| |422|user_attributes_not_found|ユーザー属性情報が存在しません|Not found the user attrubtes| @@ -766,10 +766,10 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで Request request = new GetShopAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .page(1386) // ページ番号 - .perPage(5878) // 1ページ分のウォレット数 - .createdAtFrom("2022-07-04T09:19:00.000000Z") // ウォレット作成日によるフィルター(開始時点) - .createdAtTo("2022-05-26T09:15:50.000000Z") // ウォレット作成日によるフィルター(終了時点) + .page(7547) // ページ番号 + .perPage(6106) // 1ページ分のウォレット数 + .createdAtFrom("2024-07-31T12:27:29.000000Z") // ウォレット作成日によるフィルター(開始時点) + .createdAtTo("2020-01-10T02:36:55.000000Z") // ウォレット作成日によるフィルター(終了時点) .setSuspended(true); // ウォレットが凍結状態かどうかでフィルターする ``` @@ -860,7 +860,7 @@ Request request = new GetShopAccounts( |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -877,10 +877,10 @@ Request request = new ListCustomerTransactions( ) .senderCustomerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 送金エンドユーザーID .receiverCustomerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 受取エンドユーザーID - .type("cashback") // 取引種別 - .setModified(false) // キャンセル済みかどうか - .from("2021-10-22T17:42:48.000000Z") // 開始日時 - .to("2020-04-24T17:13:27.000000Z") // 終了日時 + .type("payment") // 取引種別 + .setModified(true) // キャンセル済みかどうか + .from("2023-04-21T10:46:48.000000Z") // 開始日時 + .to("2023-09-25T10:08:26.000000Z") // 終了日時 .page(1) // ページ番号 .perPage(50); // 1ページ分の取引数 @@ -1042,7 +1042,7 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 |---|---|---|---| |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|private_money_not_found|マネーが見つかりません|Private money not found| |503|temporarily_unavailable||Service Unavailable| diff --git a/docs/error-response.csv b/docs/error-response.csv index 6b82dcd..9fc6068 100644 --- a/docs/error-response.csv +++ b/docs/error-response.csv @@ -2,7 +2,7 @@ method,path,status_code,type,ja,en 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 -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,503,temporarily_unavailable,,Service Unavailable GET,/transfers,403,,, ,,503,temporarily_unavailable,,Service Unavailable @@ -17,8 +17,9 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,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,private_money_not_found,"マネーが見つかりません",Private money not found ,,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 @@ -38,7 +39,7 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,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,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 @@ -59,6 +60,7 @@ POST,/transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token ,,409,already_registered_veritrans_card,"このカードは既に登録されています", ,,409,already_registered_veritrans_account,"この会員は既に登録されています", ,,422,transaction_not_found,"取引が見つかりません",Transaction not found +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,can_not_refund_bank_transaction,"銀行取引はキャンセルできません",Bank transactions cannot be cancelled. ,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable ,,422,veritrans_wrong_password_or_cancel,"本人認証に失敗しました。(パスワード間違い、キャンセル、カード会社判定)",Not complete authentication by cardholder. @@ -76,6 +78,7 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,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 @@ -103,14 +106,15 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On ,,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,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found ,,422,check_not_found,"これはチャージQRコードではありません",This is not a topup QR code ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,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 @@ -130,7 +134,7 @@ POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザ ,,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,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 @@ -145,6 +149,7 @@ POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,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 @@ -164,7 +169,7 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,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,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 @@ -176,6 +181,7 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,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 @@ -203,14 +209,15 @@ POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザに ,,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,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/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,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,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 @@ -230,7 +237,7 @@ POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザに ,,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,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 @@ -249,6 +256,7 @@ POST,/transactions/exchange,422,account_not_found,"アカウントが見つか ,,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 @@ -275,12 +283,13 @@ POST,/transactions/exchange,422,account_not_found,"アカウントが見つか POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対して許可されていない金額です。",The amount is unacceptable for the CPM token ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,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,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 @@ -300,7 +309,7 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,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,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 @@ -313,13 +322,14 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 POST,/transactions/bulk,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,organization_not_issuer,"発行体以外に許可されていない操作です",Unpermitted operation except for issuer organizations. ,,409,,, -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,bulk_transaction_invalid_csv_format,"入力されたCSVデータに誤りがあります",Invalid csv format 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,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 @@ -339,7 +349,7 @@ POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザに ,,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,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 @@ -356,10 +366,10 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,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,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,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,account_can_not_topup,"この店舗からはチャージできません",account can not topup @@ -368,6 +378,7 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,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 @@ -393,6 +404,7 @@ POST,/external-transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK toke ,,409,already_registered_veritrans_card,"このカードは既に登録されています", ,,409,already_registered_veritrans_account,"この会員は既に登録されています", ,,422,event_not_found,"イベントが見つかりません",Event not found +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,can_not_refund_bank_transaction,"銀行取引はキャンセルできません",Bank transactions cannot be cancelled. ,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable ,,422,veritrans_wrong_password_or_cancel,"本人認証に失敗しました。(パスワード間違い、キャンセル、カード会社判定)",Not complete authentication by cardholder. @@ -412,8 +424,8 @@ GET,/bulk-transactions/:uuid/jobs,403,unpermitted_admin_user,"この管理ユー ,,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 -,,422,shop_account_not_found,,The shop account is not found -,,422,private_money_not_found,,Private money not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed @@ -422,20 +434,20 @@ PATCH,/bills/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限 ,,404,notfound,,Not found GET,/checks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,organization_not_found,,Organization not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,503,temporarily_unavailable,,Service Unavailable POST,/checks,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameter_only_merchants_can_attach_points_to_check,,Only merchants can attach points to check -,,400,invalid_parameter_bear_point_account_identification_item_not_unique,"ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます",Request parameters include either bear_point_account or bear_point_shop_id. ,,400,invalid_parameter_combination_usage_limit_and_is_onetime,,'usage_limit' can not be specified if 'is_onetime' is true. -,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,400,invalid_parameter_expires_at,,'expires_at' must be in the future +,,400,invalid_parameters,"項目が無効です",Invalid parameters +,,400,invalid_parameter_bear_point_account_identification_item_not_unique,"ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます",Request parameters include either bear_point_account or bear_point_shop_id. ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,account_private_money_is_not_issued_by_organization,,The account's private money is not issued by this organization -,,422,shop_account_not_found,,The shop account is not found -,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,bear_point_account_not_found,"ポイントを負担する店舗アカウントが見つかりません",Bear point account not found. +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer GET,/checks/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,422,account_private_money_is_not_issued_by_organization,,The account's private money is not issued by this organization @@ -466,8 +478,8 @@ PATCH,/users/invitations/:uuid,403,,, ,,409,admin_user_conflict,,The Admin-user is already registered ,,503,failed_to_send_email,,Failed to send an E-mail. POST,/users/:uuid/accounts,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,user_not_found,,The user is not found -,,422,private_money_not_found,,Private money not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,user_attributes_external_id_not_match,"ユーザー属性情報の外部IDが一致しません",Not match external id of user attributes ,,422,user_attributes_not_found,"ユーザー属性情報が存在しません",Not found the user attrubtes @@ -486,13 +498,13 @@ DELETE,/users/:uuid,403,,, GET,/private-moneys,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,organization_not_found,,Organization not found GET,/private-moneys/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/private-moneys/:uuid/summary,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,,, -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,503,temporarily_unavailable,,Service Unavailable GET,/private-moneys/:uuid/clearings,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,503,temporarily_unavailable,,Service Unavailable GET,/private-moneys/:uuid/organization-summaries,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, @@ -506,7 +518,7 @@ POST,/private-moneys,400,invalid_parameters,"項目が無効です",Invalid para GET,/terminals,403,,, GET,/organizations,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found POST,/organizations,403,,, ,,409,organization_conflict,,The organization code is already used ,,409,shop_name_conflict,,The shop name is already used @@ -524,7 +536,7 @@ PUT,/organizations/:code,403,,, ,,503,temporarily_unavailable,,Service Unavailable GET,/organizations/:code/shops,403,,, GET,/shops,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,organization_not_found,,Organization not found ,,503,temporarily_unavailable,,Service Unavailable POST,/shops,403,,, @@ -545,6 +557,7 @@ GET,/shops/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限 PATCH,/shops/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,409,shop_name_conflict,,The shop name is already used +,,422,head_office_can_not_be_disabled,,Head office can not be disabled ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,unavailable_private_money,,Given private money(s) is/are not available ,,422,organization_not_member_organization,,The specified organization is not a member organization of the organization accessing this API @@ -553,13 +566,13 @@ GET,/customers,403,unpermitted_admin_user,"この管理ユーザには権限が ,,503,temporarily_unavailable,,Service Unavailable GET,/customers/transactions,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,private_money_not_found,"マネーが見つかりません",Private money not found ,,503,temporarily_unavailable,,Service Unavailable GET,/customers/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,422,account_not_found,"アカウントが見つかりません",The account is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found PATCH,/clearings/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,clearing_not_found,"精算が見つかりません",Clearing not found ,,503,temporarily_unavailable,,Service Unavailable @@ -567,10 +580,10 @@ GET,/clearings,403,unpermitted_admin_user,"この管理ユーザには権限が ,,503,temporarily_unavailable,,Service Unavailable GET,/clearings/preview,400,clearing_to_should_be_past_date,"締め日は過去の日付を指定してください",Should set past date for 'closing_date' ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found POST,/clearings,400,clearing_to_should_be_past_date,"締め日は過去の日付を指定してください",Should set past date for 'closing_date' ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/clearings/flico,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission GET,/clearings/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,clearing_not_found,"精算が見つかりません",Clearing not found @@ -583,7 +596,7 @@ POST,/messaging-operations,400,messaging_operation_over_transfer_limit,,The mess ,,403,,, ,,409,messaging_operation_already_done,,The messaging operation is already done ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,503,temporarily_unavailable,,Service Unavailable GET,/messaging-operations/receivers,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, @@ -628,13 +641,13 @@ POST,/device/pokeregis/:serial-number,400,terminal_is_already_invalidated,,The t ,,500,,, GET,/device/kiosks,400,,, ,,403,,, -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,organization_not_found,,Organization not found GET,/device/kiosk-maintenances,403,,, GET,/device/kiosks/:kiosk-id,400,,, ,,403,,, ,,404,,, -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,organization_not_found,,Organization not found POST,/merchandise-tag,403,,, ,,503,temporarily_unavailable,,Service Unavailable @@ -649,10 +662,10 @@ DELETE,/tokens/:token,403,unpermitted_admin_user,"この管理ユーザには権 ,,404,notfound,,Not found ,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/customers,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found POST,/accounts/customers,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,user_not_found,,The user is not found -,,422,private_money_not_found,,Private money not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,user_attributes_external_id_not_match,"ユーザー属性情報の外部IDが一致しません",Not match external id of user attributes ,,422,user_attributes_not_found,"ユーザー属性情報が存在しません",Not found the user attrubtes @@ -664,7 +677,7 @@ PATCH,/accounts/:uuid/customers,403,unpermitted_admin_user,"この管理ユー ,,422,user_attributes_not_found,"ユーザー属性情報が存在しません",Not found the user attrubtes ,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/shops,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,503,temporarily_unavailable,,Service Unavailable @@ -679,6 +692,7 @@ DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,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 @@ -741,11 +755,11 @@ PATCH,/seven-bank-atm-sessions/:qr-info,403,unpermitted_admin_user,"この管理 POST,/campaigns,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,campaign_overlaps,"同期間に開催されるキャンペーン間で優先度が重複してます",The campaign period overlaps under the same private-money / type / priority -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,campaign_period_overlaps,"同期間に開催されるキャンペーン間で優先度が重複してます",The campaign period overlaps under the same private-money / type / priority ,,422,campaign_invalid_period,,Invalid campaign period starts_at later than ends_at ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/campaigns,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,503,temporarily_unavailable,,Service Unavailable PATCH,/campaigns/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters @@ -767,12 +781,12 @@ DELETE,/webhooks/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,503,temporarily_unavailable,,Service Unavailable GET,/coupons,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found POST,/coupons,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,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,coupon_image_storage_conflict,"クーポン画像のストレージIDは既に存在します",The coupon image storage_id is already exists GET,/coupons/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. @@ -786,7 +800,7 @@ POST,/storage/v1,400,partner_decryption_failed,"リクエスト中の暗号デ ,,400,partner_client_not_found,"partner_clientが見つかりません。",The partner client is not found. ,,422,formats_not_supported_by_storage,"このフォーマットは対応していません",This format is not supported POST,/user-devices,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,user_not_found,,The user is not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found GET,/user-devices/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,user_device_not_found,,The user-device not found POST,/user-devices/:uuid/activate,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -796,25 +810,27 @@ POST,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザ ,,422,user_device_is_disabled,"このデバイスは無効化されています",The user-device is disabled ,,422,user_device_not_found,,The user-device not found ,,422,bank_registration_limit_error,"8口座を越えて登録できません",Can not register more than 8 accounts. -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,paytree_disabled_private_money,"このマネーは銀行から引き落とし出来ません",This money cannot be charged from the bank ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available ,,503,incomplete_configration_for_organization_bank,"現状、このマネーは銀行からのチャージを行えません。システム管理者へお問合せ下さい","Currently, this money cannot be topup from this bank. Please contact your system administrator." GET,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,forbidden,,Forbidden -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,user_device_not_found,,The user-device not found POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外部サービス起因により、チャージに失敗しました",Failure to topup due to external services of the bank ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,forbidden,,Forbidden ,,403,user_bank_disabled_error,"現在、このユーザーは銀行からのチャージは利用できません",Topup from this user's bank have now been stopped. ,,404,user_bank_not_found,"登録された銀行が見つかりません",Bank not found -,,422,private_money_not_found,,Private money not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,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,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 @@ -834,7 +850,7 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,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,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 diff --git a/docs/event.md b/docs/event.md index 57fac93..e5935b6 100644 --- a/docs/event.md +++ b/docs/event.md @@ -24,25 +24,17 @@ items2.addProperty("price", 100); items2.addProperty("quantity", 1); items2.addProperty("is_discounted", false); items2.addProperty("other", "{}"); -JsonObject items3 = new JsonObject(); -items3.addProperty("jan_code", "abc"); -items3.addProperty("name", "name1"); -items3.addProperty("unit_price", 100); -items3.addProperty("price", 100); -items3.addProperty("quantity", 1); -items3.addProperty("is_discounted", false); -items3.addProperty("other", "{}"); Request request = new CreateExternalTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 2991 // amount: 取引額 + 1360 // amount: 取引額 ) .description("たい焼き(小倉)") // 取引説明文 .metadata("{\"key\":\"value\"}") // ポケペイ外部取引メタデータ - .products(new Object[]{items,items2,items3}) // 商品情報データ + .products(new Object[]{items,items2}) // 商品情報データ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID - .doneAt("2023-05-25T07:59:05.000000Z"); // ポケペイ外部取引の実施時間 + .doneAt("2020-06-15T08:52:34.000000Z"); // ポケペイ外部取引の実施時間 ``` @@ -197,10 +189,10 @@ Request request = new CreateExternalTransaction( |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|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|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|account_can_not_topup|この店舗からはチャージできません|account can not topup| @@ -209,6 +201,7 @@ Request request = new CreateExternalTransaction( |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| diff --git a/docs/organization.md b/docs/organization.md index 729610e..1c9c347 100644 --- a/docs/organization.md +++ b/docs/organization.md @@ -9,8 +9,8 @@ Request request = new ListOrganizations( ) .page(1) // ページ番号 .perPage(50) // 1ページ分の取引数 - .name("U") // 組織名 - .code("rE8EA"); // 組織コード + .name("AZ") // 組織名 + .code("81ee9F1zae"); // 組織コード ``` @@ -85,7 +85,7 @@ Request request = new ListOrganizations( |---|---|---|---| |400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -99,15 +99,15 @@ Request request = new ListOrganizations( Request request = new CreateOrganization( "ox-supermarket", // code: 新規組織コード "oxスーパー", // name: 新規組織名 - new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // privateMoneyIds: 加盟店組織で有効にするマネーIDの配列 - "TMWkW53gnq@E0TT.com", // issuerAdminUserEmail: 発行体担当者メールアドレス - "1OD00WYy85@d5RK.com" // memberAdminUserEmail: 新規組織担当者メールアドレス + 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: 新規組織担当者メールアドレス ) .bankName("XYZ銀行") // 銀行名 .bankCode("1234") // 銀行金融機関コード .bankBranchName("ABC支店") // 銀行支店名 .bankBranchCode("123") // 銀行支店コード - .bankAccountType("other") // 銀行口座種別 (普通=saving, 当座=current, その他=other) + .bankAccountType("saving") // 銀行口座種別 (普通=saving, 当座=current, その他=other) .bankAccount("1234567") // 銀行口座番号 .bankAccountHolderName("フクザワユキチ") // 口座名義人名 .contactName("佐藤清"); // 担当者名 diff --git a/docs/private_money.md b/docs/private_money.md index 30c5d13..622fef6 100644 --- a/docs/private_money.md +++ b/docs/private_money.md @@ -76,8 +76,8 @@ Request request = new GetPrivateMoneys() Request request = new GetPrivateMoneyOrganizationSummaries( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .from("2024-02-22T07:00:55.000000Z") // 開始日時(toと同時に指定する必要有) - .to("2024-06-12T21:20:15.000000Z") // 終了日時(fromと同時に指定する必要有) + .from("2023-04-20T00:53:32.000000Z") // 開始日時(toと同時に指定する必要有) + .to("2023-12-03T18:01:03.000000Z") // 終了日時(fromと同時に指定する必要有) .page(1) // ページ番号 .perPage(50); // 1ページ分の取引数 @@ -160,8 +160,8 @@ Request request = new GetPrivateMoneyOrganizationSummaries( Request request = new GetPrivateMoneySummary( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .from("2020-09-03T06:32:11.000000Z") // 開始日時 - .to("2023-01-13T19:45:43.000000Z"); // 終了日時 + .from("2022-01-26T00:25:32.000000Z") // 開始日時 + .to("2020-09-07T00:32:24.000000Z"); // 終了日時 ``` diff --git a/docs/seven_bank_atm_session.md b/docs/seven_bank_atm_session.md index 9919583..741b540 100644 --- a/docs/seven_bank_atm_session.md +++ b/docs/seven_bank_atm_session.md @@ -8,7 +8,7 @@ ```JAVA Request request = new GetSevenBankATMSession( - "zi" // qrInfo: QRコードの情報 + "ZBysF" // qrInfo: QRコードの情報 ); ``` diff --git a/docs/shop.md b/docs/shop.md index c0e62af..6e8b15e 100644 --- a/docs/shop.md +++ b/docs/shop.md @@ -8,11 +8,11 @@ Request request = new ListShops() .organizationCode("pocketchange") // 組織コード .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID .name("oxスーパー三田店") // 店舗名 - .postalCode("1220311") // 店舗の郵便番号 + .postalCode("3903470") // 店舗の郵便番号 .address("東京都港区芝...") // 店舗の住所 - .tel("03469-368") // 店舗の電話番号 - .email("GqBqgGEHaf@l1jN.com") // 店舗のメールアドレス - .externalId("9k7uydClg9A7an27P") // 店舗の外部ID + .tel("0341-24862") // 店舗の電話番号 + .email("5mN9clYyKl@8cUs.com") // 店舗のメールアドレス + .externalId("Yw8CW8rHVcmWZsjKlFT0f7di") // 店舗の外部ID .withDisabled(true) // 無効な店舗を含める .page(1) // ページ番号 .perPage(50); // 1ページ分の取引数 @@ -175,7 +175,7 @@ Request request = new ListShops() |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|organization_not_found||Organization not found| |503|temporarily_unavailable||Service Unavailable| @@ -192,11 +192,11 @@ Request request = new ListShops() Request request = new CreateShop( "oxスーパー三田店" // shopName: 店舗名 ) - .shopPostalCode("260-8221") // 店舗の郵便番号 + .shopPostalCode("720-9003") // 店舗の郵便番号 .shopAddress("東京都港区芝...") // 店舗の住所 - .shopTel("059-718-421") // 店舗の電話番号 - .shopEmail("GJVwTTanAX@yFjL.com") // 店舗のメールアドレス - .shopExternalId("ag3gPPvlq0FFn") // 店舗の外部ID + .shopTel("06-5528-1163") // 店舗の電話番号 + .shopEmail("Ory7pQcwkQ@vvHf.com") // 店舗のメールアドレス + .shopExternalId("ZTUiaSBniTvgiFcfFWfXo") // 店舗の外部ID .organizationCode("ox-supermarket"); // 組織コード ``` @@ -312,14 +312,14 @@ Request request = new CreateShop( Request request = new CreateShopV2( "oxスーパー三田店" // name: 店舗名 ) - .postalCode("447-1925") // 店舗の郵便番号 + .postalCode("8426726") // 店舗の郵便番号 .address("東京都港区芝...") // 店舗の住所 - .tel("009-17057") // 店舗の電話番号 - .email("QTdAXKNGuL@NgDO.com") // 店舗のメールアドレス - .externalId("Ma1ptA22IkyjkgPuZU") // 店舗の外部ID + .tel("02-11-332") // 店舗の電話番号 + .email("xSJQCC2TKE@3m70.com") // 店舗のメールアドレス + .externalId("u0i2E7e3WCog3HknLhb4mGHjaX24j") // 店舗の外部ID .organizationCode("ox-supermarket") // 組織コード - .privateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗で有効にするマネーIDの配列 - .canTopupPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}); // 店舗でチャージ可能にするマネーIDの配列 + .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の配列 ``` @@ -516,13 +516,13 @@ Request request = new UpdateShop( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // shopId: 店舗ユーザーID ) .name("oxスーパー三田店") // 店舗名 - .postalCode("1120263") // 店舗の郵便番号 + .postalCode("6312761") // 店舗の郵便番号 .address("東京都港区芝...") // 店舗の住所 - .tel("09142125-5133") // 店舗の電話番号 - .email("PqyT3XyCFC@rR8u.com") // 店舗のメールアドレス - .externalId("ZnHFgU1ZOwuoe") // 店舗の外部ID - .privateMoneyIds(new String[]{"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の配列 + .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"); // 店舗の状態 ``` diff --git a/docs/transaction.md b/docs/transaction.md index 8e25e1f..4119302 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -6,7 +6,7 @@ CPMトークンの現在の状態を取得します。CPMトークンの有効 ```JAVA Request request = new GetCpmToken( - "3hpObBbd0WPCuqh90wnUEe" // cpmToken: CPMトークン + "l7UfMqNeIWxDQ5mYkDBp76" // cpmToken: CPMトークン ); ``` @@ -44,18 +44,18 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを ```JAVA Request request = new ListTransactions() - .from("2023-07-08T00:51:45.000000Z") // 開始日時 - .to("2020-02-10T02:33:26.000000Z") // 終了日時 + .from("2020-04-18T09:50:55.000000Z") // 開始日時 + .to("2022-09-23T18:31:36.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("Gn56xgq") // 取引ID + .transactionId("l") // 取引ID .organizationCode("pocketchange") // 組織コード .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID - .setModified(false) // キャンセルフラグ + .setModified(true) // キャンセルフラグ .types(new String[]{"topup","payment"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment .description("店頭QRコードによる支払い"); // 取引説明文 @@ -311,10 +311,10 @@ Request request = new CreateTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ) - .moneyAmount(5443) - .pointAmount(2814) - .pointExpiresAt("2021-03-29T07:18:08.000000Z") // ポイント有効期限 - .description("aOVTzOYUS4YiFzadS1dG4VhCAXdvLcusNkP92lEHAtBr5uMSg7mI2h9L5UgNjF9pGXPoR6V6EH9oG2"); + .moneyAmount(8752) + .pointAmount(6176) + .pointExpiresAt("2022-06-27T17:56:39.000000Z") // ポイント有効期限 + .description("yF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5q"); ``` @@ -416,8 +416,9 @@ Request request = new CreateTransaction( |403|NULL|NULL|NULL| |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|private_money_not_found|マネーが見つかりません|Private money not found| |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| @@ -437,7 +438,7 @@ Request request = new CreateTransaction( |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|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| @@ -465,11 +466,11 @@ Request request = new ListTransactionsV2() .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID .customerName("太郎") // エンドユーザー名 .description("店頭QRコードによる支払い") // 取引説明文 - .transactionId("8mJwg7") // 取引ID - .setModified(true) // キャンセルフラグ + .transactionId("peG") // 取引ID + .setModified(false) // キャンセルフラグ .types(new String[]{"topup","payment"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment - .from("2024-02-21T05:35:20.000000Z") // 開始日時 - .to("2020-07-20T07:39:54.000000Z") // 終了日時 + .from("2021-05-03T01:40:37.000000Z") // 開始日時 + .to("2021-05-13T19:05:55.000000Z") // 終了日時 .nextPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 次ページへ遷移する際に起点となるtransactionのID .prevPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 前ページへ遷移する際に起点となるtransactionのID .perPage(50); // 1ページ分の取引数 @@ -755,9 +756,9 @@ Request request = new CreateTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) .bearPointShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント支払時の負担店舗ID - .moneyAmount(4964) // マネー額 - .pointAmount(5793) // ポイント額 - .pointExpiresAt("2021-09-17T06:11:05.000000Z") // ポイント有効期限 + .moneyAmount(7901) // マネー額 + .pointAmount(5298) // ポイント額 + .pointExpiresAt("2023-08-17T00:14:32.000000Z") // ポイント有効期限 .description("初夏のチャージキャンペーン") // 取引履歴に表示する説明文 .metadata("{\"key\":\"value\"}") // 取引メタデータ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID @@ -925,6 +926,7 @@ Request request = new CreateTopupTransaction( |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |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| @@ -952,8 +954,8 @@ Request request = new CreateTopupTransaction( |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|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |503|temporarily_unavailable||Service Unavailable| @@ -976,15 +978,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", "{}"); +JsonObject items3 = new JsonObject(); +items3.addProperty("jan_code", "abc"); +items3.addProperty("name", "name1"); +items3.addProperty("unit_price", 100); +items3.addProperty("price", 100); +items3.addProperty("quantity", 1); +items3.addProperty("is_discounted", false); +items3.addProperty("other", "{}"); Request request = new CreatePaymentTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 6346 // amount: 支払い額 + 9367 // amount: 支払い額 ) .description("たい焼き(小倉)") // 取引履歴に表示する説明文 .metadata("{\"key\":\"value\"}") // 取引メタデータ - .products(new Object[]{items}) // 商品情報データ + .products(new Object[]{items,items2,items3}) // 商品情報データ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID .strategy("point-preferred"); // 支払い時の残高消費方式 @@ -1150,6 +1168,7 @@ Request request = new CreatePaymentTransaction( |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |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| @@ -1177,8 +1196,8 @@ Request request = new CreatePaymentTransaction( |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|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |503|temporarily_unavailable||Service Unavailable| @@ -1218,9 +1237,9 @@ items3.addProperty("quantity", 1); items3.addProperty("is_discounted", false); items3.addProperty("other", "{}"); Request request = new CreateCpmTransaction( - "5Llab29gfUQ6hTQL306GhI", // cpmToken: CPMトークン + "NKIGuoyWD3BHeU5bcdtREm", // cpmToken: CPMトークン "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID - 9428.0 // amount: 取引金額 + 1095.0 // amount: 取引金額 ) .description("たい焼き(小倉)") // 取引説明文 .metadata("{\"key\":\"value\"}") // 店舗側メタデータ @@ -1376,12 +1395,13 @@ Request request = new CreateCpmTransaction( |403|cpm_unacceptable_amount|このCPMトークンに対して許可されていない金額です。|The amount is unacceptable for the CPM token| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |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|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| @@ -1401,7 +1421,7 @@ Request request = new CreateCpmTransaction( |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|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| @@ -1428,7 +1448,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 - 2210.0 // amount: 送金額 + 9492.0 // amount: 送金額 ) .metadata("{\"key\":\"value\"}") // 取引メタデータ .description("たい焼き(小倉)") // 取引履歴に表示する説明文 @@ -1551,9 +1571,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|private_money_not_found|マネーが見つかりません|Private money not found| |422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |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| @@ -1573,7 +1594,7 @@ Request request = new CreateTransferTransaction( |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|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| @@ -1597,9 +1618,9 @@ Request request = new CreateExchangeTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 8142 + 961 ) - .description("HDmfb2965") + .description("PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7V") .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID ``` @@ -1697,6 +1718,7 @@ Request request = new CreateExchangeTransaction( |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| @@ -1780,7 +1802,7 @@ Request request = new RefundTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // transactionId: 取引ID ) .description("返品対応のため") // 取引履歴に表示する返金事由 - .returningPointExpiresAt("2021-04-08T22:36:51.000000Z"); // 返却ポイントの有効期限 + .returningPointExpiresAt("2020-03-20T07:43:18.000000Z"); // 返却ポイントの有効期限 ``` diff --git a/docs/transfer.md b/docs/transfer.md index e40a460..c6ceb53 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("2022-07-23T05:03:18.000000Z") // 集計期間の開始時刻 - .to("2021-11-29T20:41:07.000000Z") // 集計期間の終了時刻 + .from("2021-12-29T10:37:26.000000Z") // 集計期間の開始時刻 + .to("2021-02-25T17:29:04.000000Z") // 集計期間の終了時刻 .transferTypes(new String[]{"topup","payment"}); // 取引明細種別 (複数指定可) ``` @@ -123,19 +123,19 @@ Request request = new GetAccountTransferSummary( ```JAVA Request request = new ListTransfers() - .from("2020-12-23T07:10:15.000000Z") - .to("2020-02-09T21:54:30.000000Z") - .page(5360) - .perPage(3025) + .from("2021-01-30T20:49:05.000000Z") + .to("2023-02-22T20:08:11.000000Z") + .page(3365) + .perPage(5071) .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") - .shopName("LAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aRw08a") + .shopName("3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCx") .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") - .customerName("0rfHosccmXhG1yeE5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JEew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVUwFU1amkd1FBZBysFgH8TiyAaF4dUSA") + .customerName("ziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9") .transactionId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") - .setModified(true) - .transactionTypes(new String[]{"payment","exchange","topup","cashback","transfer"}) - .transferTypes(new String[]{"coupon","exchange","expire","transfer","cashback"}) // 取引明細の種類でフィルターします。 + .setModified(false) + .transactionTypes(new String[]{"topup","cashback","transfer","expire","exchange","payment"}) + .transferTypes(new String[]{"exchange"}) // 取引明細の種類でフィルターします。 .description("店頭QRコードによる支払い"); // 取引詳細説明文 ``` @@ -368,20 +368,20 @@ Request request = new ListTransfers() ```JAVA Request request = new ListTransfersV2() .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID - .shopName("iyJ302sQl233vCftoqwC5tymvF1K23X2uYu46ypSW9PxtiaID1SUCfz9y") // 店舗名 + .shopName("pzYekawpUouvYHKlj0G") // 店舗名 .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID - .customerName("elMoF9a26c2RLHzQWOO42l0o0g8SXRzZ3pUKHHeXuuwg12Ygg3AsTOryINKyRmJ3gWCDcmsuvkMrJePtGFhv4aIw1aGtGR3fEQezBo8XnXONHGXDMcl8tuhVdB5KkP8PHvZEmmcBKkGsr9sdEDTBkey7pr4d2jpaf36YY6mrG9Y2ztoKUUUx5B1bSO8xEgnoe60dnW") // エンドユーザー名 + .customerName("L0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLKUg3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7") // エンドユーザー名 .transactionId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 取引ID .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID - .setModified(true) // キャンセルフラグ - .transactionTypes(new String[]{"exchange"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + .setModified(false) // キャンセルフラグ + .transactionTypes(new String[]{"exchange","payment","cashback","expire"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment .nextPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 次ページへ遷移する際に起点となるtransferのID .prevPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 前ページへ遷移する際に起点となるtransferのID .perPage(50) // 1ページ分の取引数 - .transferTypes(new String[]{"payment","topup","transfer","coupon","expire","exchange","campaign"}) // 取引明細種別 (複数指定可) + .transferTypes(new String[]{"transfer","exchange","coupon","cashback","payment","topup"}) // 取引明細種別 (複数指定可) .description("店頭QRコードによる支払い") // 取引詳細説明文 - .from("2022-01-25T09:14:02.000000Z") // 開始日時 - .to("2020-03-29T20:01:58.000000Z"); // 終了日時 + .from("2020-02-10T06:55:29.000000Z") // 開始日時 + .to("2024-03-31T15:07:15.000000Z"); // 終了日時 ``` diff --git a/docs/user_device.md b/docs/user_device.md index c5d714c..7f88a82 100644 --- a/docs/user_device.md +++ b/docs/user_device.md @@ -54,7 +54,7 @@ Request request = new CreateUserDevice( |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|user_not_found||The user is not found| +|422|user_not_found|ユーザーが見つかりません|The user is not found| diff --git a/docs/webhook.md b/docs/webhook.md index 0561624..f9cd713 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -66,7 +66,7 @@ Request request = new ListWebhooks() ```JAVA Request request = new CreateWebhook( "bulk_shops", // task: タスク名 - "OR" // url: URL + "r5u" // url: URL ); ``` @@ -162,7 +162,7 @@ Request request = new DeleteWebhook( Request request = new UpdateWebhook( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // webhookId: Webhook ID ) - .url("Z") // URL + .url("MSg7mI2h9") // URL .setActive(true) // 有効/無効 .task("bulk_shops"); // タスク名 diff --git a/partner.yaml b/partner.yaml index 93c2872..7bf01bf 100644 --- a/partner.yaml +++ b/partner.yaml @@ -8403,6 +8403,10 @@ paths: type: string format: uuid title: '銀行ID' + receiver_user_id: + type: string + format: uuid + title: '受け取りユーザーID (デフォルトは自身)' request_id: type: string format: uuid diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreateBankTopupTransaction.java b/src/main/java/jp/pokepay/partnerapi/request/CreateBankTopupTransaction.java index 80db476..3a7fe1b 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/CreateBankTopupTransaction.java +++ b/src/main/java/jp/pokepay/partnerapi/request/CreateBankTopupTransaction.java @@ -10,6 +10,7 @@ public class CreateBankTopupTransaction extends Request { private String privateMoneyId; private Integer amount; private String bankId; + private String receiverUserId; private String requestId; private String userDeviceId; @@ -21,6 +22,11 @@ public CreateBankTopupTransaction(String userDeviceId, String privateMoneyId, in this.requestId = requestId; } + public CreateBankTopupTransaction receiverUserId(String receiverUserId) { + this.receiverUserId = receiverUserId; + return this; + } + @Override public Method method() { return Method.POST; @@ -42,6 +48,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); } if (amount != null) { object.add("amount", context.serialize(this.amount)); } if (bankId != null) { object.add("bank_id", context.serialize(this.bankId)); } + if (receiverUserId != null) { object.add("receiver_user_id", context.serialize(this.receiverUserId)); } if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); } return object; } diff --git a/src/main/java/jp/pokepay/partnerapi/request/GetSevenBankATMSession.java b/src/main/java/jp/pokepay/partnerapi/request/GetSevenBankATMSession.java index 85bbf91..a44f966 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/GetSevenBankATMSession.java +++ b/src/main/java/jp/pokepay/partnerapi/request/GetSevenBankATMSession.java @@ -6,10 +6,10 @@ import jp.pokepay.partnerapi.response.*; import java.lang.reflect.Type; -public class GetSevenBankAtmSession extends Request { +public class GetSevenBankATMSession extends Request { private String qrInfo; - public GetSevenBankAtmSession(String qrInfo) { + public GetSevenBankATMSession(String qrInfo) { this.qrInfo = qrInfo; } @@ -25,7 +25,7 @@ public String path() { @Override public Type getResponseClass() { - return SevenBankAtmSession.class; + return SevenBankATMSession.class; } @Override diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/GetSevenBankAtmSessionSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetSevenBankATMSessionSerializer.java similarity index 63% rename from src/main/java/jp/pokepay/partnerapi/request/serializer/GetSevenBankAtmSessionSerializer.java rename to src/main/java/jp/pokepay/partnerapi/request/serializer/GetSevenBankATMSessionSerializer.java index 18c2860..7e9f26e 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/serializer/GetSevenBankAtmSessionSerializer.java +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetSevenBankATMSessionSerializer.java @@ -5,13 +5,13 @@ import com.google.gson.JsonElement; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; -import jp.pokepay.partnerapi.request.GetSevenBankAtmSession; +import jp.pokepay.partnerapi.request.GetSevenBankATMSession; import java.lang.reflect.Type; -public class GetSevenBankAtmSessionSerializer implements JsonSerializer { +public class GetSevenBankATMSessionSerializer implements JsonSerializer { @Override - public JsonElement serialize(GetSevenBankAtmSession src, Type typeOfSrc, JsonSerializationContext context) { + public JsonElement serialize(GetSevenBankATMSession 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 9a34cde..8c05830 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java @@ -81,7 +81,7 @@ import jp.pokepay.partnerapi.request.CreateCoupon; import jp.pokepay.partnerapi.request.GetCoupon; import jp.pokepay.partnerapi.request.UpdateCoupon; -import jp.pokepay.partnerapi.request.GetSevenBankAtmSession; +import jp.pokepay.partnerapi.request.GetSevenBankATMSession; public class SerializerHelper { public static void registerTypeAdapters(GsonBuilder gsonBuilder) { @@ -163,6 +163,6 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) { gsonBuilder.registerTypeAdapter(CreateCoupon.class, new CreateCouponSerializer()); gsonBuilder.registerTypeAdapter(GetCoupon.class, new GetCouponSerializer()); gsonBuilder.registerTypeAdapter(UpdateCoupon.class, new UpdateCouponSerializer()); - gsonBuilder.registerTypeAdapter(GetSevenBankAtmSession.class, new GetSevenBankAtmSessionSerializer()); + gsonBuilder.registerTypeAdapter(GetSevenBankATMSession.class, new GetSevenBankATMSessionSerializer()); } } diff --git a/src/main/java/jp/pokepay/partnerapi/response/SevenBankATMSession.java b/src/main/java/jp/pokepay/partnerapi/response/SevenBankATMSession.java index c772bed..f6fab37 100644 --- a/src/main/java/jp/pokepay/partnerapi/response/SevenBankATMSession.java +++ b/src/main/java/jp/pokepay/partnerapi/response/SevenBankATMSession.java @@ -1,7 +1,7 @@ // DO NOT EDIT: File is generated by code generator. package jp.pokepay.partnerapi.response; -public class SevenBankAtmSession extends Response { +public class SevenBankATMSession extends Response { private String qrInfo; private AccountDetail account; private Integer amount; diff --git a/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java b/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java index a827fc8..67f4d08 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( - "19ae164f-2e35-47c0-8607-9395a8ce6741" + "8731c411-b461-4e4a-9764-89255ea8a85c" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/CreateBankTest.java b/src/test/java/jp/pokepay/partnerapi/CreateBankTest.java index c7f42d3..af76506 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( - "7dd6fc10-8c3f-410d-adde-167a2a74efa5", - "47088f06-f12c-4cbe-b4e6-7bfbefa4b16e", - "fWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8UioFkI4pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L6y5R4kNHRMXQTzW1iBiUI5J", - "GbGoEyKdo0WvNvuZ" + "3ca9f004-3488-4140-af5b-15c3eabf1100", + "0c771527-c425-4790-b992-69f2ae020db2", + "XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0", + "vPKHwlN5cgpKhTDjrt62aO0gTJK" ); try { PartnerAPITest.getClient().send(request); @@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateBank( - "7dd6fc10-8c3f-410d-adde-167a2a74efa5", - "47088f06-f12c-4cbe-b4e6-7bfbefa4b16e", - "fWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8UioFkI4pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L6y5R4kNHRMXQTzW1iBiUI5J", - "GbGoEyKdo0WvNvuZ" + "3ca9f004-3488-4140-af5b-15c3eabf1100", + "0c771527-c425-4790-b992-69f2ae020db2", + "XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0", + "vPKHwlN5cgpKhTDjrt62aO0gTJK" ) - .birthdate("zOy"); + .birthdate("vsFX8p"); 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( - "7dd6fc10-8c3f-410d-adde-167a2a74efa5", - "47088f06-f12c-4cbe-b4e6-7bfbefa4b16e", - "fWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8UioFkI4pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L6y5R4kNHRMXQTzW1iBiUI5J", - "GbGoEyKdo0WvNvuZ" + "3ca9f004-3488-4140-af5b-15c3eabf1100", + "0c771527-c425-4790-b992-69f2ae020db2", + "XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0", + "vPKHwlN5cgpKhTDjrt62aO0gTJK" ) - .email("md6UzJ163l@ry8C.com") - .birthdate("4rDtJNzc"); + .email("CgUNdYXQCh@ONhw.com") + .birthdate("GHDaQRst"); 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 251de57..c35d61b 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( - "a2caf645-c346-431d-a4f2-000f00a6f176", - "4c0009ef-f296-4117-a2b4-98bc3219c2bb", - 3763, - "d3d22db7-c5c9-4c12-a5d3-b65e17755b95", - "006318bd-c7c2-4c05-b9f5-1a5ec665e124" + "eae535ff-5685-4921-bcbd-740d68355f05", + "2d0004fa-3df9-4790-a6c3-2e4d8cb93aab", + 4420, + "50da505b-1a2a-43b6-b234-c9da39d2185e", + "5254fac9-c835-443a-baaf-5a67dc14e889" ); try { PartnerAPITest.getClient().send(request); @@ -29,4 +29,25 @@ void test0() throws ConnectionError, ProcessingError { assertNotEquals("invalid_parameters", e.getType()); } } + @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" + ) + .receiverUserId("c581ccb9-aa16-41e2-bec4-09ae24384255"); + 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/CreateBillTest.java b/src/test/java/jp/pokepay/partnerapi/CreateBillTest.java index 7939ca1..d28ad54 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( - "a4946d3e-ec65-4ac1-a9ac-e1f9acd953b8", - "8fa62978-acd9-4096-9de7-686dba687d53" + "c404cacf-f9c6-4b71-8977-32134cce0494", + "887fe62c-62c0-4078-b276-e6f80b19b3eb" ); try { PartnerAPITest.getClient().send(request); @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateBill( - "a4946d3e-ec65-4ac1-a9ac-e1f9acd953b8", - "8fa62978-acd9-4096-9de7-686dba687d53" + "c404cacf-f9c6-4b71-8977-32134cce0494", + "887fe62c-62c0-4078-b276-e6f80b19b3eb" ) - .description("SWd6n"); + .description("wVYBDQiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj"); 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( - "a4946d3e-ec65-4ac1-a9ac-e1f9acd953b8", - "8fa62978-acd9-4096-9de7-686dba687d53" + "c404cacf-f9c6-4b71-8977-32134cce0494", + "887fe62c-62c0-4078-b276-e6f80b19b3eb" ) - .amount(4745.0) - .description("dHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq"); + .amount(3754.0) + .description("k3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWw"); 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 11eb6f0..6e6fe27 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java @@ -903,10 +903,10 @@ void test14() throws ConnectionError, ProcessingError { .subject("money") .setExclusive(false) .pointExpiresInDays(5580) - .pointExpiresAt("2020-08-14T02:04:17.000000Z") + .pointExpiresAt("2024-08-01T12:57:01.000000Z") .status("disabled") - .description("WCyKm4tG2FzeWXxPN6RiMVhZmm") - .bearPointShopId("5abdff47-baea-405e-b011-d35427a38d8d"); + .description("cWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjP") + .bearPointShopId("c5f62e06-7f17-4426-92ac-f1a83e64c546"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -924,8 +924,104 @@ void test15() 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("from", "12:00"); + items3.addProperty("to", "23:59"); + JsonObject items4 = new JsonObject(); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); + JsonObject items5 = new JsonObject(); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); + JsonObject items6 = new JsonObject(); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); + JsonObject items7 = new JsonObject(); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); + JsonObject items8 = new JsonObject(); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); + JsonObject items9 = new JsonObject(); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); + JsonObject items10 = new JsonObject(); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("classification_code", "c123"); + JsonObject items11 = new JsonObject(); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("classification_code", "c123"); + JsonObject items12 = new JsonObject(); + 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); + 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[]{"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") + .status("disabled") + .description("r7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6Mis") + .bearPointShopId("9f337750-19a8-4dd4-81d8-003bd1fc6d76"); + 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("product_code", "4912345678904"); items3.addProperty("classification_code", "c123"); @@ -968,66 +1064,13 @@ void test15() throws ConnectionError, ProcessingError { JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("subject_more_than_or_equal", 1000); + items12.addProperty("subject_less_than", 5000); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); - 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); - 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); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -1036,22 +1079,23 @@ void test15() throws ConnectionError, ProcessingError { 6174, "topup" ) - .applicableShopIds(new String[]{"bcb37a0e-c5a3-43ea-9006-7f17bf5fe426","46557a92-b7ac-41a8-86cc-6da75d9c5908"}) - .minimumNumberForCombinationPurchase(7961) - .minimumNumberOfAmount(5582) - .minimumNumberOfProducts(2860) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{4,4,0,4,0}) - .blacklistedProductRules(new Object[]{items2,items3,items4,items5,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("money") + .applicableShopIds(new String[]{"013b0a99-f0c1-4450-bebc-59276a539257","fb6937d6-44fd-4d2c-a6b0-16a592992ac0","5991d5a1-f95c-4c8d-aeeb-5f4963c3c6b2","eaf58ae3-5c70-45db-a9da-d2726b4fe55f","f466ca77-d82f-4ce8-b4e0-198210a8cb90","da9952fd-9930-439d-8ea3-5f1ad49d075e","92bf133b-25fe-419a-b2e4-3a683b2a51d4","f42f6a9c-3382-4873-8990-bf189801a753","4286dffb-a63a-410c-b88f-69185e691ece","69340d9f-d0ba-4dbd-bea2-27d828808784"}) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(8003) + .minimumNumberOfAmount(7361) + .minimumNumberOfProducts(77) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{3,0,3,0,2,4,6,0,2}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7}) + .productBasedPointRules(new Object[]{items8,items9,items10,items11}) + .amountBasedPointRules(new Object[]{items12,items13}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(9643) - .pointExpiresAt("2021-08-19T16:40:06.000000Z") - .status("enabled") - .description("tzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwh") - .bearPointShopId("e3265474-e8e0-4982-90fd-99300c52339d"); + .pointExpiresInDays(2597) + .pointExpiresAt("2020-03-27T07:03:19.000000Z") + .status("disabled") + .description("9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO") + .bearPointShopId("64659729-edbc-420a-b542-9b973fb793a2"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1064,7 +1108,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"); @@ -1111,11 +1155,17 @@ void test16() throws ConnectionError, ProcessingError { items15.addProperty("product_code", "4912345678904"); 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("classification_code", "c123"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("classification_code", "c123"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); @@ -1167,9 +1217,8 @@ void test16() throws ConnectionError, ProcessingError { 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); + 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"); @@ -1180,11 +1229,6 @@ void test16() throws ConnectionError, ProcessingError { 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", @@ -1193,23 +1237,96 @@ void test16() throws ConnectionError, ProcessingError { 6174, "topup" ) - .applicableShopIds(new String[]{"36045f1a-075e-433b-be9a-15b2bb7603e4","21ce3a68-51d4-4a9c-8273-90890dd17f90","f0a2bf18-a753-4ffb-ba0c-4f7883721b8f","ecb36918-1ece-4d9f-babd-e33ea9671ea2"}) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(1925) - .minimumNumberOfAmount(8003) - .minimumNumberOfProducts(7361) + .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[]{4,3,1,0,3,0,3,0,2}) - .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16,items17}) - .productBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24,items25,items26}) - .amountBasedPointRules(new Object[]{items27,items28,items29}) - .subject("money") + .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(4132) - .pointExpiresAt("2021-08-11T06:16:04.000000Z") + .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); + Request request = new CreateCampaign( + "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", + "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", + "2021-02-25T21:26:31.000000Z", + "2020-09-09T10:07:27.000000Z", + 6174, + "topup" + ) + .applicableShopIds(new String[]{"51abeb94-00a2-4580-9060-efffddc839ff","05207684-2f8e-4267-894d-f85fd2d14713","ad351f28-6079-42e4-85e1-256c69d8c247","cb91613b-da37-48a9-b602-aa71a94545bc","2d4d922e-f794-4845-8fb4-85014d0b48d4","347c6031-7ff6-414f-b20c-b482317519cb","0253d98d-cf41-4a1e-b449-e277a7b67aa5","242f0104-27e7-4619-93b5-10c14521aa01","21b20767-a121-4069-898b-3d5b6172b4a7","25c78b2a-b46a-45d7-88d2-7179d5182ca9"}) + .maxTotalPointAmount(2297) + .maxPointAmount(3609) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(7151) + .minimumNumberOfAmount(2668) + .minimumNumberOfProducts(5412) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{6,6,0,3,1,5,4}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7}) + .productBasedPointRules(new Object[]{items8}) + .amountBasedPointRules(new Object[]{items9}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(906) + .pointExpiresAt("2021-04-08T00:19:48.000000Z") .status("enabled") - .description("7PH9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5") - .bearPointShopId("2ea4d217-ef5f-4cd3-b6dc-295dfaf45745"); + .description("evW68NKpdkq0PMSo6iR11TAHpgNTXOx") + .bearPointShopId("87223ac6-6082-4aa1-bd26-17778d231371"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1222,7 +1339,7 @@ void test16() throws ConnectionError, ProcessingError { } } @Test - void test17() throws ConnectionError, ProcessingError { + void test19() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -1245,29 +1362,50 @@ void test17() throws ConnectionError, ProcessingError { items7.addProperty("from", "12:00"); items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); 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"); @@ -1289,144 +1427,13 @@ 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("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); - 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[]{"59ca5ddb-25c0-4945-8f29-edbcb996e20a","f1a86eb5-c142-4b97-a2f0-7eac00280ab0","e9389154-5989-4461-bda1-8b8d1b2c1599","7ffb6ca9-8284-4715-8cbc-a291b7fdb619","406edac2-bb72-4693-ad6e-e2bdd6f24d64","98974769-0982-44c3-8dbe-844edc002f1d","bfd94c78-8258-4f58-8077-0d1a2c9baa6a"}) - .maxPointAmount(9671) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(2343) - .minimumNumberOfAmount(7379) - .minimumNumberOfProducts(7874) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .applicableDaysOfWeek(new Integer[]{6,4,6,6,0,4}) - .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13,items14,items15}) - .productBasedPointRules(new Object[]{items16,items17,items18,items19}) - .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24,items25,items26}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(4637) - .pointExpiresAt("2021-06-28T22:45:36.000000Z") - .status("disabled") - .description("CHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2") - .bearPointShopId("6d76af86-156b-4f88-9e2b-7c4499aa4be8"); - 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("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("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("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", @@ -1435,25 +1442,26 @@ void test18() throws ConnectionError, ProcessingError { 6174, "topup" ) - .applicableShopIds(new String[]{"2fad74b5-42c8-42cc-8a63-4a89e7eaaf84","ad9bced3-473d-464e-8ffc-c096405d9217","31cc0954-2243-456d-b330-f9f9a2034002","fbe1634b-3989-481a-9b13-39bd516d56ff","9f1bc933-5e1f-43f9-b8d7-3c49c977b7f4","78fe0ac3-fdab-4265-b982-4ed6093da859","51abeb94-00a2-4580-9060-efffddc839ff","05207684-2f8e-4267-894d-f85fd2d14713","ad351f28-6079-42e4-85e1-256c69d8c247"}) - .maxTotalPointAmount(8508) - .maxPointAmount(6712) + .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(6583) - .minimumNumberOfAmount(1469) - .minimumNumberOfProducts(4655) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) - .applicableDaysOfWeek(new Integer[]{4,1,4,1,6,2}) - .blacklistedProductRules(new Object[]{items6,items7,items8}) - .productBasedPointRules(new Object[]{items9,items10}) - .amountBasedPointRules(new Object[]{items11,items12,items13,items14,items15}) + .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}) .subject("all") .setExclusive(false) - .pointExpiresInDays(261) - .pointExpiresAt("2022-05-19T04:10:59.000000Z") - .status("disabled") - .description("gijWRyxneekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJAVzV6vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2") - .bearPointShopId("76bf0274-d087-4ec2-92ac-a4c6c89835e5"); + .pointExpiresInDays(2086) + .pointExpiresAt("2020-04-13T12:51:34.000000Z") + .status("enabled") + .description("vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsP") + .bearPointShopId("3cf579ef-5eb2-42f6-abbf-6ce36c4fbcda"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1466,7 +1474,10 @@ void test18() throws ConnectionError, ProcessingError { } } @Test - void test19() throws ConnectionError, ProcessingError { + void test20() 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"); @@ -1489,8 +1500,8 @@ void test19() throws ConnectionError, ProcessingError { items7.addProperty("from", "12:00"); items7.addProperty("to", "23:59"); 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"); @@ -1513,11 +1524,17 @@ void test19() throws ConnectionError, ProcessingError { items15.addProperty("product_code", "4912345678904"); 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("classification_code", "c123"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("classification_code", "c123"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); @@ -1563,8 +1580,59 @@ void test19() throws ConnectionError, ProcessingError { 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); + 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); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -1573,26 +1641,27 @@ void test19() throws ConnectionError, ProcessingError { 6174, "topup" ) - .applicableShopIds(new String[]{"ab108388-64a5-4016-a02f-7e72a5a4aee8"}) - .destPrivateMoneyId("ca541eff-d653-40f5-8cb2-3e9718582200") - .maxTotalPointAmount(1203) - .maxPointAmount(872) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(9405) - .minimumNumberOfAmount(4671) - .minimumNumberOfProducts(2018) - .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,items16,items17}) - .productBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24}) - .amountBasedPointRules(new Object[]{items25}) + .applicableShopIds(new String[]{"a08b534b-8484-46a8-a1bb-6f9c4bfe0466","983dbe34-9037-4930-8d44-0c77ec02ff91","95bfea86-93b5-4959-9f9e-edacaeca4091","6b4dd3c9-f1b6-4dd3-a585-ec15dd16ed41","e5232fa6-bda2-4dad-a6a4-b027501160cf","56530d05-43c2-4294-842b-03c2ef74dce7","adf90152-c595-4b96-bc14-c19147994541"}) + .applicableAccountMetadata(applicable_account_metadata) + .destPrivateMoneyId("bd69dc67-93ed-4eea-85de-e7f86a483e90") + .maxTotalPointAmount(5697) + .maxPointAmount(5312) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(328) + .minimumNumberOfAmount(7935) + .minimumNumberOfProducts(8451) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{3,1,3,3,6,1,1,2}) + .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15}) + .productBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23,items24,items25}) + .amountBasedPointRules(new Object[]{items26,items27,items28,items29,items30,items31,items32,items33,items34,items35}) .subject("money") - .setExclusive(false) - .pointExpiresInDays(845) - .pointExpiresAt("2024-02-09T08:07:41.000000Z") + .setExclusive(true) + .pointExpiresInDays(9158) + .pointExpiresAt("2021-06-30T00:37:58.000000Z") .status("enabled") - .description("IYTQdqHJ") - .bearPointShopId("9fb397da-b925-4ab8-9709-596e7c6ab6c0"); + .description("dsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQi") + .bearPointShopId("6a264609-5e2b-4175-967f-0ffab378b03a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1605,7 +1674,10 @@ void test19() throws ConnectionError, ProcessingError { } } @Test - void test20() throws ConnectionError, ProcessingError { + void test21() throws ConnectionError, ProcessingError { + JsonObject applicable_transaction_metadata = new JsonObject(); + applicable_transaction_metadata.addProperty("key", "rank"); + applicable_transaction_metadata.addProperty("value", "bronze"); JsonObject applicable_account_metadata = new JsonObject(); applicable_account_metadata.addProperty("key", "sex"); applicable_account_metadata.addProperty("value", "male"); @@ -1625,35 +1697,26 @@ void test20() 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"); 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"); @@ -1681,113 +1744,6 @@ void test20() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("subject_more_than_or_equal", 1000); - items17.addProperty("subject_less_than", 5000); - 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[]{"abdd9b18-5d48-4a8f-85bc-abd6ff3a35be","19c4f3a6-c066-4b01-a7dc-3870d1b7c4c9","bdf5d628-c8be-4442-961d-2c740db33645","39070aa1-9bcf-4e4d-bbad-dad0f7b56332","3f772780-363b-4a01-a6d5-be928f919827"}) - .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("77eae437-cf2a-4949-abd9-eef9ab37e6dc") - .maxTotalPointAmount(2208) - .maxPointAmount(5864) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(3330) - .minimumNumberOfAmount(1900) - .minimumNumberOfProducts(3752) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) - .applicableDaysOfWeek(new Integer[]{4,5,0,5,6,1,4,4}) - .blacklistedProductRules(new Object[]{items6,items7,items8,items9}) - .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16}) - .amountBasedPointRules(new Object[]{items17}) - .subject("all") - .setExclusive(false) - .pointExpiresInDays(8315) - .pointExpiresAt("2023-09-20T01:26:19.000000Z") - .status("enabled") - .description("zvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmd") - .bearPointShopId("40d3a972-6730-4d00-bbce-ff02b3b9be07"); - 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 test21() throws ConnectionError, ProcessingError { - JsonObject applicable_transaction_metadata = new JsonObject(); - applicable_transaction_metadata.addProperty("key", "rank"); - applicable_transaction_metadata.addProperty("value", "bronze"); - JsonObject applicable_account_metadata = new JsonObject(); - applicable_account_metadata.addProperty("key", "sex"); - applicable_account_metadata.addProperty("value", "male"); - JsonObject items = new JsonObject(); - items.addProperty("from", "12:00"); - items.addProperty("to", "23:59"); - JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); - JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); - JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); - JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); - JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); - JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); - JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); - JsonObject items9 = new JsonObject(); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); - JsonObject items10 = new JsonObject(); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); - JsonObject items11 = new JsonObject(); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); - JsonObject items12 = new JsonObject(); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); - JsonObject items13 = new JsonObject(); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); - JsonObject items14 = new JsonObject(); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); - JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); - JsonObject items17 = new JsonObject(); - items17.addProperty("point_amount", 5); - items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); items17.addProperty("is_multiply_by_count", true); items17.addProperty("required_count", 2); @@ -1800,23 +1756,27 @@ void test21() 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"); @@ -1832,6 +1792,26 @@ void test21() throws ConnectionError, ProcessingError { items25.addProperty("point_amount_unit", "percent"); items25.addProperty("subject_more_than_or_equal", 1000); items25.addProperty("subject_less_than", 5000); + JsonObject items26 = new JsonObject(); + items26.addProperty("point_amount", 5); + items26.addProperty("point_amount_unit", "percent"); + items26.addProperty("subject_more_than_or_equal", 1000); + items26.addProperty("subject_less_than", 5000); + JsonObject items27 = new JsonObject(); + items27.addProperty("point_amount", 5); + items27.addProperty("point_amount_unit", "percent"); + items27.addProperty("subject_more_than_or_equal", 1000); + items27.addProperty("subject_less_than", 5000); + JsonObject items28 = new JsonObject(); + items28.addProperty("point_amount", 5); + items28.addProperty("point_amount_unit", "percent"); + items28.addProperty("subject_more_than_or_equal", 1000); + items28.addProperty("subject_less_than", 5000); + JsonObject items29 = new JsonObject(); + items29.addProperty("point_amount", 5); + items29.addProperty("point_amount_unit", "percent"); + items29.addProperty("subject_more_than_or_equal", 1000); + items29.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -1840,28 +1820,28 @@ void test21() throws ConnectionError, ProcessingError { 6174, "topup" ) - .applicableShopIds(new String[]{"adcfaf94-1576-4ff9-aca0-580944ff7e1c","53d3927d-5c94-4c0c-aeec-9e5e9945fada","8c446052-f768-42c7-a124-94c47d39014d","8dabcd02-e73b-44f8-8302-d0aa95c386f5","4c8abfea-a40f-4417-af5c-7f0f0faf02b8","14352341-1522-45b7-ad65-32a2a431bd92","4311e0a5-8cc4-452b-9b2a-09a65d3eac3d"}) + .applicableShopIds(new String[]{"844a8264-bd0d-4254-8026-68169967945b","cb04ac60-18a1-45b2-8690-31be9e408a59","1efed1d6-2656-4c3b-8ea1-d667e1c0920b"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("af629f84-ffcf-4403-81ab-d003c5759a98") - .maxTotalPointAmount(2578) - .maxPointAmount(8678) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(22) - .minimumNumberOfAmount(5222) - .minimumNumberOfProducts(8212) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{3}) - .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14}) - .productBasedPointRules(new Object[]{items15,items16,items17,items18}) - .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25}) - .subject("all") - .setExclusive(false) - .pointExpiresInDays(232) - .pointExpiresAt("2021-06-10T21:37:53.000000Z") - .status("enabled") - .description("plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKF") - .bearPointShopId("57e5156f-fe55-4833-9778-9d935bb384ca"); + .destPrivateMoneyId("ffce731d-2d5d-496b-a8c7-5c5b04dde23e") + .maxTotalPointAmount(6026) + .maxPointAmount(4578) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(2379) + .minimumNumberOfAmount(9491) + .minimumNumberOfProducts(8536) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .applicableDaysOfWeek(new Integer[]{0,6,2}) + .blacklistedProductRules(new Object[]{items9,items10,items11,items12}) + .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19,items20,items21,items22}) + .amountBasedPointRules(new Object[]{items23,items24,items25,items26,items27,items28,items29}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(5123) + .pointExpiresAt("2021-05-25T21:20:11.000000Z") + .status("disabled") + .description("L1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iB") + .bearPointShopId("c444f0ef-22c7-4555-b1cf-7b8d299f1103"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1885,117 +1865,56 @@ void test22() 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("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"); 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("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + 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("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("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("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("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); + 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); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -2004,29 +1923,29 @@ void test22() throws ConnectionError, ProcessingError { 6174, "topup" ) - .applicableShopIds(new String[]{"035beb4b-d360-456d-b57f-06e119b6bf44"}) - .budgetCapsAmount(802026739) + .applicableShopIds(new String[]{"4f0246df-5981-4a55-8021-9ea7c2f0947d","b7608b6d-dc0b-4a1d-be49-376c277e163a","93096406-0a81-48b7-896a-d53d55d41502","b9fb856c-949c-49d7-b8c0-bd99496fd9f2","f2ce2c66-a203-4794-9045-d74b3efcd84d","c7e7875f-e5d1-4982-b8c6-74a79edfd99e","94f85643-a573-47b0-a88f-f736768c87b2","dee49b50-fd4c-4b62-b539-f9794e81ad2d","cb1ab366-3ffa-406e-a9f7-6e1a36eda71a"}) + .budgetCapsAmount(1117682233) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("738ed3a2-81de-4234-bfe3-a313edaf9d80") - .maxTotalPointAmount(2859) - .maxPointAmount(7486) + .destPrivateMoneyId("e10a412e-5c5a-4b60-aeaa-c8b7ec6a4c54") + .maxTotalPointAmount(688) + .maxPointAmount(491) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(8749) - .minimumNumberOfAmount(417) - .minimumNumberOfProducts(5326) - .applicableTimeRanges(new Object[]{items,items2,items3,items4}) - .applicableDaysOfWeek(new Integer[]{0,0}) - .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12}) - .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19,items20,items21}) - .amountBasedPointRules(new Object[]{items22,items23,items24,items25,items26}) + .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") - .setExclusive(false) - .pointExpiresInDays(9025) - .pointExpiresAt("2024-06-25T03:28:44.000000Z") + .setExclusive(true) + .pointExpiresInDays(3171) + .pointExpiresAt("2020-09-03T19:49:23.000000Z") .status("enabled") - .description("P6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2i") - .bearPointShopId("823a237b-6cdb-482c-afdf-f1288c200e2a"); + .description("AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw") + .bearPointShopId("fb7cdc35-e47e-4404-92b8-763347af603c"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2048,7 +1967,7 @@ void test23() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"c444f0ef-22c7-4555-b1cf-7b8d299f1103","063034f8-46df-4981-95c0-8b2194f79ea7","c2f0947d-8b6d-4c0b-9dfe-e1490357376c"}); + .blacklistedShopIds(new String[]{"84d572d7-385f-4c45-8269-026999279bdc","1f34dacf-d196-4ac6-bb10-39f552b52577","774f7d6e-0e80-413f-871b-c9ad0aa54f65"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2070,8 +1989,8 @@ void test24() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"28520a81-28b7-4a09-aa3d-1502b9fb856c","2a2e949c-b9d7-4e78-8099-d9f2f2ce2c66","246fa203-f794-4a10-854b-d84dc7e7875f","7595e5d1-4982-4738-86a7-d99e94f85643","e862a573-47b0-4ba8-8f36-87b2dee49b50","038ffd4c-9b62-4835-b979-ad2dcb1ab366","65753ffa-f06e-4769-b71a-a71a429e7a38"}) - .bearPointShopId("e10a412e-5c5a-4b60-aeaa-c8b7ec6a4c54"); + .blacklistedShopIds(new String[]{"2ffa9795-4e88-49d4-af15-8fe662ab2757","e33ad3c8-bbb1-4216-b0f1-27716deb26ec","05dfcc03-205e-41c9-a860-72bda745bb1d","4eb5cc68-de08-4a5d-8f46-8900eff9f69d","37ff34cb-2beb-4892-8fee-b650bcf44e9b","b8360552-3a17-4365-b367-1d88d07e82ff","267ce1b3-5c4f-41f1-9920-0fcdc42a667c","1a622886-367f-4a44-b640-d0d9986c95a7","f8385137-f91c-402f-8266-ff1d4e75b52a"}) + .bearPointShopId("7a002bff-5110-4189-acba-506f86423770"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2093,9 +2012,9 @@ void test25() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"c0b802af-81ea-4822-9700-ed6879906b13","dda0505e-8fb0-4c91-82e0-28d105ef1c9d","014a07e4-a11f-4e72-8c72-72b77fccfb98"}) - .description("OC0AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7f") - .bearPointShopId("bdd4ff1d-b52a-4bff-9089-e76cd3e3cbba"); + .blacklistedShopIds(new String[]{"9bd596dc-834c-4730-839f-beb6bbe9ed84"}) + .description("OQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0Pi") + .bearPointShopId("71a17849-07a4-432f-9ede-3a0f1b86900c"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2117,10 +2036,10 @@ void test26() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"018acaca-3070-46dc-8c30-ef03009ddd9f"}) + .blacklistedShopIds(new String[]{"c3c5b45d-469e-449b-93b5-cb3fac6bf834","b954e7a1-5a97-41f1-b613-e1bcedf52e36","4da4dda9-5469-4c3f-940f-3e29f581cb05","38687c32-3b80-485c-ae5d-cf589c4b62d7","d24aedbf-a73f-42eb-bcf6-4ce6d9dd33a1","e7e42a16-aef5-4e80-b3a9-55219b4e4545","13564bb3-b906-4113-85ed-b88263854de1","51a0d8e7-7852-4a5a-8058-5b424489d476"}) .status("enabled") - .description("wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJI2") - .bearPointShopId("f12066e0-1366-4deb-af8b-dd59de5a258d"); + .description("QN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZ") + .bearPointShopId("a2a0fd3f-b088-4098-a639-962b3e8ea54b"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2142,11 +2061,11 @@ void test27() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"adbaff07-7b8e-4b94-862c-e0bde556c586","ac7aa724-ea92-461b-8a9d-db85ea7f6fbe"}) - .pointExpiresAt("2021-05-12T12:44:03.000000Z") + .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("uaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEeN8nc") - .bearPointShopId("898ceaef-fdcc-4ab5-a2dc-f4efa6e309d3"); + .description("8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQ") + .bearPointShopId("80a8fc80-fd55-4c93-b998-0fd7f9549461"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2168,12 +2087,12 @@ void test28() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"8cc3d702-9b87-442c-882d-d13c9293b793","09a2adbc-aee5-4326-b245-cede4c2a9074","d26c2e3d-89be-4947-a896-5f271526dcc6"}) - .pointExpiresInDays(7016) - .pointExpiresAt("2020-05-06T19:09:57.000000Z") - .status("enabled") - .description("dxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EP") - .bearPointShopId("024e177f-dd59-42fb-8558-d376cb41a798"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2195,13 +2114,13 @@ void test29() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"bb038364-f4ac-46fc-8958-4ddcecb27d06","000bcff8-b7df-43c7-817b-583870cea93c","2f8b5c65-51fb-4f4f-9189-299394ad7d74","d5c8b3be-215d-4c64-8467-bcb4aa7fcb08","6a8d4765-ea6d-43a0-a7dd-a8de48df3b5a","809af63d-3c14-4c1c-b8f8-d9766ea37fbe","aa55d076-700e-4233-a055-ae7a421b9f79","05141dda-65ab-48ed-8898-688abb13c47d","e8f9e0aa-3deb-4250-90e5-7bcc3d444a33"}) + .blacklistedShopIds(new String[]{"ef038d00-71d9-437f-827a-c302bda45210","dd995ea0-7047-4b21-93ef-9b20f3262115","686f5b98-f82a-4023-b540-3075b4b5f542","78575cdd-da58-43b6-a1cc-41fd700be2dc","465eedd5-4ad5-4b5f-8ca0-5cd5c354b3c2"}) .setExclusive(false) - .pointExpiresInDays(8788) - .pointExpiresAt("2023-04-20T12:08:02.000000Z") + .pointExpiresInDays(4603) + .pointExpiresAt("2024-05-24T17:09:19.000000Z") .status("disabled") - .description("szKal8UJ7mvjTFU0wWAMu89mD0TpxWczQUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E") - .bearPointShopId("963783b8-8bb1-4aae-aa96-9a2c1b9d918b"); + .description("18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZ") + .bearPointShopId("37819da9-3c01-43aa-a863-cd5ac5da415f"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2223,14 +2142,14 @@ void test30() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"e75f01c1-3fe0-4fd2-bd29-5b604d66a95c","4b89f6d8-d6bc-42e2-abb7-3f4d616e3952","f0959724-70b1-427c-b77f-a9970c2b27a0","f9ae99c3-7836-4552-9caf-9a463f5c52b6"}) + .blacklistedShopIds(new String[]{"a4d90487-3da1-4d38-8d92-3d0a15471975","a768db53-e814-456c-9652-b99181a68223","2c3854af-a2a2-423e-961c-23cbe7004b67","d1282607-0b43-4053-b049-4e0f16308aaa","f95b3ccc-7eb1-47bb-b359-a95993c79575","a2dc8b83-66c7-41ce-b1b7-8a72aa7dc4e6","3df21a54-4e39-4828-a284-3aee2f6e9e9b","e3587d4f-698c-4525-b4a9-fbfc20b7c87d","65221743-3fbb-4402-935d-20e97f703a18"}) .subject("money") - .setExclusive(false) - .pointExpiresInDays(6157) - .pointExpiresAt("2023-08-13T16:09:49.000000Z") + .setExclusive(true) + .pointExpiresInDays(7926) + .pointExpiresAt("2020-05-21T11:57:51.000000Z") .status("enabled") - .description("BAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRA") - .bearPointShopId("8365136c-a331-485d-9543-7a75dff90ddc"); + .description("7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbip") + .bearPointShopId("1666ee43-0f86-4c8f-8898-be15675033bb"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2264,6 +2183,269 @@ void test31() throws ConnectionError, ProcessingError { items4.addProperty("point_amount_unit", "percent"); items4.addProperty("subject_more_than_or_equal", 1000); items4.addProperty("subject_less_than", 5000); + JsonObject items5 = new JsonObject(); + items5.addProperty("point_amount", 5); + items5.addProperty("point_amount_unit", "percent"); + items5.addProperty("subject_more_than_or_equal", 1000); + items5.addProperty("subject_less_than", 5000); + JsonObject items6 = new JsonObject(); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); + items6.addProperty("subject_more_than_or_equal", 1000); + items6.addProperty("subject_less_than", 5000); + JsonObject items7 = new JsonObject(); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); + items7.addProperty("subject_more_than_or_equal", 1000); + items7.addProperty("subject_less_than", 5000); + Request request = new CreateCampaign( + "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", + "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", + "2021-02-25T21:26:31.000000Z", + "2020-09-09T10:07:27.000000Z", + 6174, + "topup" + ) + .blacklistedShopIds(new String[]{"0e947921-1506-4dac-9075-0d74cffe94ef","b4e1096b-3dd8-42d0-8871-c330032a8631","81c75320-9ab6-4663-858a-a1ef975565dd","857e9913-01f1-4527-a6bb-483e61ada4e9","36fa6fc1-8593-4280-a813-055ed3d4fd8b","8a0b69a9-1c29-47d5-9706-5b27f10f2ad8","413d6c78-9e91-40ff-a346-d59dc58fd3df","b8a9e22b-b9d2-427a-a40f-9b3c5ce58991","0141503f-c0ce-43b5-953d-d98d85dd6745"}) + .amountBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(1136) + .pointExpiresAt("2020-03-08T17:47:40.000000Z") + .status("enabled") + .description("uqVIJLmWFeGJqYbyf9xqe") + .bearPointShopId("52140f2a-5ad6-4eb9-8caa-aa9afb4f11e7"); + 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 test32() throws ConnectionError, ProcessingError { + JsonObject items = new JsonObject(); + items.addProperty("point_amount", 5); + items.addProperty("point_amount_unit", "percent"); + items.addProperty("product_code", "4912345678904"); + items.addProperty("is_multiply_by_count", true); + items.addProperty("required_count", 2); + JsonObject items2 = new JsonObject(); + items2.addProperty("point_amount", 5); + items2.addProperty("point_amount_unit", "percent"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("is_multiply_by_count", true); + items2.addProperty("required_count", 2); + 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("subject_more_than_or_equal", 1000); + items7.addProperty("subject_less_than", 5000); + JsonObject items8 = new JsonObject(); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("subject_more_than_or_equal", 1000); + items8.addProperty("subject_less_than", 5000); + JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); + items9.addProperty("subject_more_than_or_equal", 1000); + items9.addProperty("subject_less_than", 5000); + JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("subject_more_than_or_equal", 1000); + items10.addProperty("subject_less_than", 5000); + JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); + items11.addProperty("subject_more_than_or_equal", 1000); + items11.addProperty("subject_less_than", 5000); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("subject_more_than_or_equal", 1000); + items12.addProperty("subject_less_than", 5000); + JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); + 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[]{"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"); + 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("classification_code", "c123"); + JsonObject items4 = new JsonObject(); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); + JsonObject items5 = new JsonObject(); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); + JsonObject items6 = new JsonObject(); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); + JsonObject items7 = new JsonObject(); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); + JsonObject items8 = new JsonObject(); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); + JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); + JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); + JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); + JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -2272,15 +2454,17 @@ void test31() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"6d30e5d1-b17b-4b79-a3d7-ab67177cc918","62c78646-2f6c-495b-91f2-bb94fbaad81e","4f8c87c7-8a2f-4c2d-9b5c-cde457bafadb","00fd0cd2-6e8f-4371-bf2d-48564811f464"}) - .amountBasedPointRules(new Object[]{items,items2,items3,items4}) + .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") - .setExclusive(true) - .pointExpiresInDays(1278) - .pointExpiresAt("2020-04-15T18:37:32.000000Z") - .status("disabled") - .description("dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8u") - .bearPointShopId("d5830d74-94ef-496b-98d0-1188bc8bf171"); + .setExclusive(false) + .pointExpiresInDays(1998) + .pointExpiresAt("2024-04-05T06:31:47.000000Z") + .status("enabled") + .description("n521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwx") + .bearPointShopId("99787046-2dc2-4758-a66e-fe26e557e7ba"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2293,25 +2477,16 @@ void test31() throws ConnectionError, ProcessingError { } } @Test - void test32() throws ConnectionError, ProcessingError { + void test34() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); - items.addProperty("point_amount", 5); - items.addProperty("point_amount_unit", "percent"); items.addProperty("product_code", "4912345678904"); - items.addProperty("is_multiply_by_count", true); - items.addProperty("required_count", 2); + items.addProperty("classification_code", "c123"); 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("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"); @@ -2321,13 +2496,70 @@ void test32() throws ConnectionError, ProcessingError { 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); + 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("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"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); + JsonObject items8 = new JsonObject(); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); + JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); + JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("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( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -2336,16 +2568,18 @@ void test32() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"032a8631-5320-4ab6-a305-538a0189a1ef"}) - .productBasedPointRules(new Object[]{items,items2,items3,items4}) - .amountBasedPointRules(new Object[]{items5,items6}) + .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}) .subject("all") - .setExclusive(true) - .pointExpiresInDays(2111) - .pointExpiresAt("2020-11-21T21:26:01.000000Z") - .status("disabled") - .description("UWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENF") - .bearPointShopId("fa3ba695-e2f3-4d29-8833-352ead2b6624"); + .setExclusive(false) + .pointExpiresInDays(7370) + .pointExpiresAt("2022-12-15T05:27:20.000000Z") + .status("enabled") + .description("YUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQG") + .bearPointShopId("5dfa95aa-4bc8-4ea7-b0ba-158cef863a29"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2358,22 +2592,22 @@ void test32() throws ConnectionError, ProcessingError { } } @Test - void test33() throws ConnectionError, ProcessingError { + void test35() 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("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"); @@ -2422,37 +2656,18 @@ void test33() 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("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); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -2461,17 +2676,19 @@ void test33() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"ea21da0d-67ea-42a6-82df-ad23e43c166c"}) - .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16,items17,items18}) - .amountBasedPointRules(new Object[]{items19,items20}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(9157) - .pointExpiresAt("2024-06-14T16:19:11.000000Z") + .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") + .setExclusive(false) + .pointExpiresInDays(9700) + .pointExpiresAt("2023-04-26T22:54:50.000000Z") .status("enabled") - .description("2DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Af") - .bearPointShopId("37c653ad-f315-4f8f-ad0c-a82b8ccf1b76"); + .description("EUxwAJXNLOLDUjAEUO9KUSGzbSRmd") + .bearPointShopId("74cd1581-dfa3-49e0-a1a4-ff363808f0b6"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2484,13 +2701,13 @@ 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"); @@ -2498,80 +2715,53 @@ void test34() 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("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"); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); + items8.addProperty("subject_more_than_or_equal", 1000); + items8.addProperty("subject_less_than", 5000); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("is_multiply_by_count", true); - items9.addProperty("required_count", 2); + items9.addProperty("subject_more_than_or_equal", 1000); + items9.addProperty("subject_less_than", 5000); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); + items10.addProperty("subject_more_than_or_equal", 1000); + items10.addProperty("subject_less_than", 5000); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("subject_more_than_or_equal", 1000); + items11.addProperty("subject_less_than", 5000); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("subject_more_than_or_equal", 1000); + items12.addProperty("subject_less_than", 5000); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); - 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); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -2580,18 +2770,20 @@ void test34() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"f5a32921-12b5-4e23-9a37-026ef49c3173","43ba5a53-b5db-4eb8-b054-af0a3739a38c","50d9d88b-fab7-4969-b74e-f7ec17c38589","44142f9d-cb39-4c98-83cb-f505d909de4e","c1510980-8a35-483f-80af-69f99b392018","2340fa40-c8a0-48a8-9fc3-04a0f0cdaa73","e1472302-5014-4444-8dbe-5f1870941075","684d8e94-bf1c-415e-b593-1e6175147ad7","96e90e67-de82-4b9e-b6f6-afea170812a9","17f5446f-48da-4c46-8a55-1735be4a09f1"}) - .applicableDaysOfWeek(new Integer[]{0,6,2,0,6,6}) - .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .productBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13}) - .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19}) + .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(931) - .pointExpiresAt("2022-02-14T14:09:50.000000Z") - .status("disabled") - .description("EVPq46GdIPJm8acYbz4K3IA8JYUILwDYH") - .bearPointShopId("df571c11-09d7-4671-bc39-5d0763afb068"); + .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) { @@ -2604,7 +2796,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"); @@ -2618,20 +2810,20 @@ void test35() 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"); @@ -2642,28 +2834,112 @@ void test35() throws ConnectionError, ProcessingError { items12.addProperty("product_code", "4912345678904"); items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); 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("subject_more_than_or_equal", 1000); - items16.addProperty("subject_less_than", 5000); + 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("product_code", "4912345678904"); + items18.addProperty("classification_code", "c123"); + 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); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -2672,19 +2948,21 @@ void test35() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"647e28b3-f2be-48e1-b910-50d93eb02482","85b406f8-44a1-484e-bbe7-14a4fabe6012","4af1417f-0d27-4d1f-a05c-e81e055c45cf","19a04319-a4c0-484a-b9fe-c0845d4fbbec","6c0d1c7a-638f-4e2d-b796-051e1cf85148"}) - .applicableTimeRanges(new Object[]{items,items2,items3,items4}) - .applicableDaysOfWeek(new Integer[]{5,2,6,0,0,5,6,4}) - .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12}) - .productBasedPointRules(new Object[]{items13,items14,items15}) - .amountBasedPointRules(new Object[]{items16}) + .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") - .setExclusive(true) - .pointExpiresInDays(3740) - .pointExpiresAt("2022-07-27T09:30:15.000000Z") - .status("disabled") - .description("for2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRscSaTDE") - .bearPointShopId("2797c37f-6421-48d5-a4f8-13f78ad2448e"); + .setExclusive(false) + .pointExpiresInDays(5346) + .pointExpiresAt("2020-11-19T19:29:32.000000Z") + .status("enabled") + .description("ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6") + .bearPointShopId("dc513694-9421-47f8-a25a-8ccd6655641d"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2697,7 +2975,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"); @@ -2711,11 +2989,11 @@ void test36() throws ConnectionError, ProcessingError { items4.addProperty("from", "12:00"); items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); items7.addProperty("product_code", "4912345678904"); items7.addProperty("classification_code", "c123"); @@ -2729,11 +3007,17 @@ void test36() 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"); @@ -2761,39 +3045,33 @@ void test36() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); - 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"); @@ -2809,21 +3087,6 @@ void test36() throws ConnectionError, ProcessingError { items25.addProperty("point_amount_unit", "percent"); items25.addProperty("subject_more_than_or_equal", 1000); items25.addProperty("subject_less_than", 5000); - JsonObject items26 = new JsonObject(); - items26.addProperty("point_amount", 5); - items26.addProperty("point_amount_unit", "percent"); - items26.addProperty("subject_more_than_or_equal", 1000); - items26.addProperty("subject_less_than", 5000); - JsonObject items27 = new JsonObject(); - items27.addProperty("point_amount", 5); - items27.addProperty("point_amount_unit", "percent"); - items27.addProperty("subject_more_than_or_equal", 1000); - items27.addProperty("subject_less_than", 5000); - JsonObject items28 = new JsonObject(); - items28.addProperty("point_amount", 5); - items28.addProperty("point_amount_unit", "percent"); - items28.addProperty("subject_more_than_or_equal", 1000); - items28.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -2832,20 +3095,22 @@ void test36() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"84e4b3c1-144a-40d8-9f4e-069d3550ad4c"}) - .minimumNumberOfProducts(4703) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) - .applicableDaysOfWeek(new Integer[]{5,2,1,5,0}) - .blacklistedProductRules(new Object[]{items7,items8,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}) - .subject("money") + .blacklistedShopIds(new String[]{"da1fb68f-4266-44e3-b03f-b1aacf385a75","93d591dd-0377-47f0-b0c9-02a5c391acce"}) + .minimumNumberForCombinationPurchase(9392) + .minimumNumberOfAmount(9974) + .minimumNumberOfProducts(9246) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{2,3}) + .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16}) + .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25}) + .subject("all") .setExclusive(false) - .pointExpiresInDays(526) - .pointExpiresAt("2023-06-24T10:36:55.000000Z") + .pointExpiresInDays(2638) + .pointExpiresAt("2024-04-28T00:47:57.000000Z") .status("disabled") - .description("SRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfU") - .bearPointShopId("d6f25df3-a5f7-4723-b490-ea0bdf8e530d"); + .description("qZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5") + .bearPointShopId("39b59148-a7d7-4d5b-a049-7e119e987df1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2858,58 +3123,82 @@ void test36() throws ConnectionError, ProcessingError { } } @Test - void test37() throws ConnectionError, ProcessingError { + void test39() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); items9.addProperty("product_code", "4912345678904"); items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("classification_code", "c123"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); items16.addProperty("product_code", "4912345678904"); - items16.addProperty("classification_code", "c123"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("classification_code", "c123"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); @@ -2919,41 +3208,8 @@ void test37() 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); - 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); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -2962,21 +3218,23 @@ void test37() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"423b78e8-81e6-4dd9-9872-5fb8f254f219","36594354-5dad-4f77-b337-0b6bb3e0aa1f","5bba0f00-b698-47a5-9db4-287b88e03fb8","3ebe9192-7ef0-4e8c-87c7-74669e3325aa","d020d6cc-9e8d-4387-8e1b-67fb8f56f920","201c1561-550f-420b-a89c-8b158efc9034"}) - .minimumNumberOfAmount(9141) - .minimumNumberOfProducts(5824) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .applicableDaysOfWeek(new Integer[]{0,3,5,3}) - .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16,items17}) - .productBasedPointRules(new Object[]{items18,items19,items20,items21}) - .amountBasedPointRules(new Object[]{items22,items23,items24,items25}) - .subject("all") + .blacklistedShopIds(new String[]{"e79989ce-4f08-4803-9da5-9822750f3a55","414bc4af-c76f-4f4d-8508-441229a5c600","b4b65b9a-af2e-47e9-bfb9-1177683b4e07","de8701ce-dcc9-483c-a15d-a83b8697ffca","a7149faf-58db-49f9-89b2-7cf0595fbbc1","569a6c97-3ae0-49c4-92f3-dc32f22118c0","906edd42-5734-4d5e-91f9-b0161d346742","7909bfb1-41c7-4fa9-915a-27170967bc02","c9b2ce13-7d54-4f6b-ae02-f204bb504334"}) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(9266) + .minimumNumberOfAmount(1216) + .minimumNumberOfProducts(8355) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{6,2,1,2,2,3,5,0,1}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9}) + .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18}) + .amountBasedPointRules(new Object[]{items19}) + .subject("money") .setExclusive(true) - .pointExpiresInDays(6623) - .pointExpiresAt("2024-04-18T07:33:05.000000Z") + .pointExpiresInDays(7764) + .pointExpiresAt("2023-07-03T06:40:54.000000Z") .status("enabled") - .description("Gfe6gS6x1DqMOxCGU3") - .bearPointShopId("bb76a71a-de66-49bd-b6ba-2541a39056cd"); + .description("nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn") + .bearPointShopId("9ce4d227-cd39-42d6-8aea-c89ba01a9d5f"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2989,7 +3247,7 @@ void test37() throws ConnectionError, ProcessingError { } } @Test - void test38() throws ConnectionError, ProcessingError { + void test40() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -3003,14 +3261,14 @@ void test38() throws ConnectionError, ProcessingError { items4.addProperty("from", "12:00"); items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); @@ -3027,14 +3285,23 @@ void test38() 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"); 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"); @@ -3056,15 +3323,13 @@ void test38() 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"); @@ -3095,26 +3360,6 @@ void test38() 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); - 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 CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -3123,22 +3368,24 @@ void test38() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"733d1050-7cae-484a-beee-1ec2cfff310e","75f2fb99-0d00-4e79-be94-9b9ce1caf48b","91423caf-9b4f-469e-bc38-89c99cca5c41","049654d9-6ca8-4e07-b85a-03c9d3fe7041","ad43cecb-cda0-4b4f-9f5e-a78834d6e848","d10c0816-4c41-44cd-a19d-e69c877a49c2","81d3bab7-72ab-44da-89f8-efe2c1b7df1e","4626c690-4697-4ae8-894c-157e6d070cf0","59de33c1-5647-46b3-b694-66117c0a7caa","4b087490-4313-4998-98c9-615277a97abd"}) - .minimumNumberForCombinationPurchase(8526) - .minimumNumberOfAmount(1138) - .minimumNumberOfProducts(1960) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{0,4,0,0,6,2,5,0}) - .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15}) - .productBasedPointRules(new Object[]{items16,items17,items18,items19,items20}) - .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27,items28,items29,items30}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(2947) - .pointExpiresAt("2021-05-20T20:33:14.000000Z") + .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}) + .subject("all") + .setExclusive(false) + .pointExpiresInDays(9944) + .pointExpiresAt("2020-09-09T05:23:52.000000Z") .status("disabled") - .description("rbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5Qz") - .bearPointShopId("069ec019-de61-4f7d-b5a7-3fc3888c914b"); + .description("dNFDbX7fss0ltmaJnxsla") + .bearPointShopId("89f5a3d5-94cc-4537-9fd2-cef20bd60cf8"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3151,7 +3398,7 @@ void test38() throws ConnectionError, ProcessingError { } } @Test - void test39() throws ConnectionError, ProcessingError { + void test41() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -3165,8 +3412,8 @@ void test39() 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"); @@ -3242,6 +3489,16 @@ void test39() 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); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -3250,129 +3507,25 @@ void test39() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"46184d89-0090-4871-b2c3-dd4811d1f616","bd280f4c-dd4f-4b06-a236-d68166ad85af","3ffed4a6-7763-4001-b10f-9fcef9c9f95c","e9eee713-c81f-467a-a3f0-6812f7d61acd","430641f8-043b-4594-b26c-9aa30bcb2eb8","87d35d1d-704f-43b1-b6e8-234efa06bc25"}) + .blacklistedShopIds(new String[]{"b0e10ae2-16c2-4f01-bf22-cd9a02680d01","90fad016-1378-4f05-99b5-3517fd97613a"}) + .maxTotalPointAmount(5316) + .maxPointAmount(9116) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(6946) - .minimumNumberOfAmount(6682) - .minimumNumberOfProducts(4257) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) - .applicableDaysOfWeek(new Integer[]{4,0,3,3,4,2,3,3,4,4}) - .blacklistedProductRules(new Object[]{items6,items7,items8,items9,items10,items11}) + .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}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(2661) - .pointExpiresAt("2022-12-06T22:54:46.000000Z") - .status("enabled") - .description("VdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd") - .bearPointShopId("09b701b2-6638-48d9-996c-d104d020ba71"); - 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 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"); - 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("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" - ) - .blacklistedShopIds(new String[]{"ff508534-0224-48d0-9452-a25b1870206c","7411d4ec-ae78-46b6-aab0-091a7b070497","69b2f2ac-3d33-49e2-84d5-2282be87b9b9","66b22a8f-5675-4a85-9e9d-24a1c181937f","87879ff4-5df8-4bde-ace7-4c1ef6e29320","8549951e-a50a-4245-bab1-6909b8ef7540"}) - .maxPointAmount(2878) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(2637) - .minimumNumberOfAmount(8287) - .minimumNumberOfProducts(9875) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{6,1}) - .blacklistedProductRules(new Object[]{items2,items3,items4,items5}) - .productBasedPointRules(new Object[]{items6,items7}) - .amountBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15}) - .subject("money") + .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(1514) - .pointExpiresAt("2020-12-18T07:52:09.000000Z") + .pointExpiresInDays(6173) + .pointExpiresAt("2021-09-26T21:28:04.000000Z") .status("enabled") - .description("YnvZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopr") - .bearPointShopId("f10e9e3d-beae-4c61-81d6-e700d37e07b9"); + .description("wUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6o") + .bearPointShopId("0653e022-a97e-4b1a-8ff0-4e552948b319"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3385,7 +3538,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"); @@ -3396,20 +3549,20 @@ void test41() 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"); + 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"); @@ -3420,17 +3573,11 @@ 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"); @@ -3452,27 +3599,23 @@ void test41() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); @@ -3493,6 +3636,11 @@ void test41() throws ConnectionError, ProcessingError { items24.addProperty("point_amount_unit", "percent"); items24.addProperty("subject_more_than_or_equal", 1000); items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -3501,25 +3649,26 @@ void test41() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"0092027d-de89-4375-b437-5fbe008317be","17e3a7d7-2c14-48e9-bd06-c3dfa97e2344","a47333e7-2582-467c-946e-d2273d04cd39","14cc52d6-deca-4aea-9b5f-62c547922744","0debf089-bb31-46de-b716-736be780702e","82ac5d6a-03a8-4b4e-ba29-e72f4df90ff2","2eaacf25-b07e-4a32-be1c-7db9100e4803"}) - .maxTotalPointAmount(7560) - .maxPointAmount(9278) + .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(7548) - .minimumNumberOfAmount(2812) - .minimumNumberOfProducts(2083) - .applicableTimeRanges(new Object[]{items,items2,items3}) - .applicableDaysOfWeek(new Integer[]{3,4,2,3,0,5,4,6,3}) - .blacklistedProductRules(new Object[]{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}) - .subject("all") + .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(3789) - .pointExpiresAt("2021-03-04T09:48:41.000000Z") + .pointExpiresInDays(4060) + .pointExpiresAt("2024-08-25T16:06:07.000000Z") .status("enabled") - .description("AA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXP") - .bearPointShopId("9636697f-c2fa-4c80-9029-766d7f2f8192"); + .description("63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0") + .bearPointShopId("ff40b6e4-c8ff-49c5-a8cf-c79204df1027"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3532,19 +3681,28 @@ 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"); 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("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("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"); @@ -3566,6 +3724,36 @@ void test42() throws ConnectionError, ProcessingError { 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); Request request = new CreateCampaign( "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", @@ -3574,26 +3762,27 @@ void test42() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"cd1d6de1-ea6f-4fbe-9d30-6ec5a1f3c857","be57bcde-ca9f-4dee-9218-971fafb6f699","6cdc05d6-4c23-4b43-aaec-0067332f1197","d3cfa5da-0c63-4a66-9f78-a6404b644382","d72aa980-8ad8-4b7e-ae01-e35140dbd166","ea8e5ad8-ce5c-4876-a66f-dd238a65e36f","7fc28f0f-0b63-48fa-b374-f5182c51e9a2","3209e09a-31e4-4582-b784-d7424bf8540c","f0a62cda-670d-4525-8ea8-67b7467995be","60803038-d8eb-45e0-a371-d37a4dc1b8ca"}) - .destPrivateMoneyId("435f49dc-db30-45d5-b37b-0c2681fa109a") - .maxTotalPointAmount(1971) - .maxPointAmount(5516) + .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"}) + .applicableAccountMetadata(applicable_account_metadata) + .destPrivateMoneyId("03777006-54d5-46f5-b97b-a844b8d0a8d6") + .maxTotalPointAmount(5436) + .maxPointAmount(8339) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(9759) - .minimumNumberOfAmount(8087) - .minimumNumberOfProducts(282) - .applicableTimeRanges(new Object[]{items,items2,items3}) - .applicableDaysOfWeek(new Integer[]{4,3,3,4,3,2,0,6,5,6}) - .blacklistedProductRules(new Object[]{items4}) - .productBasedPointRules(new Object[]{items5}) - .amountBasedPointRules(new Object[]{items6,items7,items8}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(4647) - .pointExpiresAt("2022-08-09T12:38:44.000000Z") - .status("disabled") - .description("SFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS") - .bearPointShopId("10185ab7-f101-4a5f-8e14-11fed77650a2"); + .minimumNumberForCombinationPurchase(7643) + .minimumNumberOfAmount(4442) + .minimumNumberOfProducts(6502) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{3}) + .blacklistedProductRules(new Object[]{items2}) + .productBasedPointRules(new Object[]{items3,items4,items5}) + .amountBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13,items14}) + .subject("all") + .setExclusive(false) + .pointExpiresInDays(6020) + .pointExpiresAt("2022-06-22T08:49:37.000000Z") + .status("enabled") + .description("DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS7") + .bearPointShopId("f326f101-4a5f-480e-94fe-50a26de542b0"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3606,7 +3795,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"); @@ -3776,9 +3968,10 @@ void test43() throws ConnectionError, ProcessingError { 6174, "topup" ) - .blacklistedShopIds(new String[]{"6212d55f-10cf-4b20-a623-7e4a0ec59ccf"}) + .blacklistedShopIds(new String[]{"bacc3b26-2723-4e4a-8f55-091d3a28e0fe"}) + .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("28380455-091d-40fe-8bea-9e4b65ae8acc") + .destPrivateMoneyId("67872fcb-41ea-4e4b-8ce5-3b47df08b8dc") .maxTotalPointAmount(2654) .maxPointAmount(4548) .existInEachProductGroups(false) @@ -3809,7 +4002,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"); @@ -3901,9 +4094,10 @@ void test44() throws ConnectionError, ProcessingError { "topup" ) .blacklistedShopIds(new String[]{"506c48bc-2226-4961-9d76-10d73ed2e5ef"}) + .budgetCapsAmount(1517025453) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("5a6bf8ac-41ed-4e37-832e-d29b77313669") + .destPrivateMoneyId("011241ed-9e37-4e03-ae9b-36697259f353") .maxTotalPointAmount(4495) .maxPointAmount(6749) .existInEachProductGroups(true) @@ -3933,157 +4127,4 @@ void test44() throws ConnectionError, ProcessingError { 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("from", "12:00"); - items6.addProperty("to", "23:59"); - JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); - JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); - JsonObject items9 = new JsonObject(); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); - JsonObject items10 = new JsonObject(); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); - JsonObject items11 = new JsonObject(); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); - JsonObject items12 = new JsonObject(); - items12.addProperty("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("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("subject_more_than_or_equal", 1000); - items24.addProperty("subject_less_than", 5000); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("subject_more_than_or_equal", 1000); - items25.addProperty("subject_less_than", 5000); - Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" - ) - .blacklistedShopIds(new String[]{"8ca82f33-86f7-41c2-9737-d473651b8291","455c64e3-677d-4b57-92ab-0d6cf7288059","201a1969-78aa-405f-9272-20f2c8525b2b","c9883fea-362f-4136-989e-1b24c370216d","92f100a0-437f-4bd8-84d9-54eff37a6571"}) - .budgetCapsAmount(541226152) - .applicableTransactionMetadata(applicable_transaction_metadata) - .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("39c11b56-9ec5-4bbe-9e7f-8376e3a1bf5e") - .maxTotalPointAmount(2935) - .maxPointAmount(2854) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(5368) - .minimumNumberOfAmount(6210) - .minimumNumberOfProducts(6117) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) - .applicableDaysOfWeek(new Integer[]{4,3,6,5}) - .blacklistedProductRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14,items15}) - .productBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23}) - .amountBasedPointRules(new Object[]{items24,items25}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(9413) - .pointExpiresAt("2020-11-02T22:18:52.000000Z") - .status("disabled") - .description("uaSpYl1TGEiugglxJJBGt0dcPbtQc4uSkk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3eTBlP1za") - .bearPointShopId("0a19e7fd-1e31-4118-ae37-9dbdf9e353c9"); - 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/CreateCheckTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCheckTest.java index ea479e4..a7d6411 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(2950.0); + .moneyAmount(9410.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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(4601.0) - .description("DqMFurm2HyY5rxBRsFTyEvnewbYd4rNZJsCq7m7arw2NKYH12xHXaAOFqIwxrvxkxwVYBDQiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3"); + .moneyAmount(8482.0) + .description("6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXXM3Y5XPxnjF"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(653.0) - .setOnetime(false) - .description("KGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWwEl9RBh"); + .moneyAmount(9448.0) + .setOnetime(true) + .description("YgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(2203.0) - .usageLimit(1226) + .moneyAmount(3210.0) + .usageLimit(6298) .setOnetime(true) - .description("Q2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv94bnDyHKg7jf7TRBDusrb62imeaN"); + .description("5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47Xe"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(1500.0) - .expiresAt("2021-03-27T16:00:05.000000Z") - .usageLimit(48) + .moneyAmount(4346.0) + .expiresAt("2022-03-26T18:20:47.000000Z") + .usageLimit(1113) .setOnetime(false) - .description("5TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11i"); + .description("aQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnh"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(9631.0) - .pointExpiresAt("2021-09-27T23:36:37.000000Z") - .expiresAt("2021-07-29T18:09:32.000000Z") - .usageLimit(1700) + .moneyAmount(4677.0) + .pointExpiresAt("2020-12-02T11:49:10.000000Z") + .expiresAt("2021-03-16T21:57:04.000000Z") + .usageLimit(8337) .setOnetime(false) - .description("rfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS"); + .description("VfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAb"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(4281.0) - .pointExpiresInDays(1449) - .pointExpiresAt("2023-07-22T15:05:17.000000Z") - .expiresAt("2023-01-18T17:41:56.000000Z") - .usageLimit(4763) - .setOnetime(false) - .description("OXwioDpfXuzoNb"); + .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"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(7318.0) - .bearPointAccount("15bf6da1-5b8f-4870-895d-15aaa6b83b75") - .pointExpiresInDays(4770) - .pointExpiresAt("2024-04-12T08:24:15.000000Z") - .expiresAt("2021-03-13T11:50:02.000000Z") - .usageLimit(5381) - .setOnetime(false) - .description("nX2XonFzQcO5QEOmdgUm73I2kFchNQksZB6ByT3lVRQ7O823WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXXM3Y5XPxnjFhfkfYgv"); + .moneyAmount(4969.0) + .bearPointAccount("c3bf7a17-5d0d-41ef-aa60-9a20234a6eee") + .pointExpiresInDays(5740) + .pointExpiresAt("2022-03-09T10:21:43.000000Z") + .expiresAt("2023-05-17T17:33:30.000000Z") + .usageLimit(3506) + .setOnetime(true) + .description("3qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQ"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(9409.0) - .pointAmount(4674.0); + .moneyAmount(1926.0) + .pointAmount(1737.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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(2680.0) - .pointAmount(6866.0) - .description("hjV7rXm"); + .moneyAmount(3633.0) + .pointAmount(9333.0) + .description("CwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApo"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(3978.0) - .pointAmount(8774.0) + .moneyAmount(9105.0) + .pointAmount(1004.0) .setOnetime(true) - .description("nhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjb"); + .description("rzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5Az"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(9592.0) - .pointAmount(507.0) - .usageLimit(7327) - .setOnetime(true) - .description("6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46h"); + .moneyAmount(9132.0) + .pointAmount(465.0) + .usageLimit(8034) + .setOnetime(false) + .description("E5VhNxjrtNh84WLuHKWoYQpDL"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(7185.0) - .pointAmount(7782.0) - .expiresAt("2024-05-05T17:58:52.000000Z") - .usageLimit(883) - .setOnetime(true) - .description("F0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7"); + .moneyAmount(2676.0) + .pointAmount(5322.0) + .expiresAt("2024-03-10T02:31:21.000000Z") + .usageLimit(7962) + .setOnetime(false) + .description("WbDVy6Ss7attO0"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(2618.0) - .pointAmount(7070.0) - .pointExpiresAt("2023-08-27T11:56:26.000000Z") - .expiresAt("2021-10-27T01:35:36.000000Z") - .usageLimit(4677) + .moneyAmount(5779.0) + .pointAmount(6184.0) + .pointExpiresAt("2021-10-19T08:15:57.000000Z") + .expiresAt("2020-04-27T09:52:11.000000Z") + .usageLimit(2593) .setOnetime(true) - .description("ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xV"); + .description("Z2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(5489.0) - .pointAmount(3882.0) - .pointExpiresInDays(2311) - .pointExpiresAt("2020-01-01T18:18:58.000000Z") - .expiresAt("2022-01-26T03:26:05.000000Z") - .usageLimit(634) - .setOnetime(false) - .description("tPMLBX6YLvmDqPAbWtHJHRtQBqCHsxk71kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdS"); + .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"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .moneyAmount(6131.0) - .pointAmount(7044.0) - .bearPointAccount("4803fc60-d215-471b-879e-1ed16a32a956") - .pointExpiresInDays(7633) - .pointExpiresAt("2023-08-12T01:48:34.000000Z") - .expiresAt("2021-07-31T18:48:50.000000Z") - .usageLimit(7337) + .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("ltrzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gB"); + .description("FfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .pointAmount(528.0); + .pointAmount(1701.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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .pointAmount(4212.0) - .description("fr20CiDsCwyLdW5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNV"); + .pointAmount(6900.0) + .description("p1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQY"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .pointAmount(8687.0) + .pointAmount(4691.0) .setOnetime(true) - .description("ewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6"); + .description("SoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkD"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .pointAmount(3155.0) - .usageLimit(765) - .setOnetime(true) - .description("9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsT"); + .pointAmount(93.0) + .usageLimit(2886) + .setOnetime(false) + .description("GmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4uwaN6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .pointAmount(7697.0) - .expiresAt("2021-10-08T12:20:58.000000Z") - .usageLimit(8679) + .pointAmount(8001.0) + .expiresAt("2022-12-01T00:06:04.000000Z") + .usageLimit(5044) .setOnetime(true) - .description("mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQYSSoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5"); + .description("MRFhBa1KS"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .pointAmount(5554.0) - .pointExpiresAt("2022-01-18T07:38:26.000000Z") - .expiresAt("2021-12-03T08:50:00.000000Z") - .usageLimit(2201) - .setOnetime(true) - .description("r4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkDTFwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6Z"); + .pointAmount(7226.0) + .pointExpiresAt("2023-06-01T14:20:15.000000Z") + .expiresAt("2022-08-21T00:16:06.000000Z") + .usageLimit(6434) + .setOnetime(false) + .description("AtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .pointAmount(2588.0) - .pointExpiresInDays(6373) - .pointExpiresAt("2022-08-02T23:35:44.000000Z") - .expiresAt("2021-01-14T09:00:05.000000Z") - .usageLimit(199) - .setOnetime(true) - .description("YhssMJ1c81K9V4uwaN6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTH"); + .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"); 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( - "104404f2-ac03-4216-88f7-c9e53b350a56" + "c88e2d1d-1b1f-45da-a392-319bc72de1bf" ) - .pointAmount(829.0) - .bearPointAccount("e3fef183-bbe0-4bc5-8f06-ef40e2b14318") - .pointExpiresInDays(479) - .pointExpiresAt("2022-11-09T06:28:27.000000Z") - .expiresAt("2024-02-01T19:52:09.000000Z") - .usageLimit(5088) - .setOnetime(true) - .description("dOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3xaXPio5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtK"); + .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"); 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 d4d6984..057c8af 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( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(5858); + .discountAmount(8539); 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( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(3356) - .storageId("71061d3a-a403-4f72-a861-9515fb7d8185"); + .discountAmount(5276) + .storageId("f77ee315-9cdc-45f7-88d8-4e2dea98d2ec"); 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( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(2686) - .minAmount(3031) - .storageId("25342eff-5c92-4b1c-8d89-1b508266e2f6"); + .discountAmount(475) + .minAmount(1579) + .storageId("f46b87ca-beac-4246-959f-632718138880"); 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( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(1354) - .usageLimit(3636) - .minAmount(4983) - .storageId("c39c1a40-4abf-4681-b929-07aa6b74cb42"); + .discountAmount(9602) + .usageLimit(5001) + .minAmount(5144) + .storageId("03c2523f-6a22-4428-890e-3db6b613f48b"); 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( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(5218) - .code("GLWxTOnq") - .usageLimit(347) - .minAmount(3489) - .storageId("faee8148-191f-4a97-9583-d43aa233451b"); + .discountAmount(5533) + .code("xf") + .usageLimit(8070) + .minAmount(5763) + .storageId("3de35655-d515-43b8-9712-dbc857ad1c49"); 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( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(9429) - .setPublic(true) - .code("u") - .usageLimit(9963) - .minAmount(6182) - .storageId("32a14da0-f8ff-4c78-98b1-06983bbeb746"); + .discountAmount(4094) + .setPublic(false) + .code("LO5Dd5X") + .usageLimit(1164) + .minAmount(144) + .storageId("3bac0488-36c6-4f57-8c0e-308cab040384"); 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( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(4005) - .setHidden(true) + .discountAmount(2528) + .setHidden(false) .setPublic(false) - .code("V") - .usageLimit(3825) - .minAmount(9974) - .storageId("ce4a4cec-4671-4733-b00e-077742788b74"); + .code("oU011Xo") + .usageLimit(7962) + .minAmount(5831) + .storageId("59691fef-5a9b-4693-83f0-4eba34c704e5"); 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( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(4130) - .setDisabled(false) - .setHidden(false) + .discountAmount(8684) + .setDisabled(true) + .setHidden(true) .setPublic(true) - .code("q") - .usageLimit(805) - .minAmount(7699) - .storageId("5a0fb946-1ae0-4adb-a268-bbcae468b036"); + .code("PpOt9Y") + .usageLimit(9916) + .minAmount(7954) + .storageId("59c54db3-d86d-42f3-b874-eb634e0f0273"); 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( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(7752) - .displayEndsAt("2021-11-09T14:59:37.000000Z") + .discountAmount(1542) + .displayEndsAt("2022-07-16T04:09:00.000000Z") .setDisabled(true) - .setHidden(true) + .setHidden(false) .setPublic(false) - .code("yI") - .usageLimit(1896) - .minAmount(9104) - .storageId("6dd95541-2f22-433b-8434-fba97e74e93a"); + .code("QEq") + .usageLimit(4475) + .minAmount(9266) + .storageId("65bac18f-ed23-4441-9d55-29ec72878374"); 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( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(8176) - .displayStartsAt("2023-05-14T12:55:18.000000Z") - .displayEndsAt("2022-02-12T08:51:35.000000Z") - .setDisabled(true) + .discountAmount(9323) + .displayStartsAt("2020-01-17T13:55:18.000000Z") + .displayEndsAt("2023-11-10T17:58:13.000000Z") + .setDisabled(false) .setHidden(true) .setPublic(false) - .code("FAXM") - .usageLimit(7058) - .minAmount(5617) - .storageId("66ce74a0-2179-4b17-9038-047c24d929ae"); + .code("V8aSNO9") + .usageLimit(2060) + .minAmount(6855) + .storageId("84f34919-7dd1-4521-95c0-d76e3459a144"); 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( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(3751) - .discountUpperLimit(4708) - .displayStartsAt("2023-08-24T20:32:01.000000Z") - .displayEndsAt("2021-04-01T17:08:40.000000Z") + .discountAmount(5875) + .discountUpperLimit(1146) + .displayStartsAt("2024-04-11T07:18:28.000000Z") + .displayEndsAt("2020-05-25T08:09:45.000000Z") .setDisabled(false) - .setHidden(true) - .setPublic(false) - .code("5IH0TK2") - .usageLimit(2727) - .minAmount(7240) - .storageId("4bdad4d3-ec61-4fa7-b4b5-d041adb6417f"); + .setHidden(false) + .setPublic(true) + .code("g8bbFQz") + .usageLimit(4669) + .minAmount(9680) + .storageId("e9db5f89-f6e4-4c24-acd8-ef0e9fc4b1c4"); 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( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(9270) - .description("ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvII6xukRoB486") - .discountUpperLimit(3529) - .displayStartsAt("2022-10-20T19:35:52.000000Z") - .displayEndsAt("2023-05-06T10:58:43.000000Z") + .discountAmount(5467) + .description("ujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6wIXIQ") + .discountUpperLimit(9314) + .displayStartsAt("2021-08-02T00:37:40.000000Z") + .displayEndsAt("2023-08-06T16:53:53.000000Z") .setDisabled(false) .setHidden(true) .setPublic(false) - .code("XwZ") - .usageLimit(3143) - .minAmount(9662) - .storageId("9c884a50-7473-4712-84c6-cf045fab1760"); + .code("wXW1Rg") + .usageLimit(7926) + .minAmount(3472) + .storageId("a29dc282-bb78-4a3f-aa10-4d1f86482a65"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -330,15 +330,15 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(8581) + .discountAmount(275) .setShopSpecified(false) - .availableShopIds(new String[]{"60d81ebd-3566-4886-bc2c-f0241fa76692","0ea05c62-9983-4b3e-a883-9f1143ad2c16","7316daff-d1bc-4a70-aa27-df833f72979d","e28d39ef-14b6-4981-83f6-ddda80a99c2c","10bedded-51e9-4874-9d26-93121a84e9b6","3663f773-0d47-4832-805d-ab0d098993b2","7ddb223d-8c4c-4d3c-95a6-17d7851c1d8e","9343ffbc-cf81-4670-acc4-b0ec009773d7","423b759a-240a-4be1-bee8-bb9c874db15f","f1048003-5650-47e9-a739-3d4dc308f1cb"}); + .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"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -353,16 +353,16 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(7853) - .setShopSpecified(false) - .availableShopIds(new String[]{"c356d103-7b1a-425a-9d95-d3470dc02b13","6193c879-b9ca-422c-a9bb-a216ea13b716","db45407f-5517-4abb-8395-a0271f517ff0","3bb82db4-8e03-4b0f-91dd-4cf032323e14","cfa48cb4-6cdd-44f4-b610-01d7b121ed96","6979d591-2a81-4d69-9e58-f9c780e073c9"}) - .storageId("1174a4dc-a6d7-44d5-a0b4-87aba98e6d54"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -377,17 +377,17 @@ void test13() throws ConnectionError, ProcessingError { @Test void test14() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(8746) + .discountAmount(4058) .setShopSpecified(false) - .availableShopIds(new String[]{"2a0da125-d9ba-4d48-b2ad-889d1ef189c6","03d0e541-df6a-4ba8-abcd-2df415f3c31e","96f96ee2-72e9-43b1-8bfe-e51da9148147","e7f27008-daad-492f-8965-29df83b5054a","f7502c83-8c79-4ec6-af10-4004b643cda6","924b89ce-a8cf-4027-b2cb-8372638d2dbe","e7512895-11fc-4b16-87eb-2c6750d0d900","3f11c6e2-f173-4c25-9e7b-60a5226c2358","27293208-3f63-4dfe-a2c5-d685ddaf64e2"}) - .minAmount(4902) - .storageId("a98c97d0-659e-403b-afda-b79f11701846"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -402,18 +402,18 @@ void test14() throws ConnectionError, ProcessingError { @Test void test15() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(7266) + .discountAmount(2182) .setShopSpecified(false) - .availableShopIds(new String[]{"ab7a0315-6268-42af-b9ca-2038f026880d"}) - .usageLimit(4659) - .minAmount(9122) - .storageId("7a7d06de-f7f2-44cc-bcb1-35e756f7ddc4"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -428,19 +428,19 @@ void test15() throws ConnectionError, ProcessingError { @Test void test16() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(6417) + .discountAmount(7489) .setShopSpecified(false) - .availableShopIds(new String[]{"a338dc71-5c33-4956-ad9e-26abe5d5a686","d3c1b473-13ca-4fa7-9d49-f11c5c887226","90a4680c-e07c-4c17-9a4d-3d8c2c70190f","b842979c-d62d-4806-8a9b-dcdc8ab58dd4","b098b8cd-2bf6-4149-8da2-564b4c9695b2","0c32f436-5403-481c-9873-525ea5a94d4f","a16e5221-42d2-40d6-8a46-bdbde95d38f6"}) - .code("51NUOj8") - .usageLimit(5030) - .minAmount(2836) - .storageId("d7b8fbfe-7701-408e-89b7-c81cac748f09"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -455,20 +455,20 @@ void test16() throws ConnectionError, ProcessingError { @Test void test17() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(702) - .setShopSpecified(false) - .availableShopIds(new String[]{"0685d958-bcff-4489-9f4c-1eeb7e5e501f","057e8c9c-e051-4a8e-ba71-e7c70732ee87","2d69d1f8-2652-4586-81f5-e6b4391be143","999614a3-348a-476c-8301-d9fab05054a1","d3d1ee9e-61d5-47f9-b5c9-181d3c2501c5","a7aa48d9-8772-4b0e-a1d8-b22a8774cfea"}) - .setPublic(false) - .code("Rl") - .usageLimit(274) - .minAmount(5814) - .storageId("f233b910-31af-4b76-86b7-bceec2a02ab9"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -483,21 +483,21 @@ void test17() throws ConnectionError, ProcessingError { @Test void test18() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(2147) - .setShopSpecified(false) - .availableShopIds(new String[]{"2a447335-8ff3-4ec6-a630-9c41f31ef83f","2556d652-8a79-48cf-8b5b-1cd0f9637da7","13da4a0e-a2bf-4c33-abc8-3bc337b0c894","72a45dd5-e208-4f20-bd0d-c983410d3c8c","bef7f904-7310-4e68-8fc5-bd642cec4ca5","1ae9cb6a-7816-488a-b0c6-587675980385","c05e104b-a42d-4dfa-974c-91a4884b67cf"}) + .discountAmount(5150) + .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(false) - .code("X17seRboX") - .usageLimit(9389) - .minAmount(9871) - .storageId("0d24db79-1296-4296-bee1-c754124bdff0"); + .setPublic(true) + .code("vUl3UtK") + .usageLimit(443) + .minAmount(9691) + .storageId("99f70450-3c88-4f92-b5a8-815441d23bcc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -512,22 +512,22 @@ void test18() throws ConnectionError, ProcessingError { @Test void test19() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(8501) + .discountAmount(7936) .setShopSpecified(true) - .availableShopIds(new String[]{"2fce8921-8c3e-432c-86e6-9d78bf278c46","172ca549-4953-4e09-a6f5-7a84d5f1343b","1fd24953-15ae-4eab-aa82-fe39aee54752","6d073225-9e34-4367-b33a-dcac5d0502c9","caed8b6e-e3e1-4c46-abc0-1de7d956d6c5","f3b3c5c5-d29b-4f4b-a5e4-4a2f56ea1272"}) + .availableShopIds(new String[]{"bc9084e8-2abf-48ec-9bc0-ee3db3664d6c","442f821d-d401-46b0-87d0-0e9c724bb834","52dabad1-e9a9-4941-ab0a-37d10ff91bbd"}) .setDisabled(false) .setHidden(false) - .setPublic(true) - .code("HukpC") - .usageLimit(9827) - .minAmount(3324) - .storageId("32b2d8c8-59c2-4a21-aab6-153405e15466"); + .setPublic(false) + .code("PrTAo5HhY") + .usageLimit(7829) + .minAmount(8706) + .storageId("c4d8b70b-04ea-4e43-a17e-ca4747eda32b"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -542,23 +542,23 @@ void test19() throws ConnectionError, ProcessingError { @Test void test20() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(4529) - .setShopSpecified(false) - .availableShopIds(new String[]{"615be654-7bb6-40c4-b6a4-294d9c468bab","e9abca69-95e5-4b9b-82fe-93892925166e","7f186d1c-d481-4085-b349-b660ffbac90f","8d5f40b4-a012-4b8e-912c-9cf04a46ab4e","0dc736e7-c4d1-464b-87a7-97c28b1f28d3"}) - .displayEndsAt("2021-11-29T03:34:06.000000Z") + .discountAmount(5469) + .setShopSpecified(true) + .availableShopIds(new String[]{"bfa7c7c0-3b9c-4b94-aa14-a4f5cb51b54a","283a90af-a42d-457c-aeae-8788128323c3","2ad38266-707b-4905-822c-b8cf0d9ee834","85fa7efb-b757-4631-838e-f8c95385e556","1912f30e-8996-46b2-9556-dee9e853a75a","753e7a56-e73c-4cc8-80d2-d6572b3b7305"}) + .displayEndsAt("2023-06-05T01:05:20.000000Z") .setDisabled(false) - .setHidden(true) - .setPublic(false) - .code("2F3M") - .usageLimit(6087) - .minAmount(2679) - .storageId("d5627e8c-a122-49e7-bfcc-fa5b73a76af6"); + .setHidden(false) + .setPublic(true) + .code("j3cWX") + .usageLimit(3634) + .minAmount(3770) + .storageId("f89234cc-76c8-4f00-8cdb-5b786f0b6a09"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -573,24 +573,24 @@ void test20() throws ConnectionError, ProcessingError { @Test void test21() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(8449) + .discountAmount(7932) .setShopSpecified(false) - .availableShopIds(new String[]{"d73c8d54-2d29-4f86-9a0c-be462a9b404e","aac59620-b66d-42b4-93b8-7be184fad839","6b6c1485-a397-4a09-89bb-d0906dfacf7b","991d391f-a7e0-4e22-896d-56e351b7c7ed"}) - .displayStartsAt("2021-07-19T23:26:30.000000Z") - .displayEndsAt("2022-12-19T17:30:35.000000Z") - .setDisabled(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) - .setPublic(true) - .code("YVUSqs") - .usageLimit(3907) - .minAmount(8001) - .storageId("2a501a93-0a02-4e72-a989-4cd3653a7b77"); + .setPublic(false) + .code("kGd5KFM") + .usageLimit(6689) + .minAmount(5918) + .storageId("3ff0cbea-6953-4c7b-be3e-4e25fc26bbc8"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -605,25 +605,25 @@ void test21() throws ConnectionError, ProcessingError { @Test void test22() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(4105) - .setShopSpecified(true) - .availableShopIds(new String[]{"dc09ccc5-3bc2-4bff-83b0-c24b60350cdd","0a4abe9e-37a0-4912-a09a-4f0ed865b465","84ae8a1f-21f7-44b5-8594-dad55cb9ed1d","3da5f089-2705-47a8-a04c-d9cbfa171677"}) - .discountUpperLimit(4610) - .displayStartsAt("2023-04-04T04:57:21.000000Z") - .displayEndsAt("2020-11-25T02:22:13.000000Z") - .setDisabled(false) + .discountAmount(9996) + .setShopSpecified(false) + .availableShopIds(new String[]{"ce67f98f-0785-42db-9210-8a21966fd081","0743d597-9212-467d-81b9-ff1b6fa09481"}) + .discountUpperLimit(8133) + .displayStartsAt("2022-11-04T06:50:09.000000Z") + .displayEndsAt("2020-12-08T05:10:13.000000Z") + .setDisabled(true) .setHidden(true) .setPublic(true) - .code("3Js1") - .usageLimit(2975) - .minAmount(2185) - .storageId("5d257397-dbf5-4ff5-b025-26a014d93192"); + .code("iSyzzCHj") + .usageLimit(1238) + .minAmount(6853) + .storageId("20142e89-d545-40e7-b087-ecba52153bfc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -638,26 +638,26 @@ void test22() throws ConnectionError, ProcessingError { @Test void test23() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountAmount(701) - .setShopSpecified(true) - .availableShopIds(new String[]{"cd578c55-57e5-4708-a7ee-bb1fb10fb9d1","3eb3cdea-ecdc-4995-8b35-ff4b5d4be4fe","d87db9b1-e6b2-4486-bb96-b7fd7633a2fb","46af0bff-b3de-4acd-97f6-02911d6e6afd","10196543-ac15-4d0c-b681-b741159a8bb9","03a79244-a6ea-44f0-81f6-9a3e74aaf57b","c0f67c6d-f220-41fe-9312-173e7a3bd914","3c7a9717-1c2b-406f-a375-5d004524c950","ee34a8c0-5cc6-4e38-b313-f6c58c395a99"}) - .description("3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH") - .discountUpperLimit(9410) - .displayStartsAt("2021-01-27T12:25:54.000000Z") - .displayEndsAt("2020-06-13T18:03:14.000000Z") - .setDisabled(true) + .discountAmount(3312) + .setShopSpecified(false) + .availableShopIds(new String[]{"c9e7db59-433c-465b-bb44-154641e462a1","53201ac6-a0c4-4e02-988d-bb162d001ed9","2e50fd91-d7ad-4b31-b12d-9af5dcc54c78","8902bd4e-616b-4d95-ae53-82c05b93440b","e6d3d19f-7223-42d3-b12e-b3f679e4b5ed","52a56b1c-8821-4c1d-8328-e14cec90ca4f","a4ebd455-d6ec-41dd-a064-de201fd3fcbe","f4e4f526-801c-4363-b1b7-b07ab869d23c"}) + .description("rM7imjJVYnMFmZVKbnQskJ4SJWYdnxMjsH9rlpcWw1Vg5A3j") + .discountUpperLimit(8101) + .displayStartsAt("2024-04-06T13:04:31.000000Z") + .displayEndsAt("2024-01-07T07:14:33.000000Z") + .setDisabled(false) .setHidden(true) - .setPublic(true) - .code("LxjYp") - .usageLimit(6444) - .minAmount(386) - .storageId("49c751d6-6046-4418-98e9-59dfd76cfeb6"); + .setPublic(false) + .code("VDn") + .usageLimit(7260) + .minAmount(6071) + .storageId("466bd282-148a-470e-965f-c802f899a2c1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -672,13 +672,13 @@ void test23() throws ConnectionError, ProcessingError { @Test void test24() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(8835.0); + .discountPercentage(6905.0); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -693,14 +693,14 @@ void test24() throws ConnectionError, ProcessingError { @Test void test25() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(3017.0) - .storageId("d8b15c98-d408-4cd7-8048-0332738c948c"); + .discountPercentage(3816.0) + .storageId("025def26-9766-4731-960b-e5e1d03e4c32"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -715,15 +715,15 @@ void test25() throws ConnectionError, ProcessingError { @Test void test26() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(9693.0) - .minAmount(9912) - .storageId("dc2d54ba-73ba-4237-bc3e-abc6335baaeb"); + .discountPercentage(1815.0) + .minAmount(8361) + .storageId("2fcab82a-92e9-4e91-9693-61b4e4962c8d"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -738,16 +738,16 @@ void test26() throws ConnectionError, ProcessingError { @Test void test27() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(9299.0) - .usageLimit(269) - .minAmount(1201) - .storageId("7655667c-e31e-442c-81e4-b96f83b2b593"); + .discountPercentage(7640.0) + .usageLimit(2402) + .minAmount(9467) + .storageId("0d909ab0-0836-47d9-8f13-f081575448b5"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -762,17 +762,17 @@ void test27() throws ConnectionError, ProcessingError { @Test void test28() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(1189.0) - .code("qVF") - .usageLimit(427) - .minAmount(8017) - .storageId("122dee1f-6270-42b8-a640-23f08d19feb9"); + .discountPercentage(6535.0) + .code("FN9bW") + .usageLimit(7865) + .minAmount(2539) + .storageId("adbf89ad-7822-4513-b3c6-922a83c93cba"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -787,18 +787,18 @@ void test28() throws ConnectionError, ProcessingError { @Test void test29() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(3145.0) + .discountPercentage(7691.0) .setPublic(true) - .code("GNT32") - .usageLimit(8204) - .minAmount(5720) - .storageId("4a0cf1d8-a0bf-4a6a-939f-8765c0de1b41"); + .code("8sMw") + .usageLimit(6242) + .minAmount(9832) + .storageId("2d4b08c0-8201-4831-9746-89a56d1f4194"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -813,19 +813,19 @@ void test29() throws ConnectionError, ProcessingError { @Test void test30() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(1523.0) - .setHidden(false) - .setPublic(false) - .code("nyt") - .usageLimit(6318) - .minAmount(7918) - .storageId("95d15dc4-274e-4cd0-8572-09ca035d6705"); + .discountPercentage(9204.0) + .setHidden(true) + .setPublic(true) + .code("EmCrF") + .usageLimit(5037) + .minAmount(4749) + .storageId("143eb371-58ce-4392-b73f-b128c0ef59a9"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -840,20 +840,20 @@ void test30() throws ConnectionError, ProcessingError { @Test void test31() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(9618.0) + .discountPercentage(3684.0) .setDisabled(true) .setHidden(true) - .setPublic(true) - .code("6j8TSBN1GR") - .usageLimit(8265) - .minAmount(5240) - .storageId("378b6fe6-89ca-4eb3-a5d5-aa47d4d0f2d5"); + .setPublic(false) + .code("5Q") + .usageLimit(5856) + .minAmount(8045) + .storageId("8c30ebc6-f94d-4a05-b6fb-e5ecc5ed5123"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -868,21 +868,21 @@ void test31() throws ConnectionError, ProcessingError { @Test void test32() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(3228.0) - .displayEndsAt("2023-09-23T07:46:06.000000Z") - .setDisabled(false) - .setHidden(false) - .setPublic(false) - .code("2jHDz") - .usageLimit(3968) - .minAmount(9308) - .storageId("88898ad2-6e99-4382-aad4-a2e6cc32ddd5"); + .discountPercentage(6297.0) + .displayEndsAt("2022-04-29T07:55:42.000000Z") + .setDisabled(true) + .setHidden(true) + .setPublic(true) + .code("a2") + .usageLimit(8588) + .minAmount(1448) + .storageId("0ad47ba4-5ea6-4e83-a76f-ea18a4c48b28"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -897,22 +897,22 @@ void test32() throws ConnectionError, ProcessingError { @Test void test33() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(1581.0) - .displayStartsAt("2021-06-09T05:39:21.000000Z") - .displayEndsAt("2024-07-02T18:37:09.000000Z") + .discountPercentage(8908.0) + .displayStartsAt("2023-12-22T04:20:55.000000Z") + .displayEndsAt("2023-10-15T14:09:14.000000Z") .setDisabled(false) - .setHidden(true) + .setHidden(false) .setPublic(false) - .code("tO") - .usageLimit(2829) - .minAmount(3817) - .storageId("5cdb36f0-d99e-4000-880e-5145e8ef6121"); + .code("E9OEvOU") + .usageLimit(4169) + .minAmount(7785) + .storageId("3d98deae-d342-4b3e-b7e2-19bc6c04764a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -927,23 +927,23 @@ void test33() throws ConnectionError, ProcessingError { @Test void test34() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(5558.0) - .discountUpperLimit(944) - .displayStartsAt("2024-06-20T04:53:45.000000Z") - .displayEndsAt("2023-01-14T17:30:59.000000Z") + .discountPercentage(5017.0) + .discountUpperLimit(4268) + .displayStartsAt("2023-04-20T09:30:47.000000Z") + .displayEndsAt("2020-06-02T02:54:45.000000Z") .setDisabled(true) - .setHidden(true) - .setPublic(true) - .code("gJV1GwA") - .usageLimit(9060) - .minAmount(2275) - .storageId("cd2c59b8-557a-403a-957a-605488842b5b"); + .setHidden(false) + .setPublic(false) + .code("fgOe9n") + .usageLimit(1238) + .minAmount(6254) + .storageId("27c7e262-9c4f-46ae-8de6-bb5bcc92f031"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -958,24 +958,24 @@ void test34() throws ConnectionError, ProcessingError { @Test void test35() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(74.0) - .description("EfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNRasJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1TG2yJEO") - .discountUpperLimit(9645) - .displayStartsAt("2022-12-24T18:47:51.000000Z") - .displayEndsAt("2021-01-06T13:58:25.000000Z") + .discountPercentage(1885.0) + .description("ceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8") + .discountUpperLimit(8336) + .displayStartsAt("2020-01-06T07:23:01.000000Z") + .displayEndsAt("2020-06-15T12:46:52.000000Z") .setDisabled(false) - .setHidden(true) + .setHidden(false) .setPublic(true) - .code("kQ") - .usageLimit(8334) - .minAmount(1800) - .storageId("87d16b0e-163e-4d9c-96e8-7c135010750c"); + .code("kI4pFJl") + .usageLimit(6655) + .minAmount(3551) + .storageId("126693af-cedc-4cb8-a1b4-05b925102d26"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -990,15 +990,15 @@ void test35() throws ConnectionError, ProcessingError { @Test void test36() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(2232.0) - .setShopSpecified(false) - .availableShopIds(new String[]{"8f967aff-4076-4f5f-9823-d1aa60e26446","28d9fa11-a33c-45cb-a575-ce3a988a541d","c9e43dc6-a5b0-4316-9aaf-0c46672ac3e8","3557cad4-4aee-44a2-9ce3-f0cef479bfec","ab7dca86-534d-426d-a788-97453e402f75","95a83861-c748-4941-88fd-4782162692de","00cb081b-1d01-4e6e-97f4-021cfb7fa197","62dcde7a-bd36-42ba-b0e0-35cffe360029","6bd678de-ff21-44a0-85c8-c2b7b86844ca"}); + .discountPercentage(8325.0) + .setShopSpecified(true) + .availableShopIds(new String[]{"55e623d3-3008-4ae9-92d6-d0729014de2b"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1013,16 +1013,16 @@ void test36() throws ConnectionError, ProcessingError { @Test void test37() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(8423.0) - .setShopSpecified(true) - .availableShopIds(new String[]{"7291bc8a-7b41-4692-b75c-18b317731263","62ad3f18-5847-451c-a14c-04a041422f22","9450f94c-5235-4c08-8b48-9770ac184569","fe62d826-596e-4f20-aea6-c181af66ca52","f58ef3cb-85b5-4279-ac7f-6a300077e34f","77f7ad7a-a812-469c-9f29-a285d924134a","5ba346a4-f139-4348-b6e6-3eb2d16b83fc","d75c6be3-5e9d-4256-bc9c-c959ea873752","bcf28b4d-826f-434e-acb8-d0e371e9cae9","28a3e696-3143-4b62-801e-a7043f6bd5da"}) - .storageId("37d546d7-cd28-4bfb-bb8e-13ee5e12f68c"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1037,17 +1037,17 @@ void test37() throws ConnectionError, ProcessingError { @Test void test38() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(9565.0) + .discountPercentage(2100.0) .setShopSpecified(true) - .availableShopIds(new String[]{"f132881b-e183-4140-a144-d0eea2b898cb","da7497b4-4d60-4c4c-859a-605d114fcc41","ee1e76e0-430c-461d-aaa1-c23477cbbc67","eec0b0d7-bd7a-46f3-868d-4278362751f2"}) - .minAmount(6363) - .storageId("33cecac5-6fae-4afc-97c7-60238b85522c"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1062,18 +1062,18 @@ void test38() throws ConnectionError, ProcessingError { @Test void test39() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(6795.0) + .discountPercentage(2185.0) .setShopSpecified(false) - .availableShopIds(new String[]{"81ae9d1f-fcf1-4f8c-8ef7-2f2e0fcf2982","a42f3ef1-83b8-4d05-b081-a701bd36dfc7","5d233aa8-6c57-4290-99cf-f243db6e3ae4","5db6517e-8114-4a71-ab70-703cca2a41db","ca89d09c-7cb3-4890-a4be-37915a46c061","09e2955b-6bcd-44a1-beba-a3a7808df129","70fe9c0c-f204-4e77-bb99-9b801b064ab4","d27704aa-19c0-4b87-af8c-4235ce2c131f","b5707152-ed66-4e08-9d07-39f4381a7310","6bc72e90-21ee-4c98-ac43-1d1ab1b22e37"}) - .usageLimit(4184) - .minAmount(2125) - .storageId("503bbb8d-304a-476e-917c-9a5a4503e388"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1088,19 +1088,19 @@ void test39() throws ConnectionError, ProcessingError { @Test void test40() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(3624.0) + .discountPercentage(4730.0) .setShopSpecified(true) - .availableShopIds(new String[]{"ffb8a90f-1695-4622-be43-594bd67ac5c1"}) - .code("ud") - .usageLimit(6317) - .minAmount(6350) - .storageId("4ebea838-d410-46a1-bc2f-d3b3e5724355"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1115,20 +1115,20 @@ void test40() throws ConnectionError, ProcessingError { @Test void test41() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(6782.0) - .setShopSpecified(false) - .availableShopIds(new String[]{"100d55b6-214b-4bca-b45d-861ba1b836ab"}) + .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("8") - .usageLimit(8866) - .minAmount(3953) - .storageId("a30ef7cc-24d7-475a-9531-9a3d2bafa1ec"); + .code("i") + .usageLimit(3390) + .minAmount(5939) + .storageId("9c20b5ad-eb71-481c-ab70-91ab73d86e1e"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1143,21 +1143,21 @@ void test41() throws ConnectionError, ProcessingError { @Test void test42() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(7423.0) - .setShopSpecified(true) - .availableShopIds(new String[]{"eda2735f-034a-407d-8842-a06f41ef03c5","7c30de74-6979-479f-ac9c-f31d7485bd41","d3121cb7-ce4c-4bdc-a367-365631053645","4ab4bb8f-d5d9-4e3e-8e42-9d7ef94dd988","38d99f84-5348-4d3f-bb87-7085240d8cb5","259c208a-f94b-4b47-ab1e-239df5a36069","a51826d4-ad25-4aae-a53a-f14706bf5a01","f5f5a5f2-fc58-4e41-ab64-2da28d031dec"}) + .discountPercentage(344.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(false) - .code("mb") - .usageLimit(5366) - .minAmount(6911) - .storageId("1cc6fd3d-d118-4d50-a378-7faf45e705e2"); + .setPublic(true) + .code("HdsS3") + .usageLimit(3756) + .minAmount(133) + .storageId("83f44596-2a53-4d05-a8ea-7b8f91f114af"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1172,22 +1172,22 @@ void test42() throws ConnectionError, ProcessingError { @Test void test43() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(4188.0) + .discountPercentage(3857.0) .setShopSpecified(true) - .availableShopIds(new String[]{"7a85ab20-3f0a-4250-b030-530cc5b24aca","97717c12-ee37-4351-ad70-bacfe88fb856","58c4867c-0a41-44a3-a5b7-ff4d5ab923e5","2252cb50-71f4-4cd9-9318-49870f702680","24f7411c-e821-4816-bb88-56d9e6730353","74849eed-13fd-4004-b38f-1dcc68c51f33","d805513d-fad7-4c42-800e-0e13b89cfc8a","f920f0be-df84-40aa-bdd5-8b59a76dc998","700d071b-7249-4447-ad08-cf4c1e980aa1","a24eb1d8-79fe-40e8-b5a5-d2b0ec455f44"}) - .setDisabled(true) + .availableShopIds(new String[]{"0b31ac34-f91f-4253-815c-3c3fdd13c1f2","39da7e0d-6db1-4667-8fab-81d32052d05c"}) + .setDisabled(false) .setHidden(true) .setPublic(false) - .code("vuDjJfJxe") - .usageLimit(2820) - .minAmount(9715) - .storageId("87768f3f-1e18-444b-9a6b-667729ff17e2"); + .code("Pel") + .usageLimit(7033) + .minAmount(3063) + .storageId("f12ef0a9-645b-4f71-ae27-6f6b27922871"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1202,23 +1202,23 @@ void test43() throws ConnectionError, ProcessingError { @Test void test44() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(4293.0) + .discountPercentage(7976.0) .setShopSpecified(false) - .availableShopIds(new String[]{"57648c78-8aeb-46ce-bbe9-2067965be379","62a33ee3-dae3-44d2-9675-3e588159e995","999bdde1-bc15-4af8-9905-a6c887c4a341","da557241-30a3-477c-9d8c-1e90f4e63c7a","3ac5b57e-7974-43eb-a66c-1388962d9d10","ce23bc0d-0aa9-4113-b262-db0719559aa7","2fe612d8-dc94-4aa8-b5b0-94b79cb9ba61","447e41ab-9aba-45a5-a974-44f87b462364","462ae2d4-2e63-46d9-96ea-55ea2c28ab43"}) - .displayEndsAt("2021-10-04T02:43:22.000000Z") + .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") .setDisabled(false) - .setHidden(true) - .setPublic(true) - .code("atXW3") - .usageLimit(6205) - .minAmount(4083) - .storageId("69d3e088-87dd-49b3-ada1-7eac06fbc962"); + .setHidden(false) + .setPublic(false) + .code("Wf") + .usageLimit(6811) + .minAmount(8019) + .storageId("08830937-d988-4741-b15c-657798bfddcc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1233,24 +1233,24 @@ void test44() throws ConnectionError, ProcessingError { @Test void test45() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(2825.0) + .discountPercentage(492.0) .setShopSpecified(true) - .availableShopIds(new String[]{"a65828ef-8a7e-4ba6-a390-d7dcc42a12cb","416eb1ca-97d3-4eb9-8a26-1a5dbd35da92"}) - .displayStartsAt("2022-05-30T19:21:01.000000Z") - .displayEndsAt("2022-12-11T05:15:24.000000Z") - .setDisabled(false) + .availableShopIds(new String[]{"614a3316-a7e9-4715-a33e-02cfa30af7c2"}) + .displayStartsAt("2022-08-19T08:58:33.000000Z") + .displayEndsAt("2022-03-25T12:11:45.000000Z") + .setDisabled(true) .setHidden(true) .setPublic(false) - .code("sltjjmo") - .usageLimit(9700) - .minAmount(6958) - .storageId("7d1d595e-3cbc-4521-a8c4-d5fbd1fd0ad1"); + .code("F") + .usageLimit(4045) + .minAmount(8409) + .storageId("a3f6e75e-cad1-464c-911b-720b25f9c608"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1265,25 +1265,25 @@ void test45() throws ConnectionError, ProcessingError { @Test void test46() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(6469.0) + .discountPercentage(3147.0) .setShopSpecified(false) - .availableShopIds(new String[]{"cf57e21e-dc0f-44bb-87d5-750667354213","455be3db-be02-4978-84e1-e467e04cb02b","1af74d68-353b-4bf6-acb7-a344f1a30b06","ee99e4ee-67dd-47d3-830f-442396d8a4b5","e91e832d-8c88-4e12-9e81-44afbbdfa9d2","334bd3e6-0375-4030-815d-3e1e64881a43","f7337230-c9f5-4217-a2ad-4412ae20ff2f"}) - .discountUpperLimit(9926) - .displayStartsAt("2020-01-21T13:54:24.000000Z") - .displayEndsAt("2024-05-23T10:02:09.000000Z") - .setDisabled(false) - .setHidden(false) - .setPublic(true) - .code("k") - .usageLimit(9194) - .minAmount(9863) - .storageId("ae8041e2-197c-426c-8589-72db3aa9289d"); + .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") + .setDisabled(true) + .setHidden(true) + .setPublic(false) + .code("89Abrha") + .usageLimit(5397) + .minAmount(389) + .storageId("c28b0a7e-0bd7-4eff-921c-1acdbdd36389"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1298,26 +1298,26 @@ void test46() throws ConnectionError, ProcessingError { @Test void test47() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "b8876de9-e6b2-44ee-9f56-5643e01671e1", - "3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsF", - "2020-05-16T10:47:43.000000Z", - "2021-11-05T09:57:35.000000Z", - "cd4b8822-3796-4595-8638-61b957869041" + "6766f169-5df9-4e9b-8e09-a269a879dd33", + "aAuGXWsNdhyWJyqrPAKmmZGZJN", + "2022-07-04T11:47:15.000000Z", + "2021-02-13T08:49:11.000000Z", + "602867b4-6c6a-49ba-ab32-7161fcd53418" ) - .discountPercentage(3466.0) - .setShopSpecified(false) - .availableShopIds(new String[]{"eb9c34f8-5552-469f-9bf2-c955575f13d4","4c34da05-8fc6-4720-848d-b4a9568f169a","8a20781b-7540-452e-aa0f-c1d3e97556f0","f9a5481e-df49-4694-8540-b85eb05bd1ac","bd4d2508-98b6-4489-aa19-9b772c8addca","1cce3ed5-1e60-4f55-a078-7b727f3879a1","3bd70255-a11b-4363-a4b5-ee59e8c7b1ed","9104583a-5f58-4f65-ac2b-7a1a55d3d4be"}) - .description("2A200gV6FxYfWwCiS0MuCLswxDV9drgRKhLSvZ2KQORxMHroQo6jM66W2y8KrZ8xMlNalvWasLjNh8s14cZJ7e4Q9GCUyL2v9u3mWzZwKqxzujrUlmkKRdRXeieY6AmMB38WCqGZQWNed5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxU") - .discountUpperLimit(3931) - .displayStartsAt("2024-03-01T18:00:30.000000Z") - .displayEndsAt("2021-09-10T05:38:37.000000Z") + .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) - .setHidden(true) + .setHidden(false) .setPublic(false) - .code("pyn") - .usageLimit(2282) - .minAmount(5416) - .storageId("723b7a99-e785-47e9-b94a-9bd325f005af"); + .code("hAD4rp") + .usageLimit(7287) + .minAmount(5143) + .storageId("505e7faa-8ce8-4cd7-931b-1c1116ecf546"); 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 888ff6f..6d28c48 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( - "yms9QyHVorEq6zLZyg3cEP", - "095f9add-ab73-4f39-a27b-1c4e82d8a93b", - 7204.0 + "yg3cEPs9bN7e1DJRmWCvXV", + "39a71035-8e66-4183-b79c-a92f11a3288a", + 14.0 ); try { PartnerAPITest.getClient().send(request); @@ -30,9 +30,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCpmTransaction( - "yms9QyHVorEq6zLZyg3cEP", - "095f9add-ab73-4f39-a27b-1c4e82d8a93b", - 7204.0 + "yg3cEPs9bN7e1DJRmWCvXV", + "39a71035-8e66-4183-b79c-a92f11a3288a", + 14.0 ) .strategy("point-preferred"); try { @@ -49,11 +49,11 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateCpmTransaction( - "yms9QyHVorEq6zLZyg3cEP", - "095f9add-ab73-4f39-a27b-1c4e82d8a93b", - 7204.0 + "yg3cEPs9bN7e1DJRmWCvXV", + "39a71035-8e66-4183-b79c-a92f11a3288a", + 14.0 ) - .requestId("e3e867bc-2db7-4825-91e5-4d31540d029f") + .requestId("77fe478d-5bc6-4e78-8807-b6de97513e52") .strategy("point-preferred"); try { PartnerAPITest.getClient().send(request); @@ -124,14 +124,30 @@ void test3() throws ConnectionError, ProcessingError { 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", "{}"); + 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( - "yms9QyHVorEq6zLZyg3cEP", - "095f9add-ab73-4f39-a27b-1c4e82d8a93b", - 7204.0 + "yg3cEPs9bN7e1DJRmWCvXV", + "39a71035-8e66-4183-b79c-a92f11a3288a", + 14.0 ) - .products(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .requestId("90ae7852-48ed-4e3d-97c3-e08827ab045d") - .strategy("point-preferred"); + .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .requestId("27df3392-3887-41d4-a9d4-dcd7c7e0a74f") + .strategy("money-only"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -185,31 +201,15 @@ 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", "{}"); - 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 CreateCpmTransaction( - "yms9QyHVorEq6zLZyg3cEP", - "095f9add-ab73-4f39-a27b-1c4e82d8a93b", - 7204.0 + "yg3cEPs9bN7e1DJRmWCvXV", + "39a71035-8e66-4183-b79c-a92f11a3288a", + 14.0 ) .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .requestId("9642062c-cb7b-4b91-9821-a0d639a71035") - .strategy("point-preferred"); + .products(new Object[]{items,items2,items3,items4,items5}) + .requestId("94f12ee0-aa98-42cb-8c1e-da6849d2aba5") + .strategy("money-only"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -239,80 +239,16 @@ 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", "{}"); - 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", "{}"); - 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 CreateCpmTransaction( - "yms9QyHVorEq6zLZyg3cEP", - "095f9add-ab73-4f39-a27b-1c4e82d8a93b", - 7204.0 + "yg3cEPs9bN7e1DJRmWCvXV", + "39a71035-8e66-4183-b79c-a92f11a3288a", + 14.0 ) - .description("7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPF") + .description("4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjH") .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) - .requestId("1e7ec2ce-9f96-47b4-8dd9-42d4ee4508d3") - .strategy("point-preferred"); + .products(new Object[]{items,items2}) + .requestId("391bed4c-b269-4fab-b226-1d00f8db6c8b") + .strategy("money-only"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCustomerAccountTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCustomerAccountTest.java index 7bfe1b9..bdd7685 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( - "44e32ee3-3010-4c9c-b50b-baffa595516e" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCustomerAccount( - "44e32ee3-3010-4c9c-b50b-baffa595516e" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c" ) - .externalId("86BZW4IWD5GZy4J15w0ovS"); + .externalId("e87oi"); 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( - "44e32ee3-3010-4c9c-b50b-baffa595516e" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c" ) - .accountName("rq2HjQnZoVWhOdLDSpe9mEjT") - .externalId("pY"); + .accountName("kJDB6ZsUUsk6umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXh") + .externalId("26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5"); 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( - "44e32ee3-3010-4c9c-b50b-baffa595516e" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c" ) - .userName("8vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5IbgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYN") - .accountName("S3c0MUvvhZ") - .externalId("Fdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0"); + .userName("bgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH") + .accountName("emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdW") + .externalId("jKy82N74m"); 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 1e0e813..96db774 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( - "3c306e03-fc9f-4742-819e-76eb7dc7271d", - "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1", - "fa972a02-3b64-4c34-96a7-f6e7164f0af4", - 5857 + "ae21cfdf-3cfd-409a-9617-cd364b4ac168", + "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", + "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", + 2752 ); try { PartnerAPITest.getClient().send(request); @@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreatePaymentTransaction( - "3c306e03-fc9f-4742-819e-76eb7dc7271d", - "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1", - "fa972a02-3b64-4c34-96a7-f6e7164f0af4", - 5857 + "ae21cfdf-3cfd-409a-9617-cd364b4ac168", + "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", + "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", + 2752 ) - .strategy("point-preferred"); + .strategy("money-only"); 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( - "3c306e03-fc9f-4742-819e-76eb7dc7271d", - "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1", - "fa972a02-3b64-4c34-96a7-f6e7164f0af4", - 5857 + "ae21cfdf-3cfd-409a-9617-cd364b4ac168", + "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", + "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", + 2752 ) - .requestId("0a999d97-0637-418a-8bee-bbbcaec0c105") - .strategy("point-preferred"); + .requestId("2aa855f3-c72b-4758-bde2-f146fa62868a") + .strategy("money-only"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -119,47 +119,15 @@ void test3() throws ConnectionError, ProcessingError { 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", "{}"); - 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 CreatePaymentTransaction( - "3c306e03-fc9f-4742-819e-76eb7dc7271d", - "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1", - "fa972a02-3b64-4c34-96a7-f6e7164f0af4", - 5857 + "ae21cfdf-3cfd-409a-9617-cd364b4ac168", + "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", + "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", + 2752 ) - .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) - .requestId("2d49628f-4b18-4524-aec3-c4280977728e") - .strategy("money-only"); + .products(new Object[]{items,items2,items3,items4,items5,items6}) + .requestId("3829af74-a55a-42fb-b477-53c649410e93") + .strategy("point-preferred"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -205,15 +173,47 @@ void test4() 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( - "3c306e03-fc9f-4742-819e-76eb7dc7271d", - "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1", - "fa972a02-3b64-4c34-96a7-f6e7164f0af4", - 5857 + "ae21cfdf-3cfd-409a-9617-cd364b4ac168", + "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", + "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", + 2752 ) .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3,items4}) - .requestId("c49bcb53-c73f-4fc7-8f27-693b7d54ead9") + .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .requestId("48d1c6ac-7999-4478-82ae-158994bd6c1a") .strategy("money-only"); try { PartnerAPITest.getClient().send(request); @@ -292,32 +292,16 @@ 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 CreatePaymentTransaction( - "3c306e03-fc9f-4742-819e-76eb7dc7271d", - "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1", - "fa972a02-3b64-4c34-96a7-f6e7164f0af4", - 5857 + "ae21cfdf-3cfd-409a-9617-cd364b4ac168", + "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", + "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", + 2752 ) - .description("qsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45") + .description("LsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zL") .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) - .requestId("12931051-0a7d-4273-9c2d-da8e52337fe5") + .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) + .requestId("d910fda9-2d27-407b-8e19-bb249777445a") .strategy("money-only"); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java index 8cc9d92..b01d70c 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( - "2a67173e-b942-43a4-ae81-adefee312533", - "abcb0548-73da-43af-8e9d-cd04c2a3ffe8", - "7a2c959c-e505-4bee-b9ce-985a2d126a35" + "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", + "0686a451-395f-4e53-9a1d-f813f169da77", + "af4d7e4a-0031-4775-a48c-64a95566c41c" ); try { PartnerAPITest.getClient().send(request); @@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "2a67173e-b942-43a4-ae81-adefee312533", - "abcb0548-73da-43af-8e9d-cd04c2a3ffe8", - "7a2c959c-e505-4bee-b9ce-985a2d126a35" + "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", + "0686a451-395f-4e53-9a1d-f813f169da77", + "af4d7e4a-0031-4775-a48c-64a95566c41c" ) - .requestId("4d01fb19-1f51-459b-bb37-101654160837"); + .requestId("6c64555b-d9af-4745-97c9-087ea03b9908"); 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( - "2a67173e-b942-43a4-ae81-adefee312533", - "abcb0548-73da-43af-8e9d-cd04c2a3ffe8", - "7a2c959c-e505-4bee-b9ce-985a2d126a35" + "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", + "0686a451-395f-4e53-9a1d-f813f169da77", + "af4d7e4a-0031-4775-a48c-64a95566c41c" ) .metadata("{\"key\":\"value\"}") - .requestId("403a998f-a5d5-40ab-9830-bbb458a827e1"); + .requestId("f939997e-bb86-43a1-8662-9fa926ac4089"); 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( - "2a67173e-b942-43a4-ae81-adefee312533", - "abcb0548-73da-43af-8e9d-cd04c2a3ffe8", - "7a2c959c-e505-4bee-b9ce-985a2d126a35" + "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", + "0686a451-395f-4e53-9a1d-f813f169da77", + "af4d7e4a-0031-4775-a48c-64a95566c41c" ) - .description("Ls4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZm") + .description("7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecq") .metadata("{\"key\":\"value\"}") - .requestId("662ca6e1-68a2-4d8c-803c-9caa61162d92"); + .requestId("53596018-c257-4fe4-bcc4-8d098d867fd6"); 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( - "2a67173e-b942-43a4-ae81-adefee312533", - "abcb0548-73da-43af-8e9d-cd04c2a3ffe8", - "7a2c959c-e505-4bee-b9ce-985a2d126a35" + "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", + "0686a451-395f-4e53-9a1d-f813f169da77", + "af4d7e4a-0031-4775-a48c-64a95566c41c" ) - .pointExpiresAt("2022-01-08T11:06:43.000000Z") - .description("Ro8nyJO9Y3f9djMgk8QSZwJ1udEIb7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW") + .pointExpiresAt("2022-04-26T11:41:07.000000Z") + .description("stoEtPVoykbtA6l7WDayqQLAKXyhWYdlIH") .metadata("{\"key\":\"value\"}") - .requestId("37d4c4a4-dabf-4ab6-ba31-5fb48e82ab0b"); + .requestId("2ce8fee6-9053-40fe-8242-cc4bb1fa0349"); 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( - "2a67173e-b942-43a4-ae81-adefee312533", - "abcb0548-73da-43af-8e9d-cd04c2a3ffe8", - "7a2c959c-e505-4bee-b9ce-985a2d126a35" + "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", + "0686a451-395f-4e53-9a1d-f813f169da77", + "af4d7e4a-0031-4775-a48c-64a95566c41c" ) - .pointAmount(313) - .pointExpiresAt("2022-11-18T02:07:23.000000Z") - .description("UgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQl4cK6HLesoN7AsxjaX4bkzoW5SSz") + .pointAmount(817) + .pointExpiresAt("2021-09-07T09:54:19.000000Z") + .description("Ql4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNto") .metadata("{\"key\":\"value\"}") - .requestId("8c6738c6-0a43-44e0-9f4b-4001c0bd316a"); + .requestId("ca208929-ae70-4cf1-893f-8fbf31547cbb"); 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( - "2a67173e-b942-43a4-ae81-adefee312533", - "abcb0548-73da-43af-8e9d-cd04c2a3ffe8", - "7a2c959c-e505-4bee-b9ce-985a2d126a35" + "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", + "0686a451-395f-4e53-9a1d-f813f169da77", + "af4d7e4a-0031-4775-a48c-64a95566c41c" ) - .moneyAmount(6991) - .pointAmount(6310) - .pointExpiresAt("2023-02-09T02:28:46.000000Z") - .description("E829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05A") + .moneyAmount(6582) + .pointAmount(2496) + .pointExpiresAt("2021-03-28T20:33:04.000000Z") + .description("rDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJ") .metadata("{\"key\":\"value\"}") - .requestId("0c44b9d2-4699-4816-93e9-c052f1bd64c7"); + .requestId("28d8b055-11a7-4321-8657-46f08b430634"); 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( - "2a67173e-b942-43a4-ae81-adefee312533", - "abcb0548-73da-43af-8e9d-cd04c2a3ffe8", - "7a2c959c-e505-4bee-b9ce-985a2d126a35" + "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", + "0686a451-395f-4e53-9a1d-f813f169da77", + "af4d7e4a-0031-4775-a48c-64a95566c41c" ) - .bearPointShopId("abb1e69f-72b2-4308-95d0-8b5224111850") - .moneyAmount(2071) - .pointAmount(2728) - .pointExpiresAt("2023-09-26T02:50:49.000000Z") - .description("xcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwHY4GPMgqa4p3N") + .bearPointShopId("6bfc44af-b553-494a-9dc4-281b2f3b2864") + .moneyAmount(1469) + .pointAmount(9488) + .pointExpiresAt("2023-01-18T11:40:14.000000Z") + .description("9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3") .metadata("{\"key\":\"value\"}") - .requestId("5a7e4dbb-c600-4914-8218-e0d6ad552736"); + .requestId("a5258802-a1a5-41a5-84d0-40d1007639c2"); 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 d130092..dba2d88 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( - "2ea841ea-23bb-416e-843a-854569384188", - "0740d26d-314e-40e0-a92e-e5aecedb846e" + "cd4eb994-98b7-4aea-91b8-0e53a7345bbb", + "6f4c62b1-299e-474c-a3ca-1e9e30e7b8cd" ); try { PartnerAPITest.getClient().send(request); @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransactionWithCheck( - "2ea841ea-23bb-416e-843a-854569384188", - "0740d26d-314e-40e0-a92e-e5aecedb846e" + "cd4eb994-98b7-4aea-91b8-0e53a7345bbb", + "6f4c62b1-299e-474c-a3ca-1e9e30e7b8cd" ) - .requestId("2eb7b49f-ffed-4618-99fc-e4e0ce656897"); + .requestId("3e9427b9-30bb-4edd-b9ac-acea3da3f083"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTransactionTest.java index e1ffefb..6a05f39 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( - "1d3831bb-a724-4804-9fc2-8a14d55c4475", - "8e35ccbe-6def-4224-814a-7e84feedf9d3", - "54834b5c-2549-4c46-95f2-4d29e2e821d4" + "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", + "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", + "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d" ); try { PartnerAPITest.getClient().send(request); @@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTransaction( - "1d3831bb-a724-4804-9fc2-8a14d55c4475", - "8e35ccbe-6def-4224-814a-7e84feedf9d3", - "54834b5c-2549-4c46-95f2-4d29e2e821d4" + "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", + "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", + "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d" ) - .description("1u8KmONYXCce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxw"); + .description("jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhM"); 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( - "1d3831bb-a724-4804-9fc2-8a14d55c4475", - "8e35ccbe-6def-4224-814a-7e84feedf9d3", - "54834b5c-2549-4c46-95f2-4d29e2e821d4" + "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", + "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", + "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d" ) - .pointExpiresAt("2024-06-04T22:20:16.000000Z") - .description("3DU0ZYNIFrYHkTuOzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXH"); + .pointExpiresAt("2022-04-18T05:29:48.000000Z") + .description("y1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7WZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX"); 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( - "1d3831bb-a724-4804-9fc2-8a14d55c4475", - "8e35ccbe-6def-4224-814a-7e84feedf9d3", - "54834b5c-2549-4c46-95f2-4d29e2e821d4" + "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", + "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", + "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d" ) - .pointAmount(4269) - .pointExpiresAt("2020-11-16T11:35:04.000000Z") - .description("61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9z"); + .pointAmount(350) + .pointExpiresAt("2023-05-10T17:38:49.000000Z") + .description("RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZP"); 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( - "1d3831bb-a724-4804-9fc2-8a14d55c4475", - "8e35ccbe-6def-4224-814a-7e84feedf9d3", - "54834b5c-2549-4c46-95f2-4d29e2e821d4" + "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", + "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", + "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d" ) - .moneyAmount(2564) - .pointAmount(326) - .pointExpiresAt("2020-07-24T02:03:12.000000Z") - .description("AU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfnZ2mwTeB7HbtOFrcDL"); + .moneyAmount(2628) + .pointAmount(4634) + .pointExpiresAt("2020-05-01T08:52:03.000000Z") + .description("vKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFT"); 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 bf1b044..c25b1d2 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( - "9709fdbe-8ab9-416f-b49e-97afd979da80", - "9de37268-ed2f-4604-96e3-8fb04ec8c375" + "695ea41a-9f9f-449b-a519-cf27509404b6", + "ca9e2ff1-fbed-48c3-98de-cafb1e81400b" ); try { PartnerAPITest.getClient().send(request); @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTransactionWithCashtray( - "9709fdbe-8ab9-416f-b49e-97afd979da80", - "9de37268-ed2f-4604-96e3-8fb04ec8c375" + "695ea41a-9f9f-449b-a519-cf27509404b6", + "ca9e2ff1-fbed-48c3-98de-cafb1e81400b" ) - .requestId("621a41a2-1219-41b6-8074-518b7f2b9d7a"); + .requestId("3d343bff-c2c6-48b3-ba66-3afb9fbd6b2b"); 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( - "9709fdbe-8ab9-416f-b49e-97afd979da80", - "9de37268-ed2f-4604-96e3-8fb04ec8c375" + "695ea41a-9f9f-449b-a519-cf27509404b6", + "ca9e2ff1-fbed-48c3-98de-cafb1e81400b" ) .strategy("money-only") - .requestId("d487e87d-14da-4233-b3aa-56622453a1d9"); + .requestId("5520406f-93a1-4145-8e34-eb68de8c927e"); 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 4c2e944..361e0f0 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( - "9c68abcb-c211-477f-8e00-69df4169df80", - "29c1371e-e22d-44c3-8e79-39e277a0f1ed", - "90298810-c341-476c-8d8f-f36b19b5d961", - 7328.0 + "a3ce4b26-c72a-439b-927e-80477f3f01b6", + "886fa328-e2ea-4816-8007-03faea01d2f2", + "95a550d0-a9dc-4046-9de9-c2ceae3f9f96", + 8333.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( - "9c68abcb-c211-477f-8e00-69df4169df80", - "29c1371e-e22d-44c3-8e79-39e277a0f1ed", - "90298810-c341-476c-8d8f-f36b19b5d961", - 7328.0 + "a3ce4b26-c72a-439b-927e-80477f3f01b6", + "886fa328-e2ea-4816-8007-03faea01d2f2", + "95a550d0-a9dc-4046-9de9-c2ceae3f9f96", + 8333.0 ) - .requestId("afd92ace-45ca-4369-a94f-f90c92f0b0f6"); + .requestId("e78dc0d9-42d4-48d3-8abe-8ab90e73616f"); 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( - "9c68abcb-c211-477f-8e00-69df4169df80", - "29c1371e-e22d-44c3-8e79-39e277a0f1ed", - "90298810-c341-476c-8d8f-f36b19b5d961", - 7328.0 + "a3ce4b26-c72a-439b-927e-80477f3f01b6", + "886fa328-e2ea-4816-8007-03faea01d2f2", + "95a550d0-a9dc-4046-9de9-c2ceae3f9f96", + 8333.0 ) - .description("RswwQSmiJco3KwhjqpMqyENnno") - .requestId("eaabfe74-0124-461b-8acb-a74ef40db4a5"); + .description("hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyEN") + .requestId("4c32a7ee-12ee-4cef-b424-561b0fc1aaca"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -72,13 +72,13 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateTransferTransaction( - "9c68abcb-c211-477f-8e00-69df4169df80", - "29c1371e-e22d-44c3-8e79-39e277a0f1ed", - "90298810-c341-476c-8d8f-f36b19b5d961", - 7328.0 + "a3ce4b26-c72a-439b-927e-80477f3f01b6", + "886fa328-e2ea-4816-8007-03faea01d2f2", + "95a550d0-a9dc-4046-9de9-c2ceae3f9f96", + 8333.0 ) .metadata("{\"key\":\"value\"}") - .description("2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoC") + .description("M2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoC") .requestId("7cd2c5aa-6d59-462f-afd9-e01a7bbac46d"); 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 cbd718f..6c6047a 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( - "f3feb8a9-88da-4cf8-a8d9-b09cbcb12f63" + "3dc6d77e-acc2-4632-8c0f-c6abed1cea87" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateUserDevice( - "f3feb8a9-88da-4cf8-a8d9-b09cbcb12f63" + "3dc6d77e-acc2-4632-8c0f-c6abed1cea87" ) .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 0bac4f4..16fa1aa 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", - "FCchnpK" + "v" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java b/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java index 60cea25..8c5dd7e 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( - "6fef1321-6ec1-4d5d-9827-1abc1b2e62d8" + "e58e54ee-1f49-49d3-a0be-7230f9ff0994" ); 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 7598296..5189499 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( - "76ed671d-bd16-408a-9d0c-cda580df7f8f" + "d79ada44-2554-41d3-a753-5725590e9c63" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetAccountTransferSummary( - "76ed671d-bd16-408a-9d0c-cda580df7f8f" + "d79ada44-2554-41d3-a753-5725590e9c63" ) - .transferTypes(new String[]{"refund-exchange-outflow","exchange-inflow","use-coupon","refund-coupon","campaign-topup","refund-payment","payment","refund-campaign","exchange-outflow","refund-exchange-inflow","topup"}); + .transferTypes(new String[]{"exchange-outflow","exchange-inflow","refund-topup","use-coupon","refund-coupon","payment","refund-campaign","campaign-topup","refund-exchange-outflow"}); 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( - "76ed671d-bd16-408a-9d0c-cda580df7f8f" + "d79ada44-2554-41d3-a753-5725590e9c63" ) - .to("2022-05-08T23:58:55.000000Z") - .transferTypes(new String[]{"campaign-topup"}); + .to("2022-08-23T05:52:55.000000Z") + .transferTypes(new String[]{"exchange-outflow","use-coupon","refund-payment","topup","payment","exchange-inflow","refund-exchange-outflow"}); 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( - "76ed671d-bd16-408a-9d0c-cda580df7f8f" + "d79ada44-2554-41d3-a753-5725590e9c63" ) - .from("2021-02-13T21:14:34.000000Z") - .to("2020-09-07T03:23:29.000000Z") - .transferTypes(new String[]{"refund-payment","refund-campaign","refund-topup","payment","exchange-inflow","refund-exchange-inflow","use-coupon"}); + .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"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java b/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java index b1d3980..907a235 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( - "98386e5b-5ce3-4800-bc21-3257a9f68e29" + "f4216304-2f33-46f7-8217-ed37d527d473" ); 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 46f4ec5..c906341 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( - "b555b85d-884a-4f92-bab3-60d964d1b788" + "b051a77b-0e57-4138-aef5-ff8a3812550b" ); 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 735b28e..11647b4 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( - "292ea468-13c8-4c4d-b393-ddb71dc15ae4" + "282f5141-ced8-4882-9b84-38fd6c0fdc2c" ); 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 62b21af..729a9ee 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( - "FSWXNEvBDebROkI568yn3v" + "XNEvBDebROkI568yn3vAdg" ); 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 60355f4..b746291 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( - "9bc3d23a-fe8e-4699-9be7-a93d626f5384" + "e981839f-7730-40a4-9991-3f49bc7c0625" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetCustomerAccounts( - "9bc3d23a-fe8e-4699-9be7-a93d626f5384" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) - .email("dxWfKkMLwr@BpOR.com"); + .email("cm0Sp2RluF@OAxJ.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( - "9bc3d23a-fe8e-4699-9be7-a93d626f5384" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) - .tel("00807-2523") - .email("d4nadmeyKn@qGyq.com"); + .tel("07-0551-2657") + .email("TcJlnsa7zu@y1tu.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( - "9bc3d23a-fe8e-4699-9be7-a93d626f5384" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) - .externalId("pn3W7S36l34SSSOxW72gqSjd8QPzbjt0rt7UmerReZGbvGgv") - .tel("02911-591") - .email("6an4P1AnQA@LadF.com"); + .externalId("dw") + .tel("071-69745487") + .email("fKkMLwrBpO@RQ9L.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( - "9bc3d23a-fe8e-4699-9be7-a93d626f5384" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) .status("suspended") - .externalId("fKjbtuXgZDedIJqTHGgnOhGiwZBj5AvHdO2AtfcL") - .tel("02-664-818") - .email("3sP8V6IT9V@FC5b.com"); + .externalId("lnKRmCd4n") + .tel("045-981479") + .email("qpn3W7S36l@34SS.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( - "9bc3d23a-fe8e-4699-9be7-a93d626f5384" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) .setSuspended(false) .status("active") - .externalId("KXfPASw8jPQ0hMJ4nPgN") - .tel("03059385951") - .email("SOX0vTgyFK@1FOp.com"); + .externalId("W72gqSjd8QPzbjt0rt7UmerReZGbvGgvA") + .tel("09215911045") + .email("P1AnQALadF@sAzg.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( - "9bc3d23a-fe8e-4699-9be7-a93d626f5384" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) - .createdAtTo("2024-01-16T15:32:50.000000Z") - .setSuspended(false) - .status("active") - .externalId("9MWii2exAarzlUllrgsQZQAnUYeKIbZQuPYAKNLvTyMcI") - .tel("002-93-3592") - .email("HNPv9LO3Mt@Pyt1.com"); + .createdAtTo("2022-07-27T22:59:50.000000Z") + .setSuspended(true) + .status("pre-closed") + .externalId("tuXgZDedIJqTHGgnOhGiwZBj5AvHdO2Atfc") + .tel("0129-664-818") + .email("3sP8V6IT9V@FC5b.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( - "9bc3d23a-fe8e-4699-9be7-a93d626f5384" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) - .createdAtFrom("2021-07-27T20:21:40.000000Z") - .createdAtTo("2023-02-08T02:38:28.000000Z") + .createdAtFrom("2021-03-24T19:42:09.000000Z") + .createdAtTo("2020-09-24T18:38:11.000000Z") .setSuspended(true) - .status("suspended") - .externalId("tL8AYkBvD7caRgncONv8Kje2pUTWzADNDe87oiAkJDB6") - .tel("03053-1650") - .email("IdkjysmBoC@y1Ud.com"); + .status("active") + .externalId("PASw8jPQ0hMJ4nPgNJOUuVI3xkUSOX0vTgyFK1F") + .tel("002-97-992") + .email("exAarzlUll@rgsQ.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( - "9bc3d23a-fe8e-4699-9be7-a93d626f5384" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) - .perPage(8230) - .createdAtFrom("2024-05-01T00:34:57.000000Z") - .createdAtTo("2023-02-03T10:37:25.000000Z") + .perPage(6435) + .createdAtFrom("2022-12-18T13:21:30.000000Z") + .createdAtTo("2022-10-28T02:45:21.000000Z") .setSuspended(true) - .status("suspended") - .externalId("rxfXmPZX1VlVfqebv") - .tel("0032739459") - .email("e0pY47yGoA@wg28.com"); + .status("active") + .externalId("YeKIbZQuPYAKNLvTyMcIYl") + .tel("079352848") + .email("Pv9LO3MtPy@t1wT.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( - "9bc3d23a-fe8e-4699-9be7-a93d626f5384" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) - .page(2864) - .perPage(334) - .createdAtFrom("2020-07-06T22:38:59.000000Z") - .createdAtTo("2020-04-11T20:12:48.000000Z") + .page(8687) + .perPage(8494) + .createdAtFrom("2024-02-11T20:15:48.000000Z") + .createdAtTo("2023-10-06T20:45:00.000000Z") .setSuspended(true) - .status("suspended") - .externalId("6mAewFZHEg2RF0uEHwK5Jbw") - .tel("028-62098395") - .email("a7ymUxn4mf@vD7y.com"); + .status("active") + .externalId("Yk") + .tel("004073-175") + .email("ncONv8Kje2@pUTW.com"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java index ff731ed..c761d9b 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java @@ -103,9 +103,9 @@ void test5() throws ConnectionError, ProcessingError { "25c2238f-cf81-4930-aefa-23951ca983f1" ) .from("2020-06-22T06:48:08.000000Z") - .to("2023-10-27T22:37:01.000000Z") - .perPage(1815) - .page(1792); + .to("2024-10-03T11:36:06.000000Z") + .perPage(2431) + .page(6798); 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 6cfc3f4..2725120 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( - "ff19d13e-32f3-4315-a0c8-db1c10293429" + "bc754716-7e01-46ff-bef3-b315e34c3f20" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneySummary( - "ff19d13e-32f3-4315-a0c8-db1c10293429" + "bc754716-7e01-46ff-bef3-b315e34c3f20" ) - .to("2023-06-06T15:44:55.000000Z"); + .to("2020-02-01T06:05:29.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( - "ff19d13e-32f3-4315-a0c8-db1c10293429" + "bc754716-7e01-46ff-bef3-b315e34c3f20" ) - .from("2022-07-27T19:34:17.000000Z") - .to("2022-10-30T18:15:11.000000Z"); + .from("2023-06-06T15:44:55.000000Z") + .to("2022-07-27T19:34:17.000000Z"); 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 similarity index 86% rename from src/test/java/jp/pokepay/partnerapi/GetSevenBankAtmSessionTest.java rename to src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java index fc41e3a..5691bfa 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetSevenBankAtmSessionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java @@ -1,18 +1,18 @@ // DO NOT EDIT: File is generated by code generator. package jp.pokepay.partnerapi; -import jp.pokepay.partnerapi.request.GetSevenBankAtmSession; +import jp.pokepay.partnerapi.request.GetSevenBankATMSession; 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 GetSevenBankAtmSessionTest { +public class GetSevenBankATMSessionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetSevenBankATMSession( - "BWfN" + "EkSwN7J" ); 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 e0ed279..bd0fcdd 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( - "e7f9bb88-8b7f-4883-b91c-43b0aea260a6" + "31ecb769-3144-4a83-95a2-b72406deb863" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetShopAccounts( - "e7f9bb88-8b7f-4883-b91c-43b0aea260a6" + "31ecb769-3144-4a83-95a2-b72406deb863" ) .setSuspended(false); try { @@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new GetShopAccounts( - "e7f9bb88-8b7f-4883-b91c-43b0aea260a6" + "31ecb769-3144-4a83-95a2-b72406deb863" ) - .createdAtTo("2022-01-09T07:41:23.000000Z") + .createdAtTo("2020-05-06T02:02:55.000000Z") .setSuspended(true); try { PartnerAPITest.getClient().send(request); @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new GetShopAccounts( - "e7f9bb88-8b7f-4883-b91c-43b0aea260a6" + "31ecb769-3144-4a83-95a2-b72406deb863" ) - .createdAtFrom("2020-10-18T03:56:04.000000Z") - .createdAtTo("2021-07-25T03:50:36.000000Z") - .setSuspended(true); + .createdAtFrom("2023-03-17T16:04:05.000000Z") + .createdAtTo("2024-03-19T06:01:45.000000Z") + .setSuspended(false); 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( - "e7f9bb88-8b7f-4883-b91c-43b0aea260a6" + "31ecb769-3144-4a83-95a2-b72406deb863" ) - .perPage(9222) - .createdAtFrom("2023-07-21T18:59:40.000000Z") - .createdAtTo("2022-05-03T22:28:24.000000Z") - .setSuspended(true); + .perPage(4823) + .createdAtFrom("2023-07-22T08:29:37.000000Z") + .createdAtTo("2020-07-29T13:51:14.000000Z") + .setSuspended(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 GetShopAccounts( - "e7f9bb88-8b7f-4883-b91c-43b0aea260a6" + "31ecb769-3144-4a83-95a2-b72406deb863" ) - .page(4807) - .perPage(6255) - .createdAtFrom("2023-05-11T13:18:24.000000Z") - .createdAtTo("2020-12-31T07:17:51.000000Z") + .page(4360) + .perPage(8484) + .createdAtFrom("2022-04-08T21:42:45.000000Z") + .createdAtTo("2023-03-08T17:36:02.000000Z") .setSuspended(true); 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 b5e9063..c47e730 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( - "1c29fc9c-9693-4909-ae70-2703f2f7d1c7" + "0dc83d4f-7776-4b76-b82e-8c80e00d323b" ); 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 544d83d..164b940 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java @@ -66,7 +66,7 @@ void test3() throws ConnectionError, ProcessingError { "0adcc451-9f5b-4fe8-8803-fd1118c34c95" ) .expiresAtFrom("2020-09-07T21:25:03.000000Z") - .expiresAtTo("2022-05-06T04:41:55.000000Z") + .expiresAtTo("2024-10-02T20:33:17.000000Z") .direction("desc"); try { PartnerAPITest.getClient().send(request); @@ -84,10 +84,10 @@ void test4() throws ConnectionError, ProcessingError { Request request = new ListAccountBalances( "0adcc451-9f5b-4fe8-8803-fd1118c34c95" ) - .perPage(3844) - .expiresAtFrom("2022-07-13T08:37:39.000000Z") - .expiresAtTo("2022-05-05T20:55:29.000000Z") - .direction("asc"); + .perPage(5374) + .expiresAtFrom("2021-01-13T03:58:59.000000Z") + .expiresAtTo("2024-09-16T05:40:45.000000Z") + .direction("desc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -104,11 +104,11 @@ void test5() throws ConnectionError, ProcessingError { Request request = new ListAccountBalances( "0adcc451-9f5b-4fe8-8803-fd1118c34c95" ) - .page(677) - .perPage(5673) - .expiresAtFrom("2021-09-28T23:27:27.000000Z") - .expiresAtTo("2020-10-21T06:08:14.000000Z") - .direction("desc"); + .page(9044) + .perPage(3584) + .expiresAtFrom("2022-05-05T20:55:29.000000Z") + .expiresAtTo("2023-04-07T14:57:44.000000Z") + .direction("asc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java b/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java index d502de4..f087907 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( - "e82d7cf3-7ec5-43b0-a747-7fff9e012434" + "cce276f9-f936-4628-91b6-bb60d347c3df" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "e82d7cf3-7ec5-43b0-a747-7fff9e012434" + "cce276f9-f936-4628-91b6-bb60d347c3df" ) - .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 ListAccountExpiredBalances( - "e82d7cf3-7ec5-43b0-a747-7fff9e012434" + "cce276f9-f936-4628-91b6-bb60d347c3df" ) - .expiresAtTo("2020-03-19T18:01:03.000000Z") + .expiresAtTo("2022-11-08T09:57:39.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( - "e82d7cf3-7ec5-43b0-a747-7fff9e012434" + "cce276f9-f936-4628-91b6-bb60d347c3df" ) - .expiresAtFrom("2022-12-28T17:18:58.000000Z") - .expiresAtTo("2023-10-07T04:30:21.000000Z") + .expiresAtFrom("2021-02-10T04:23:33.000000Z") + .expiresAtTo("2021-11-27T03:23:28.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( - "e82d7cf3-7ec5-43b0-a747-7fff9e012434" + "cce276f9-f936-4628-91b6-bb60d347c3df" ) - .perPage(9557) - .expiresAtFrom("2023-08-29T00:06:37.000000Z") - .expiresAtTo("2024-05-02T18:19:52.000000Z") - .direction("asc"); + .perPage(9269) + .expiresAtFrom("2022-07-27T12:24:37.000000Z") + .expiresAtTo("2020-03-19T18:01:03.000000Z") + .direction("desc"); 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( - "e82d7cf3-7ec5-43b0-a747-7fff9e012434" + "cce276f9-f936-4628-91b6-bb60d347c3df" ) - .page(7340) - .perPage(6193) - .expiresAtFrom("2021-08-26T01:41:22.000000Z") - .expiresAtTo("2022-02-08T20:51:26.000000Z") + .page(6531) + .perPage(2579) + .expiresAtFrom("2023-10-07T04:30:21.000000Z") + .expiresAtTo("2023-04-20T20:38:29.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 742eb53..eb967c0 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( - "d12dcfd6-cb16-4560-b53b-6d190a7e3b7f" + "a829764d-e1b6-4d25-9279-1fceebdd8b45" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListBanks( - "d12dcfd6-cb16-4560-b53b-6d190a7e3b7f" + "a829764d-e1b6-4d25-9279-1fceebdd8b45" ) - .privateMoneyId("b5b4cf04-2309-458b-9854-73835bae5d12"); + .privateMoneyId("f13bb85d-66aa-4930-a316-33b8455d28c1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java b/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java index c6ba61d..e875352 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java @@ -41,7 +41,7 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListBills() - .upperLimitAmount(5168) + .upperLimitAmount(3460) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -57,8 +57,8 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListBills() - .lowerLimitAmount(7192) - .upperLimitAmount(2756) + .lowerLimitAmount(3003) + .upperLimitAmount(2795) .setDisabled(true); try { PartnerAPITest.getClient().send(request); @@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListBills() - .shopId("3a601079-b551-4d6f-a145-1d90db3b844c") - .lowerLimitAmount(7788) - .upperLimitAmount(8837) - .setDisabled(true); + .shopId("a9696cec-9a6a-4ba0-b1b1-beff32bea9d1") + .lowerLimitAmount(6740) + .upperLimitAmount(874) + .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 ListBills() - .shopName("Jk6MRPKi62IzWH9emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycM") - .shopId("82ebb227-2b66-4610-ac0f-35fd8e7a7012") - .lowerLimitAmount(9084) - .upperLimitAmount(8550) - .setDisabled(false); + .shopName("kgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kX") + .shopId("52fbc519-17e0-450f-a1fb-f1be62dd6c3d") + .lowerLimitAmount(6587) + .upperLimitAmount(4324) + .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 ListBills() - .createdTo("2022-05-19T01:21:34.000000Z") - .shopName("IeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuI") - .shopId("710d4017-92d6-4271-bcdd-481e21159dd2") - .lowerLimitAmount(4359) - .upperLimitAmount(8483) - .setDisabled(false); + .createdTo("2024-04-18T15:33:35.000000Z") + .shopName("stCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25u") + .shopId("8767767b-8976-455e-afdf-74728b146513") + .lowerLimitAmount(6765) + .upperLimitAmount(7751) + .setDisabled(true); 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("2023-03-08T17:36:02.000000Z") - .createdTo("2022-05-20T09:26:17.000000Z") - .shopName("3kljq") - .shopId("475e63b1-beff-49d1-b83c-1a5453abc36a") - .lowerLimitAmount(9077) - .upperLimitAmount(4735) + .createdFrom("2022-07-30T05:48:44.000000Z") + .createdTo("2020-11-03T12:14:03.000000Z") + .shopName("GKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8LerXQe8LjF8Q") + .shopId("3752130a-b436-4bf1-a9f6-e7809624e470") + .lowerLimitAmount(452) + .upperLimitAmount(5404) .setDisabled(false); 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("kgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFP") - .createdFrom("2024-04-28T23:17:21.000000Z") - .createdTo("2021-10-23T10:59:23.000000Z") - .shopName("cfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25uvrmGGKjRYVWTh4n3") - .shopId("35000ba0-b226-4912-b48c-e408c8553d3e") - .lowerLimitAmount(8452) - .upperLimitAmount(7282) + .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) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new ListBills() - .organizationCode("-Jp7kL8y") - .description("IiOwN14umNbs9HzTMzg2AFGgoFwChMKyF") - .createdFrom("2021-09-29T13:05:19.000000Z") - .createdTo("2021-10-26T11:55:40.000000Z") - .shopName("np6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8LerXQe8LjF8Q6qvpD5ZbBwXFvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmt") - .shopId("e57b1c63-c28d-43ab-b992-9ee99f75160e") - .lowerLimitAmount(4290) - .upperLimitAmount(4228) - .setDisabled(true); + .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) + .setDisabled(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -197,15 +197,15 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new ListBills() - .privateMoneyId("df234d3c-99f3-4b08-bc3b-95f9771c9f79") - .organizationCode("lu3-l----QNs-JFkVzAdX-8--e0-5") - .description("zg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3P") - .createdFrom("2021-01-17T09:28:40.000000Z") - .createdTo("2022-01-08T09:20:21.000000Z") - .shopName("hjHLVEtSIaxZ8O9N2SLzG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep") - .shopId("72cdf3b4-d256-42fd-ab5f-bb09eca8d78b") - .lowerLimitAmount(4506) - .upperLimitAmount(321) + .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); try { PartnerAPITest.getClient().send(request); @@ -221,16 +221,16 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new ListBills() - .billId("gvgI7YgV") - .privateMoneyId("08c9f9cb-602d-46ff-9f17-268356ed04c3") - .organizationCode("5uc-J-a-3--Ef1-KE6") - .description("vvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteVH8YLvoUoraYyVUvoHuSd144X7ZEq8UGlMat7Q5BMcC1v73") - .createdFrom("2024-07-03T12:05:10.000000Z") - .createdTo("2022-08-09T16:28:31.000000Z") - .shopName("y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZ") - .shopId("043c70a4-2dde-415f-ace6-c21faf330fa1") - .lowerLimitAmount(8747) - .upperLimitAmount(746) + .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) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new ListBills() - .perPage(7419) - .billId("mGpF3omD") - .privateMoneyId("f2e6f30f-b642-4639-b260-84f23fdaa475") - .organizationCode("6lrdsx-d8l6i---y--o") - .description("95sfTG55oAI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2") - .createdFrom("2023-05-20T19:07:13.000000Z") - .createdTo("2021-11-08T05:48:57.000000Z") - .shopName("o6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWR") - .shopId("d4d02fe4-2799-4981-8100-8fcb78fc2662") - .lowerLimitAmount(2172) - .upperLimitAmount(177) - .setDisabled(true); + .perPage(737) + .billId("HQ5cbR") + .privateMoneyId("9a952f36-ae32-41a0-8f45-7edd3017071c") + .organizationCode("X-z3q470F5N-NRB9-Syci") + .description("T65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zI") + .createdFrom("2020-09-25T15:17:58.000000Z") + .createdTo("2020-12-02T23:21:54.000000Z") + .shopName("Zx4eE9mHPjq6XCvYjxbcuNA5AOQ") + .shopId("07d8d248-443e-4527-be89-51bad8f57297") + .lowerLimitAmount(6034) + .upperLimitAmount(8050) + .setDisabled(false); 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 ListBills() - .page(4530) - .perPage(466) - .billId("IHM0x") - .privateMoneyId("76f68a27-9d35-4225-af5c-14ca1f6447a6") - .organizationCode("8-4e-G1Y---z--dY-") - .description("KmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDk") - .createdFrom("2022-06-25T22:58:02.000000Z") - .createdTo("2024-05-17T15:59:00.000000Z") - .shopName("nAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4") - .shopId("8b2f984b-29ca-4c48-b2e4-be0bcaa25121") - .lowerLimitAmount(1482) - .upperLimitAmount(9878) - .setDisabled(true); + .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); 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 ff26e8a..5fee4d1 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(true); + .setDisabled(false); 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(false) + .setOnetime(true) .setDisabled(true); try { PartnerAPITest.getClient().send(request); @@ -57,8 +57,8 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .description("HfvN") - .setOnetime(true) + .description("rfIL") + .setOnetime(false) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .issuerShopId("824f4845-0e42-4ee5-b93b-6f9aed921e8d") - .description("muQoNy") - .setOnetime(false) - .setDisabled(false); + .issuerShopId("eda02500-664e-4e38-97fb-26bf47759f9c") + .description("7") + .setOnetime(true) + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -92,10 +92,10 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .createdTo("2021-05-30T15:09:00.000000Z") - .issuerShopId("45590978-e47c-4182-a468-fd2461ad88d4") - .description("5YfaNVM") - .setOnetime(true) + .createdTo("2023-04-23T01:28:23.000000Z") + .issuerShopId("dd29802a-5d83-413f-8cfe-74066b7b4bca") + .description("oY") + .setOnetime(false) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .createdFrom("2022-03-26T12:35:04.000000Z") - .createdTo("2023-09-09T15:08:33.000000Z") - .issuerShopId("2ee6131f-9e6c-47aa-90f8-8892daa7e996") - .description("y8RqwFWTQ") - .setOnetime(true) - .setDisabled(false); + .createdFrom("2021-11-04T11:35:54.000000Z") + .createdTo("2022-11-08T06:35:09.000000Z") + .issuerShopId("9f6b96c0-dfe2-4138-89f3-a10a20987af0") + .description("1FcaYx8") + .setOnetime(false) + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -131,11 +131,11 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .expiresTo("2023-06-22T16:39:13.000000Z") - .createdFrom("2020-08-30T19:09:28.000000Z") - .createdTo("2023-01-14T06:34:30.000000Z") - .issuerShopId("4c653398-31ff-4598-96a9-78175aebfe2c") - .description("t9bN2zIxN") + .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); try { @@ -152,13 +152,13 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .expiresFrom("2022-04-04T02:54:52.000000Z") - .expiresTo("2023-10-18T14:58:00.000000Z") - .createdFrom("2024-02-29T06:11:35.000000Z") - .createdTo("2024-05-26T09:48:55.000000Z") - .issuerShopId("84674665-ee96-4345-b9ba-b3ba7be1e6ed") - .description("H") - .setOnetime(false) + .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") + .setOnetime(true) .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .organizationCode("jq6XCvYjxbcuNA5AO") - .expiresFrom("2023-05-03T18:02:21.000000Z") - .expiresTo("2024-03-03T17:28:40.000000Z") - .createdFrom("2022-06-07T10:15:26.000000Z") - .createdTo("2022-07-03T06:10:02.000000Z") - .issuerShopId("d8f57297-5792-4f72-aff5-92b64a827d67") - .description("AXoc") - .setOnetime(true) - .setDisabled(false); + .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") + .setOnetime(false) + .setDisabled(true); 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("eb671e34-e1d5-411d-ab70-1e4f44a63190") - .organizationCode("UbFxl1xg8SX1voG8Gydqo4fQ7D47J36") - .expiresFrom("2022-07-01T22:20:09.000000Z") - .expiresTo("2021-11-13T23:47:35.000000Z") - .createdFrom("2021-06-27T17:30:00.000000Z") - .createdTo("2021-02-18T06:13:17.000000Z") - .issuerShopId("2f3b7966-53b2-4af0-8c02-f16ec0e9bd5c") - .description("ur") + .privateMoneyId("c0917074-e8f6-46c1-83a0-1cdd2f6c1e37") + .organizationCode("t4NS9wkdOXwioDpfXuzoNb") + .expiresFrom("2022-05-14T21:29:54.000000Z") + .expiresTo("2023-01-21T02:32:01.000000Z") + .createdFrom("2023-09-02T13:45:51.000000Z") + .createdTo("2021-06-27T19:24:57.000000Z") + .issuerShopId("72a8e55d-15aa-4b75-8b65-52a1880d0eaf") + .description("j9znX2X") .setOnetime(true) - .setDisabled(true); + .setDisabled(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -221,15 +221,15 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .perPage(7561) - .privateMoneyId("e01cd7fd-8233-46b6-9459-4ed006d08b01") - .organizationCode("xIzfeirg") - .expiresFrom("2020-07-24T05:07:03.000000Z") - .expiresTo("2022-10-21T19:02:47.000000Z") - .createdFrom("2022-07-02T11:07:26.000000Z") - .createdTo("2024-06-27T17:05:35.000000Z") - .issuerShopId("40afd3ca-3598-434b-b567-47cd99546433") - .description("Qh2JH") + .perPage(8559) + .privateMoneyId("0e65db05-3dc6-4ba5-baac-be51bada5be3") + .organizationCode("5QEOmdgUm73I2kFc") + .expiresFrom("2020-01-21T19:39:55.000000Z") + .expiresTo("2022-05-24T22:27:26.000000Z") + .createdFrom("2020-09-17T20:59:41.000000Z") + .createdTo("2021-02-09T18:52:01.000000Z") + .issuerShopId("77b23aeb-57f3-4a5a-821d-947f9d2f56b6") + .description("yT3") .setOnetime(true) .setDisabled(true); try { @@ -246,16 +246,16 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new ListChecks() - .page(8480) - .perPage(2915) - .privateMoneyId("ab81ec2c-067e-481a-80e9-df9fce761c29") - .organizationCode("M0oFGn") - .expiresFrom("2022-04-01T19:33:19.000000Z") - .expiresTo("2020-07-14T00:47:02.000000Z") - .createdFrom("2021-05-14T03:58:46.000000Z") - .createdTo("2023-09-13T07:54:17.000000Z") - .issuerShopId("d6fcc3c0-3d94-4c18-9cab-0f981ec74d09") - .description("X9mW4mL") + .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) .setDisabled(false); try { diff --git a/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java b/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java index f9b11c9..79cc238 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( - "fc31179e-5e6d-4938-8d0f-8799af0c0fc9" + "b44303ec-e198-4255-8ade-7a0f634deec2" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "fc31179e-5e6d-4938-8d0f-8799af0c0fc9" + "b44303ec-e198-4255-8ade-7a0f634deec2" ) - .perPage(3937); + .perPage(5571); 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( - "fc31179e-5e6d-4938-8d0f-8799af0c0fc9" + "b44303ec-e198-4255-8ade-7a0f634deec2" ) - .page(4823) - .perPage(8086); + .page(8650) + .perPage(7773); 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( - "fc31179e-5e6d-4938-8d0f-8799af0c0fc9" + "b44303ec-e198-4255-8ade-7a0f634deec2" ) - .availableTo("2020-12-23T04:51:51.000000Z") - .page(4311) - .perPage(47); + .availableTo("2023-09-25T06:22:38.000000Z") + .page(3351) + .perPage(1673); 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( - "fc31179e-5e6d-4938-8d0f-8799af0c0fc9" + "b44303ec-e198-4255-8ade-7a0f634deec2" ) - .availableFrom("2022-08-14T06:30:58.000000Z") - .availableTo("2021-06-20T16:19:48.000000Z") - .page(1701) - .perPage(5160); + .availableFrom("2024-09-30T09:57:39.000000Z") + .availableTo("2020-03-18T01:00:22.000000Z") + .page(5984) + .perPage(4476); 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( - "fc31179e-5e6d-4938-8d0f-8799af0c0fc9" + "b44303ec-e198-4255-8ade-7a0f634deec2" ) - .availableShopName("Tif3qpX") - .availableFrom("2023-11-15T06:36:23.000000Z") - .availableTo("2020-01-07T20:07:47.000000Z") - .page(347) - .perPage(7663); + .availableShopName("4aTjbZ") + .availableFrom("2021-10-04T14:19:21.000000Z") + .availableTo("2022-03-05T22:16:44.000000Z") + .page(6976) + .perPage(9826); 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( - "fc31179e-5e6d-4938-8d0f-8799af0c0fc9" + "b44303ec-e198-4255-8ade-7a0f634deec2" ) - .issuedShopName("3LJ") - .availableShopName("3iwipH") - .availableFrom("2022-08-13T03:29:41.000000Z") - .availableTo("2023-10-16T15:54:27.000000Z") - .page(3757) - .perPage(134); + .issuedShopName("W") + .availableShopName("Rs") + .availableFrom("2022-03-08T06:29:25.000000Z") + .availableTo("2024-04-24T08:35:06.000000Z") + .page(5499) + .perPage(9438); 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( - "fc31179e-5e6d-4938-8d0f-8799af0c0fc9" + "b44303ec-e198-4255-8ade-7a0f634deec2" ) - .couponName("ShjnA4S") - .issuedShopName("r1") - .availableShopName("SN2Pelpy") - .availableFrom("2020-07-15T02:41:59.000000Z") - .availableTo("2020-08-17T18:51:21.000000Z") - .page(9308) - .perPage(3954); + .couponName("Z6") + .issuedShopName("rz0tQnP1") + .availableShopName("Co4x4A") + .availableFrom("2023-12-20T06:59:36.000000Z") + .availableTo("2021-05-25T05:31:22.000000Z") + .page(9890) + .perPage(4355); 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( - "fc31179e-5e6d-4938-8d0f-8799af0c0fc9" + "b44303ec-e198-4255-8ade-7a0f634deec2" ) - .couponId("kqJGFUWW") - .couponName("cs7") - .issuedShopName("a7L") - .availableShopName("TG") - .availableFrom("2020-11-17T18:33:13.000000Z") - .availableTo("2021-04-30T07:53:36.000000Z") - .page(9953) - .perPage(724); + .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); 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 c36feb7..771c4a4 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( - "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" + "1552de2f-da0c-48ac-a9e1-2fa8e58654df" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" + "1552de2f-da0c-48ac-a9e1-2fa8e58654df" ) - .perPage(3721); + .perPage(6702); 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( - "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" + "1552de2f-da0c-48ac-a9e1-2fa8e58654df" ) - .page(1673) - .perPage(8569); + .page(3721) + .perPage(1673); 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( - "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" + "1552de2f-da0c-48ac-a9e1-2fa8e58654df" ) - .to("2020-06-09T08:43:25.000000Z") - .page(2641) - .perPage(1403); + .to("2021-06-26T10:33:28.000000Z") + .page(1122) + .perPage(2641); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,7 +82,7 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" + "1552de2f-da0c-48ac-a9e1-2fa8e58654df" ) .from("2023-08-31T11:35:24.000000Z") .to("2021-11-27T00:17:30.000000Z") @@ -102,7 +102,7 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" + "1552de2f-da0c-48ac-a9e1-2fa8e58654df" ) .setModified(true) .from("2021-10-15T20:46:20.000000Z") @@ -123,7 +123,7 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" + "1552de2f-da0c-48ac-a9e1-2fa8e58654df" ) .type("transfer") .setModified(true) @@ -145,7 +145,7 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" + "1552de2f-da0c-48ac-a9e1-2fa8e58654df" ) .receiverCustomerId("476067c0-5180-472f-9748-fbe19e693314") .type("cashback") @@ -168,7 +168,7 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" + "1552de2f-da0c-48ac-a9e1-2fa8e58654df" ) .senderCustomerId("d2869b53-2e22-4d40-bc23-f9d272cd44e5") .receiverCustomerId("03a89a91-73ea-4831-99d4-32f7b9069362") diff --git a/src/test/java/jp/pokepay/partnerapi/ListTransactionsTest.java b/src/test/java/jp/pokepay/partnerapi/ListTransactionsTest.java index 2578a1e..98fde2c 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("dg2WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32R"); + .description("WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYX"); 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_outflow","cashback","expire","payment","exchange_inflow","topup"}) - .description("DzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss"); + .types(new String[]{"exchange_inflow"}) + .description("acoAUmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQPc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListTransactions() - .setModified(false) - .types(new String[]{"exchange_outflow","payment"}) - .description("UmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQP"); + .setModified(true) + .types(new String[]{"topup","exchange_outflow"}) + .description("CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd"); 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("aa193c82-9a0d-4a02-9ee3-7b584ba8d1c8") - .setModified(false) - .types(new String[]{"payment"}) - .description("CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt"); + .privateMoneyId("8241fcb6-d353-4140-8de7-58b4bf444d8d") + .setModified(true) + .types(new String[]{"expire","topup","exchange_outflow","payment"}) + .description("LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mh"); 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("88") - .privateMoneyId("20b27c25-c3b9-4d4b-8880-685677f487f5") - .setModified(false) - .types(new String[]{"exchange_outflow","payment","cashback"}) - .description("Kt4lw9lRVMCAhIxw"); + .organizationCode("s8cQf--ht--D") + .privateMoneyId("c5d1da6b-ab22-4598-9835-a1de9db3ebc7") + .setModified(true) + .types(new String[]{"cashback","exchange_outflow","exchange_inflow","payment","topup"}) + .description("sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixLpvflY8MFYZJvlfPZ9XRs2DjUex8"); 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("eHf4mhVFw") - .organizationCode("X-ht--D-8v77zAmT71--GS-Sh23-x-") - .privateMoneyId("2e41e3ce-0b8e-45dc-975e-5a9f80c6650e") - .setModified(false) - .types(new String[]{"payment","expire","exchange_outflow","exchange_inflow","cashback","topup"}) - .description("mOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQ"); + .transactionId("Zcru468") + .organizationCode("436qXf") + .privateMoneyId("b827d131-f8e8-44ac-977f-3ab363c948a2") + .setModified(true) + .types(new String[]{"exchange_inflow","exchange_outflow","payment","cashback"}) + .description("pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXD"); 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("abe82fa3-1058-4b4e-acb3-8cafc35ed927") - .transactionId("fMMea") - .organizationCode("6KS-3R--VY6Id6z7n97") - .privateMoneyId("d35dcc20-07f6-4e6c-bde6-90d087e77b5a") - .setModified(false) - .types(new String[]{"topup","exchange_inflow","expire","cashback"}) - .description("Rs2DjUex8FZcru468uiy2IBQsKNbECUonyUv3nTPZ701h3V5Qywi2pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DC"); + .terminalId("14db71eb-d419-4c4a-87f1-7879db1dae31") + .transactionId("yPaGHV") + .organizationCode("W-9jFTlu-XkApk--324-FW3m--8-") + .privateMoneyId("f8dee0a6-4c4f-4836-9cd8-37543703a79b") + .setModified(true) + .types(new String[]{"expire","cashback","topup"}) + .description("PEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLI"); 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("6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXDkJqy1UyPaGHVkyMSdme") - .terminalId("430728ed-f65a-4efe-ae25-13a668e4d098") - .transactionId("covbEUc9") - .organizationCode("m--8-6yqH--v6f-2-N8a") - .privateMoneyId("abaaad6e-6afb-495f-a252-64e190197b0a") - .setModified(true) - .types(new String[]{"cashback","expire"}) - .description("KHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFw"); + .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"); 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("0bb110d6-754c-4e8f-895a-361c6368ab20") - .customerName("nC6rD") - .terminalId("0c68d1f9-0059-4ef5-95f5-4d47e49c0fa8") - .transactionId("Xn") - .organizationCode("-2-2vc3u-SL-UVy-1J-4") - .privateMoneyId("96962c2b-a843-425b-b078-4b4e72e0c1ac") - .setModified(true) - .types(new String[]{"cashback","topup"}) - .description("usYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbPQzPRirLmp7HiQaj"); + .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"); 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("1f208b29-29aa-4618-b05e-d06c2b0d15b0") - .customerId("31d3b385-1539-4e26-95a7-0464e92e41b6") - .customerName("IiaL5c40GPi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr") - .terminalId("debfe830-8f46-4855-b3c4-d9eea2df1a57") - .transactionId("KqsDEee") - .organizationCode("-iW73r1Y-bvxv") - .privateMoneyId("2c87a899-7567-45b2-b6a0-45c2556c6174") - .setModified(false) - .types(new String[]{"topup","exchange_outflow","expire","payment"}) - .description("lEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8Z"); + .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"); 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(7693) - .shopId("fbd6a0e0-3372-4d23-ab95-b071eef4d2bb") - .customerId("e9ff71e6-bb4e-4dbe-a7a4-8cffa2826d0d") - .customerName("GAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5Bazm") - .terminalId("dcc9becb-ce3e-47f1-897d-62a08961c648") - .transactionId("UlvI3TLRDU") - .organizationCode("1T54RprF9e") - .privateMoneyId("9921668a-1c8c-4b66-a8c6-1f5b26c71db0") + .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") .setModified(true) - .types(new String[]{"payment","exchange_outflow","cashback","topup","expire","exchange_inflow"}) - .description("Rg4eijui0x4AzukqXii06wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyB"); + .types(new String[]{"expire"}) + .description("bXHSU9E0Qlg3gebvAwjzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisL"); 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(5957) - .perPage(1458) - .shopId("25a1b673-3f5f-40a3-914a-98fc7e5cba0a") - .customerId("e3566da9-311c-4e37-916b-d3b6fa03dae4") - .customerName("P6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR88F7Ubd6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK775FUjJKUwWsCFULHC5xu9xwKzEEFr") - .terminalId("8b340176-3230-4a84-86f0-96b569f2b4d6") - .transactionId("2XFS") - .organizationCode("80-tv9Fy1") - .privateMoneyId("ffac6395-94ec-438f-9b99-6ee786500033") + .page(8791) + .perPage(4125) + .shopId("04e72a3f-308d-4ac1-8b24-7a85bf70fc21") + .customerId("642fcb38-c880-4cfb-8437-ec522c3da0be") + .customerName("vLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5qYfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua2WPHw1UTjf1quigD2l2JnK33Y2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0") + .terminalId("7d16cee5-bd55-4afa-9534-6ef8ece8abd8") + .transactionId("5OLhVoB1l") + .organizationCode("u5Jec2Sq9") + .privateMoneyId("e5765496-b9f4-4a3c-b6ae-7ccf355db2df") .setModified(false) - .types(new String[]{"topup","exchange_inflow"}) - .description("jzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUt"); + .types(new String[]{"expire","topup"}) + .description("eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuK"); 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("2022-02-07T22:47:04.000000Z") - .page(812) - .perPage(771) - .shopId("8e5fd89b-2b53-49bb-b81f-9d5341ae038f") - .customerId("63f4bd61-127c-44de-b53e-1571a8764f09") - .customerName("YfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua") - .terminalId("8e1a411c-2bbb-45e0-855b-273288fccdd7") - .transactionId("PHw1U") - .organizationCode("99q-L-I7f5-U2--fa-Lleb-7e-5-") - .privateMoneyId("de760078-73fb-4ab5-8577-64070047582e") + .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_inflow","exchange_outflow","payment","expire","cashback"}) - .description("5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiX"); + .types(new String[]{"exchange_outflow","topup","payment","expire","exchange_inflow"}) + .description("OzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRj"); 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("2020-01-17T01:48:18.000000Z") - .to("2024-01-29T13:43:49.000000Z") - .page(6653) - .perPage(2394) - .shopId("e5765496-b9f4-4a3c-b6ae-7ccf355db2df") - .customerId("d439ed9d-2f6e-4e2d-a774-9fb0d215028b") - .customerName("eqhymEV4KDx3FmD9kbbl") - .terminalId("edd0a327-471e-43fb-9169-b228050f1eab") - .transactionId("vO") - .organizationCode("6O6xGulu") - .privateMoneyId("99b44e59-1a40-4b5a-b846-48c4944eec87") - .setModified(true) - .types(new String[]{"topup","exchange_inflow"}) - .description("QjYlB42oGAhylpmFOwCdKPABZdrgh98RslD"); + .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"); 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 a2709ad..b9c7ace 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(56); + .perPage(794); 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("6ec3602b-16ed-49ef-b318-6ef96409f313") - .perPage(417); + .prevPageCursorId("3b39a53e-1ceb-475a-be4c-1b23542a7d10") + .perPage(636); 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("9682b023-856c-436f-8c5b-a6575dd512bc") - .prevPageCursorId("30d42930-3212-421a-a74c-c179fcf65080") - .perPage(396); + .nextPageCursorId("92ca1f0d-d064-4922-b9b8-af969e436ea1") + .prevPageCursorId("04044642-50dc-4f9d-b957-8e57b8dc3771") + .perPage(510); 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("2020-11-29T14:24:30.000000Z") - .nextPageCursorId("c4915b4e-4f7e-4b69-a78a-ebb5ec6ddaf1") - .prevPageCursorId("febc69d5-0bb7-4f11-b7b1-2b7dc90a06d3") - .perPage(509); + .to("2021-07-05T19:46:25.000000Z") + .nextPageCursorId("d57c82ce-d572-4f58-96a9-0e05ca0f2b0e") + .prevPageCursorId("6ce554d8-62a9-47bc-898b-f2318d3486ad") + .perPage(248); 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("2022-02-23T20:34:33.000000Z") - .to("2020-06-11T13:58:15.000000Z") - .nextPageCursorId("6da1dac7-dc2c-4104-b9e2-944c31a1c0be") - .prevPageCursorId("ca60b746-6ce6-4348-8983-cf6200f09690") - .perPage(531); + .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); 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","exchange_outflow"}) - .from("2023-06-25T00:31:44.000000Z") - .to("2022-01-11T20:40:47.000000Z") - .nextPageCursorId("ab3f5867-04a3-49bb-ad88-c58f0213e999") - .prevPageCursorId("33747763-ab96-4008-b870-adfc6b6b29ae") - .perPage(84); + .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); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListTransactionsV2() - .setModified(false) - .types(new String[]{"expire","exchange_inflow","payment","topup","exchange_outflow"}) - .from("2021-10-28T01:03:49.000000Z") - .to("2022-10-30T14:30:05.000000Z") - .nextPageCursorId("9709490d-10e0-4189-a5a6-de5c36c6d29f") - .prevPageCursorId("e5c7cdf5-bcfb-4fc2-bc32-e8d49958981c") - .perPage(139); + .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); 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("cJ") + .transactionId("E") .setModified(false) - .types(new String[]{"topup","expire","payment","cashback","exchange_outflow"}) - .from("2022-05-02T21:17:01.000000Z") - .to("2023-01-05T16:53:50.000000Z") - .nextPageCursorId("19df89b1-1bfe-477e-aec1-52b746eb81b9") - .prevPageCursorId("bc91d8d3-1149-4aba-bcd6-861e8790a206") - .perPage(703); + .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); 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("4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZG") - .transactionId("pE19g89r") - .setModified(false) - .types(new String[]{"expire","cashback","topup","payment","exchange_outflow"}) - .from("2022-01-06T20:16:17.000000Z") - .to("2021-01-11T22:53:10.000000Z") - .nextPageCursorId("755335b8-2131-4ba4-a02a-377d66f09793") - .prevPageCursorId("96786e14-9368-4711-af8e-62b613576ee6") - .perPage(467); + .description("YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90") + .transactionId("Lh1FnEv5pC") + .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); 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("4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatg") - .description("SAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90ILh1") - .transactionId("nEv5pCv") + .customerName("xb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34z4jE8W9hhkp") + .description("YWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4UwD") + .transactionId("tqXzHNdyt") .setModified(false) - .types(new String[]{"exchange_outflow","exchange_inflow","payment","cashback"}) - .from("2020-04-20T06:48:44.000000Z") - .to("2023-02-26T19:52:11.000000Z") - .nextPageCursorId("09dbf574-b78b-4a07-b131-3e057d13bf3b") - .prevPageCursorId("d6351118-2b24-4094-8281-5ae38811514e") - .perPage(301); + .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); 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("2766f103-e37c-4697-b807-7407b7017723") - .customerName("1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34z4jE8W9hhkpYWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXw") - .description("tPfKAW4UwDxtqXzHNdytk1inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT") - .transactionId("jmF3") + .customerId("72885693-789f-428b-8bdf-87cba7fe9730") + .customerName("HLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA") + .description("fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFe") + .transactionId("EH") .setModified(true) - .types(new String[]{"expire","exchange_inflow","exchange_outflow","payment"}) - .from("2023-03-19T14:31:09.000000Z") - .to("2023-10-06T13:10:04.000000Z") - .nextPageCursorId("f2905bb5-4b6f-425b-b619-de211f09e655") - .prevPageCursorId("0c2d729b-5df1-4351-b3e2-51904775b593") - .perPage(789); + .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); 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("0b72d74d-4746-40a7-a834-0331c693385b") - .customerId("a92fcce4-237e-422d-9988-ff9de450ef59") - .customerName("UnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6nh3hboA1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy") - .description("7P4SbKkoz4u4vqNtkYjPXUyJ1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWog") - .transactionId("xJNEf") + .terminalId("b820fda7-038a-4541-a7c5-c0a7ae5ffc12") + .customerId("1a888925-5c1c-4bed-adf5-8f3d0977300d") + .customerName("UL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6nh3hbo") + .description("1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXU") + .transactionId("J1V0r5CHRN") .setModified(true) - .types(new String[]{"expire","payment","topup","exchange_outflow","exchange_inflow","cashback"}) - .from("2022-02-14T02:07:44.000000Z") - .to("2022-04-14T22:36:42.000000Z") - .nextPageCursorId("046ecadf-cff8-4325-8b36-3688c4b817b2") - .prevPageCursorId("f9b0a39d-2d66-4a04-b8c6-f3ce2fdcd824") - .perPage(635); + .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); 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("1405e00e-41dc-4d61-aa2e-c644530c2dde") - .terminalId("fd911c65-54ec-48b7-b219-846f216e4c3e") - .customerId("004fdcff-868e-477e-97b4-baac1cd8db7e") - .customerName("JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTqnNfSRiXLw6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3") - .description("a01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc") - .transactionId("10V") + .shopId("73d29439-f434-47f7-b0d3-6ec38841ac99") + .terminalId("8b14ad42-0194-4110-8789-9aeec68a43e2") + .customerId("367bfb18-c63e-4d32-9522-a037e525c9cb") + .customerName("I1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTqnNf") + .description("RiXLw6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U") + .transactionId("XBig") .setModified(false) - .types(new String[]{"exchange_outflow","topup","expire","payment"}) - .from("2022-01-28T22:26:50.000000Z") - .to("2024-07-08T05:08:04.000000Z") - .nextPageCursorId("0b55d70c-3509-4322-8e02-6477d2c2cafc") - .prevPageCursorId("1e04ee52-1d39-44db-9dbf-734750fe391d") - .perPage(615); + .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); 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("01-q---Ii-0W-2-2O1H-j-uOY4") - .shopId("3e46d0e3-1045-4438-b965-948ecd13622e") - .terminalId("5cfa8838-7805-4fbb-b824-e1e9ad2f9e23") - .customerId("5d9cc243-1d70-4974-b240-677ea3ea2e99") - .customerName("X3OQSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRy") - .description("CxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQr") - .transactionId("T") - .setModified(true) - .types(new String[]{"cashback","payment","exchange_inflow","exchange_outflow"}) - .from("2022-07-30T13:12:06.000000Z") - .to("2022-12-07T10:05:29.000000Z") - .nextPageCursorId("36968778-cd24-47b6-b699-e8447c2bc3bc") - .prevPageCursorId("9887a933-2cc2-425c-8454-8eeea473aa82") - .perPage(32); + .organizationCode("aK--z--9-9-z-0m2O-grW-bv") + .shopId("0caa601e-8eb4-4a21-9861-c9a26f97ac7e") + .terminalId("72170974-9f28-443a-ae74-42d287e37bcf") + .customerId("970d08da-e963-4d12-8283-ebe2043f9ae5") + .customerName("ZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx") + .description("2McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BT") + .transactionId("Nca") + .setModified(false) + .types(new String[]{"cashback","topup"}) + .from("2023-12-25T20:01:08.000000Z") + .to("2020-09-02T09:26:19.000000Z") + .nextPageCursorId("8cb39107-9a71-4516-8569-9047b21dc5ce") + .prevPageCursorId("fe9e45e5-8953-4e94-84ca-edf54581f0e5") + .perPage(787); 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("2df6c314-68a9-4aa6-8ee3-fc6190413dc9") - .organizationCode("22jpm8L3yO-") - .shopId("97561118-b881-426f-9d5d-41538867dc45") - .terminalId("5449caa6-73f7-493c-aca3-f5344b5338d9") - .customerId("8eac5466-cc8f-43ee-93fa-8d2b1eeb97b5") - .customerName("3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn73") - .description("2KUYpvpwWJTv2DUcm") - .transactionId("sWBT") - .setModified(false) - .types(new String[]{"payment","cashback","expire","exchange_outflow","topup"}) - .from("2021-07-29T07:10:06.000000Z") - .to("2020-06-15T07:14:52.000000Z") - .nextPageCursorId("ede25bbf-cc95-4fcf-8ee8-004edb94a50f") - .prevPageCursorId("a88ee06f-c452-4985-9569-02ef037dece5") - .perPage(227); + .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); 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 5a1ccfe..b415ce2 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java +++ b/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .from("2024-03-16T20:33:15.000000Z") - .to("2022-04-02T14:18:51.000000Z"); + .from("2024-07-18T07:55:43.000000Z") + .to("2024-03-16T20:33:15.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("wCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zO") - .from("2023-03-07T13:23:26.000000Z") - .to("2022-07-25T06:59:02.000000Z"); + .description("hwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4Ez") + .from("2022-08-02T00:56:05.000000Z") + .to("2021-04-23T15:57:26.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[]{"coupon","topup","exchange","cashback","expire"}) - .description("CXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeo") - .from("2020-10-15T17:58:00.000000Z") - .to("2020-06-23T23:04:50.000000Z"); + .transferTypes(new String[]{"transfer","coupon","topup","payment","exchange"}) + .description("DCSxoowqwobMRj4K8plKuk") + .from("2021-11-14T22:11:39.000000Z") + .to("2024-07-25T10:04:06.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(817) - .transferTypes(new String[]{"payment","cashback","topup","expire"}) - .description("KEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8") - .from("2023-03-16T16:33:44.000000Z") - .to("2022-12-04T08:35:53.000000Z"); + .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"); 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("c600b954-117a-4222-a977-e9ebee9ca24c") - .perPage(757) - .transferTypes(new String[]{"exchange","transfer","campaign","coupon"}) - .description("kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUM") - .from("2023-03-31T16:58:24.000000Z") - .to("2020-10-25T02:59:22.000000Z"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -131,11 +131,11 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .nextPageCursorId("13b37081-7daf-4435-9b0a-40efd5d5907a") - .prevPageCursorId("12de16c8-5c44-4c6e-a28a-b1b00ce2db90") - .perPage(234) - .transferTypes(new String[]{"exchange","campaign","payment","topup","cashback","coupon","expire","transfer"}) - .description("RMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWm") + .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"); try { diff --git a/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java b/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java index dc76918..7a9c905 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(606); + .perPage(3090); 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(752) - .perPage(9994); + .page(7154) + .perPage(1647); 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 adec048..64d8fcb 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( - "2023-03-04T00:58:24.000000Z", - "2023-05-18T16:45:07.000000Z" + "2022-08-22T14:40:07.000000Z", + "2024-09-18T13:18:22.000000Z" ); 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 afe2f04..ddc95e4 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( - "ea04c326-0bb6-4cea-bad8-25a51e752ba1" + "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateBill( - "ea04c326-0bb6-4cea-bad8-25a51e752ba1" + "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" ) .setDisabled(true); try { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateBill( - "ea04c326-0bb6-4cea-bad8-25a51e752ba1" + "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" ) - .description("MPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62Ey") - .setDisabled(true); + .description("RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv") + .setDisabled(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 UpdateBill( - "ea04c326-0bb6-4cea-bad8-25a51e752ba1" + "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" ) - .amount(242.0) - .description("AyRxoXmZ8au8D4esSHy55W") + .amount(140.0) + .description("4bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iM") .setDisabled(false); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java index a30f36b..484daa0 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"3dd75e31-8e13-4ce5-b91e-e730268334a5","8a59f346-1223-4a93-b17f-2c013a3e0db3","61bd5c92-a471-46c3-b7fd-ad69e21c3cff","06b34dc1-9ff2-44e8-b7e0-8e7d1e476413","96429a6d-6bb7-46a1-b680-6445085d3da7","5c55ec9f-16bb-49a5-b38e-09ab56f31035","12f32171-6aec-4b8b-9db4-65580378da05"}); + .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"}); 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"e2d39255-d615-4f61-a5c0-e331f47afcb4","24b261d7-aede-4f18-8a62-e296cdde2e74","b02afdb9-b5b3-40df-b400-6632f81322b6","235cc1bb-540f-422c-bebe-9007d46ed64c","39ea3ae9-0851-4e11-8187-16ac032dc94d","c123dc42-1ed9-422d-b8b0-1a356d225d37","d9bc587c-2183-489a-81ef-cb3b19f01f42"}) - .name("LeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb"); + .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"); 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"6d1d312e-733e-433c-aaef-00fe7162b39f"}) - .startsAt("2022-11-28T14:55:20.000000Z") - .name("nX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7fl"); + .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"); 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"aaa3b962-dc0d-49a9-8d67-b2386c76582e","62e8d2c9-e3a9-46df-8733-dbd0534fdb8e","0c337fc6-dba0-41dd-a791-07286c89c0fa","93b24958-5bc8-45a0-98bb-2bd3352e5b57","0f0ac0f5-2d38-4673-8b63-a569e58437af","8b0cb22b-de2d-44bc-a871-5c578100ea7e"}) - .endsAt("2020-05-05T05:21:59.000000Z") - .startsAt("2023-05-05T10:17:47.000000Z") - .name("IsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kImOL"); + .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"); 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"47cc4ce0-7110-4a3a-b96e-291bd9d094da","4f9fd637-e62e-4c20-b39c-d354a19fdf27","77a2b0a4-331b-467f-80f1-6c9c9cecbaa3","af4389fb-eb3b-4753-8ca0-486b2476e04f","d460c0d7-7701-4d8f-97c4-824cb158285f","5b6cfd1f-1eda-4f6d-a9a4-060511452d79","bc7eed84-2fd9-493b-9934-0497211073f1","85263c2a-4d53-4344-8363-64e5de6c85b1"}) - .priority(2446) - .endsAt("2022-08-30T12:14:25.000000Z") - .startsAt("2022-11-01T10:08:54.000000Z") - .name("C4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22"); + .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"); 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"a21a9b72-0d2d-4568-bf5b-00885707f4f1"}) - .event("payment") - .priority(1256) - .endsAt("2020-05-07T15:34:39.000000Z") - .startsAt("2021-01-29T10:18:24.000000Z") - .name("EMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3Gwp"); + .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"); 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"cf32fd10-84f0-48d5-add7-19ead764e1f6","92609d73-c3f8-427c-860e-88299803d5b7","64ffe673-1589-4143-b298-d3bf38366733","47b82e87-b170-4041-9662-679bffba4d7f","612ff7d8-2669-4a80-8a76-e540004708c8","3d2f0bda-318d-4374-b29b-b4bcbac577c9","a6c1acc1-1d01-4c18-b950-eab36363b2c2"}) - .description("n1m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvly") + .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(7686) - .endsAt("2023-06-10T03:46:09.000000Z") - .startsAt("2021-03-09T20:49:48.000000Z") - .name("X8tOl1gapEcvHpCxJHTvEJuFQdQk10O1Big"); + .priority(5744) + .endsAt("2023-12-01T20:45:20.000000Z") + .startsAt("2023-01-22T11:16:39.000000Z") + .name("iVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m"); 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"081501fe-c2ef-4e85-b63a-a4d5a5d49fdb","c5769839-b880-41b9-9e52-af9803519f4f","e9444af3-1354-4e14-9a5f-754b3ff01a2f","dc04a936-a7b5-463f-bad1-c2cf82ae8ea1","89534368-11e9-4dec-a212-35a02cf7399a","a49abb9e-941a-4af6-84e3-8e4113b207ec","9607c9fd-8f88-43c3-b0c9-158018c6739b","86fd3a95-063b-411e-b082-135dccd66e0a","0bdf1fbc-c550-439e-af04-2ab9d5ae392c"}) - .status("disabled") - .description("nGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZ") - .event("payment") - .priority(9896) - .endsAt("2022-09-16T15:34:38.000000Z") - .startsAt("2024-04-27T04:10:57.000000Z") - .name("EKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGne"); + .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"); 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"a6f6a5b6-ea95-4b0e-be93-c5509c596eac","8b3ca212-baa4-4991-9469-9102c73f3736","8e18d12c-f838-4a9d-962f-f12a6881132a","bbec736a-5dff-49bd-96fd-7d66a0adfd09","33185fb1-731c-4e12-8acc-d76cbb08049b","0821ec9b-c9a8-4430-9c1c-dbcfa21ccf34","b9dc0ff4-4a09-4838-9ff9-413f1b0fa8a1","ad9268ac-4da0-4880-b5b2-ffd9bc634aab","0c3680d9-60b3-4460-99bc-99e164d6b00b"}) - .pointExpiresAt("2021-08-06T06:13:27.000000Z") + .applicableShopIds(new String[]{"8179b6eb-ff31-4230-9c4f-efb1d1bcf042","6663101b-13a4-495d-a90e-52826613c367"}) + .pointExpiresAt("2021-02-12T12:09:31.000000Z") .status("enabled") - .description("cbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljo") - .event("external-transaction") - .priority(4478) - .endsAt("2023-09-24T03:48:17.000000Z") - .startsAt("2023-02-19T18:38:09.000000Z") - .name("NatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb9"); + .description("vU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuK") + .event("payment") + .priority(8099) + .endsAt("2021-06-04T04:52:57.000000Z") + .startsAt("2023-10-26T09:20:26.000000Z") + .name("1hdXC"); 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"181bb47f-e995-4429-9dbd-9813a4b44ba5","c76fbd64-7603-40e8-a351-08ed33d63a5f","dbab5f90-d08e-43a2-bd23-5207a9e13225","fbae7fd4-f26a-4741-8b9b-8d542d08b969","fdce7e60-0c9b-403a-b4c6-42f659fa2f21"}) - .pointExpiresInDays(8149) - .pointExpiresAt("2020-04-13T00:17:51.000000Z") + .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("qrSIzi26MGgpQ9DKPsTX2x6llLqyqxL") - .event("payment") - .priority(7618) - .endsAt("2024-03-06T10:01:30.000000Z") - .startsAt("2020-09-18T11:22:07.000000Z") - .name("QKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrL"); + .description("IBQUZMwQEKQp536z2WYA1sx132uYpl") + .event("external-transaction") + .priority(9745) + .endsAt("2022-04-24T08:50:34.000000Z") + .startsAt("2020-09-05T17:02:02.000000Z") + .name("tFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi2"); 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"8107dc7f-cc9d-493b-90f4-7da599ffe400","e1656d83-44ff-470f-9af6-003a24ca1b35","bb8bcdae-a867-4910-8f7e-ec32144d69ad","0eed60fb-6312-43af-9851-f65c3eb1d90f","014d70e0-1a06-4571-a3ce-dad4f5cb07cd","3276a5dc-0e96-4742-9b05-bf5663c2b0d1","378accdc-e53f-4321-807a-f889e6b0fb30","21817f09-149f-40b8-ac61-4a7131cf1932","ee3678e2-4169-4ff5-a471-0b6f37504e78","54cc7881-5742-4b3d-86db-099882d408e1"}) - .setExclusive(false) - .pointExpiresInDays(3092) - .pointExpiresAt("2023-01-02T21:24:19.000000Z") + .applicableShopIds(new String[]{"ca05f932-ed23-42ca-b7ab-ab3a2d0b9bb1","88e8f9e9-d3e4-4441-b894-78e39e4345d1","88ffbeb9-b0d2-4284-9b8b-685164b175e3","ab4472c1-fdb9-43b3-8526-ee8f1983136a"}) + .setExclusive(true) + .pointExpiresInDays(7419) + .pointExpiresAt("2021-08-22T22:07:08.000000Z") .status("enabled") - .description("pyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWy") + .description("VE1oN8GZytUXsp14vePeJ") .event("external-transaction") - .priority(5997) - .endsAt("2020-07-17T13:29:12.000000Z") - .startsAt("2021-10-10T13:44:53.000000Z") - .name("kGZMrt25VWYHR7PmuYOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7T"); + .priority(7933) + .endsAt("2022-09-08T05:55:52.000000Z") + .startsAt("2021-05-01T18:01:55.000000Z") + .name("1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcb"); 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"14173218-5ff0-4fde-a826-b40c783793fc","50f9ac27-ca55-4e19-83c6-6baee1503dba","d93de7a8-c73f-4c0e-91c0-0e4f9174570a","2bba0a92-31a7-42ec-9e02-495f37f3e40e","44dae595-16e8-4c82-8ac3-cb9dd3a19800","071dad93-85ff-4ffa-9388-94495824b92e","6eb3a910-9607-4c02-b533-bd9dbba7524c","e2313334-a605-4f6f-96a5-a9c206cf879f"}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(2692) - .pointExpiresAt("2022-08-08T16:10:52.000000Z") + .applicableShopIds(new String[]{"2cd7121d-8bd2-4e16-9646-6a19e77f4543"}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(7428) + .pointExpiresAt("2020-08-10T07:46:38.000000Z") .status("disabled") - .description("KjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwk") + .description("WEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4") .event("topup") - .priority(6108) - .endsAt("2024-01-06T06:07:12.000000Z") - .startsAt("2021-04-01T14:08:56.000000Z") - .name("SpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM"); + .priority(3913) + .endsAt("2021-04-27T04:59:45.000000Z") + .startsAt("2023-08-03T21:04:35.000000Z") + .name("wQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -287,21 +287,21 @@ void test12() throws ConnectionError, ProcessingError { items.addProperty("subject_more_than_or_equal", 1000); items.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"0416c6d2-16a8-46e1-8fea-373c3a8e368f","0ed18b9f-99a9-4ca4-9ecd-108a14ab0d36","b1e514f3-d851-47de-a592-69bce870310e"}) + .applicableShopIds(new String[]{"45af3000-bd9c-4fdb-85f0-277948842199","4579f524-c4c2-4328-a31f-22e443c598e8","10e80104-025d-4066-84f4-aeddcf984e8d"}) .amountBasedPointRules(new Object[]{items}) - .subject("money") + .subject("all") .setExclusive(false) - .pointExpiresInDays(2280) - .pointExpiresAt("2023-12-04T15:21:07.000000Z") - .status("disabled") - .description("1VEyXHMXBj8otEAcFy5ooXo") - .event("payment") - .priority(6935) - .endsAt("2020-03-07T20:15:57.000000Z") - .startsAt("2021-03-03T08:31:54.000000Z") - .name("lRpCyCoZoaTfbTmVX0XqqL2DDCdNGv"); + .pointExpiresInDays(4348) + .pointExpiresAt("2023-04-11T03:47:25.000000Z") + .status("enabled") + .description("gxIW5ljI6yfgW8z") + .event("external-transaction") + .priority(1582) + .endsAt("2024-07-02T19:52:32.000000Z") + .startsAt("2023-06-26T13:57:53.000000Z") + .name("ul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -366,9 +366,8 @@ void test13() throws ConnectionError, ProcessingError { 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"); @@ -384,23 +383,33 @@ void test13() throws ConnectionError, ProcessingError { 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 UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"ded81c21-5fb9-4840-918f-8c61e4dc1987","c90d79ce-a800-467e-8ded-48f82a4cbb18"}) - .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .amountBasedPointRules(new Object[]{items10,items11,items12}) - .subject("all") + .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}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(359) - .pointExpiresAt("2020-08-05T07:18:52.000000Z") + .pointExpiresInDays(3659) + .pointExpiresAt("2021-06-17T19:14:20.000000Z") .status("enabled") - .description("6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUn") - .event("external-transaction") - .priority(4713) - .endsAt("2022-12-26T01:30:38.000000Z") - .startsAt("2022-12-07T18:11:59.000000Z") - .name("8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2"); + .description("iLHRNzuSt") + .event("topup") + .priority(5260) + .endsAt("2023-07-11T20:38:32.000000Z") + .startsAt("2023-02-17T13:06:56.000000Z") + .name("5"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -421,83 +430,62 @@ 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("classification_code", "c123"); + items3.addProperty("is_multiply_by_count", true); + items3.addProperty("required_count", 2); JsonObject items4 = new JsonObject(); + items4.addProperty("point_amount", 5); + items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); + items4.addProperty("is_multiply_by_count", true); + items4.addProperty("required_count", 2); JsonObject items5 = new JsonObject(); + items5.addProperty("point_amount", 5); + items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); + items5.addProperty("is_multiply_by_count", true); + items5.addProperty("required_count", 2); JsonObject items6 = new JsonObject(); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); + items6.addProperty("is_multiply_by_count", true); + items6.addProperty("required_count", 2); JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); + items7.addProperty("subject_more_than_or_equal", 1000); + items7.addProperty("subject_less_than", 5000); JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + 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("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); - JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); - JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); - JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); - JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); - JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); - JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("subject_more_than_or_equal", 1000); - items16.addProperty("subject_less_than", 5000); + 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"d8b536af-2cd1-401b-9329-ce5b5038629e","dab33fff-5fd0-41d5-b5a6-08f4f5184c26","2bc00998-503f-4843-aa56-d3fce5af3ff9"}) - .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}) - .subject("all") + .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}) + .subject("money") .setExclusive(true) - .pointExpiresInDays(7936) - .pointExpiresAt("2022-11-15T12:42:20.000000Z") - .status("disabled") - .description("DZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm1") - .event("external-transaction") - .priority(3661) - .endsAt("2020-09-03T05:22:52.000000Z") - .startsAt("2023-12-05T14:15:06.000000Z") - .name("YJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBC"); + .pointExpiresInDays(8956) + .pointExpiresAt("2022-03-04T23:06:48.000000Z") + .status("enabled") + .description("S4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7") + .event("topup") + .priority(4973) + .endsAt("2021-02-15T13:07:43.000000Z") + .startsAt("2021-11-28T01:04:01.000000Z") + .name("YOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUe"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -518,8 +506,11 @@ 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("classification_code", "c123"); + items3.addProperty("is_multiply_by_count", true); + items3.addProperty("required_count", 2); JsonObject items4 = new JsonObject(); items4.addProperty("point_amount", 5); items4.addProperty("point_amount_unit", "percent"); @@ -547,8 +538,9 @@ void test15() 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"); @@ -584,35 +576,25 @@ 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"229c02fb-397d-4e61-b0a1-5df3d48b6cbd","0c8594de-3982-4263-9087-713a7e589c92","4355b7bc-cea8-47b2-8ffb-62a1720145ca","e920549f-4d15-41c5-b4c9-0c597ed719c0","eec639a1-6fc8-41ad-aad4-eabda96d39fe"}) - .applicableDaysOfWeek(new Integer[]{6}) - .blacklistedProductRules(new Object[]{items,items2,items3}) - .productBasedPointRules(new Object[]{items4,items5,items6,items7}) - .amountBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17}) + .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(true) - .pointExpiresInDays(15) - .pointExpiresAt("2022-08-17T14:44:13.000000Z") + .setExclusive(false) + .pointExpiresInDays(2128) + .pointExpiresAt("2024-10-10T07:55:01.000000Z") .status("enabled") - .description("RhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0x") + .description("FHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEP") .event("topup") - .priority(1934) - .endsAt("2021-05-11T12:40:27.000000Z") - .startsAt("2023-01-03T22:47:53.000000Z") - .name("v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRC"); + .priority(8523) + .endsAt("2021-11-23T18:33:31.000000Z") + .startsAt("2021-01-31T00:28:24.000000Z") + .name("oSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHa"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -645,102 +627,57 @@ void test16() 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("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"); 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"); - JsonObject items15 = new JsonObject(); - items15.addProperty("product_code", "4912345678904"); - 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); - 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); + 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"82200798-40d9-4b32-b2dd-a01fd637f0c5","705fd050-1d70-4e0a-91f2-0a26b7583756","675c21ae-909f-466a-b0bf-044ee30c80a3","3c74e665-0faf-4ee1-af3f-ec08fbe8b211"}) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) - .applicableDaysOfWeek(new Integer[]{4,6,4,6,6,2,5,4,4}) - .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15}) - .productBasedPointRules(new Object[]{items16,items17,items18,items19,items20}) - .amountBasedPointRules(new Object[]{items21,items22,items23,items24}) + .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(false) - .pointExpiresInDays(5283) - .pointExpiresAt("2020-03-29T15:23:34.000000Z") + .setExclusive(true) + .pointExpiresInDays(2497) + .pointExpiresAt("2024-01-03T05:55:35.000000Z") .status("disabled") - .description("PfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8M") + .description("rDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7") .event("external-transaction") - .priority(4516) - .endsAt("2022-10-17T03:34:04.000000Z") - .startsAt("2020-01-20T06:35:04.000000Z") - .name("s"); + .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) { @@ -779,11 +716,11 @@ void test17() 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"); @@ -794,11 +731,17 @@ void test17() throws ConnectionError, ProcessingError { items13.addProperty("product_code", "4912345678904"); items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("classification_code", "c123"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); @@ -808,23 +751,27 @@ void test17() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("subject_more_than_or_equal", 1000); - items17.addProperty("subject_less_than", 5000); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("subject_more_than_or_equal", 1000); - items18.addProperty("subject_less_than", 5000); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - 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"); @@ -845,27 +792,57 @@ void test17() throws ConnectionError, ProcessingError { items24.addProperty("point_amount_unit", "percent"); items24.addProperty("subject_more_than_or_equal", 1000); items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); + 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"62dfcd39-5475-4417-afc4-a2834d2fcf06","f2ff716d-30c8-4ae4-89de-92e399b8fdf5","0db8896b-7a5e-42d6-9f9d-03a433677399","43db21fc-7f1d-4a5b-a5e8-4f645aa10b61","dc96bd6c-aa51-44ad-8509-a7711280e59f","73e12704-84d2-4e50-b954-12a3036b8b01"}) - .minimumNumberOfProducts(6135) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .applicableDaysOfWeek(new Integer[]{2,2,4}) - .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13,items14,items15}) - .productBasedPointRules(new Object[]{items16}) - .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(515) - .pointExpiresAt("2021-07-26T11:35:38.000000Z") - .status("enabled") - .description("RbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UX") - .event("external-transaction") - .priority(2681) - .endsAt("2024-02-18T09:19:30.000000Z") - .startsAt("2023-03-13T08:35:30.000000Z") - .name("V8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9"); + .applicableShopIds(new String[]{"19d1647b-ebd5-4d38-8e76-2ae67165ef7e","087097ad-1654-447e-8150-50e768378ea5","4c662b03-c8da-41d1-9d25-c092b6723f1b","191baaef-c3de-41aa-87c7-3ca684b65158","88781984-43ab-444c-a5dc-4fbaf39c77db"}) + .minimumNumberOfProducts(3555) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{0,4,5,5,6,4,6,2,2}) + .blacklistedProductRules(new Object[]{items11,items12,items13}) + .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20}) + .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27,items28,items29,items30}) + .subject("all") + .setExclusive(false) + .pointExpiresInDays(7051) + .pointExpiresAt("2023-09-27T07:08:06.000000Z") + .status("disabled") + .description("W") + .event("topup") + .priority(9103) + .endsAt("2020-12-09T22:09:02.000000Z") + .startsAt("2021-09-03T10:28:08.000000Z") + .name("gkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSk"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -889,23 +866,32 @@ void test18() 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("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"); @@ -921,35 +907,47 @@ void test18() 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); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"a535f687-73af-48f3-a382-1a0bc870f65c","fbc7b1d3-6a5b-40ae-8169-a8125a0e2100","03eff94a-d32f-452e-9d0b-ba2669aa0d13"}) - .minimumNumberOfAmount(8045) - .minimumNumberOfProducts(9689) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) - .applicableDaysOfWeek(new Integer[]{1,3,0,0}) - .blacklistedProductRules(new Object[]{items7,items8,items9}) - .productBasedPointRules(new Object[]{items10,items11}) - .amountBasedPointRules(new Object[]{items12,items13}) - .subject("all") - .setExclusive(false) - .pointExpiresInDays(5309) - .pointExpiresAt("2021-08-17T00:43:06.000000Z") + .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") + .setExclusive(true) + .pointExpiresInDays(8694) + .pointExpiresAt("2022-09-02T12:19:44.000000Z") .status("enabled") - .description("3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCup") - .event("topup") - .priority(8649) - .endsAt("2020-10-08T12:09:59.000000Z") - .startsAt("2021-10-03T13:54:00.000000Z") - .name("BzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEw"); + .description("k8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2") + .event("payment") + .priority(6282) + .endsAt("2021-11-17T13:16:21.000000Z") + .startsAt("2022-04-03T18:49:21.000000Z") + .name("ISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNe"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -979,35 +977,26 @@ 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("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"); 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"); @@ -1023,81 +1012,31 @@ 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); - 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); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"91cfbeeb-ac21-4b72-87ee-0688d231367f","64f068ff-03b0-4f75-a625-588887a12fc1","0a25966e-eb30-46bd-8fe9-19190c786ac0","03bccd71-1249-4fbc-a4b2-9992894a1bde","d35fac62-4c35-4a15-b278-f79b2e19ffa5","330f1818-9ef4-4cfa-874f-cd0c928cb198","dc4cb62b-6a22-425a-a892-831c2fe53400","9e354c18-564b-494a-8dcb-1f2a249fff5b"}) - .minimumNumberForCombinationPurchase(6715) - .minimumNumberOfAmount(3749) - .minimumNumberOfProducts(6011) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .applicableDaysOfWeek(new Integer[]{1,3,2,2,2,6,4}) - .blacklistedProductRules(new Object[]{items9}) - .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18,items19}) - .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(183) - .pointExpiresAt("2024-05-27T02:53:11.000000Z") + .applicableShopIds(new String[]{"ea40d6af-7b3f-4c08-9159-f70e61ca749a","4a5ab74a-0b58-4d44-863c-e9eed14e244e"}) + .minimumNumberForCombinationPurchase(283) + .minimumNumberOfAmount(517) + .minimumNumberOfProducts(1645) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) + .applicableDaysOfWeek(new Integer[]{3,4,5,4,2}) + .blacklistedProductRules(new Object[]{items6,items7,items8,items9,items10,items11,items12}) + .productBasedPointRules(new Object[]{items13,items14}) + .amountBasedPointRules(new Object[]{items15}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(2474) + .pointExpiresAt("2024-02-17T17:44:31.000000Z") .status("disabled") - .description("WNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkD") - .event("topup") - .priority(6693) - .endsAt("2022-11-17T09:11:31.000000Z") - .startsAt("2020-08-24T08:40:55.000000Z") - .name("jAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoL"); + .description("kSjhKrHXePF1aNsQcGEPe") + .event("external-transaction") + .priority(2179) + .endsAt("2021-03-25T18:53:17.000000Z") + .startsAt("2021-03-20T20:56:39.000000Z") + .name("2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3Tb"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1142,20 +1081,35 @@ void test20() 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"); 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"); @@ -1165,94 +1119,62 @@ void test20() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); - 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); - 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); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"6be4e01c-90da-4537-b74b-2fdee7740981","cdf7f2c8-8874-4b58-9192-53b239865e3e","9807bedd-6f90-4033-88f7-a6d46cc6664c"}) + .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(7404) - .minimumNumberOfAmount(9987) - .minimumNumberOfProducts(9226) + .minimumNumberForCombinationPurchase(7169) + .minimumNumberOfAmount(8480) + .minimumNumberOfProducts(3386) .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) - .applicableDaysOfWeek(new Integer[]{2,6,6,4,1,2}) - .blacklistedProductRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14,items15}) - .productBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23}) - .amountBasedPointRules(new Object[]{items24,items25,items26,items27,items28}) + .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(true) - .pointExpiresInDays(1741) - .pointExpiresAt("2022-02-18T23:19:59.000000Z") + .setExclusive(false) + .pointExpiresInDays(933) + .pointExpiresAt("2021-10-23T00:17:29.000000Z") .status("enabled") - .description("0ebUOhv3B3t2DzpE8reI7vFyo7") + .description("hdalQqRPyTvG2tPeRbQcNODGa3Iheb") .event("payment") - .priority(8244) - .endsAt("2023-07-17T10:26:35.000000Z") - .startsAt("2020-03-20T17:04:46.000000Z") - .name("NHW25nKJYDvzM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2M"); + .priority(6052) + .endsAt("2020-05-02T03:16:50.000000Z") + .startsAt("2023-01-31T02:06:10.000000Z") + .name("xi8kuGoSk8mm"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1270,133 +1192,163 @@ void test21() throws ConnectionError, ProcessingError { items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("is_multiply_by_count", true); + items6.addProperty("required_count", 2); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("subject_more_than_or_equal", 1000); + items8.addProperty("subject_less_than", 5000); JsonObject items9 = new JsonObject(); - items9.addProperty("from", "12:00"); - items9.addProperty("to", "23:59"); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); + items9.addProperty("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); + Request request = new UpdateCampaign( + "651b8291-64e3-477d-9712-e2ab96cd0d6c" + ) + .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") + .setExclusive(false) + .pointExpiresInDays(1367) + .pointExpiresAt("2023-06-12T23:49:59.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"); + 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 test22() 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("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("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("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("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); 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("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("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); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); + items11.addProperty("subject_more_than_or_equal", 1000); + items11.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"13cb9673-499d-4619-9864-8bcaa87080c0","80ca4e8b-2baa-4114-83d3-70e75ecea9da"}) - .maxPointAmount(9899) + .applicableShopIds(new String[]{"42acff7f-c5af-4ed0-9857-8370aca60182","dc69a240-d8cc-49a1-9ebe-89bfab4db297","5066581b-f502-459e-ad0a-912d01504a0d"}) + .maxTotalPointAmount(839) + .maxPointAmount(1358) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(4079) - .minimumNumberOfAmount(6895) - .minimumNumberOfProducts(9917) - .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") + .minimumNumberForCombinationPurchase(8401) + .minimumNumberOfAmount(9108) + .minimumNumberOfProducts(7700) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{6,1,4}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5}) + .productBasedPointRules(new Object[]{items6,items7,items8,items9,items10}) + .amountBasedPointRules(new Object[]{items11}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(8723) - .pointExpiresAt("2023-04-08T20:00:08.000000Z") + .pointExpiresInDays(2656) + .pointExpiresAt("2020-03-09T16:28:30.000000Z") .status("disabled") - .description("uzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmd") + .description("rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQo") .event("payment") - .priority(2883) - .endsAt("2020-09-22T11:28:30.000000Z") - .startsAt("2020-01-15T22:29:28.000000Z") - .name("Sb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M9"); + .priority(1355) + .endsAt("2022-03-07T14:25:07.000000Z") + .startsAt("2021-11-08T00:38:06.000000Z") + .name("Wzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnN"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1409,7 +1361,10 @@ void test21() throws ConnectionError, ProcessingError { } } @Test - void test22() throws ConnectionError, ProcessingError { + void test23() 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"); @@ -1435,11 +1390,8 @@ void test22() 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"); @@ -1479,9 +1431,8 @@ void test22() 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"); @@ -1502,37 +1453,33 @@ void test22() 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"baa758b1-21bb-41d8-a06a-ca4858a97572","3b9f5f54-e047-4e13-8eaf-9d27e006fb83","983ed92f-45a6-4137-88e6-3b4d1ff02ec3","1c2bc66c-f138-42b1-89ca-509fc6b499a8","ac86c050-e4d1-4e22-8d75-9dd31f885e48","f954035f-3ce0-43d8-a48f-83db091521e0","ba3ee654-d601-4e6d-8e0b-df458c34fd93","4867a704-9e52-40fd-a527-eac56b564d31","72e1841d-fc59-471b-99d6-0db938ac04bd"}) - .maxTotalPointAmount(9446) - .maxPointAmount(1391) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(9468) - .minimumNumberOfAmount(8968) - .minimumNumberOfProducts(7342) + .applicableShopIds(new String[]{"548de50d-4dd0-481b-b954-6a98ef7f3761","414931f3-20a7-4cf1-b149-cc2caa3f61c6","e94e7191-01e5-4e78-8af8-9919c1e50648","aa68976f-2da4-46cf-bd73-a7147a409559","5ab17d17-8533-4ad8-932f-a7ed13f41ce6","8b3fff53-088f-412b-834d-e0cddb9a8ddb","33cdbec0-a8c9-4d07-b0dc-35059caf39e8","6a024150-328a-49fb-bc49-f9cf0c989163"}) + .applicableAccountMetadata(applicable_account_metadata) + .maxTotalPointAmount(1905) + .maxPointAmount(6824) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(1909) + .minimumNumberOfAmount(1160) + .minimumNumberOfProducts(8172) .applicableTimeRanges(new Object[]{items,items2,items3}) - .applicableDaysOfWeek(new Integer[]{0}) - .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8}) - .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16}) - .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21}) - .subject("all") - .setExclusive(false) - .pointExpiresInDays(5790) - .pointExpiresAt("2021-09-28T09:54:12.000000Z") + .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}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(3296) + .pointExpiresAt("2020-09-13T21:12:42.000000Z") .status("disabled") - .description("nOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4") + .description("epcLNjePvmbsJ6aAodX3l") .event("external-transaction") - .priority(4082) - .endsAt("2024-07-02T17:24:07.000000Z") - .startsAt("2024-06-05T04:06:40.000000Z") - .name("kEzPYVXfzwtjxI8n9Z0CQKMUdsLKb"); + .priority(2387) + .endsAt("2023-10-18T12:31:22.000000Z") + .startsAt("2020-10-24T22:23:54.000000Z") + .name("TfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiB"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1545,7 +1492,10 @@ void test22() throws ConnectionError, ProcessingError { } } @Test - void test23() throws ConnectionError, ProcessingError { + void test24() throws ConnectionError, ProcessingError { + JsonObject applicable_transaction_metadata = new JsonObject(); + applicable_transaction_metadata.addProperty("key", "rank"); + applicable_transaction_metadata.addProperty("value", "bronze"); JsonObject applicable_account_metadata = new JsonObject(); applicable_account_metadata.addProperty("key", "sex"); applicable_account_metadata.addProperty("value", "male"); @@ -1562,50 +1512,75 @@ void test23() 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("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); + items15.addProperty("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("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"); @@ -1621,121 +1596,34 @@ void test23() throws ConnectionError, ProcessingError { items20.addProperty("point_amount_unit", "percent"); items20.addProperty("subject_more_than_or_equal", 1000); items20.addProperty("subject_less_than", 5000); - JsonObject items21 = new JsonObject(); - items21.addProperty("point_amount", 5); - items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("subject_more_than_or_equal", 1000); - items21.addProperty("subject_less_than", 5000); - 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" - ) - .applicableShopIds(new String[]{"958c9a0e-8f7c-42fe-9a3e-9ce06985f6db","93be0d05-02cc-4663-a1d6-74c080db2436","682eae6e-ee12-4948-8dde-3f181fae7f40","0ae26c31-e689-4238-a95c-f95b737d0a57","d4927163-935a-440f-8306-e5e99b55a064","70111e2b-c8f6-4dbb-9aaa-aa359e5ad535","af23ce25-c1ed-4e41-8d67-f9bb18f454cf","da6e83c5-647e-4d8e-84b1-9e7fec0a132d","d30e3f8a-4a36-461c-816e-6aed928d7cd9"}) - .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(7675) - .maxPointAmount(6748) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(8909) - .minimumNumberOfAmount(1941) - .minimumNumberOfProducts(4190) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .applicableDaysOfWeek(new Integer[]{4,3,4,6}) - .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13,items14,items15}) - .productBasedPointRules(new Object[]{items16,items17}) - .amountBasedPointRules(new Object[]{items18,items19,items20,items21,items22}) - .subject("all") - .setExclusive(false) - .pointExpiresInDays(5936) - .pointExpiresAt("2020-08-30T21:14:50.000000Z") - .status("disabled") - .description("woOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXM") - .event("external-transaction") - .priority(4265) - .endsAt("2024-04-03T04:37:37.000000Z") - .startsAt("2021-12-28T16:08:10.000000Z") - .name("u2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iF"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test24() throws ConnectionError, ProcessingError { - 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("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("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); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"8ac6a9d9-eb47-42f2-84d7-e2931712cedb","8108e678-9d78-4617-accb-f297e4ffee22","316fc177-bd3f-4d97-bfcf-e2ec05ef45c3"}) + .applicableShopIds(new String[]{"fe324792-ddfe-466e-95fd-8c2c05c73622","a60dbc42-604c-469d-817d-e056cf36cb2f","5a0d7700-11b9-458f-b725-fdbe5209707e","59d32859-b0e6-40f4-8b29-cf54fb00a9be","d8200119-694d-43f0-88e8-78936ced7ea8","62f9d31d-4857-43de-8dd5-fbcb5a541abc","54ca7a33-7d99-411d-bcc0-53dc97515b91","3a58a4a3-0f0f-4b5e-9bae-03d33b971019","5b5e1a3e-c79a-490a-93c3-8e0cc560226d"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(746) - .maxPointAmount(8351) + .maxTotalPointAmount(2112) + .maxPointAmount(7523) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(5987) - .minimumNumberOfAmount(6795) - .minimumNumberOfProducts(3189) - .applicableTimeRanges(new Object[]{items,items2}) - .applicableDaysOfWeek(new Integer[]{4,6,5}) - .blacklistedProductRules(new Object[]{items3,items4,items5}) - .productBasedPointRules(new Object[]{items6}) - .amountBasedPointRules(new Object[]{items7,items8}) + .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") .setExclusive(false) - .pointExpiresInDays(5209) - .pointExpiresAt("2023-07-20T05:56:16.000000Z") + .pointExpiresInDays(5043) + .pointExpiresAt("2024-04-08T07:42:21.000000Z") .status("enabled") - .description("LNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJA") - .event("topup") - .priority(997) - .endsAt("2021-01-30T00:29:27.000000Z") - .startsAt("2022-04-12T14:54:48.000000Z") - .name("CpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRr"); + .description("HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJ") + .event("payment") + .priority(4953) + .endsAt("2022-10-28T17:56:15.000000Z") + .startsAt("2022-09-07T01:00:52.000000Z") + .name("zM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gU"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1771,111 +1659,145 @@ void test25() 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("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"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("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); + 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); + 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 UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .applicableShopIds(new String[]{"ce3bcc09-acfc-4779-b346-1ceff62df628","6ea76c68-da8d-438a-b25d-4f526b96685e"}) - .budgetCapsAmount(1908769561) + .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) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(2224) - .maxPointAmount(9962) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(8328) - .minimumNumberOfAmount(4067) - .minimumNumberOfProducts(925) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) - .applicableDaysOfWeek(new Integer[]{6,5,4,5,4}) - .blacklistedProductRules(new Object[]{items6}) - .productBasedPointRules(new Object[]{items7,items8,items9,items10}) - .amountBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18,items19,items20}) + .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") .setExclusive(false) - .pointExpiresInDays(5252) - .pointExpiresAt("2023-07-21T06:45:07.000000Z") - .status("disabled") - .description("P2LWTHQkvbYQ") - .event("external-transaction") - .priority(4032) - .endsAt("2023-05-22T22:55:16.000000Z") - .startsAt("2021-05-09T14:13:01.000000Z") - .name("fSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH"); + .pointExpiresInDays(4908) + .pointExpiresAt("2022-10-17T13:31:06.000000Z") + .status("enabled") + .description("YeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6") + .event("topup") + .priority(4147) + .endsAt("2020-02-27T14:07:49.000000Z") + .startsAt("2024-08-22T02:39:45.000000Z") + .name("adi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1890,9 +1812,9 @@ void test25() throws ConnectionError, ProcessingError { @Test void test26() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"3202c9c0-01b4-4c20-a69a-eb30efbef5c9","6ae4a613-5d7f-4ac4-a638-e98885aa2b30","c3bb14ea-e0de-4cc9-a403-bf35b2f4efe8"}); + .blacklistedShopIds(new String[]{"33c1f10d-7f75-4dd3-885f-3ce0dd9e03d8","08e97924-828f-43db-a054-d60169b5be6d","5c36650e-200b-4f45-9304-9e52ab9800fd"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1907,10 +1829,10 @@ void test26() throws ConnectionError, ProcessingError { @Test void test27() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"13a9f4bb-fa2a-4fc7-bb5d-1daef9507160","197817ab-752e-481e-a1e7-0ce5d184b2ab"}) - .name("pFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsD"); + .blacklistedShopIds(new String[]{"27bedd27-eac5-4d31-9d59-071be2186919","cee2ccd6-0db9-44bd-a5e2-343ffaf5856e","2a08cbd5-e4fb-4307-adc2-c3dfedacf0f0","54fdafc0-effa-4044-b7e4-ba398d86a09d","1db3d69d-0544-4f73-87ee-0e1eeecf054f","eb8785be-dff6-4200-9074-7c5a7194334f"}) + .name("Q7wRQgMzlEQYhb78oA0LE9nGzsoBI"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1925,11 +1847,11 @@ void test27() throws ConnectionError, ProcessingError { @Test void test28() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"b7261468-edd0-4d3a-a16c-1d35219d980d","5be4a3e5-8e0b-4d2b-9e84-a7265803b0de","f3e9dec5-e6f6-420b-aa94-48dfe25a6905","087e1f1b-91d1-472a-9d19-cd16c75fefeb","ef332918-a920-47d4-8ca6-0d82714fc0ce"}) - .startsAt("2020-03-27T20:11:02.000000Z") - .name("1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDD"); + .blacklistedShopIds(new String[]{"181b2253-cf2e-4bbe-835a-347dcc32fa82","e7c3d7c5-35ee-4726-9090-186312946d43"}) + .startsAt("2021-10-14T04:55:45.000000Z") + .name("jIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1944,12 +1866,12 @@ void test28() throws ConnectionError, ProcessingError { @Test void test29() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"c0b8eab1-0d98-44c7-9d16-d23243a70bbf","ed56bba9-78ed-49c7-8555-e439b55cfea1","2a28fd26-f59f-48d9-a544-599989cebc02","93d3f5c8-23b5-4a7c-94f9-5dfc7282f80d","3b71fb40-1b3e-4bf3-aafa-853a0844628e","7e103ce0-d5b5-4b25-81f6-2888a35999df"}) - .endsAt("2021-04-22T04:39:30.000000Z") - .startsAt("2020-06-16T07:48:24.000000Z") - .name("W6eqkSk"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1964,13 +1886,13 @@ void test29() throws ConnectionError, ProcessingError { @Test void test30() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"1617e600-6c9f-4212-8cee-978312e19d88","09161d9b-64ea-452f-9753-1534f71b2c84","9edbaaa1-1b9f-4a61-8edc-09272fcd8983","768e99bf-c2d7-4038-8ab0-b4d89ae7e82b","462799bd-af93-44f0-b525-a3df2ea0bda4","c18da2d9-b183-4043-af7b-df39118c8785"}) - .priority(9157) - .endsAt("2021-04-02T09:45:49.000000Z") - .startsAt("2024-04-04T16:32:12.000000Z") - .name("6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR611"); + .blacklistedShopIds(new String[]{"6a20dea8-0563-44e7-90d0-6f898775279a","85b93efc-54ae-4584-8b20-59b3a6b5d8ae","9aa204c4-ada3-41a7-a386-92682567dc82","c0bedbfc-d38b-43f1-9da9-ede9cc68e11c","1b6c7a6b-fe8b-4935-8336-dd20c6a706b2","f0fb8bee-5551-41a3-9a1c-394a37da290d","d7654ca5-47c0-4137-a6c0-523d03fc655f"}) + .priority(6189) + .endsAt("2024-08-05T02:11:22.000000Z") + .startsAt("2020-12-12T23:58:18.000000Z") + .name("N9nEMDfH9ZULXMKOjFu2fGiSho"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1985,14 +1907,14 @@ void test30() throws ConnectionError, ProcessingError { @Test void test31() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"d82f7a4c-63e8-4558-9c8a-72925a1aea82","43fde752-12c6-4cbc-a031-0cd7218113ea"}) + .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(9061) - .endsAt("2024-02-03T11:49:52.000000Z") - .startsAt("2021-04-11T12:09:17.000000Z") - .name("ssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOs"); + .priority(9851) + .endsAt("2021-04-29T23:37:40.000000Z") + .startsAt("2021-11-27T22:03:32.000000Z") + .name("G1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJA"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2007,15 +1929,15 @@ void test31() throws ConnectionError, ProcessingError { @Test void test32() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"3bece644-8437-4cbf-8322-9b17078d8739","52a72449-9fcd-4418-a437-c84068611899","38af7090-9cf3-4675-80c2-0d5cefac685f","7c9e8d35-be22-401c-bff7-0b1f4cbd118b","bfb92d2f-dd40-43b4-8595-059700e08bb0"}) - .description("dZFTsuKZGsFE") + .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(6078) - .endsAt("2023-06-01T13:12:49.000000Z") - .startsAt("2022-05-31T23:41:53.000000Z") - .name("RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35E"); + .priority(3174) + .endsAt("2023-12-19T09:00:52.000000Z") + .startsAt("2024-07-06T05:11:02.000000Z") + .name("0jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2030,16 +1952,16 @@ void test32() throws ConnectionError, ProcessingError { @Test void test33() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"e646f31a-ef8e-406d-ba72-883a9cf4383f","7e3f3702-09c0-4974-8f1b-09c6e2937a23","7b325b57-93cd-48ed-a513-3eaf5aec23aa","2d6f933a-a1ec-42b5-9d05-56c581fd834b","77bc0a7d-a816-42be-bcd2-b9000807ba9f","5bc23569-9844-4b18-b3d7-dc67a49e1f87","c2a60b39-f327-4921-a627-bfda52239a63"}) + .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("jQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014v") + .description("V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbD") .event("payment") - .priority(3687) - .endsAt("2021-12-21T08:58:49.000000Z") - .startsAt("2022-12-21T21:08:51.000000Z") - .name("5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLA"); + .priority(374) + .endsAt("2022-11-05T16:15:07.000000Z") + .startsAt("2024-08-06T07:29:13.000000Z") + .name("Sa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2054,17 +1976,17 @@ void test33() throws ConnectionError, ProcessingError { @Test void test34() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"83bbe9d2-6f24-451a-a202-46043c4dcf05","db543326-73ad-46bd-a917-450654edf747","a72e0e97-60dd-4d15-894b-4086345ca4f5","59be5419-24c9-4bb8-9bfd-01a3170ec043","deea7ddc-15a4-4b4e-a20e-ca42637f96d4","38c4e2fd-472d-4ff1-964c-4ec389c4aa5a","b5bedd20-d2b9-4d39-8127-a0eafd2e2dd6","a6062162-ed4b-4d29-b3fc-fe6c32c28233","a24e315c-64b1-444e-9e65-4ec16ea8dec9","537fcda5-111a-48c3-93ef-102a5a2ff882"}) - .pointExpiresAt("2020-04-01T18:26:36.000000Z") + .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") .status("disabled") - .description("JdEVZoJB0H5I2jNmYRtpCMs9TezTj3A085y5hWQ3gdeDOWFE") - .event("topup") - .priority(2683) - .endsAt("2021-08-16T11:23:51.000000Z") - .startsAt("2024-06-18T17:35:27.000000Z") - .name("RRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr"); + .description("aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpS") + .event("payment") + .priority(4689) + .endsAt("2023-05-25T06:25:42.000000Z") + .startsAt("2023-09-05T23:10:15.000000Z") + .name("Lu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7Oo"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2079,18 +2001,18 @@ void test34() throws ConnectionError, ProcessingError { @Test void test35() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"57b21e82-0831-476d-8665-bf409340386c","d7912865-033d-4216-b0cf-13b9e67d1dcc","259461df-e228-4c85-ae77-c9c9026e8de0","43cb0e73-b68a-4d2b-9511-e22530ca42e3","b3182ed3-0edc-4d1b-ada0-6fa59cb20b76","076c9f62-1734-49c7-8f0d-75db49763bd5"}) - .pointExpiresInDays(4594) - .pointExpiresAt("2023-04-16T18:21:55.000000Z") - .status("enabled") - .description("cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRF") + .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(7102) - .endsAt("2021-03-05T08:18:31.000000Z") - .startsAt("2023-06-29T12:51:53.000000Z") - .name("xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m"); + .priority(3221) + .endsAt("2024-04-25T18:39:26.000000Z") + .startsAt("2020-02-18T13:31:47.000000Z") + .name("XCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWS"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2105,19 +2027,19 @@ void test35() throws ConnectionError, ProcessingError { @Test void test36() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"f6b15323-dfe5-4813-b910-2cde50b14bfe","be8a07ad-abe5-4a8f-abd8-16cc625fdd07","af4d87e5-9a4b-42a2-b4c2-9dbbca66bc94","423e1223-d075-4196-9249-ceaa292bf16d","22850e7c-83f8-4bce-ae94-8558afc12d91","78017903-8b90-4db4-bf9e-14355870c6a2"}) - .setExclusive(true) - .pointExpiresInDays(9088) - .pointExpiresAt("2024-03-26T19:43:14.000000Z") - .status("disabled") - .description("ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTH") - .event("payment") - .priority(8652) - .endsAt("2022-02-10T06:58:47.000000Z") - .startsAt("2020-04-03T04:43:39.000000Z") - .name("x4xhJmPNb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZq"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2132,20 +2054,20 @@ void test36() throws ConnectionError, ProcessingError { @Test void test37() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"ba5977d9-f94e-4d57-8b59-72f538d70d2b"}) + .blacklistedShopIds(new String[]{"8a0367ee-3e46-4264-a357-3768b1925904","a361c0d3-0f64-4a3c-9197-9b7cbc7bb824","8c379061-034a-4c5e-a6ca-fbb64fa7f90a"}) .subject("money") - .setExclusive(false) - .pointExpiresInDays(478) - .pointExpiresAt("2020-07-07T13:11:24.000000Z") - .status("enabled") - .description("3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2AD") - .event("payment") - .priority(8654) - .endsAt("2024-05-07T21:11:28.000000Z") - .startsAt("2024-07-10T02:55:16.000000Z") - .name("nBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDl"); + .setExclusive(true) + .pointExpiresInDays(305) + .pointExpiresAt("2024-01-06T22:44:45.000000Z") + .status("disabled") + .description("2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67y") + .event("topup") + .priority(8998) + .endsAt("2020-03-20T09:11:34.000000Z") + .startsAt("2022-05-14T10:09:49.000000Z") + .name("xWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9Tez"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2179,47 +2101,22 @@ void test38() 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); - 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"30206fb4-ad47-4dda-b76a-b3e2272f41a5"}) - .amountBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .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") - .setExclusive(false) - .pointExpiresInDays(4762) - .pointExpiresAt("2023-03-19T19:18:18.000000Z") - .status("disabled") - .description("VMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHAR") + .setExclusive(true) + .pointExpiresInDays(8613) + .pointExpiresAt("2020-06-26T07:19:03.000000Z") + .status("enabled") + .description("OWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIsw") .event("external-transaction") - .priority(6852) - .endsAt("2022-09-09T06:20:22.000000Z") - .startsAt("2023-02-03T11:54:54.000000Z") - .name("g1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4OovF1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0"); + .priority(6296) + .endsAt("2020-12-29T16:02:19.000000Z") + .startsAt("2023-11-23T10:23:05.000000Z") + .name("c2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpC"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2266,8 +2163,9 @@ void test39() 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"); @@ -2303,28 +2201,23 @@ void test39() throws ConnectionError, ProcessingError { items13.addProperty("point_amount_unit", "percent"); items13.addProperty("subject_more_than_or_equal", 1000); items13.addProperty("subject_less_than", 5000); - JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"9485b16b-4d11-4b58-ad73-ed548d0b96cd","8b56fae4-a83d-4ff5-ac5c-5118375e4ce7"}) - .productBasedPointRules(new Object[]{items,items2,items3,items4,items5}) - .amountBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13,items14}) + .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(true) - .pointExpiresInDays(8052) - .pointExpiresAt("2022-02-14T00:51:00.000000Z") - .status("enabled") - .description("nF7L4kFCWrbFqt27c2GHcIyayD2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6") + .setExclusive(false) + .pointExpiresInDays(9256) + .pointExpiresAt("2021-07-22T23:55:17.000000Z") + .status("disabled") + .description("jMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwF") .event("external-transaction") - .priority(7674) - .endsAt("2020-12-07T15:11:29.000000Z") - .startsAt("2020-08-15T03:24:13.000000Z") - .name("fUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsMYGbxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBj"); + .priority(5903) + .endsAt("2021-08-01T00:18:14.000000Z") + .startsAt("2024-03-22T21:04:38.000000Z") + .name("cNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqK"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2351,20 +2244,35 @@ 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("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"); 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"); @@ -2374,9 +2282,8 @@ void test40() throws ConnectionError, ProcessingError { JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("subject_more_than_or_equal", 1000); + items11.addProperty("subject_less_than", 5000); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); @@ -2412,24 +2319,29 @@ void test40() throws ConnectionError, ProcessingError { items18.addProperty("point_amount_unit", "percent"); items18.addProperty("subject_more_than_or_equal", 1000); items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"13770e45-132a-45b2-bd11-58dab43ccd67","57d8ce28-e22b-4af1-abc3-660a59bc5a8f","5afd09b6-8e67-4429-8f09-3695a2066d22","4cd44c1e-7831-4f01-8583-ff7c737b0ece","e109e8af-6dfc-48fc-97cf-877cb3c6cad0"}) - .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .productBasedPointRules(new Object[]{items10,items11}) - .amountBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18}) + .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}) .subject("all") .setExclusive(false) - .pointExpiresInDays(6109) - .pointExpiresAt("2024-01-13T23:11:29.000000Z") - .status("enabled") - .description("Zod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmu") - .event("external-transaction") - .priority(8447) - .endsAt("2023-12-01T23:22:19.000000Z") - .startsAt("2022-05-24T16:07:31.000000Z") - .name("sXeAgeVmz0XdBqvz2LZqSb1Cr9GvJk1u6JVnb04lQy4ktenk93ttYPJhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1t1s3zE32Vk24Ceen1NSjytDUp3byZcFEPnIDVyEjs1x"); + .pointExpiresInDays(3319) + .pointExpiresAt("2020-04-16T07:10:54.000000Z") + .status("disabled") + .description("9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP") + .event("topup") + .priority(2707) + .endsAt("2021-04-02T02:58:31.000000Z") + .startsAt("2022-04-10T09:41:26.000000Z") + .name("srDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuC"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2456,40 +2368,41 @@ void test41() 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("subject_more_than_or_equal", 1000); - items6.addProperty("subject_less_than", 5000); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("subject_more_than_or_equal", 1000); - items7.addProperty("subject_less_than", 5000); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); + JsonObject items8 = new JsonObject(); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("subject_more_than_or_equal", 1000); + items8.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"57cad2c9-8656-4f0c-bbc1-801d497bcd28","d29a045d-83c7-45b7-9013-2e7b5338bf1c"}) - .applicableDaysOfWeek(new Integer[]{2,2,2,1,0,6,4,5,5}) - .blacklistedProductRules(new Object[]{items,items2,items3,items4}) - .productBasedPointRules(new Object[]{items5}) - .amountBasedPointRules(new Object[]{items6,items7}) + .blacklistedShopIds(new String[]{"afa2926d-16b4-46f4-80cd-0e1afb8204b4","3050fda5-5af2-42d1-b73d-5298d71fe154","93ba6ccd-375d-48d7-8020-3d3ee2fd9216","6e700277-2e9e-4ddc-a5a3-a9adf71bff51","4be1a9d1-5f27-46be-a588-6c67f7c93741"}) + .applicableDaysOfWeek(new Integer[]{1,1,6,5,1,0,3}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6}) + .productBasedPointRules(new Object[]{items7}) + .amountBasedPointRules(new Object[]{items8}) .subject("all") - .setExclusive(true) - .pointExpiresInDays(3959) - .pointExpiresAt("2023-11-17T16:10:00.000000Z") - .status("disabled") - .description("7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPSNst44x") - .event("external-transaction") - .priority(2125) - .endsAt("2020-02-11T22:26:39.000000Z") - .startsAt("2021-12-26T10:55:09.000000Z") - .name("MoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR3LjzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2L"); + .setExclusive(false) + .pointExpiresInDays(5093) + .pointExpiresAt("2021-04-20T22:14:33.000000Z") + .status("enabled") + .description("koAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz") + .event("payment") + .priority(804) + .endsAt("2024-07-16T14:28:33.000000Z") + .startsAt("2024-02-13T17:21:15.000000Z") + .name("XV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHN"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2519,147 +2432,6 @@ void test42() 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"); - JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); - JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); - JsonObject items9 = new JsonObject(); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); - JsonObject items10 = new JsonObject(); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); - JsonObject items11 = new JsonObject(); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); - JsonObject items12 = new JsonObject(); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); - JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); - JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("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); - Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" - ) - .blacklistedShopIds(new String[]{"a199e4cc-3057-4aec-bddf-2cd778634bab","1a61ea52-5bf1-4d45-aabd-738642a14955","3ca8e8b1-acd2-4eb3-88d6-c2e65a371a3b","53a7f675-58ed-48ca-b26b-8e868936c521","e196802a-e23a-4678-8197-b2b16a871d5f","3c359297-aa0d-49a8-973a-4ed26cae677c","82efb120-15c2-4868-ab4a-8c8763a00f6e","8cd8fdf2-654b-45ee-b6d4-6c348af39298"}) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) - .applicableDaysOfWeek(new Integer[]{1,6,0}) - .blacklistedProductRules(new Object[]{items7,items8,items9,items10,items11,items12}) - .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19}) - .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24,items25}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(6013) - .pointExpiresAt("2022-10-05T12:49:34.000000Z") - .status("disabled") - .description("MOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9") - .event("topup") - .priority(7152) - .endsAt("2024-02-15T14:25:22.000000Z") - .startsAt("2024-02-13T17:17:11.000000Z") - .name("1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIB"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test43() throws ConnectionError, ProcessingError { - JsonObject items = new JsonObject(); - items.addProperty("from", "12:00"); - items.addProperty("to", "23:59"); - JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); - JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); - JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); - JsonObject items5 = new JsonObject(); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); - JsonObject items6 = new JsonObject(); items6.addProperty("product_code", "4912345678904"); items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); @@ -2672,11 +2444,17 @@ void test43() 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("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"); @@ -2692,33 +2470,28 @@ void test43() throws ConnectionError, ProcessingError { JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + 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"); @@ -2728,58 +2501,32 @@ void test43() throws ConnectionError, ProcessingError { 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); + 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"0d0f1e26-3351-483e-b76d-744a978bbc1d","a70db450-f52c-4491-b2f1-b936729ae890","c26e0875-1fe4-43c2-8f4d-08c56112dfac","6c7c15ac-24fb-49b6-9712-a4d24cacb0a3","6e137a9b-e1ec-4479-982e-962ec4d7f629"}) - .minimumNumberOfProducts(5731) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{2,2,2,3,5,0,5}) - .blacklistedProductRules(new Object[]{items2,items3,items4,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,items24,items25,items26}) + .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}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(8084) - .pointExpiresAt("2022-04-04T03:52:07.000000Z") - .status("disabled") - .description("KPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo") - .event("payment") - .priority(4994) - .endsAt("2021-06-13T14:31:35.000000Z") - .startsAt("2020-11-07T23:06:30.000000Z") - .name("BiHKw3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS5mnHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnX"); + .setExclusive(true) + .pointExpiresInDays(2895) + .pointExpiresAt("2023-06-22T20:29:05.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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2792,7 +2539,7 @@ void test43() throws ConnectionError, ProcessingError { } } @Test - void test44() throws ConnectionError, ProcessingError { + void test43() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -2836,44 +2583,55 @@ void test44() 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"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("classification_code", "c123"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); items18.addProperty("product_code", "4912345678904"); - items18.addProperty("classification_code", "c123"); + 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("classification_code", "c123"); + 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); + 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"); @@ -2884,33 +2642,27 @@ void test44() throws ConnectionError, ProcessingError { items25.addProperty("point_amount_unit", "percent"); items25.addProperty("subject_more_than_or_equal", 1000); items25.addProperty("subject_less_than", 5000); - JsonObject items26 = new JsonObject(); - items26.addProperty("point_amount", 5); - items26.addProperty("point_amount_unit", "percent"); - items26.addProperty("subject_more_than_or_equal", 1000); - items26.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"8c083c46-65d4-4d1f-9bbc-3d129475b237","265f5fc3-29d8-45d3-a40d-3735dc117c30","33e13b80-daaf-4576-8161-786fe0920a76","c05c5f6b-637e-4a98-9201-dbcf98ba001d","924aa5a2-0151-4062-9046-17e1598e75a5","5ce93232-8ad1-4adc-bcb0-60d1b4eed63b","8b5d3b8e-09da-4981-958b-dc461ad5bb50"}) - .minimumNumberOfAmount(1985) - .minimumNumberOfProducts(7870) + .blacklistedShopIds(new String[]{"15aaff14-cd8d-4936-90b3-b8c99b619a2c"}) + .minimumNumberOfProducts(6205) .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .applicableDaysOfWeek(new Integer[]{3}) - .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18,items19}) - .productBasedPointRules(new Object[]{items20,items21,items22,items23}) - .amountBasedPointRules(new Object[]{items24,items25,items26}) + .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") - .setExclusive(false) - .pointExpiresInDays(7319) - .pointExpiresAt("2022-04-13T02:48:43.000000Z") + .setExclusive(true) + .pointExpiresInDays(4377) + .pointExpiresAt("2023-12-01T19:03:03.000000Z") .status("enabled") - .description("u3uh9fDL3S3NHvBIxMXxVOS8aVOpiS1EeKe2EnvF9kW30yXFj5pEZQNOtIwcrR2Tap7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpf") + .description("smRtGnF7L4kFCWrbFqt27c2GHcIyayD2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsM") .event("payment") - .priority(3403) - .endsAt("2022-03-31T06:10:09.000000Z") - .startsAt("2023-12-27T02:00:10.000000Z") - .name("MK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN6p0E72qWtOk3QUVbESEWPtcFyu37VMAkI2ylOPtFPfUfw5cNQlmY98v9Ekah2FpsKs0KW"); + .priority(6343) + .endsAt("2022-12-02T04:36:47.000000Z") + .startsAt("2023-08-15T16:25:46.000000Z") + .name("bxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0Xd"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2923,7 +2675,7 @@ void test44() throws ConnectionError, ProcessingError { } } @Test - void test45() throws ConnectionError, ProcessingError { + void test44() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -2969,18 +2721,21 @@ void test45() 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"); @@ -3001,29 +2756,33 @@ void test45() 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"9e871668-a02e-458a-b19d-ee630193dec0","d832b453-6631-4f2e-9dd5-953d0ac73725","7adde15d-5305-4661-bd7e-14b3a96ebdfc","a148bbdc-5441-4d45-86d0-2c66cb39dd45","89638719-ac91-4866-acd9-e946721c787b","bf33fa3d-493f-45e3-8381-d1811477b26f","9b9bb521-3f5d-4500-97f9-67324a89cafb","1ea09f64-f0a7-4cd8-a782-2314ca0cc025","a146f63c-cef4-4c57-abb5-d4afcbe14193"}) - .minimumNumberForCombinationPurchase(468) - .minimumNumberOfAmount(4096) - .minimumNumberOfProducts(2591) + .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[]{4}) + .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}) - .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(1708) - .pointExpiresAt("2020-11-12T13:23:29.000000Z") - .status("disabled") - .description("cyxviUO") + .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(6162) - .endsAt("2024-06-18T03:42:27.000000Z") - .startsAt("2022-02-10T05:30:42.000000Z") - .name("caOZqLE3MkcTFrJK4NHPvl4VhqOdqyKHcIOPhbvogj2mEAT9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbRE9tWUhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGS"); + .priority(1700) + .endsAt("2021-02-26T00:46:07.000000Z") + .startsAt("2023-01-21T04:06:34.000000Z") + .name("IKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5Xg"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3036,7 +2795,7 @@ void test45() throws ConnectionError, ProcessingError { } } @Test - void test46() throws ConnectionError, ProcessingError { + void test45() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -3056,29 +2815,44 @@ void test46() 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("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("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); @@ -3106,90 +2880,131 @@ void test46() 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); - 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); - 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); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + Request request = new UpdateCampaign( + "651b8291-64e3-477d-9712-e2ab96cd0d6c" + ) + .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") + .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"); + 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 { + 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("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); + 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"579d66c0-542a-4ea0-9ea4-11c26d44c7b9","7ab22c73-a2cd-4a2f-bbc3-3b16decc2dec","64aef242-d113-4316-bc93-4225add7aa61","28b2f27e-9446-4fea-9af4-8abd04056fda"}) + .blacklistedShopIds(new String[]{"fbabc2ea-21b9-402c-8a18-aba6fc5545d8","0eccf0ef-8956-467b-9ea4-8e2bb8381357","fa0939c5-349a-464f-aa94-c89b27afc79e"}) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(3267) - .minimumNumberOfAmount(6431) - .minimumNumberOfProducts(6991) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) - .applicableDaysOfWeek(new Integer[]{6,0,2,3,4,1,2,5,0}) - .blacklistedProductRules(new Object[]{items11,items12,items13,items14}) - .productBasedPointRules(new Object[]{items15,items16,items17,items18,items19,items20,items21}) - .amountBasedPointRules(new Object[]{items22,items23,items24,items25,items26,items27,items28,items29,items30}) + .minimumNumberForCombinationPurchase(651) + .minimumNumberOfAmount(5656) + .minimumNumberOfProducts(9444) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .applicableDaysOfWeek(new Integer[]{0,5,3,1,4}) + .blacklistedProductRules(new Object[]{items10}) + .productBasedPointRules(new Object[]{items11,items12,items13}) + .amountBasedPointRules(new Object[]{items14,items15,items16}) .subject("money") .setExclusive(true) - .pointExpiresInDays(3044) - .pointExpiresAt("2020-06-20T02:04:18.000000Z") - .status("disabled") - .description("0Cr3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXonmfKJhNI2") + .pointExpiresInDays(2588) + .pointExpiresAt("2020-10-14T16:45:05.000000Z") + .status("enabled") + .description("Dc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME") .event("topup") - .priority(8648) - .endsAt("2023-12-02T05:59:02.000000Z") - .startsAt("2022-10-04T04:29:49.000000Z") - .name("0SlKK1O1UKOiryeoJ2KHqioForPYYF"); + .priority(5548) + .endsAt("2022-10-17T21:35:50.000000Z") + .startsAt("2023-02-26T01:31:03.000000Z") + .name("RlyybO27figMsVRHKPW"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3213,26 +3028,26 @@ void test47() 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"); + 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"); @@ -3243,28 +3058,20 @@ void test47() throws ConnectionError, ProcessingError { items13.addProperty("product_code", "4912345678904"); items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("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("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"); @@ -3295,31 +3102,36 @@ void test47() throws ConnectionError, ProcessingError { items23.addProperty("point_amount_unit", "percent"); items23.addProperty("subject_more_than_or_equal", 1000); items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"0d1af52f-2e85-4dad-a7a4-8180b0fd8422","05b9c657-aac0-4523-b0c7-f0d25892c165","1c0b4fd3-01dd-4e88-9f2e-c43aafe8091b","f4fb04b1-b188-4f3b-9aeb-fce9d15e8e99","8334a6d0-6292-4b93-8f9b-ceb398f2c55f"}) - .maxPointAmount(7787) + .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) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(585) - .minimumNumberOfAmount(7056) - .minimumNumberOfProducts(2862) - .applicableTimeRanges(new Object[]{items,items2,items3}) - .applicableDaysOfWeek(new Integer[]{2,4,6,3,6,1,2,1}) - .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11,items12,items13}) - .productBasedPointRules(new Object[]{items14,items15,items16}) - .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23}) + .minimumNumberForCombinationPurchase(3132) + .minimumNumberOfAmount(1636) + .minimumNumberOfProducts(2463) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{1,1,6,0,3,6,0,4,4,1}) + .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16}) + .productBasedPointRules(new Object[]{items17}) + .amountBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(9315) - .pointExpiresAt("2022-08-06T03:24:46.000000Z") - .status("disabled") - .description("kXOVbuSOvVupSap8") + .setExclusive(false) + .pointExpiresInDays(9941) + .pointExpiresAt("2024-01-26T17:16:23.000000Z") + .status("enabled") + .description("11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS5mnHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1a") .event("topup") - .priority(1972) - .endsAt("2021-04-11T20:51:41.000000Z") - .startsAt("2021-06-08T11:13:41.000000Z") - .name("fgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3GWqnvnIS00nrMnQNFRYYqQB2LOvvxaJWdM6RyNE08AoCyr23XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUG"); + .priority(6965) + .endsAt("2022-02-03T05:48:08.000000Z") + .startsAt("2023-04-28T08:13:57.000000Z") + .name("GpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxV"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3340,125 +3152,147 @@ void test48() throws ConnectionError, ProcessingError { items2.addProperty("product_code", "4912345678904"); items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("point_amount", 5); - items3.addProperty("point_amount_unit", "percent"); items3.addProperty("product_code", "4912345678904"); - items3.addProperty("is_multiply_by_count", true); - items3.addProperty("required_count", 2); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); items9.addProperty("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("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("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); + 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); + 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); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"6a46aba2-e8cf-40fc-b6c0-2e01d4a7a800","f26d9fb4-9d72-4fa3-a970-dd40b9b112da","a7bf9278-4fbf-4f10-9736-4343c889ba31"}) - .maxTotalPointAmount(990) - .maxPointAmount(7691) + .blacklistedShopIds(new String[]{"f542e138-d461-4ed6-801a-df195e015e8c","d1efe22b-c2ad-49cf-b007-15e9de1c5aad","039c3553-9bb1-4d45-9165-16cba294d5e5","ed700b32-da1f-4f45-a7a0-c7ee2c7f2e13"}) + .maxTotalPointAmount(4215) + .maxPointAmount(2733) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(9765) - .minimumNumberOfAmount(8977) - .minimumNumberOfProducts(5104) + .minimumNumberForCombinationPurchase(5343) + .minimumNumberOfAmount(967) + .minimumNumberOfProducts(6330) .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{6}) - .blacklistedProductRules(new Object[]{items2}) - .productBasedPointRules(new Object[]{items3,items4,items5,items6,items7,items8,items9,items10,items11}) - .amountBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18,items19}) - .subject("money") + .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(652) - .pointExpiresAt("2020-12-29T00:20:30.000000Z") + .pointExpiresInDays(566) + .pointExpiresAt("2022-10-10T20:59:11.000000Z") .status("disabled") - .description("5cgpKhTDjrt62aO0gTJKvsFX8pCgUNdYXQChONhwWGHDaQRstzyfCMC6r4Z") - .event("external-transaction") - .priority(2101) - .endsAt("2023-05-18T21:14:34.000000Z") - .startsAt("2022-06-30T05:57:59.000000Z") - .name("9bDUlUJBBIg9Fd6Y7e4aTjbZiLOaWRsEnzqZ6lGrz0tQnP1Co4x4AXMvzQhY1JlrHqbdULcyqcFghqKIiyi3aAuGXWsNdhyWJyqrPAKmmZGZJNC4j2awHXlJF9A7cu6AxfU8HIO6LO"); + .description("pEZQNOtI") + .event("topup") + .priority(1159) + .endsAt("2020-02-14T18:41:22.000000Z") + .startsAt("2023-02-14T00:23:45.000000Z") + .name("p7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3497,14 +3331,14 @@ void test49() throws ConnectionError, ProcessingError { items7.addProperty("from", "12:00"); items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); - items9.addProperty("from", "12:00"); - items9.addProperty("to", "23:59"); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); - items10.addProperty("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"); @@ -3512,59 +3346,115 @@ void test49() throws ConnectionError, ProcessingError { items12.addProperty("product_code", "4912345678904"); items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("classification_code", "c123"); 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("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("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); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"bc74bbb5-7ac4-4564-b52f-08038a3dbf58"}) + .blacklistedShopIds(new String[]{"1d28ddb6-9d70-4ab0-85b7-3632e40ec371","00ab16d7-cda1-43de-bd9c-ac011c6923f4","e3db6fbd-a6cf-40bd-aa6b-59963b5f9513","b599481a-8c0e-4e5d-a990-24338764b7ab","93b282d1-a955-4d5b-9626-a6e20a7ea8aa","01a7d945-7853-4ac5-97d0-e3742d4e4763","4046c146-033b-4af9-b5fc-05879ae0b1a6"}) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(1165) - .maxPointAmount(145) - .existInEachProductGroups(true) - .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("2024-01-17T02:29:47.000000Z") + .maxTotalPointAmount(3855) + .maxPointAmount(5034) + .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}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(2977) + .pointExpiresAt("2020-03-03T08:35:28.000000Z") .status("disabled") - .description("pelXPpOt9Y3msxtcs0WRQEq2AUltkkF5RV8aSNO9GQnDszD12NRIYvg8bbFQzPdXDpuj") + .description("tFPfUfw") .event("payment") - .priority(7674) - .endsAt("2023-06-20T06:10:02.000000Z") - .startsAt("2024-03-13T13:36:43.000000Z") - .name("g0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6wIXIQbTWkewXW1RgDvxeuhtqc0lVuVevBpKZFsUJPsCckORoCtdXbeAqJmttYcSX"); + .priority(5091) + .endsAt("2021-07-22T02:49:01.000000Z") + .startsAt("2022-06-30T17:18:06.000000Z") + .name("lmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFr"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3588,32 +3478,50 @@ void test50() throws ConnectionError, ProcessingError { items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("point_amount", 5); + items5.addProperty("point_amount_unit", "percent"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("is_multiply_by_count", true); + items5.addProperty("required_count", 2); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("is_multiply_by_count", true); + items6.addProperty("required_count", 2); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); + items9.addProperty("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"); @@ -3662,54 +3570,34 @@ void test50() throws ConnectionError, ProcessingError { items19.addProperty("point_amount_unit", "percent"); items19.addProperty("subject_more_than_or_equal", 1000); items19.addProperty("subject_less_than", 5000); - JsonObject items20 = new JsonObject(); - items20.addProperty("point_amount", 5); - items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("subject_more_than_or_equal", 1000); - items20.addProperty("subject_less_than", 5000); - 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( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"58406e89-12ef-4201-9885-4dc3ed9e8de7","65231577-b9e0-4bac-a4f9-92be674f59a9","3e5b2f70-6fd1-40ee-83a0-1efc872b1351","29db1c55-8b2b-4df3-ae5e-78d7e7a79094","2a5b84cf-38bc-42cb-81cd-f16093aa0fda"}) + .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"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(1227) - .maxPointAmount(5433) + .maxTotalPointAmount(906) + .maxPointAmount(3467) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(3042) - .minimumNumberOfAmount(8275) - .minimumNumberOfProducts(8669) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .applicableDaysOfWeek(new Integer[]{6,0,2,6,6,6,4,6}) - .blacklistedProductRules(new Object[]{items9,items10}) - .productBasedPointRules(new Object[]{items11,items12,items13}) - .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20,items21,items22,items23}) + .minimumNumberForCombinationPurchase(3119) + .minimumNumberOfAmount(872) + .minimumNumberOfProducts(1504) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{5}) + .blacklistedProductRules(new Object[]{items2,items3,items4}) + .productBasedPointRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13}) + .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19}) .subject("all") - .setExclusive(true) - .pointExpiresInDays(5079) - .pointExpiresAt("2020-03-10T01:58:06.000000Z") - .status("disabled") - .description("9Ys1BTbKj9QeMGWU46l1ev23Q5PTPgtt4yAIzCwP1Z0JVfF9RSrf0Q1pmhWHNJvae7EjBkQNn9uWl9JunPy") - .event("external-transaction") - .priority(3444) - .endsAt("2020-05-06T14:17:53.000000Z") - .startsAt("2023-01-14T11:58:20.000000Z") - .name("g9sZ6EOXmzMsMVDhbzfFvUl3UtKdNP5TLVhbhll0GP4QAkQeOPrTAo5HhYx5jCaGbLEuJCfBO4W1IV2UViZVHRWPkdj3cWX27LHxVCRXJ7RR9vhNIu31vkGd5KFMjSHWQRA9E535lViSyzzCHjVEEg0SpYDFFDY1quxNkSS1vmCLOUldc17zrM7imjJVYnMFmZVKbnQskJ4SJWYdnxMjsH9rlpcWw1Vg5A3jIY5TVDn7VAyGhf1a2i4X"); + .setExclusive(false) + .pointExpiresInDays(4508) + .pointExpiresAt("2021-04-28T08:51:45.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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3733,14 +3621,14 @@ void test51() throws ConnectionError, ProcessingError { items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); items5.addProperty("product_code", "4912345678904"); items5.addProperty("classification_code", "c123"); @@ -3757,115 +3645,60 @@ void test51() throws ConnectionError, ProcessingError { items9.addProperty("product_code", "4912345678904"); items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); - items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); + items11.addProperty("subject_more_than_or_equal", 1000); + items11.addProperty("subject_less_than", 5000); JsonObject items12 = new JsonObject(); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("subject_more_than_or_equal", 1000); + items12.addProperty("subject_less_than", 5000); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); - JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); - JsonObject items17 = new JsonObject(); - items17.addProperty("point_amount", 5); - items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); - JsonObject items18 = new JsonObject(); - items18.addProperty("point_amount", 5); - items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); - JsonObject items19 = new JsonObject(); - items19.addProperty("point_amount", 5); - items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); - JsonObject items20 = new JsonObject(); - items20.addProperty("point_amount", 5); - items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("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); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "d6f68801-8b1c-444d-806c-719d0b0e8472" + "651b8291-64e3-477d-9712-e2ab96cd0d6c" ) - .blacklistedShopIds(new String[]{"3e39bb30-64fb-4ab0-b6d9-4a8f3375d013","4087f081-48b5-4987-84c6-874eafef4bb9","4246a662-9dad-4ad7-b976-49ebadbf89ad"}) - .budgetCapsAmount(972584995) + .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) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(3783) - .maxPointAmount(4651) + .maxTotalPointAmount(3267) + .maxPointAmount(6431) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(7692) - .minimumNumberOfAmount(2243) - .minimumNumberOfProducts(1262) - .applicableTimeRanges(new Object[]{items,items2,items3,items4}) - .applicableDaysOfWeek(new Integer[]{4,3,5,5,2,0,0,1,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,items23,items24,items25}) + .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") .setExclusive(true) - .pointExpiresInDays(13) - .pointExpiresAt("2021-05-20T16:06:08.000000Z") + .pointExpiresInDays(6007) + .pointExpiresAt("2023-02-06T09:56:17.000000Z") .status("enabled") - .description("EmCrFqNwdLZ15QmFMvlNaa2goLZ5E9OEvOUIiBwbJ5Gu") + .description("0Cr3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXon") .event("topup") - .priority(8059) - .endsAt("2021-03-12T23:21:21.000000Z") - .startsAt("2022-10-10T17:15:17.000000Z") - .name("fgOe9nVnbOf1mceXbMKgmiS2"); + .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) { diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java index 1a62672..c7bf6f8 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( - "0da2a235-a61d-4fb0-895d-6bf9eae38e8e" + "b0957c83-aab4-424b-b998-c121e5e95f6a" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "0da2a235-a61d-4fb0-895d-6bf9eae38e8e" + "b0957c83-aab4-424b-b998-c121e5e95f6a" ) .setDisabled(true); try { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "0da2a235-a61d-4fb0-895d-6bf9eae38e8e" + "b0957c83-aab4-424b-b998-c121e5e95f6a" ) - .bearPointAccount("f3ece267-e6dd-4c26-bb9a-a2145b58b94f") - .setDisabled(true); + .bearPointAccount("0ef62065-a6e8-4745-b01e-b4465ebf2893") + .setDisabled(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 UpdateCheck( - "0da2a235-a61d-4fb0-895d-6bf9eae38e8e" + "b0957c83-aab4-424b-b998-c121e5e95f6a" ) - .pointExpiresInDays(7651) - .bearPointAccount("dc2a9537-2e25-428b-8c79-9759f46c2283") + .pointExpiresInDays(8115) + .bearPointAccount("50b4b7e4-86c0-4731-a6c0-d000e06e77f3") .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "0da2a235-a61d-4fb0-895d-6bf9eae38e8e" + "b0957c83-aab4-424b-b998-c121e5e95f6a" ) - .pointExpiresAt("2022-06-23T02:48:50.000000Z") - .pointExpiresInDays(462) - .bearPointAccount("588f723f-b8d0-4356-a138-15ece3046a56") - .setDisabled(false); + .pointExpiresAt("2022-09-17T04:14:34.000000Z") + .pointExpiresInDays(6114) + .bearPointAccount("120cd1dc-82f1-40db-b4e3-d8738f704eaf") + .setDisabled(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 UpdateCheck( - "0da2a235-a61d-4fb0-895d-6bf9eae38e8e" + "b0957c83-aab4-424b-b998-c121e5e95f6a" ) - .expiresAt("2021-06-27T23:48:12.000000Z") - .pointExpiresAt("2021-04-14T11:48:16.000000Z") - .pointExpiresInDays(1536) - .bearPointAccount("5885fd4f-db4f-4e31-b732-dcc721d95a97") + .expiresAt("2021-12-26T07:08:50.000000Z") + .pointExpiresAt("2020-04-20T21:24:42.000000Z") + .pointExpiresInDays(9361) + .bearPointAccount("add2afb3-924a-4e3f-b238-e78e930de5f8") .setDisabled(false); try { PartnerAPITest.getClient().send(request); @@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "0da2a235-a61d-4fb0-895d-6bf9eae38e8e" + "b0957c83-aab4-424b-b998-c121e5e95f6a" ) - .usageLimit(4840) - .expiresAt("2024-03-14T23:38:51.000000Z") - .pointExpiresAt("2023-10-29T21:40:43.000000Z") - .pointExpiresInDays(4895) - .bearPointAccount("36989ecd-ea2e-4586-9178-d41a6010f1d0") - .setDisabled(true); + .usageLimit(5850) + .expiresAt("2022-09-20T22:54:41.000000Z") + .pointExpiresAt("2022-06-21T06:26:38.000000Z") + .pointExpiresInDays(9091) + .bearPointAccount("e6b60915-66a2-463e-b156-c43425c0e7bf") + .setDisabled(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -145,14 +145,14 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "0da2a235-a61d-4fb0-895d-6bf9eae38e8e" + "b0957c83-aab4-424b-b998-c121e5e95f6a" ) .setOnetime(false) - .usageLimit(528) - .expiresAt("2021-06-28T16:46:16.000000Z") - .pointExpiresAt("2022-04-18T04:46:18.000000Z") - .pointExpiresInDays(7522) - .bearPointAccount("dcc480ac-5d41-4298-b474-fb4dd4432d13") + .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); try { PartnerAPITest.getClient().send(request); @@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "0da2a235-a61d-4fb0-895d-6bf9eae38e8e" + "b0957c83-aab4-424b-b998-c121e5e95f6a" ) - .description("t9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1") + .description("KBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0eLy") .setOnetime(false) - .usageLimit(926) - .expiresAt("2022-11-29T22:15:30.000000Z") - .pointExpiresAt("2023-07-27T03:52:53.000000Z") - .pointExpiresInDays(9891) - .bearPointAccount("0017f63e-2af1-4d56-b4bf-6b1950a35255") - .setDisabled(true); + .usageLimit(666) + .expiresAt("2020-05-04T10:41:03.000000Z") + .pointExpiresAt("2020-03-06T08:42:24.000000Z") + .pointExpiresInDays(4807) + .bearPointAccount("f22beb4e-a05a-4d14-b711-7187892faaa4") + .setDisabled(false); 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 UpdateCheck( - "0da2a235-a61d-4fb0-895d-6bf9eae38e8e" + "b0957c83-aab4-424b-b998-c121e5e95f6a" ) - .pointAmount(774.0) - .description("a8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0eLyZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4Vsa") + .pointAmount(7166.0) + .description("9bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4VsaDUMga8HPH") .setOnetime(true) - .usageLimit(9429) - .expiresAt("2021-10-28T01:43:41.000000Z") - .pointExpiresAt("2020-04-30T07:58:27.000000Z") - .pointExpiresInDays(4328) - .bearPointAccount("ac255a21-4c61-49b8-885e-2c3b5040773d") - .setDisabled(false); + .usageLimit(6288) + .expiresAt("2023-09-02T05:02:34.000000Z") + .pointExpiresAt("2023-01-19T14:30:30.000000Z") + .pointExpiresInDays(7609) + .bearPointAccount("618163de-18d6-4441-aa8e-45f8f4b0868f") + .setDisabled(true); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -217,18 +217,18 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( - "0da2a235-a61d-4fb0-895d-6bf9eae38e8e" + "b0957c83-aab4-424b-b998-c121e5e95f6a" ) - .moneyAmount(3664.0) - .pointAmount(7445.0) - .description("Lfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27") - .setOnetime(false) - .usageLimit(2449) - .expiresAt("2020-08-03T06:46:10.000000Z") - .pointExpiresAt("2021-03-26T22:06:24.000000Z") - .pointExpiresInDays(2622) - .bearPointAccount("a69aa3f1-6679-49e2-bfd4-193394ba5d95") - .setDisabled(true); + .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") + .setDisabled(false); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java index b7d4e8b..dd40801 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(3369); + .discountAmount(8569); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(4102) - .name("zmDvsuxdQFF1b9FFVSxNRhY3CeG383Fyff0GWufJQM5UqG40T5H1YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6dE59eFWe4PxHJhHM6"); + .discountAmount(6935) + .name("8UduAdQ5IH0TK2HSa"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(8620) - .description("RObQxj3f4w8El4HGgfInUuZUZacdXJKlldoDuv9TA2XHRXocL0a2ENjq4YdkJGWgFmKTEIA1MAf2HgecIl74FyRST7ScfdaiXI0aphnQpmaEH46JpxMwBWB66twUXazpjqxEREjqmyqJkEdfkYviMgBpZAYBbcvRZzaI37qk5Qpl5Gz36NQavWZXSE0IrKdpz0FXntwLwsP6PlvtK") - .name("fS7zk6Hoi0oeAT0NWEwBSET0"); + .discountAmount(8052) + .description("A6ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvII6xukRoB486IcnSrXwZGPsDFfbhpjo") + .name("CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FA"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(1263) - .discountUpperLimit(5984) - .description("nBy6crZ") - .name("nvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB"); + .discountAmount(8042) + .discountUpperLimit(1963) + .description("tbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEEKedrMwdHukpCicHBj64f1DT6D6") + .name("Mien3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4S"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(6526) - .startsAt("2021-08-30T09:16:12.000000Z") - .discountUpperLimit(8627) - .description("4Jmf05hgJ0rNiPO7Acqsb1X8oQj9wf9SU4WjLK1VT02GEDFloz09QK5UFuC5JXRVayFf6oyQZu56A1wWzKTTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6cvEGDQNsufaSx2VVAwQqeQUNQCi45yyQTl9wTWmjZWPblW") - .name("stjkwC6ll5fjzCHapR04ADVEFmUe"); + .discountAmount(6201) + .startsAt("2024-05-22T11:46:17.000000Z") + .discountUpperLimit(7049) + .description("Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouPF8sEd3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4Lx") + .name("Yp1VFXi65IWH287FkS1AdoZmrqVFQp8fp9IpDGNT32XXjSeAsfsowmrnytFnDNPErJC0T6j8TSBN1GRIxfJ3UGUUM2jHDzbRjTfUU5d5AtO"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(6120) - .endsAt("2021-02-21T07:04:07.000000Z") - .startsAt("2020-11-12T13:35:34.000000Z") - .discountUpperLimit(8821) - .description("605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8B2QPQ9Y2Rpsj0heI1p") - .name("cWBx1T31cQtfbPCATbfETgM8KooCtS8z1fc4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T"); + .discountAmount(2829) + .endsAt("2021-12-12T09:02:22.000000Z") + .startsAt("2023-03-24T23:29:09.000000Z") + .discountUpperLimit(8481) + .description("L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNR") + .name("sJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1TG2yJEOhnrWkQVh8G8vXFKeuF0FhTncNlMmgEuaHAH"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(1280) - .displayStartsAt("2022-02-07T00:58:41.000000Z") - .endsAt("2020-07-03T13:09:16.000000Z") - .startsAt("2022-04-06T02:41:42.000000Z") - .discountUpperLimit(8338) - .description("U9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9z2bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72QaNrZpz") - .name("YfcTDxwidoKxhgH4IlA44068"); + .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"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(7653) - .displayEndsAt("2021-03-12T20:43:34.000000Z") - .displayStartsAt("2024-01-14T18:47:07.000000Z") - .endsAt("2023-08-24T18:40:25.000000Z") - .startsAt("2020-06-24T15:25:32.000000Z") - .discountUpperLimit(5621) - .description("tMBS788il7UEqSzLy9xJxJq4hHbOAXXYVgVjKzFhmxuYV64qe5o2B2OlLXdk5kJbuw4YuJbyUdwtweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424DF7dkeP") - .name("prAJuqXJLC9DlGjqYc53kHtf9cD7bpNKlOmIqFEpEzlkbZXsHeK96R7zZjof"); + .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"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(7512) - .setDisabled(false) - .displayEndsAt("2023-09-26T17:17:13.000000Z") - .displayStartsAt("2023-07-19T17:23:58.000000Z") - .endsAt("2022-07-23T00:51:58.000000Z") - .startsAt("2020-09-27T14:14:16.000000Z") - .discountUpperLimit(3441) - .description("Bfps6VchHwOSBaSPaNKxM4bPYPan8UYIRAISeS032nbwP9uwXrTBWthKP8SFB1epaCsenfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2") - .name("aByNhkorzLzXS7sax7iYOPlAj5UlMDxo6iDarlMDzJC7wMAkFYNemkzZpvDvog0lglLv2T90aOF7qL"); + .discountAmount(8580) + .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"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(5374) - .setHidden(false) - .setDisabled(true) - .displayEndsAt("2020-12-25T09:57:39.000000Z") - .displayStartsAt("2020-01-10T18:15:38.000000Z") - .endsAt("2022-05-13T15:42:15.000000Z") - .startsAt("2023-02-17T12:59:14.000000Z") - .discountUpperLimit(4505) - .description("8mYG8iBpA9wK7FerKmMDJDN9kjnEAtWkM10yTZC3mt5NbCfjtxFXhJHyZxe38yvM1SEczLfO3bcMSuKdq3FslGbkHo1PhxbbT2umORVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77PuYo1FVSdDE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQHQhhRs2PIaofbMQ1Wyxx6i") - .name("X8wNVpCNUyiEzApKM66ZkEOto1oTpzcZyDOIWVwoFQcmGYbDKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmk"); + .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"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(4325) + .discountAmount(9501) .setPublic(false) - .setHidden(true) - .setDisabled(false) - .displayEndsAt("2023-06-05T19:33:13.000000Z") - .displayStartsAt("2023-12-10T02:41:36.000000Z") - .endsAt("2021-01-15T09:04:35.000000Z") - .startsAt("2020-08-28T10:01:06.000000Z") - .discountUpperLimit(1521) - .description("p1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZsgSDOAS6m6W4ycEKeHr4636lRXTr2iPpZt0j1CI3l6J30qB") - .name("jXV2f"); + .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"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(8505) - .code("mPOolq1eiW") - .setPublic(false) - .setHidden(true) + .discountAmount(4884) + .code("Nuqq") + .setPublic(true) + .setHidden(false) .setDisabled(true) - .displayEndsAt("2021-12-28T08:11:25.000000Z") - .displayStartsAt("2023-10-28T13:01:46.000000Z") - .endsAt("2023-10-07T18:29:09.000000Z") - .startsAt("2023-02-25T17:26:38.000000Z") - .discountUpperLimit(5320) - .description("XLsbYmrfHwiW6AehvKLu9jSykyDMxjQh") - .name("XvqsNkUwpnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD62p"); + .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"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(6245) - .usageLimit(9326) - .code("fX") - .setPublic(false) + .discountAmount(8882) + .usageLimit(5765) + .code("bnV3FEVOMM") + .setPublic(true) .setHidden(true) - .setDisabled(true) - .displayEndsAt("2022-02-10T11:15:21.000000Z") - .displayStartsAt("2021-06-02T04:43:14.000000Z") - .endsAt("2020-01-14T21:07:01.000000Z") - .startsAt("2020-11-12T14:46:47.000000Z") - .discountUpperLimit(1338) - .description("i93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMiAoASOIgsAFMRnA6RqJv3Yoi1HNQ6SUUxfHdkFZrSjoj4E906hjOODSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyxQz7D46SGfEdpD0URVkFLTmlxp8SI9cXescrmSD5nk") - .name("7THGlyH3t2HB4wHFbCGx0Xzqx2wtaKpu1qdmiKn22F3ctIsxTTV24W3iMjgCaf4v1F7zb24TvVYyzGoNYLIXxqonkMGqXlJpJRQwp9nn9cv0p2uyg"); + .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"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(9709) - .minAmount(7842) - .usageLimit(3216) - .code("Gn") - .setPublic(true) - .setHidden(false) + .discountAmount(4539) + .minAmount(4628) + .usageLimit(8984) + .code("prAJuqXJL") + .setPublic(false) + .setHidden(true) .setDisabled(false) - .displayEndsAt("2022-01-18T18:49:11.000000Z") - .displayStartsAt("2022-04-13T15:25:53.000000Z") - .endsAt("2020-05-21T18:56:37.000000Z") - .startsAt("2020-01-04T10:37:01.000000Z") - .discountUpperLimit(3828) - .description("Fto3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwmdx9H0OP7RXsy9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTKy9baAXpUrNxQ") - .name("Jv2d1RjRDvxxlQFhM2eopmIlmvqzqnGOYbg6rdqjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T"); + .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"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(3855) + .discountAmount(8499) .setShopSpecified(false) - .minAmount(8174) - .usageLimit(8544) - .code("UM") + .minAmount(179) + .usageLimit(4444) + .code("LMEPLj") .setPublic(false) .setHidden(true) .setDisabled(false) - .displayEndsAt("2022-10-15T14:53:37.000000Z") - .displayStartsAt("2021-08-20T10:18:27.000000Z") - .endsAt("2021-08-31T19:01:24.000000Z") - .startsAt("2023-04-05T15:10:00.000000Z") - .discountUpperLimit(6430) - .description("PmGiUoPteza9Foxx3GETJuunMNM7JUVu7YgDI0zSm63cU49za1QJALcpDZJ7YKoaGZqFQRMYj7eI0OiTgfPr68fP2A8RCqVjIMZulltZtjgMfuDxn3Qgsi") - .name("Euf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJ"); + .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"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(1180) - .availableShopIds(new String[]{"b74f52d9-27c0-4584-ba14-61956a4f06ac","91571aed-6a06-49d3-9e2f-585efed8d786","19edcb84-0dfd-4b05-b144-658eda75c8b3","3e17ce7b-3aea-4b68-be0d-129dc554ac5e","d6215d30-17cb-4474-af51-6e612ecca4a0","db0a52e5-9ffe-44e1-97b3-75f6f053cb2e","b1c79c37-4599-457b-b73f-8d812995a17f"}) + .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"}) .setShopSpecified(true) - .minAmount(405) - .usageLimit(6361) - .code("7b9HTO") - .setPublic(false) - .setHidden(false) - .setDisabled(false) - .displayEndsAt("2020-09-11T14:57:27.000000Z") - .displayStartsAt("2022-04-13T01:09:00.000000Z") - .endsAt("2021-03-30T14:03:06.000000Z") - .startsAt("2020-04-03T08:47:12.000000Z") - .discountUpperLimit(6479) - .description("lSRN9rogVZwJO2xNcltqUbvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3EykNpjwCPjAkzyY2kmUe2JJ53U3N6F0e26pbO3HttlG4eyiatMI7VF3dtugJSz1Q3vovXNsgFsW05W19aXuGVVRQlUVJv9CZ2ZsBhmJBENJ2Jp") - .name("YLnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ9bvTSzMBL1Qigyh"); + .minAmount(9057) + .usageLimit(7685) + .code("OF7q") + .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"); 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( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(4280) - .storageId("3298a32b-4fb2-4c52-b82b-a579104f213e") - .availableShopIds(new String[]{"5377cbf6-4cb5-423f-afda-4d3182223f41","71422038-22cc-4628-8add-0d75528b6082","a4006fe3-d1bf-479f-9009-3510fc860153","6b811954-3903-43fe-9bda-af2c431cdbf7","e591ca2a-ab07-404a-b92d-15f4284454f8","0000b8af-14af-4dbe-8991-71d36a6eeb82","fc0641a9-82c5-4470-925c-7da7a3df0a01"}) - .setShopSpecified(true) - .minAmount(8216) - .usageLimit(7384) - .code("YxFxM") + .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"}) + .setShopSpecified(false) + .minAmount(958) + .usageLimit(5795) + .code("xbbT2umOR") .setPublic(true) - .setHidden(false) + .setHidden(true) .setDisabled(true) - .displayEndsAt("2020-07-16T09:14:56.000000Z") - .displayStartsAt("2022-05-19T09:14:38.000000Z") - .endsAt("2020-11-05T04:11:17.000000Z") - .startsAt("2020-05-12T16:56:07.000000Z") - .discountUpperLimit(5560) - .description("NITOunWJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wDY3YT1DlU5jqTh") - .name("0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSuhWGSp4IuNXEvAYv341undTljbWPhfpiw"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -437,10 +437,10 @@ void test16() throws ConnectionError, ProcessingError { @Test void test17() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(6864) - .discountPercentage(9890.0); + .discountAmount(2060) + .discountPercentage(8252.0); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -455,11 +455,11 @@ void test17() throws ConnectionError, ProcessingError { @Test void test18() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(3050) - .discountPercentage(7285.0) - .name("pC65xVDnAJbsKD6b895iftqb"); + .discountAmount(6260) + .discountPercentage(6255.0) + .name("1oTpzcZyDOIWVwoFQc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -474,12 +474,12 @@ void test18() throws ConnectionError, ProcessingError { @Test void test19() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(7094) - .discountPercentage(679.0) - .description("Ut2zsAKH6lKT6gJXbaEKAddoUM0CRdaSDeoQ9lXXELG9oQdgpEse81VvpXr3HeuSevupI3Lg6cydG4CQY3zROLCcC3cDzGwCmJXHiF5C2aKJupg0Hph0EUCWBeCDLYnE6HiVXoG09ihrRj4aejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6F3HhJclpvEl0kBLWjkCR0") - .name("Mj5I3Hqz506kx1IdZKDkCNCl989Inr9h5bKrK2A0mc"); + .discountAmount(9817) + .discountPercentage(9826.0) + .description("DKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZsgSDOAS6m6W4ycEK") + .name("eHr4636lRXTr2iPpZt0j1CI3l6J30qBjXV2f99mPOolq1eiW9RuNHXLsbYmrfHw"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -494,13 +494,13 @@ void test19() throws ConnectionError, ProcessingError { @Test void test20() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(198) - .discountPercentage(6942.0) - .discountUpperLimit(9733) - .description("TtdvdsEkzDVoxJr0lAnMovtOnbZ68JstsOcxw5PoatcF0TU5W5omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc2ISnCuuu6HEZICTUsFd55cysKpzPw06buTFvYo4vEubGw6jVHah2jNyPqoWcQ") - .name("dnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPTZ7efHVp4Du6bqVzq0H9hNDIpWOGRlL4Q"); + .discountAmount(1408) + .discountPercentage(933.0) + .discountUpperLimit(182) + .description("AehvKLu9jSykyDMxjQhXvqsNkUwpnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD62pEennAfXO8IbuWWi93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMiAoASOIgsAFMRnA6RqJv3Yoi1HNQ6SUUxfHdkFZrSjoj4E906hjOO") + .name("DSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyxQz7D"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -515,14 +515,14 @@ void test20() throws ConnectionError, ProcessingError { @Test void test21() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(6723) - .discountPercentage(1865.0) - .startsAt("2023-02-23T18:35:03.000000Z") - .discountUpperLimit(3570) - .description("LzYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCFjnlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCi") - .name("sIe5qHDsMdG7wbTKEpXzySqqc4sXPad6xuwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8E"); + .discountAmount(6289) + .discountPercentage(5503.0) + .startsAt("2022-03-22T13:16:43.000000Z") + .discountUpperLimit(8449) + .description("6SGfEdpD0U") + .name("VkFLTmlxp8SI9cXescrmSD5nkp7THGlyH3t2HB4wHFbCGx0Xzqx2wtaKpu1qdmiKn22F3ctIsxTTV24W3iM"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -537,15 +537,15 @@ void test21() throws ConnectionError, ProcessingError { @Test void test22() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(1253) - .discountPercentage(3983.0) - .endsAt("2020-07-22T21:08:39.000000Z") - .startsAt("2022-07-12T18:16:57.000000Z") - .discountUpperLimit(2186) - .description("IbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZFtSWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREfojZVoiIjURbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3rucfBues6uHoyn0kY9tu08AkjC0WPKbQvYow9FaOH3zD7SQmRuyNCMpGLgUAKK4AYXS") - .name("tTHGYGCT6FSvry2c"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -560,16 +560,16 @@ void test22() throws ConnectionError, ProcessingError { @Test void test23() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(2281) - .discountPercentage(4986.0) - .displayStartsAt("2021-05-31T11:18:08.000000Z") - .endsAt("2023-04-09T07:11:36.000000Z") - .startsAt("2020-10-10T13:50:00.000000Z") - .discountUpperLimit(3091) - .description("Wdg5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4IlVfzKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsPccciqGzpCuGxgjotb") - .name("AnDFm6nBFTBcp5MgKi6dj"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -584,17 +584,17 @@ void test23() throws ConnectionError, ProcessingError { @Test void test24() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(2148) - .discountPercentage(5397.0) - .displayEndsAt("2021-07-12T19:56:21.000000Z") - .displayStartsAt("2023-04-02T01:19:28.000000Z") - .endsAt("2022-12-03T05:30:07.000000Z") - .startsAt("2023-02-16T02:42:14.000000Z") - .discountUpperLimit(2233) - .description("Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8") - .name("JafcwBDpLTRN1a0lar5cvmWk6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5Ps"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -609,18 +609,18 @@ void test24() throws ConnectionError, ProcessingError { @Test void test25() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(9928) - .discountPercentage(1593.0) - .setDisabled(false) - .displayEndsAt("2023-06-30T20:35:00.000000Z") - .displayStartsAt("2023-04-19T00:27:46.000000Z") - .endsAt("2024-05-03T01:03:58.000000Z") - .startsAt("2024-03-11T13:46:01.000000Z") - .discountUpperLimit(6041) - .description("nNiOZyV9AO3DnB1YRES4xlc64") - .name("9ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJ"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -635,19 +635,19 @@ void test25() throws ConnectionError, ProcessingError { @Test void test26() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(2324) - .discountPercentage(9975.0) - .setHidden(false) - .setDisabled(false) - .displayEndsAt("2024-03-08T00:13:57.000000Z") - .displayStartsAt("2020-10-13T18:55:25.000000Z") - .endsAt("2022-09-22T02:15:16.000000Z") - .startsAt("2022-11-12T12:29:03.000000Z") - .discountUpperLimit(7869) - .description("GtF4vDevDABoV1497oKjyplKX") - .name("UyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -662,20 +662,20 @@ void test26() throws ConnectionError, ProcessingError { @Test void test27() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(571) - .discountPercentage(2964.0) + .discountAmount(9044) + .discountPercentage(5553.0) .setPublic(true) .setHidden(true) - .setDisabled(false) - .displayEndsAt("2022-03-29T11:28:16.000000Z") - .displayStartsAt("2020-07-30T23:23:27.000000Z") - .endsAt("2024-03-29T23:34:52.000000Z") - .startsAt("2023-11-09T20:26:47.000000Z") - .discountUpperLimit(2335) - .description("QwCdLCVxkfS7LC09h1a33P4feIw8rNkq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQkIPmfa5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKvyAHQ0Cmh0GR2iNpQgbrTS2HEffP70DHCUohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxF") - .name("Xqpct"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -690,21 +690,21 @@ void test27() throws ConnectionError, ProcessingError { @Test void test28() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(90) - .discountPercentage(2849.0) - .code("oXMEwv") - .setPublic(false) + .discountAmount(5837) + .discountPercentage(7725.0) + .code("0CR") + .setPublic(true) .setHidden(true) .setDisabled(true) - .displayEndsAt("2023-12-30T00:19:43.000000Z") - .displayStartsAt("2023-09-12T16:14:32.000000Z") - .endsAt("2023-04-09T16:09:39.000000Z") - .startsAt("2021-10-01T21:21:40.000000Z") - .discountUpperLimit(4781) - .description("RRWKBpAMRk3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9FitjutUJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3Hc") - .name("5MrDSrYQmTFD8MK4LhwIRladKEnUCUBMTsHjSLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfy"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -719,22 +719,22 @@ void test28() throws ConnectionError, ProcessingError { @Test void test29() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(842) - .discountPercentage(8234.0) - .usageLimit(748) - .code("nw") - .setPublic(true) - .setHidden(true) - .setDisabled(false) - .displayEndsAt("2023-09-16T17:48:21.000000Z") - .displayStartsAt("2022-09-17T18:34:01.000000Z") - .endsAt("2024-06-15T05:37:12.000000Z") - .startsAt("2022-03-29T09:15:41.000000Z") - .discountUpperLimit(7603) - .description("S7kdpHli9FCf9vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn6U1tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ith") - .name("po1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQKCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z9k4WtlP60t1pGDCB7WpLioRLUylhwp3jBXy"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -749,23 +749,23 @@ void test29() throws ConnectionError, ProcessingError { @Test void test30() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(8829) - .discountPercentage(8750.0) - .minAmount(5804) - .usageLimit(4076) - .code("mnzTDYQP") + .discountAmount(3254) + .discountPercentage(6072.0) + .minAmount(8091) + .usageLimit(8638) + .code("JstsOcxw5") .setPublic(false) .setHidden(true) .setDisabled(true) - .displayEndsAt("2021-08-24T06:31:33.000000Z") - .displayStartsAt("2024-07-02T12:36:12.000000Z") - .endsAt("2023-12-07T03:25:32.000000Z") - .startsAt("2021-07-20T16:53:31.000000Z") - .discountUpperLimit(2116) - .description("piIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3a7y1jkUDzYlQVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cx") - .name("LSG8S4aP0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kBu7DCNg4aU7BlWsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomWlXA8y2vwA"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -780,24 +780,24 @@ void test30() throws ConnectionError, ProcessingError { @Test void test31() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(4250) - .discountPercentage(7636.0) - .setShopSpecified(true) - .minAmount(3150) - .usageLimit(7069) - .code("YaeLyV7C") - .setPublic(false) - .setHidden(true) - .setDisabled(false) - .displayEndsAt("2024-01-19T23:34:10.000000Z") - .displayStartsAt("2022-07-01T10:48:54.000000Z") - .endsAt("2023-06-26T17:43:56.000000Z") - .startsAt("2020-06-06T05:25:11.000000Z") - .discountUpperLimit(1410) - .description("DR") - .name("yx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu"); + .discountAmount(1678) + .discountPercentage(2946.0) + .setShopSpecified(false) + .minAmount(2440) + .usageLimit(3333) + .code("bGw6jV") + .setPublic(true) + .setHidden(false) + .setDisabled(true) + .displayEndsAt("2022-01-02T20:53:06.000000Z") + .displayStartsAt("2024-07-26T06:22:27.000000Z") + .endsAt("2021-10-22T12:20:11.000000Z") + .startsAt("2020-03-10T15:06:45.000000Z") + .discountUpperLimit(163) + .description("NyPqoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPTZ7efHVp4Du6bqVzq0H9hNDIpWOGRlL4QDCIWrLzYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCF") + .name("nlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCis"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -812,25 +812,25 @@ void test31() throws ConnectionError, ProcessingError { @Test void test32() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(9397) - .discountPercentage(1195.0) - .availableShopIds(new String[]{"0a769ecb-5ef8-4b07-b256-460ce79cb334"}) + .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(1853) - .usageLimit(4765) - .code("hz7DzBywK") + .minAmount(9253) + .usageLimit(611) + .code("4sXP") .setPublic(false) .setHidden(false) .setDisabled(false) - .displayEndsAt("2020-12-23T07:17:39.000000Z") - .displayStartsAt("2023-05-27T13:45:13.000000Z") - .endsAt("2023-07-24T19:55:02.000000Z") - .startsAt("2020-07-26T01:22:08.000000Z") - .discountUpperLimit(2478) - .description("lN0S7L0N0uBH") - .name("0xIlmI7crwjgiJmBq8x2BMoiejWmPY8qwKCFWRUhTWJtrSHM5KvGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -845,26 +845,26 @@ void test32() throws ConnectionError, ProcessingError { @Test void test33() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountAmount(4865) - .discountPercentage(3785.0) - .storageId("a0643614-6009-49e9-818c-732cbc1e8ddd") - .availableShopIds(new String[]{"1b48da90-f25d-40cb-9921-57bac6836b5e","ce0ca253-9180-42bf-a004-7e40ec1d6565","3e9543d7-79d5-4f9b-8db9-1afa2b924336","381edcec-9126-46dd-bb41-a1e2627bd3af","abaf04c4-a587-43b3-8e11-23f7946c6b70","f4d1cec6-9e2e-4dec-ad2a-af40659fc7af"}) + .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"}) .setShopSpecified(false) - .minAmount(9333) - .usageLimit(5571) - .code("RGaBKUJdH") + .minAmount(8904) + .usageLimit(3294) + .code("zD7S") .setPublic(false) - .setHidden(false) - .setDisabled(true) - .displayEndsAt("2021-07-02T20:11:18.000000Z") - .displayStartsAt("2023-06-04T18:51:09.000000Z") - .endsAt("2023-08-14T13:15:48.000000Z") - .startsAt("2023-03-09T00:43:37.000000Z") - .discountUpperLimit(8555) - .description("waxRbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1By6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9VDX3NEhsO0rjGagOIQ6x9sSfu0zX8zdCniT7rbp4RdF8jzLLX07kGwmRZR89QJDyeQCnprhi7qh3KP4T3") - .name("Wi9g9nZZhOiq9TM1kLnMOaPoayQ1SL4LwXctk2uyuazqzFpngLk90ZBF"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -879,9 +879,9 @@ void test33() throws ConnectionError, ProcessingError { @Test void test34() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(5416.0); + .discountPercentage(9978.0); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -896,10 +896,10 @@ void test34() throws ConnectionError, ProcessingError { @Test void test35() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(387.0) - .name("DIECbUavopCer6amUq"); + .discountPercentage(3445.0) + .name("0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsP"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -914,11 +914,11 @@ void test35() throws ConnectionError, ProcessingError { @Test void test36() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(87.0) - .description("i2uDVrmTki6pqO0f8cnptMkBRjmpnnbeCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSblk7QSMdkkKPrtzfsCSKaR3OFn1WKJz5hhBZBCZgSERTDaoK9IqITw9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOd") - .name("Ia2"); + .discountPercentage(8978.0) + .description("ccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8") + .name("JafcwBDpLTRN1a0lar5cvmWk6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5Ps"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -933,12 +933,12 @@ void test36() throws ConnectionError, ProcessingError { @Test void test37() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(1580.0) - .discountUpperLimit(2390) - .description("bV1E7pIBf60ZOpXb0uUTjEzrW5FEq") - .name("VpVqu1DpFd0JaBsPBEjjxsN82R5bV74h6MclFLskpVJhF8OvhWGp3gT"); + .discountPercentage(9928.0) + .discountUpperLimit(1593) + .description("tmnNiOZyV9AO3DnB1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8r") + .name("kq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQk"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -953,13 +953,13 @@ void test37() throws ConnectionError, ProcessingError { @Test void test38() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(5026.0) - .startsAt("2021-11-12T05:57:23.000000Z") - .discountUpperLimit(3126) - .description("0RTw4fZ8zWBq") - .name("C3vDIMcnooU2vsEkhFzbMP7H4x70jy8CyXSjsNQfhm4JdiSR8LU0sAxVpKo9Pr8tnCR4b3VVcnR7ySaTJSLX"); + .discountPercentage(4048.0) + .startsAt("2023-02-25T20:09:17.000000Z") + .discountUpperLimit(358) + .description("a5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKv") + .name("yAHQ0Cmh0GR2iNpQgbrTS2HEffP70D"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -974,14 +974,14 @@ void test38() throws ConnectionError, ProcessingError { @Test void test39() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(4321.0) - .endsAt("2022-01-22T06:31:46.000000Z") - .startsAt("2022-09-22T02:15:34.000000Z") - .discountUpperLimit(3553) - .description("CY9HY0faJMcRsZ3tfn14pqdpY2gOVzxC2AMFcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK") - .name("2zVvIrNmjPyMt7JZTknlc"); + .discountPercentage(1429.0) + .endsAt("2023-03-24T15:14:16.000000Z") + .startsAt("2022-11-21T09:12:45.000000Z") + .discountUpperLimit(67) + .description("ohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBpAMRk3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9FitjutUJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmm") + .name("XsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3H"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -996,15 +996,15 @@ void test39() throws ConnectionError, ProcessingError { @Test void test40() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(2064.0) - .displayStartsAt("2022-11-03T12:38:36.000000Z") - .endsAt("2021-02-23T13:21:19.000000Z") - .startsAt("2022-11-02T21:17:26.000000Z") - .discountUpperLimit(5249) - .description("gHki7iEUUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOlUDOeBSRiyqeameMaY0bgN8gTUkelv3hkGmk4iWQZAVafOlabiOcEnloh2DXft8ZR3ZIT5H8aSOl3MDXnG9yHqEAThwDuq1zewsMIx1") - .name("pzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1019,16 +1019,16 @@ void test40() throws ConnectionError, ProcessingError { @Test void test41() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(6526.0) - .displayEndsAt("2022-02-10T21:37:06.000000Z") - .displayStartsAt("2023-07-07T06:44:18.000000Z") - .endsAt("2022-10-27T08:09:12.000000Z") - .startsAt("2023-01-16T17:18:23.000000Z") - .discountUpperLimit(644) - .description("mKnZ6uDIn3iuFQrrgeXzyNXNrNkeWa9hWsLSo6RhlRrNdmMatyDW12s5SKsd06fYHa9pHdUJ") - .name("2NkpD9XRln1g4q1AmzenaBAIYsPX5BEVEkSwN7Jl7UfMqNeIWxDQ5mYkDBp76iPlz0WyF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1043,17 +1043,17 @@ void test41() throws ConnectionError, ProcessingError { @Test void test42() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(7931.0) - .setDisabled(true) - .displayEndsAt("2022-05-21T00:07:59.000000Z") - .displayStartsAt("2020-12-21T04:11:47.000000Z") - .endsAt("2022-06-24T02:43:06.000000Z") - .startsAt("2020-11-02T15:44:37.000000Z") - .discountUpperLimit(3587) - .description("29hBWbNKIGuoyWD3BHeU5bcdtREmG3PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCxlziaJ1nphI9ySRxw") - .name("6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD57"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1068,18 +1068,18 @@ void test42() throws ConnectionError, ProcessingError { @Test void test43() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(8889.0) - .setHidden(true) + .discountPercentage(3613.0) + .setHidden(false) .setDisabled(true) - .displayEndsAt("2022-01-15T05:11:05.000000Z") - .displayStartsAt("2023-03-28T21:21:29.000000Z") - .endsAt("2022-03-08T22:46:06.000000Z") - .startsAt("2022-03-11T13:39:03.000000Z") - .discountUpperLimit(6460) - .description("bStQsIHShYuqMOfry8huKLaun9q8fRCMt2") - .name("pzYekawpUouvYHKlj0GUL0Fcnz7fEngR6pF3m54VmwYrgFg"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1094,19 +1094,19 @@ void test43() throws ConnectionError, ProcessingError { @Test void test44() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(5716.0) - .setPublic(true) + .discountPercentage(9845.0) + .setPublic(false) .setHidden(true) .setDisabled(true) - .displayEndsAt("2021-03-20T12:27:31.000000Z") - .displayStartsAt("2022-01-22T00:44:41.000000Z") - .endsAt("2020-02-07T00:10:46.000000Z") - .startsAt("2021-11-09T11:10:37.000000Z") - .discountUpperLimit(7839) - .description("t1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLKUg3om1YNfeeKoL") - .name("dFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkm"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1121,20 +1121,20 @@ void test44() throws ConnectionError, ProcessingError { @Test void test45() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(3734.0) - .code("U4i2bFcYt3") + .discountPercentage(3782.0) + .code("s") .setPublic(false) .setHidden(true) - .setDisabled(true) - .displayEndsAt("2024-01-01T23:39:22.000000Z") - .displayStartsAt("2020-09-05T13:22:19.000000Z") - .endsAt("2020-09-13T01:33:56.000000Z") - .startsAt("2020-02-21T15:23:10.000000Z") - .discountUpperLimit(1518) - .description("QAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7mxn7kYGzShazSiZH6DDfNqfsVRi3zxzsVzVJLxpF9uCjOUSNMH9fWh27PiOpr3HMMXsb4Lh4b0Gko8iE0P3Cu0AOaTlKzyVFYYoK00acoGlEqYYGWZUMgU5LJ8nedbEkL6VCbZlYCZFu0YjXrvick1kbCzvMElblaTUskxDWTi4syFdijXYZ6Fkp0v2rObj5KP") - .name("CaX5R9O7hnOQMfDj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq2k3ET"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1149,21 +1149,21 @@ void test45() throws ConnectionError, ProcessingError { @Test void test46() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(3452.0) - .usageLimit(6835) - .code("QujW") - .setPublic(true) + .discountPercentage(8962.0) + .usageLimit(1825) + .code("MOaPoa") + .setPublic(false) .setHidden(false) .setDisabled(false) - .displayEndsAt("2020-01-02T01:09:24.000000Z") - .displayStartsAt("2021-06-08T23:37:15.000000Z") - .endsAt("2022-12-21T16:31:01.000000Z") - .startsAt("2020-06-27T04:29:37.000000Z") - .discountUpperLimit(7701) - .description("B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1zaeUGprRtPpZgZzOhvmvI") - .name("jVKe7aM7QiN4L"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1178,22 +1178,22 @@ void test46() throws ConnectionError, ProcessingError { @Test void test47() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(5776.0) - .minAmount(7690) - .usageLimit(4651) - .code("TtB8") - .setPublic(true) - .setHidden(true) + .discountPercentage(6628.0) + .minAmount(4459) + .usageLimit(4224) + .code("kKPrtzfsC") + .setPublic(false) + .setHidden(false) .setDisabled(true) - .displayEndsAt("2020-08-09T17:30:29.000000Z") - .displayStartsAt("2023-06-22T01:18:06.000000Z") - .endsAt("2022-02-07T10:31:34.000000Z") - .startsAt("2023-05-12T12:27:42.000000Z") - .discountUpperLimit(7011) - .description("lYyKl8cUsYw") - .name("8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSBniTvgiFcfFWfXoobW27D2zSsjxSJQ"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1208,23 +1208,23 @@ void test47() throws ConnectionError, ProcessingError { @Test void test48() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(1219.0) - .setShopSpecified(true) - .minAmount(8471) - .usageLimit(4931) - .code("TKE") + .discountPercentage(8196.0) + .setShopSpecified(false) + .minAmount(5806) + .usageLimit(9152) + .code("MP7") .setPublic(true) .setHidden(false) .setDisabled(true) - .displayEndsAt("2022-10-18T09:38:33.000000Z") - .displayStartsAt("2024-05-20T07:28:29.000000Z") - .endsAt("2023-01-17T17:32:35.000000Z") - .startsAt("2021-08-07T09:03:41.000000Z") - .discountUpperLimit(2219) - .description("0u0i2E7e3WCog3HknLhb4mGHjaX24jJAlJFQ82MhyQQoipgFNSux0jeobdQD1VXjUggH7qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcsFhnnSlOPQS") - .name("KVW980GqQVfPuvUPiEFV6mDyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1"); + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1239,24 +1239,24 @@ void test48() throws ConnectionError, ProcessingError { @Test void test49() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(6553.0) - .availableShopIds(new String[]{"c76a72e9-bc2d-4ba5-8396-38701193ca9c","591053fb-783e-451b-b085-177e1ab77e40","972b4b0d-3e81-4514-b243-c5504291064d","20db55d2-2be9-4c66-8c1c-cb0e9dbadc85"}) + .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"}) .setShopSpecified(true) - .minAmount(5106) - .usageLimit(610) - .code("Pk0z0") - .setPublic(true) - .setHidden(false) - .setDisabled(false) - .displayEndsAt("2021-09-02T20:51:58.000000Z") - .displayStartsAt("2023-08-12T03:57:28.000000Z") - .endsAt("2023-02-01T22:35:34.000000Z") - .startsAt("2023-01-24T07:02:32.000000Z") - .discountUpperLimit(8531) - .description("SSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w") - .name("3aEMSDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTB"); + .minAmount(6419) + .usageLimit(2905) + .code("gOV") + .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"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1271,25 +1271,25 @@ void test49() throws ConnectionError, ProcessingError { @Test void test50() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "6a3f93f0-7c09-47c8-a215-a4e8b83fc985" + "98643617-5492-4616-8d92-3e5eaa3a95f1" ) - .discountPercentage(8304.0) - .storageId("a64b250e-6fdb-4c32-bcb1-96e064a19d11") - .availableShopIds(new String[]{"1bfe7856-370f-4870-b5a9-f117828d9c7b","a4232406-a3ce-470c-a9a6-dca051797374","1582b98e-1201-40fc-a826-d51b4cde0304","adb90fac-136c-4321-804e-1bb8ff6c6863","faa96aae-bf54-4ece-b8f4-dc12853da7ba","643f1917-ba43-4fec-acd0-8cd0a205c941","3609b35c-e5e8-4333-b914-23649e966899","a7aa7014-d1f5-4e37-88a3-95ea15eff6f5"}) - .setShopSpecified(false) - .minAmount(1160) - .usageLimit(4886) - .code("O7") + .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") .setPublic(false) - .setHidden(true) - .setDisabled(false) - .displayEndsAt("2022-11-30T03:17:53.000000Z") - .displayStartsAt("2024-01-20T15:51:45.000000Z") - .endsAt("2023-03-26T20:07:28.000000Z") - .startsAt("2020-07-13T09:22:51.000000Z") - .discountUpperLimit(241) - .description("yw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOfsuO3LMtzPm5pmHiztzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62") - .name("hTGJS1L9KLOsA2Q2Z23Mwd98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD"); + .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"); 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 6608b4d..52eeed6 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( - "fbeb99af-7def-4c9c-b194-75595f563ea0" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateCustomerAccount( - "fbeb99af-7def-4c9c-b194-75595f563ea0" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ) .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( - "fbeb99af-7def-4c9c-b194-75595f563ea0" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ) - .externalId("yGaN9eZjSIQORsTn19Lt83IRf") + .externalId("hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qq") .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( - "fbeb99af-7def-4c9c-b194-75595f563ea0" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ) - .accountName("6apsZzwHUgb2qqrLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfddKJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCbHnT3R8fCd8115VzfSNwUPij0JCeK") - .externalId("ErwIngTct5VctC8ahSG576Yk267hNuqsd2") + .accountName("rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfd") + .externalId("KJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCb") .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( - "fbeb99af-7def-4c9c-b194-75595f563ea0" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ) - .status("suspended") - .accountName("Eu5ugI0fcKmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUjDTSSciw3PX7IImkvl5vCAHh7QD95u0YIcm0Sp") - .externalId("2RluFOAxJTKKlkJp5ENq52") + .status("pre-closed") + .accountName("nT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fc") + .externalId("KmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUj") .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java index adaf13e..3fa9335 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( - "8e3e20c4-d67d-407b-b8d1-14768d06dfb4" + "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateWebhook( - "8e3e20c4-d67d-407b-b8d1-14768d06dfb4" + "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" ) - .task("bulk_shops"); + .task("process_user_stats_operation"); 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 UpdateWebhook( - "8e3e20c4-d67d-407b-b8d1-14768d06dfb4" + "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" ) - .setActive(false) - .task("bulk_shops"); + .setActive(true) + .task("process_user_stats_operation"); 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 UpdateWebhook( - "8e3e20c4-d67d-407b-b8d1-14768d06dfb4" + "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" ) - .url("FCs7r9SIiP") - .setActive(true) - .task("bulk_shops"); + .url("QNFRYY") + .setActive(false) + .task("process_user_stats_operation"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/tdsl/CreateOrganizationTest.java b/src/test/java/jp/pokepay/partnerapi/tdsl/CreateOrganizationTest.java index 6d61e28..ddb6561 100644 --- a/src/test/java/jp/pokepay/partnerapi/tdsl/CreateOrganizationTest.java +++ b/src/test/java/jp/pokepay/partnerapi/tdsl/CreateOrganizationTest.java @@ -2,7 +2,6 @@ package jp.pokepay.partnerapi.tdsl; import jp.pokepay.partnerapi.PartnerAPITest; -import jp.pokepay.partnerapi.request.*; import jp.pokepay.partnerapi.response.*; import com.google.gson.JsonObject; import org.junit.jupiter.api.Test; @@ -19,7 +18,7 @@ void testCreateOrganization() throws Exception { }; String issuerAdminUserEmail = PartnerAPITest.randomString(6) + "@pokepay-tests.jp"; String memberAdminUserEmail = PartnerAPITest.randomString(6) + "@pokepay-tests.jp"; - Organization response = (Organization)PartnerAPITest.getClient().send(new CreateOrganization( + Organization response = (Organization)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateOrganization( code, name, privateMoneyIds, @@ -46,7 +45,7 @@ void testCreateOrganizationWithMetadata() throws Exception { String bankAccount = "1234567"; String bankAccountHolderName = "フクザワユキチ"; String contactName = "佐藤清"; - Organization response = (Organization)PartnerAPITest.getClient().send(new CreateOrganization( + Organization response = (Organization)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateOrganization( code, name, privateMoneyIds, diff --git a/src/test/java/jp/pokepay/partnerapi/tdsl/ListOrganizations.java b/src/test/java/jp/pokepay/partnerapi/tdsl/ListOrganizations.java index 15842a1..746d54b 100644 --- a/src/test/java/jp/pokepay/partnerapi/tdsl/ListOrganizations.java +++ b/src/test/java/jp/pokepay/partnerapi/tdsl/ListOrganizations.java @@ -2,7 +2,6 @@ package jp.pokepay.partnerapi.tdsl; import jp.pokepay.partnerapi.PartnerAPITest; -import jp.pokepay.partnerapi.request.*; import jp.pokepay.partnerapi.response.*; import com.google.gson.JsonObject; import org.junit.jupiter.api.Test; @@ -12,14 +11,14 @@ public class ListOrganizations { @Test void simple() throws Exception { - PaginatedOrganizations response = (PaginatedOrganizations)PartnerAPITest.getClient().send(new ListOrganizations( + PaginatedOrganizations response = (PaginatedOrganizations)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.ListOrganizations( "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" )); System.out.println(response); } @Test void paging() throws Exception { - PaginatedOrganizations response = (PaginatedOrganizations)PartnerAPITest.getClient().send(new ListOrganizations( + PaginatedOrganizations response = (PaginatedOrganizations)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.ListOrganizations( "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" ) .perPage(3)); diff --git a/src/test/java/jp/pokepay/partnerapi/tdsl/SendEchoTest.java b/src/test/java/jp/pokepay/partnerapi/tdsl/SendEchoTest.java index d21f505..54b283e 100644 --- a/src/test/java/jp/pokepay/partnerapi/tdsl/SendEchoTest.java +++ b/src/test/java/jp/pokepay/partnerapi/tdsl/SendEchoTest.java @@ -2,7 +2,6 @@ package jp.pokepay.partnerapi.tdsl; import jp.pokepay.partnerapi.PartnerAPITest; -import jp.pokepay.partnerapi.request.*; import jp.pokepay.partnerapi.response.*; import com.google.gson.JsonObject; import org.junit.jupiter.api.Test; @@ -12,7 +11,7 @@ public class SendEchoTest { @Test void simpleTest() throws Exception { - Echo response = (Echo)PartnerAPITest.getClient().send(new SendEcho( + Echo response = (Echo)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.SendEcho( "Hello" )); assertEquals("ok", response.getStatus()); diff --git a/src/test/java/jp/pokepay/partnerapi/tdsl/WebhookTests.java b/src/test/java/jp/pokepay/partnerapi/tdsl/WebhookTests.java index 6743d06..151d588 100644 --- a/src/test/java/jp/pokepay/partnerapi/tdsl/WebhookTests.java +++ b/src/test/java/jp/pokepay/partnerapi/tdsl/WebhookTests.java @@ -2,7 +2,6 @@ package jp.pokepay.partnerapi.tdsl; import jp.pokepay.partnerapi.PartnerAPITest; -import jp.pokepay.partnerapi.request.*; import jp.pokepay.partnerapi.response.*; import com.google.gson.JsonObject; import org.junit.jupiter.api.Test; @@ -12,13 +11,13 @@ public class WebhookTests { @Test void test0() throws Exception { - PaginatedOrganizationWorkerTaskWebhook list = (PaginatedOrganizationWorkerTaskWebhook)PartnerAPITest.getClient().send(new ListWebhooks()); + PaginatedOrganizationWorkerTaskWebhook list = (PaginatedOrganizationWorkerTaskWebhook)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.ListWebhooks()); for (OrganizationWorkerTaskWebhook row: list.getRows()) { - PartnerAPITest.getClient().send(new DeleteWebhook( + PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.DeleteWebhook( row.getId() )); } - OrganizationWorkerTaskWebhook webhook1 = (OrganizationWorkerTaskWebhook)PartnerAPITest.getClient().send(new CreateWebhook( + OrganizationWorkerTaskWebhook webhook1 = (OrganizationWorkerTaskWebhook)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateWebhook( "bulk_shops", "http://localhost/bulk_shops" )); @@ -27,7 +26,7 @@ void test0() throws Exception { assertEquals("http://localhost/bulk_shops", webhook1.getUrl()); assertEquals(true, webhook1.isActive()); assertEquals("application/json", webhook1.getContentType()); - OrganizationWorkerTaskWebhook webhook2 = (OrganizationWorkerTaskWebhook)PartnerAPITest.getClient().send(new CreateWebhook( + OrganizationWorkerTaskWebhook webhook2 = (OrganizationWorkerTaskWebhook)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateWebhook( "process_user_stats_operation", "http://localhost/process_user_stats_operation" )); @@ -36,11 +35,11 @@ void test0() throws Exception { assertEquals("http://localhost/process_user_stats_operation", webhook2.getUrl()); assertEquals(true, webhook2.isActive()); assertEquals("application/json", webhook2.getContentType()); - PaginatedOrganizationWorkerTaskWebhook list2 = (PaginatedOrganizationWorkerTaskWebhook)PartnerAPITest.getClient().send(new ListWebhooks()); + PaginatedOrganizationWorkerTaskWebhook list2 = (PaginatedOrganizationWorkerTaskWebhook)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.ListWebhooks()); assertEquals(2, list2.getCount()); assertEquals(webhook2.getId(), list2.getRows()[0].getId()); assertEquals(webhook1.getId(), list2.getRows()[1].getId()); - OrganizationWorkerTaskWebhook updateResponse = (OrganizationWorkerTaskWebhook)PartnerAPITest.getClient().send(new UpdateWebhook( + OrganizationWorkerTaskWebhook updateResponse = (OrganizationWorkerTaskWebhook)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.UpdateWebhook( webhook1.getId() ) .setActive(false));