diff --git a/build.gradle b/build.gradle index 872021f..7af24ef 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'partner-java-sdk' -version '0.2.7' +version '0.2.8' sourceCompatibility = 1.8 diff --git a/docs/README.md b/docs/README.md index 7896453..98b6686 100644 --- a/docs/README.md +++ b/docs/README.md @@ -78,6 +78,7 @@ APIサーバがエラーレスポンスを返した場合に使われます。 - [ListTransactions](./transaction.md#list-transactions): 【廃止】取引履歴を取得する - [CreateTransaction](./transaction.md#create-transaction): 【廃止】チャージする - [ListTransactionsV2](./transaction.md#list-transactions-v2): 取引履歴を取得する +- [ListBillTransactions](./transaction.md#list-bill-transactions): 支払い取引履歴を取得する - [CreateTopupTransaction](./transaction.md#create-topup-transaction): チャージする - [CreatePaymentTransaction](./transaction.md#create-payment-transaction): 支払いする - [CreateCpmTransaction](./transaction.md#create-cpm-transaction): CPMトークンによる取引作成 @@ -89,6 +90,7 @@ APIサーバがエラーレスポンスを返した場合に使われます。 - [GetBulkTransaction](./transaction.md#get-bulk-transaction): バルク取引ジョブの実行状況を取得する - [ListBulkTransactionJobs](./transaction.md#list-bulk-transaction-jobs): バルク取引ジョブの詳細情報一覧を取得する - [RequestUserStats](./transaction.md#request-user-stats): 指定期間内の顧客が行った取引の統計情報をCSVでダウンロードする +- [TerminateUserStats](./transaction.md#terminate-user-stats): RequestUserStatsのタスクを強制終了する ### Transfer - [GetAccountTransferSummary](./transfer.md#get-account-transfer-summary): @@ -180,6 +182,7 @@ APIサーバがエラーレスポンスを返した場合に使われます。 - [ActivateUserDevice](./user_device.md#activate-user-device): デバイスの有効化 ### BankPay +- [DeleteBank](./bank_pay.md#delete-bank): 銀行口座の削除 - [ListBanks](./bank_pay.md#list-banks): 登録した銀行の一覧 - [CreateBank](./bank_pay.md#create-bank): 銀行口座の登録 - [CreateBankTopupTransaction](./bank_pay.md#create-bank-topup-transaction): 銀行からのチャージ diff --git a/docs/account.md b/docs/account.md index 44b41d1..4cdef80 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(1170) // ページ番号 - .perPage(3512); // 1ページ分の取引数 + .page(2119) // ページ番号 + .perPage(9474); // 1ページ分の取引数 ``` @@ -74,8 +74,8 @@ Request request = new CreateUserAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userId: ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .name("qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9") // ウォレット名 - .externalId("iCp3raZonaiDazAfoV") // 外部ID + .name("g2EP1IMpzVlOR0ZjHbJ4pIYeH1mIjK91BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2IgQjODYIDOJbPEulQIvNSkQALktsxpQNr6y6a28m0nRuldHpSuEUpdPie9qQ2GFfC0at9jn8D") // ウォレット名 + .externalId("wInc5YWbNc2E2NkkI") // 外部ID .metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); // ウォレットに付加するメタデータ ``` diff --git a/docs/bank_pay.md b/docs/bank_pay.md index 2d27c7f..7fd89e6 100644 --- a/docs/bank_pay.md +++ b/docs/bank_pay.md @@ -2,6 +2,54 @@ BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + +## DeleteBank: 銀行口座の削除 +銀行口座を削除します + +```JAVA +Request request = new DeleteBank( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); + +``` + + + +### Parameters +**`userDeviceId`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`bankId`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[BankDeleted](./responses.md#bank-deleted) +を返します + + + +--- + + ## ListBanks: 登録した銀行の一覧 登録した銀行を一覧します @@ -65,7 +113,7 @@ Request request = new CreateBank( "", // callbackUrl: コールバックURL "ポケペイタロウ" // kana: ユーザーの氏名 (片仮名で指定) ) - .email("wpVUwFU1am@kd1F.com") // ユーザーのメールアドレス + .email("DHI0zWcr0s@Mpkd.com") // ユーザーのメールアドレス .birthdate("19901142"); // 生年月日 ``` @@ -159,7 +207,7 @@ Request request = new CreateBank( Request request = new CreateBankTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 8003, // amount: チャージ金額 + 4365, // amount: チャージ金額 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // bankId: 銀行ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // requestId: リクエストID ) diff --git a/docs/bill.md b/docs/bill.md index 3aaf5d9..6d7f3f8 100644 --- a/docs/bill.md +++ b/docs/bill.md @@ -7,19 +7,19 @@ ```JAVA Request request = new ListBills() - .page(2897) // ページ番号 - .perPage(1066) // 1ページの表示数 - .billId("r") // 支払いQRコードのID + .page(4136) // ページ番号 + .perPage(2402) // 1ページの表示数 + .billId("bkgSmtEHA") // 支払いQRコードのID .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID - .organizationCode("b--BUl96") // 組織コード + .organizationCode("85C4-F--0NJ--4p9UJ6O3-q") // 組織コード .description("test bill") // 取引説明文 - .createdFrom("2020-02-16T12:28:09.000000Z") // 作成日時(起点) - .createdTo("2022-11-02T03:28:47.000000Z") // 作成日時(終点) + .createdFrom("2021-12-20T22:14:46.000000Z") // 作成日時(起点) + .createdTo("2022-03-14T08:36:55.000000Z") // 作成日時(終点) .shopName("bill test shop1") // 店舗名 .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID - .lowerLimitAmount(8267) // 金額の範囲によるフィルタ(下限) - .upperLimitAmount(7846) // 金額の範囲によるフィルタ(上限) - .setDisabled(true); // 支払いQRコードが無効化されているかどうか + .lowerLimitAmount(2052) // 金額の範囲によるフィルタ(下限) + .upperLimitAmount(3834) // 金額の範囲によるフィルタ(上限) + .setDisabled(false); // 支払いQRコードが無効化されているかどうか ``` @@ -212,7 +212,7 @@ Request request = new CreateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: 支払いマネーのマネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // shopId: 支払い先(受け取り人)の店舗ID ) - .amount(7728.0) // 支払い額 + .amount(115.0) // 支払い額 .description("test bill"); // 説明文(アプリ上で取引の説明文として表示される) ``` @@ -296,7 +296,7 @@ Request request = new CreateBill( Request request = new UpdateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // billId: 支払いQRコードのID ) - .amount(4321.0) // 支払い額 + .amount(4541.0) // 支払い額 .description("test bill") // 説明文 .setDisabled(false); // 無効化されているかどうか diff --git a/docs/bulk.md b/docs/bulk.md index 2659b64..a7b4a19 100644 --- a/docs/bulk.md +++ b/docs/bulk.md @@ -6,11 +6,11 @@ CSVファイルから一括取引をします。 ```JAVA Request request = new BulkCreateTransaction( - "oMxEFE11voG9m7g", // name: 一括取引タスク名 - "WI", // content: 取引する情報のCSV - "lidcsFhnnSlOPQSKVW980GqQVfPuvUPiEFV6" // requestId: リクエストID + "5byBGxSlhAbqrppUqGdxMolEMce2", // name: 一括取引タスク名 + "Wkzh6xh3kO", // content: 取引する情報のCSV + "5wXHuEli1NcEVyTrbdyJqmh3WRfGT9d54NzU" // requestId: リクエストID ) - .description("DyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1Cipp2C") // 一括取引の説明 + .description("ibZax1gbEqwtEhHNUjZJEl7H6aHeFVmJSAKrLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5BuCe0yTSEIanUYTV2eUYL") // 一括取引の説明 .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // マネーID ``` diff --git a/docs/campaign.md b/docs/campaign.md index 5e88243..804cdce 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(false) // 現在適用可能なキャンペーンかどうか - .availableFrom("2023-04-20T21:23:50.000000Z") // 指定された日時以降に適用可能期間が含まれているか - .availableTo("2020-11-27T03:39:30.000000Z") // 指定された日時以前に適用可能期間が含まれているか + .setOngoing(true) // 現在適用可能なキャンペーンかどうか + .availableFrom("2020-07-13T10:47:57.000000Z") // 指定された日時以降に適用可能期間が含まれているか + .availableTo("2021-12-20T01:02:32.000000Z") // 指定された日時以前に適用可能期間が含まれているか .page(1) // ページ番号 .perPage(20); // 1ページ分の取得数 @@ -130,25 +130,21 @@ items.addProperty("subject_less_than", 5000); JsonObject items2 = new JsonObject(); items2.addProperty("point_amount", 5); items2.addProperty("point_amount_unit", "percent"); -items2.addProperty("subject_more_than_or_equal", 1000); -items2.addProperty("subject_less_than", 5000); +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("subject_more_than_or_equal", 1000); -items3.addProperty("subject_less_than", 5000); +items3.addProperty("product_code", "4912345678904"); +items3.addProperty("is_multiply_by_count", true); +items3.addProperty("required_count", 2); JsonObject items4 = new JsonObject(); -items4.addProperty("point_amount", 5); -items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); -items4.addProperty("is_multiply_by_count", true); -items4.addProperty("required_count", 2); +items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); -items5.addProperty("point_amount", 5); -items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); -items5.addProperty("is_multiply_by_count", true); -items5.addProperty("required_count", 2); +items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); items6.addProperty("product_code", "4912345678904"); items6.addProperty("classification_code", "c123"); @@ -165,37 +161,37 @@ JsonObject applicable_transaction_metadata = new JsonObject(); applicable_transaction_metadata.addProperty("key", "rank"); applicable_transaction_metadata.addProperty("value", "bronze"); Request request = new CreateCampaign( - "bdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w3aEMSDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClPPAh3ydu7juMa", // name: キャンペーン名 + "hqw2R1myjYzFL4j0HTXKtxMi6tvMf7GbuKVOo81owGN6i0XTT33lqYdKQ0h3ghVZk7eOE9tcwx8MOKl5MRsa1MFEYPOVzvPSXDUkbgX2oBshUtXGZ9lfp9TwgYPOmismihXWyqdhqoMR6oAdT5yPsPRTmUYdZdYDDGZDuZn0XgqQIqTu14tSh13qLZDYdRTWbMgZiB4q5yXIKvcyey", // name: キャンペーン名 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - "2020-05-27T16:30:33.000000Z", // startsAt: キャンペーン開始日時 - "2022-03-29T07:15:33.000000Z", // endsAt: キャンペーン終了日時 - 4491, // priority: キャンペーンの適用優先度 - "external-transaction" // event: イベント種別 + "2024-01-17T02:07:48.000000Z", // startsAt: キャンペーン開始日時 + "2021-08-29T14:34:13.000000Z", // endsAt: キャンペーン終了日時 + 7348, // priority: キャンペーンの適用優先度 + "payment" // event: イベント種別 ) .bearPointShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント負担先店舗ID - .description("7kqGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOfsuO") // キャンペーンの説明文 + .description("e7CQ6mogsi4OQ6jQwMdVQzET3CTZR3naadmHoO937wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5QfKEnNvZa51B6RuNHWw3kkEIImb7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6FlBm7k1iTzlm9ILQGKVJoUCSY3") // キャンペーンの説明文 .status("disabled") // キャンペーン作成時の状態 - .pointExpiresAt("2023-06-21T16:01:16.000000Z") // ポイント有効期限(絶対日時指定) - .pointExpiresInDays(5365) // ポイント有効期限(相対日数指定) + .pointExpiresAt("2023-01-24T21:38:51.000000Z") // ポイント有効期限(絶対日時指定) + .pointExpiresInDays(3725) // ポイント有効期限(相対日数指定) .setExclusive(false) // キャンペーンの重複設定 .subject("all") // ポイント付与の対象金額の種別 - .amountBasedPointRules(new Object[]{items,items2,items3}) // 取引金額ベースのポイント付与ルール - .productBasedPointRules(new Object[]{items4,items5}) // 商品情報ベースのポイント付与ルール - .blacklistedProductRules(new Object[]{items6}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト - .applicableDaysOfWeek(new Integer[]{0,0,5}) // キャンペーンを適用する曜日 (複数指定) + .amountBasedPointRules(new Object[]{items}) // 取引金額ベースのポイント付与ルール + .productBasedPointRules(new Object[]{items2,items3}) // 商品情報ベースのポイント付与ルール + .blacklistedProductRules(new Object[]{items4,items5,items6}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト + .applicableDaysOfWeek(new Integer[]{1,6,6}) // キャンペーンを適用する曜日 (複数指定) .applicableTimeRanges(new Object[]{items7,items8}) // キャンペーンを適用する時間帯 (複数指定) .applicableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象となる店舗IDのリスト - .blacklistedShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) - .minimumNumberOfProducts(3310) // キャンペーンを適用する1会計内の商品個数の下限 - .minimumNumberOfAmount(9962) // キャンペーンを適用する1会計内の商品総額の下限 - .minimumNumberForCombinationPurchase(1410) // 複数種類の商品を同時購入するときの商品種別数の下限 + .blacklistedShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + .minimumNumberOfProducts(8006) // キャンペーンを適用する1会計内の商品個数の下限 + .minimumNumberOfAmount(5193) // キャンペーンを適用する1会計内の商品総額の下限 + .minimumNumberForCombinationPurchase(1993) // 複数種類の商品を同時購入するときの商品種別数の下限 .existInEachProductGroups(false) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - .maxPointAmount(4219) // キャンペーンによって付与されるポイントの上限 - .maxTotalPointAmount(3453) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + .maxPointAmount(1301) // キャンペーンによって付与されるポイントの上限 + .maxTotalPointAmount(5987) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 .destPrivateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント付与先となるマネーID .applicableAccountMetadata(applicable_account_metadata) // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 .applicableTransactionMetadata(applicable_transaction_metadata) // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - .budgetCapsAmount(1859163538); // キャンペーン予算上限 + .budgetCapsAmount(1011748593); // キャンペーン予算上限 ``` @@ -1001,23 +997,17 @@ items3.addProperty("product_code", "4912345678904"); items3.addProperty("is_multiply_by_count", true); items3.addProperty("required_count", 2); JsonObject items4 = new JsonObject(); -items4.addProperty("point_amount", 5); -items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); -items4.addProperty("is_multiply_by_count", true); -items4.addProperty("required_count", 2); +items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); items5.addProperty("product_code", "4912345678904"); items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); -items6.addProperty("from", "12:00"); -items6.addProperty("to", "23:59"); +items6.addProperty("product_code", "4912345678904"); +items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); items7.addProperty("from", "12:00"); items7.addProperty("to", "23:59"); -JsonObject items8 = new JsonObject(); -items8.addProperty("from", "12:00"); -items8.addProperty("to", "23:59"); JsonObject applicable_account_metadata = new JsonObject(); applicable_account_metadata.addProperty("key", "sex"); applicable_account_metadata.addProperty("value", "male"); @@ -1027,33 +1017,33 @@ applicable_transaction_metadata.addProperty("value", "bronze"); Request request = new UpdateCampaign( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // campaignId: キャンペーンID ) - .name("tzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2") // キャンペーン名 - .startsAt("2022-07-19T10:00:07.000000Z") // キャンペーン開始日時 - .endsAt("2024-05-22T15:43:46.000000Z") // キャンペーン終了日時 - .priority(7347) // キャンペーンの適用優先度 - .event("payment") // イベント種別 - .description("98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcINC0MaOVTzOYUS4YiFzadS1dG4VhCAXdvL") // キャンペーンの説明文 + .name("xYByLz0xsJRhRVsB9HjzBAZfWzO75yHWR5FLMa9CO3GmqQepv7doxpRjgZI2VSDvLJkkZMMdEANfWVavAje3PJg4zkA5dwRQrAEDCEBzCTk0pNAGkxkj3y6QjLE9oTv9S3Zg4O5dK9OBTn3gY0HIwJr5Xn6R9PIw5eC52tvIBnMyMg4CnT2dj7ORUTt4jEgn4792da7QYy7V60") // キャンペーン名 + .startsAt("2021-04-10T18:25:57.000000Z") // キャンペーン開始日時 + .endsAt("2020-10-17T15:34:04.000000Z") // キャンペーン終了日時 + .priority(2827) // キャンペーンの適用優先度 + .event("topup") // イベント種別 + .description("zcBixerwgOsZo2yFQXiifPwyEPkMTjwK5UmBam") // キャンペーンの説明文 .status("disabled") // キャンペーン作成時の状態 - .pointExpiresAt("2023-11-21T12:04:13.000000Z") // ポイント有効期限(絶対日時指定) - .pointExpiresInDays(740) // ポイント有効期限(相対日数指定) - .setExclusive(true) // キャンペーンの重複設定 + .pointExpiresAt("2022-02-25T21:43:24.000000Z") // ポイント有効期限(絶対日時指定) + .pointExpiresInDays(466) // ポイント有効期限(相対日数指定) + .setExclusive(false) // キャンペーンの重複設定 .subject("all") // ポイント付与の対象金額の種別 .amountBasedPointRules(new Object[]{items}) // 取引金額ベースのポイント付与ルール - .productBasedPointRules(new Object[]{items2,items3,items4}) // 商品情報ベースのポイント付与ルール - .blacklistedProductRules(new Object[]{items5}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト - .applicableDaysOfWeek(new Integer[]{1,5}) // キャンペーンを適用する曜日 (複数指定) - .applicableTimeRanges(new Object[]{items6,items7,items8}) // キャンペーンを適用する時間帯 (複数指定) + .productBasedPointRules(new Object[]{items2,items3}) // 商品情報ベースのポイント付与ルール + .blacklistedProductRules(new Object[]{items4,items5,items6}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト + .applicableDaysOfWeek(new Integer[]{5,3,3}) // キャンペーンを適用する曜日 (複数指定) + .applicableTimeRanges(new Object[]{items7}) // キャンペーンを適用する時間帯 (複数指定) .applicableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象となる店舗IDのリスト .blacklistedShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) - .minimumNumberOfProducts(7318) // キャンペーンを適用する1会計内の商品個数の下限 - .minimumNumberOfAmount(9052) // キャンペーンを適用する1会計内の商品総額の下限 - .minimumNumberForCombinationPurchase(6125) // 複数種類の商品を同時購入するときの商品種別数の下限 - .existInEachProductGroups(false) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - .maxPointAmount(5449) // キャンペーンによって付与されるポイントの上限 - .maxTotalPointAmount(1307) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + .minimumNumberOfProducts(2327) // キャンペーンを適用する1会計内の商品個数の下限 + .minimumNumberOfAmount(6678) // キャンペーンを適用する1会計内の商品総額の下限 + .minimumNumberForCombinationPurchase(8124) // 複数種類の商品を同時購入するときの商品種別数の下限 + .existInEachProductGroups(true) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + .maxPointAmount(7734) // キャンペーンによって付与されるポイントの上限 + .maxTotalPointAmount(1814) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 .applicableAccountMetadata(applicable_account_metadata) // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 .applicableTransactionMetadata(applicable_transaction_metadata) // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - .budgetCapsAmount(456514657); // キャンペーン予算上限 + .budgetCapsAmount(73706377); // キャンペーン予算上限 ``` diff --git a/docs/cashtray.md b/docs/cashtray.md index ed49087..7c52170 100644 --- a/docs/cashtray.md +++ b/docs/cashtray.md @@ -105,7 +105,6 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|account_not_found|アカウントが見つかりません|The account is not found| |422|cashtray_not_found|決済QRコードが見つかりません|Cashtray is not found| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|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| @@ -136,6 +135,8 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|cashtray_already_proceed|この決済QRコードは既に処理されています|Cashtray is already proceed| |422|cashtray_expired|この決済QRコードは有効期限が切れています|Cashtray is expired| |422|cashtray_already_canceled|この決済QRコードは既に無効化されています|Cashtray is already canceled| @@ -160,10 +161,10 @@ Cashtrayを作成します。 Request request = new CreateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ユーザーID - 4669.0 // amount: 金額 + 2508.0 // amount: 金額 ) .description("たい焼き(小倉)") // 取引履歴に表示する説明文 - .expiresIn(7102); // 失効時間(秒) + .expiresIn(589); // 失効時間(秒) ``` @@ -391,9 +392,9 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可 Request request = new UpdateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // cashtrayId: CashtrayのID ) - .amount(2045.0) // 金額 + .amount(361.0) // 金額 .description("たい焼き(小倉)") // 取引履歴に表示する説明文 - .expiresIn(624); // 失効時間(秒) + .expiresIn(1734); // 失効時間(秒) ``` diff --git a/docs/check.md b/docs/check.md index b643ab3..7335d2f 100644 --- a/docs/check.md +++ b/docs/check.md @@ -13,18 +13,18 @@ QRコードを読み取る方法以外にも、このURLリンクを直接スマ ```JAVA Request request = new ListChecks() - .page(3549) // ページ番号 + .page(9694) // ページ番号 .perPage(50) // 1ページの表示数 .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID - .organizationCode("SiZH6DDfNqfsVRi3zxzsVzVJLxp") // 組織コード - .expiresFrom("2022-01-21T10:21:24.000000Z") // 有効期限の期間によるフィルター(開始時点) - .expiresTo("2023-02-28T05:03:02.000000Z") // 有効期限の期間によるフィルター(終了時点) - .createdFrom("2024-04-13T07:05:15.000000Z") // 作成日時の期間によるフィルター(開始時点) - .createdTo("2022-09-18T15:22:33.000000Z") // 作成日時の期間によるフィルター(終了時点) + .organizationCode("wXVRIVCn") // 組織コード + .expiresFrom("2022-12-10T11:11:40.000000Z") // 有効期限の期間によるフィルター(開始時点) + .expiresTo("2022-02-25T04:09:59.000000Z") // 有効期限の期間によるフィルター(終了時点) + .createdFrom("2021-07-24T04:04:42.000000Z") // 作成日時の期間によるフィルター(開始時点) + .createdTo("2021-03-11T22:32:10.000000Z") // 作成日時の期間によるフィルター(終了時点) .issuerShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 発行店舗ID - .description("CjOUSN") // チャージQRコードの説明文 + .description("6NtOwX2F") // チャージQRコードの説明文 .setOnetime(false) // ワンタイムのチャージQRコードかどうか - .setDisabled(false); // 無効化されたチャージQRコードかどうか + .setDisabled(true); // 無効化されたチャージQRコードかどうか ``` @@ -220,13 +220,13 @@ Request request = new ListChecks() Request request = new CreateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: 送金元の店舗アカウントID ) - .moneyAmount(5709.0) // 付与マネー額 - .pointAmount(9032.0) // 付与ポイント額 + .moneyAmount(5553.0) // 付与マネー額 + .pointAmount(4659.0) // 付与ポイント額 .description("test check") // 説明文(アプリ上で取引の説明文として表示される) - .setOnetime(true) // ワンタイムかどうかのフラグ - .usageLimit(569) // ワンタイムでない場合の最大読み取り回数 - .expiresAt("2022-11-10T08:44:22.000000Z") // チャージQRコード自体の失効日時 - .pointExpiresAt("2023-02-21T16:04:27.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 + .setOnetime(false) // ワンタイムかどうかのフラグ + .usageLimit(7606) // ワンタイムでない場合の最大読み取り回数 + .expiresAt("2020-11-04T20:04:09.000000Z") // チャージQRコード自体の失効日時 + .pointExpiresAt("2023-12-10T00:20:12.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 .pointExpiresInDays(60) // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) .bearPointAccount("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ポイント額を負担する店舗のウォレットID @@ -448,16 +448,16 @@ Request request = new GetCheck( Request request = new UpdateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // checkId: チャージQRコードのID ) - .moneyAmount(1623.0) // 付与マネー額 - .pointAmount(2280.0) // 付与ポイント額 + .moneyAmount(3681.0) // 付与マネー額 + .pointAmount(5120.0) // 付与ポイント額 .description("test check") // チャージQRコードの説明文 - .setOnetime(true) // ワンタイムかどうかのフラグ - .usageLimit(3244) // ワンタイムでない場合の最大読み取り回数 - .expiresAt("2024-08-13T14:04:59.000000Z") // チャージQRコード自体の失効日時 - .pointExpiresAt("2021-08-26T07:57:47.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 + .setOnetime(false) // ワンタイムかどうかのフラグ + .usageLimit(3972) // ワンタイムでない場合の最大読み取り回数 + .expiresAt("2024-04-15T09:27:37.000000Z") // チャージQRコード自体の失効日時 + .pointExpiresAt("2020-02-06T03:22:39.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限 .pointExpiresInDays(60) // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) .bearPointAccount("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント額を負担する店舗のウォレットID - .setDisabled(false); // 無効化されているかどうかのフラグ + .setDisabled(true); // 無効化されているかどうかのフラグ ``` @@ -707,7 +707,6 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|customer_user_not_found||The customer user is not found| |422|check_not_found|これはチャージQRコードではありません|This is not a topup QR code| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|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| @@ -738,6 +737,8 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|check_already_received|このチャージQRコードは既に受取済みの為、チャージ出来ませんでした|Check is already received| |422|check_unavailable|このチャージQRコードは利用できません|The topup QR code is not available| |503|temporarily_unavailable||Service Unavailable| diff --git a/docs/coupon.md b/docs/coupon.md index 6ff76c6..ca19d25 100644 --- a/docs/coupon.md +++ b/docs/coupon.md @@ -11,12 +11,12 @@ Couponは特定店舗で利用できるものや利用可能期間、配信条 Request request = new ListCoupons( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: 対象クーポンのマネーID ) - .couponId("UgNjF9") // クーポンID - .couponName("pGXPoR6") // クーポン名 - .issuedShopName("V6EH9oG2E") // 発行店舗名 - .availableShopName("mJwg74tJd") // 利用可能店舗名 - .availableFrom("2021-09-17T06:11:05.000000Z") // 利用可能期間 (開始日時) - .availableTo("2022-06-22T11:15:22.000000Z") // 利用可能期間 (終了日時) + .couponId("QYAC") // クーポンID + .couponName("WhdJgT5") // クーポン名 + .issuedShopName("X") // 発行店舗名 + .availableShopName("Axp1c5Q2vG") // 利用可能店舗名 + .availableFrom("2022-07-11T11:23:26.000000Z") // 利用可能期間 (開始日時) + .availableTo("2020-07-30T15:06:58.000000Z") // 利用可能期間 (終了日時) .page(1) // ページ番号 .perPage(50); // 1ページ分の取得数 @@ -163,25 +163,25 @@ Request request = new ListCoupons( ```JAVA Request request = new CreateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "5Llab29gfUQ6hTQL3", - "2020-12-30T15:57:59.000000Z", - "2021-01-11T11:18:00.000000Z", + "By91KC2xkwbMvROWfUAhh6XnZz0yJYgRGAM6oTzljbZYS9b6qmrSFaDi", + "2023-11-24T10:12:38.000000Z", + "2020-04-16T14:37:06.000000Z", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // issuedShopId: 発行元の店舗ID ) - .description("ITMLHDmfb2965KcWooPsLAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aR") - .discountAmount(5623) - .discountPercentage(6960.0) - .discountUpperLimit(9272) - .displayStartsAt("2021-04-27T12:56:01.000000Z") // クーポンの掲載期間(開始日時) - .displayEndsAt("2020-11-05T14:23:13.000000Z") // クーポンの掲載期間(終了日時) - .setDisabled(true) // 無効化フラグ - .setHidden(true) // クーポン一覧に掲載されるかどうか + .description("Vxdn1z0TuA7dLQ8GnuuGnm3um") + .discountAmount(547) + .discountPercentage(4144.0) + .discountUpperLimit(5579) + .displayStartsAt("2021-06-09T23:59:21.000000Z") // クーポンの掲載期間(開始日時) + .displayEndsAt("2021-09-11T04:09:16.000000Z") // クーポンの掲載期間(終了日時) + .setDisabled(false) // 無効化フラグ + .setHidden(false) // クーポン一覧に掲載されるかどうか .setPublic(true) // アプリ配信なしで受け取れるかどうか - .code("HosccmXh") // クーポン受け取りコード - .usageLimit(5575) // ユーザごとの利用可能回数(NULLの場合は無制限) - .minAmount(8497) // クーポン適用可能な最小取引額 + .code("YAPfacx") // クーポン受け取りコード + .usageLimit(2868) // ユーザごとの利用可能回数(NULLの場合は無制限) + .minAmount(3067) // クーポン適用可能な最小取引額 .setShopSpecified(false) // 特定店舗限定のクーポンかどうか - .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト + .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ストレージID ``` @@ -478,23 +478,23 @@ UUIDv4フォーマットである必要があり、フォーマットが異な Request request = new UpdateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // couponId: クーポンID ) - .name("E5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JE") - .description("ew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQa") - .discountAmount(3454) - .discountPercentage(7341.0) - .discountUpperLimit(5424) - .startsAt("2022-11-19T21:09:25.000000Z") - .endsAt("2020-10-04T17:07:18.000000Z") - .displayStartsAt("2022-03-16T02:48:40.000000Z") // クーポンの掲載期間(開始日時) - .displayEndsAt("2020-06-03T00:23:31.000000Z") // クーポンの掲載期間(終了日時) + .name("a4pxXiFCicQd3QQrdtpp5IlW8KnTaroT") + .description("8w3801ZxeZpTa0FFkkUFLVCDKp9TvCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7EhkzGk22yYle2ZOPXJOiEYcNwwBKhoxCdqw8SDS6L7O6ohLm8HBuYz7E9ZuYBAHz0vH45u4SHdXpfYeqMtcfd8wxcygIW1kAzyAHjkW0eFs") + .discountAmount(9248) + .discountPercentage(7965.0) + .discountUpperLimit(9043) + .startsAt("2024-01-05T07:56:45.000000Z") + .endsAt("2020-06-07T16:00:23.000000Z") + .displayStartsAt("2022-08-18T08:51:40.000000Z") // クーポンの掲載期間(開始日時) + .displayEndsAt("2021-08-02T13:23:09.000000Z") // クーポンの掲載期間(終了日時) .setDisabled(true) // 無効化フラグ - .setHidden(false) // クーポン一覧に掲載されるかどうか + .setHidden(true) // クーポン一覧に掲載されるかどうか .setPublic(true) // アプリ配信なしで受け取れるかどうか - .code("2aIO") // クーポン受け取りコード - .usageLimit(7115) // ユーザごとの利用可能回数(NULLの場合は無制限) - .minAmount(6094) // クーポン適用可能な最小取引額 - .setShopSpecified(false) // 特定店舗限定のクーポンかどうか - .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト + .code("NaBTyV6GB") // クーポン受け取りコード + .usageLimit(7067) // ユーザごとの利用可能回数(NULLの場合は無制限) + .minAmount(6484) // クーポン適用可能な最小取引額 + .setShopSpecified(true) // 特定店舗限定のクーポンかどうか + .availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ストレージID ``` diff --git a/docs/customer.md b/docs/customer.md index f599172..879c6a6 100644 --- a/docs/customer.md +++ b/docs/customer.md @@ -8,7 +8,7 @@ Request request = new DeleteAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .cashback(false); // 返金有無 + .cashback(true); // 返金有無 ``` @@ -105,8 +105,8 @@ Request request = new UpdateAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) .setSuspended(true) // ウォレットが凍結されているかどうか - .status("active") // ウォレット状態 - .canTransferTopup(false); // チャージ可能かどうか + .status("suspended") // ウォレット状態 + .canTransferTopup(true); // チャージ可能かどうか ``` @@ -184,10 +184,10 @@ Request request = new UpdateAccount( Request request = new ListAccountBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .page(7941) // ページ番号 - .perPage(3708) // 1ページ分の取引数 - .expiresAtFrom("2021-10-09T23:01:25.000000Z") // 有効期限の期間によるフィルター(開始時点) - .expiresAtTo("2023-02-28T03:03:13.000000Z") // 有効期限の期間によるフィルター(終了時点) + .page(2282) // ページ番号 + .perPage(4159) // 1ページ分の取引数 + .expiresAtFrom("2020-04-08T06:19:32.000000Z") // 有効期限の期間によるフィルター(開始時点) + .expiresAtTo("2021-03-10T03:14:47.000000Z") // 有効期限の期間によるフィルター(終了時点) .direction("desc"); // 有効期限によるソート順序 ``` @@ -291,10 +291,10 @@ Request request = new ListAccountBalances( Request request = new ListAccountExpiredBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .page(2601) // ページ番号 - .perPage(9562) // 1ページ分の取引数 - .expiresAtFrom("2021-09-14T00:24:39.000000Z") // 有効期限の期間によるフィルター(開始時点) - .expiresAtTo("2020-04-28T23:50:47.000000Z") // 有効期限の期間によるフィルター(終了時点) + .page(4105) // ページ番号 + .perPage(809) // 1ページ分の取引数 + .expiresAtFrom("2021-11-10T22:03:44.000000Z") // 有効期限の期間によるフィルター(開始時点) + .expiresAtTo("2022-09-21T09:03:05.000000Z") // 有効期限の期間によるフィルター(終了時点) .direction("asc"); // 有効期限によるソート順序 ``` @@ -399,8 +399,8 @@ Request request = new UpdateCustomerAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) .status("suspended") // ウォレット状態 - .accountName("MgU5LJ8nedbEkL6VCbZlYCZFu0YjXrv") // アカウント名 - .externalId("ck1kbCzvMElblaTUskxDWTi4syFdijXYZ6Fkp0v2rO") // 外部ID + .accountName("7odiOHhS8DsZfAQRFK6oTTeP8tTTuInowX2TMHi2vDKbmu86aUF4jypKaAY4yQaiw0JpUpNfjrUKaUCU4cuncfOgZgC0vnz9vdHX3zI21M9POKUqkrXtAeLmERqX5bwDROtzb2hizqeaCyQXA4kt1s5IzgftNOCeiOWbpouk4VaYSYsKX6oU3L") // アカウント名 + .externalId("6cfTNsJ74FdhPrGorQztiuURWZ5r1OnryKkdpmMzmoITg") // 外部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(1321) // ページ番号 - .perPage(4359) // 1ページ分のウォレット数 - .createdAtFrom("2023-03-20T21:15:42.000000Z") // ウォレット作成日によるフィルター(開始時点) - .createdAtTo("2024-02-12T10:09:46.000000Z") // ウォレット作成日によるフィルター(終了時点) + .page(3050) // ページ番号 + .perPage(5361) // 1ページ分のウォレット数 + .createdAtFrom("2021-10-07T16:59:22.000000Z") // ウォレット作成日によるフィルター(開始時点) + .createdAtTo("2024-07-27T01:31:15.000000Z") // ウォレット作成日によるフィルター(終了時点) .setSuspended(true) // ウォレットが凍結状態かどうかでフィルターする - .status("suspended") // ウォレット状態 - .externalId("KP7CaX5R9O7hnOQMfDj4u8or1Z5a") // 外部ID - .tel("0629-6637554") // エンドユーザーの電話番号 - .email("vasIan6Df8@qsq2.com"); // エンドユーザーのメールアドレス + .status("active") // ウォレット状態 + .externalId("SjEKEvn9tkKJsfEeEirDJBvMOLUpWvpkfaBwAHAu") // 外部ID + .tel("070109-710") // エンドユーザーの電話番号 + .email("TBcNwqaqeR@CH16.com"); // エンドユーザーのメールアドレス ``` @@ -678,7 +678,7 @@ Request request = new CreateCustomerAccount( ) .userName("ポケペイ太郎") // ユーザー名 .accountName("ポケペイ太郎のアカウント") // アカウント名 - .externalId("k3ETquM3SQujWFDE153B47G8gAIFr9"); // 外部ID + .externalId("6zzUqrHdosHdbmLywqukvEUDGTtuu5mLHh"); // 外部ID ``` @@ -766,10 +766,10 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで Request request = new GetShopAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) - .page(7547) // ページ番号 - .perPage(6106) // 1ページ分のウォレット数 - .createdAtFrom("2024-07-31T12:27:29.000000Z") // ウォレット作成日によるフィルター(開始時点) - .createdAtTo("2020-01-10T02:36:55.000000Z") // ウォレット作成日によるフィルター(終了時点) + .page(2978) // ページ番号 + .perPage(1984) // 1ページ分のウォレット数 + .createdAtFrom("2024-04-02T11:15:19.000000Z") // ウォレット作成日によるフィルター(開始時点) + .createdAtTo("2024-08-27T12:56:31.000000Z") // ウォレット作成日によるフィルター(終了時点) .setSuspended(true); // ウォレットが凍結状態かどうかでフィルターする ``` @@ -879,8 +879,8 @@ Request request = new ListCustomerTransactions( .receiverCustomerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 受取エンドユーザーID .type("payment") // 取引種別 .setModified(true) // キャンセル済みかどうか - .from("2023-04-21T10:46:48.000000Z") // 開始日時 - .to("2023-09-25T10:08:26.000000Z") // 終了日時 + .from("2024-07-16T11:03:21.000000Z") // 開始日時 + .to("2022-05-27T18:34:20.000000Z") // 終了日時 .page(1) // ページ番号 .perPage(50); // 1ページ分の取引数 diff --git a/docs/error-response.csv b/docs/error-response.csv index 9fc6068..8e8e27e 100644 --- a/docs/error-response.csv +++ b/docs/error-response.csv @@ -12,6 +12,8 @@ GET,/transactions,403,,, ,,503,temporarily_unavailable,,Service Unavailable GET,/transactions-v2,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,503,temporarily_unavailable,,Service Unavailable +GET,/transactions/bill,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, @@ -47,6 +49,7 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,503,temporarily_unavailable,,Service Unavailable GET,/transactions/:uuid,403,,, ,,404,,, @@ -76,7 +79,6 @@ POST,/transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,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 @@ -105,6 +107,8 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,customer_account_not_found,,The customer account is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found @@ -112,7 +116,6 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found ,,422,check_not_found,"これはチャージQRコードではありません",This is not a topup QR code -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,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 @@ -143,6 +146,8 @@ POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザ ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,check_already_received,"このチャージQRコードは既に受取済みの為、チャージ出来ませんでした",Check is already received ,,422,check_unavailable,"このチャージQRコードは利用できません",The topup QR code is not available ,,503,temporarily_unavailable,,Service Unavailable @@ -177,9 +182,9 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,503,temporarily_unavailable,,Service Unavailable 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 @@ -208,6 +213,8 @@ POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザに ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,customer_account_not_found,,The customer account is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found @@ -215,7 +222,6 @@ POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザに POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,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 @@ -246,6 +252,8 @@ POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザに ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/exchange,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,transaction_restricted,,Transaction is not allowed @@ -266,6 +274,7 @@ POST,/transactions/exchange,422,account_not_found,"アカウントが見つか ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached ,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. @@ -287,7 +296,6 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,422,cpm_token_already_proceed,"このCPMトークンは既に処理されています。",The CPM token is already proceed ,,422,cpm_token_already_expired,"このCPMトークンは既に失効しています。",The CPM token is already expired ,,422,cpm_token_not_found,"CPMトークンが見つかりませんでした。",The CPM token is not found. -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,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 @@ -318,6 +326,8 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/bulk,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,organization_not_issuer,"発行体以外に許可されていない操作です",Unpermitted operation except for issuer organizations. @@ -327,7 +337,6 @@ POST,/transactions/bulk,403,unpermitted_admin_user,"この管理ユーザには POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,cashtray_not_found,"決済QRコードが見つかりません",Cashtray is not found -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,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 @@ -358,6 +367,8 @@ POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザに ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,cashtray_already_proceed,"この決済QRコードは既に処理されています",Cashtray is already proceed ,,422,cashtray_expired,"この決済QRコードは有効期限が切れています",Cashtray is expired ,,422,cashtray_already_canceled,"この決済QRコードは既に無効化されています",Cashtray is already canceled @@ -367,7 +378,6 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,422,customer_user_not_found,,The customer user is not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,customer_account_not_found,,The customer account is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_suspended,"アカウントは停止されています",The account is suspended @@ -397,6 +407,8 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. ,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/external-transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -618,6 +630,10 @@ POST,/user-stats,400,invalid_parameters,"項目が無効です",Invalid paramete ,,422,invalid_promotional_operation_user,"ユーザーの指定に不正な値が含まれています",Invalid user data is specified ,,422,invalid_promotional_operation_status,"不正な処理ステータスです",Invalid operation status is specified ,,503,user_stats_operation_service_unavailable,"一時的にユーザー統計サービスが利用不能です",User stats service is temporarily unavailable +POST,/user-stats/terminate,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,user_stats_operation_already_done,"指定されたIDの集計処理タスクは既に完了しています",The specified user stats operation is already done +,,422,user_stats_operation_not_found,"指定されたIDの集計処理タスクが見つかりません",User stats task not found for the operation ID +,,503,temporarily_unavailable,,Service Unavailable POST,/device/pokeregis,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, ,,409,hardware_id_conflict,,Hardware id is already registered @@ -702,6 +718,7 @@ DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached ,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. @@ -858,10 +875,15 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,422,paytree_disabled_private_money,"このマネーは銀行から引き落とし出来ません",This money cannot be charged from the bank ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available ,,503,temporarily_unavailable,,Service Unavailable ,,503,incomplete_configration_for_organization_bank,"現状、このマネーは銀行からのチャージを行えません。システム管理者へお問合せ下さい","Currently, this money cannot be topup from this bank. Please contact your system administrator." +DELETE,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,403,forbidden,,Forbidden +,,404,user_bank_not_found,"登録された銀行が見つかりません",Bank not found +,,422,user_device_not_found,,The user-device not found POST,/paytree/charge-entry-result,400,partner_decryption_failed,"リクエスト中の暗号データを復号化することができませんでした。",Could not decrypt the data. ,,400,partner_client_not_found,"partner_clientが見つかりません。",The partner client is not found. POST,/paytree/reconcile,400,invalid_parameters,"項目が無効です",Invalid parameters diff --git a/docs/event.md b/docs/event.md index e5935b6..b68e8bd 100644 --- a/docs/event.md +++ b/docs/event.md @@ -28,13 +28,13 @@ Request request = new CreateExternalTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 1360 // amount: 取引額 + 7821 // amount: 取引額 ) .description("たい焼き(小倉)") // 取引説明文 .metadata("{\"key\":\"value\"}") // ポケペイ外部取引メタデータ .products(new Object[]{items,items2}) // 商品情報データ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID - .doneAt("2020-06-15T08:52:34.000000Z"); // ポケペイ外部取引の実施時間 + .doneAt("2023-01-15T01:23:48.000000Z"); // ポケペイ外部取引の実施時間 ``` @@ -190,7 +190,6 @@ Request request = new CreateExternalTransaction( |422|customer_user_not_found||The customer user is not found| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|customer_account_not_found||The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_suspended|アカウントは停止されています|The account is suspended| @@ -220,6 +219,8 @@ Request request = new CreateExternalTransaction( |422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| |422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| |422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| diff --git a/docs/organization.md b/docs/organization.md index 1c9c347..4be6ec0 100644 --- a/docs/organization.md +++ b/docs/organization.md @@ -9,8 +9,8 @@ Request request = new ListOrganizations( ) .page(1) // ページ番号 .perPage(50) // 1ページ分の取引数 - .name("AZ") // 組織名 - .code("81ee9F1zae"); // 組織コード + .name("oy") // 組織名 + .code("LK"); // 組織コード ``` @@ -100,8 +100,8 @@ Request request = new CreateOrganization( "ox-supermarket", // code: 新規組織コード "oxスーパー", // name: 新規組織名 new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // privateMoneyIds: 加盟店組織で有効にするマネーIDの配列 - "UGprRtPpZg@ZzOh.com", // issuerAdminUserEmail: 発行体担当者メールアドレス - "vmvIjVKe7a@M7Qi.com" // memberAdminUserEmail: 新規組織担当者メールアドレス + "2h7BNq3rRM@ob2y.com", // issuerAdminUserEmail: 発行体担当者メールアドレス + "qEgXsKX0DN@jA5L.com" // memberAdminUserEmail: 新規組織担当者メールアドレス ) .bankName("XYZ銀行") // 銀行名 .bankCode("1234") // 銀行金融機関コード diff --git a/docs/private_money.md b/docs/private_money.md index 622fef6..6b01d99 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("2023-04-20T00:53:32.000000Z") // 開始日時(toと同時に指定する必要有) - .to("2023-12-03T18:01:03.000000Z") // 終了日時(fromと同時に指定する必要有) + .from("2023-06-04T07:52:15.000000Z") // 開始日時(toと同時に指定する必要有) + .to("2020-08-02T01:34:00.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("2022-01-26T00:25:32.000000Z") // 開始日時 - .to("2020-09-07T00:32:24.000000Z"); // 終了日時 + .from("2020-12-22T11:28:02.000000Z") // 開始日時 + .to("2024-05-15T22:32:14.000000Z"); // 終了日時 ``` diff --git a/docs/responses.md b/docs/responses.md index 5b3cb83..5605fa6 100644 --- a/docs/responses.md +++ b/docs/responses.md @@ -273,6 +273,9 @@ `getRows`は [Bank](#bank) クラスのインスタンスの配列を返します。 + +## BankDeleted + ## PaginatedTransaction * `getRows() Transaction[]`: @@ -293,6 +296,16 @@ `getRows`は [Transaction](#transaction) クラスのインスタンスの配列を返します。 + +## PaginatedBillTransaction +* `getRows() BillTransaction[]`: +* `getPerPage() int`: +* `getCount() int`: +* `getNextPageCursorId() String`: +* `getPrevPageCursorId() String`: + +`getRows`は [BillTransaction](#bill-transaction) クラスのインスタンスの配列を返します。 + ## PaginatedTransfers * `getRows() Transfer[]`: @@ -657,6 +670,15 @@ `getPrivateMoney`は [PrivateMoney](#private-money) クラスのインスタンスを返します。 + +## BillTransaction +* `getTransaction() Transaction`: +* `getBill() Bill`: + +`getTransaction`は [Transaction](#transaction) クラスのインスタンスを返します。 + +`getBill`は [Bill](#bill) クラスのインスタンスを返します。 + ## AccountBalance * `getExpiresAt() String`: diff --git a/docs/seven_bank_atm_session.md b/docs/seven_bank_atm_session.md index 741b540..e613c1d 100644 --- a/docs/seven_bank_atm_session.md +++ b/docs/seven_bank_atm_session.md @@ -8,7 +8,7 @@ ```JAVA Request request = new GetSevenBankATMSession( - "ZBysF" // qrInfo: QRコードの情報 + "HOOwl5xIQi" // qrInfo: QRコードの情報 ); ``` diff --git a/docs/shop.md b/docs/shop.md index 6e8b15e..8bb6c19 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("3903470") // 店舗の郵便番号 + .postalCode("319-7022") // 店舗の郵便番号 .address("東京都港区芝...") // 店舗の住所 - .tel("0341-24862") // 店舗の電話番号 - .email("5mN9clYyKl@8cUs.com") // 店舗のメールアドレス - .externalId("Yw8CW8rHVcmWZsjKlFT0f7di") // 店舗の外部ID + .tel("0767514974") // 店舗の電話番号 + .email("0EGo2tY0Bv@AArU.com") // 店舗のメールアドレス + .externalId("4c3Hcr3rYtMZs1YhEQlphw1DkmThPoId") // 店舗の外部ID .withDisabled(true) // 無効な店舗を含める .page(1) // ページ番号 .perPage(50); // 1ページ分の取引数 @@ -192,11 +192,11 @@ Request request = new ListShops() Request request = new CreateShop( "oxスーパー三田店" // shopName: 店舗名 ) - .shopPostalCode("720-9003") // 店舗の郵便番号 + .shopPostalCode("7171298") // 店舗の郵便番号 .shopAddress("東京都港区芝...") // 店舗の住所 - .shopTel("06-5528-1163") // 店舗の電話番号 - .shopEmail("Ory7pQcwkQ@vvHf.com") // 店舗のメールアドレス - .shopExternalId("ZTUiaSBniTvgiFcfFWfXo") // 店舗の外部ID + .shopTel("0093-757264") // 店舗の電話番号 + .shopEmail("AIRkHcNMgq@N77F.com") // 店舗のメールアドレス + .shopExternalId("Qw") // 店舗の外部ID .organizationCode("ox-supermarket"); // 組織コード ``` @@ -312,14 +312,14 @@ Request request = new CreateShop( Request request = new CreateShopV2( "oxスーパー三田店" // name: 店舗名 ) - .postalCode("8426726") // 店舗の郵便番号 + .postalCode("715-5974") // 店舗の郵便番号 .address("東京都港区芝...") // 店舗の住所 - .tel("02-11-332") // 店舗の電話番号 - .email("xSJQCC2TKE@3m70.com") // 店舗のメールアドレス - .externalId("u0i2E7e3WCog3HknLhb4mGHjaX24j") // 店舗の外部ID + .tel("07436571671") // 店舗の電話番号 + .email("YuHKErS89g@a8rA.com") // 店舗のメールアドレス + .externalId("wXpAiqwTxt1HL4wWzmkMDA4SVfWD13Zj3") // 店舗の外部ID .organizationCode("ox-supermarket") // 組織コード - .privateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗で有効にするマネーIDの配列 - .canTopupPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}); // 店舗でチャージ可能にするマネーIDの配列 + .privateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗で有効にするマネーIDの配列 + .canTopupPrivateMoneyIds(new String[]{}); // 店舗でチャージ可能にするマネーIDの配列 ``` @@ -516,13 +516,13 @@ Request request = new UpdateShop( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // shopId: 店舗ユーザーID ) .name("oxスーパー三田店") // 店舗名 - .postalCode("6312761") // 店舗の郵便番号 + .postalCode("946-6109") // 店舗の郵便番号 .address("東京都港区芝...") // 店舗の住所 - .tel("01441419") // 店舗の電話番号 - .email("pgFNSux0je@obdQ.com") // 店舗のメールアドレス - .externalId("1VXjU") // 店舗の外部ID + .tel("012920864") // 店舗の電話番号 + .email("WEdtL2ujHb@A770.com") // 店舗のメールアドレス + .externalId("c9iXi2Q1VWdznJovLhT0BrHHw3tEdBOJZoc") // 店舗の外部ID .privateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗で有効にするマネーIDの配列 - .canTopupPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗でチャージ可能にするマネーIDの配列 + .canTopupPrivateMoneyIds(new String[]{}) // 店舗でチャージ可能にするマネーIDの配列 .status("disabled"); // 店舗の状態 ``` diff --git a/docs/transaction.md b/docs/transaction.md index 4119302..26709d5 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -6,7 +6,7 @@ CPMトークンの現在の状態を取得します。CPMトークンの有効 ```JAVA Request request = new GetCpmToken( - "l7UfMqNeIWxDQ5mYkDBp76" // cpmToken: CPMトークン + "za2rTctUJQmh0gNd3qkWY4" // cpmToken: CPMトークン ); ``` @@ -44,15 +44,15 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを ```JAVA Request request = new ListTransactions() - .from("2020-04-18T09:50:55.000000Z") // 開始日時 - .to("2022-09-23T18:31:36.000000Z") // 終了日時 + .from("2020-06-26T14:16:15.000000Z") // 開始日時 + .to("2020-05-02T23:27:40.000000Z") // 終了日時 .page(1) // ページ番号 .perPage(50) // 1ページ分の取引数 .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID .customerName("太郎") // エンドユーザー名 .terminalId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 端末ID - .transactionId("l") // 取引ID + .transactionId("W5zCUF3") // 取引ID .organizationCode("pocketchange") // 組織コード .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID .setModified(true) // キャンセルフラグ @@ -311,10 +311,10 @@ Request request = new CreateTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ) - .moneyAmount(8752) - .pointAmount(6176) - .pointExpiresAt("2022-06-27T17:56:39.000000Z") // ポイント有効期限 - .description("yF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5q"); + .moneyAmount(5146) + .pointAmount(9431) + .pointExpiresAt("2024-10-13T22:12:25.000000Z") // ポイント有効期限 + .description("drHm6OsiyHBxsWBtx4G7cLViMByCBNzcDCX5bbsPzVUGeD2BWp2XUNEsAtEjlivj0NhalsavWYZduuXynvh05rJdAnnKPkjJzRbGyuQYyb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qpLKYfd3JbJX5QcdKyJ1DmsToKu4w1tRUaP7awM87Mt7bWysOyzqkB"); ``` @@ -446,6 +446,7 @@ Request request = new CreateTransaction( |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| |503|temporarily_unavailable||Service Unavailable| @@ -466,11 +467,11 @@ Request request = new ListTransactionsV2() .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID .customerName("太郎") // エンドユーザー名 .description("店頭QRコードによる支払い") // 取引説明文 - .transactionId("peG") // 取引ID + .transactionId("rGaMjb1su") // 取引ID .setModified(false) // キャンセルフラグ .types(new String[]{"topup","payment"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment - .from("2021-05-03T01:40:37.000000Z") // 開始日時 - .to("2021-05-13T19:05:55.000000Z") // 終了日時 + .from("2021-06-27T15:04:17.000000Z") // 開始日時 + .to("2024-01-18T17:42:45.000000Z") // 終了日時 .nextPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 次ページへ遷移する際に起点となるtransactionのID .prevPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 前ページへ遷移する際に起点となるtransactionのID .perPage(50); // 1ページ分の取引数 @@ -742,6 +743,266 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ +--- + + + +## ListBillTransactions: 支払い取引履歴を取得する +支払いによって発生した取引を支払いのデータとともに一覧で返します。 + +```JAVA +Request request = new ListBillTransactions() + .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID + .organizationCode("pocketchange") // 組織コード + .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID + .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID + .customerName("太郎") // エンドユーザー名 + .terminalId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザー端末ID + .description("店頭QRコードによる支払い") // 取引説明文 + .transactionId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 取引ID + .billId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 支払いQRコードのID + .setModified(true) // キャンセルフラグ + .from("2021-10-30T00:32:27.000000Z") // 開始日時 + .to("2022-02-28T22:46:29.000000Z") // 終了日時 + .nextPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 次ページへ遷移する際に起点となるtransactionのID + .prevPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 前ページへ遷移する際に起点となるtransactionのID + .perPage(50); // 1ページ分の取引数 + +``` + + + +### Parameters +**`privateMoneyId`** + + +マネーIDです。 + +指定したマネーでの取引が一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`organizationCode`** + + +組織コードです。 + +フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`shopId`** + + +店舗IDです。 + +フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customerId`** + + +エンドユーザーIDです。 + +フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customerName`** + + +エンドユーザー名です。 + +フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`terminalId`** + + +エンドユーザーの端末IDです。 +フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + +取引を指定の取引説明文でフィルターします。 + +取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`transactionId`** + + +取引IDです。 + +フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`billId`** + + +支払いQRコードのIDです。 + +フィルターとして使われ、指定された支払いQRコードIDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`setModified`** + + +キャンセルフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + +```json +{ + "type": "boolean" +} +``` + +**`from`** + + +抽出期間の開始日時です。 + +フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + +抽出期間の終了日時です。 + +フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`nextPageCursorId`** + + +次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。 +本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 +UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 + +next_page_cursor_idのtransaction自体は次のページには含まれません。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`prevPageCursorId`** + + +前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 + +本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 +UUIDである場合は前のページが存在することを意味し、このprev_page_cursor_idをリクエストパラメータに含めることで前ページに遷移します。 + +prev_page_cursor_idのtransaction自体は前のページには含まれません。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`perPage`** + + +1ページ分の取引数です。 + +デフォルト値は50です。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 1000 +} +``` + + + +成功したときは +[PaginatedBillTransaction](./responses.md#paginated-bill-transaction) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|503|temporarily_unavailable||Service Unavailable| + + + --- @@ -756,9 +1017,9 @@ Request request = new CreateTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID ) .bearPointShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント支払時の負担店舗ID - .moneyAmount(7901) // マネー額 - .pointAmount(5298) // ポイント額 - .pointExpiresAt("2023-08-17T00:14:32.000000Z") // ポイント有効期限 + .moneyAmount(7324) // マネー額 + .pointAmount(6373) // ポイント額 + .pointExpiresAt("2022-09-18T19:39:23.000000Z") // ポイント有効期限 .description("初夏のチャージキャンペーン") // 取引履歴に表示する説明文 .metadata("{\"key\":\"value\"}") // 取引メタデータ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID @@ -924,7 +1185,6 @@ Request request = new CreateTopupTransaction( |400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| |400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|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| @@ -953,6 +1213,8 @@ Request request = new CreateTopupTransaction( |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|customer_account_not_found||The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -978,31 +1240,15 @@ items.addProperty("price", 100); items.addProperty("quantity", 1); items.addProperty("is_discounted", false); items.addProperty("other", "{}"); -JsonObject items2 = new JsonObject(); -items2.addProperty("jan_code", "abc"); -items2.addProperty("name", "name1"); -items2.addProperty("unit_price", 100); -items2.addProperty("price", 100); -items2.addProperty("quantity", 1); -items2.addProperty("is_discounted", false); -items2.addProperty("other", "{}"); -JsonObject items3 = new JsonObject(); -items3.addProperty("jan_code", "abc"); -items3.addProperty("name", "name1"); -items3.addProperty("unit_price", 100); -items3.addProperty("price", 100); -items3.addProperty("quantity", 1); -items3.addProperty("is_discounted", false); -items3.addProperty("other", "{}"); Request request = new CreatePaymentTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 9367 // amount: 支払い額 + 9109 // amount: 支払い額 ) .description("たい焼き(小倉)") // 取引履歴に表示する説明文 .metadata("{\"key\":\"value\"}") // 取引メタデータ - .products(new Object[]{items,items2,items3}) // 商品情報データ + .products(new Object[]{items}) // 商品情報データ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID .strategy("point-preferred"); // 支払い時の残高消費方式 @@ -1166,7 +1412,6 @@ Request request = new CreatePaymentTransaction( |status|type|ja|en| |---|---|---|---| |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| @@ -1195,6 +1440,8 @@ Request request = new CreatePaymentTransaction( |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|customer_account_not_found||The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -1228,22 +1475,14 @@ items2.addProperty("price", 100); items2.addProperty("quantity", 1); items2.addProperty("is_discounted", false); items2.addProperty("other", "{}"); -JsonObject items3 = new JsonObject(); -items3.addProperty("jan_code", "abc"); -items3.addProperty("name", "name1"); -items3.addProperty("unit_price", 100); -items3.addProperty("price", 100); -items3.addProperty("quantity", 1); -items3.addProperty("is_discounted", false); -items3.addProperty("other", "{}"); Request request = new CreateCpmTransaction( - "NKIGuoyWD3BHeU5bcdtREm", // cpmToken: CPMトークン + "eIDBfKsRBbYLkU2TfJXzuB", // cpmToken: CPMトークン "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID - 1095.0 // amount: 取引金額 + 7264.0 // amount: 取引金額 ) .description("たい焼き(小倉)") // 取引説明文 .metadata("{\"key\":\"value\"}") // 店舗側メタデータ - .products(new Object[]{items,items2,items3}) // 商品情報データ + .products(new Object[]{items,items2}) // 商品情報データ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID .strategy("point-preferred"); // 支払い時の残高消費方式 @@ -1399,7 +1638,6 @@ Request request = new CreateCpmTransaction( |422|cpm_token_already_proceed|このCPMトークンは既に処理されています。|The CPM token is already proceed| |422|cpm_token_already_expired|このCPMトークンは既に失効しています。|The CPM token is already expired| |422|cpm_token_not_found|CPMトークンが見つかりませんでした。|The CPM token is not found.| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|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| @@ -1430,6 +1668,8 @@ Request request = new CreateCpmTransaction( |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| @@ -1448,7 +1688,7 @@ Request request = new CreateTransferTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // senderId: 送金元ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // receiverId: 受取ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 9492.0 // amount: 送金額 + 8764.0 // amount: 送金額 ) .metadata("{\"key\":\"value\"}") // 取引メタデータ .description("たい焼き(小倉)") // 取引履歴に表示する説明文 @@ -1572,7 +1812,6 @@ Request request = new CreateTransferTransaction( |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|customer_user_not_found||The customer user is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|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| @@ -1603,6 +1842,8 @@ Request request = new CreateTransferTransaction( |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| @@ -1618,9 +1859,9 @@ Request request = new CreateExchangeTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 961 + 2120 ) - .description("PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7V") + .description("FPReFsmxaxT8Xwuc649dznjsqwxML0aHpiMuFL91") .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID ``` @@ -1728,6 +1969,7 @@ Request request = new CreateExchangeTransaction( |422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| |422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| |422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| |422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| |422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| @@ -1802,7 +2044,7 @@ Request request = new RefundTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // transactionId: 取引ID ) .description("返品対応のため") // 取引履歴に表示する返金事由 - .returningPointExpiresAt("2020-03-20T07:43:18.000000Z"); // 返却ポイントの有効期限 + .returningPointExpiresAt("2020-04-24T17:13:27.000000Z"); // 返却ポイントの有効期限 ``` @@ -2069,4 +2311,57 @@ Request request = new RequestUserStats( --- + +## TerminateUserStats: RequestUserStatsのタスクを強制終了する +RequestUserStatsによるファイル生成のタスクを強制終了するためのAPIです。 +RequestUserStatsのレスポンス中の `operation_id` をキーにして強制終了リクエストを送ります。 +既に集計タスクが終了している場合は何も行いません。 +発行体に対して結果通知用のWebhook URLが設定されている場合、強制終了成功時には以下のような内容のPOSTリクエストが送られます。 + +- task: "process_user_stats_operation" +- operation_id: 強制終了対象のタスクID +- status: "terminated" + +```JAVA +Request request = new TerminateUserStats( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // operationId: 集計タスクID +); + +``` + + + +### Parameters +**`operationId`** + + +強制終了対象の集計タスクIDです。 +必須パラメータであり、指定されたタスクIDが存在しない場合は `user_stats_operation_not_found`エラー(422)が返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserStatsOperation](./responses.md#user-stats-operation) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|user_stats_operation_already_done|指定されたIDの集計処理タスクは既に完了しています|The specified user stats operation is already done| +|422|user_stats_operation_not_found|指定されたIDの集計処理タスクが見つかりません|User stats task not found for the operation ID| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + diff --git a/docs/transfer.md b/docs/transfer.md index c6ceb53..49f0720 100644 --- a/docs/transfer.md +++ b/docs/transfer.md @@ -8,8 +8,8 @@ Request request = new GetAccountTransferSummary( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID ) - .from("2021-12-29T10:37:26.000000Z") // 集計期間の開始時刻 - .to("2021-02-25T17:29:04.000000Z") // 集計期間の終了時刻 + .from("2022-09-27T00:46:56.000000Z") // 集計期間の開始時刻 + .to("2024-06-28T20:55:48.000000Z") // 集計期間の終了時刻 .transferTypes(new String[]{"topup","payment"}); // 取引明細種別 (複数指定可) ``` @@ -123,19 +123,19 @@ Request request = new GetAccountTransferSummary( ```JAVA Request request = new ListTransfers() - .from("2021-01-30T20:49:05.000000Z") - .to("2023-02-22T20:08:11.000000Z") - .page(3365) - .perPage(5071) + .from("2020-12-08T08:43:49.000000Z") + .to("2021-04-09T22:59:13.000000Z") + .page(5572) + .perPage(4476) .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") - .shopName("3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCx") + .shopName("TMWk") .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") - .customerName("ziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9") + .customerName("W53gnqE0TT1OD00WYy85d5RKAl") .transactionId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") - .setModified(false) - .transactionTypes(new String[]{"topup","cashback","transfer","expire","exchange","payment"}) - .transferTypes(new String[]{"exchange"}) // 取引明細の種類でフィルターします。 + .setModified(true) + .transactionTypes(new String[]{"transfer","exchange","cashback","payment"}) + .transferTypes(new String[]{"transfer","exchange","topup","coupon","payment"}) // 取引明細の種類でフィルターします。 .description("店頭QRコードによる支払い"); // 取引詳細説明文 ``` @@ -368,20 +368,20 @@ Request request = new ListTransfers() ```JAVA Request request = new ListTransfersV2() .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID - .shopName("pzYekawpUouvYHKlj0G") // 店舗名 + .shopName("yJcv8GqBqgGEHafl1jNP9k7uydClg9A7an27PrVxBqiE9YWo8xjmzBGJVwTTanAXyFjLag3gPPvlq0FFntKGY10p27NPGQTdAXKNGuLNgDO4Ma1ptA22IkyjkgPuZUMAq2NjJocNYKTrm2m1ssPqyT3XyCFCrR8uZnHFgU1ZOwuoeukDxIIOg9Cc") // 店舗名 .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID - .customerName("L0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLKUg3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7") // エンドユーザー名 + .customerName("Cgtxt4qQAP06TDLYKBc2zPf6wToG8lTKcMPiFJX3LNKTomMc8wnROYRP673oHx5N3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX0") // エンドユーザー名 .transactionId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 取引ID .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID .setModified(false) // キャンセルフラグ - .transactionTypes(new String[]{"exchange","payment","cashback","expire"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + .transactionTypes(new String[]{"expire","transfer","payment","topup","cashback","exchange"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment .nextPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 次ページへ遷移する際に起点となるtransferのID .prevPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 前ページへ遷移する際に起点となるtransferのID .perPage(50) // 1ページ分の取引数 - .transferTypes(new String[]{"transfer","exchange","coupon","cashback","payment","topup"}) // 取引明細種別 (複数指定可) + .transferTypes(new String[]{"transfer","topup","exchange"}) // 取引明細種別 (複数指定可) .description("店頭QRコードによる支払い") // 取引詳細説明文 - .from("2020-02-10T06:55:29.000000Z") // 開始日時 - .to("2024-03-31T15:07:15.000000Z"); // 終了日時 + .from("2023-09-30T00:44:03.000000Z") // 開始日時 + .to("2022-03-22T08:31:25.000000Z"); // 終了日時 ``` diff --git a/docs/webhook.md b/docs/webhook.md index f9cd713..ecf7fc0 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -65,8 +65,8 @@ Request request = new ListWebhooks() ```JAVA Request request = new CreateWebhook( - "bulk_shops", // task: タスク名 - "r5u" // url: URL + "process_user_stats_operation", // task: タスク名 + "aGoRmlkW" // url: URL ); ``` @@ -162,8 +162,8 @@ Request request = new DeleteWebhook( Request request = new UpdateWebhook( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // webhookId: Webhook ID ) - .url("MSg7mI2h9") // URL - .setActive(true) // 有効/無効 + .url("V") // URL + .setActive(false) // 有効/無効 .task("bulk_shops"); // タスク名 ``` diff --git a/partner.yaml b/partner.yaml index 7bf01bf..a406d89 100644 --- a/partner.yaml +++ b/partner.yaml @@ -696,6 +696,13 @@ components: type: array items: $ref: '#/components/schemas/Transfer' + BillTransaction: + x-pokepay-schema-type: "response" + properties: + transaction: + $ref: '#/components/schemas/Transaction' + bill: + $ref: '#/components/schemas/Bill' ShopWithMetadata: x-pokepay-schema-type: "response" properties: @@ -1283,6 +1290,10 @@ components: type: integer minimum: 0 + BankDeleted: + x-pokepay-schema-type: "response" + properties: {} + PaginatedTransaction: x-pokepay-schema-type: "response" properties: @@ -1322,6 +1333,32 @@ components: 前ページ取得するためのID。 実際にはrows先頭 + PaginatedBillTransaction: + x-pokepay-schema-type: "response" + properties: + rows: + type: array + items: + $ref: '#/components/schemas/BillTransaction' + per_page: + type: integer + count: + type: integer + next_page_cursor_id: + type: string + format: uuid + nullable: true + description: |- + 次ページ取得するためのID。次ページ取得するためのID。 + 実際にはrows末尾 + prev_page_cursor_id: + type: string + format: uuid + nullable: true + description: |- + 前ページ取得するためのID。 + + 実際にはrows先頭 PaginatedTransfers: x-pokepay-schema-type: "response" properties: @@ -3750,6 +3787,164 @@ paths: $ref: '#/components/schemas/PaginatedTransactionV2' '400': $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' + /transactions/bill: + get: + tags: + - Transaction + summary: '支払い取引履歴を取得する' + description: 支払いによって発生した取引を支払いのデータとともに一覧で返します。 + x-pokepay-operator-name: "ListBillTransactions" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + properties: + private_money_id: + type: string + format: uuid + title: 'マネーID' + description: |- + マネーIDです。 + + 指定したマネーでの取引が一覧に表示されます。 + organization_code: + type: string + pattern: '^[a-zA-Z0-9-]*$' + maxLength: 32 + title: '組織コード' + description: |- + 組織コードです。 + + フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 + example: 'pocketchange' + shop_id: + type: string + format: uuid + title: '店舗ID' + description: |- + 店舗IDです。 + + フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + customer_id: + type: string + format: uuid + title: 'エンドユーザーID' + description: |- + エンドユーザーIDです。 + + フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 + customer_name: + type: string + maxLength: 256 + title: 'エンドユーザー名' + description: |- + エンドユーザー名です。 + + フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + example: 太郎 + terminal_id: + type: string + format: uuid + title: 'エンドユーザー端末ID' + description: |- + エンドユーザーの端末IDです。 + フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 + description: + type: string + maxLength: 200 + title: '取引説明文' + description: |- + 取引を指定の取引説明文でフィルターします。 + + 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + example: 店頭QRコードによる支払い + transaction_id: + type: string + format: uuid + title: '取引ID' + description: |- + 取引IDです。 + + フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + bill_id: + type: string + format: uuid + title: '支払いQRコードのID' + description: |- + 支払いQRコードのIDです。 + + フィルターとして使われ、指定された支払いQRコードIDに部分一致(前方一致)する取引のみが一覧に表示されます。 + is_modified: + type: boolean + title: 'キャンセルフラグ' + description: |- + キャンセルフラグです。 + + これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 + デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + from: + type: string + format: date-time + title: '開始日時' + description: |- + 抽出期間の開始日時です。 + + フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + to: + type: string + format: date-time + title: '終了日時' + description: |- + 抽出期間の終了日時です。 + + フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + next_page_cursor_id: + type: string + format: uuid + title: '次ページへ遷移する際に起点となるtransactionのID' + description: |- + 次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。 + 本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 + UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 + + next_page_cursor_idのtransaction自体は次のページには含まれません。 + prev_page_cursor_id: + type: string + format: uuid + title: '前ページへ遷移する際に起点となるtransactionのID' + description: |- + 前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 + + 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 + UUIDである場合は前のページが存在することを意味し、このprev_page_cursor_idをリクエストパラメータに含めることで前ページに遷移します。 + + prev_page_cursor_idのtransaction自体は前のページには含まれません。 + per_page: + type: integer + minimum: 1 + maximum: 1000 + default: 50 + title: '1ページ分の取引数' + description: |- + 1ページ分の取引数です。 + + デフォルト値は50です。 + example: 50 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedBillTransaction' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' /transactions/topup: post: tags: @@ -7989,6 +8184,50 @@ paths: '503': $ref: '#/components/responses/UserStatsOperationServiceUnavailable' + /user-stats/terminate: + post: + tags: + - Transaction + summary: 'RequestUserStatsのタスクを強制終了する' + description: |- + RequestUserStatsによるファイル生成のタスクを強制終了するためのAPIです。 + RequestUserStatsのレスポンス中の `operation_id` をキーにして強制終了リクエストを送ります。 + 既に集計タスクが終了している場合は何も行いません。 + 発行体に対して結果通知用のWebhook URLが設定されている場合、強制終了成功時には以下のような内容のPOSTリクエストが送られます。 + + - task: "process_user_stats_operation" + - operation_id: 強制終了対象のタスクID + - status: "terminated" + x-pokepay-operator-name: "TerminateUserStats" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["operation_id"] + properties: + operation_id: + type: string + format: uuid + title: '集計タスクID' + description: |- + 強制終了対象の集計タスクIDです。 + 必須パラメータであり、指定されたタスクIDが存在しない場合は `user_stats_operation_not_found`エラー(422)が返ります。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/UserStatsOperation' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /webhooks: post: x-pokepay-operator-name: "CreateWebhook" @@ -8367,6 +8606,46 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' + delete: + x-pokepay-operator-name: "DeleteBank" + x-pokepay-allow-server-side: true + tags: + - BankPay + summary: 銀行口座の削除 + description: 銀行口座を削除します + parameters: + - in: path + name: user_device_id + required: true + schema: + type: string + format: uuid + title: "デバイスID" + requestBody: + required: true + content: + application/json: + schema: + required: [bank_id] + properties: + bank_id: + type: string + format: uuid + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/BankDeleted' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' /user-devices/{user_device_id}/banks/topup: post: @@ -8788,4 +9067,4 @@ paths: '404': $ref: '#/components/responses/NotFound' '422': - $ref: '#/components/responses/UnprocessableEntity' \ No newline at end of file + $ref: '#/components/responses/UnprocessableEntity' diff --git a/src/main/java/jp/pokepay/partnerapi/request/DeleteBank.java b/src/main/java/jp/pokepay/partnerapi/request/DeleteBank.java new file mode 100644 index 0000000..cf6194b --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/DeleteBank.java @@ -0,0 +1,39 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class DeleteBank extends Request { + private String bankId; + private String userDeviceId; + + public DeleteBank(String userDeviceId, String bankId) { + this.userDeviceId = userDeviceId; + this.bankId = bankId; + } + + @Override + public Method method() { + return Method.DELETE; + } + + @Override + public String path() { + return "/user-devices" + "/" + this.userDeviceId + "/banks"; + } + + @Override + public Type getResponseClass() { + return BankDeleted.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (bankId != null) { object.add("bank_id", context.serialize(this.bankId)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/ListBillTransactions.java b/src/main/java/jp/pokepay/partnerapi/request/ListBillTransactions.java new file mode 100644 index 0000000..dd03057 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/ListBillTransactions.java @@ -0,0 +1,139 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class ListBillTransactions extends Request { + private String privateMoneyId; + private String organizationCode; + private String shopId; + private String customerId; + private String customerName; + private String terminalId; + private String description; + private String transactionId; + private String billId; + private Boolean isModified; + private String from; + private String to; + private String nextPageCursorId; + private String prevPageCursorId; + private Integer perPage; + + public ListBillTransactions() { + } + + public ListBillTransactions privateMoneyId(String privateMoneyId) { + this.privateMoneyId = privateMoneyId; + return this; + } + + public ListBillTransactions organizationCode(String organizationCode) { + this.organizationCode = organizationCode; + return this; + } + + public ListBillTransactions shopId(String shopId) { + this.shopId = shopId; + return this; + } + + public ListBillTransactions customerId(String customerId) { + this.customerId = customerId; + return this; + } + + public ListBillTransactions customerName(String customerName) { + this.customerName = customerName; + return this; + } + + public ListBillTransactions terminalId(String terminalId) { + this.terminalId = terminalId; + return this; + } + + public ListBillTransactions description(String description) { + this.description = description; + return this; + } + + public ListBillTransactions transactionId(String transactionId) { + this.transactionId = transactionId; + return this; + } + + public ListBillTransactions billId(String billId) { + this.billId = billId; + return this; + } + + public ListBillTransactions setModified(Boolean modified) { + isModified = modified; + return this; + } + + public ListBillTransactions from(String from) { + this.from = from; + return this; + } + + public ListBillTransactions to(String to) { + this.to = to; + return this; + } + + public ListBillTransactions nextPageCursorId(String nextPageCursorId) { + this.nextPageCursorId = nextPageCursorId; + return this; + } + + public ListBillTransactions prevPageCursorId(String prevPageCursorId) { + this.prevPageCursorId = prevPageCursorId; + return this; + } + + public ListBillTransactions perPage(Integer perPage) { + this.perPage = perPage; + return this; + } + + @Override + public Method method() { + return Method.GET; + } + + @Override + public String path() { + return "/transactions" + "/bill"; + } + + @Override + public Type getResponseClass() { + return PaginatedBillTransaction.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); } + if (organizationCode != null) { object.add("organization_code", context.serialize(this.organizationCode)); } + if (shopId != null) { object.add("shop_id", context.serialize(this.shopId)); } + if (customerId != null) { object.add("customer_id", context.serialize(this.customerId)); } + if (customerName != null) { object.add("customer_name", context.serialize(this.customerName)); } + if (terminalId != null) { object.add("terminal_id", context.serialize(this.terminalId)); } + if (description != null) { object.add("description", context.serialize(this.description)); } + if (transactionId != null) { object.add("transaction_id", context.serialize(this.transactionId)); } + if (billId != null) { object.add("bill_id", context.serialize(this.billId)); } + if (isModified != null) { object.add("is_modified", context.serialize(this.isModified)); } + if (from != null) { object.add("from", context.serialize(this.from)); } + if (to != null) { object.add("to", context.serialize(this.to)); } + if (nextPageCursorId != null) { object.add("next_page_cursor_id", context.serialize(this.nextPageCursorId)); } + if (prevPageCursorId != null) { object.add("prev_page_cursor_id", context.serialize(this.prevPageCursorId)); } + if (perPage != null) { object.add("per_page", context.serialize(this.perPage)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/TerminateUserStats.java b/src/main/java/jp/pokepay/partnerapi/request/TerminateUserStats.java new file mode 100644 index 0000000..9c07769 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/TerminateUserStats.java @@ -0,0 +1,37 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.request; + +import com.google.gson.JsonObject; +import com.google.gson.JsonSerializationContext; +import jp.pokepay.partnerapi.response.*; +import java.lang.reflect.Type; + +public class TerminateUserStats extends Request { + private String operationId; + + public TerminateUserStats(String operationId) { + this.operationId = operationId; + } + + @Override + public Method method() { + return Method.POST; + } + + @Override + public String path() { + return "/user-stats" + "/terminate"; + } + + @Override + public Type getResponseClass() { + return UserStatsOperation.class; + } + + @Override + public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) { + JsonObject object = new JsonObject(); + if (operationId != null) { object.add("operation_id", context.serialize(this.operationId)); } + return object; + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteBankSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteBankSerializer.java new file mode 100644 index 0000000..6fcf7b7 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteBankSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.DeleteBank; + +import java.lang.reflect.Type; + +public class DeleteBankSerializer implements JsonSerializer { + @Override + public JsonElement serialize(DeleteBank src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/ListBillTransactionsSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/ListBillTransactionsSerializer.java new file mode 100644 index 0000000..a52e27b --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/ListBillTransactionsSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.ListBillTransactions; + +import java.lang.reflect.Type; + +public class ListBillTransactionsSerializer implements JsonSerializer { + @Override + public JsonElement serialize(ListBillTransactions src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java index 8c05830..79b3da4 100644 --- a/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java @@ -29,6 +29,7 @@ import jp.pokepay.partnerapi.request.ListTransactions; import jp.pokepay.partnerapi.request.CreateTransaction; import jp.pokepay.partnerapi.request.ListTransactionsV2; +import jp.pokepay.partnerapi.request.ListBillTransactions; import jp.pokepay.partnerapi.request.CreateTopupTransaction; import jp.pokepay.partnerapi.request.CreateTopupTransactionWithCheck; import jp.pokepay.partnerapi.request.CreatePaymentTransaction; @@ -67,6 +68,7 @@ import jp.pokepay.partnerapi.request.GetCampaign; import jp.pokepay.partnerapi.request.UpdateCampaign; import jp.pokepay.partnerapi.request.RequestUserStats; +import jp.pokepay.partnerapi.request.TerminateUserStats; import jp.pokepay.partnerapi.request.ListWebhooks; import jp.pokepay.partnerapi.request.CreateWebhook; import jp.pokepay.partnerapi.request.DeleteWebhook; @@ -74,6 +76,7 @@ import jp.pokepay.partnerapi.request.CreateUserDevice; import jp.pokepay.partnerapi.request.GetUserDevice; import jp.pokepay.partnerapi.request.ActivateUserDevice; +import jp.pokepay.partnerapi.request.DeleteBank; import jp.pokepay.partnerapi.request.ListBanks; import jp.pokepay.partnerapi.request.CreateBank; import jp.pokepay.partnerapi.request.CreateBankTopupTransaction; @@ -111,6 +114,7 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) { gsonBuilder.registerTypeAdapter(ListTransactions.class, new ListTransactionsSerializer()); gsonBuilder.registerTypeAdapter(CreateTransaction.class, new CreateTransactionSerializer()); gsonBuilder.registerTypeAdapter(ListTransactionsV2.class, new ListTransactionsV2Serializer()); + gsonBuilder.registerTypeAdapter(ListBillTransactions.class, new ListBillTransactionsSerializer()); gsonBuilder.registerTypeAdapter(CreateTopupTransaction.class, new CreateTopupTransactionSerializer()); gsonBuilder.registerTypeAdapter(CreateTopupTransactionWithCheck.class, new CreateTopupTransactionWithCheckSerializer()); gsonBuilder.registerTypeAdapter(CreatePaymentTransaction.class, new CreatePaymentTransactionSerializer()); @@ -149,6 +153,7 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) { gsonBuilder.registerTypeAdapter(GetCampaign.class, new GetCampaignSerializer()); gsonBuilder.registerTypeAdapter(UpdateCampaign.class, new UpdateCampaignSerializer()); gsonBuilder.registerTypeAdapter(RequestUserStats.class, new RequestUserStatsSerializer()); + gsonBuilder.registerTypeAdapter(TerminateUserStats.class, new TerminateUserStatsSerializer()); gsonBuilder.registerTypeAdapter(ListWebhooks.class, new ListWebhooksSerializer()); gsonBuilder.registerTypeAdapter(CreateWebhook.class, new CreateWebhookSerializer()); gsonBuilder.registerTypeAdapter(DeleteWebhook.class, new DeleteWebhookSerializer()); @@ -156,6 +161,7 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) { gsonBuilder.registerTypeAdapter(CreateUserDevice.class, new CreateUserDeviceSerializer()); gsonBuilder.registerTypeAdapter(GetUserDevice.class, new GetUserDeviceSerializer()); gsonBuilder.registerTypeAdapter(ActivateUserDevice.class, new ActivateUserDeviceSerializer()); + gsonBuilder.registerTypeAdapter(DeleteBank.class, new DeleteBankSerializer()); gsonBuilder.registerTypeAdapter(ListBanks.class, new ListBanksSerializer()); gsonBuilder.registerTypeAdapter(CreateBank.class, new CreateBankSerializer()); gsonBuilder.registerTypeAdapter(CreateBankTopupTransaction.class, new CreateBankTopupTransactionSerializer()); diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/TerminateUserStatsSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/TerminateUserStatsSerializer.java new file mode 100644 index 0000000..e9fae8b --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/TerminateUserStatsSerializer.java @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +package jp.pokepay.partnerapi.request.serializer; + +import com.google.gson.JsonElement; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import jp.pokepay.partnerapi.request.TerminateUserStats; + +import java.lang.reflect.Type; + +public class TerminateUserStatsSerializer implements JsonSerializer { + @Override + public JsonElement serialize(TerminateUserStats src, Type typeOfSrc, JsonSerializationContext context) { + return src.getRequestBodyJsonObject(context); + } +} diff --git a/src/main/java/jp/pokepay/partnerapi/response/BankDeleted.java b/src/main/java/jp/pokepay/partnerapi/response/BankDeleted.java new file mode 100644 index 0000000..163da62 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/BankDeleted.java @@ -0,0 +1,6 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class BankDeleted extends Response { +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/BillTransaction.java b/src/main/java/jp/pokepay/partnerapi/response/BillTransaction.java new file mode 100644 index 0000000..d856cb3 --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/BillTransaction.java @@ -0,0 +1,16 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class BillTransaction extends Response { + private Transaction transaction; + private Bill bill; + + public Transaction getTransaction() { + return transaction; + } + + public Bill getBill() { + return bill; + } +} + diff --git a/src/main/java/jp/pokepay/partnerapi/response/PaginatedBillTransaction.java b/src/main/java/jp/pokepay/partnerapi/response/PaginatedBillTransaction.java new file mode 100644 index 0000000..408281c --- /dev/null +++ b/src/main/java/jp/pokepay/partnerapi/response/PaginatedBillTransaction.java @@ -0,0 +1,31 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi.response; + +public class PaginatedBillTransaction extends Response { + private BillTransaction[] rows; + private Integer perPage; + private Integer count; + private String nextPageCursorId; + private String prevPageCursorId; + + public BillTransaction[] getRows() { + return rows; + } + + public Integer getPerPage() { + return perPage; + } + + public Integer getCount() { + return count; + } + + public String getNextPageCursorId() { + return nextPageCursorId; + } + + public String getPrevPageCursorId() { + return prevPageCursorId; + } +} + diff --git a/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java b/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java index 67f4d08..434ddc3 100644 --- a/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java @@ -12,7 +12,7 @@ public class ActivateUserDeviceTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ActivateUserDevice( - "8731c411-b461-4e4a-9764-89255ea8a85c" + "d53da454-e6b5-467f-9832-4c19f0b2352d" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/BulkCreateTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/BulkCreateTransactionTest.java index f9e8a64..feb5135 100644 --- a/src/test/java/jp/pokepay/partnerapi/BulkCreateTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/BulkCreateTransactionTest.java @@ -12,9 +12,9 @@ public class BulkCreateTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new BulkCreateTransaction( - "8HRSP5FHw4UX4tGWi4N1", - "Wpw", - "hPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN" + "zlq6MKoBez", + "SZG", + "JZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLe" ); try { PartnerAPITest.getClient().send(request); @@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new BulkCreateTransaction( - "8HRSP5FHw4UX4tGWi4N1", - "Wpw", - "hPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN" + "zlq6MKoBez", + "SZG", + "JZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLe" ) - .privateMoneyId("52d410b7-8c36-4486-acc0-708a5e74ce01"); + .privateMoneyId("ef777805-b803-41fb-a2ca-f6da5d21c3c4"); 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 BulkCreateTransaction( - "8HRSP5FHw4UX4tGWi4N1", - "Wpw", - "hPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN" + "zlq6MKoBez", + "SZG", + "JZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLe" ) - .description("HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0kt") - .privateMoneyId("7e11363a-9aeb-479a-b179-4573a184ff65"); + .description("CEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4") + .privateMoneyId("abf1e64f-9e68-4fd6-8923-8fed147574d1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java index 7462e69..4c885dd 100644 --- a/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java @@ -12,7 +12,7 @@ public class CancelCashtrayTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CancelCashtray( - "aaf6a586-88af-4705-b315-e668c4144e0c" + "4125cdd4-bd76-4e80-bc39-218c3bb01669" ); 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 af76506..cb10d39 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateBankTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateBankTest.java @@ -12,10 +12,10 @@ public class CreateBankTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateBank( - "3ca9f004-3488-4140-af5b-15c3eabf1100", - "0c771527-c425-4790-b992-69f2ae020db2", - "XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0", - "vPKHwlN5cgpKhTDjrt62aO0gTJK" + "e4afddd5-62b8-415e-b287-950dbdaa03b1", + "c8dcddd4-a62e-4d04-bf47-2fb219319af9", + "JEOhnrWkQVh8G8vXFKeuF", + "FhTncNlMmgEuaHAHn" ); try { PartnerAPITest.getClient().send(request); @@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateBank( - "3ca9f004-3488-4140-af5b-15c3eabf1100", - "0c771527-c425-4790-b992-69f2ae020db2", - "XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0", - "vPKHwlN5cgpKhTDjrt62aO0gTJK" + "e4afddd5-62b8-415e-b287-950dbdaa03b1", + "c8dcddd4-a62e-4d04-bf47-2fb219319af9", + "JEOhnrWkQVh8G8vXFKeuF", + "FhTncNlMmgEuaHAHn" ) - .birthdate("vsFX8p"); + .birthdate("tz60OEH7"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateBank( - "3ca9f004-3488-4140-af5b-15c3eabf1100", - "0c771527-c425-4790-b992-69f2ae020db2", - "XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0", - "vPKHwlN5cgpKhTDjrt62aO0gTJK" + "e4afddd5-62b8-415e-b287-950dbdaa03b1", + "c8dcddd4-a62e-4d04-bf47-2fb219319af9", + "JEOhnrWkQVh8G8vXFKeuF", + "FhTncNlMmgEuaHAHn" ) - .email("CgUNdYXQCh@ONhw.com") - .birthdate("GHDaQRst"); + .email("JgjiAw3cGa@LL5K.com") + .birthdate("p"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateBankTopupTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateBankTopupTransactionTest.java index c35d61b..8e8b09c 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateBankTopupTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateBankTopupTransactionTest.java @@ -12,11 +12,11 @@ public class CreateBankTopupTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateBankTopupTransaction( - "eae535ff-5685-4921-bcbd-740d68355f05", - "2d0004fa-3df9-4790-a6c3-2e4d8cb93aab", - 4420, - "50da505b-1a2a-43b6-b234-c9da39d2185e", - "5254fac9-c835-443a-baaf-5a67dc14e889" + "ac184569-d826-496e-a0ee-82a60a8bc181", + "af66ca52-f3cb-45b5-b9ac-987fbbad6a30", + 9040, + "77f7ad7a-a812-469c-9f29-a285d924134a", + "5ba346a4-f139-4348-b6e6-3eb2d16b83fc" ); try { PartnerAPITest.getClient().send(request); @@ -32,13 +32,13 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateBankTopupTransaction( - "eae535ff-5685-4921-bcbd-740d68355f05", - "2d0004fa-3df9-4790-a6c3-2e4d8cb93aab", - 4420, - "50da505b-1a2a-43b6-b234-c9da39d2185e", - "5254fac9-c835-443a-baaf-5a67dc14e889" + "ac184569-d826-496e-a0ee-82a60a8bc181", + "af66ca52-f3cb-45b5-b9ac-987fbbad6a30", + 9040, + "77f7ad7a-a812-469c-9f29-a285d924134a", + "5ba346a4-f139-4348-b6e6-3eb2d16b83fc" ) - .receiverUserId("c581ccb9-aa16-41e2-bec4-09ae24384255"); + .receiverUserId("d75c6be3-5e9d-4256-bc9c-c959ea873752"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java index 6e6fe27..fef7e42 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java @@ -12,14 +12,14 @@ public class CreateCampaignTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"5907704a-6730-41fd-85b9-2c95e35a3a0b","c8b53f99-3b77-4329-a812-f1ec9b21671b","eb5011c6-da36-4d94-8ac3-c522c7fa359d"}); + .applicableShopIds(new String[]{"c0fa9da8-76e8-4bc8-b5f1-632bfabf3eb5","66076710-63db-4702-9fce-1236de6b250a","a197aeac-5e3d-42f2-a01f-231c2f08c253","8b8fd414-5e71-4607-affd-dfecc507e890","d8de25db-d611-41e8-98e3-d7bcb022ba01","a20d50a7-c36c-455d-9e83-b27dcce872f8","091fa762-0de2-4893-9fc9-a5313f7c9a8c"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -34,15 +34,15 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"b3a30f6c-d4cd-492b-8bc6-982efb72e8a1","b890bc48-c36b-4354-9c48-91c5dbb06afb","4c3d0960-e747-4caf-9229-07d7c082e4d5","63fb1142-6801-49d6-95da-71dbfd26a7e1","116eefb1-639b-4586-b2ed-0cfff5f6767c","67386841-db78-407a-9fdf-021a8b9d0146","65548214-e7d5-40c6-b682-eee9627cc068"}) - .bearPointShopId("3867ad2c-76f6-406c-8d5d-6d7db08283c9"); + .applicableShopIds(new String[]{"ebcef284-a8bb-463c-9d77-4323d5fd4218"}) + .bearPointShopId("59d38ece-7356-4a1f-bf4e-12ebbdf2ef58"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,16 +57,16 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"6d43b906-651e-4405-9adc-14ffb85786f5","7d7056af-db6f-4a4f-8510-ae6eead2b2a6","53e9445f-c6c0-4429-bf4b-32f250e98961","5559e2ce-139e-465d-aa05-463fff20333a","09cfde92-8621-432d-b02a-d011f0283e5e"}) - .description("sN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE1hEG2Ek") - .bearPointShopId("a0a75deb-72dd-465e-8cd0-05325678ba0d"); + .applicableShopIds(new String[]{"9b97c077-0594-4a62-bb3c-bda9e8166974","e0a2d548-ca0a-4c28-b10b-1fa0af8b3f37"}) + .description("h4XHkBbxR0RnLtirGJS2N5S6EEO5Bp0TaBrmndiCNxXXwj") + .bearPointShopId("f30ba5c6-48e1-4926-921b-5ec132ef580a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -81,17 +81,17 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"69379425-1008-431d-8916-efd02b10f1f9","e5afaa02-c73e-4b37-bb48-aa3e4c403e89","e8e8a085-2557-46b7-a4c5-9e5e3b7a5ae5","6f9d91a7-dd5c-4cb7-a8a9-70fe5c9856f3","d8dfba6b-43c2-48b9-badd-8e207b381308","95937bbc-621f-4d12-8229-9642fe742928","8c2074b1-389e-4d18-9983-fd4e371fac2f"}) - .status("disabled") - .description("E0n87A30l6vspNWH9u8x4Yq2mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ff") - .bearPointShopId("4a270b59-c3c1-4b65-9fab-04807155db36"); + .applicableShopIds(new String[]{"5c625afb-e6bd-4865-9e54-62ae608aa8ae","bf21c3f8-98a4-48a6-9f3d-5c9381d309e6","c57304e5-f630-4359-9c9e-7010fc21e989","15885351-8993-4a43-9ac8-3b7aedbbc1fc","9d229aed-732e-4edb-b816-272832a00a7d","9d661f9b-cd85-444f-877b-dd5d963d2747","7fdbda95-d638-41fa-9b02-c9e39d8c7d9a","1284f3df-e018-4271-ab4f-d6f8db415e49"}) + .status("enabled") + .description("cWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5H") + .bearPointShopId("d2ae72cc-ae4a-4d63-8984-ced3f41a473d"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -106,18 +106,18 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"bdd50904-966b-4dbb-b02e-d71a93ad6dd8","c180197c-193e-40e9-87c3-dc54710cab69","b7d97953-8a42-4c55-8965-0635d7705f2d","05d9b269-b4db-4a71-8906-a49a2389514d","53f24d4f-4f63-45ea-b9f1-0c05c3192ac2","6d51375f-a63b-4d4b-ac53-a446a89b11c7"}) - .pointExpiresAt("2022-03-04T07:27:56.000000Z") + .applicableShopIds(new String[]{"405d9217-0954-4243-adb3-3430a2b4f9f9","a2034002-634b-4989-9a5b-9213447539bd","516d56ff-c933-4e1f-b9b8-b2d7d74d3c49","c977b7f4-0ac3-4dab-a539-5f828e954ed6","093da859-eb94-40a2-8010-10603699efff","ddc839ff-7684-4f8e-a789-a94d2fb2f85f","d2d14713-1f28-4079-a445-33e1add7256c"}) + .pointExpiresAt("2020-03-04T19:00:06.000000Z") .status("enabled") - .description("LuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC39nZBUv4F8J7UzyDYEv7bctcmIqdmvTV8RBzp0gixsK") - .bearPointShopId("d12b845a-9510-43d7-af55-afabd0e15793"); + .description("E4T1vOrKA4IwgS5AgijWRyxneekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJAVzV6vyI6ywfpyKil") + .bearPointShopId("32ea14bd-23ea-4328-b5bd-83609e6252fa"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -132,19 +132,19 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"5129d44f-0152-4a3a-8cb9-abffe94f0714","70b32f38-20a3-46ad-919f-1e3efd957d44","26219476-e939-405b-940e-5dd7316295b3","ed4fd8df-5c04-462f-b4ef-92979752f56e","ecab59f2-f216-4bf5-b5c4-883d7c71ac01","59bd5f2e-aef8-4e78-9b52-b7a78d10f78d"}) - .pointExpiresInDays(7576) - .pointExpiresAt("2023-08-05T02:11:40.000000Z") + .applicableShopIds(new String[]{"72e207b8-5670-46e0-aeb5-3cb7a367a504","c86cee22-97eb-4aba-ad46-c1b011077316","a443107f-c6bf-48a8-a8c4-6a0cbd15b459","64681762-cfd0-4acc-988c-456a0cf82f01","91708575-69db-4777-83f2-7970ec98f3a5","c2a01f65-2c44-439d-bca2-89b084495808","06e3e241-1aa1-4abe-b949-68c4bc615459","d3b74708-1a50-4034-a13c-57f32f1438fb"}) + .pointExpiresInDays(3346) + .pointExpiresAt("2021-12-12T18:34:41.000000Z") .status("disabled") - .description("kiR4daTST401zYU9O5bmxo5R8HDeIrg38UDixRQOsOxJyiut30") - .bearPointShopId("3ca2b36f-445f-4388-9206-17a809bf05f3"); + .description("Nwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcU") + .bearPointShopId("ec017ba6-6ccf-4b9d-8084-7317d655d747"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -159,20 +159,20 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"43680453-40cc-4a23-915f-0c6020782fe9","55769d26-45a8-4b34-8a46-9816f75d8514","962bb4c1-15d7-49de-aa76-2b9aad9963a3","74ffebce-382f-4f22-bf46-a56ce38ec102","33663cfd-21cd-4184-a947-c668bd55871b","9cc23acf-4c00-4637-8d6a-7f0aab4ad005","2e630fef-5e0d-489f-ae84-54a91762a046","d48528e9-d448-4b4c-a2f4-a44e19e6620d"}) - .setExclusive(false) - .pointExpiresInDays(5594) - .pointExpiresAt("2024-01-26T14:59:07.000000Z") - .status("disabled") - .description("7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9k") - .bearPointShopId("0b3c2c76-0f49-417e-ba20-32e3dc79c4b3"); + .applicableShopIds(new String[]{"0c0b74e5-ff59-4075-a1b5-7244902b3ef6","59b1110c-88e5-4e4a-b3ee-6e385e129fa7","54f374a6-7dec-42e8-803b-4749ab264084","d9a41055-79a0-4663-8d7e-5a6729e3dcc9","70b93908-3f6b-40d9-b0ae-946f6672ea4e"}) + .setExclusive(true) + .pointExpiresInDays(8329) + .pointExpiresAt("2023-10-16T03:27:00.000000Z") + .status("enabled") + .description("U4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwk") + .bearPointShopId("53255918-6064-4fa4-b201-72c19f7cf62a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -187,21 +187,21 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"3233323b-118a-4ee7-9182-3088ea5e9515","7fcce72f-d066-4fd6-8363-2977f15ef4cb","98b99fc5-9715-453f-8f41-a26cfc981986","f6e8ee4d-a3d5-4e15-ac95-039478d88e5c","f1304959-93e2-416c-a37b-9ec1082471ee","8d94a54f-cf18-42ca-955d-e7ff46aaff20"}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(164) - .pointExpiresAt("2021-01-10T21:46:04.000000Z") - .status("disabled") - .description("YgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79qoFTViWGk7rsKgu") - .bearPointShopId("7220fe40-9fb2-4469-a880-b8ef757ac34d"); + .applicableShopIds(new String[]{"676b0144-ed8d-4def-928b-ff792512744e","98ba5b71-1432-45a0-bcd0-8ad732e9339d","94adccb9-41e5-4ed0-9a8f-7c487a656687","d0fc785f-885c-4eb1-96b1-6b3697ebdc98","6e597f0c-2844-4ae0-ac63-8683bf3b1245","18b4bf35-58db-4f87-ad9b-8d7b5d9ac772","052f6809-e6b4-4098-9449-9aad7c1af77b","dfe59db9-532d-4809-bef1-4c5dcd79e3c3"}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(5618) + .pointExpiresAt("2021-03-30T10:55:59.000000Z") + .status("enabled") + .description("klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iBoGU1OxUmIl") + .bearPointShopId("277e163a-6406-4a81-b709-d76a08f6d53d"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -236,22 +236,22 @@ void test8() throws ConnectionError, ProcessingError { items4.addProperty("subject_more_than_or_equal", 1000); items4.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"658543a0-00f8-4428-84aa-155b0c94df73","cb1affe6-0055-47b3-9b80-3bd439bf55aa","efffde14-f5c3-488c-b1c1-25fc069e8f38","d0f43b66-a3d6-45b5-9c03-bfeef84419eb","b6b03683-907a-48f9-a107-5b4d85a6316f","b9a5f81c-8c36-412c-9048-23ce9bccc0ff","0f588a8b-1046-49ea-8e31-7cb64209664d","1e5171f4-e131-4a4e-9707-b9ceb4debd2e","287a9988-84de-45fc-a4fb-de86366f3ad4","165af330-8692-4f97-8c5b-070965140396"}) + .applicableShopIds(new String[]{"b9fb856c-949c-49d7-b8c0-bd99496fd9f2","f2ce2c66-a203-4794-9045-d74b3efcd84d","c7e7875f-e5d1-4982-b8c6-74a79edfd99e"}) .amountBasedPointRules(new Object[]{items,items2,items3,items4}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(8993) - .pointExpiresAt("2022-11-29T18:34:52.000000Z") - .status("disabled") - .description("iaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrE") - .bearPointShopId("4e803ceb-cbd5-4ef2-8b5d-74d55fa15309"); + .subject("all") + .setExclusive(true) + .pointExpiresInDays(2985) + .pointExpiresAt("2021-01-11T11:12:15.000000Z") + .status("enabled") + .description("PLb59yfzniw8Z7TrjWh0BQdrr7bOC0AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HI") + .bearPointShopId("08389dd1-e32a-4734-81e0-5c1aa6fd076e"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -304,37 +304,26 @@ void test9() throws ConnectionError, ProcessingError { JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); - JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); - JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items7.addProperty("subject_more_than_or_equal", 1000); + items7.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"61c54144-fcac-47d9-a461-ced5c04d01ff","e4eda0cd-4140-4dd3-b48a-3517c56906fb"}) - .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .amountBasedPointRules(new Object[]{items8,items9}) + .applicableShopIds(new String[]{"fe95a700-3112-41d7-80d0-411f127c16fa","112903ae-4211-4b1a-841b-b43fee6c4939","c37d37c3-3fcd-4730-af8d-d0de7393193c","5f13a588-566f-45cc-8c2f-f49143c3a613","087b53df-6336-4461-bf04-ea20829b94bb","0ae2c6fe-fceb-44b4-b4a6-23d66df3efbd","a07a1c5d-7061-4d06-a694-227d784daa42","ba3c9300-0dec-496b-9145-f095c7a652bd","1caae1f4-c6e1-40c5-870e-42b86e89c4f8","9a63712e-148f-4a62-9954-eb709d9abbe4"}) + .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6}) + .amountBasedPointRules(new Object[]{items7}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(2564) - .pointExpiresAt("2022-03-27T05:22:02.000000Z") - .status("enabled") - .description("9RliuqOBINm") - .bearPointShopId("1508f3b4-0651-4022-b737-9d5b2511702f"); + .setExclusive(true) + .pointExpiresInDays(7978) + .pointExpiresAt("2020-06-30T17:05:45.000000Z") + .status("disabled") + .description("wS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZf9Kmzx2c") + .bearPointShopId("6b12ea53-e2f6-4963-9273-15e7289e4066"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -355,20 +344,35 @@ void test10() throws ConnectionError, ProcessingError { items2.addProperty("product_code", "4912345678904"); items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); + items3.addProperty("point_amount", 5); + items3.addProperty("point_amount_unit", "percent"); items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); + items3.addProperty("is_multiply_by_count", true); + items3.addProperty("required_count", 2); JsonObject items4 = new JsonObject(); + items4.addProperty("point_amount", 5); + items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); + items4.addProperty("is_multiply_by_count", true); + items4.addProperty("required_count", 2); JsonObject items5 = new JsonObject(); + items5.addProperty("point_amount", 5); + items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); + items5.addProperty("is_multiply_by_count", true); + items5.addProperty("required_count", 2); JsonObject items6 = new JsonObject(); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); + items6.addProperty("is_multiply_by_count", true); + items6.addProperty("required_count", 2); JsonObject items7 = new JsonObject(); + items7.addProperty("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"); @@ -384,85 +388,13 @@ void test10() throws ConnectionError, ProcessingError { JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); + items10.addProperty("subject_more_than_or_equal", 1000); + items10.addProperty("subject_less_than", 5000); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); items11.addProperty("subject_more_than_or_equal", 1000); items11.addProperty("subject_less_than", 5000); - Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" - ) - .applicableShopIds(new String[]{"167e148a-f60d-4028-b971-afe9e382d27b","ac0c702a-f3fa-4bab-8656-cfd1e7757485","c6ef7a6f-5b16-4007-a53e-d10e90a9d33a"}) - .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .productBasedPointRules(new Object[]{items8,items9,items10}) - .amountBasedPointRules(new Object[]{items11}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(8894) - .pointExpiresAt("2023-08-22T21:01:30.000000Z") - .status("disabled") - .description("QJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs") - .bearPointShopId("c8946e96-32b3-417b-a8ea-37212adf9a9d"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test11() throws ConnectionError, ProcessingError { - 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("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"); @@ -483,26 +415,40 @@ void test11() throws ConnectionError, ProcessingError { items15.addProperty("point_amount_unit", "percent"); items15.addProperty("subject_more_than_or_equal", 1000); items15.addProperty("subject_less_than", 5000); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"df4b4a1f-db22-4544-84b1-bb8c58080a56","4d0d7ea5-4f59-44fb-bd6e-a43a248cbbd4","8b92295d-8868-43c5-a08a-8a9dcf0d68d1","af0a78fe-43cf-4acc-b46c-e70a73af16eb","11dc2fde-2f3a-49dd-92d0-84c9e4243741"}) - .applicableDaysOfWeek(new Integer[]{5,1,6}) - .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .productBasedPointRules(new Object[]{items10,items11}) - .amountBasedPointRules(new Object[]{items12,items13,items14,items15}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(4036) - .pointExpiresAt("2023-12-04T19:40:33.000000Z") + .applicableShopIds(new String[]{"c2e5c332-a6b8-4692-8e50-a5fb7b9fddd7"}) + .blacklistedProductRules(new Object[]{items,items2}) + .productBasedPointRules(new Object[]{items3,items4,items5,items6,items7,items8,items9}) + .amountBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(8963) + .pointExpiresAt("2020-07-21T21:33:23.000000Z") .status("enabled") - .description("LwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj") - .bearPointShopId("21eae237-9903-486a-a8ca-6faf6cd35db1"); + .description("R9lgptmz4n") + .bearPointShopId("8dad2079-01d6-4c3e-afd3-b6d58e74a286"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -515,19 +461,16 @@ void test11() throws ConnectionError, ProcessingError { } } @Test - void test12() throws ConnectionError, ProcessingError { + void test11() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); - items.addProperty("from", "12:00"); - items.addProperty("to", "23:59"); + items.addProperty("product_code", "4912345678904"); + items.addProperty("classification_code", "c123"); JsonObject items2 = new JsonObject(); items2.addProperty("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"); @@ -549,9 +492,8 @@ void test12() throws ConnectionError, ProcessingError { 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("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"); @@ -587,32 +529,26 @@ void test12() throws ConnectionError, ProcessingError { items14.addProperty("point_amount_unit", "percent"); items14.addProperty("subject_more_than_or_equal", 1000); items14.addProperty("subject_less_than", 5000); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"f4428aa8-2018-4961-bae4-5db03f8e3005","781c38c0-897f-4b4d-9730-d5d1c2553615","48608f45-8415-40b8-a287-a926e9dd5ff3","db65c1e9-c691-46b7-be57-fdeb56918886","839228f4-74fb-4eef-a16d-f65449b03e53","feec9c1f-6ca4-4949-88fd-b62dbf3cfcf3","d732deb3-9c00-4773-8673-f93d7a4b66f3","163a513a-d3b0-43e2-935a-f5b14948a6fc","5cb12b63-c3a0-47d2-8735-ba7295336d04"}) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{1,5,6,0,5}) - .blacklistedProductRules(new Object[]{items2}) - .productBasedPointRules(new Object[]{items3,items4,items5,items6,items7}) - .amountBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15}) + .applicableShopIds(new String[]{"5f771da4-11d3-498c-8532-c4ab722c6672","843c0347-e950-45c9-aa15-7600d506d191","be25723c-5f0e-47df-b8d2-b978c0ec9b70","d46e23c5-1e33-4974-a5c5-fb5046506369","55941961-4959-449e-858e-fe1a2eb6f4e5"}) + .applicableDaysOfWeek(new Integer[]{6,3,4,5,2,4,3,3,4}) + .blacklistedProductRules(new Object[]{items,items2,items3}) + .productBasedPointRules(new Object[]{items4,items5,items6}) + .amountBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14}) .subject("money") - .setExclusive(false) - .pointExpiresInDays(9667) - .pointExpiresAt("2023-04-07T15:17:38.000000Z") - .status("enabled") - .description("t6R89vRehYIZbMh6MfShA8D4E") - .bearPointShopId("e65a7cf6-32b7-400f-9a21-37cf67d8d1dc"); + .setExclusive(true) + .pointExpiresInDays(6446) + .pointExpiresAt("2021-03-06T16:47:56.000000Z") + .status("disabled") + .description("erEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrAS") + .bearPointShopId("ecf78f44-166a-4ddb-b956-02c7bd6bfd7b"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -625,7 +561,7 @@ void test12() throws ConnectionError, ProcessingError { } } @Test - void test13() throws ConnectionError, ProcessingError { + void test12() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -648,59 +584,38 @@ void test13() throws ConnectionError, ProcessingError { items7.addProperty("from", "12:00"); items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); JsonObject items9 = new JsonObject(); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("from", "12:00"); + items9.addProperty("to", "23:59"); JsonObject items10 = new JsonObject(); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("from", "12:00"); + items10.addProperty("to", "23:59"); JsonObject items11 = new JsonObject(); items11.addProperty("product_code", "4912345678904"); items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("classification_code", "c123"); JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); + items16.addProperty("classification_code", "c123"); JsonObject items17 = new JsonObject(); - items17.addProperty("point_amount", 5); - items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("classification_code", "c123"); JsonObject items18 = new JsonObject(); - items18.addProperty("point_amount", 5); - items18.addProperty("point_amount_unit", "percent"); items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("classification_code", "c123"); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); @@ -716,134 +631,15 @@ void test13() throws ConnectionError, ProcessingError { JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("subject_more_than_or_equal", 1000); - items21.addProperty("subject_less_than", 5000); + items21.addProperty("product_code", "4912345678904"); + items21.addProperty("is_multiply_by_count", true); + items21.addProperty("required_count", 2); JsonObject items22 = new JsonObject(); items22.addProperty("point_amount", 5); items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("subject_more_than_or_equal", 1000); - items22.addProperty("subject_less_than", 5000); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("subject_more_than_or_equal", 1000); - items23.addProperty("subject_less_than", 5000); - Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" - ) - .applicableShopIds(new String[]{"a4dae680-9ebe-44d4-9447-0754dca30b37","bdbcb730-824c-432f-a1c0-ee90f544750a","b81e6151-0e5d-42b2-9465-4af064ebe511","a2a60878-7968-448e-93d8-cb94cc8faf76","bd351dae-bd08-4d13-a64a-51f24aa1cbdf","02be5ffe-2394-4b71-bf01-93186575231f","157f190c-f3a7-4ff7-bcc3-65aa5b0da585","4df2778b-cdf7-432b-badd-ef767f6b4f1f"}) - .minimumNumberOfProducts(8904) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{5,4,1,4}) - .blacklistedProductRules(new Object[]{items8,items9,items10,items11}) - .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18,items19,items20}) - .amountBasedPointRules(new Object[]{items21,items22,items23}) - .subject("all") - .setExclusive(false) - .pointExpiresInDays(2046) - .pointExpiresAt("2022-03-14T05:45:03.000000Z") - .status("enabled") - .description("AdQSvr2jD2CPBEg6qDXhSH8hafJy0sDTnMPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14xB891rPV7FcdDeB61vcOZ1uNBAdr6lfzbfqKlnsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOt") - .bearPointShopId("5d0cd008-0741-4bef-bf29-048dce507f58"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test14() throws ConnectionError, ProcessingError { - JsonObject items = new JsonObject(); - items.addProperty("from", "12:00"); - items.addProperty("to", "23:59"); - JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); - JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); - JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); - JsonObject items5 = new JsonObject(); - items5.addProperty("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("product_code", "4912345678904"); - items17.addProperty("classification_code", "c123"); - JsonObject items18 = new JsonObject(); - items18.addProperty("point_amount", 5); - items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); - JsonObject items19 = new JsonObject(); - items19.addProperty("point_amount", 5); - items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); - JsonObject items20 = new JsonObject(); - items20.addProperty("point_amount", 5); - items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("product_code", "4912345678904"); - items20.addProperty("is_multiply_by_count", true); - items20.addProperty("required_count", 2); - JsonObject items21 = new JsonObject(); - items21.addProperty("point_amount", 5); - items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("product_code", "4912345678904"); - items21.addProperty("is_multiply_by_count", true); - items21.addProperty("required_count", 2); - JsonObject items22 = new JsonObject(); - items22.addProperty("point_amount", 5); - items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("product_code", "4912345678904"); - items22.addProperty("is_multiply_by_count", true); - items22.addProperty("required_count", 2); + 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"); @@ -877,36 +673,55 @@ void test14() throws ConnectionError, ProcessingError { 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); + items28.addProperty("product_code", "4912345678904"); + items28.addProperty("is_multiply_by_count", true); + items28.addProperty("required_count", 2); 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); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"a86289a7-3137-4d27-af70-362c4cda0814","3b373df5-b261-44e5-a337-a86cedcfe79a","6ecb2710-75cf-4a2e-b5ad-8e38607f33c1","066efe3d-0222-4a7c-a5b6-e2a879e26a3b","4c284a68-0554-4fee-a17d-55f28066d029","382227c6-6bd3-436a-a2c2-d7fda50a91ba","e229141c-028e-4f97-b12d-ca0ef81f99e8","d8d0cd69-2b52-44ea-9318-7754299d9597","019950ce-7cd3-4da7-9595-5f28dceb1155"}) - .minimumNumberOfAmount(1205) - .minimumNumberOfProducts(1449) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{3,0,2,6,5}) - .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17}) - .productBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24,items25,items26,items27}) - .amountBasedPointRules(new Object[]{items28,items29}) + .applicableShopIds(new String[]{"67d63bb6-d9f2-4851-95be-4ed7f8389685","8764e02b-a766-40ac-8528-b2d0dee955fb","3cc80401-eb37-4773-9796-e7b295c51566"}) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{5,6,5,2,2,4,0,4}) + .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18}) + .productBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25,items26,items27,items28}) + .amountBasedPointRules(new Object[]{items29,items30,items31,items32,items33}) .subject("money") .setExclusive(false) - .pointExpiresInDays(5580) - .pointExpiresAt("2024-08-01T12:57:01.000000Z") + .pointExpiresInDays(2623) + .pointExpiresAt("2023-12-07T21:46:12.000000Z") .status("disabled") - .description("cWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjP") - .bearPointShopId("c5f62e06-7f17-4426-92ac-f1a83e64c546"); + .description("2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2P") + .bearPointShopId("eb4a55e3-f01a-41ea-8d14-580c952f8bdc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -919,7 +734,7 @@ void test14() throws ConnectionError, ProcessingError { } } @Test - void test15() throws ConnectionError, ProcessingError { + void test13() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -939,70 +754,99 @@ void test15() throws ConnectionError, ProcessingError { items6.addProperty("from", "12:00"); items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("classification_code", "c123"); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); JsonObject items16 = new JsonObject(); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("classification_code", "c123"); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); items18.addProperty("subject_more_than_or_equal", 1000); items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"5d9c5908-df18-45cd-ab1e-e2b0d517d25c","c722168f-8abe-40c4-8c7c-8a88b433f764","fc7207f7-82c0-4f15-96d8-f12409d015a2","41c62b31-25aa-4624-9f3f-4de018cd3bee","9be2e2bf-a866-4a50-9a1e-fef424139a88","bf6620fa-9747-47f5-aed6-308876f6d9ca","78481ea8-2ce2-477c-b4c3-c41fd13cc483","b2f9a8ee-d773-429a-afe0-d7ff75bc6ffc"}) - .minimumNumberForCombinationPurchase(8486) - .minimumNumberOfAmount(4679) - .minimumNumberOfProducts(8725) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{3,4,2,6}) - .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16}) - .productBasedPointRules(new Object[]{items17}) - .amountBasedPointRules(new Object[]{items18}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(1676) - .pointExpiresAt("2024-03-24T10:38:38.000000Z") - .status("disabled") - .description("r7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6Mis") - .bearPointShopId("9f337750-19a8-4dd4-81d8-003bd1fc6d76"); + .applicableShopIds(new String[]{"bdc0f29e-7601-43b2-a3f4-76913c8e20f6","cc649aed-835a-4afa-882f-59bdd957ee16","ab45a87b-6c75-4717-8d47-303514f82733","0368dd2d-55f1-4edd-9ad7-7dd4ef038d00","2c6671d9-b37f-4a02-ba02-5210dd995ea0"}) + .minimumNumberOfProducts(6945) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) + .applicableDaysOfWeek(new Integer[]{2,3,5,0,5,2,5,0,6}) + .blacklistedProductRules(new Object[]{items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17,items18,items19,items20}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(417) + .pointExpiresAt("2022-09-14T02:35:01.000000Z") + .status("enabled") + .description("Nz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlH") + .bearPointShopId("d4141dee-d7af-4de4-884d-601b7488f382"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1015,13 +859,13 @@ void test15() throws ConnectionError, ProcessingError { } } @Test - void test16() throws ConnectionError, ProcessingError { + void test14() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); items3.addProperty("product_code", "4912345678904"); items3.addProperty("classification_code", "c123"); @@ -1029,14 +873,23 @@ void test16() 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"); @@ -1064,38 +917,49 @@ void test16() 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("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"013b0a99-f0c1-4450-bebc-59276a539257","fb6937d6-44fd-4d2c-a6b0-16a592992ac0","5991d5a1-f95c-4c8d-aeeb-5f4963c3c6b2","eaf58ae3-5c70-45db-a9da-d2726b4fe55f","f466ca77-d82f-4ce8-b4e0-198210a8cb90","da9952fd-9930-439d-8ea3-5f1ad49d075e","92bf133b-25fe-419a-b2e4-3a683b2a51d4","f42f6a9c-3382-4873-8990-bf189801a753","4286dffb-a63a-410c-b88f-69185e691ece","69340d9f-d0ba-4dbd-bea2-27d828808784"}) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(8003) - .minimumNumberOfAmount(7361) - .minimumNumberOfProducts(77) - .applicableTimeRanges(new Object[]{items,items2}) - .applicableDaysOfWeek(new Integer[]{3,0,3,0,2,4,6,0,2}) - .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7}) - .productBasedPointRules(new Object[]{items8,items9,items10,items11}) - .amountBasedPointRules(new Object[]{items12,items13}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(2597) - .pointExpiresAt("2020-03-27T07:03:19.000000Z") + .applicableShopIds(new String[]{"60cb620b-9ebf-428b-a01b-e34112a2d964","7864fc7d-f457-4f0a-99df-e480cce1e83c","674cf45e-68b9-4512-8890-5beadfc6f007","9c0a304e-4108-4cc1-accf-6b463b441ed7","036c135f-2d23-4c44-b0e6-5f320ef05c22","9f271a38-2f23-4006-8e0c-92a61c68f293","a0d1e2f2-1a6c-47f7-8c8e-96bba3f614a0","7e1bc6e2-ae39-451a-ba8c-be2b2eb117d9"}) + .minimumNumberOfAmount(5588) + .minimumNumberOfProducts(7726) + .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,items14}) + .amountBasedPointRules(new Object[]{items15}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(1723) + .pointExpiresAt("2022-04-22T10:48:29.000000Z") .status("disabled") - .description("9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO") - .bearPointShopId("64659729-edbc-420a-b542-9b973fb793a2"); + .description("MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9") + .bearPointShopId("9529ebcc-27aa-4a9a-a724-498458d7e7b6"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1108,31 +972,100 @@ void test16() throws ConnectionError, ProcessingError { } } @Test - void test17() throws ConnectionError, ProcessingError { + void test15() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("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("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( + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" + ) + .applicableShopIds(new String[]{"bafd2a34-8def-4512-97ef-f7d2b622fcf8","2b446b1c-fd4b-442b-91be-73b5cc37bacb","77d4269c-f20c-47a6-9e85-a1526012cd18","f7d464f2-5ead-4833-a916-022824af3d86","ab536a68-b0fb-448e-b865-c4679ca7bb8e"}) + .minimumNumberForCombinationPurchase(9934) + .minimumNumberOfAmount(6106) + .minimumNumberOfProducts(7254) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{6,4,2,1}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7}) + .productBasedPointRules(new Object[]{items8}) + .amountBasedPointRules(new Object[]{items9}) + .subject("all") + .setExclusive(false) + .pointExpiresInDays(4861) + .pointExpiresAt("2021-08-29T05:49:59.000000Z") + .status("disabled") + .description("WlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnme") + .bearPointShopId("8b1ce609-2068-4635-81d1-94c5794c54c2"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test16() throws ConnectionError, ProcessingError { + JsonObject items = new JsonObject(); + items.addProperty("from", "12:00"); + items.addProperty("to", "23:59"); + JsonObject items2 = new JsonObject(); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); + JsonObject items3 = new JsonObject(); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); + JsonObject items4 = new JsonObject(); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); + JsonObject items5 = new JsonObject(); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); + JsonObject items6 = new JsonObject(); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); + JsonObject items7 = new JsonObject(); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); + JsonObject items8 = new JsonObject(); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); JsonObject items9 = new JsonObject(); items9.addProperty("from", "12:00"); items9.addProperty("to", "23:59"); @@ -1152,8 +1085,11 @@ void test17() 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"); @@ -1205,15 +1141,13 @@ void test17() throws ConnectionError, ProcessingError { JsonObject items24 = new JsonObject(); items24.addProperty("point_amount", 5); items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("product_code", "4912345678904"); - items24.addProperty("is_multiply_by_count", true); - items24.addProperty("required_count", 2); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); JsonObject items25 = new JsonObject(); items25.addProperty("point_amount", 5); items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("product_code", "4912345678904"); - items25.addProperty("is_multiply_by_count", true); - items25.addProperty("required_count", 2); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); JsonObject items26 = new JsonObject(); items26.addProperty("point_amount", 5); items26.addProperty("point_amount_unit", "percent"); @@ -1229,104 +1163,46 @@ void test17() 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); + JsonObject items30 = new JsonObject(); + items30.addProperty("point_amount", 5); + items30.addProperty("point_amount_unit", "percent"); + items30.addProperty("subject_more_than_or_equal", 1000); + items30.addProperty("subject_less_than", 5000); + JsonObject items31 = new JsonObject(); + items31.addProperty("point_amount", 5); + items31.addProperty("point_amount_unit", "percent"); + items31.addProperty("subject_more_than_or_equal", 1000); + items31.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"93257eac-0ab0-4154-8961-2d3dc674afa1"}) - .maxPointAmount(2958) + .applicableShopIds(new String[]{"9c38e70a-44dc-4ac3-9a4a-4b3df03b6f74","bed9b420-53ac-4f72-9561-a3b615d8ccc6","f309b5e7-dcf0-4637-a95c-6204a7b889a4","a4055af9-eb8f-477e-ad30-aea122d8e2e8","8101c184-8dd9-4925-b108-b69a9f512f44"}) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(645) - .minimumNumberOfAmount(1165) - .minimumNumberOfProducts(8850) + .minimumNumberForCombinationPurchase(9480) + .minimumNumberOfAmount(7106) + .minimumNumberOfProducts(8408) .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) - .applicableDaysOfWeek(new Integer[]{2,3,5}) - .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15}) - .productBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23,items24,items25}) - .amountBasedPointRules(new Object[]{items26,items27,items28}) + .applicableDaysOfWeek(new Integer[]{3,6,6,4,5,3,2,3,3}) + .blacklistedProductRules(new Object[]{items11,items12,items13,items14}) + .productBasedPointRules(new Object[]{items15,items16,items17,items18,items19,items20,items21,items22,items23}) + .amountBasedPointRules(new Object[]{items24,items25,items26,items27,items28,items29,items30,items31}) .subject("all") .setExclusive(false) - .pointExpiresInDays(5055) - .pointExpiresAt("2023-03-03T21:23:26.000000Z") + .pointExpiresInDays(8753) + .pointExpiresAt("2020-06-06T12:03:24.000000Z") .status("disabled") - .description("XXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WI") - .bearPointShopId("c977b7f4-0ac3-4dab-a539-5f828e954ed6"); - try { - PartnerAPITest.getClient().send(request); - } catch (PartnerRequestError e) { - if (e.getType().equals("invalid_parameters")) { - System.out.println(e.getType()); - System.out.println(e.getMessage()); - System.out.println(e.getRawJson()); - } - assertNotEquals("invalid_parameters", e.getType()); - } - } - @Test - void test18() throws ConnectionError, ProcessingError { - JsonObject items = new JsonObject(); - items.addProperty("from", "12:00"); - items.addProperty("to", "23:59"); - JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); - JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); - JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); - JsonObject items5 = new JsonObject(); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); - JsonObject items6 = new JsonObject(); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); - JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); - JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); - JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); - Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" - ) - .applicableShopIds(new String[]{"51abeb94-00a2-4580-9060-efffddc839ff","05207684-2f8e-4267-894d-f85fd2d14713","ad351f28-6079-42e4-85e1-256c69d8c247","cb91613b-da37-48a9-b602-aa71a94545bc","2d4d922e-f794-4845-8fb4-85014d0b48d4","347c6031-7ff6-414f-b20c-b482317519cb","0253d98d-cf41-4a1e-b449-e277a7b67aa5","242f0104-27e7-4619-93b5-10c14521aa01","21b20767-a121-4069-898b-3d5b6172b4a7","25c78b2a-b46a-45d7-88d2-7179d5182ca9"}) - .maxTotalPointAmount(2297) - .maxPointAmount(3609) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(7151) - .minimumNumberOfAmount(2668) - .minimumNumberOfProducts(5412) - .applicableTimeRanges(new Object[]{items,items2}) - .applicableDaysOfWeek(new Integer[]{6,6,0,3,1,5,4}) - .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7}) - .productBasedPointRules(new Object[]{items8}) - .amountBasedPointRules(new Object[]{items9}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(906) - .pointExpiresAt("2021-04-08T00:19:48.000000Z") - .status("enabled") - .description("evW68NKpdkq0PMSo6iR11TAHpgNTXOx") - .bearPointShopId("87223ac6-6082-4aa1-bd26-17778d231371"); + .description("V3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h3a") + .bearPointShopId("fd410e79-6410-40d9-82f8-44a1e890284e"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1339,7 +1215,7 @@ void test18() throws ConnectionError, ProcessingError { } } @Test - void test19() throws ConnectionError, ProcessingError { + void test17() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -1362,62 +1238,35 @@ void test19() throws ConnectionError, ProcessingError { items7.addProperty("from", "12:00"); items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("is_multiply_by_count", true); - items9.addProperty("required_count", 2); + items9.addProperty("from", "12:00"); + items9.addProperty("to", "23:59"); JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); + items10.addProperty("from", "12:00"); + items10.addProperty("to", "23:59"); JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("classification_code", "c123"); JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); + items16.addProperty("classification_code", "c123"); JsonObject items17 = new JsonObject(); - items17.addProperty("point_amount", 5); - items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("classification_code", "c123"); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); @@ -1434,34 +1283,72 @@ void test19() throws ConnectionError, ProcessingError { items20.addProperty("point_amount_unit", "percent"); items20.addProperty("subject_more_than_or_equal", 1000); items20.addProperty("subject_less_than", 5000); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); + JsonObject items26 = new JsonObject(); + items26.addProperty("point_amount", 5); + items26.addProperty("point_amount_unit", "percent"); + items26.addProperty("subject_more_than_or_equal", 1000); + items26.addProperty("subject_less_than", 5000); + JsonObject items27 = new JsonObject(); + items27.addProperty("point_amount", 5); + items27.addProperty("point_amount_unit", "percent"); + items27.addProperty("subject_more_than_or_equal", 1000); + items27.addProperty("subject_less_than", 5000); + JsonObject items28 = new JsonObject(); + items28.addProperty("point_amount", 5); + items28.addProperty("point_amount_unit", "percent"); + items28.addProperty("subject_more_than_or_equal", 1000); + items28.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"b232d627-16e8-456b-8c93-628b4306078a","03643582-0b85-4f70-bd5a-acbe8f5418d6","194600a2-bb96-4c61-8468-100a21e1c3f0","a6a61e46-8c1c-4d13-bb02-e01bc25ee3d0"}) - .destPrivateMoneyId("46ab49fc-5d7f-4698-bc0c-101cd3803495") - .maxTotalPointAmount(8305) - .maxPointAmount(4500) + .applicableShopIds(new String[]{"8fb414a4-6012-417f-a71f-90a02f3e865c","9b6fe81e-45cf-4319-804a-b839408d8efe","0691c084-bbec-4c7a-8f2d-80b72d6e7596","0e85051e-5148-4c0f-8df3-9d376dd4e2ad","8616a8f2-12ae-4938-984d-dba6716a363c","05d7c8f7-8c22-4370-9d0e-6a1e0d7f3bbf","93ee4e9b-24a7-44db-8a3e-6e0d659a6381","59d477e6-c1df-496f-83f2-fdb24f70fdfc"}) + .maxPointAmount(8063) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(1072) - .minimumNumberOfAmount(6237) - .minimumNumberOfProducts(8931) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{3,6,6,4,1,5,2,4}) - .blacklistedProductRules(new Object[]{items8}) - .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16,items17,items18}) - .amountBasedPointRules(new Object[]{items19,items20}) + .minimumNumberForCombinationPurchase(3872) + .minimumNumberOfAmount(689) + .minimumNumberOfProducts(4105) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{6,3,4,2,6,5,2}) + .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16,items17}) + .productBasedPointRules(new Object[]{items18}) + .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25,items26,items27,items28}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(2086) - .pointExpiresAt("2020-04-13T12:51:34.000000Z") + .setExclusive(true) + .pointExpiresInDays(9107) + .pointExpiresAt("2022-04-23T12:58:29.000000Z") .status("enabled") - .description("vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsP") - .bearPointShopId("3cf579ef-5eb2-42f6-abbf-6ce36c4fbcda"); + .description("DfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZq") + .bearPointShopId("6c6db698-aa56-4e0f-9a67-5cb9256f5cc3"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1474,10 +1361,7 @@ void test19() throws ConnectionError, ProcessingError { } } @Test - void test20() throws ConnectionError, ProcessingError { - JsonObject applicable_account_metadata = new JsonObject(); - applicable_account_metadata.addProperty("key", "sex"); - applicable_account_metadata.addProperty("value", "male"); + void test18() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -1485,20 +1369,120 @@ void test20() throws ConnectionError, ProcessingError { items2.addProperty("from", "12:00"); items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("point_amount", 5); + items5.addProperty("point_amount_unit", "percent"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("is_multiply_by_count", true); + items5.addProperty("required_count", 2); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("is_multiply_by_count", true); + items6.addProperty("required_count", 2); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); + JsonObject items8 = new JsonObject(); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("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); + Request request = new CreateCampaign( + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" + ) + .applicableShopIds(new String[]{"31cdead9-3c7f-401b-aa8d-0434c763b8ca","928264f9-a482-4427-8bf8-95bc20e5e2d5","b550cb71-d701-416d-a1b9-392aca2145dc","ae35c3d1-8cba-4f1c-995d-b17c0007669d"}) + .maxTotalPointAmount(5143) + .maxPointAmount(9504) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(7994) + .minimumNumberOfAmount(9040) + .minimumNumberOfProducts(4307) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{0,2,0,4,0,6,0}) + .blacklistedProductRules(new Object[]{items3,items4}) + .productBasedPointRules(new Object[]{items5,items6,items7}) + .amountBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(1547) + .pointExpiresAt("2020-12-16T05:35:03.000000Z") + .status("enabled") + .description("jexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1") + .bearPointShopId("7fcfb2da-cf11-462f-87ae-782da38bcf7d"); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test19() throws ConnectionError, ProcessingError { + JsonObject items = new JsonObject(); + items.addProperty("from", "12:00"); + items.addProperty("to", "23:59"); + JsonObject items2 = new JsonObject(); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); + 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"); @@ -1512,17 +1496,29 @@ void test20() throws ConnectionError, ProcessingError { items11.addProperty("product_code", "4912345678904"); items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("classification_code", "c123"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); @@ -1556,33 +1552,28 @@ void test20() throws ConnectionError, ProcessingError { JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("product_code", "4912345678904"); - items21.addProperty("is_multiply_by_count", true); - items21.addProperty("required_count", 2); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); JsonObject items22 = new JsonObject(); items22.addProperty("point_amount", 5); items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("product_code", "4912345678904"); - items22.addProperty("is_multiply_by_count", true); - items22.addProperty("required_count", 2); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); JsonObject items23 = new JsonObject(); items23.addProperty("point_amount", 5); items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("product_code", "4912345678904"); - items23.addProperty("is_multiply_by_count", true); - items23.addProperty("required_count", 2); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); JsonObject items24 = new JsonObject(); items24.addProperty("point_amount", 5); items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("product_code", "4912345678904"); - items24.addProperty("is_multiply_by_count", true); - items24.addProperty("required_count", 2); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); JsonObject items25 = new JsonObject(); items25.addProperty("point_amount", 5); items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("product_code", "4912345678904"); - items25.addProperty("is_multiply_by_count", true); - items25.addProperty("required_count", 2); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); JsonObject items26 = new JsonObject(); items26.addProperty("point_amount", 5); items26.addProperty("point_amount_unit", "percent"); @@ -1593,75 +1584,34 @@ void test20() throws ConnectionError, ProcessingError { 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", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"a08b534b-8484-46a8-a1bb-6f9c4bfe0466","983dbe34-9037-4930-8d44-0c77ec02ff91","95bfea86-93b5-4959-9f9e-edacaeca4091","6b4dd3c9-f1b6-4dd3-a585-ec15dd16ed41","e5232fa6-bda2-4dad-a6a4-b027501160cf","56530d05-43c2-4294-842b-03c2ef74dce7","adf90152-c595-4b96-bc14-c19147994541"}) - .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("bd69dc67-93ed-4eea-85de-e7f86a483e90") - .maxTotalPointAmount(5697) - .maxPointAmount(5312) - .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(true) - .pointExpiresInDays(9158) - .pointExpiresAt("2021-06-30T00:37:58.000000Z") + .applicableShopIds(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"}) + .destPrivateMoneyId("3537fe79-20fe-4d94-9c8b-3cafb8cb9b4f") + .maxTotalPointAmount(3897) + .maxPointAmount(2506) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(5338) + .minimumNumberOfAmount(7688) + .minimumNumberOfProducts(970) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{6}) + .blacklistedProductRules(new Object[]{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(false) + .pointExpiresInDays(5346) + .pointExpiresAt("2024-10-28T18:23:25.000000Z") .status("enabled") - .description("dsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQi") - .bearPointShopId("6a264609-5e2b-4175-967f-0ffab378b03a"); + .description("7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwp") + .bearPointShopId("1ce413f0-c4c9-42a5-8eaf-a6f51cc4641d"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1674,10 +1624,7 @@ void test20() throws ConnectionError, ProcessingError { } } @Test - void test21() throws ConnectionError, ProcessingError { - JsonObject applicable_transaction_metadata = new JsonObject(); - applicable_transaction_metadata.addProperty("key", "rank"); - applicable_transaction_metadata.addProperty("value", "bronze"); + void test20() throws ConnectionError, ProcessingError { JsonObject applicable_account_metadata = new JsonObject(); applicable_account_metadata.addProperty("key", "sex"); applicable_account_metadata.addProperty("value", "male"); @@ -1703,8 +1650,8 @@ void test21() 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"); @@ -1712,11 +1659,17 @@ void test21() 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"); @@ -1744,104 +1697,62 @@ void test21() 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); - 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); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"844a8264-bd0d-4254-8026-68169967945b","cb04ac60-18a1-45b2-8690-31be9e408a59","1efed1d6-2656-4c3b-8ea1-d667e1c0920b"}) - .applicableTransactionMetadata(applicable_transaction_metadata) + .applicableShopIds(new String[]{"f6b85bdf-b961-4992-8365-6365c26a1f4d","694e47e8-bb37-4613-8dbd-5877ca0a6d71","8d5f94f1-c33f-4eba-a65a-42fce076c7a0","5e3eea03-b0df-460b-85e0-4d86aff129af"}) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("ffce731d-2d5d-496b-a8c7-5c5b04dde23e") - .maxTotalPointAmount(6026) - .maxPointAmount(4578) + .destPrivateMoneyId("225f1744-c5e8-4390-8fef-a2895bb93ee2") + .maxTotalPointAmount(6042) + .maxPointAmount(3337) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(2379) - .minimumNumberOfAmount(9491) - .minimumNumberOfProducts(8536) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .applicableDaysOfWeek(new Integer[]{0,6,2}) - .blacklistedProductRules(new Object[]{items9,items10,items11,items12}) - .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19,items20,items21,items22}) - .amountBasedPointRules(new Object[]{items23,items24,items25,items26,items27,items28,items29}) + .minimumNumberForCombinationPurchase(5769) + .minimumNumberOfAmount(9713) + .minimumNumberOfProducts(9292) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{0,0,5,6,1}) + .blacklistedProductRules(new Object[]{items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16}) + .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22}) .subject("money") .setExclusive(true) - .pointExpiresInDays(5123) - .pointExpiresAt("2021-05-25T21:20:11.000000Z") - .status("disabled") - .description("L1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iB") - .bearPointShopId("c444f0ef-22c7-4555-b1cf-7b8d299f1103"); + .pointExpiresInDays(9448) + .pointExpiresAt("2021-01-06T17:21:36.000000Z") + .status("enabled") + .description("11gUrgWq51AuUounyHv57rDbv") + .bearPointShopId("6a0d631d-241a-4eed-b5bf-348cddebc04c"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1854,7 +1765,7 @@ void test21() throws ConnectionError, ProcessingError { } } @Test - void test22() 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"); @@ -1865,87 +1776,295 @@ void test22() throws ConnectionError, ProcessingError { items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); items3.addProperty("product_code", "4912345678904"); items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("classification_code", "c123"); + JsonObject items12 = new JsonObject(); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("classification_code", "c123"); + JsonObject items13 = new JsonObject(); + items13.addProperty("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); + 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" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .applicableShopIds(new String[]{"4f0246df-5981-4a55-8021-9ea7c2f0947d","b7608b6d-dc0b-4a1d-be49-376c277e163a","93096406-0a81-48b7-896a-d53d55d41502","b9fb856c-949c-49d7-b8c0-bd99496fd9f2","f2ce2c66-a203-4794-9045-d74b3efcd84d","c7e7875f-e5d1-4982-b8c6-74a79edfd99e","94f85643-a573-47b0-a88f-f736768c87b2","dee49b50-fd4c-4b62-b539-f9794e81ad2d","cb1ab366-3ffa-406e-a9f7-6e1a36eda71a"}) - .budgetCapsAmount(1117682233) + .applicableShopIds(new String[]{"862cff42-a871-4b59-a4b2-66382345d8d9","11d27c99-f36c-4104-b1ad-a305ff508534","e8f40224-f8d0-49d4-925b-206c7411d4ec","5121ae78-16b6-412a-b01a-049769b2f2ac","109e3d33-19e2-4b04-9582-b9b966b22a8f","609b5675-fa85-4ede-9da1-937f87879ff4","dbe25df8-8bde-41ec-a71e-93208549951e","e4a6a50a-d245-4b3a-b109-754003accb3d"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("e10a412e-5c5a-4b60-aeaa-c8b7ec6a4c54") - .maxTotalPointAmount(688) - .maxPointAmount(491) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(6104) - .minimumNumberOfAmount(6401) - .minimumNumberOfProducts(4191) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{2,0}) - .blacklistedProductRules(new Object[]{items2,items3}) - .productBasedPointRules(new Object[]{items4,items5,items6,items7,items8}) - .amountBasedPointRules(new Object[]{items9,items10,items11}) - .subject("money") + .destPrivateMoneyId("202a7e2a-4a4c-415d-9e92-ff8d08d3eae0") + .maxTotalPointAmount(4508) + .maxPointAmount(6732) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(402) + .minimumNumberOfAmount(799) + .minimumNumberOfProducts(7876) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{2,6,1,1,4,2,4,1}) + .blacklistedProductRules(new Object[]{items3,items4,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,items26}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(657) + .pointExpiresAt("2020-06-03T00:38:14.000000Z") + .status("disabled") + .description("TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnx") + .bearPointShopId("08bb7fad-d18a-4a1c-aebc-157371db6584"); + 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 applicable_transaction_metadata = new JsonObject(); + applicable_transaction_metadata.addProperty("key", "rank"); + applicable_transaction_metadata.addProperty("value", "bronze"); + JsonObject applicable_account_metadata = new JsonObject(); + applicable_account_metadata.addProperty("key", "sex"); + applicable_account_metadata.addProperty("value", "male"); + JsonObject items = new JsonObject(); + items.addProperty("from", "12:00"); + items.addProperty("to", "23:59"); + JsonObject items2 = new JsonObject(); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); + JsonObject items3 = new JsonObject(); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); + JsonObject items4 = new JsonObject(); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); + JsonObject items5 = new JsonObject(); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); + JsonObject items6 = new JsonObject(); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); + JsonObject items7 = new JsonObject(); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); + JsonObject items8 = new JsonObject(); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); + JsonObject items9 = new JsonObject(); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); + JsonObject items10 = new JsonObject(); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("classification_code", "c123"); + JsonObject items11 = new JsonObject(); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("classification_code", "c123"); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); + JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("product_code", "4912345678904"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + Request request = new CreateCampaign( + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" + ) + .applicableShopIds(new String[]{"89f5a3d5-94cc-4537-9fd2-cef20bd60cf8","2acd9ff1-0ae2-46c2-817f-b1228402cd9a"}) + .budgetCapsAmount(40373506) + .applicableTransactionMetadata(applicable_transaction_metadata) + .applicableAccountMetadata(applicable_account_metadata) + .destPrivateMoneyId("90fad016-1378-4f05-99b5-3517fd97613a") + .maxTotalPointAmount(5316) + .maxPointAmount(9116) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(9571) + .minimumNumberOfAmount(3193) + .minimumNumberOfProducts(9699) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{6,2,5,4,1,6}) + .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11}) + .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18}) + .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(3171) - .pointExpiresAt("2020-09-03T19:49:23.000000Z") + .pointExpiresInDays(6173) + .pointExpiresAt("2021-09-26T21:28:04.000000Z") .status("enabled") - .description("AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw") - .bearPointShopId("fb7cdc35-e47e-4404-92b8-763347af603c"); + .description("wUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6o") + .bearPointShopId("0653e022-a97e-4b1a-8ff0-4e552948b319"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1960,14 +2079,14 @@ void test22() throws ConnectionError, ProcessingError { @Test void test23() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"84d572d7-385f-4c45-8269-026999279bdc","1f34dacf-d196-4ac6-bb10-39f552b52577","774f7d6e-0e80-413f-871b-c9ad0aa54f65"}); + .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"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1982,15 +2101,15 @@ void test23() throws ConnectionError, ProcessingError { @Test void test24() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"2ffa9795-4e88-49d4-af15-8fe662ab2757","e33ad3c8-bbb1-4216-b0f1-27716deb26ec","05dfcc03-205e-41c9-a860-72bda745bb1d","4eb5cc68-de08-4a5d-8f46-8900eff9f69d","37ff34cb-2beb-4892-8fee-b650bcf44e9b","b8360552-3a17-4365-b367-1d88d07e82ff","267ce1b3-5c4f-41f1-9920-0fcdc42a667c","1a622886-367f-4a44-b640-d0d9986c95a7","f8385137-f91c-402f-8266-ff1d4e75b52a"}) - .bearPointShopId("7a002bff-5110-4189-acba-506f86423770"); + .blacklistedShopIds(new String[]{"709dcb5f-96ca-4fac-a0b7-8779d094a5ac","e1ff0490-38e0-4dfb-8211-0132ecc5ca07","1752f27e-7475-4baf-a38e-632f3bdb49e0"}) + .bearPointShopId("da8945c9-f762-45e4-9492-5cdc5733928e"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2005,16 +2124,16 @@ void test24() throws ConnectionError, ProcessingError { @Test void test25() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"9bd596dc-834c-4730-839f-beb6bbe9ed84"}) - .description("OQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0Pi") - .bearPointShopId("71a17849-07a4-432f-9ede-3a0f1b86900c"); + .blacklistedShopIds(new String[]{"d0346906-8dff-4fdb-af9c-a47f1aa8f704","70ea7989-9636-4100-bea1-6294f11f1399","af6d8233-935e-40e0-b45e-eb7c776e95a0","dd15441a-3263-4258-907f-c2fa64cf1c80","561c0690-6c29-466d-9209-6de1a65cea6f","6dd10fbe-841d-4c30-8557-bcde8693ca9f","185dbdee-4c52-4318-9f99-05d6aa264c23","3d1b8b43-14ea-40ec-a797-a5da55590c63","3ae8ca66-589f-4978-8082-a98032e88ad8"}) + .description("nQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyD") + .bearPointShopId("b8d0a8d6-3d07-4a11-bb55-b6f0d1b92092"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2029,17 +2148,17 @@ void test25() throws ConnectionError, ProcessingError { @Test void test26() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"c3c5b45d-469e-449b-93b5-cb3fac6bf834","b954e7a1-5a97-41f1-b613-e1bcedf52e36","4da4dda9-5469-4c3f-940f-3e29f581cb05","38687c32-3b80-485c-ae5d-cf589c4b62d7","d24aedbf-a73f-42eb-bcf6-4ce6d9dd33a1","e7e42a16-aef5-4e80-b3a9-55219b4e4545","13564bb3-b906-4113-85ed-b88263854de1","51a0d8e7-7852-4a5a-8058-5b424489d476"}) - .status("enabled") - .description("QN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZ") - .bearPointShopId("a2a0fd3f-b088-4098-a639-962b3e8ea54b"); + .blacklistedShopIds(new String[]{"d7cebfc3-7f35-41aa-a255-9159b613a92b","bb051965-d0de-4c7a-bd2c-a73079c6da1b","d63c33bd-2bfa-4dbd-8d4d-97b04e76ab07","c2749027-0463-493d-90ef-b3120a574cf8","80ff338b-bb65-4783-a186-0a30d214a57f","8791e344-41dc-4e47-b134-a9283dae7faf","b648b560-64e5-4f11-b725-5b84c2bc0ca0","f3e269db-1321-49fe-b7a2-f0843ce56d58"}) + .status("disabled") + .description("c8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0An") + .bearPointShopId("28bdacaf-f1ec-4ffe-8e27-17ca64c1e7f9"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2054,18 +2173,18 @@ void test26() throws ConnectionError, ProcessingError { @Test void test27() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"8e70ae16-6d32-47e3-93f6-196390b4fc12","cc99fe73-15e7-4066-b032-a6b845fd7692","be42004e-b150-45fb-9771-4deff073f936","62280b58-133a-4c71-ac97-23023d73b071","810b7e23-b2f2-4309-92b9-45ecd92aeae7","b4064298-c6f0-4a93-b4ed-337a0ccab7b4","a00569ee-2079-41d6-be2f-5fd3548ab6d5","8e74a286-9eac-4844-a4d3-998c1c7e9b05","c0dbc732-c4ab-4672-8750-15c9805d592a"}) - .pointExpiresAt("2023-12-05T23:19:49.000000Z") + .blacklistedShopIds(new String[]{"0527c15b-4fd1-4896-b4ef-ee0296be1e67","934b4f26-246a-48d1-bd67-806234f1023d","59c00dea-8a93-429e-9f7e-649e0356feb8","0c374760-d69d-4b1a-9cfd-a0fc0c661f50","38889a52-6966-493f-9224-a14e4c88f501","e752b2bc-1eed-428e-b4f6-ff7eaf8f41df","cd716a6b-998d-4354-8ab8-af6afc6d95ad","cb6c8f90-246f-4fff-b9d4-04530d412e13"}) + .pointExpiresAt("2024-04-25T05:01:02.000000Z") .status("enabled") - .description("8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQ") - .bearPointShopId("80a8fc80-fd55-4c93-b998-0fd7f9549461"); + .description("2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b") + .bearPointShopId("9f1332ba-a800-4c84-a121-68249895b680"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2080,19 +2199,19 @@ void test27() throws ConnectionError, ProcessingError { @Test void test28() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"28052ae7-8bc2-480b-a14c-27574a003619","ba1d9ecd-9290-4e98-aa57-59f09d0fabde","b8560974-6fea-47e7-bf66-cdb04bf643c6","73af1f69-a15a-41da-8344-6193e5170c60","1fa20991-44db-4d45-8aae-f3ba72b04596","73f83ac5-c04f-45b2-bcfb-7050cc7526da","0bdca3ad-03dc-40c1-a0b9-68e29a6de9e9"}) - .pointExpiresInDays(650) - .pointExpiresAt("2022-02-17T13:36:31.000000Z") + .blacklistedShopIds(new String[]{"078251b9-532d-4130-97a7-5369a8e58ec2"}) + .pointExpiresInDays(6645) + .pointExpiresAt("2021-06-26T22:00:27.000000Z") .status("disabled") - .description("PG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG") - .bearPointShopId("711f3035-2733-4d2d-b1dd-915a9e3153d7"); + .description("h0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7Ey") + .bearPointShopId("0aa1fbd2-ed2e-417c-b715-2c62af030603"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2107,20 +2226,20 @@ void test28() throws ConnectionError, ProcessingError { @Test void test29() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"ef038d00-71d9-437f-827a-c302bda45210","dd995ea0-7047-4b21-93ef-9b20f3262115","686f5b98-f82a-4023-b540-3075b4b5f542","78575cdd-da58-43b6-a1cc-41fd700be2dc","465eedd5-4ad5-4b5f-8ca0-5cd5c354b3c2"}) + .blacklistedShopIds(new String[]{"a9fb8189-b2bb-42e7-8255-04f95c5b4037","49f901af-87f6-46a0-867d-67a937dc5106","72399165-60e1-42be-8660-c39e7d91a2a0"}) .setExclusive(false) - .pointExpiresInDays(4603) - .pointExpiresAt("2024-05-24T17:09:19.000000Z") + .pointExpiresInDays(5686) + .pointExpiresAt("2024-03-01T14:33:59.000000Z") .status("disabled") - .description("18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZ") - .bearPointShopId("37819da9-3c01-43aa-a863-cd5ac5da415f"); + .description("BAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmsp") + .bearPointShopId("c16c7725-0c7f-4e07-8e38-f25fd1d41b62"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2135,21 +2254,21 @@ void test29() throws ConnectionError, ProcessingError { @Test void test30() throws ConnectionError, ProcessingError { Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"a4d90487-3da1-4d38-8d92-3d0a15471975","a768db53-e814-456c-9652-b99181a68223","2c3854af-a2a2-423e-961c-23cbe7004b67","d1282607-0b43-4053-b049-4e0f16308aaa","f95b3ccc-7eb1-47bb-b359-a95993c79575","a2dc8b83-66c7-41ce-b1b7-8a72aa7dc4e6","3df21a54-4e39-4828-a284-3aee2f6e9e9b","e3587d4f-698c-4525-b4a9-fbfc20b7c87d","65221743-3fbb-4402-935d-20e97f703a18"}) + .blacklistedShopIds(new String[]{"6ee89e2c-b412-49ab-b2af-a68e450403e7","41988eaf-65eb-453e-bb4d-b4207bc0c43b","f6a4950a-ce63-42d3-9004-110b8e3bc572","2a00056d-b7f4-49df-8b0e-d42240b76a2d","3ae395a1-0c89-40b0-9c68-d16a744fff49","53be3690-6b40-4bca-8175-ef20776230b4","9aeace9a-b801-453b-8433-86f757ec61c2","f1d62317-ed37-4473-91e3-677d5662cb57","ef11b512-e2ab-4d6c-9969-78aaaee6805f"}) .subject("money") .setExclusive(true) - .pointExpiresInDays(7926) - .pointExpiresAt("2020-05-21T11:57:51.000000Z") + .pointExpiresInDays(8435) + .pointExpiresAt("2024-06-03T21:56:59.000000Z") .status("enabled") - .description("7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbip") - .bearPointShopId("1666ee43-0f86-4c8f-8898-be15675033bb"); + .description("6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcP") + .bearPointShopId("9735c7e2-5019-4b20-9c8f-76f403fbaf51"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2198,23 +2317,33 @@ void test31() throws ConnectionError, ProcessingError { 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 CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"0e947921-1506-4dac-9075-0d74cffe94ef","b4e1096b-3dd8-42d0-8871-c330032a8631","81c75320-9ab6-4663-858a-a1ef975565dd","857e9913-01f1-4527-a6bb-483e61ada4e9","36fa6fc1-8593-4280-a813-055ed3d4fd8b","8a0b69a9-1c29-47d5-9706-5b27f10f2ad8","413d6c78-9e91-40ff-a346-d59dc58fd3df","b8a9e22b-b9d2-427a-a40f-9b3c5ce58991","0141503f-c0ce-43b5-953d-d98d85dd6745"}) - .amountBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .subject("money") + .blacklistedShopIds(new String[]{"6a657763-0f0b-4834-8928-8ff54d724053","0d0484eb-0beb-491b-b282-0cc0840bd296","ec8fcdb6-84f5-4a02-93d2-d4fc624b08f7","b3a3cd58-bb36-4240-925e-f6267301b578","72739437-de66-4089-8fc5-7befb1c32c46","f2635e53-1e9d-408d-8d51-4b16a757d969","2aa5c5c4-bb59-4bf0-8eab-b6d4dfe145c0"}) + .amountBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(1136) - .pointExpiresAt("2020-03-08T17:47:40.000000Z") + .pointExpiresInDays(2664) + .pointExpiresAt("2024-04-21T08:33:54.000000Z") .status("enabled") - .description("uqVIJLmWFeGJqYbyf9xqe") - .bearPointShopId("52140f2a-5ad6-4eb9-8caa-aa9afb4f11e7"); + .description("wklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3eTBlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4XfUae14Wbt93t26LiQAMBYx05") + .bearPointShopId("6d225d37-587c-4183-9a41-54eff38dcb3b"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2267,18 +2396,21 @@ void test32() throws ConnectionError, ProcessingError { JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("subject_more_than_or_equal", 1000); - items7.addProperty("subject_less_than", 5000); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); JsonObject items8 = new JsonObject(); items8.addProperty("point_amount", 5); items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); @@ -2304,24 +2436,44 @@ void test32() throws ConnectionError, ProcessingError { items14.addProperty("point_amount_unit", "percent"); items14.addProperty("subject_more_than_or_equal", 1000); items14.addProperty("subject_less_than", 5000); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"b2154984-e7b6-4ed4-b4ef-c512c9123897","7a13c3ef-f7d2-4cf8-9c4b-a42bafde2411","5f8ae4be-73b5-4acb-9c0c-17a68e56fdde","8a453185-a152-4d18-b2ad-a83307d7b329","c13f8516-0228-4d86-a8fb-c48e507dbdb8"}) - .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6}) - .amountBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14}) + .blacklistedShopIds(new String[]{"2724b7f7-9e2e-4acc-a5f2-16f949fa164e","821edee5-841a-4390-be63-8b75167e0503","bfedd482-02c9-451c-a89e-8855c48f94c2"}) + .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .amountBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18}) .subject("money") - .setExclusive(true) - .pointExpiresInDays(9934) - .pointExpiresAt("2022-06-02T04:13:13.000000Z") + .setExclusive(false) + .pointExpiresInDays(928) + .pointExpiresAt("2021-01-11T23:16:34.000000Z") .status("disabled") - .description("CN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s") - .bearPointShopId("fe8eee24-94b2-434a-b6b7-34b0dc7a8681"); + .description("CvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv") + .bearPointShopId("a0051f89-41a4-4aa0-9ea4-0f37c6bda201"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2345,126 +2497,58 @@ void test33() throws ConnectionError, ProcessingError { 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); + items4.addProperty("point_amount", 5); + items4.addProperty("point_amount_unit", "percent"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("is_multiply_by_count", true); + items4.addProperty("required_count", 2); + JsonObject items5 = new JsonObject(); + items5.addProperty("point_amount", 5); + items5.addProperty("point_amount_unit", "percent"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("is_multiply_by_count", true); + items5.addProperty("required_count", 2); + JsonObject items6 = new JsonObject(); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("is_multiply_by_count", true); + items6.addProperty("required_count", 2); + JsonObject items7 = new JsonObject(); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); + JsonObject items8 = new JsonObject(); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("subject_more_than_or_equal", 1000); + items8.addProperty("subject_less_than", 5000); + JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); + items9.addProperty("subject_more_than_or_equal", 1000); + items9.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"bc86f729-dbb8-4be8-9c6e-1cbdadfb6f34"}) - .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15}) - .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23,items24}) + .blacklistedShopIds(new String[]{"d7944570-ea53-40d5-acea-6bee94c6fd32","a72d3329-92a9-4df6-b197-a0f78cc625e9","bd7f7975-763c-4131-b491-26891f154e44","2fdffad6-cf09-4f3f-883d-7c472e86f1a0"}) + .blacklistedProductRules(new Object[]{items,items2,items3}) + .productBasedPointRules(new Object[]{items4,items5,items6,items7}) + .amountBasedPointRules(new Object[]{items8,items9}) .subject("all") .setExclusive(false) - .pointExpiresInDays(1998) - .pointExpiresAt("2024-04-05T06:31:47.000000Z") - .status("enabled") - .description("n521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwx") - .bearPointShopId("99787046-2dc2-4758-a66e-fe26e557e7ba"); + .pointExpiresInDays(4009) + .pointExpiresAt("2023-01-21T12:08:17.000000Z") + .status("disabled") + .description("A0zf5QFhEcKjjKz") + .bearPointShopId("0f9748f4-3fa3-4447-92cb-2f36fa73f24b"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2482,11 +2566,17 @@ void test34() throws ConnectionError, ProcessingError { items.addProperty("product_code", "4912345678904"); 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("classification_code", "c123"); + 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("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"); @@ -2502,84 +2592,43 @@ void test34() throws ConnectionError, ProcessingError { JsonObject items6 = new JsonObject(); items6.addProperty("point_amount", 5); items6.addProperty("point_amount_unit", "percent"); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("subject_more_than_or_equal", 1000); + items6.addProperty("subject_less_than", 5000); JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); + items7.addProperty("subject_more_than_or_equal", 1000); + items7.addProperty("subject_less_than", 5000); JsonObject items8 = new JsonObject(); items8.addProperty("point_amount", 5); items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); + items8.addProperty("subject_more_than_or_equal", 1000); + items8.addProperty("subject_less_than", 5000); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("is_multiply_by_count", true); - items9.addProperty("required_count", 2); - 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); + 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" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"a373a745-6e9d-4160-9bac-c3a20c08ad71","c9acc803-0a36-4197-87e3-fe4e6eec6b50","13fe81ae-fdc3-4820-929a-6f45e8d3b956","cfaee0db-75fb-400f-903e-26a4c985a0f1","8f76d4b4-4336-4c40-8764-17c9968aff50","eb9b5625-c62c-484a-ad23-95386b5237e1"}) - .applicableDaysOfWeek(new Integer[]{5,0,1,2}) - .blacklistedProductRules(new Object[]{items,items2,items3}) - .productBasedPointRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11}) - .amountBasedPointRules(new Object[]{items12,items13,items14,items15,items16}) + .blacklistedShopIds(new String[]{"72f717b9-c3a4-41cb-8915-24c1acd91d50","f3811183-7ee0-4345-9549-4d651e1faae4","abc932fa-51de-4ca2-a97f-d2dfb2c52bfd","9c28dcc8-6869-4929-9107-a42d0c3761ab","cc8e3a68-05ba-4436-b072-14233598cf99","4ed36d27-62fc-4368-8fc0-e4517a7f15da","0ae42a4f-f787-4d81-bd37-3cb8f4943590"}) + .applicableDaysOfWeek(new Integer[]{2,3,1,6,0,4,6,5,1,0}) + .blacklistedProductRules(new Object[]{items}) + .productBasedPointRules(new Object[]{items2,items3,items4,items5}) + .amountBasedPointRules(new Object[]{items6,items7,items8,items9}) .subject("all") .setExclusive(false) - .pointExpiresInDays(7370) - .pointExpiresAt("2022-12-15T05:27:20.000000Z") - .status("enabled") - .description("YUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQG") - .bearPointShopId("5dfa95aa-4bc8-4ea7-b0ba-158cef863a29"); + .pointExpiresInDays(494) + .pointExpiresAt("2022-08-29T11:59:17.000000Z") + .status("disabled") + .description("cgyg4cqEaxSmm8kmOYz37") + .bearPointShopId("4521243f-e650-4882-bc2f-ce4573d59c9b"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2603,11 +2652,11 @@ void test35() throws ConnectionError, ProcessingError { items3.addProperty("from", "12:00"); items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); items6.addProperty("product_code", "4912345678904"); items6.addProperty("classification_code", "c123"); @@ -2618,17 +2667,11 @@ void test35() 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"); 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"); @@ -2656,134 +2699,100 @@ void test35() throws ConnectionError, ProcessingError { JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("subject_more_than_or_equal", 1000); - items16.addProperty("subject_less_than", 5000); + items16.addProperty("product_code", "4912345678904"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("subject_more_than_or_equal", 1000); - items17.addProperty("subject_less_than", 5000); - 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[]{"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("EUxwAJXNLOLDUjAEUO9KUSGzbSRmd") - .bearPointShopId("74cd1581-dfa3-49e0-a1a4-ff363808f0b6"); - 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 test36() 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("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); - JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); - JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); - JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); - JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); - JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); - JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); - JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); - JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("product_code", "4912345678904"); + items20.addProperty("is_multiply_by_count", true); + items20.addProperty("required_count", 2); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); + JsonObject items26 = new JsonObject(); + items26.addProperty("point_amount", 5); + items26.addProperty("point_amount_unit", "percent"); + items26.addProperty("subject_more_than_or_equal", 1000); + items26.addProperty("subject_less_than", 5000); + JsonObject items27 = new JsonObject(); + items27.addProperty("point_amount", 5); + items27.addProperty("point_amount_unit", "percent"); + items27.addProperty("subject_more_than_or_equal", 1000); + items27.addProperty("subject_less_than", 5000); + JsonObject items28 = new JsonObject(); + items28.addProperty("point_amount", 5); + items28.addProperty("point_amount_unit", "percent"); + items28.addProperty("subject_more_than_or_equal", 1000); + items28.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"7a214bc8-bdbc-4d7f-8df8-e69581d342a6","c3643096-8263-46b4-9177-c3406034222d","b5b25866-8b30-4856-99f3-ae63e52da02f","94e9f769-43da-4e9c-b198-aa56c0d00e0f","312dfd1a-ca67-4cb9-83a3-ead955b23c7f","f20a201b-e52a-438d-b4ca-64f98c7ca482","772c6427-868b-41f8-bcd5-cb7133bcd701","a9bca16d-72a1-4db9-aadc-c3d14a688cba","a3eb8f1c-6fd9-425d-bc9d-fbd83cc05416","9ff32fa9-b391-451f-9c39-ade5fe27234f"}) - .minimumNumberOfProducts(4307) - .applicableTimeRanges(new Object[]{items,items2}) - .applicableDaysOfWeek(new Integer[]{0,2,0,4,0,6,0}) - .blacklistedProductRules(new Object[]{items3,items4}) - .productBasedPointRules(new Object[]{items5,items6,items7}) - .amountBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(1547) - .pointExpiresAt("2020-12-16T05:35:03.000000Z") - .status("enabled") - .description("jexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1") - .bearPointShopId("7fcfb2da-cf11-462f-87ae-782da38bcf7d"); + .blacklistedShopIds(new String[]{"cde2f450-ba3f-45bc-994e-c82a047ad94e","70878609-d0ae-4c90-a9dd-3f2b533df37d","e2cee14b-5ea1-4676-954e-49b5e8b7a848","d4376587-13f4-4b38-98a4-46c068b589af"}) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{4,0,3,6,2,2,1}) + .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18,items19,items20}) + .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27,items28}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(7303) + .pointExpiresAt("2020-07-07T21:51:24.000000Z") + .status("disabled") + .description("CTJRDSXhb0oNXnX7lDuTKN6yg") + .bearPointShopId("6cb96a51-ca35-41e8-b7eb-3e1f3e962f2c"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2796,7 +2805,7 @@ void test36() throws ConnectionError, ProcessingError { } } @Test - void test37() throws ConnectionError, ProcessingError { + void test36() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -2825,8 +2834,8 @@ void test37() throws ConnectionError, ProcessingError { items9.addProperty("from", "12:00"); items9.addProperty("to", "23:59"); JsonObject items10 = new JsonObject(); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("from", "12:00"); + items10.addProperty("to", "23:59"); JsonObject items11 = new JsonObject(); items11.addProperty("product_code", "4912345678904"); items11.addProperty("classification_code", "c123"); @@ -2846,11 +2855,17 @@ void test37() throws ConnectionError, ProcessingError { items16.addProperty("product_code", "4912345678904"); items16.addProperty("classification_code", "c123"); JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("classification_code", "c123"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); 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"); @@ -2884,27 +2899,23 @@ void test37() throws ConnectionError, ProcessingError { JsonObject items24 = new JsonObject(); items24.addProperty("point_amount", 5); items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("product_code", "4912345678904"); - items24.addProperty("is_multiply_by_count", true); - items24.addProperty("required_count", 2); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); JsonObject items25 = new JsonObject(); items25.addProperty("point_amount", 5); items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("product_code", "4912345678904"); - items25.addProperty("is_multiply_by_count", true); - items25.addProperty("required_count", 2); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); JsonObject items26 = new JsonObject(); items26.addProperty("point_amount", 5); items26.addProperty("point_amount_unit", "percent"); - 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"); - items27.addProperty("product_code", "4912345678904"); - items27.addProperty("is_multiply_by_count", true); - items27.addProperty("required_count", 2); + 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"); @@ -2930,39 +2941,28 @@ void test37() throws ConnectionError, ProcessingError { 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", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"a581fa65-a77f-4cb6-a753-a519a8a87998","146464b6-d6fd-49a2-87f8-528259326d3e","827a7531-e65b-49c4-b14d-74cf43c211f8","bd8bb343-00dd-448d-bf3f-a8c7e05151be","da143655-4b5c-4db3-9a66-69bd5f4f16ff","7dbb5fb6-28ba-4541-8d89-105082197cae","be89184a-c67e-4aee-820e-fb9975d20d00"}) - .minimumNumberOfAmount(8447) - .minimumNumberOfProducts(7069) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .applicableDaysOfWeek(new Integer[]{1,1,0,0,2,1,1,3,0,6}) - .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18}) - .productBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25,items26,items27}) - .amountBasedPointRules(new Object[]{items28,items29,items30,items31,items32,items33,items34}) + .blacklistedShopIds(new String[]{"b1c0247d-cd4e-402d-b082-f3700ba2f561","792317a0-fc1a-4285-bf55-3a32af4a947c","5b8af748-817c-4311-9b8b-2043c5ca0e1c","3202897b-f336-4783-bebf-4eb4a0fb8b77"}) + .minimumNumberOfProducts(8971) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{4,2,5,4}) + .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16}) + .productBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23}) + .amountBasedPointRules(new Object[]{items24,items25,items26,items27,items28,items29,items30,items31,items32}) .subject("all") .setExclusive(false) - .pointExpiresInDays(5346) - .pointExpiresAt("2020-11-19T19:29:32.000000Z") + .pointExpiresInDays(8618) + .pointExpiresAt("2024-04-18T02:32:47.000000Z") .status("enabled") - .description("ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6") - .bearPointShopId("dc513694-9421-47f8-a25a-8ccd6655641d"); + .description("Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rY") + .bearPointShopId("788ca0a3-9d73-4541-a7fa-2ce059dae686"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2975,7 +2975,7 @@ void test37() throws ConnectionError, ProcessingError { } } @Test - void test38() throws ConnectionError, ProcessingError { + void test37() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -2986,8 +2986,8 @@ void test38() 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("product_code", "4912345678904"); items5.addProperty("classification_code", "c123"); @@ -2998,14 +2998,23 @@ void test38() throws ConnectionError, ProcessingError { items7.addProperty("product_code", "4912345678904"); items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("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"); @@ -3045,8 +3054,9 @@ void test38() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("subject_more_than_or_equal", 1000); - items17.addProperty("subject_less_than", 5000); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); @@ -3062,55 +3072,29 @@ void test38() throws ConnectionError, ProcessingError { items20.addProperty("point_amount_unit", "percent"); items20.addProperty("subject_more_than_or_equal", 1000); items20.addProperty("subject_less_than", 5000); - JsonObject items21 = new JsonObject(); - items21.addProperty("point_amount", 5); - items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("subject_more_than_or_equal", 1000); - items21.addProperty("subject_less_than", 5000); - JsonObject items22 = new JsonObject(); - items22.addProperty("point_amount", 5); - items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("subject_more_than_or_equal", 1000); - items22.addProperty("subject_less_than", 5000); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("subject_more_than_or_equal", 1000); - items23.addProperty("subject_less_than", 5000); - JsonObject items24 = new JsonObject(); - items24.addProperty("point_amount", 5); - items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("subject_more_than_or_equal", 1000); - items24.addProperty("subject_less_than", 5000); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("subject_more_than_or_equal", 1000); - items25.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"da1fb68f-4266-44e3-b03f-b1aacf385a75","93d591dd-0377-47f0-b0c9-02a5c391acce"}) - .minimumNumberForCombinationPurchase(9392) - .minimumNumberOfAmount(9974) - .minimumNumberOfProducts(9246) - .applicableTimeRanges(new Object[]{items,items2,items3,items4}) - .applicableDaysOfWeek(new Integer[]{2,3}) - .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10}) - .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16}) - .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25}) + .blacklistedShopIds(new String[]{"19e3cdb4-f95b-4333-809f-b44d261553ed","7b26edc0-3628-4df8-8692-7236873e4968"}) + .minimumNumberOfAmount(8851) + .minimumNumberOfProducts(4493) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{3,2,4,1,1,6,0,6}) + .blacklistedProductRules(new Object[]{items4,items5,items6,items7}) + .productBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17}) + .amountBasedPointRules(new Object[]{items18,items19,items20}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(2638) - .pointExpiresAt("2024-04-28T00:47:57.000000Z") + .setExclusive(true) + .pointExpiresInDays(2685) + .pointExpiresAt("2021-08-20T03:40:50.000000Z") .status("disabled") - .description("qZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5") - .bearPointShopId("39b59148-a7d7-4d5b-a049-7e119e987df1"); + .description("flubMg8I3PF") + .bearPointShopId("4111dba0-01dd-4e27-9128-c0fa93b24958"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3123,13 +3107,13 @@ void test38() throws ConnectionError, ProcessingError { } } @Test - void test39() throws ConnectionError, ProcessingError { + void test38() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); items3.addProperty("product_code", "4912345678904"); items3.addProperty("classification_code", "c123"); @@ -3146,11 +3130,17 @@ void test39() throws ConnectionError, ProcessingError { items7.addProperty("product_code", "4912345678904"); items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("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"); @@ -3184,57 +3174,52 @@ void test39() throws ConnectionError, ProcessingError { JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); items19.addProperty("subject_more_than_or_equal", 1000); items19.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"e79989ce-4f08-4803-9da5-9822750f3a55","414bc4af-c76f-4f4d-8508-441229a5c600","b4b65b9a-af2e-47e9-bfb9-1177683b4e07","de8701ce-dcc9-483c-a15d-a83b8697ffca","a7149faf-58db-49f9-89b2-7cf0595fbbc1","569a6c97-3ae0-49c4-92f3-dc32f22118c0","906edd42-5734-4d5e-91f9-b0161d346742","7909bfb1-41c7-4fa9-915a-27170967bc02","c9b2ce13-7d54-4f6b-ae02-f204bb504334"}) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(9266) - .minimumNumberOfAmount(1216) - .minimumNumberOfProducts(8355) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{6,2,1,2,2,3,5,0,1}) - .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9}) - .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18}) - .amountBasedPointRules(new Object[]{items19}) + .blacklistedShopIds(new String[]{"b86d95a0-2c98-41bb-9357-c0f5109f2d38","8b100673-5c8b-4163-a9af-b22bbc28de2d","faec44bc-28e8-4e71-977e-de2000a516f7","8e636ed7-f6cb-41cc-8983-e3f36b6e56e7","48017178-7d6f-4a92-b885-1fa198a1f5dc","e51de9ab-8aa8-4e86-99de-34a8cb1405da","61ac1f43-7351-4632-b4b4-7e31e03fb762","ac103fec-3e89-4786-bb0a-ba89b2f85bcd","1bce5174-e11d-4053-8f7f-1d5ad55ce648"}) + .minimumNumberForCombinationPurchase(368) + .minimumNumberOfAmount(6438) + .minimumNumberOfProducts(4184) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{6,6,2,2,4}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7}) + .productBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17,items18,items19}) .subject("money") .setExclusive(true) - .pointExpiresInDays(7764) - .pointExpiresAt("2023-07-03T06:40:54.000000Z") + .pointExpiresInDays(7087) + .pointExpiresAt("2023-06-18T18:01:19.000000Z") .status("enabled") - .description("nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn") - .bearPointShopId("9ce4d227-cd39-42d6-8aea-c89ba01a9d5f"); + .description("cLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxO") + .bearPointShopId("3fc37b5b-c8a7-486d-a992-8131eab749db"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3247,7 +3232,7 @@ void test39() throws ConnectionError, ProcessingError { } } @Test - void test40() throws ConnectionError, ProcessingError { + void test39() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -3261,11 +3246,11 @@ void test40() 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"); @@ -3282,8 +3267,11 @@ void test40() throws ConnectionError, ProcessingError { items11.addProperty("product_code", "4912345678904"); items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); @@ -3299,93 +3287,48 @@ void test40() throws ConnectionError, ProcessingError { JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); - JsonObject items19 = new JsonObject(); - items19.addProperty("point_amount", 5); - items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); - JsonObject items20 = new JsonObject(); - items20.addProperty("point_amount", 5); - items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("subject_more_than_or_equal", 1000); - items20.addProperty("subject_less_than", 5000); - JsonObject items21 = new JsonObject(); - items21.addProperty("point_amount", 5); - items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("subject_more_than_or_equal", 1000); - items21.addProperty("subject_less_than", 5000); - JsonObject items22 = new JsonObject(); - items22.addProperty("point_amount", 5); - items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("subject_more_than_or_equal", 1000); - items22.addProperty("subject_less_than", 5000); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("subject_more_than_or_equal", 1000); - items23.addProperty("subject_less_than", 5000); - JsonObject items24 = new JsonObject(); - items24.addProperty("point_amount", 5); - items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("subject_more_than_or_equal", 1000); - items24.addProperty("subject_less_than", 5000); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("subject_more_than_or_equal", 1000); - items25.addProperty("subject_less_than", 5000); - JsonObject items26 = new JsonObject(); - items26.addProperty("point_amount", 5); - items26.addProperty("point_amount_unit", "percent"); - items26.addProperty("subject_more_than_or_equal", 1000); - items26.addProperty("subject_less_than", 5000); + 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" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"47922744-f089-4b31-9eb7-5d16cb1f736b","e780702e-5d6a-43a8-8e3a-d129e9aee72f","4df90ff2-cf25-407e-b2be-851c23f97db9","100e4803-3235-4a6e-873d-fd0e74245d7b","3a714afb-294d-4822-922f-5108dcb76c93","384ec2ec-c332-48ab-9045-19c48d14c916"}) - .maxPointAmount(8988) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(8088) - .minimumNumberOfAmount(5579) - .minimumNumberOfProducts(8043) - .applicableTimeRanges(new Object[]{items,items2,items3,items4}) - .applicableDaysOfWeek(new Integer[]{3,4,1,4,5,3,3,1,1,1}) - .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12}) - .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18}) - .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25,items26}) + .blacklistedShopIds(new String[]{"4175f336-436f-4365-aa2e-44c9dc041f80","b2b960dd-e039-4981-83a2-4d1cccea62ad","e514859c-181a-4a82-839b-30091bf12864","12eb39e1-ad5f-4c74-b143-c1ccf23ac27c","ff3a57e7-bf7e-4382-8c51-4c0482391b2a","f2ec9780-c206-4b6f-926c-a97ac8fababa","06bd1375-ac26-485f-9ff9-c21cdaa5d9f8","bd7dee08-4bc2-4018-9932-f45153e68447","861391f2-45c3-40a9-be8e-a95081370bed"}) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(8885) + .minimumNumberOfAmount(8370) + .minimumNumberOfProducts(525) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) + .applicableDaysOfWeek(new Integer[]{5,4,5}) + .blacklistedProductRules(new Object[]{items7,items8,items9,items10,items11}) + .productBasedPointRules(new Object[]{items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17,items18}) .subject("all") .setExclusive(false) - .pointExpiresInDays(9944) - .pointExpiresAt("2020-09-09T05:23:52.000000Z") + .pointExpiresInDays(1736) + .pointExpiresAt("2024-03-23T11:24:33.000000Z") .status("disabled") - .description("dNFDbX7fss0ltmaJnxsla") - .bearPointShopId("89f5a3d5-94cc-4537-9fd2-cef20bd60cf8"); + .description("Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1") + .bearPointShopId("56e527eb-1d92-49b9-9e93-5d6f2f4a8865"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3398,7 +3341,7 @@ void test40() throws ConnectionError, ProcessingError { } } @Test - void test41() throws ConnectionError, ProcessingError { + void test40() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -3415,23 +3358,41 @@ void test41() throws ConnectionError, ProcessingError { items5.addProperty("product_code", "4912345678904"); items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); + items6.addProperty("point_amount", 5); + items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); + items6.addProperty("is_multiply_by_count", true); + items6.addProperty("required_count", 2); JsonObject items7 = new JsonObject(); + items7.addProperty("point_amount", 5); + items7.addProperty("point_amount_unit", "percent"); items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("is_multiply_by_count", true); + items7.addProperty("required_count", 2); JsonObject items8 = new JsonObject(); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); @@ -3453,9 +3414,97 @@ void test41() throws ConnectionError, ProcessingError { JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); + 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( + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" + ) + .blacklistedShopIds(new String[]{"40e295d2-68c2-4e37-8f3d-24a8bb23ecba"}) + .maxPointAmount(817) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(5346) + .minimumNumberOfAmount(7456) + .minimumNumberOfProducts(1330) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{6,6,6,6,5,1,0,4,0}) + .blacklistedProductRules(new Object[]{items5}) + .productBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(2327) + .pointExpiresAt("2023-09-04T03:43:01.000000Z") + .status("enabled") + .description("m7sWqtjzoUhtWxAFotkA3") + .bearPointShopId("ff18a69d-0bc7-4877-ab09-fbf0053e3bca"); + 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 test41() throws ConnectionError, ProcessingError { + JsonObject items = new JsonObject(); + items.addProperty("from", "12:00"); + items.addProperty("to", "23:59"); + JsonObject items2 = new JsonObject(); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); + JsonObject items3 = new JsonObject(); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); + JsonObject items4 = new JsonObject(); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); + JsonObject items5 = new JsonObject(); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); + JsonObject items6 = new JsonObject(); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); + JsonObject items7 = new JsonObject(); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); + JsonObject items8 = new JsonObject(); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); + JsonObject items9 = new JsonObject(); + items9.addProperty("from", "12:00"); + items9.addProperty("to", "23:59"); + JsonObject items10 = new JsonObject(); + items10.addProperty("from", "12:00"); + items10.addProperty("to", "23:59"); + JsonObject items11 = new JsonObject(); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("classification_code", "c123"); + JsonObject items12 = new JsonObject(); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("classification_code", "c123"); + JsonObject items13 = new JsonObject(); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("classification_code", "c123"); + JsonObject items14 = new JsonObject(); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("classification_code", "c123"); + JsonObject items15 = new JsonObject(); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("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"); @@ -3477,55 +3526,41 @@ void test41() throws ConnectionError, ProcessingError { JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); items20.addProperty("subject_more_than_or_equal", 1000); items20.addProperty("subject_less_than", 5000); - JsonObject items21 = new JsonObject(); - items21.addProperty("point_amount", 5); - items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("subject_more_than_or_equal", 1000); - items21.addProperty("subject_less_than", 5000); - JsonObject items22 = new JsonObject(); - items22.addProperty("point_amount", 5); - items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("subject_more_than_or_equal", 1000); - items22.addProperty("subject_less_than", 5000); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("subject_more_than_or_equal", 1000); - items23.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"b0e10ae2-16c2-4f01-bf22-cd9a02680d01","90fad016-1378-4f05-99b5-3517fd97613a"}) - .maxTotalPointAmount(5316) - .maxPointAmount(9116) + .blacklistedShopIds(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"}) + .maxTotalPointAmount(737) + .maxPointAmount(4788) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(9571) - .minimumNumberOfAmount(3193) - .minimumNumberOfProducts(9699) - .applicableTimeRanges(new Object[]{items,items2,items3,items4}) - .applicableDaysOfWeek(new Integer[]{6,2,5,4,1,6}) - .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11}) - .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18}) - .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(6173) - .pointExpiresAt("2021-09-26T21:28:04.000000Z") + .minimumNumberForCombinationPurchase(5693) + .minimumNumberOfAmount(942) + .minimumNumberOfProducts(9650) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{2,5,1,2,0}) + .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15}) + .productBasedPointRules(new Object[]{items16,items17,items18,items19}) + .amountBasedPointRules(new Object[]{items20}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(8956) + .pointExpiresAt("2024-05-14T09:22:00.000000Z") .status("enabled") - .description("wUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6o") - .bearPointShopId("0653e022-a97e-4b1a-8ff0-4e552948b319"); + .description("TD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlp") + .bearPointShopId("b1bda71a-e08e-44c0-9e71-5f0904cd8060"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3561,8 +3596,8 @@ void test42() 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"); @@ -3573,11 +3608,17 @@ void test42() throws ConnectionError, ProcessingError { items11.addProperty("product_code", "4912345678904"); items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); @@ -3587,15 +3628,13 @@ void test42() 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"); @@ -3631,44 +3670,34 @@ void test42() throws ConnectionError, ProcessingError { items23.addProperty("point_amount_unit", "percent"); items23.addProperty("subject_more_than_or_equal", 1000); items23.addProperty("subject_less_than", 5000); - JsonObject items24 = new JsonObject(); - items24.addProperty("point_amount", 5); - items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("subject_more_than_or_equal", 1000); - items24.addProperty("subject_less_than", 5000); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("subject_more_than_or_equal", 1000); - items25.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"b79f5e0c-8c6e-4d83-92d8-65b5d7624170","06bdac61-4165-4586-a626-3b7062f0a4f2","7311a218-4257-4574-9053-1cc7dc7fb4da","d934d772-f2cc-4a39-bb3f-27fdaaa9d2d5","5f4abd24-e372-446d-8114-face24d66925","555cca3a-c512-4202-9593-760c0e11d198","9e3a20b3-33f6-4046-a75a-1eaa6ad77c9e","1d8c0311-8736-4f18-8388-e9398c43f776","a0b38e77-03d8-4ea5-9200-13c9a811e605"}) - .destPrivateMoneyId("e8ad3462-cb5f-46ca-ac60-37b7b0378779") - .maxTotalPointAmount(9645) - .maxPointAmount(1169) + .blacklistedShopIds(new String[]{"55a71095-04b5-4cbb-a4b7-631b9754ee32","3b548b8b-eb41-430b-bec5-c8467c43d021","5edfc960-1cdf-4d9f-b249-7afdede205fc","12b10567-f7b4-457f-99e9-7a982b318496"}) + .destPrivateMoneyId("b260646b-aaf2-4f50-abc8-c045a8059d89") + .maxTotalPointAmount(3957) + .maxPointAmount(1305) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(7676) - .minimumNumberOfAmount(8960) - .minimumNumberOfProducts(307) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .applicableDaysOfWeek(new Integer[]{3,6,0,1,2,4}) - .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13}) - .productBasedPointRules(new Object[]{items14,items15,items16}) - .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25}) - .subject("money") - .setExclusive(false) - .pointExpiresInDays(4060) - .pointExpiresAt("2024-08-25T16:06:07.000000Z") + .minimumNumberForCombinationPurchase(7151) + .minimumNumberOfAmount(6230) + .minimumNumberOfProducts(2468) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{0,3,4,6,6,3,0,1,4}) + .blacklistedProductRules(new Object[]{items8,items9,items10,items11}) + .productBasedPointRules(new Object[]{items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17,items18,items19,items20,items21,items22,items23}) + .subject("all") + .setExclusive(true) + .pointExpiresInDays(3031) + .pointExpiresAt("2021-11-25T15:14:26.000000Z") .status("enabled") - .description("63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0") - .bearPointShopId("ff40b6e4-c8ff-49c5-a8cf-c79204df1027"); + .description("Zgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6Bw") + .bearPointShopId("98c37671-4045-4904-bb54-40ee03c7bc61"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3689,100 +3718,110 @@ void test43() throws ConnectionError, ProcessingError { items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("point_amount", 5); - items3.addProperty("point_amount_unit", "percent"); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("is_multiply_by_count", true); - items3.addProperty("required_count", 2); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); - items6.addProperty("subject_more_than_or_equal", 1000); - items6.addProperty("subject_less_than", 5000); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("subject_more_than_or_equal", 1000); - items7.addProperty("subject_less_than", 5000); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"5ecdcd80-da1c-4abb-89bc-4e25539e4b17","1c349b22-1ff1-4d4f-a3c6-be879f38494c","80845371-9c6e-4e0c-b2a0-205a8905f6de","0baf9c17-7f75-484c-afeb-f29741ca25de","310197b5-3fc7-4ca6-a846-69328965d846"}) + .blacklistedShopIds(new String[]{"73ce11f1-4435-4342-a7e7-df05d22e0e65","6388c754-3c54-43f3-bb1e-94d4b13c7164"}) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("03777006-54d5-46f5-b97b-a844b8d0a8d6") - .maxTotalPointAmount(5436) - .maxPointAmount(8339) + .destPrivateMoneyId("12233358-6267-442c-b38e-a591b51fc497") + .maxTotalPointAmount(3329) + .maxPointAmount(5538) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(7643) - .minimumNumberOfAmount(4442) - .minimumNumberOfProducts(6502) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{3}) - .blacklistedProductRules(new Object[]{items2}) - .productBasedPointRules(new Object[]{items3,items4,items5}) - .amountBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13,items14}) - .subject("all") + .minimumNumberForCombinationPurchase(5372) + .minimumNumberOfAmount(3490) + .minimumNumberOfProducts(2873) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{4,4,6}) + .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10}) + .productBasedPointRules(new Object[]{items11,items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17,items18,items19}) + .subject("money") .setExclusive(false) - .pointExpiresInDays(6020) - .pointExpiresAt("2022-06-22T08:49:37.000000Z") + .pointExpiresInDays(2548) + .pointExpiresAt("2022-02-02T09:25:06.000000Z") .status("enabled") - .description("DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS7") - .bearPointShopId("f326f101-4a5f-480e-94fe-50a26de542b0"); + .description("VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCc") + .bearPointShopId("e7dcf711-dfa3-4c5b-a91e-4e5a14aed804"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3812,184 +3851,123 @@ void test44() throws ConnectionError, ProcessingError { items3.addProperty("from", "12:00"); items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); - items9.addProperty("from", "12:00"); - items9.addProperty("to", "23:59"); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("classification_code", "c123"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("classification_code", "c123"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("classification_code", "c123"); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); JsonObject items16 = new JsonObject(); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("classification_code", "c123"); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("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); - 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("subject_more_than_or_equal", 1000); - items27.addProperty("subject_less_than", 5000); - JsonObject items28 = new JsonObject(); - items28.addProperty("point_amount", 5); - items28.addProperty("point_amount_unit", "percent"); - items28.addProperty("subject_more_than_or_equal", 1000); - items28.addProperty("subject_less_than", 5000); - JsonObject items29 = new JsonObject(); - items29.addProperty("point_amount", 5); - items29.addProperty("point_amount_unit", "percent"); - items29.addProperty("subject_more_than_or_equal", 1000); - items29.addProperty("subject_less_than", 5000); - JsonObject items30 = new JsonObject(); - items30.addProperty("point_amount", 5); - items30.addProperty("point_amount_unit", "percent"); - items30.addProperty("subject_more_than_or_equal", 1000); - items30.addProperty("subject_less_than", 5000); - JsonObject items31 = new JsonObject(); - items31.addProperty("point_amount", 5); - items31.addProperty("point_amount_unit", "percent"); - items31.addProperty("subject_more_than_or_equal", 1000); - items31.addProperty("subject_less_than", 5000); - JsonObject items32 = new JsonObject(); - items32.addProperty("point_amount", 5); - items32.addProperty("point_amount_unit", "percent"); - items32.addProperty("subject_more_than_or_equal", 1000); - items32.addProperty("subject_less_than", 5000); - JsonObject items33 = new JsonObject(); - items33.addProperty("point_amount", 5); - items33.addProperty("point_amount_unit", "percent"); - items33.addProperty("subject_more_than_or_equal", 1000); - items33.addProperty("subject_less_than", 5000); - JsonObject items34 = new JsonObject(); - items34.addProperty("point_amount", 5); - items34.addProperty("point_amount_unit", "percent"); - items34.addProperty("subject_more_than_or_equal", 1000); - items34.addProperty("subject_less_than", 5000); - JsonObject items35 = new JsonObject(); - items35.addProperty("point_amount", 5); - items35.addProperty("point_amount_unit", "percent"); - items35.addProperty("subject_more_than_or_equal", 1000); - items35.addProperty("subject_less_than", 5000); - JsonObject items36 = new JsonObject(); - items36.addProperty("point_amount", 5); - items36.addProperty("point_amount_unit", "percent"); - items36.addProperty("subject_more_than_or_equal", 1000); - items36.addProperty("subject_less_than", 5000); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"bacc3b26-2723-4e4a-8f55-091d3a28e0fe"}) + .blacklistedShopIds(new String[]{"f6784c0d-46e8-4cde-96e4-de580f1aaac3","00283ae7-d3f9-4ac1-8ce8-424c63cd048a"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("67872fcb-41ea-4e4b-8ce5-3b47df08b8dc") - .maxTotalPointAmount(2654) - .maxPointAmount(4548) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(6733) - .minimumNumberOfAmount(5138) - .minimumNumberOfProducts(4476) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .applicableDaysOfWeek(new Integer[]{3,3,0,1,0,5,1,3,1,5}) - .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16}) - .productBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25,items26}) - .amountBasedPointRules(new Object[]{items27,items28,items29,items30,items31,items32,items33,items34,items35,items36}) + .destPrivateMoneyId("b60ec391-b424-468c-b3a4-20d02abf91da") + .maxTotalPointAmount(2570) + .maxPointAmount(273) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(6649) + .minimumNumberOfAmount(1990) + .minimumNumberOfProducts(3734) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{4,1}) + .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8,items9}) + .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16,items17,items18,items19,items20,items21,items22}) .subject("all") .setExclusive(true) - .pointExpiresInDays(9410) - .pointExpiresAt("2022-10-14T12:36:17.000000Z") - .status("enabled") - .description("HYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiB") - .bearPointShopId("a21959f4-c4d2-4b5f-bb2d-642a030a4668"); + .pointExpiresInDays(8414) + .pointExpiresAt("2020-11-14T16:11:03.000000Z") + .status("disabled") + .description("5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSI") + .bearPointShopId("1ec89bf1-81c4-47d2-91a2-cdb8c4046c6c"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -4019,26 +3997,41 @@ void test45() 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("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"); 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"); @@ -4048,23 +4041,27 @@ void test45() 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); + 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"); @@ -4075,47 +4072,37 @@ void test45() throws ConnectionError, ProcessingError { items17.addProperty("point_amount_unit", "percent"); items17.addProperty("subject_more_than_or_equal", 1000); items17.addProperty("subject_less_than", 5000); - JsonObject items18 = new JsonObject(); - items18.addProperty("point_amount", 5); - items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("subject_more_than_or_equal", 1000); - items18.addProperty("subject_less_than", 5000); - JsonObject items19 = new JsonObject(); - items19.addProperty("point_amount", 5); - items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); Request request = new CreateCampaign( - "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku", - "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0", - "2021-02-25T21:26:31.000000Z", - "2020-09-09T10:07:27.000000Z", - 6174, - "topup" + "MjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3q", + "872436d2-18e2-475d-98c3-7a12f6195382", + "2021-08-27T22:14:08.000000Z", + "2021-11-29T22:41:18.000000Z", + 6011, + "payment" ) - .blacklistedShopIds(new String[]{"506c48bc-2226-4961-9d76-10d73ed2e5ef"}) - .budgetCapsAmount(1517025453) + .blacklistedShopIds(new String[]{"b5f3afbe-fbe6-492c-9fb3-3e6c95a8f538","d6f4662e-ad48-4951-ab1e-a9516c7b7f75"}) + .budgetCapsAmount(2017003070) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .destPrivateMoneyId("011241ed-9e37-4e03-ae9b-36697259f353") - .maxTotalPointAmount(4495) - .maxPointAmount(6749) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(4226) - .minimumNumberOfAmount(5301) - .minimumNumberOfProducts(5110) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) - .applicableDaysOfWeek(new Integer[]{4}) - .blacklistedProductRules(new Object[]{items6,items7,items8,items9,items10}) - .productBasedPointRules(new Object[]{items11}) - .amountBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18,items19}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(189) - .pointExpiresAt("2022-01-27T14:38:20.000000Z") - .status("enabled") - .description("LBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJ") - .bearPointShopId("7b804381-8d75-4f20-b49a-b801d39ba53b"); + .destPrivateMoneyId("0cba84f6-0c6d-4acb-ad32-43d0b4d2a089") + .maxTotalPointAmount(8834) + .maxPointAmount(9205) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(5915) + .minimumNumberOfAmount(1432) + .minimumNumberOfProducts(5236) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{5,2,0,4}) + .blacklistedProductRules(new Object[]{items4,items5}) + .productBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13,items14,items15}) + .amountBasedPointRules(new Object[]{items16,items17}) + .subject("all") + .setExclusive(false) + .pointExpiresInDays(7514) + .pointExpiresAt("2020-02-09T14:32:44.000000Z") + .status("disabled") + .description("UjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHd") + .bearPointShopId("a5eb97ad-302c-4a58-8871-d2826661d3c3"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCashtrayTest.java index ca20e97..1b7b7d0 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateCashtrayTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateCashtrayTest.java @@ -12,9 +12,9 @@ public class CreateCashtrayTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateCashtray( - "044202f7-3525-4117-8dd7-0ded95240fda", - "48aeadc5-538d-4ee4-af33-69d46096e93b", - 5771.0 + "78cc8bff-9a73-431e-87b4-e2bf67788c2e", + "50d93e30-1003-43ac-b7da-64efe0fef182", + 560.0 ); try { PartnerAPITest.getClient().send(request); @@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCashtray( - "044202f7-3525-4117-8dd7-0ded95240fda", - "48aeadc5-538d-4ee4-af33-69d46096e93b", - 5771.0 + "78cc8bff-9a73-431e-87b4-e2bf67788c2e", + "50d93e30-1003-43ac-b7da-64efe0fef182", + 560.0 ) - .expiresIn(5237); + .expiresIn(1363); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -49,12 +49,12 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateCashtray( - "044202f7-3525-4117-8dd7-0ded95240fda", - "48aeadc5-538d-4ee4-af33-69d46096e93b", - 5771.0 + "78cc8bff-9a73-431e-87b4-e2bf67788c2e", + "50d93e30-1003-43ac-b7da-64efe0fef182", + 560.0 ) - .description("PfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMg") - .expiresIn(1558); + .description("T90") + .expiresIn(9966); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCouponTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCouponTest.java index 057c8af..b646416 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateCouponTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateCouponTest.java @@ -12,13 +12,13 @@ public class CreateCouponTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(8539); + .discountAmount(5718); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -33,14 +33,14 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(5276) - .storageId("f77ee315-9cdc-45f7-88d8-4e2dea98d2ec"); + .discountAmount(8565) + .storageId("996a3e58-e995-4de1-95f8-4b99bf1bdd05"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -55,15 +55,15 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(475) - .minAmount(1579) - .storageId("f46b87ca-beac-4246-959f-632718138880"); + .discountAmount(9928) + .minAmount(9025) + .storageId("da557241-30a3-477c-9d8c-1e90f4e63c7a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -78,16 +78,16 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(9602) - .usageLimit(5001) - .minAmount(5144) - .storageId("03c2523f-6a22-4428-890e-3db6b613f48b"); + .discountAmount(5099) + .usageLimit(5000) + .minAmount(7440) + .storageId("ce23bc0d-0aa9-4113-b262-db0719559aa7"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,17 +102,17 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(5533) - .code("xf") - .usageLimit(8070) - .minAmount(5763) - .storageId("3de35655-d515-43b8-9712-dbc857ad1c49"); + .discountAmount(4824) + .code("507ai") + .usageLimit(1272) + .minAmount(9060) + .storageId("462ae2d4-2e63-46d9-96ea-55ea2c28ab43"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -127,18 +127,18 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(4094) - .setPublic(false) - .code("LO5Dd5X") - .usageLimit(1164) - .minAmount(144) - .storageId("3bac0488-36c6-4f57-8c0e-308cab040384"); + .discountAmount(911) + .setPublic(true) + .code("VatXW3") + .usageLimit(6205) + .minAmount(4083) + .storageId("69d3e088-87dd-49b3-ada1-7eac06fbc962"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -153,19 +153,19 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(2528) - .setHidden(false) + .discountAmount(2825) + .setHidden(true) .setPublic(false) - .code("oU011Xo") - .usageLimit(7962) - .minAmount(5831) - .storageId("59691fef-5a9b-4693-83f0-4eba34c704e5"); + .code("cKJS9JH") + .usageLimit(2758) + .minAmount(1644) + .storageId("c03798fd-3fca-4d63-a682-77fb286b1eac"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -180,20 +180,20 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(8684) - .setDisabled(true) - .setHidden(true) + .discountAmount(9075) + .setDisabled(false) + .setHidden(false) .setPublic(true) - .code("PpOt9Y") - .usageLimit(9916) - .minAmount(7954) - .storageId("59c54db3-d86d-42f3-b874-eb634e0f0273"); + .code("jjmod") + .usageLimit(6958) + .minAmount(6494) + .storageId("c9f13cbc-e521-4028-84fb-0ad1b4377603"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -208,21 +208,21 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(1542) - .displayEndsAt("2022-07-16T04:09:00.000000Z") + .discountAmount(6469) + .displayEndsAt("2024-04-11T12:57:15.000000Z") .setDisabled(true) - .setHidden(false) + .setHidden(true) .setPublic(false) - .code("QEq") - .usageLimit(4475) - .minAmount(9266) - .storageId("65bac18f-ed23-4441-9d55-29ec72878374"); + .code("UxDaghv7") + .usageLimit(9028) + .minAmount(2822) + .storageId("ee99e4ee-67dd-47d3-830f-442396d8a4b5"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -237,22 +237,22 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(9323) - .displayStartsAt("2020-01-17T13:55:18.000000Z") - .displayEndsAt("2023-11-10T17:58:13.000000Z") - .setDisabled(false) - .setHidden(true) + .discountAmount(813) + .displayStartsAt("2022-10-03T23:17:28.000000Z") + .displayEndsAt("2020-11-09T17:40:34.000000Z") + .setDisabled(true) + .setHidden(false) .setPublic(false) - .code("V8aSNO9") - .usageLimit(2060) - .minAmount(6855) - .storageId("84f34919-7dd1-4521-95c0-d76e3459a144"); + .code("fu0") + .usageLimit(3165) + .minAmount(6723) + .storageId("f7337230-c9f5-4217-a2ad-4412ae20ff2f"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -267,23 +267,23 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(5875) - .discountUpperLimit(1146) - .displayStartsAt("2024-04-11T07:18:28.000000Z") - .displayEndsAt("2020-05-25T08:09:45.000000Z") + .discountAmount(9926) + .discountUpperLimit(8592) + .displayStartsAt("2024-05-23T10:02:09.000000Z") + .displayEndsAt("2024-01-20T05:34:47.000000Z") .setDisabled(false) - .setHidden(false) + .setHidden(true) .setPublic(true) - .code("g8bbFQz") - .usageLimit(4669) - .minAmount(9680) - .storageId("e9db5f89-f6e4-4c24-acd8-ef0e9fc4b1c4"); + .code("j") + .usageLimit(9863) + .minAmount(482) + .storageId("31f1197c-e26c-4745-89db-289d93afcd8a"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -298,24 +298,24 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new CreateCoupon( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(5467) - .description("ujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6wIXIQ") - .discountUpperLimit(9314) - .displayStartsAt("2021-08-02T00:37:40.000000Z") - .displayEndsAt("2023-08-06T16:53:53.000000Z") + .discountAmount(4119) + .description("RrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0MuCLswxDV9drgRKhLSvZ2KQORxMHroQo6jM66W2y8KrZ8xMlNalvWasLjNh8s14cZJ7e4Q9GCUyL2v9u3mWzZwKqxzujrUlmkKRdRXeieY6AmMB38WCqGZQWNed5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUM") + .discountUpperLimit(6848) + .displayStartsAt("2020-06-29T07:11:22.000000Z") + .displayEndsAt("2024-10-12T10:10:01.000000Z") .setDisabled(false) .setHidden(true) - .setPublic(false) - .code("wXW1Rg") - .usageLimit(7926) - .minAmount(3472) - .storageId("a29dc282-bb78-4a3f-aa10-4d1f86482a65"); + .setPublic(true) + .code("i9J") + .usageLimit(7123) + .minAmount(1455) + .storageId("292ea468-13c8-4c4d-b393-ddb71dc15ae4"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(275) + .discountAmount(5104) .setShopSpecified(false) - .availableShopIds(new String[]{"a59beb91-ad74-4971-a32f-73852727747d","b17580dc-5a30-4b82-ac56-6075137f9285","ba00cb56-1786-40a0-80e5-6affbd737376","54cdc9c2-c39a-4e70-be4b-dfa582324009","0c618721-ea5a-4046-b355-d1104fdba895","49af4f4a-3750-4373-862c-86005d97183d","e1191f43-1ea4-4a2a-90fc-a6e3edd01c88","bc43387f-096b-41a6-8f52-833f1775b26f","799bed86-3d27-4f43-99a1-9f7448225f12"}); + .availableShopIds(new String[]{"56b02a62-fb15-44e8-8529-d0068c9e246d","c5869b7a-1b6d-479b-9797-9844f80d69ad","fa13e813-8fbd-46be-87f6-838531f752f3","9ed49940-be75-4df8-9764-cc5cfba8dad1","5b5dee7e-2a28-4246-a046-c5836b3cfb31","b70ada62-4f90-4202-bc8a-fa5b89a52cbb","35a3b02e-70b9-42c6-a7c6-15567be14553","a6540694-395d-4c29-bef8-abcecec6db8a","ff6c37c0-bb40-42d2-a781-096839bd25ad"}); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(7000) - .setShopSpecified(true) - .availableShopIds(new String[]{"9c6798c1-7b71-4022-804a-f0edf4674374","e755e42b-0e26-4e26-b4c0-aedc280cf304","9011a98e-fc59-4063-9358-37c458406e89","21b812ef-6201-4098-85c3-8de765231577","3e34b9e0-3bac-4fa4-b9be-59a93e5b2f70","4d166fd1-c0ee-4883-a0fc-135129db1c55"}) - .storageId("a85d8b2b-9df3-41ee-9ed7-90942a5b84cf"); + .discountAmount(9822) + .setShopSpecified(false) + .availableShopIds(new String[]{"e1f2e343-7f65-467c-9528-6ec74f35d227","041db507-ab33-4eb8-b346-eb2f44c6f179","30db2666-03e6-4e84-a421-75bf858c9f30","886eae47-5c5e-41ac-97f5-75e615b67fbd","48f96184-a64a-45d1-abcd-8435d07f4855"}) + .storageId("87d3d771-3e92-481c-94c7-d1b47f1bfcb0"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(4058) - .setShopSpecified(false) - .availableShopIds(new String[]{"29d0c4ca-1538-4707-a152-21dcf67f4bdd","72f91f8e-2e47-4df7-9e18-e3fa1b313416","468e4e36-4c56-4e44-9ef1-c032000810a9"}) - .minAmount(1899) - .storageId("78ee4ecc-13d6-49b7-ae15-05d55dcfc352"); + .discountAmount(7847) + .setShopSpecified(true) + .availableShopIds(new String[]{"9f090db5-ad9a-4c17-87c0-72480e643731","dd725bd9-5229-404f-8379-1c58652acae5","3ce0bcc4-9c37-4dec-bdbe-06f03d4364b3","04cbc709-8be8-487f-9604-613b03ad793c","8bcd933a-bd8e-4651-9810-32b7d84ca302"}) + .minAmount(5531) + .storageId("aaa46969-d7d4-4d9a-95e4-dff4f0a14659"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(2182) - .setShopSpecified(false) - .availableShopIds(new String[]{"aeb86f97-1cd9-4982-b3b1-f442a3277bd4","38ce07e2-54cb-4b6a-b994-d08a4f2c0b51","5a6c7a65-e9fc-41cd-a6c7-9f57b207b055","26ec1cb4-1db6-426c-8031-89c08c1b28e5","96ceea76-9032-470b-b351-aedbe0d22c35","66632850-0edf-4705-9bd4-9f8c07ca4aa1"}) - .usageLimit(8272) - .minAmount(8679) - .storageId("545687f4-0792-442e-b43d-6a34a7823606"); + .discountAmount(4139) + .setShopSpecified(true) + .availableShopIds(new String[]{"fcb46ff9-a75a-4cf4-92d9-c98c59cb9c81","9893ddce-d137-454e-9211-6ee3f3b87a16","5206e128-2890-42a3-95c3-eae5aad70444","935df521-c9fe-4458-80c9-8f25fbbb8484","c54da7b0-7c95-4a31-90bd-b5bc64c96904","94ce1b9c-ea5b-42e9-bba6-5fba1cf4acef","5ce3bed4-93b6-4d09-a4c5-b73553a52e39","5f6b0d18-0ee5-4c89-8657-62e5a6edfc13"}) + .usageLimit(2640) + .minAmount(5139) + .storageId("ec083307-b20d-414a-bb68-1fc8739a094d"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(7489) - .setShopSpecified(false) - .availableShopIds(new String[]{"2b2a45aa-bd3c-4fad-b7dc-4722c47e733f","d8f0d850-a4c0-4f31-9a24-9da0d08b8117","8065e7a4-ac30-40ca-9694-5ce61e62503a","d20cfec6-32ba-4ddc-b952-b1aa466b6bd3"}) - .code("f0Q") - .usageLimit(945) - .minAmount(3824) - .storageId("601055ed-8068-42d7-8881-e6cef7ce467b"); + .discountAmount(5891) + .setShopSpecified(true) + .availableShopIds(new String[]{"a5ff1a5d-3352-4dcf-9ffd-081a88af51af"}) + .code("Qxj") + .usageLimit(8499) + .minAmount(9879) + .storageId("2f1c4c66-bf34-4c95-b728-79b8fe01ccc5"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(1822) - .setShopSpecified(true) - .availableShopIds(new String[]{"9e9a2465-dc02-48b7-87c5-bc056113af3a","2c35717b-616a-489d-9e08-cdc2d0b79cbc"}) + .discountAmount(6636) + .setShopSpecified(false) + .availableShopIds(new String[]{"035abf34-a748-4085-8004-fdc72b313fe7","f56dc0e6-ca49-465b-ae55-165c0dcb92f5","16c2b2da-3a16-4f9c-95da-7461e016e1af","2b9792e3-12a8-4b7f-a4d8-e5ab812c334a","95ba804b-ca6c-4c6c-bc01-a20872a3e960","4209f0e4-c5dc-4adc-afc4-8b2266536d75","058599f6-60b9-4b7e-94c1-f80430ffd75b","bd7f4497-ab32-4e98-9813-83adc561af48","f7a30dfc-6552-4caa-a71d-4e58a4f42428","56eaf22c-a4ef-41e3-804c-9030a1053be1"}) .setPublic(true) - .code("kQNn9uWl9") - .usageLimit(2067) - .minAmount(8138) - .storageId("3f23cb2d-b775-4aa2-811e-375ea0720e6e"); + .code("ENj") + .usageLimit(5669) + .minAmount(271) + .storageId("0a11c971-6480-402c-b459-9ee4981a62eb"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .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"}) + .discountAmount(6090) + .setShopSpecified(false) + .availableShopIds(new String[]{"bccfa447-4657-4a67-8660-026dafeb49a5"}) .setHidden(true) .setPublic(true) - .code("vUl3UtK") - .usageLimit(443) - .minAmount(9691) - .storageId("99f70450-3c88-4f92-b5a8-815441d23bcc"); + .code("KTEIA1MAf") + .usageLimit(2221) + .minAmount(434) + .storageId("728adb16-2c48-4667-a58c-8c81f79c1663"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(7936) - .setShopSpecified(true) - .availableShopIds(new String[]{"bc9084e8-2abf-48ec-9bc0-ee3db3664d6c","442f821d-d401-46b0-87d0-0e9c724bb834","52dabad1-e9a9-4941-ab0a-37d10ff91bbd"}) + .discountAmount(1865) + .setShopSpecified(false) + .availableShopIds(new String[]{"0349736c-d537-4f2b-b446-c1f91725d9d2","ebd6c09d-6e10-4e53-94a0-3f035803979e","37284115-cfb7-481c-9363-3c2fe63833ae","5c6138e6-90a0-4be4-a1e9-de0a5c278412","2173f2d8-46c9-4b30-a170-895bb1b4c7e8","41f4138d-3087-4018-aea5-653aa07e87bb","e5c1b9d1-c114-4f70-ad09-c4e11c881845","e9c2d9c8-ffb4-431b-b69c-7984ed4013ca"}) .setDisabled(false) .setHidden(false) - .setPublic(false) - .code("PrTAo5HhY") - .usageLimit(7829) - .minAmount(8706) - .storageId("c4d8b70b-04ea-4e43-a17e-ca4747eda32b"); + .setPublic(true) + .code("MwBWB66tw") + .usageLimit(4100) + .minAmount(2648) + .storageId("db7cb161-617a-4f70-9b01-f56a8690d601"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .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") + .discountAmount(8221) + .setShopSpecified(false) + .availableShopIds(new String[]{"31cff093-142e-49c5-a506-8d5296e03845","d680b784-53ea-44fe-8bbb-17f1e09e462f","e8e0396d-13fc-4179-809e-5ca06d66d3a7","c4fb5fdf-7da0-4171-8a3b-bf92e1b5646b","1f1caddb-d0c5-4f64-a682-c86b9cd0a4de","af8100bf-2ed9-4aa1-8dad-872014b46123","722de096-831a-45a7-b67c-45bc6bd1e595","d0302a69-89a0-494d-a786-dba61a0aedbe","27f07042-f970-465a-9cc1-b5d9bf592042"}) + .displayEndsAt("2023-11-24T01:03:30.000000Z") .setDisabled(false) - .setHidden(false) + .setHidden(true) .setPublic(true) - .code("j3cWX") - .usageLimit(3634) - .minAmount(3770) - .storageId("f89234cc-76c8-4f00-8cdb-5b786f0b6a09"); + .code("Zz") + .usageLimit(2913) + .minAmount(5427) + .storageId("9400dc8f-7fb7-4471-ab8c-d9b53b0415bb"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(7932) - .setShopSpecified(false) - .availableShopIds(new String[]{"b9a977d6-8c5d-4cc3-bed2-d0d889492ca4","d5818992-91a3-414a-b752-3752962d62b9","3b4a82f6-6be8-4729-8ec9-ab142d84ff3e","7c3f0883-25f5-4215-85a0-8e8bb1029db3"}) - .displayStartsAt("2020-06-06T14:51:56.000000Z") - .displayEndsAt("2020-10-14T03:23:02.000000Z") + .discountAmount(2977) + .setShopSpecified(true) + .availableShopIds(new String[]{"0a9de69c-65c7-4afa-a933-a47fd9d4dffe","e3a73736-944e-475f-9ed1-7961e3dcab2a","b00f9b98-be76-4503-9712-c75ac005791c","b01599d8-311c-4f11-8dac-36a601f096d3","eb288dc5-fabf-4bdd-b049-62f2e1652a4b","0b8f9e64-5108-4fde-b0de-6cfa4e3abbb0"}) + .displayStartsAt("2020-03-04T19:17:26.000000Z") + .displayEndsAt("2022-03-18T20:25:07.000000Z") .setDisabled(true) .setHidden(true) - .setPublic(false) - .code("kGd5KFM") - .usageLimit(6689) - .minAmount(5918) - .storageId("3ff0cbea-6953-4c7b-be3e-4e25fc26bbc8"); + .setPublic(true) + .code("wL") + .usageLimit(5564) + .minAmount(9472) + .storageId("205b35f7-d073-4928-90b6-217c0e661650"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountAmount(9996) - .setShopSpecified(false) - .availableShopIds(new String[]{"ce67f98f-0785-42db-9210-8a21966fd081","0743d597-9212-467d-81b9-ff1b6fa09481"}) - .discountUpperLimit(8133) - .displayStartsAt("2022-11-04T06:50:09.000000Z") - .displayEndsAt("2020-12-08T05:10:13.000000Z") + .discountAmount(3112) + .setShopSpecified(true) + .availableShopIds(new String[]{"db763418-7c06-420f-b44b-4097d23625e6","b3078853-95ae-4024-b719-cdbd51222e8a","8bbe65fa-f69a-47eb-b612-20db47ea6a95","17378328-8ca6-4f05-8048-026f75de3bfb","24e2cf69-38b0-42ef-ae21-1411d64899e5","774a88c1-d4d4-4628-9ab0-594e5503cd2f","7e739f7d-bb0e-401e-bb57-e445fc20578a"}) + .discountUpperLimit(4307) + .displayStartsAt("2024-07-06T12:19:17.000000Z") + .displayEndsAt("2021-10-09T16:07:48.000000Z") .setDisabled(true) .setHidden(true) - .setPublic(true) - .code("iSyzzCHj") - .usageLimit(1238) - .minAmount(6853) - .storageId("20142e89-d545-40e7-b087-ecba52153bfc"); + .setPublic(false) + .code("nBy6crZ") + .usageLimit(8686) + .minAmount(2563) + .storageId("5282d079-82a2-4d74-acce-1767847cad39"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .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") + .discountAmount(1309) + .setShopSpecified(true) + .availableShopIds(new String[]{"7bd93b28-ca24-412d-be7b-7da0433e7b4d","936667e0-78f2-42bb-8014-2ff7850796e1","fe7961c7-541a-4a0e-a5a8-cfc6aa7398a0","fccc95f1-a2ae-4c99-9833-4d5d13f47af7","8aea1f65-86dc-46e0-a7df-b84c13bdfc2e","6fe2e053-674b-498e-8047-70ba72e0639e","d5f765fd-190f-42d2-b00b-02dc88188871","4056092c-b10b-4b12-93a3-7c45b6a67b75","438d3e1d-6083-47fd-b7e0-ff90a26abf4c","bddfb457-abd4-4a16-b9a1-f5baf376b61f"}) + .description("07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB304Jmf05hgJ0rNiPO7Acqsb1X8oQj9wf9SU4WjLK1VT02GEDFloz09QK5UFuC5JXRVayFf6oyQZu56A1wWzKTTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6cvEGDQNsufaSx2VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR0") + .discountUpperLimit(9344) + .displayStartsAt("2024-09-22T11:07:02.000000Z") + .displayEndsAt("2020-10-23T11:15:17.000000Z") .setDisabled(false) .setHidden(true) .setPublic(false) - .code("VDn") - .usageLimit(7260) - .minAmount(6071) - .storageId("466bd282-148a-470e-965f-c802f899a2c1"); + .code("mUehgiD") + .usageLimit(8821) + .minAmount(3971) + .storageId("28225289-d305-419b-b630-8ab56eb06f21"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(6905.0); + .discountPercentage(9491.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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(3816.0) - .storageId("025def26-9766-4731-960b-e5e1d03e4c32"); + .discountPercentage(7828.0) + .storageId("3dc8ea0d-8cbc-4f28-af58-764bd027fc5a"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(1815.0) - .minAmount(8361) - .storageId("2fcab82a-92e9-4e91-9693-61b4e4962c8d"); + .discountPercentage(9451.0) + .minAmount(3395) + .storageId("f85dc9bb-a8e2-4404-9614-49ad915a1b73"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(7640.0) - .usageLimit(2402) - .minAmount(9467) - .storageId("0d909ab0-0836-47d9-8f13-f081575448b5"); + .discountPercentage(4363.0) + .usageLimit(2382) + .minAmount(8834) + .storageId("ce9b6d71-e4de-4c7c-9571-17d697ae4829"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(6535.0) - .code("FN9bW") - .usageLimit(7865) - .minAmount(2539) - .storageId("adbf89ad-7822-4513-b3c6-922a83c93cba"); + .discountPercentage(2773.0) + .code("DyaVdHFVH") + .usageLimit(7930) + .minAmount(3332) + .storageId("b6adf3f5-fdc9-4d2c-843d-48081a469111"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(7691.0) - .setPublic(true) - .code("8sMw") - .usageLimit(6242) - .minAmount(9832) - .storageId("2d4b08c0-8201-4831-9746-89a56d1f4194"); + .discountPercentage(9414.0) + .setPublic(false) + .code("KJoDWe") + .usageLimit(1631) + .minAmount(7445) + .storageId("e277c96f-121c-4dae-9ad1-0f20d8044029"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(9204.0) + .discountPercentage(7513.0) .setHidden(true) - .setPublic(true) - .code("EmCrF") - .usageLimit(5037) - .minAmount(4749) - .storageId("143eb371-58ce-4392-b73f-b128c0ef59a9"); + .setPublic(false) + .code("DyUkA") + .usageLimit(9739) + .minAmount(5894) + .storageId("e725402c-acc8-4c4d-aa00-47ad62eac5dd"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(3684.0) + .discountPercentage(5756.0) .setDisabled(true) .setHidden(true) - .setPublic(false) - .code("5Q") - .usageLimit(5856) - .minAmount(8045) - .storageId("8c30ebc6-f94d-4a05-b6fb-e5ecc5ed5123"); + .setPublic(true) + .code("cusA1RKieQ") + .usageLimit(8881) + .minAmount(9708) + .storageId("10accfe4-ea69-4a70-820b-9bc3d733b1b3"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(6297.0) - .displayEndsAt("2022-04-29T07:55:42.000000Z") - .setDisabled(true) + .discountPercentage(701.0) + .displayEndsAt("2023-05-30T23:15:49.000000Z") + .setDisabled(false) .setHidden(true) .setPublic(true) - .code("a2") - .usageLimit(8588) - .minAmount(1448) - .storageId("0ad47ba4-5ea6-4e83-a76f-ea18a4c48b28"); + .code("4X") + .usageLimit(759) + .minAmount(7884) + .storageId("df6904c9-8291-4e06-bc0d-9644ea6a70f3"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(8908.0) - .displayStartsAt("2023-12-22T04:20:55.000000Z") - .displayEndsAt("2023-10-15T14:09:14.000000Z") + .discountPercentage(1290.0) + .displayStartsAt("2020-03-31T08:18:57.000000Z") + .displayEndsAt("2020-03-04T16:12:10.000000Z") .setDisabled(false) .setHidden(false) .setPublic(false) - .code("E9OEvOU") - .usageLimit(4169) - .minAmount(7785) - .storageId("3d98deae-d342-4b3e-b7e2-19bc6c04764a"); + .code("3ZF3") + .usageLimit(8231) + .minAmount(6942) + .storageId("dc87a1b8-c108-4693-a806-8b76e6cd3aba"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(5017.0) - .discountUpperLimit(4268) - .displayStartsAt("2023-04-20T09:30:47.000000Z") - .displayEndsAt("2020-06-02T02:54:45.000000Z") + .discountPercentage(8498.0) + .discountUpperLimit(361) + .displayStartsAt("2021-07-14T20:28:27.000000Z") + .displayEndsAt("2022-05-17T18:48:43.000000Z") .setDisabled(true) .setHidden(false) .setPublic(false) - .code("fgOe9n") - .usageLimit(1238) - .minAmount(6254) - .storageId("27c7e262-9c4f-46ae-8de6-bb5bcc92f031"); + .code("IfeAIGZ") + .usageLimit(424) + .minAmount(6246) + .storageId("decd5bcf-8ab7-42cf-aa72-e422a544df53"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(1885.0) - .description("ceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8") - .discountUpperLimit(8336) - .displayStartsAt("2020-01-06T07:23:01.000000Z") - .displayEndsAt("2020-06-15T12:46:52.000000Z") + .discountPercentage(6514.0) + .description("B2QPQ9Y2Rpsj0heI1pcWBx1T31cQtfbPCATbfETgM8KooCtS8z1fc4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4") + .discountUpperLimit(591) + .displayStartsAt("2023-02-03T19:35:01.000000Z") + .displayEndsAt("2024-02-22T07:12:15.000000Z") .setDisabled(false) .setHidden(false) .setPublic(true) - .code("kI4pFJl") - .usageLimit(6655) - .minAmount(3551) - .storageId("126693af-cedc-4cb8-a1b4-05b925102d26"); + .code("636fXlQm") + .usageLimit(1610) + .minAmount(3224) + .storageId("dbeac70b-ce39-487a-b285-e19909b191ba"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(8325.0) - .setShopSpecified(true) - .availableShopIds(new String[]{"55e623d3-3008-4ae9-92d6-d0729014de2b"}); + .discountPercentage(4498.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"bba9d18b-c0ae-4dab-ae05-b9562b10645d","f5cb1e33-6246-4045-893f-9ad6d0a1b47c","e5673c21-60e0-414f-9740-e44d8ab27c4d"}); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(8900.0) + .discountPercentage(4896.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"); + .availableShopIds(new String[]{"c886cc2b-7dee-45ac-a3e7-3ddbcab898a0"}) + .storageId("70a39782-f653-4567-a63b-0c70ed80d36e"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(2100.0) + .discountPercentage(7341.0) .setShopSpecified(true) - .availableShopIds(new String[]{"298885eb-261f-4c15-a34e-76c868c83027","d9f60dd2-e9cd-4a5c-9818-c02e7433add1","08083083-b4d4-4a7a-9dd7-0d0c6491a8b1","94c1bb16-553d-44a5-a9c2-970faebdd969","baba755e-cdd5-4cfd-a0c9-4118da35531c","1c8d12a8-91fd-4535-ba5f-8f4ae394208f","f376cade-09af-443a-873a-e37f67fd241e","7d2c923f-e862-4e00-a8c7-4eefd1c02545"}) - .minAmount(7161) - .storageId("3f29d096-da9e-4404-99cb-2a97108e0b05"); + .availableShopIds(new String[]{"d36558b2-22cb-4a09-bf75-ab5832377df9","f75cdbd2-d367-4c98-9b92-04c7e9c498ba","0a7865e6-abd5-40e6-904e-10c5146ce84e","334fc160-c693-4b81-bcf2-4b099cb3257d"}) + .minAmount(68) + .storageId("3a220975-ebbc-48b8-9431-e0caefc89793"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(2185.0) + .discountPercentage(2994.0) .setShopSpecified(false) - .availableShopIds(new String[]{"c627f3ef-a930-4b04-97ad-45768dcfdd4e","67908976-c2f5-47e0-9d7c-091bd2633dda","971cdf32-d77a-4e4f-8e91-f12542046b8a","b92bbb9b-9cf9-4602-be6d-eebdb03f06e4","30f6517d-1f8f-4b00-960f-e29e7e20bd8c"}) - .usageLimit(7222) - .minAmount(5012) - .storageId("52ebbb80-abaf-4a81-a0a1-b89408e5a109"); + .availableShopIds(new String[]{"cbc20fea-693a-4f67-baea-956d617c452e","df07defd-458e-4c8f-9ac3-1f2eda3f3852","353d4521-d5c2-4f36-828e-3f0ba8e02f12","5430a2ad-9ce2-4087-a457-c553ac6f48de","1b59debc-26b6-49a0-bc5f-7a4a8aa4fec3","728ee8a1-dc1d-4715-86c9-5df5715071ce","98504bad-b62c-4895-a4fc-cb35514deb0a","1c8c664f-1a8d-48c6-8ef2-89da2103688e"}) + .usageLimit(1624) + .minAmount(9389) + .storageId("aed35b40-e286-4983-b7b2-9cd18225d461"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(4730.0) + .discountPercentage(3468.0) .setShopSpecified(true) - .availableShopIds(new String[]{"cc6bf7b6-f610-4710-b3dc-5a6c0f58fd7b","c625cb5f-9b9e-405b-8622-76f235ed48f9"}) - .code("8C4rDtJ") - .usageLimit(5582) - .minAmount(1855) - .storageId("e2dbf0fa-66fc-4895-a345-c3465577b31d"); + .availableShopIds(new String[]{"87c9a0da-0ef0-4f7a-97a7-51d92c5a6f84","b17bd7af-f01c-48aa-a623-30061702a986","2bcce463-0494-4e16-9401-cb4452773a78"}) + .code("widoKx") + .usageLimit(6952) + .minAmount(3902) + .storageId("7d116568-c867-4ec8-b4de-52c9fe288d6c"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(2148.0) + .discountPercentage(4801.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"}) + .availableShopIds(new String[]{"7b3dfca9-6bb4-4f34-84b0-59a6a652b184"}) .setPublic(false) - .code("i") - .usageLimit(3390) - .minAmount(5939) - .storageId("9c20b5ad-eb71-481c-ab70-91ab73d86e1e"); + .code("8ievlut") + .usageLimit(3462) + .minAmount(2442) + .storageId("42d83d5d-af4d-4b21-9cc2-7392cff7f097"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .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"}) + .discountPercentage(4631.0) + .setShopSpecified(true) + .availableShopIds(new String[]{"a6b15bb7-5638-4c99-9738-8fe9399d52a1","fed9156c-b1dd-4860-9c7b-d7ac721e962d","1924e5a8-8bb7-4ed5-859f-5b71ec9da953"}) .setHidden(true) .setPublic(true) - .code("HdsS3") - .usageLimit(3756) - .minAmount(133) - .storageId("83f44596-2a53-4d05-a8ea-7b8f91f114af"); + .code("9xJxJq4hHb") + .usageLimit(5711) + .minAmount(856) + .storageId("798bd59e-b602-4b16-aad9-e460e8af52d6"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(3857.0) - .setShopSpecified(true) - .availableShopIds(new String[]{"0b31ac34-f91f-4253-815c-3c3fdd13c1f2","39da7e0d-6db1-4667-8fab-81d32052d05c"}) + .discountPercentage(1211.0) + .setShopSpecified(false) + .availableShopIds(new String[]{"fd47e0d6-b7ea-44cb-9d19-87fa1b4c3c46","d0ef4d68-8c25-4101-a0ed-0c78bc4b4ff5","3dd4aa26-8929-4a5b-99c0-71a14f787994","d0b21fd6-0d36-4634-b117-0ae59795d800","a4b55684-14b5-4d90-af9d-1603a2217c02","d0e69813-b3ef-47b2-82b2-a8cf0f13aea0","1341c8ff-5f20-4a6c-924c-06adfb2ec625","cdaa22d8-2d81-44fc-a407-31140e04d607","6ec9b3eb-653d-47a1-8605-ec82443a31db"}) .setDisabled(false) .setHidden(true) .setPublic(false) - .code("Pel") - .usageLimit(7033) - .minAmount(3063) - .storageId("f12ef0a9-645b-4f71-ae27-6f6b27922871"); + .code("uw4") + .usageLimit(9884) + .minAmount(281) + .storageId("44865add-d23f-4a4a-a22e-2caf00c567a7"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(7976.0) + .discountPercentage(3321.0) .setShopSpecified(false) - .availableShopIds(new String[]{"ed415e4a-40c7-491c-86db-6b7b9047bc21","96da3455-78a4-4357-971f-58de46390022","52b95c63-588c-40df-82ae-d68f76c870f3","1cbc1fb7-844f-4a4b-b22b-876189a34d37","d48ccbdd-7dcc-490d-a1bd-c1d40e3b0e47","11a83669-d680-4d2d-8ae0-71a50b0f02d3","b8876de9-e6b2-44ee-9f56-5643e01671e1"}) - .displayEndsAt("2023-05-18T23:24:23.000000Z") - .setDisabled(false) + .availableShopIds(new String[]{"c3231c88-6d0f-4824-ba8a-c0f79ba5d01a","2ef0da2e-08db-43c0-b42f-1dfe245002f7","29a2957c-05e5-4182-a1eb-ac44f37e9d79","64e44267-56ab-4014-a405-d50c817f435d","285c8f30-211b-4002-9446-6a219bcbf3bf"}) + .displayEndsAt("2023-02-16T06:43:53.000000Z") + .setDisabled(true) .setHidden(false) - .setPublic(false) - .code("Wf") - .usageLimit(6811) - .minAmount(8019) - .storageId("08830937-d988-4741-b15c-657798bfddcc"); + .setPublic(true) + .code("ujDlCi") + .usageLimit(8641) + .minAmount(5516) + .storageId("95211c5b-07c2-4920-816c-7394f1f9625b"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(492.0) + .discountPercentage(1408.0) .setShopSpecified(true) - .availableShopIds(new String[]{"614a3316-a7e9-4715-a33e-02cfa30af7c2"}) - .displayStartsAt("2022-08-19T08:58:33.000000Z") - .displayEndsAt("2022-03-25T12:11:45.000000Z") - .setDisabled(true) - .setHidden(true) - .setPublic(false) - .code("F") - .usageLimit(4045) - .minAmount(8409) - .storageId("a3f6e75e-cad1-464c-911b-720b25f9c608"); + .availableShopIds(new String[]{"3c5714c9-ba90-4ddb-9e9a-cde8d9899370","0b6259ff-c668-4a07-8674-28fe63d7148c","7033b9a0-1891-4bb9-bbcd-c0ae3d8f5dba","939c93df-78fb-4fbd-9afc-55c860e30a97","dc4a574b-9b17-4801-9b4b-9ab47f02a0c2","4babbfec-2a6a-4f8c-b8af-4ab74be306f3","2078704a-2234-42b2-b4e0-3040d29ef3a6"}) + .displayStartsAt("2021-09-29T06:44:20.000000Z") + .displayEndsAt("2021-03-23T23:00:20.000000Z") + .setDisabled(false) + .setHidden(false) + .setPublic(true) + .code("kePpr") + .usageLimit(2331) + .minAmount(9863) + .storageId("90cd7b71-3b85-495f-8c86-b8d8f6b7f64a"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(3147.0) - .setShopSpecified(false) - .availableShopIds(new String[]{"68d9266a-f65d-445f-a471-3588e7417dc8","520127b9-c760-48a5-8b87-53e0cee1e364","a2bd8df9-53e0-441a-a6e7-851a622658f3"}) - .discountUpperLimit(4934) - .displayStartsAt("2020-05-16T10:47:43.000000Z") - .displayEndsAt("2021-11-05T09:57:35.000000Z") + .discountPercentage(7182.0) + .setShopSpecified(true) + .availableShopIds(new String[]{"ff627824-5239-471d-84ec-da0eda4e9e27","9d105d1e-8447-4108-a122-e56acc899328","4fb9375f-3c5f-4d71-9963-445bf43181b5","898a7733-e75b-425c-ab02-a901188a9c05"}) + .discountUpperLimit(7028) + .displayStartsAt("2021-10-19T05:36:38.000000Z") + .displayEndsAt("2023-09-16T14:38:27.000000Z") .setDisabled(true) .setHidden(true) .setPublic(false) - .code("89Abrha") - .usageLimit(5397) - .minAmount(389) - .storageId("c28b0a7e-0bd7-4eff-921c-1acdbdd36389"); + .code("bpNKlO") + .usageLimit(8973) + .minAmount(776) + .storageId("dec12029-8a1b-4349-b17c-65468965e7aa"); 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( - "6766f169-5df9-4e9b-8e09-a269a879dd33", - "aAuGXWsNdhyWJyqrPAKmmZGZJN", - "2022-07-04T11:47:15.000000Z", - "2021-02-13T08:49:11.000000Z", - "602867b4-6c6a-49ba-ab32-7161fcd53418" + "d67ac5c1-271e-4651-a175-2be4903698ad", + "FEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE", + "2023-12-06T12:47:52.000000Z", + "2022-02-20T16:27:23.000000Z", + "b03c66ce-63fb-42e9-a779-3ee3be44dae3" ) - .discountPercentage(6992.0) + .discountPercentage(9157.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(false) + .availableShopIds(new String[]{"2908b41b-f37a-40ec-aa6b-921e2af5a01f","ac1ed52f-0485-4dfd-a2da-17d8fec5cb22","ac034b73-d584-445e-a83e-30dcd0cf40c8","99bfb9be-9365-411a-8b39-21190ead1889","27b84398-8e36-4052-8f1c-3eb789a6037e","142f7e7a-557c-4b2c-a3fb-a6da7740b21a"}) + .description("jofXop8q4Bfps6VchHwOSBaSPaNKxM4bPYPan8UYIRAISeS032nbwP9uwXrTB") + .discountUpperLimit(167) + .displayStartsAt("2022-06-23T11:10:52.000000Z") + .displayEndsAt("2020-12-22T23:37:59.000000Z") + .setDisabled(true) + .setHidden(true) .setPublic(false) - .code("hAD4rp") - .usageLimit(7287) - .minAmount(5143) - .storageId("505e7faa-8ce8-4cd7-931b-1c1116ecf546"); + .code("8") + .usageLimit(7727) + .minAmount(5671) + .storageId("7f43669b-9646-4442-a5dd-c23ab397d6b1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCpmTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCpmTransactionTest.java index 6d28c48..04ba50a 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateCpmTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateCpmTransactionTest.java @@ -12,9 +12,9 @@ public class CreateCpmTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "1GkRhboXHY39x3Xs6KbKOj", + "0009fa55-41d1-4a59-9e4c-501364f356f3", + 1343.0 ); try { PartnerAPITest.getClient().send(request); @@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "1GkRhboXHY39x3Xs6KbKOj", + "0009fa55-41d1-4a59-9e4c-501364f356f3", + 1343.0 ) - .strategy("point-preferred"); + .strategy("money-only"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -49,11 +49,11 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "1GkRhboXHY39x3Xs6KbKOj", + "0009fa55-41d1-4a59-9e4c-501364f356f3", + 1343.0 ) - .requestId("77fe478d-5bc6-4e78-8807-b6de97513e52") + .requestId("df78c770-f9bd-4b68-b84e-77630006671f") .strategy("point-preferred"); try { PartnerAPITest.getClient().send(request); @@ -100,53 +100,13 @@ void test3() throws ConnectionError, ProcessingError { items4.addProperty("quantity", 1); items4.addProperty("is_discounted", false); items4.addProperty("other", "{}"); - JsonObject items5 = new JsonObject(); - items5.addProperty("jan_code", "abc"); - items5.addProperty("name", "name1"); - items5.addProperty("unit_price", 100); - items5.addProperty("price", 100); - items5.addProperty("quantity", 1); - items5.addProperty("is_discounted", false); - items5.addProperty("other", "{}"); - JsonObject items6 = new JsonObject(); - items6.addProperty("jan_code", "abc"); - items6.addProperty("name", "name1"); - items6.addProperty("unit_price", 100); - items6.addProperty("price", 100); - items6.addProperty("quantity", 1); - items6.addProperty("is_discounted", false); - items6.addProperty("other", "{}"); - 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", "{}"); Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "1GkRhboXHY39x3Xs6KbKOj", + "0009fa55-41d1-4a59-9e4c-501364f356f3", + 1343.0 ) - .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .requestId("27df3392-3887-41d4-a9d4-dcd7c7e0a74f") + .products(new Object[]{items,items2,items3,items4}) + .requestId("3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf") .strategy("money-only"); try { PartnerAPITest.getClient().send(request); @@ -185,30 +145,14 @@ void test4() throws ConnectionError, ProcessingError { items3.addProperty("quantity", 1); items3.addProperty("is_discounted", false); items3.addProperty("other", "{}"); - JsonObject items4 = new JsonObject(); - items4.addProperty("jan_code", "abc"); - items4.addProperty("name", "name1"); - items4.addProperty("unit_price", 100); - items4.addProperty("price", 100); - items4.addProperty("quantity", 1); - items4.addProperty("is_discounted", false); - items4.addProperty("other", "{}"); - JsonObject items5 = new JsonObject(); - items5.addProperty("jan_code", "abc"); - items5.addProperty("name", "name1"); - items5.addProperty("unit_price", 100); - items5.addProperty("price", 100); - items5.addProperty("quantity", 1); - items5.addProperty("is_discounted", false); - items5.addProperty("other", "{}"); Request request = new CreateCpmTransaction( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "1GkRhboXHY39x3Xs6KbKOj", + "0009fa55-41d1-4a59-9e4c-501364f356f3", + 1343.0 ) .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3,items4,items5}) - .requestId("94f12ee0-aa98-42cb-8c1e-da6849d2aba5") + .products(new Object[]{items,items2,items3}) + .requestId("f23da194-6937-4e30-8b52-37db106c86c7") .strategy("money-only"); try { PartnerAPITest.getClient().send(request); @@ -239,16 +183,80 @@ 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( - "yg3cEPs9bN7e1DJRmWCvXV", - "39a71035-8e66-4183-b79c-a92f11a3288a", - 14.0 + "1GkRhboXHY39x3Xs6KbKOj", + "0009fa55-41d1-4a59-9e4c-501364f356f3", + 1343.0 ) - .description("4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjH") + .description("2ETtMe3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVe") .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2}) - .requestId("391bed4c-b269-4fab-b226-1d00f8db6c8b") - .strategy("money-only"); + .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .requestId("6e549005-a6ea-4d16-8137-76cba500397f") + .strategy("point-preferred"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java index ea29985..dac3278 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java @@ -12,10 +12,10 @@ public class CreateExchangeTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateExchangeTransaction( - "ca127c0c-3261-4028-94cc-ccf2d2a52131", - "c81a0cc2-7c07-4a5f-9e8b-8ecc4a7031d9", - "db01c22d-6011-4ce4-a38d-62e775c56e73", - 7412 + "7fc65c90-b7ee-46a2-8f16-d4bce6538980", + "c8e54946-8dae-4458-95d2-561929532720", + "112f0529-52eb-4fea-8363-e16174830767", + 3588 ); try { PartnerAPITest.getClient().send(request); @@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateExchangeTransaction( - "ca127c0c-3261-4028-94cc-ccf2d2a52131", - "c81a0cc2-7c07-4a5f-9e8b-8ecc4a7031d9", - "db01c22d-6011-4ce4-a38d-62e775c56e73", - 7412 + "7fc65c90-b7ee-46a2-8f16-d4bce6538980", + "c8e54946-8dae-4458-95d2-561929532720", + "112f0529-52eb-4fea-8363-e16174830767", + 3588 ) - .requestId("92f5b7ff-f7c2-450e-bc37-458e428585bb"); + .requestId("05a444e7-b031-4778-b025-0b1229d464a1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateExchangeTransaction( - "ca127c0c-3261-4028-94cc-ccf2d2a52131", - "c81a0cc2-7c07-4a5f-9e8b-8ecc4a7031d9", - "db01c22d-6011-4ce4-a38d-62e775c56e73", - 7412 + "7fc65c90-b7ee-46a2-8f16-d4bce6538980", + "c8e54946-8dae-4458-95d2-561929532720", + "112f0529-52eb-4fea-8363-e16174830767", + 3588 ) - .description("f3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5c") - .requestId("1ea02ddd-cfa7-4d7b-9c0d-0729624b266b"); + .description("Cy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56") + .requestId("ab1d9e60-6525-4748-91d6-5e9dc86d7274"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateExternalTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateExternalTransactionTest.java index 73757b9..a39e490 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateExternalTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateExternalTransactionTest.java @@ -12,10 +12,10 @@ public class CreateExternalTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "fa16706b-41fd-4807-88dc-542ae5597042", + "f1fe4042-ee07-4d1e-8c9d-fbf998ffcafd", + "a44d3c12-ef6d-4e7a-9831-d7e90422bfcb", + 7233 ); try { PartnerAPITest.getClient().send(request); @@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "fa16706b-41fd-4807-88dc-542ae5597042", + "f1fe4042-ee07-4d1e-8c9d-fbf998ffcafd", + "a44d3c12-ef6d-4e7a-9831-d7e90422bfcb", + 7233 ) - .doneAt("2021-12-27T02:20:28.000000Z"); + .doneAt("2022-02-22T14:30:19.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "fa16706b-41fd-4807-88dc-542ae5597042", + "f1fe4042-ee07-4d1e-8c9d-fbf998ffcafd", + "a44d3c12-ef6d-4e7a-9831-d7e90422bfcb", + 7233 ) - .requestId("043b69d1-e8c2-4486-9f49-0d0c4338b4d8") - .doneAt("2021-07-15T01:50:22.000000Z"); + .requestId("feec2bf3-7882-4123-9e3c-89ae06556ae1") + .doneAt("2020-11-16T15:44:44.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -88,14 +88,14 @@ void test3() throws ConnectionError, ProcessingError { items2.addProperty("is_discounted", false); items2.addProperty("other", "{}"); Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "fa16706b-41fd-4807-88dc-542ae5597042", + "f1fe4042-ee07-4d1e-8c9d-fbf998ffcafd", + "a44d3c12-ef6d-4e7a-9831-d7e90422bfcb", + 7233 ) .products(new Object[]{items,items2}) - .requestId("96edc93f-6bca-4fc2-8be7-b525e401f85d") - .doneAt("2024-02-02T10:33:18.000000Z"); + .requestId("a604343f-c668-4339-a508-ec20429da574") + .doneAt("2021-11-02T01:18:02.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -117,32 +117,16 @@ void test4() throws ConnectionError, ProcessingError { items.addProperty("quantity", 1); items.addProperty("is_discounted", false); items.addProperty("other", "{}"); - JsonObject items2 = new JsonObject(); - items2.addProperty("jan_code", "abc"); - items2.addProperty("name", "name1"); - items2.addProperty("unit_price", 100); - items2.addProperty("price", 100); - items2.addProperty("quantity", 1); - items2.addProperty("is_discounted", false); - items2.addProperty("other", "{}"); - JsonObject items3 = new JsonObject(); - items3.addProperty("jan_code", "abc"); - items3.addProperty("name", "name1"); - items3.addProperty("unit_price", 100); - items3.addProperty("price", 100); - items3.addProperty("quantity", 1); - items3.addProperty("is_discounted", false); - items3.addProperty("other", "{}"); Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "fa16706b-41fd-4807-88dc-542ae5597042", + "f1fe4042-ee07-4d1e-8c9d-fbf998ffcafd", + "a44d3c12-ef6d-4e7a-9831-d7e90422bfcb", + 7233 ) .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3}) - .requestId("406e7215-c344-46b1-9c0b-5dc00ce938f9") - .doneAt("2020-12-01T12:39:39.000000Z"); + .products(new Object[]{items}) + .requestId("e5eb1777-bbc7-4d1c-9019-35089254c719") + .doneAt("2023-07-04T03:36:58.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -196,41 +180,17 @@ void test5() throws ConnectionError, ProcessingError { items5.addProperty("quantity", 1); items5.addProperty("is_discounted", false); items5.addProperty("other", "{}"); - JsonObject items6 = new JsonObject(); - items6.addProperty("jan_code", "abc"); - items6.addProperty("name", "name1"); - items6.addProperty("unit_price", 100); - items6.addProperty("price", 100); - items6.addProperty("quantity", 1); - items6.addProperty("is_discounted", false); - items6.addProperty("other", "{}"); - JsonObject items7 = new JsonObject(); - items7.addProperty("jan_code", "abc"); - items7.addProperty("name", "name1"); - items7.addProperty("unit_price", 100); - items7.addProperty("price", 100); - items7.addProperty("quantity", 1); - items7.addProperty("is_discounted", false); - items7.addProperty("other", "{}"); - JsonObject items8 = new JsonObject(); - items8.addProperty("jan_code", "abc"); - items8.addProperty("name", "name1"); - items8.addProperty("unit_price", 100); - items8.addProperty("price", 100); - items8.addProperty("quantity", 1); - items8.addProperty("is_discounted", false); - items8.addProperty("other", "{}"); Request request = new CreateExternalTransaction( - "cef71cb4-adc8-4988-ac73-f97e7ce8164c", - "7813ba65-86c9-405d-a33c-de4e4e377c19", - "612f9089-0c72-4746-ae40-ce76e1c17413", - 8221 + "fa16706b-41fd-4807-88dc-542ae5597042", + "f1fe4042-ee07-4d1e-8c9d-fbf998ffcafd", + "a44d3c12-ef6d-4e7a-9831-d7e90422bfcb", + 7233 ) - .description("FlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rW") + .description("dfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWv") .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .requestId("8481e464-8ecb-439a-b2f9-a6101006bce2") - .doneAt("2023-06-01T04:59:05.000000Z"); + .products(new Object[]{items,items2,items3,items4,items5}) + .requestId("5e23fc7e-7b83-40ea-98ec-fa488cecc522") + .doneAt("2021-06-03T02:17:57.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateOrganizationTest.java b/src/test/java/jp/pokepay/partnerapi/CreateOrganizationTest.java index c3c77a8..279b93a 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateOrganizationTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateOrganizationTest.java @@ -12,11 +12,11 @@ public class CreateOrganizationTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "QAi0YorDHLBFs", + "4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3", + new String[]{"af460273-77e4-400e-9766-18e9f5667532"}, + "Z2Wvmx0ZqL@Ewxw.com", + "j8U4A4KZBQ@dvuQ.com" ); try { PartnerAPITest.getClient().send(request); @@ -32,13 +32,13 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "QAi0YorDHLBFs", + "4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3", + new String[]{"af460273-77e4-400e-9766-18e9f5667532"}, + "Z2Wvmx0ZqL@Ewxw.com", + "j8U4A4KZBQ@dvuQ.com" ) - .contactName("SoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcda"); + .contactName("5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MIK7GdyM50XmxAy3ATl"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -53,14 +53,14 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "QAi0YorDHLBFs", + "4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3", + new String[]{"af460273-77e4-400e-9766-18e9f5667532"}, + "Z2Wvmx0ZqL@Ewxw.com", + "j8U4A4KZBQ@dvuQ.com" ) - .bankAccountHolderName("R") - .contactName("9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs8"); + .bankAccountHolderName("ワ") + .contactName("a99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -75,15 +75,15 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "QAi0YorDHLBFs", + "4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3", + new String[]{"af460273-77e4-400e-9766-18e9f5667532"}, + "Z2Wvmx0ZqL@Ewxw.com", + "j8U4A4KZBQ@dvuQ.com" ) - .bankAccount("116767") - .bankAccountHolderName("8") - .contactName("zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7"); + .bankAccount("8245") + .bankAccountHolderName("/") + .contactName("B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7s"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -98,16 +98,16 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "QAi0YorDHLBFs", + "4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3", + new String[]{"af460273-77e4-400e-9766-18e9f5667532"}, + "Z2Wvmx0ZqL@Ewxw.com", + "j8U4A4KZBQ@dvuQ.com" ) - .bankAccountType("other") - .bankAccount("89874") - .bankAccountHolderName(",") - .contactName("43AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchk"); + .bankAccountType("saving") + .bankAccount("73") + .bankAccountHolderName("\\") + .contactName("fkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3Bk"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -122,17 +122,17 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "QAi0YorDHLBFs", + "4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3", + new String[]{"af460273-77e4-400e-9766-18e9f5667532"}, + "Z2Wvmx0ZqL@Ewxw.com", + "j8U4A4KZBQ@dvuQ.com" ) - .bankBranchCode("165") - .bankAccountType("saving") - .bankAccount("300") - .bankAccountHolderName("ラ") - .contactName("ZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RI"); + .bankBranchCode("") + .bankAccountType("current") + .bankAccount("751004") + .bankAccountHolderName("\\") + .contactName("kBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -147,18 +147,18 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "QAi0YorDHLBFs", + "4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3", + new String[]{"af460273-77e4-400e-9766-18e9f5667532"}, + "Z2Wvmx0ZqL@Ewxw.com", + "j8U4A4KZBQ@dvuQ.com" ) - .bankBranchName("GwbFSZ2qU3L") - .bankBranchCode("624") - .bankAccountType("saving") - .bankAccount("5") + .bankBranchName("ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa") + .bankBranchCode("") + .bankAccountType("other") + .bankAccount("137206") .bankAccountHolderName("\\") - .contactName("3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7"); + .contactName("cqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHC"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -173,19 +173,19 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "QAi0YorDHLBFs", + "4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3", + new String[]{"af460273-77e4-400e-9766-18e9f5667532"}, + "Z2Wvmx0ZqL@Ewxw.com", + "j8U4A4KZBQ@dvuQ.com" ) - .bankCode("4615") - .bankBranchName("klIR5ig74Fkbtbb0Sl") - .bankBranchCode("219") - .bankAccountType("other") - .bankAccount("7948") + .bankCode("") + .bankBranchName("e3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0K") + .bankBranchCode("") + .bankAccountType("current") + .bankAccount("5") .bankAccountHolderName("\\") - .contactName("Hxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp9"); + .contactName("WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGkENDSkRyfWKAxjQWjCB8nFcqmENfDor1zgwF9x3xZsR5bLJPhH3FEHzbfU4cD6smAeqngifjNikqDE3"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -200,20 +200,20 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new CreateOrganization( - "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N", - "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA", - new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"}, - "mgCWNKDP1e@nxAK.com", - "ZBD2FhNoFZ@KIbA.com" + "QAi0YorDHLBFs", + "4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3", + new String[]{"af460273-77e4-400e-9766-18e9f5667532"}, + "Z2Wvmx0ZqL@Ewxw.com", + "j8U4A4KZBQ@dvuQ.com" ) - .bankName("ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5Y") + .bankName("udXpYhNwFWUAKOnW") .bankCode("") - .bankBranchName("VquVYsbDyy") - .bankBranchCode("292") - .bankAccountType("other") - .bankAccount("534") - .bankAccountHolderName(".") - .contactName("qoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJ"); + .bankBranchName("na0lYNQbEnbMVdbi9G5aE3q4gTN93gHJA1FfneXYR") + .bankBranchCode("") + .bankAccountType("current") + .bankAccount("61") + .bankAccountHolderName("\\") + .contactName("K2QWEkaIk3Nf304AeRoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBx"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionTest.java index 96db774..cfe176e 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionTest.java @@ -12,10 +12,10 @@ public class CreatePaymentTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreatePaymentTransaction( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "27ac2005-7c22-415a-ab8b-d85e7d982b7f", + "dc784dc5-eefa-4b1a-8360-6599a3456a3d", + "db5e445b-df76-4e09-b74f-76cbe66977ff", + 4536 ); try { PartnerAPITest.getClient().send(request); @@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreatePaymentTransaction( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "27ac2005-7c22-415a-ab8b-d85e7d982b7f", + "dc784dc5-eefa-4b1a-8360-6599a3456a3d", + "db5e445b-df76-4e09-b74f-76cbe66977ff", + 4536 ) - .strategy("money-only"); + .strategy("point-preferred"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -51,12 +51,12 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreatePaymentTransaction( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "27ac2005-7c22-415a-ab8b-d85e7d982b7f", + "dc784dc5-eefa-4b1a-8360-6599a3456a3d", + "db5e445b-df76-4e09-b74f-76cbe66977ff", + 4536 ) - .requestId("2aa855f3-c72b-4758-bde2-f146fa62868a") + .requestId("def2ca2a-39fd-4c94-8e19-37ce54a21c65") .strategy("money-only"); try { PartnerAPITest.getClient().send(request); @@ -119,15 +119,47 @@ 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( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "27ac2005-7c22-415a-ab8b-d85e7d982b7f", + "dc784dc5-eefa-4b1a-8360-6599a3456a3d", + "db5e445b-df76-4e09-b74f-76cbe66977ff", + 4536 ) - .products(new Object[]{items,items2,items3,items4,items5,items6}) - .requestId("3829af74-a55a-42fb-b477-53c649410e93") - .strategy("point-preferred"); + .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .requestId("6021bd6e-c3c6-4134-bd31-ba6ffb7b8917") + .strategy("money-only"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -206,14 +238,14 @@ void test4() throws ConnectionError, ProcessingError { items8.addProperty("is_discounted", false); items8.addProperty("other", "{}"); Request request = new CreatePaymentTransaction( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "27ac2005-7c22-415a-ab8b-d85e7d982b7f", + "dc784dc5-eefa-4b1a-8360-6599a3456a3d", + "db5e445b-df76-4e09-b74f-76cbe66977ff", + 4536 ) .metadata("{\"key\":\"value\"}") .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .requestId("48d1c6ac-7999-4478-82ae-158994bd6c1a") + .requestId("fcea5c5e-577d-49d2-96a1-c697d1c9bdea") .strategy("money-only"); try { PartnerAPITest.getClient().send(request); @@ -292,17 +324,33 @@ void test5() throws ConnectionError, ProcessingError { items8.addProperty("quantity", 1); items8.addProperty("is_discounted", false); items8.addProperty("other", "{}"); + JsonObject items9 = new JsonObject(); + items9.addProperty("jan_code", "abc"); + items9.addProperty("name", "name1"); + items9.addProperty("unit_price", 100); + items9.addProperty("price", 100); + items9.addProperty("quantity", 1); + items9.addProperty("is_discounted", false); + items9.addProperty("other", "{}"); + JsonObject items10 = new JsonObject(); + items10.addProperty("jan_code", "abc"); + items10.addProperty("name", "name1"); + items10.addProperty("unit_price", 100); + items10.addProperty("price", 100); + items10.addProperty("quantity", 1); + items10.addProperty("is_discounted", false); + items10.addProperty("other", "{}"); Request request = new CreatePaymentTransaction( - "ae21cfdf-3cfd-409a-9617-cd364b4ac168", - "ac57cbb5-9cc4-46d1-b484-3f1e1589a291", - "e3e53d7f-6dd4-4714-bb10-9a1b5929494c", - 2752 + "27ac2005-7c22-415a-ab8b-d85e7d982b7f", + "dc784dc5-eefa-4b1a-8360-6599a3456a3d", + "db5e445b-df76-4e09-b74f-76cbe66977ff", + 4536 ) - .description("LsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zL") + .description("xtS") .metadata("{\"key\":\"value\"}") - .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8}) - .requestId("d910fda9-2d27-407b-8e19-bb249777445a") - .strategy("money-only"); + .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .requestId("01fadb23-8c89-4fff-9167-28d459263a3f") + .strategy("point-preferred"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateShopTest.java b/src/test/java/jp/pokepay/partnerapi/CreateShopTest.java index 5a50ce6..3232957 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateShopTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateShopTest.java @@ -12,7 +12,7 @@ public class CreateShopTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "NIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "NIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD" ) - .organizationCode("T-sG-A-Y4rx3806--"); + .organizationCode("--0-mnj-Q"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "NIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD" ) - .shopExternalId("cqmENfDor1zgwF9x3") - .organizationCode("2-"); + .shopExternalId("A3BNnPJo0CH10G") + .organizationCode("A-Ok-30d-6--2-0H-"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "NIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD" ) - .shopEmail("fU4cD6smAe@qngi.com") - .shopExternalId("ikqDE3OudXpYhNw") - .organizationCode("ZA7BK-"); + .shopEmail("zSfk2HEbXx@ayxz.com") + .shopExternalId("2cghdc2Ljaj2Gs") + .organizationCode("---O4-ieo-t-5AZhu-iOh-1xLfGG-T"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "NIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD" ) - .shopTel("0476633-271") - .shopEmail("1FfneXYRV1@FBu9.com") - .shopExternalId("VqwmK2QWEkaIk3Nf304AeRoMBnYR") - .organizationCode("I-sc750tZXruc"); + .shopTel("08-755-391") + .shopEmail("HXuSEWeM8V@LmM8.com") + .shopExternalId("qznKIn9uBoqN3XKkwmXFnLL0vhZmz7ru") + .organizationCode("L0-8-E"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "NIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD" ) - .shopAddress("EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJ") - .shopTel("02557640") - .shopEmail("g3h5b1QYmV@Ctk7.com") - .shopExternalId("JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspa") - .organizationCode("Y1l-3S-a99d39XW2-OAW4--i"); + .shopAddress("OmfZvcfCdES8HHJf50TC5y2HNrP34hD1uxIbudPgKcAH4LqtvnYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL") + .shopTel("0639877-2223") + .shopEmail("1ZbgEX46DL@0EY9.com") + .shopExternalId("Dfg2K2K") + .organizationCode("Z2JS0-9O1bv3-68Tn-O"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateShop( - "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" + "NIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD" ) - .shopPostalCode("1393414") - .shopAddress("bb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd") - .shopTel("0061231408") - .shopEmail("qoWmfQbT09@Lp66.com") - .shopExternalId("g0d7eGITtIklkYFTO7OJe9dSEOGAL") - .organizationCode("t518798nQhn-67"); + .shopPostalCode("242-6533") + .shopAddress("OuuurZaaP5zVuitJAWBnMTQrqQLb4F279GcsdDtM3uSEYbuaOy1AtJbZFvX4DTrnYj6rE9HuWGm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiF") + .shopTel("028888825") + .shopEmail("dAo6IB1JwI@4HtH.com") + .shopExternalId("lHFEuPGo3GkdygOOV") + .organizationCode("T--l3-NHnFlDl0cb419"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateShopV2Test.java b/src/test/java/jp/pokepay/partnerapi/CreateShopV2Test.java index 8ac3f45..7bd9018 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateShopV2Test.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateShopV2Test.java @@ -12,7 +12,7 @@ public class CreateShopV2Test { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "rOBafUzNTBXIV1wGp1" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "rOBafUzNTBXIV1wGp1" ) - .canTopupPrivateMoneyIds(new String[]{}); + .canTopupPrivateMoneyIds(new String[]{"4d0c1886-94ee-4bb3-9508-d194404a7398","8e671c3d-5c09-4621-b416-c4cb7286cf3e"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "rOBafUzNTBXIV1wGp1" ) - .privateMoneyIds(new String[]{"f30fb147-1426-4944-bd88-6a56dd9456d2","38fb19e4-5c6f-45a0-aa85-1b47556f5a6a","233f947b-36e9-4067-8870-a11470b6451f","c69e96da-3ebb-4104-ac1b-8d9d9ff28392","b1c0c838-6e49-426e-95a5-81a6f2d8a82d","92f1a6c8-9fa2-4e13-9142-5ee846a8fecd","a780f03b-a949-4c7b-8e72-e364b7864dda","9b1e774a-a60c-4f54-9827-ad3976c8a505"}) - .canTopupPrivateMoneyIds(new String[]{"474d3cff-204d-4f6e-9167-3047572dcdfe","19307487-c38a-4ee6-a380-ad8429fb46c5","793eb0ec-38aa-4feb-9363-55f43d0263b5","fc1685ab-b040-48b6-b442-89b33eb85d40","eef3a0d1-0c76-4c9b-80d9-62ea69c91f11","42909ef9-8138-486d-bb55-fe9242f0b0aa","5051c900-a3e7-4fc4-b995-18d8133f5e2e","2aa5f88e-fc51-4f3a-a314-3c59ffd68307"}); + .privateMoneyIds(new String[]{"7383af73-728c-461f-afaf-f72b1edbcfc1","377e3a13-d9ed-4064-9627-5089c3bae418"}) + .canTopupPrivateMoneyIds(new String[]{"bd641c2a-3ba3-4801-9122-11a4bf4df13f","d9915b90-6fff-4872-8d55-0fbdefa7881e","432957e9-ad0e-4712-a84e-faf545281a32"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "rOBafUzNTBXIV1wGp1" ) - .organizationCode("45obEl-JlK8KJ-2") - .privateMoneyIds(new String[]{"571c1f61-0fa0-41ee-8cc9-4014511f14aa","b04c775c-5a7e-4500-8cbc-420599d77cb8","4509ce25-bbc6-4a89-b1c9-a858198be5f1"}) - .canTopupPrivateMoneyIds(new String[]{"999c5565-9e89-4619-a1ec-1c820b465bc7","d0a85d7e-c9be-4129-9a3b-75c475e93c4f","5d81e904-fb87-4ace-95df-2025879f3f2c","6bb56041-f8bd-492d-a64a-26208cb731e6","d3d9be5e-74ec-4832-88cd-10f47969b5db","ffb072a0-7a1f-456f-b779-f2619dcda18c","3b2d6593-9601-4a57-b047-daebe29536f4","38efd286-ccb1-4970-8f8f-01cf76094593","14b8b70c-2bc2-4da4-9a81-38fb67363d17","6608ae1e-43fb-40ba-8108-d1efdbb8fbfe"}); + .organizationCode("-2zJs27-9nN") + .privateMoneyIds(new String[]{"e45032cf-234f-44cd-8b92-26bad6977886","cbed6dde-5e8b-47c5-b905-9f70d15bd0e6","ac327f02-05a8-4b81-b2a5-14f30e19f29d","e22d4b9f-c162-4a05-be4d-3dfa40fa8a06","f70d1735-35f3-4a5c-a2c7-46b19e1cac0f"}) + .canTopupPrivateMoneyIds(new String[]{"f7eff38e-9f80-44c7-8067-58ff460f0ba1","303b9979-2272-4ccf-b77d-6f950d328b2c","dac84923-44ef-4ce1-bc91-5d928d57a881","2e039149-c5d0-4815-beaa-fd3c06950347","39408316-624a-4437-8a47-0c42c6b1db7e","189efac3-3b00-4f9f-8bb1-2e1728c15c6f"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "rOBafUzNTBXIV1wGp1" ) - .externalId("U6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8m") - .organizationCode("J-Ig-h-2e-L-d0I8Gq-5N") - .privateMoneyIds(new String[]{"cdc42a10-65cf-4515-9a0d-24c638ad6c7b","ce865b7a-8e79-4325-a531-31bd12ff47b0","0d816b84-b4f3-474d-ae8c-f13152031a68","fa56a64c-9171-449c-a085-a297ec0a0da1","9100008d-87e7-4ada-b45b-e3a57c5e040d","20b0ca98-f8d3-41e3-a62b-08ec5295176b","c57e1c2c-7086-4bb2-8a9d-2be4e4b0c66a","84c83a7a-2889-4191-ae6a-23c0db27f082"}) - .canTopupPrivateMoneyIds(new String[]{"a0a0e846-1697-4d83-a5be-621a4342ee7a","17f3abf4-bca8-4055-b9ab-f20992e0278a","f17efb92-c7be-4285-9979-655c9e462199","5a7371d5-3b92-432d-9312-4b2d6eebc7f7","ddb098f7-d640-45f9-9313-5718cc8da6b9","180e68c2-ec35-4a0d-a87d-9bbb6ae12140","5404cc2a-38f4-49e7-8e26-d8c92c3622c4","98bb9170-833d-49d5-aa80-ccf06bc3038a","95de72fa-49cb-450e-a909-4879e24374ea","e43cfd3b-9433-4542-853f-9576a0117059"}); + .externalId("5Rc96wfmVrWrKd8Zck") + .organizationCode("--KfDWMg2-2X--K7qE6-38JgxL1S-6-M") + .privateMoneyIds(new String[]{"42696f3d-6efb-46f8-bf28-b9f4e1a5a8c8"}) + .canTopupPrivateMoneyIds(new String[]{"18243261-0251-4820-8ce2-798f5a800af1","271abaf2-32e5-41eb-b8ea-b1aa1bdf4e20","1bd8f4b6-a1de-454b-a056-004689f84ee2","efe9b773-4c9d-445c-9ac9-bca4440fde3d","53f46506-9df1-4359-a7c2-cf6ce1bd6a1b","02142139-feb9-45f8-a558-d9d321f590a9"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "rOBafUzNTBXIV1wGp1" ) - .email("p1TbuySIy9@vMfj.com") - .externalId("s9RSVIuRLJamUgod9vJ") - .organizationCode("5sO0P-En--Zn-CZ--ga-2-0-GWq-wO-V") - .privateMoneyIds(new String[]{"80343906-659b-4c85-94a6-44011287311e","471eac5a-a4e7-4001-b5e5-069aa4784324","dcb5e80a-8b0d-45b6-95b7-56e5c9b3c515","40ca7903-b5a8-43a6-b09e-e0d90b79398a","c602736c-62f2-4d05-acfb-415d36716a4f","4240bbaa-243e-4838-8a45-351b9762407c","f4eb71a9-671b-4c89-b34c-c8b7ecc0c5e7","015b5bd7-36b6-4870-96ad-594f9f064d0d"}) - .canTopupPrivateMoneyIds(new String[]{"6c0731ae-4a87-465a-b480-0b6a722a52d2","44d1e5c6-8082-4ece-a136-c67f8cf3f71d","ec607884-0f24-49e8-a97b-312518633a6f","a24d5b42-f44f-421b-be94-89e9dd964268","10b5069b-d493-4ba0-9bbc-fce4da842b7f","fc34212d-dc04-4248-a776-f2e5ab2ae0ea","a379ed96-2990-463b-a210-521b6c634923","0d0da1cc-01fe-4ae6-a837-84c8abca658a"}); + .email("IGv3Ovn3SH@7ljq.com") + .externalId("EdpqCcPO") + .organizationCode("lG-4-") + .privateMoneyIds(new String[]{"b7aaa03c-b649-4565-8a17-711186b577f9","022dade8-883f-412d-92af-d454cb75da7d","7d88e26c-81d2-4022-a7a3-8b545cd4aad4","1c373fdd-b6a2-4abd-b2ba-464e6e9bd15e"}) + .canTopupPrivateMoneyIds(new String[]{"a2915ed3-a769-44f0-a814-77dae388e6a4","9a2d9c52-141c-48ec-8c82-5f2f7a19f5dc","e8460319-2210-476f-ac22-b0ab2144bb06","e156e2cc-0722-4bfd-bf9b-d0882f60821d","38553eea-774d-4514-ad91-d2bea7a7afcc","cdde0ca1-db53-4a07-bd48-1215541888d1","198eb216-d33f-4219-8d84-e79921c34914","06c733ad-f120-4787-90c0-6de81ded8883"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "rOBafUzNTBXIV1wGp1" ) - .tel("058821-568") - .email("czyOhMWAPb@HXyt.com") - .externalId("djUT8FkE6WXDem2rgSzz") - .organizationCode("P-25--m-O-9-G-66p--7x-3KKsm18") - .privateMoneyIds(new String[]{"cdadda4c-ae3d-44a8-b1b6-71efe4f7ffab","2dee894e-6e41-4933-a3ba-e57c1b159dbe","249aeca6-98da-4e34-8eee-aabbd48f12de"}) - .canTopupPrivateMoneyIds(new String[]{"6235a749-7afc-4245-aae1-f94e471e7536","8e7b5480-1964-49a9-a223-ff59d72762a2","3d989b06-fd85-495a-94d9-8e20c1af50df","085af4b4-8713-4dfc-81df-90f0b1a40500","703d2439-fdaf-4f06-9a62-4b5aeca7db67","f3b46622-ce73-4e88-a6e3-f88f56d19b42","71355128-2756-40c0-9d8a-bbb3377d5e0c","e76bc070-fe58-4c69-90d0-a4feed9ff3e9","819bbbd7-f3b2-4519-be9f-358065f1e097"}); + .tel("048-84608") + .email("C8QojNKN0z@qICt.com") + .externalId("7") + .organizationCode("-B") + .privateMoneyIds(new String[]{"e35e079c-b376-4736-83d5-c59f358a0e36","882619d3-f958-46cc-ab98-c2fbe7ac018d","c7644311-8b1f-47c0-802f-9d174392b548","768afbe1-3314-4864-8eb9-3963629e6e4f","4cee3590-a90e-42ae-af53-2e227305bd40"}) + .canTopupPrivateMoneyIds(new String[]{"9ee6f9d2-44e5-4a91-aa31-b7999080ccd4","8ea232f7-9362-4232-a104-1872d04f5f76","04cd68f0-53e9-4f77-a0ca-9507221c3ca7"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "rOBafUzNTBXIV1wGp1" ) - .address("Um4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQ") - .tel("05-7596-791") - .email("BJMiWPv5dA@bUBW.com") - .externalId("ta68v79KNgsodWT1kP64c") - .organizationCode("KR7nb") - .privateMoneyIds(new String[]{"e5b4f3eb-3362-484e-9f8a-2b5798d5df14","e11f2da7-242a-4907-b418-5a80213c7f3f","b7ee6134-0178-42b5-ac5b-9714ab36d9f0","1ddf1794-cc21-4319-a91c-a0abadda7660"}) - .canTopupPrivateMoneyIds(new String[]{"9c78491a-8c65-4f6c-8878-9b7f00f1aa36","06feb18e-bb7d-47da-b7b3-fdc15ea2eace","0b6bd05d-ebeb-4524-a7df-657bdb1f1b72","c8dd41ae-0a04-4ce5-8e4d-d25356c9c581","1dea5adb-bc3a-4b7f-ad3d-e0ee5be50599","af424593-329d-4569-a70e-99627c770734","0df948d9-f062-4033-b436-71eb9bc7586d","c2885e76-1879-4e8f-a87c-eba8c16c4d7c","c3f1c30e-a60f-4103-aa22-17c4e2a21637","bd8577a2-1109-49d9-a186-62fe51976f2d"}); + .address("SyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzg") + .tel("088-800756") + .email("shIHzbucfD@hID3.com") + .externalId("qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug") + .organizationCode("bAZ--Z-2pBj4T3--k") + .privateMoneyIds(new String[]{"0fd11a58-03b8-42d7-973e-33e24d0606eb","466b4978-315f-475d-8a62-70d757e2bf54"}) + .canTopupPrivateMoneyIds(new String[]{}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new CreateShopV2( - "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" + "rOBafUzNTBXIV1wGp1" ) - .postalCode("1601719") - .address("h5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3") - .tel("0918-0596") - .email("SJX1OiNUbq@HXuS.com") - .externalId("WeM8VL") - .organizationCode("oq8n09-S2v-Go") - .privateMoneyIds(new String[]{"3cd1c838-0bd6-489d-86ee-5eeaaa745ac6","b5fd5c91-025b-4fef-8589-6d7d373b6973"}) - .canTopupPrivateMoneyIds(new String[]{"c4e163e6-5eab-43bf-879e-cd3652d0d908","d20e9714-2bb4-4809-ad76-157c12616dd8","2ad2094b-2a0e-43bd-83a3-de3027d6a479","760dccc9-318b-422e-a02f-c03a2245ef08","3364f713-fcd9-4644-b2a2-1dcf33e448ed"}); + .postalCode("666-9717") + .address("lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6GGJ1GXo5UPiFJuScrEGcY5I6vYJqEcansSsP2ceIvKP9bgYanQbVQM9Z6RG0kCsPdzwEr5mXGzuLW3FkWi9ZhI") + .tel("0610-63182") + .email("VJNN81LI44@xL3m.com") + .externalId("frFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImB") + .organizationCode("E") + .privateMoneyIds(new String[]{"623585b1-d741-4253-b490-a6c99206b282","f952f318-4e78-49f6-b05b-2822ebe5c546","01dc5801-f39b-46d0-bca8-9847a78ce3ae","15a36082-8a61-4024-a054-d18710b3e8a0","b9a8661a-09c6-4c18-bd36-0ba7479d6b29","80e89067-18ad-4058-a074-0cdbbf9b3264","270f1533-b398-4c12-8bee-dfbdd5cc43ca"}) + .canTopupPrivateMoneyIds(new String[]{"2bb2b1f9-0910-47ce-a5b7-68dfa5baeebe","4cab17b4-cf51-4f5c-a715-44c0ab30f4b2","5b4da297-9c18-4afb-9000-51e2c8b08476","5f4ac0a3-dcba-4785-a6de-e946919ea774","99eed397-6ee0-4fc4-af81-bd6bc48a3601","caaf65ae-3af5-4f25-af64-ba0c1156adfa","68c06994-dfd0-4507-9fd3-38810804a9b7","38b7981e-9550-460e-924a-67300ec6d1fd","662b7185-57b9-4c95-8b99-3b7701740329"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java index b01d70c..02f7900 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java @@ -12,9 +12,9 @@ public class CreateTopupTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "361edf54-365f-4f0e-a6bc-afa2f9c42317", + "9fcf2d40-a278-4982-b86c-a5b2d11015bb", + "775ff15a-d49a-4a5a-a042-07bcf81f196a" ); try { PartnerAPITest.getClient().send(request); @@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "361edf54-365f-4f0e-a6bc-afa2f9c42317", + "9fcf2d40-a278-4982-b86c-a5b2d11015bb", + "775ff15a-d49a-4a5a-a042-07bcf81f196a" ) - .requestId("6c64555b-d9af-4745-97c9-087ea03b9908"); + .requestId("8d467299-1c79-4a3f-918d-e5f1c8cc079d"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -49,12 +49,12 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "361edf54-365f-4f0e-a6bc-afa2f9c42317", + "9fcf2d40-a278-4982-b86c-a5b2d11015bb", + "775ff15a-d49a-4a5a-a042-07bcf81f196a" ) .metadata("{\"key\":\"value\"}") - .requestId("f939997e-bb86-43a1-8662-9fa926ac4089"); + .requestId("26297f65-c720-4ccf-9e0f-e731ad8360fe"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -69,13 +69,13 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "361edf54-365f-4f0e-a6bc-afa2f9c42317", + "9fcf2d40-a278-4982-b86c-a5b2d11015bb", + "775ff15a-d49a-4a5a-a042-07bcf81f196a" ) - .description("7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecq") + .description("9KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zI") .metadata("{\"key\":\"value\"}") - .requestId("53596018-c257-4fe4-bcc4-8d098d867fd6"); + .requestId("4c31d29a-31ff-4be4-a42b-383ae9016134"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -90,14 +90,14 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "361edf54-365f-4f0e-a6bc-afa2f9c42317", + "9fcf2d40-a278-4982-b86c-a5b2d11015bb", + "775ff15a-d49a-4a5a-a042-07bcf81f196a" ) - .pointExpiresAt("2022-04-26T11:41:07.000000Z") - .description("stoEtPVoykbtA6l7WDayqQLAKXyhWYdlIH") + .pointExpiresAt("2021-07-15T20:55:03.000000Z") + .description("LJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuK") .metadata("{\"key\":\"value\"}") - .requestId("2ce8fee6-9053-40fe-8242-cc4bb1fa0349"); + .requestId("1e05a79c-7385-4309-80e7-04a75e82aa9c"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -112,15 +112,15 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "361edf54-365f-4f0e-a6bc-afa2f9c42317", + "9fcf2d40-a278-4982-b86c-a5b2d11015bb", + "775ff15a-d49a-4a5a-a042-07bcf81f196a" ) - .pointAmount(817) - .pointExpiresAt("2021-09-07T09:54:19.000000Z") - .description("Ql4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNto") + .pointAmount(8774) + .pointExpiresAt("2023-04-28T12:55:37.000000Z") + .description("0Qv1brn8ATMTNMMEyVApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4Q") .metadata("{\"key\":\"value\"}") - .requestId("ca208929-ae70-4cf1-893f-8fbf31547cbb"); + .requestId("690de4ad-1eee-4000-8c5a-392ff754d4a3"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -135,16 +135,16 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "361edf54-365f-4f0e-a6bc-afa2f9c42317", + "9fcf2d40-a278-4982-b86c-a5b2d11015bb", + "775ff15a-d49a-4a5a-a042-07bcf81f196a" ) - .moneyAmount(6582) - .pointAmount(2496) - .pointExpiresAt("2021-03-28T20:33:04.000000Z") - .description("rDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJ") + .moneyAmount(5511) + .pointAmount(983) + .pointExpiresAt("2021-11-17T04:17:49.000000Z") + .description("GvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9x") .metadata("{\"key\":\"value\"}") - .requestId("28d8b055-11a7-4321-8657-46f08b430634"); + .requestId("44e402e2-f666-4112-ba82-a5de35a1e328"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -159,17 +159,17 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransaction( - "bbafe09a-0ee7-49a4-ab24-d4ae379dba38", - "0686a451-395f-4e53-9a1d-f813f169da77", - "af4d7e4a-0031-4775-a48c-64a95566c41c" + "361edf54-365f-4f0e-a6bc-afa2f9c42317", + "9fcf2d40-a278-4982-b86c-a5b2d11015bb", + "775ff15a-d49a-4a5a-a042-07bcf81f196a" ) - .bearPointShopId("6bfc44af-b553-494a-9dc4-281b2f3b2864") - .moneyAmount(1469) - .pointAmount(9488) - .pointExpiresAt("2023-01-18T11:40:14.000000Z") - .description("9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3") + .bearPointShopId("62f89080-f6f6-47e7-92bf-6753c79b11e3") + .moneyAmount(9219) + .pointAmount(8864) + .pointExpiresAt("2021-09-04T08:07:05.000000Z") + .description("vszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugti") .metadata("{\"key\":\"value\"}") - .requestId("a5258802-a1a5-41a5-84d0-40d1007639c2"); + .requestId("2698f3e9-a023-4414-8c82-12a5bfca6f86"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionWithCheckTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionWithCheckTest.java index dba2d88..44e485f 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionWithCheckTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionWithCheckTest.java @@ -12,8 +12,8 @@ public class CreateTopupTransactionWithCheckTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransactionWithCheck( - "cd4eb994-98b7-4aea-91b8-0e53a7345bbb", - "6f4c62b1-299e-474c-a3ca-1e9e30e7b8cd" + "09e38ffb-829f-42b7-91fb-53f1b1607057", + "a81ca61b-f1ef-4094-9910-3905577eb616" ); try { PartnerAPITest.getClient().send(request); @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTopupTransactionWithCheck( - "cd4eb994-98b7-4aea-91b8-0e53a7345bbb", - "6f4c62b1-299e-474c-a3ca-1e9e30e7b8cd" + "09e38ffb-829f-42b7-91fb-53f1b1607057", + "a81ca61b-f1ef-4094-9910-3905577eb616" ) - .requestId("3e9427b9-30bb-4edd-b9ac-acea3da3f083"); + .requestId("4fe8be45-146c-45d4-8b9a-9cedb12958a2"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTransactionWithCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTransactionWithCashtrayTest.java index c25b1d2..9ca23ee 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateTransactionWithCashtrayTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateTransactionWithCashtrayTest.java @@ -12,8 +12,8 @@ public class CreateTransactionWithCashtrayTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateTransactionWithCashtray( - "695ea41a-9f9f-449b-a519-cf27509404b6", - "ca9e2ff1-fbed-48c3-98de-cafb1e81400b" + "945e0e97-3919-49a7-a024-475d8e932d8d", + "cbdbeabf-6c52-4eb7-900b-eb4fd98d0abd" ); try { PartnerAPITest.getClient().send(request); @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTransactionWithCashtray( - "695ea41a-9f9f-449b-a519-cf27509404b6", - "ca9e2ff1-fbed-48c3-98de-cafb1e81400b" + "945e0e97-3919-49a7-a024-475d8e932d8d", + "cbdbeabf-6c52-4eb7-900b-eb4fd98d0abd" ) - .requestId("3d343bff-c2c6-48b3-ba66-3afb9fbd6b2b"); + .requestId("19694e1a-98fe-4a19-b703-0b21600a65b9"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -47,11 +47,11 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateTransactionWithCashtray( - "695ea41a-9f9f-449b-a519-cf27509404b6", - "ca9e2ff1-fbed-48c3-98de-cafb1e81400b" + "945e0e97-3919-49a7-a024-475d8e932d8d", + "cbdbeabf-6c52-4eb7-900b-eb4fd98d0abd" ) .strategy("money-only") - .requestId("5520406f-93a1-4145-8e34-eb68de8c927e"); + .requestId("900a0bcf-b675-4d3e-88e3-d6238a34cd5c"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTransferTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTransferTransactionTest.java index 361e0f0..e9745d5 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateTransferTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateTransferTransactionTest.java @@ -12,10 +12,10 @@ public class CreateTransferTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateTransferTransaction( - "a3ce4b26-c72a-439b-927e-80477f3f01b6", - "886fa328-e2ea-4816-8007-03faea01d2f2", - "95a550d0-a9dc-4046-9de9-c2ceae3f9f96", - 8333.0 + "24fbca5d-63b2-4f62-85f4-10bcd53db47a", + "b4ff8c15-fdc9-49b2-88f6-5889d19a9ec0", + "6e29494b-6be1-4ec9-b993-3db141bcda64", + 4318.0 ); try { PartnerAPITest.getClient().send(request); @@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateTransferTransaction( - "a3ce4b26-c72a-439b-927e-80477f3f01b6", - "886fa328-e2ea-4816-8007-03faea01d2f2", - "95a550d0-a9dc-4046-9de9-c2ceae3f9f96", - 8333.0 + "24fbca5d-63b2-4f62-85f4-10bcd53db47a", + "b4ff8c15-fdc9-49b2-88f6-5889d19a9ec0", + "6e29494b-6be1-4ec9-b993-3db141bcda64", + 4318.0 ) - .requestId("e78dc0d9-42d4-48d3-8abe-8ab90e73616f"); + .requestId("97884a52-264b-4875-affa-0c7cc7db34cf"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new CreateTransferTransaction( - "a3ce4b26-c72a-439b-927e-80477f3f01b6", - "886fa328-e2ea-4816-8007-03faea01d2f2", - "95a550d0-a9dc-4046-9de9-c2ceae3f9f96", - 8333.0 + "24fbca5d-63b2-4f62-85f4-10bcd53db47a", + "b4ff8c15-fdc9-49b2-88f6-5889d19a9ec0", + "6e29494b-6be1-4ec9-b993-3db141bcda64", + 4318.0 ) - .description("hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyEN") - .requestId("4c32a7ee-12ee-4cef-b424-561b0fc1aaca"); + .description("LMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLvJd18F7msVClYIZ") + .requestId("4a7f4db6-2911-4142-b1b4-705af4301f43"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -72,14 +72,14 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new CreateTransferTransaction( - "a3ce4b26-c72a-439b-927e-80477f3f01b6", - "886fa328-e2ea-4816-8007-03faea01d2f2", - "95a550d0-a9dc-4046-9de9-c2ceae3f9f96", - 8333.0 + "24fbca5d-63b2-4f62-85f4-10bcd53db47a", + "b4ff8c15-fdc9-49b2-88f6-5889d19a9ec0", + "6e29494b-6be1-4ec9-b993-3db141bcda64", + 4318.0 ) .metadata("{\"key\":\"value\"}") - .description("M2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoC") - .requestId("7cd2c5aa-6d59-462f-afd9-e01a7bbac46d"); + .description("53pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa") + .requestId("11f2f128-b0b7-44a5-b0a4-0b6fa268acb7"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateUserDeviceTest.java b/src/test/java/jp/pokepay/partnerapi/CreateUserDeviceTest.java index 6c6047a..f790a24 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateUserDeviceTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateUserDeviceTest.java @@ -12,7 +12,7 @@ public class CreateUserDeviceTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new CreateUserDevice( - "3dc6d77e-acc2-4632-8c0f-c6abed1cea87" + "23acb39f-58dc-47f8-9f5d-78b8bf6f4f7b" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new CreateUserDevice( - "3dc6d77e-acc2-4632-8c0f-c6abed1cea87" + "23acb39f-58dc-47f8-9f5d-78b8bf6f4f7b" ) .metadata("{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}"); try { diff --git a/src/test/java/jp/pokepay/partnerapi/CreateWebhookTest.java b/src/test/java/jp/pokepay/partnerapi/CreateWebhookTest.java index 16fa1aa..596ed48 100644 --- a/src/test/java/jp/pokepay/partnerapi/CreateWebhookTest.java +++ b/src/test/java/jp/pokepay/partnerapi/CreateWebhookTest.java @@ -13,7 +13,7 @@ public class CreateWebhookTest { void test0() throws ConnectionError, ProcessingError { Request request = new CreateWebhook( "bulk_shops", - "v" + "0mPOgCiw1" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/DeleteBankTest.java b/src/test/java/jp/pokepay/partnerapi/DeleteBankTest.java new file mode 100644 index 0000000..a1480dd --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/DeleteBankTest.java @@ -0,0 +1,29 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.DeleteBank; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class DeleteBankTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new DeleteBank( + "a67a1ead-ba66-40e4-a985-dc54589c4cf3", + "217d2901-6509-4065-a2a0-a025cfaf9b7b" + ); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } +} diff --git a/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java b/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java index 8c5dd7e..ed9097e 100644 --- a/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java +++ b/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java @@ -12,7 +12,7 @@ public class DeleteWebhookTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new DeleteWebhook( - "e58e54ee-1f49-49d3-a0be-7230f9ff0994" + "3f1e35ff-46ac-4ab2-aa02-18a7898471ab" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetBulkTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/GetBulkTransactionTest.java index cb70175..52f965d 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetBulkTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetBulkTransactionTest.java @@ -12,7 +12,7 @@ public class GetBulkTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetBulkTransaction( - "e58bf7ca-9507-4ca7-8c7c-f29834f6cc7b" + "a937775f-b236-491a-8bfe-25ec4aff2fbc" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java b/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java index 907a235..573d9d5 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java @@ -12,7 +12,7 @@ public class GetCampaignTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetCampaign( - "f4216304-2f33-46f7-8217-ed37d527d473" + "b7b4d2d8-4785-4555-a0f2-6670f9539e95" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/GetCashtrayTest.java index 935108d..df39a63 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetCashtrayTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetCashtrayTest.java @@ -12,7 +12,7 @@ public class GetCashtrayTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetCashtray( - "889cfd0f-1711-4dc9-901f-71072893803b" + "9f641011-3c1f-407c-ad3f-0d6d7d0fe965" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetCouponTest.java b/src/test/java/jp/pokepay/partnerapi/GetCouponTest.java index 11647b4..8128c92 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetCouponTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetCouponTest.java @@ -12,7 +12,7 @@ public class GetCouponTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetCoupon( - "282f5141-ced8-4882-9b84-38fd6c0fdc2c" + "584061e5-e170-41df-a1c3-2306b4737ef3" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java b/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java index a57658a..02f95e2 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java @@ -12,7 +12,7 @@ public class GetExternalTransactionByRequestIdTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetExternalTransactionByRequestId( - "4e64bff1-5f4d-4c40-baae-80a79582760a" + "c0d0e25c-141a-4fb0-af95-601f133e82ba" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java index c761d9b..7db0339 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java @@ -12,7 +12,7 @@ public class GetPrivateMoneyOrganizationSummariesTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneyOrganizationSummaries( - "25c2238f-cf81-4930-aefa-23951ca983f1" + "c6829584-c4c5-4aae-b2ee-4025038ae224" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneyOrganizationSummaries( - "25c2238f-cf81-4930-aefa-23951ca983f1" + "c6829584-c4c5-4aae-b2ee-4025038ae224" ) - .page(3863); + .page(7698); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneyOrganizationSummaries( - "25c2238f-cf81-4930-aefa-23951ca983f1" + "c6829584-c4c5-4aae-b2ee-4025038ae224" ) - .perPage(4164) - .page(1671); + .perPage(2981) + .page(6859); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneyOrganizationSummaries( - "25c2238f-cf81-4930-aefa-23951ca983f1" + "c6829584-c4c5-4aae-b2ee-4025038ae224" ) - .from("2023-02-24T15:38:45.000000Z") - .to("2020-06-01T22:27:12.000000Z"); + .from("2022-12-17T06:03:12.000000Z") + .to("2021-05-15T02:26:34.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -81,11 +81,11 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneyOrganizationSummaries( - "25c2238f-cf81-4930-aefa-23951ca983f1" + "c6829584-c4c5-4aae-b2ee-4025038ae224" ) - .from("2022-04-29T04:44:50.000000Z") - .to("2023-02-28T01:22:24.000000Z") - .page(2940); + .from("2021-10-29T15:14:43.000000Z") + .to("2024-10-23T11:55:02.000000Z") + .page(8548); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -100,12 +100,12 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneyOrganizationSummaries( - "25c2238f-cf81-4930-aefa-23951ca983f1" + "c6829584-c4c5-4aae-b2ee-4025038ae224" ) - .from("2020-06-22T06:48:08.000000Z") - .to("2024-10-03T11:36:06.000000Z") - .perPage(2431) - .page(6798); + .from("2023-08-12T08:27:06.000000Z") + .to("2024-03-02T05:20:41.000000Z") + .perPage(9667) + .page(8047); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneySummaryTest.java b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneySummaryTest.java index 2725120..f90205c 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneySummaryTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneySummaryTest.java @@ -12,7 +12,7 @@ public class GetPrivateMoneySummaryTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneySummary( - "bc754716-7e01-46ff-bef3-b315e34c3f20" + "3278bc7b-886b-4b3e-9e82-bd68e6d341ad" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneySummary( - "bc754716-7e01-46ff-bef3-b315e34c3f20" + "3278bc7b-886b-4b3e-9e82-bd68e6d341ad" ) - .to("2020-02-01T06:05:29.000000Z"); + .to("2023-01-15T02:32:54.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneySummary( - "bc754716-7e01-46ff-bef3-b315e34c3f20" + "3278bc7b-886b-4b3e-9e82-bd68e6d341ad" ) - .from("2023-06-06T15:44:55.000000Z") - .to("2022-07-27T19:34:17.000000Z"); + .from("2021-10-05T01:01:41.000000Z") + .to("2023-06-16T11:33:02.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneysTest.java b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneysTest.java index 06f90b7..6637084 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneysTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneysTest.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneys() - .perPage(6996); + .perPage(1964); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneys() - .page(2568) - .perPage(7422); + .page(9244) + .perPage(5470); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new GetPrivateMoneys() - .organizationCode("qr-5a-89") - .page(972) - .perPage(207); + .organizationCode("-yiG9zQNtjc40qb74") + .page(1425) + .perPage(5428); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java b/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java index 5691bfa..388b15c 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java @@ -12,7 +12,7 @@ public class GetSevenBankATMSessionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetSevenBankATMSession( - "EkSwN7J" + "iY0bdXM6N" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetShopTest.java b/src/test/java/jp/pokepay/partnerapi/GetShopTest.java index 9d2a61b..b251097 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetShopTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetShopTest.java @@ -12,7 +12,7 @@ public class GetShopTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetShop( - "026fffa8-2866-4283-98da-548e8efcfc76" + "9c29aae8-be12-41ec-9bc6-da361fd14d94" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetTransactionByRequestIdTest.java b/src/test/java/jp/pokepay/partnerapi/GetTransactionByRequestIdTest.java index 2812fab..df5b07a 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetTransactionByRequestIdTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetTransactionByRequestIdTest.java @@ -12,7 +12,7 @@ public class GetTransactionByRequestIdTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetTransactionByRequestId( - "deb8b291-56a1-4247-bb36-e8f07aec80fb" + "efd44a87-42e2-4926-ace0-42b396ada1cb" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/GetTransactionTest.java index 6785d46..e9ca75d 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetTransactionTest.java @@ -12,7 +12,7 @@ public class GetTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetTransaction( - "0a12dd2d-bb34-4fc3-aee4-0502dbfefb4e" + "bd78b884-39c1-4fe6-9c8b-3a13dbddc33a" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/GetUserDeviceTest.java b/src/test/java/jp/pokepay/partnerapi/GetUserDeviceTest.java index c47e730..152010c 100644 --- a/src/test/java/jp/pokepay/partnerapi/GetUserDeviceTest.java +++ b/src/test/java/jp/pokepay/partnerapi/GetUserDeviceTest.java @@ -12,7 +12,7 @@ public class GetUserDeviceTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new GetUserDevice( - "0dc83d4f-7776-4b76-b82e-8c80e00d323b" + "759390fe-e722-49b5-a9f3-8c74559f4897" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java b/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java index 164b940..c295e30 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java @@ -106,8 +106,8 @@ void test5() throws ConnectionError, ProcessingError { ) .page(9044) .perPage(3584) - .expiresAtFrom("2022-05-05T20:55:29.000000Z") - .expiresAtTo("2023-04-07T14:57:44.000000Z") + .expiresAtFrom("2024-10-29T10:47:52.000000Z") + .expiresAtTo("2022-05-05T20:55:29.000000Z") .direction("asc"); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java b/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java index f087907..578710a 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java @@ -12,7 +12,7 @@ public class ListAccountExpiredBalancesTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ) - .direction("asc"); + .direction("desc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ) - .expiresAtTo("2022-11-08T09:57:39.000000Z") + .expiresAtTo("2020-10-21T06:08:14.000000Z") .direction("desc"); try { PartnerAPITest.getClient().send(request); @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ) - .expiresAtFrom("2021-02-10T04:23:33.000000Z") - .expiresAtTo("2021-11-27T03:23:28.000000Z") - .direction("desc"); + .expiresAtFrom("2024-05-06T22:47:15.000000Z") + .expiresAtTo("2021-02-10T04:23:33.000000Z") + .direction("asc"); 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 ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ) .perPage(9269) .expiresAtFrom("2022-07-27T12:24:37.000000Z") @@ -102,7 +102,7 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ) .page(6531) .perPage(2579) diff --git a/src/test/java/jp/pokepay/partnerapi/ListBanksTest.java b/src/test/java/jp/pokepay/partnerapi/ListBanksTest.java index eb967c0..2106df8 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListBanksTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListBanksTest.java @@ -12,7 +12,7 @@ public class ListBanksTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListBanks( - "a829764d-e1b6-4d25-9279-1fceebdd8b45" + "d3ec4dff-5352-4ef5-a04c-8e8128bbe3dd" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListBanks( - "a829764d-e1b6-4d25-9279-1fceebdd8b45" + "d3ec4dff-5352-4ef5-a04c-8e8128bbe3dd" ) - .privateMoneyId("f13bb85d-66aa-4930-a316-33b8455d28c1"); + .privateMoneyId("ae12bb98-1556-4d62-bd7a-2d5c0c884fd0"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListBillTransactionsTest.java b/src/test/java/jp/pokepay/partnerapi/ListBillTransactionsTest.java new file mode 100644 index 0000000..20395e1 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/ListBillTransactionsTest.java @@ -0,0 +1,356 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.ListBillTransactions; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class ListBillTransactionsTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions(); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test1() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .perPage(155); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test2() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .prevPageCursorId("605b0ee7-59a4-4f6b-a4ae-ba380686a451") + .perPage(352); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test3() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .nextPageCursorId("3bd2de53-d2da-471d-9377-7e4afb270031") + .prevPageCursorId("8c1e8775-8ce4-4c8c-a91c-555b27f1d9af") + .perPage(838); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test4() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .to("2023-07-05T09:20:09.000000Z") + .nextPageCursorId("60fd087e-9908-497e-86a1-e686a1427962") + .prevPageCursorId("b5d99fa9-4089-4498-b73e-777aa0278abf") + .perPage(264); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test5() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .from("2024-10-13T21:58:57.000000Z") + .to("2020-01-03T21:42:34.000000Z") + .nextPageCursorId("e57385db-97b6-4da7-8bda-27d4721f2c23") + .prevPageCursorId("0c41c311-7adb-43c5-ab14-0f30eb758d3a") + .perPage(521); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test6() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .setModified(false) + .from("2020-11-09T18:23:35.000000Z") + .to("2023-06-23T22:03:48.000000Z") + .nextPageCursorId("22d3be7f-8452-4b47-b1bf-6564a3e61a38") + .prevPageCursorId("f98d206a-9b97-4510-87e9-7b68a4142ec6") + .perPage(563); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test7() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .billId("67af2329-f192-4c5c-baef-3aa636eecb80") + .setModified(true) + .from("2020-08-22T02:32:39.000000Z") + .to("2024-01-27T04:30:55.000000Z") + .nextPageCursorId("6501f219-bea3-46ce-8eb3-419dc7b3227b") + .prevPageCursorId("06ecaf87-e651-4723-8059-bc44e13f891f") + .perPage(768); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test8() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .transactionId("3b69e97c-d49f-4f83-adc7-f836d806a803") + .billId("4616da0d-46a6-4228-8c43-65dae1205c53") + .setModified(false) + .from("2023-01-22T21:15:07.000000Z") + .to("2020-03-19T11:35:44.000000Z") + .nextPageCursorId("092c583b-6ad0-4cd6-8465-30b53f0635cc") + .prevPageCursorId("96a1ef3d-a47c-4faf-8c0c-1919e2392b5a") + .perPage(509); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test9() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .description("zi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKX") + .transactionId("0f41890b-7579-497f-847d-f4bdf6f59960") + .billId("5ec24fe8-1da8-4cff-9027-33572593341e") + .setModified(false) + .from("2020-05-22T12:30:17.000000Z") + .to("2023-10-29T16:42:59.000000Z") + .nextPageCursorId("cc0febac-c06c-4bdc-8106-70c96323eb2e") + .prevPageCursorId("75225c94-12a1-4f95-9b48-fee69b6e9053") + .perPage(255); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test10() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .terminalId("327658c2-3c42-4c4b-8931-55cba718dc90") + .description("4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxc") + .transactionId("bc5813ab-de0c-4777-b972-e52efcfbe88f") + .billId("ef2fe8ba-7bf6-49fd-be74-307f582a830b") + .setModified(true) + .from("2021-01-25T17:06:10.000000Z") + .to("2022-09-26T22:25:07.000000Z") + .nextPageCursorId("d5edd3d0-af32-4b30-802f-aead2bcad268") + .prevPageCursorId("b9d0da98-6b55-4ded-a431-9b0d8eb0fb1d") + .perPage(582); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test11() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .customerName("Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKuf") + .terminalId("64f644d0-082c-4060-aac9-0aea8b0b346a") + .description("JpzSXKPSRMVYMVxniANdM") + .transactionId("85b60b1a-641b-4abd-8eb0-16f9b197b1f9") + .billId("b21c901d-0a36-4d73-b21f-bc524b6a223c") + .setModified(false) + .from("2023-07-14T21:00:43.000000Z") + .to("2021-05-18T03:59:19.000000Z") + .nextPageCursorId("4c72e05a-d2ce-4243-b9e0-9fe2d334641c") + .prevPageCursorId("c485b42e-9b11-495d-9459-6728d790db16") + .perPage(3); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test12() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .customerId("bc7fefca-b055-41a7-a146-6557074a46f0") + .customerName("SJDd9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT") + .terminalId("0a999d97-0637-418a-8bee-bbbcaec0c105") + .description("nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox") + .transactionId("3c228f36-73f5-4187-981f-7e4cff4bd663") + .billId("f664aa88-f536-478c-be68-7b9cc77de860") + .setModified(false) + .from("2023-09-06T17:30:32.000000Z") + .to("2021-09-24T08:48:11.000000Z") + .nextPageCursorId("ab5800fd-1ff8-45f6-8d5c-73b6456dbfc6") + .prevPageCursorId("e3dc01aa-8717-45aa-ba50-746152c79bbb") + .perPage(444); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test13() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .shopId("95924b40-9c5a-49b8-98c9-6d8bf1b2db36") + .customerId("4e9f080a-36c1-4df8-a979-2ebb4d1b468d") + .customerName("IUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZy") + .terminalId("30582519-be03-4c08-a788-041bd458d4a9") + .description("3cEPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6tzaZ") + .transactionId("044b7233-88f3-47aa-a2d9-abcb0870c211") + .billId("97bc577f-788e-4500-9f80-371e0e2ae22d") + .setModified(false) + .from("2024-07-01T09:33:02.000000Z") + .to("2020-11-09T07:02:17.000000Z") + .nextPageCursorId("457839e2-f1ed-4810-816c-f58d702abe8f") + .prevPageCursorId("dfa1f36b-d961-470a-93a0-2ace14b545ca") + .perPage(874); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test14() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .organizationCode("4k--5Sk-1-hf-N-") + .shopId("4bf87b87-813f-4899-9c2e-4a88dfcb9d87") + .customerId("810fdc30-3736-4b00-89c6-843e3138095f") + .customerName("8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYo") + .terminalId("890803d9-e01a-446d-8c61-7028038e8094") + .description("BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJL") + .transactionId("097541a5-bf84-4cee-9cb1-491ca98cca54") + .billId("cf00164f-a457-4c08-964e-18714368a6be") + .setModified(false) + .from("2020-03-03T21:38:33.000000Z") + .to("2023-04-14T23:56:27.000000Z") + .nextPageCursorId("21dfe0e7-5d61-4c4e-acfb-ac89112cd136") + .prevPageCursorId("90bafded-8686-4ea7-a1d3-3dda0667b657") + .perPage(683); + try { + PartnerAPITest.getClient().send(request); + } catch (PartnerRequestError e) { + if (e.getType().equals("invalid_parameters")) { + System.out.println(e.getType()); + System.out.println(e.getMessage()); + System.out.println(e.getRawJson()); + } + assertNotEquals("invalid_parameters", e.getType()); + } + } + @Test + void test15() throws ConnectionError, ProcessingError { + Request request = new ListBillTransactions() + .privateMoneyId("a0225aca-c3ee-429e-abbc-a92f67640787") + .organizationCode("g49-B7g") + .shopId("3c4a3599-fa13-49e6-922e-673f31a04a46") + .customerId("0dd15c26-c183-4eac-b199-404200426c5c") + .customerName("kHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu") + .terminalId("f9bc2c1c-5039-4b4f-801f-938072c9479c") + .description("Ykti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIcNrFvlQBIX1JBgnrD1yLFlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rWWdK2ybDtXJiikZzBktm9") + .transactionId("aaad21b8-b033-48eb-b3c4-50643863fc4b") + .billId("65ec8a2b-d6e6-4d62-8390-f8a82864c239") + .setModified(false) + .from("2023-04-15T08:49:58.000000Z") + .to("2022-01-14T06:43:27.000000Z") + .nextPageCursorId("574e457c-ea1d-4c5c-823f-aaa56bbefccd") + .prevPageCursorId("a5102588-18f6-4380-b5c3-e93054bb881c") + .perPage(978); + 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/ListBulkTransactionJobsTest.java b/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java index cad9959..32aeda0 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java @@ -12,7 +12,7 @@ public class ListBulkTransactionJobsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListBulkTransactionJobs( - "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1" + "2d6a31ff-08e6-4e19-ba62-ace6eebfc1f1" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListBulkTransactionJobs( - "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1" + "2d6a31ff-08e6-4e19-ba62-ace6eebfc1f1" ) - .perPage(986); + .perPage(204); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListBulkTransactionJobs( - "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1" + "2d6a31ff-08e6-4e19-ba62-ace6eebfc1f1" ) - .page(9569) - .perPage(6767); + .page(1773) + .perPage(1647); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListCampaignsTest.java b/src/test/java/jp/pokepay/partnerapi/ListCampaignsTest.java index 9406c54..80f88f6 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListCampaignsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListCampaignsTest.java @@ -12,7 +12,7 @@ public class ListCampaignsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListCampaigns( - "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + "38657c7a-8ae5-4c03-aedf-76d7ec36fb58" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListCampaigns( - "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + "38657c7a-8ae5-4c03-aedf-76d7ec36fb58" ) - .perPage(3); + .perPage(17); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListCampaigns( - "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + "38657c7a-8ae5-4c03-aedf-76d7ec36fb58" ) - .page(4010) - .perPage(31); + .page(2895) + .perPage(19); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListCampaigns( - "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + "38657c7a-8ae5-4c03-aedf-76d7ec36fb58" ) - .availableTo("2024-06-29T01:26:44.000000Z") - .page(5805) - .perPage(8); + .availableTo("2022-09-29T17:20:41.000000Z") + .page(3790) + .perPage(23); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListCampaigns( - "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + "38657c7a-8ae5-4c03-aedf-76d7ec36fb58" ) - .availableFrom("2022-10-27T15:54:11.000000Z") - .availableTo("2020-01-12T10:32:20.000000Z") - .page(5383) - .perPage(18); + .availableFrom("2021-05-03T01:52:40.000000Z") + .availableTo("2020-12-11T10:58:34.000000Z") + .page(2592) + .perPage(3); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListCampaigns( - "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + "38657c7a-8ae5-4c03-aedf-76d7ec36fb58" ) .setOngoing(true) - .availableFrom("2023-10-24T12:23:08.000000Z") - .availableTo("2022-09-21T23:55:07.000000Z") - .page(7663) - .perPage(31); + .availableFrom("2020-03-25T10:11:57.000000Z") + .availableTo("2023-07-09T20:01:52.000000Z") + .page(5650) + .perPage(21); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java b/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java index 79cc238..8cde9b5 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java @@ -12,7 +12,7 @@ public class ListCouponsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "bcf28b4d-826f-434e-acb8-d0e371e9cae9" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "bcf28b4d-826f-434e-acb8-d0e371e9cae9" ) - .perPage(5571); + .perPage(9879); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "bcf28b4d-826f-434e-acb8-d0e371e9cae9" ) - .page(8650) - .perPage(7773); + .page(7233) + .perPage(9989); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "bcf28b4d-826f-434e-acb8-d0e371e9cae9" ) - .availableTo("2023-09-25T06:22:38.000000Z") - .page(3351) - .perPage(1673); + .availableTo("2024-03-01T00:56:55.000000Z") + .page(3369) + .perPage(5103); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "bcf28b4d-826f-434e-acb8-d0e371e9cae9" ) - .availableFrom("2024-09-30T09:57:39.000000Z") - .availableTo("2020-03-18T01:00:22.000000Z") - .page(5984) - .perPage(4476); + .availableFrom("2021-11-09T13:54:18.000000Z") + .availableTo("2024-09-18T12:07:22.000000Z") + .page(4125) + .perPage(868); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "bcf28b4d-826f-434e-acb8-d0e371e9cae9" ) - .availableShopName("4aTjbZ") - .availableFrom("2021-10-04T14:19:21.000000Z") - .availableTo("2022-03-05T22:16:44.000000Z") - .page(6976) - .perPage(9826); + .availableShopName("DnK4") + .availableFrom("2024-05-03T18:35:12.000000Z") + .availableTo("2022-08-09T15:32:21.000000Z") + .page(3739) + .perPage(8286); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "bcf28b4d-826f-434e-acb8-d0e371e9cae9" ) - .issuedShopName("W") - .availableShopName("Rs") - .availableFrom("2022-03-08T06:29:25.000000Z") - .availableTo("2024-04-24T08:35:06.000000Z") - .page(5499) - .perPage(9438); + .issuedShopName("4g") + .availableShopName("zsFxrEWG") + .availableFrom("2020-10-22T08:22:41.000000Z") + .availableTo("2022-02-16T15:44:45.000000Z") + .page(7456) + .perPage(6648); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "bcf28b4d-826f-434e-acb8-d0e371e9cae9" ) - .couponName("Z6") - .issuedShopName("rz0tQnP1") - .availableShopName("Co4x4A") - .availableFrom("2023-12-20T06:59:36.000000Z") - .availableTo("2021-05-25T05:31:22.000000Z") - .page(9890) - .perPage(4355); + .couponName("q80") + .issuedShopName("GW") + .availableShopName("Y") + .availableFrom("2023-11-14T01:54:11.000000Z") + .availableTo("2021-06-04T06:42:57.000000Z") + .page(7340) + .perPage(476); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListCoupons( - "b44303ec-e198-4255-8ade-7a0f634deec2" + "bcf28b4d-826f-434e-acb8-d0e371e9cae9" ) - .couponId("zQhY1Jl") - .couponName("Hqb") - .issuedShopName("ULcyq") - .availableShopName("Fghq") - .availableFrom("2023-04-08T23:17:21.000000Z") - .availableTo("2021-11-25T09:22:19.000000Z") - .page(6986) - .perPage(8190); + .couponId("aMw4") + .couponName("5") + .issuedShopName("ftn") + .availableShopName("lC78XMJnZ") + .availableFrom("2022-08-31T20:28:56.000000Z") + .availableTo("2023-06-15T05:05:18.000000Z") + .page(5782) + .perPage(6476); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListCustomerTransactionsTest.java b/src/test/java/jp/pokepay/partnerapi/ListCustomerTransactionsTest.java index 771c4a4..1371456 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListCustomerTransactionsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListCustomerTransactionsTest.java @@ -12,7 +12,7 @@ public class ListCustomerTransactionsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "91621e6e-e6a4-4ee8-b239-6b1ac96133ac" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "91621e6e-e6a4-4ee8-b239-6b1ac96133ac" ) - .perPage(6702); + .perPage(6654); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "91621e6e-e6a4-4ee8-b239-6b1ac96133ac" ) - .page(3721) - .perPage(1673); + .page(3032) + .perPage(7890); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "91621e6e-e6a4-4ee8-b239-6b1ac96133ac" ) - .to("2021-06-26T10:33:28.000000Z") - .page(1122) - .perPage(2641); + .to("2020-07-25T06:58:24.000000Z") + .page(7986) + .perPage(5548); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "91621e6e-e6a4-4ee8-b239-6b1ac96133ac" ) - .from("2023-08-31T11:35:24.000000Z") - .to("2021-11-27T00:17:30.000000Z") - .page(6128) - .perPage(9468); + .from("2023-11-14T00:49:56.000000Z") + .to("2021-09-08T14:04:49.000000Z") + .page(8515) + .perPage(9017); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "91621e6e-e6a4-4ee8-b239-6b1ac96133ac" ) - .setModified(true) - .from("2021-10-15T20:46:20.000000Z") - .to("2023-11-14T17:02:46.000000Z") - .page(8406) - .perPage(1440); + .setModified(false) + .from("2020-01-06T07:28:49.000000Z") + .to("2023-04-07T15:59:18.000000Z") + .page(8760) + .perPage(839); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "91621e6e-e6a4-4ee8-b239-6b1ac96133ac" ) .type("transfer") .setModified(true) - .from("2022-03-30T21:58:48.000000Z") - .to("2024-01-29T17:38:21.000000Z") - .page(786) - .perPage(2848); + .from("2021-11-02T04:18:41.000000Z") + .to("2021-10-11T04:31:04.000000Z") + .page(9797) + .perPage(7014); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "91621e6e-e6a4-4ee8-b239-6b1ac96133ac" ) - .receiverCustomerId("476067c0-5180-472f-9748-fbe19e693314") - .type("cashback") - .setModified(true) - .from("2020-07-04T11:49:13.000000Z") - .to("2020-10-22T23:48:51.000000Z") - .page(4783) - .perPage(8752); + .receiverCustomerId("130e4012-1e10-42de-9bc2-feb651572531") + .type("transfer") + .setModified(false) + .from("2020-04-28T01:04:36.000000Z") + .to("2020-12-20T03:32:31.000000Z") + .page(9435) + .perPage(7777); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListCustomerTransactions( - "1552de2f-da0c-48ac-a9e1-2fa8e58654df" + "91621e6e-e6a4-4ee8-b239-6b1ac96133ac" ) - .senderCustomerId("d2869b53-2e22-4d40-bc23-f9d272cd44e5") - .receiverCustomerId("03a89a91-73ea-4831-99d4-32f7b9069362") - .type("exchange") - .setModified(false) - .from("2020-01-13T05:00:34.000000Z") - .to("2020-03-01T04:56:22.000000Z") - .page(5098) - .perPage(7841); + .senderCustomerId("d2ac7e9d-84b1-4dbc-8a75-15bf98fa8dce") + .receiverCustomerId("a0103f20-f41c-4e88-8242-13944adcfca1") + .type("payment") + .setModified(true) + .from("2020-08-02T05:51:46.000000Z") + .to("2020-10-14T03:50:51.000000Z") + .page(7611) + .perPage(6781); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListOrganizationsTest.java b/src/test/java/jp/pokepay/partnerapi/ListOrganizationsTest.java index 2b400f2..84cbd9a 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListOrganizationsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListOrganizationsTest.java @@ -12,7 +12,7 @@ public class ListOrganizationsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new ListOrganizations( - "984c0512-4bc5-4658-abc3-5594816b6f55" + "f7ff069b-2d42-4a49-95c2-e10e6cb662a1" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListOrganizations( - "984c0512-4bc5-4658-abc3-5594816b6f55" + "f7ff069b-2d42-4a49-95c2-e10e6cb662a1" ) - .code("yPfCabjEt"); + .code("90lbfxByyL"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListOrganizations( - "984c0512-4bc5-4658-abc3-5594816b6f55" + "f7ff069b-2d42-4a49-95c2-e10e6cb662a1" ) - .name("If7wKoPmNQ") - .code("U6zl3h0Z"); + .name("gJllat") + .code("S0exoVZwnX"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListOrganizations( - "984c0512-4bc5-4658-abc3-5594816b6f55" + "f7ff069b-2d42-4a49-95c2-e10e6cb662a1" ) - .perPage(2813) - .name("oCe5IIfE") - .code("aRl"); + .perPage(9011) + .name("Y3MjJ") + .code("kSKFu78"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListOrganizations( - "984c0512-4bc5-4658-abc3-5594816b6f55" + "f7ff069b-2d42-4a49-95c2-e10e6cb662a1" ) - .page(9969) - .perPage(3099) - .name("hTTQp") - .code("QoSR"); + .page(849) + .perPage(6213) + .name("Nsi0ghqRi") + .code("HIikuw"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListShopsTest.java b/src/test/java/jp/pokepay/partnerapi/ListShopsTest.java index 6e8dde4..ac98b5d 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListShopsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListShopsTest.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListShops() - .perPage(5064); + .perPage(7801); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListShops() - .page(6150) - .perPage(1031); + .page(1876) + .perPage(4787); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -58,8 +58,8 @@ void test2() throws ConnectionError, ProcessingError { void test3() throws ConnectionError, ProcessingError { Request request = new ListShops() .withDisabled(true) - .page(516) - .perPage(3314); + .page(9357) + .perPage(6641); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListShops() - .externalId("w") - .withDisabled(false) - .page(986) - .perPage(1660); + .externalId("fON6g3") + .withDisabled(true) + .page(5808) + .perPage(8319); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListShops() - .email("75stQD6SAh@41fZ.com") - .externalId("i84vybd1Jsf0jR3rzbwtxyn2FAh1zUed") - .withDisabled(false) - .page(4934) - .perPage(8487); + .email("b1QYmVCtk7@8Jxd.com") + .externalId("gtNZkgpDcQrvPvYu9rBG") + .withDisabled(true) + .page(3133) + .perPage(2273); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListShops() - .tel("04934109886") - .email("vHVgjPvTnT@RbAG.com") - .externalId("JFBzSB") - .withDisabled(false) - .page(5349) - .perPage(5597); + .tel("0843-77122") + .email("uUcrgAIrlV@AxUx.com") + .externalId("xoJ3m2cOYFN3fJYwkL") + .withDisabled(true) + .page(476) + .perPage(1386); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListShops() - .address("N9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH") - .tel("064-399-326") - .email("N0T80aLvrK@oRyT.com") - .externalId("gPVT4AzeoZEOYuu1RyqlWwyCN") - .withDisabled(true) - .page(9062) - .perPage(6597); + .address("uasNI3TQ4Ubb8U4") + .tel("05-058508") + .email("VQ4l9WdfwN@1GBX.com") + .externalId("bSDIYZlYLOis5sBRV50E2") + .withDisabled(false) + .page(3241) + .perPage(4871); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListShops() - .postalCode("483-3967") - .address("00F2Vhn3XqmCSMDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0Yor") - .tel("0322631") - .email("4pFpuxUcIr@b43g.com") - .externalId("0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx") + .postalCode("434-7917") + .address("0CkQGlHLmFUomkHrvNClW") + .tel("09370795-600") + .email("6qorRSF9NZ@ATmh.com") + .externalId("oWmfQbT09Lp665rg0d7eG") .withDisabled(false) - .page(1942) - .perPage(1073); + .page(6282) + .perPage(1226); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new ListShops() - .name("qLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhC") - .postalCode("4322619") - .address("FeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MI") - .tel("0518-4313") - .email("TlXa99m3El@a8zc.com") - .externalId("R94JgHtiXrfi45gdORj3Jla3Pfb8OgNhh") + .name("lkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj") + .postalCode("5118483") + .address("7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8") + .tel("025314107") + .email("GDVRdojGji@gHpZ.com") + .externalId("l8InH") .withDisabled(true) - .page(9357) - .perPage(3629); + .page(1746) + .perPage(1347); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new ListShops() - .privateMoneyId("4294a866-e4fb-4ddb-8251-6a6a3228145f") - .name("sClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqw") - .postalCode("5487162") - .address("qZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcG") - .tel("0080-547599") - .email("gPlxnzpf9X@cHDi.com") - .externalId("w8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNj") + .privateMoneyId("b9625ee8-fecd-403b-897b-428eea6f2172") + .name("ZJT9MnQgGfElkSct56tB3QvYjy8mUgDyXQYOSshpGMCke10fApKjBHnAmdlKiUj9JqianI8FqIXqzelGZDONUAJfl2HMto7yaW0Gk") + .postalCode("4613241") + .address("osxcU6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKruisPGcjRxKz0hnHtPEmOFzye10sMn1hLqgZ4Scflk2JdjznjOojFztUyYyUwwyS9B5htgNIDpUpzKyj3BEvYp1TbuySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L") + .tel("068726164") + .email("hoBOihdHve@jLf7.com") + .externalId("UNUhMpEnc") .withDisabled(true) - .page(7375) - .perPage(4400); + .page(4432) + .perPage(9308); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new ListShops() - .organizationCode("3O3UbVmd-") - .privateMoneyId("6c582c7c-e112-45b2-8024-7261075be237") - .name("llUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACIt") - .postalCode("946-1005") - .address("NfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa") - .tel("0939137673") - .email("qnjKtXS5ct@b0sU.com") - .externalId("amQiJ") - .withDisabled(true) - .page(2018) - .perPage(9438); + .organizationCode("-3BCRUoSl5Ty-oeI--d-6avP-25--m-O") + .privateMoneyId("3fcfaecf-3206-48c9-9771-2ec6394a5603") + .name("ofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz") + .postalCode("079-7948") + .address("5K8kF9CcO2FCZ7wQECuE") + .tel("071-94-4958") + .email("WThBhNBtq0@Hlr5.com") + .externalId("UDcRjPWhcWE5Ed0Dp6qm5en") + .withDisabled(false) + .page(8878) + .perPage(915); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListTransfersTest.java b/src/test/java/jp/pokepay/partnerapi/ListTransfersTest.java index 38e5bdd..78a36ad 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListTransfersTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListTransfersTest.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .description("B8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuO"); + .description("qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlG"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .transferTypes(new String[]{"coupon","transfer"}) - .description("c8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWU"); + .transferTypes(new String[]{"exchange","cashback","payment","campaign","expire","transfer","coupon","topup"}) + .description("QL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnk"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .transactionTypes(new String[]{"expire"}) - .transferTypes(new String[]{"coupon","cashback","transfer","exchange","topup","payment","campaign","expire"}) - .description("UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTK"); + .transactionTypes(new String[]{"payment","transfer","exchange","topup"}) + .transferTypes(new String[]{"topup","expire","payment","transfer","campaign"}) + .description("WRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .setModified(true) - .transactionTypes(new String[]{"expire","exchange","payment","topup"}) - .transferTypes(new String[]{"transfer","expire","payment","campaign","cashback","topup"}) - .description("v7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5QOJx"); + .setModified(false) + .transactionTypes(new String[]{"cashback","payment","topup","transfer"}) + .transferTypes(new String[]{"transfer","exchange","campaign","topup","coupon","payment","cashback","expire"}) + .description("1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKA"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .privateMoneyId("f69561a4-e09f-407c-b8fa-8a77efa971df") - .setModified(true) - .transactionTypes(new String[]{"cashback","transfer","exchange"}) - .transferTypes(new String[]{"topup"}) - .description("UQr"); + .privateMoneyId("b4879ffb-6ca1-4d1b-a73a-d9074104f46f") + .setModified(false) + .transactionTypes(new String[]{"expire","payment","transfer"}) + .transferTypes(new String[]{"campaign","cashback","payment","expire","exchange","topup","coupon","transfer"}) + .description("NqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoR"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .transactionId("46b5b8af-342d-48f0-9da3-39db84adb392") - .privateMoneyId("20809e81-1bfd-4bac-b156-1e24a7e2ec98") - .setModified(true) - .transactionTypes(new String[]{"payment"}) - .transferTypes(new String[]{"coupon","campaign","cashback"}) - .description("4wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ"); + .transactionId("20719c65-8588-4035-ada6-68f27eb27e58") + .privateMoneyId("16ce03c0-6fb0-459b-b256-20a14e7ceac3") + .setModified(false) + .transactionTypes(new String[]{"cashback","payment","exchange","transfer","topup"}) + .transferTypes(new String[]{"cashback"}) + .description("NlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei19"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .customerName("ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXm") - .transactionId("7e33e549-d7b4-49d0-a7ec-c13a756c6a50") - .privateMoneyId("a6f903f6-97a3-4c79-a995-6bff066954ef") - .setModified(false) - .transactionTypes(new String[]{"cashback","transfer","payment","exchange","expire"}) - .transferTypes(new String[]{"payment","topup","campaign"}) - .description("vJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7"); + .customerName("OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZHYeA6KM") + .transactionId("d58144f3-7887-4307-9bd2-1053e18f8fc2") + .privateMoneyId("77536506-79bc-42eb-be2f-2b62702e611f") + .setModified(true) + .transactionTypes(new String[]{"transfer","expire","cashback","payment"}) + .transferTypes(new String[]{"coupon","payment","cashback","transfer","exchange","expire","topup"}) + .description("SUkqouGV2ULftf3KLiOm0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaer"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .customerId("7fc65c90-b7ee-46a2-8f16-d4bce6538980") - .customerName("XURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvf") - .transactionId("fc297801-b78b-4f4a-8c62-b329c91511d4") - .privateMoneyId("97d8027c-d1df-4b1b-9a98-b22b550a3192") + .customerId("ba3cd2e2-1c28-4494-a6c1-3fd5dc55b08f") + .customerName("j6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d") + .transactionId("f570c134-025c-44c4-a321-613aa7727826") + .privateMoneyId("fbd72535-bb9f-4ff9-90cd-d122abff0b1a") .setModified(true) - .transactionTypes(new String[]{"topup","payment","cashback","exchange"}) - .transferTypes(new String[]{"exchange"}) - .description("6HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhK"); + .transactionTypes(new String[]{"expire","transfer","exchange"}) + .transferTypes(new String[]{"topup","exchange","payment","expire","cashback"}) + .description("Y6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcLSudPl4JIrQmLFW"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .shopName("gvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6") - .customerId("e5825dbc-4081-4491-8d3f-63efd163ccad") - .customerName("DkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBS") - .transactionId("3267ce5b-2640-48e8-957e-3a280ad90b36") - .privateMoneyId("f50c6398-e785-4885-be49-2cb6c0a7c0f1") - .setModified(true) - .transactionTypes(new String[]{"transfer","exchange","cashback","payment"}) - .transferTypes(new String[]{"expire","coupon","campaign"}) - .description("IFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCp"); + .shopName("JxcGB9NLriuIsMTY") + .customerId("c884d81c-e079-4643-956f-ec8785993e20") + .customerName("Ea9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt") + .transactionId("222b6c33-7a49-4c0f-9520-d25668c91d0e") + .privateMoneyId("eb816512-2ccc-447f-b56a-e8e671200aef") + .setModified(false) + .transactionTypes(new String[]{"cashback","payment"}) + .transferTypes(new String[]{"cashback","exchange","transfer","coupon","campaign","topup","expire","payment"}) + .description("821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUm"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .shopId("1b5c4179-22cc-453c-bef9-a39a42ccb65a") - .shopName("50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJT") - .customerId("23ea49e9-3c17-45a5-b713-2bcf881f9d2b") - .customerName("UK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNS") - .transactionId("fa19fce6-0283-4b97-9e7b-88ed8c45ea7d") - .privateMoneyId("11dc6f98-d386-49c5-b5a3-06ff3d16fe21") - .setModified(true) - .transactionTypes(new String[]{"cashback","topup","payment","exchange","transfer","expire"}) - .transferTypes(new String[]{"transfer","cashback","coupon","campaign","payment"}) - .description("MyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe"); + .shopId("65886f64-2c16-4b5e-99fb-6b8d8458ed96") + .shopName("CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B8") + .customerId("68b6c9a1-62b3-484b-83e2-a4731af0f573") + .customerName("nciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQ") + .transactionId("c74b9c85-f127-42c8-ae7c-c8c375e7037b") + .privateMoneyId("6f9dcad5-c341-44d4-87c7-1bfcbc47747a") + .setModified(false) + .transactionTypes(new String[]{"cashback","transfer","exchange","topup","payment"}) + .transferTypes(new String[]{"coupon","campaign","topup","expire","transfer","payment"}) + .description("Z4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .perPage(1417) - .shopId("94a51035-33ad-4aa6-b258-03c055df6fb0") - .shopName("rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ") - .customerId("bb41ea14-5f37-4c80-a5b1-2d1545b7e61a") - .customerName("CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jR") - .transactionId("cf80c144-88bc-4199-966e-0e44ebff96e6") - .privateMoneyId("1f3e21d5-f316-4cf4-807d-2fb459bdb925") + .perPage(9749) + .shopId("fa5782d3-ccc8-42f9-a946-a22b96774f22") + .shopName("seHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771k") + .customerId("06bc832e-22d1-4837-9eed-7aa22296017c") + .customerName("ZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f4") + .transactionId("3f2e039d-c6b6-4c5d-b457-473b3f0fd8e7") + .privateMoneyId("e89056f9-5e4d-42b4-b3a8-a2892af986c1") .setModified(true) - .transactionTypes(new String[]{"payment","transfer"}) - .transferTypes(new String[]{"coupon","payment","campaign","topup","transfer","expire","cashback","exchange"}) - .description("cCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZ"); + .transactionTypes(new String[]{"transfer","payment","cashback","expire"}) + .transferTypes(new String[]{"exchange","coupon","cashback"}) + .description("SX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .page(1939) - .perPage(1737) - .shopId("9bd97640-2990-4459-95a7-b5e50f914add") - .shopName("A6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLiOm0u6OdTYv") - .customerId("e00a80d9-2931-4a88-99d7-e78ccf09b74d") - .customerName("a6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20S") - .transactionId("49c2a599-497d-4359-a27b-dc3bf9a82d32") - .privateMoneyId("44b7185d-0938-429c-837d-a918e99902c5") - .setModified(true) - .transactionTypes(new String[]{"payment","cashback","transfer","exchange"}) - .transferTypes(new String[]{"transfer","topup","coupon","campaign","exchange","payment","cashback","expire"}) - .description("FgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCG"); + .page(550) + .perPage(9167) + .shopId("c5f78605-e322-47b0-8074-d300540724a1") + .shopName("nRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6Ams") + .customerId("5e82685d-0877-4f1a-a4c0-2b41ec200ecd") + .customerName("3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGli") + .transactionId("18a3d0a2-fe92-4fc5-8205-bb194fad4716") + .privateMoneyId("77aed2bb-3fd0-43ed-887f-f57244133548") + .setModified(false) + .transactionTypes(new String[]{"topup"}) + .transferTypes(new String[]{"transfer","exchange","campaign","payment","expire","coupon","topup","cashback"}) + .description("ZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqf"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -272,19 +272,19 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .to("2020-03-12T11:40:45.000000Z") - .page(6724) - .perPage(3429) - .shopId("37e7f3a0-6f1a-45c5-a411-ee1ca472a898") - .shopName("Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTM") - .customerId("1c97d2e1-cf8b-4819-97e7-57c45a2e72d3") - .customerName("eHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrt") - .transactionId("ec44d2c3-c59c-45f8-ab16-18eba6632c74") - .privateMoneyId("5d4437cd-697e-4662-a92c-2a003930cc0f") - .setModified(true) - .transactionTypes(new String[]{"transfer","payment","expire","exchange","cashback","topup"}) - .transferTypes(new String[]{"coupon","exchange","campaign","topup","payment"}) - .description("bRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUM"); + .to("2024-09-20T00:33:22.000000Z") + .page(3433) + .perPage(6611) + .shopId("b4f3a41a-4313-4184-bced-7aaedf8724d5") + .shopName("p8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4") + .customerId("d913a477-1303-491c-b9d2-086b498b2027") + .customerName("vag9C19xRl1IlJpGXqlhd5uwOg") + .transactionId("86b863b5-bfbd-4633-9f1e-c41b1e793b2b") + .privateMoneyId("2272e094-7ea3-4190-aa3b-192ecc8e6e33") + .setModified(false) + .transactionTypes(new String[]{"exchange","transfer"}) + .transferTypes(new String[]{"topup","exchange","payment","expire","transfer"}) + .description("nZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -299,20 +299,20 @@ void test13() throws ConnectionError, ProcessingError { @Test void test14() throws ConnectionError, ProcessingError { Request request = new ListTransfers() - .from("2020-03-21T17:58:30.000000Z") - .to("2022-05-05T13:45:47.000000Z") - .page(2900) - .perPage(2506) - .shopId("9cadd92f-eae4-4cad-854a-11cdb435cec7") - .shopName("98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhW") - .customerId("2ef834c6-5b7c-4ff7-a33b-63413bb3e106") - .customerName("ll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW") - .transactionId("dbcd2c99-007b-412f-b0d0-9c09313f4008") - .privateMoneyId("975e10bc-5d92-42c7-add5-eeb4b1466735") - .setModified(false) - .transactionTypes(new String[]{"cashback","exchange","payment","transfer","topup"}) - .transferTypes(new String[]{"coupon","transfer","exchange","payment","topup","expire"}) - .description("NvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtu"); + .from("2024-04-05T09:30:04.000000Z") + .to("2023-06-20T14:36:29.000000Z") + .page(2704) + .perPage(9777) + .shopId("f70142ec-0a6e-4e0a-93bd-76595b332c25") + .shopName("W7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I") + .customerId("894c08b5-f99e-4803-bcbb-5d4b8b1b43cc") + .customerName("OrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8") + .transactionId("d12f023a-9a6f-4540-aa19-ed395e5b3a61") + .privateMoneyId("d0e7210a-696c-46f2-a22d-d84529e999af") + .setModified(true) + .transactionTypes(new String[]{"exchange","transfer","topup","cashback","payment"}) + .transferTypes(new String[]{"exchange","transfer","campaign","cashback"}) + .description("birzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3v"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java b/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java index b415ce2..56d9c74 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java +++ b/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .to("2021-03-23T04:04:58.000000Z"); + .to("2024-07-24T01:22:42.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .from("2024-07-18T07:55:43.000000Z") - .to("2024-03-16T20:33:15.000000Z"); + .from("2021-05-18T23:25:30.000000Z") + .to("2021-12-22T07:02:58.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .description("hwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4Ez") - .from("2022-08-02T00:56:05.000000Z") - .to("2021-04-23T15:57:26.000000Z"); + .description("869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibj") + .from("2022-08-08T00:57:03.000000Z") + .to("2021-09-03T19:38:36.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .transferTypes(new String[]{"transfer","coupon","topup","payment","exchange"}) - .description("DCSxoowqwobMRj4K8plKuk") - .from("2021-11-14T22:11:39.000000Z") - .to("2024-07-25T10:04:06.000000Z"); + .transferTypes(new String[]{"transfer","cashback"}) + .description("tgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZC") + .from("2020-05-29T04:19:26.000000Z") + .to("2021-10-01T14:29:27.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .perPage(172) - .transferTypes(new String[]{"coupon","transfer","campaign","expire"}) - .description("CXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGb") - .from("2020-07-23T04:27:44.000000Z") - .to("2022-11-20T17:12:04.000000Z"); + .perPage(91) + .transferTypes(new String[]{"coupon","campaign","cashback","topup","payment","expire","exchange","transfer"}) + .description("6LzTWIbd8ZNVrafdi") + .from("2021-05-20T20:37:10.000000Z") + .to("2024-07-05T05:06:05.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .prevPageCursorId("69f15609-b3f0-49e2-80cd-8f04367f3fa9") - .perPage(927) - .transferTypes(new String[]{"exchange","transfer","payment","topup","expire","coupon","campaign"}) - .description("aiDroY6Q3IK7BQ6AmswdAM") - .from("2020-09-17T19:34:00.000000Z") - .to("2024-01-24T08:06:52.000000Z"); + .prevPageCursorId("db44dc4e-8fee-43b4-8e05-9662940afdce") + .perPage(717) + .transferTypes(new String[]{"exchange","payment"}) + .description("trelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFR") + .from("2020-08-17T16:44:36.000000Z") + .to("2020-01-07T22:45:38.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .nextPageCursorId("7416611f-2e33-43c9-8af2-56af066b1677") - .prevPageCursorId("7bd970d6-d2e2-4573-b970-bccdd97bd8f8") - .perPage(231) - .transferTypes(new String[]{"payment","cashback"}) - .description("1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmm") - .from("2020-12-27T00:56:08.000000Z") - .to("2021-02-25T20:32:37.000000Z"); + .nextPageCursorId("122fc4e1-8960-44be-9820-d017ad7e0417") + .prevPageCursorId("383eacf5-dab2-4baf-8186-bce0b1e5f9a7") + .perPage(960) + .transferTypes(new String[]{"payment","campaign","topup","transfer","exchange"}) + .description("1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfy") + .from("2023-06-16T19:13:17.000000Z") + .to("2020-08-07T21:30:42.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .transactionTypes(new String[]{"expire","cashback"}) - .nextPageCursorId("af0744c7-8de8-4ae5-ad2d-8e8ef679abfb") - .prevPageCursorId("256441a2-fc14-45fb-b354-86992c485b94") - .perPage(574) - .transferTypes(new String[]{"topup","expire","coupon","exchange","campaign","cashback","payment","transfer"}) - .description("c7CS1DK4G") - .from("2023-08-10T03:01:06.000000Z") - .to("2022-11-14T00:51:10.000000Z"); + .transactionTypes(new String[]{"exchange","transfer","payment","cashback"}) + .nextPageCursorId("1f8a6011-635c-4dec-b83c-850984d43ab0") + .prevPageCursorId("02bca9dd-e006-4c6a-ae31-b6f43364592d") + .perPage(916) + .transferTypes(new String[]{"coupon","cashback","campaign","topup","transfer","exchange","payment"}) + .description("oezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWn") + .from("2023-11-16T23:29:10.000000Z") + .to("2021-11-06T20:27:22.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -175,14 +175,14 @@ void test8() throws ConnectionError, ProcessingError { void test9() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() .setModified(true) - .transactionTypes(new String[]{"exchange"}) - .nextPageCursorId("17ac544d-078c-4c58-9b07-320c57bdc9c8") - .prevPageCursorId("327abbfc-6a97-498e-9d72-14fa41ea10b9") - .perPage(60) - .transferTypes(new String[]{"campaign","coupon","expire"}) - .description("mUp8pN9pjtBKEK15Dd3XxCT0Zmu") - .from("2024-03-18T05:31:34.000000Z") - .to("2022-03-14T12:52:05.000000Z"); + .transactionTypes(new String[]{"transfer","exchange","payment","topup"}) + .nextPageCursorId("05a6f90b-d31e-43aa-96fb-49b8f88c610a") + .prevPageCursorId("88988437-1e1c-4f71-b465-d9a31e963be4") + .perPage(677) + .transferTypes(new String[]{"topup","transfer","exchange","expire","payment"}) + .description("YCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApR") + .from("2020-06-13T23:41:16.000000Z") + .to("2020-07-27T05:29:15.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .privateMoneyId("6eb0a40d-c937-44f4-820e-b0cf3a0c4440") - .setModified(true) - .transactionTypes(new String[]{"exchange","transfer"}) - .nextPageCursorId("161abbde-6265-4cdc-9dce-5f6195861a74") - .prevPageCursorId("c0942e47-98a8-42de-bf06-267c6ab5cb6f") - .perPage(877) - .transferTypes(new String[]{"transfer","expire","cashback","exchange","topup","coupon","campaign","payment"}) - .description("SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1Ll") - .from("2021-07-18T19:57:18.000000Z") - .to("2022-01-18T16:37:21.000000Z"); + .privateMoneyId("4ce75635-3498-4b10-a94e-f0d89127401d") + .setModified(false) + .transactionTypes(new String[]{"exchange","topup","cashback","transfer","expire","payment"}) + .nextPageCursorId("3ac2b823-5328-4a25-9111-6e4f0b014d28") + .prevPageCursorId("b76fe144-99ec-40ed-9b3a-6e3c48c852ed") + .perPage(314) + .transferTypes(new String[]{"exchange","coupon","topup","transfer","cashback"}) + .description("3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMc") + .from("2021-09-20T00:01:15.000000Z") + .to("2021-02-24T07:56:10.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .transactionId("3405f240-8da3-4c0a-aac9-83e9c7fb400a") - .privateMoneyId("ac2d57bd-0f35-4b3d-b1d9-31545b075671") + .transactionId("217a3bfc-6a6b-48d8-82ba-f85b63abf88e") + .privateMoneyId("e0998bd7-aa89-4d17-bb88-9281932cfe45") .setModified(true) - .transactionTypes(new String[]{"transfer","topup","cashback","exchange","expire","payment"}) - .nextPageCursorId("136c436a-c71a-4c14-bc01-a66666243374") - .prevPageCursorId("e4685af3-359d-4342-94ab-c4eb7cb010a6") - .perPage(896) - .transferTypes(new String[]{"transfer","coupon"}) - .description("gIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXql") - .from("2023-07-03T17:38:54.000000Z") - .to("2022-06-30T07:14:35.000000Z"); + .transactionTypes(new String[]{"expire","payment","exchange"}) + .nextPageCursorId("f1e9f721-4c0a-4a24-936a-ad97784ba778") + .prevPageCursorId("1ba1eae7-9c11-4560-acc3-deae10c41357") + .perPage(308) + .transferTypes(new String[]{"topup","expire","exchange","campaign","cashback","coupon","transfer","payment"}) + .description("ob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5") + .from("2020-12-22T18:18:56.000000Z") + .to("2023-06-20T16:03:27.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .customerName("d5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCsp") - .transactionId("21798f89-20e4-48ff-9308-3ff01ff7a6cb") - .privateMoneyId("34092b84-562e-43e3-bc1f-2ba0fbc9fa08") - .setModified(false) - .transactionTypes(new String[]{"exchange","expire","payment"}) - .nextPageCursorId("6849350b-72b5-42a3-a77c-34bd749761cc") - .prevPageCursorId("9b3bab85-e5c1-4454-8170-817ac425298f") - .perPage(338) - .transferTypes(new String[]{"exchange","transfer","campaign","payment","coupon","cashback"}) - .description("G1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2w") - .from("2023-07-06T21:17:42.000000Z") - .to("2020-03-06T07:13:06.000000Z"); + .customerName("2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4") + .transactionId("6aac1ac2-24b5-4285-8711-318db3ce254b") + .privateMoneyId("85b83752-fcdf-441d-93a5-54dc42ddf63c") + .setModified(true) + .transactionTypes(new String[]{"topup"}) + .nextPageCursorId("e883cf8f-56f0-471c-9688-924fcc632652") + .prevPageCursorId("20255799-822b-40d1-bb4c-0a79ee1995b6") + .perPage(337) + .transferTypes(new String[]{"expire","coupon","campaign","payment"}) + .description("HGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCc") + .from("2024-06-25T05:10:00.000000Z") + .to("2022-08-03T19:00:31.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -272,19 +272,19 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .customerId("01340f5e-e511-4db3-b6d9-0a3aa2cdda2c") - .customerName("uE4jwp0IiR44I5KLiOrRKq3qxtTGi") - .transactionId("dee32366-1821-44ce-b63f-e1cb261c9a2c") - .privateMoneyId("5da3a272-3e72-46e1-84b5-60f5ebdeb5a4") + .customerId("9b5f46bf-49a6-475e-8d08-620945d9978f") + .customerName("Gd4kHySUJYrKI48UyLazcdaqg9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0Ej") + .transactionId("90d1a7de-6528-41fa-bf89-fc467a4dc3c7") + .privateMoneyId("2020e9e4-b25e-46bf-afae-c6290491db26") .setModified(false) - .transactionTypes(new String[]{"transfer","cashback","payment","exchange","topup"}) - .nextPageCursorId("ba7b5f00-a9a8-4ded-91e4-d74c73fedb4e") - .prevPageCursorId("c853e04f-52cb-49ad-9c3e-eeabed53ba9f") - .perPage(830) - .transferTypes(new String[]{"topup","expire"}) - .description("Oh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3") - .from("2024-06-24T19:10:10.000000Z") - .to("2020-09-08T11:39:54.000000Z"); + .transactionTypes(new String[]{"expire","cashback","payment","topup","transfer"}) + .nextPageCursorId("b8a59c21-13fe-47b0-b9f9-b599f148aef2") + .prevPageCursorId("145f45ec-1086-4524-b9d4-1e8adfea952b") + .perPage(267) + .transferTypes(new String[]{"campaign","topup","exchange","cashback","coupon","payment","transfer"}) + .description("hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RI") + .from("2022-05-22T08:59:48.000000Z") + .to("2021-11-17T10:42:07.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -299,20 +299,20 @@ void test13() throws ConnectionError, ProcessingError { @Test void test14() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .shopName("blmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidV") - .customerId("87951304-1e47-461f-b719-da29f2c9cac2") - .customerName("6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5") - .transactionId("47b14440-34ec-497f-8f77-68aeae516ed7") - .privateMoneyId("34d59ddd-6596-4d5a-8b75-1f57af90bb57") + .shopName("wbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsP") + .customerId("81592673-63a6-4a08-bcca-1c847dd7b996") + .customerName("yAShBlCJPjtVj6RA58jW") + .transactionId("455b2cb2-e36a-48a2-b86e-4289e082a8ac") + .privateMoneyId("1831b86f-28ad-4296-9762-43a03c0126e8") .setModified(true) - .transactionTypes(new String[]{"cashback"}) - .nextPageCursorId("23d1c950-51f1-40b2-b2ea-bece15ca43ab") - .prevPageCursorId("f917069c-5732-42a2-b8a8-a700a3b13851") - .perPage(615) - .transferTypes(new String[]{"payment","expire","transfer","topup","cashback"}) - .description("Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdi") - .from("2021-05-20T20:37:10.000000Z") - .to("2024-07-05T05:06:05.000000Z"); + .transactionTypes(new String[]{"transfer"}) + .nextPageCursorId("38e49e91-907f-454b-a61b-ce513fc21a07") + .prevPageCursorId("8384ebc1-f186-4790-9b50-3232f2bbe662") + .perPage(775) + .transferTypes(new String[]{"transfer","expire","payment","campaign","topup","exchange","cashback"}) + .description("Ih2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlI") + .from("2024-08-27T10:10:53.000000Z") + .to("2020-06-11T22:57:05.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -327,21 +327,21 @@ void test14() throws ConnectionError, ProcessingError { @Test void test15() throws ConnectionError, ProcessingError { Request request = new ListTransfersV2() - .shopId("db44dc4e-8fee-43b4-8e05-9662940afdce") - .shopName("XIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mH") - .customerId("aac45f15-00e8-4969-a0d3-46c4f9deee8e") - .customerName("XKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnT") - .transactionId("78f15c8a-e4ec-4989-934c-66f998f4bcfe") - .privateMoneyId("b5102dfc-6ade-4475-bfdc-73839d210a62") + .shopId("a1883389-64e0-406c-97bd-6fd15e6e57bd") + .shopName("L5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPv") + .customerId("d31a53d3-7dea-4e55-a688-c2814a9e6444") + .customerName("ltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAnlFEgMmyi8jmBN0T80aLv") + .transactionId("6d007d72-87cb-4c5c-afa1-764050971fd2") + .privateMoneyId("6ecbd8f9-639c-4096-89d4-245864f5465e") .setModified(false) - .transactionTypes(new String[]{"payment"}) - .nextPageCursorId("f4d07335-cbf5-4c16-8739-bdfba1be0d59") - .prevPageCursorId("3f422c34-2019-48e3-ae03-e3ac71afdc8c") - .perPage(951) - .transferTypes(new String[]{"cashback","exchange","expire","transfer","payment"}) - .description("RZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16") - .from("2023-07-22T03:23:23.000000Z") - .to("2022-10-03T00:53:54.000000Z"); + .transactionTypes(new String[]{"topup"}) + .nextPageCursorId("7847778d-bdd4-4e88-adb4-8cac88c22a9b") + .prevPageCursorId("bb5f5341-c6fa-4b65-9cef-d45a70ea8845") + .perPage(536) + .transferTypes(new String[]{"transfer","coupon"}) + .description("RyqlWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcN") + .from("2023-03-22T18:12:14.000000Z") + .to("2024-06-10T14:46:32.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java b/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java index 7a9c905..34c7111 100644 --- a/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java +++ b/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java @@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new ListWebhooks() - .perPage(3090); + .perPage(2968); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new ListWebhooks() - .page(7154) - .perPage(1647); + .page(8898) + .perPage(7010); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java index 8f5b0a7..2e126b9 100644 --- a/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java @@ -12,7 +12,7 @@ public class RefundExternalTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new RefundExternalTransaction( - "681094c4-980c-4d74-98ca-0969c4d5dbe9" + "1e0d3dde-f340-4ce8-ab9d-ecc3c7356a7d" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new RefundExternalTransaction( - "681094c4-980c-4d74-98ca-0969c4d5dbe9" + "1e0d3dde-f340-4ce8-ab9d-ecc3c7356a7d" ) - .description("kZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8Ox"); + .description("HkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/RefundTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/RefundTransactionTest.java index b4049b2..2651776 100644 --- a/src/test/java/jp/pokepay/partnerapi/RefundTransactionTest.java +++ b/src/test/java/jp/pokepay/partnerapi/RefundTransactionTest.java @@ -12,7 +12,7 @@ public class RefundTransactionTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new RefundTransaction( - "8e486a0d-3f86-46aa-8b07-c127608e19e8" + "9177ef46-180c-4c02-9c0f-8d765c372680" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new RefundTransaction( - "8e486a0d-3f86-46aa-8b07-c127608e19e8" + "9177ef46-180c-4c02-9c0f-8d765c372680" ) - .returningPointExpiresAt("2021-08-05T07:10:19.000000Z"); + .returningPointExpiresAt("2023-06-18T08:44:45.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new RefundTransaction( - "8e486a0d-3f86-46aa-8b07-c127608e19e8" + "9177ef46-180c-4c02-9c0f-8d765c372680" ) - .description("gpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziT") - .returningPointExpiresAt("2022-09-30T08:34:41.000000Z"); + .description("tR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xO") + .returningPointExpiresAt("2022-09-26T10:33:56.000000Z"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/RequestUserStatsTest.java b/src/test/java/jp/pokepay/partnerapi/RequestUserStatsTest.java index 64d8fcb..40c35d7 100644 --- a/src/test/java/jp/pokepay/partnerapi/RequestUserStatsTest.java +++ b/src/test/java/jp/pokepay/partnerapi/RequestUserStatsTest.java @@ -12,8 +12,8 @@ public class RequestUserStatsTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new RequestUserStats( - "2022-08-22T14:40:07.000000Z", - "2024-09-18T13:18:22.000000Z" + "2023-04-03T19:52:01.000000Z", + "2023-11-16T20:52:19.000000Z" ); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/TerminateUserStatsTest.java b/src/test/java/jp/pokepay/partnerapi/TerminateUserStatsTest.java new file mode 100644 index 0000000..a5aa605 --- /dev/null +++ b/src/test/java/jp/pokepay/partnerapi/TerminateUserStatsTest.java @@ -0,0 +1,28 @@ +// DO NOT EDIT: File is generated by code generator. +package jp.pokepay.partnerapi; + +import jp.pokepay.partnerapi.request.TerminateUserStats; +import jp.pokepay.partnerapi.request.Request; +import com.google.gson.JsonObject; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class TerminateUserStatsTest { + @Test + void test0() throws ConnectionError, ProcessingError { + Request request = new TerminateUserStats( + "0051f8f3-ad4a-4b61-b18b-3592b1210dbc" + ); + 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/UpdateCampaignTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java index 484daa0..73d765c 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java @@ -12,9 +12,9 @@ public class UpdateCampaignTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"201a1969-78aa-405f-9272-20f2c8525b2b","c9883fea-362f-4136-989e-1b24c370216d","92f100a0-437f-4bd8-84d9-54eff37a6571","a04274a7-1b56-4ec5-be9e-bc7f561e8376","e3a1bf5e-2bcb-4b76-a5ae-94f778977b33","7241d841-57e4-4ac5-b324-affbb550a20e","aeac5935-4568-4c47-a114-5f842f6464c4","5194a4cc-1089-4a7b-a075-819aeb378506","c213b519-fa61-4c53-bef0-74863e5ee907","559cc459-6d6c-46b1-9424-021d45703ac7"}); + .applicableShopIds(new String[]{"1a45982f-178c-43c5-9f8f-edeec6b957a7","05ebf3ab-edc7-468d-ab6e-6ffb0236a065","7553984f-5c9e-4b2b-aac8-a5b62669ea95","54f3db0e-683e-4893-90ac-a212cf36baa4","bcbfb991-5054-4069-8236-d12c41d0f838","b1d86a9d-d896-4e2f-aa2a-736a2a505dff","e2bc29bd-0796-41fd-a609-5fb12cb9731c","0fef2e12-ff8a-4ccc-ac9b-ec9b1f3ac9a8","d49c5430-39dc-431c-8f34-0ff4756c4a09","5fbe5838-339f-49f9-bfa1-68accbf64da0"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"ec27c6fe-059a-4a24-82ba-180ac4dfcd13","f985c984-19e9-41f5-8567-5e834f78f167","c5501e17-c56c-430b-b82b-cd22f5516989","f7d3cc4a-6b10-454a-82c7-4792184ecaff","5e21c79d-ad74-4d30-bce4-7a2c8fca5be3","aef32150-c7e2-4019-a05c-c88f4dd576f4"}) - .name("c4uSkk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLn"); + .applicableShopIds(new String[]{"830441f5-32b2-4fd9-abd9-60b36ba44460"}) + .name("amcbZRFCGWEFlMAhGqMbfoqHBJ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -47,11 +47,11 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"483acffd-cfbf-4b3d-8c85-c451016291ae","7a0a289d-125c-447b-98e5-b9e14d9dd333","16d1250c-bae5-443e-9499-e527acb9f640","306fc1af-ccc2-45ec-90a3-b3b10963847a","01008ae1-e7fd-4e31-986e-2d3711d59dbd","f9e353c9-6e5b-4ce3-80bc-ba2113063257"}) - .startsAt("2023-09-14T01:59:29.000000Z") - .name("MlrV1ey0F13qC7iArhwm76E35ql4X"); + .applicableShopIds(new String[]{"7a291700-e77d-466c-8e1f-650bf5f4bba7"}) + .startsAt("2020-01-19T05:00:31.000000Z") + .name("6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ0"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -66,12 +66,12 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"6b54f766-9255-4615-a165-2bc0557be331","f47afcb4-61d7-4ede-988a-03629081e296","cdde2e74-fdb9-45b3-9f74-bf00327a6632","f81322b6-c1bb-440f-acfe-20be21e09007","d46ed64c-3ae9-4851-91c1-a787c42816ac","032dc94d-dc42-4ed9-ad78-c6b0bf371a35"}) - .endsAt("2022-12-06T01:23:38.000000Z") - .startsAt("2022-09-02T03:49:21.000000Z") - .name("BwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9gh"); + .applicableShopIds(new String[]{"bb78271e-c578-48d6-b36e-ee53e5809e47","803e5fd0-2c1c-41f6-b4c3-18bf74fd78ba","d6c5e53f-db01-4898-b139-07099d00cbe1","a241691a-85a6-4fb5-9200-bd9c382e0fdb"}) + .endsAt("2024-07-11T16:04:41.000000Z") + .startsAt("2022-11-29T09:51:32.000000Z") + .name("dhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUH"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -86,13 +86,13 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"fdcf6c13-1c86-4d5c-a518-18434304d6d4","9582de5b-88ab-4cca-83de-ff91296df797"}) - .priority(6098) - .endsAt("2020-09-10T21:53:03.000000Z") - .startsAt("2023-05-11T04:34:12.000000Z") - .name("Xhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8"); + .applicableShopIds(new String[]{"1d3d7316-c243-403c-b613-564c41475b79","470963c1-ec26-4d16-b9e2-d5d911d76da2","1cf89f0c-fed9-4702-bda4-ea010990d60c","734409a0-3d0b-4c7f-89b1-2c1393c9b650","3044912c-23d4-47ee-999b-95dbe3fed982","db52f25c-8374-48b6-8184-c999c5909ad8","d4b424b3-1c8a-4dda-8d20-e63be30ea4f2","1389c6dd-4da7-4aad-a102-e1079a837705"}) + .priority(5018) + .endsAt("2020-03-07T23:33:30.000000Z") + .startsAt("2021-06-17T19:14:20.000000Z") + .name("iLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -107,14 +107,14 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"d5365c8b-e163-4569-af2b-de2dfaec44bc","98e228e8-4e71-4c57-be20-16f78e636ed7","8648f6cb-c1cc-4c49-83f3-56e748017178","06817d6f-7a92-44f8-85a1-f5dce51de9ab"}) + .applicableShopIds(new String[]{"9ec5df87-a7b3-4306-ab63-3ce6cc47f530","61cc3303-dfdf-45e8-b2a6-4651022cb2b4","0d6483e1-1433-4872-9089-1ae7cf8efa54","cb75b1e8-3320-40de-8d8e-ba963be0a59b","bfc5bba4-bb53-4eb8-80ab-6a9bdd23054b","68a1746b-7b5d-46da-834f-fc0ed576862c","a0850b5a-2c3e-4fd1-b8df-55e5fc54b020"}) .event("topup") - .priority(6681) - .endsAt("2023-08-27T09:21:44.000000Z") - .startsAt("2020-11-20T17:43:31.000000Z") - .name("2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFh"); + .priority(8114) + .endsAt("2022-12-28T07:13:17.000000Z") + .startsAt("2021-11-28T17:51:58.000000Z") + .name("9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -129,15 +129,15 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .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") + .applicableShopIds(new String[]{"c55ebfdd-cd6b-45ee-a00d-c6f9e3f3c14a","63cde9e5-21cc-4e10-889f-7dac89bc937c"}) + .description("qePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8o") .event("topup") - .priority(5744) - .endsAt("2023-12-01T20:45:20.000000Z") - .startsAt("2023-01-22T11:16:39.000000Z") - .name("iVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m"); + .priority(1683) + .endsAt("2024-01-17T15:31:17.000000Z") + .startsAt("2024-02-06T22:50:11.000000Z") + .name("AcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWk"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,16 +152,16 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"8219900a-ff35-4db1-8208-6c6d4204ff94","09bea70e-f703-4550-829b-e2fb4ac21c2e","e9418e55-33dd-4bfe-b864-e33a43296e54","87b52509-7f44-4fa6-b796-4710c3fd01e2","16d23a3d-ebee-43a2-bb0f-f1d82d66b091"}) - .status("enabled") - .description("r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8h") - .event("external-transaction") - .priority(5511) - .endsAt("2023-05-29T19:29:06.000000Z") - .startsAt("2023-03-30T02:43:56.000000Z") - .name("pqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQd"); + .applicableShopIds(new String[]{"9b0f6cbd-6465-45ca-9184-52107d4576a5"}) + .status("disabled") + .description("ym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJ") + .event("topup") + .priority(4945) + .endsAt("2021-06-15T14:30:03.000000Z") + .startsAt("2022-12-02T02:22:09.000000Z") + .name("hcSsOlDN"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -176,17 +176,17 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"8179b6eb-ff31-4230-9c4f-efb1d1bcf042","6663101b-13a4-495d-a90e-52826613c367"}) - .pointExpiresAt("2021-02-12T12:09:31.000000Z") + .applicableShopIds(new String[]{"a2958ba6-a02a-495f-9d95-ca53313bad04","75d096d7-2348-4f28-82eb-29dee1c5752c","0cbd6206-11c2-4a72-b369-a15851ee230c","59c2f4e8-a943-496e-9d40-c18dd4d1de5a"}) + .pointExpiresAt("2022-10-01T11:51:22.000000Z") .status("enabled") - .description("vU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuK") + .description("ORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7b") .event("payment") - .priority(8099) - .endsAt("2021-06-04T04:52:57.000000Z") - .startsAt("2023-10-26T09:20:26.000000Z") - .name("1hdXC"); + .priority(8982) + .endsAt("2021-06-23T06:33:32.000000Z") + .startsAt("2023-11-26T22:21:24.000000Z") + .name("Ia6s2Oi"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -201,18 +201,18 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"ce9bd3f9-0ac1-404c-a84c-048ab60ec391","c6d5b424-268c-4c73-a4d0-91daedfb3cdc","d84eca09-7d2d-49b4-905c-99f8f8de07c5","8b8a0e95-b6da-425b-8261-974cd501af39","cc89b6dc-ef85-4e8c-a48a-f15c0593c167","7c402791-4bd0-4ba2-84dd-4f0cb1a42097","6c29d3ef-d045-470c-b5d0-d616df168c8f","7c26bc6e-854f-4660-9278-f0539e9e769f"}) - .pointExpiresInDays(6234) - .pointExpiresAt("2020-02-10T10:51:05.000000Z") - .status("enabled") - .description("IBQUZMwQEKQp536z2WYA1sx132uYpl") - .event("external-transaction") - .priority(9745) - .endsAt("2022-04-24T08:50:34.000000Z") - .startsAt("2020-09-05T17:02:02.000000Z") - .name("tFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi2"); + .applicableShopIds(new String[]{"d4aee4b4-a929-4a34-975e-7dc0f8df46fc","93e651b8-efab-49fa-9911-81a793fcaf0e","9b51d5d9-107e-4175-93e5-6cf282247ed6","796fd967-8d74-4d35-b8f0-fadf5fb8278d"}) + .pointExpiresInDays(3669) + .pointExpiresAt("2022-03-24T13:20:05.000000Z") + .status("disabled") + .description("hqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyu") + .event("payment") + .priority(4970) + .endsAt("2021-06-16T00:35:43.000000Z") + .startsAt("2023-03-05T22:37:37.000000Z") + .name("U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNY"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -227,19 +227,19 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"ca05f932-ed23-42ca-b7ab-ab3a2d0b9bb1","88e8f9e9-d3e4-4441-b894-78e39e4345d1","88ffbeb9-b0d2-4284-9b8b-685164b175e3","ab4472c1-fdb9-43b3-8526-ee8f1983136a"}) + .applicableShopIds(new String[]{"38bf9b20-5afa-48d1-8632-3687a4bf2bb6","b6968aae-5352-4599-92ee-c30dea1967cc","f15dc4cb-1a90-42cd-b2f6-c8e1be5e9840"}) .setExclusive(true) - .pointExpiresInDays(7419) - .pointExpiresAt("2021-08-22T22:07:08.000000Z") + .pointExpiresInDays(8694) + .pointExpiresAt("2022-09-02T12:19:44.000000Z") .status("enabled") - .description("VE1oN8GZytUXsp14vePeJ") - .event("external-transaction") - .priority(7933) - .endsAt("2022-09-08T05:55:52.000000Z") - .startsAt("2021-05-01T18:01:55.000000Z") - .name("1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcb"); + .description("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) { @@ -254,20 +254,20 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"2cd7121d-8bd2-4e16-9646-6a19e77f4543"}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(7428) - .pointExpiresAt("2020-08-10T07:46:38.000000Z") + .applicableShopIds(new String[]{"ea40d6af-7b3f-4c08-9159-f70e61ca749a","4a5ab74a-0b58-4d44-863c-e9eed14e244e"}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(517) + .pointExpiresAt("2022-08-28T20:40:20.000000Z") .status("disabled") - .description("WEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4") + .description("OvQLPfQxkSjhK") .event("topup") - .priority(3913) - .endsAt("2021-04-27T04:59:45.000000Z") - .startsAt("2023-08-03T21:04:35.000000Z") - .name("wQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5"); + .priority(1278) + .endsAt("2020-07-23T23:05:36.000000Z") + .startsAt("2022-01-14T20:35:45.000000Z") + .name("rHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5E"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -286,22 +286,42 @@ void test12() throws ConnectionError, ProcessingError { items.addProperty("point_amount_unit", "percent"); items.addProperty("subject_more_than_or_equal", 1000); items.addProperty("subject_less_than", 5000); + JsonObject items2 = new JsonObject(); + items2.addProperty("point_amount", 5); + items2.addProperty("point_amount_unit", "percent"); + items2.addProperty("subject_more_than_or_equal", 1000); + items2.addProperty("subject_less_than", 5000); + JsonObject items3 = new JsonObject(); + items3.addProperty("point_amount", 5); + items3.addProperty("point_amount_unit", "percent"); + items3.addProperty("subject_more_than_or_equal", 1000); + items3.addProperty("subject_less_than", 5000); + JsonObject items4 = new JsonObject(); + items4.addProperty("point_amount", 5); + items4.addProperty("point_amount_unit", "percent"); + items4.addProperty("subject_more_than_or_equal", 1000); + items4.addProperty("subject_less_than", 5000); + JsonObject items5 = new JsonObject(); + items5.addProperty("point_amount", 5); + items5.addProperty("point_amount_unit", "percent"); + items5.addProperty("subject_more_than_or_equal", 1000); + items5.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"45af3000-bd9c-4fdb-85f0-277948842199","4579f524-c4c2-4328-a31f-22e443c598e8","10e80104-025d-4066-84f4-aeddcf984e8d"}) - .amountBasedPointRules(new Object[]{items}) + .applicableShopIds(new String[]{"e5f7cb3d-80a7-40d4-aa57-2a9674a2fad6","50cdf515-3d7c-4b34-9c5c-7ad78d892897","0ec5779f-1dd7-4cf3-a052-08f9dee3ffdd"}) + .amountBasedPointRules(new Object[]{items,items2,items3,items4,items5}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(4348) - .pointExpiresAt("2023-04-11T03:47:25.000000Z") - .status("enabled") - .description("gxIW5ljI6yfgW8z") + .setExclusive(true) + .pointExpiresInDays(2771) + .pointExpiresAt("2023-10-29T02:10:51.000000Z") + .status("disabled") + .description("YVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBo") .event("external-transaction") - .priority(1582) - .endsAt("2024-07-02T19:52:32.000000Z") - .startsAt("2023-06-26T13:57:53.000000Z") - .name("ul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3Z"); + .priority(7724) + .endsAt("2021-09-10T13:06:48.000000Z") + .startsAt("2024-05-16T18:17:50.000000Z") + .name("TY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlK"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -366,13 +386,15 @@ void test13() throws ConnectionError, ProcessingError { JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); @@ -393,23 +415,48 @@ void test13() throws ConnectionError, ProcessingError { items14.addProperty("point_amount_unit", "percent"); items14.addProperty("subject_more_than_or_equal", 1000); items14.addProperty("subject_less_than", 5000); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .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") + .applicableShopIds(new String[]{"f6bb97d0-d111-4fe7-b1d3-41c19565c230","0ba9e345-2ed2-46a1-a19e-c3964ee366c7","acddf418-997a-48b4-b6f6-87085e0b663a","217cd782-8b12-4c2d-89ad-8f03f4d54f69","b14411c1-2cb4-4c06-a8bc-37fbfd3ca1e2"}) + .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .amountBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18,items19}) + .subject("all") .setExclusive(false) - .pointExpiresInDays(3659) - .pointExpiresAt("2021-06-17T19:14:20.000000Z") - .status("enabled") - .description("iLHRNzuSt") + .pointExpiresInDays(3122) + .pointExpiresAt("2022-11-02T18:15:55.000000Z") + .status("disabled") + .description("CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2u") .event("topup") - .priority(5260) - .endsAt("2023-07-11T20:38:32.000000Z") - .startsAt("2023-02-17T13:06:56.000000Z") - .name("5"); + .priority(9210) + .endsAt("2023-05-28T18:10:10.000000Z") + .startsAt("2024-08-16T21:23:19.000000Z") + .name("xu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGp"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -430,62 +477,132 @@ void test14() throws ConnectionError, ProcessingError { items2.addProperty("product_code", "4912345678904"); items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("point_amount", 5); - items3.addProperty("point_amount_unit", "percent"); items3.addProperty("product_code", "4912345678904"); - items3.addProperty("is_multiply_by_count", true); - items3.addProperty("required_count", 2); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); - items7.addProperty("subject_more_than_or_equal", 1000); - items7.addProperty("subject_less_than", 5000); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); - items9.addProperty("point_amount", 5); - items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); + JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); + JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); + JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("product_code", "4912345678904"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"0bf31cfc-88a3-4068-9afa-ea2fa03e4be6","afbfbe62-0ccd-4743-af0a-58b9f20c847c","5ebbc218-185d-45de-9ef1-3ebea6890c2d","6b64dc90-6012-49f9-a1c1-6ad23f31ddf8","00c07ff4-fd3e-485d-a15a-ffa16d2ad75f","3be3bc14-7df1-460f-bbfb-fe9a1b0d9ce7","f8d657dd-9a42-4235-a674-a7304a0ab4eb"}) - .blacklistedProductRules(new Object[]{items,items2}) - .productBasedPointRules(new Object[]{items3,items4,items5,items6}) - .amountBasedPointRules(new Object[]{items7,items8,items9}) + .applicableShopIds(new String[]{"c35ae109-b050-415f-842e-18e512215d25","70d35470-92b5-4699-bd0a-1bcd23a4046c","f579f79f-90cc-45c4-aa21-7229e4e83201","cbb9c60c-f8c4-4d8b-8aed-141a7ba9eef9","b36fc5b5-8229-43c0-bbc8-6825fc4e3b85","894ce112-b0b5-478e-bc9c-11fb113f89d7"}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17}) + .amountBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24,items25}) .subject("money") - .setExclusive(true) - .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"); + .setExclusive(false) + .pointExpiresInDays(8239) + .pointExpiresAt("2022-07-22T19:02:30.000000Z") + .status("disabled") + .description("OkEFZiHMkNkDC4XjAgnNgPyTasq1IFex") + .event("external-transaction") + .priority(6425) + .endsAt("2021-01-02T21:36:08.000000Z") + .startsAt("2022-03-09T02:19:16.000000Z") + .name("sY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwT"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -506,35 +623,20 @@ void test15() throws ConnectionError, ProcessingError { items2.addProperty("product_code", "4912345678904"); items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("point_amount", 5); - items3.addProperty("point_amount_unit", "percent"); items3.addProperty("product_code", "4912345678904"); - items3.addProperty("is_multiply_by_count", true); - items3.addProperty("required_count", 2); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); items8.addProperty("point_amount", 5); items8.addProperty("point_amount_unit", "percent"); @@ -544,18 +646,21 @@ void test15() throws ConnectionError, ProcessingError { JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); @@ -571,30 +676,25 @@ void test15() throws ConnectionError, ProcessingError { items14.addProperty("point_amount_unit", "percent"); items14.addProperty("subject_more_than_or_equal", 1000); items14.addProperty("subject_less_than", 5000); - JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"791e97e5-0acd-4a8c-b3e0-cae0a65b15a5","6fcd9095-8271-4b75-a419-c905a0c5ceb8","ea40e6eb-a11b-4c6e-bf2f-3cffd4bbd8e8"}) - .applicableDaysOfWeek(new Integer[]{2,0,0}) - .blacklistedProductRules(new Object[]{items,items2}) - .productBasedPointRules(new Object[]{items3,items4,items5,items6,items7,items8}) - .amountBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15}) + .applicableShopIds(new String[]{"9d33a409-ee55-4115-8a16-6547d14208b7","c9beeb3e-459c-4029-ba78-ad07017498f4","96b5b7d1-0060-4750-ac07-86cc4fcfcf86"}) + .applicableDaysOfWeek(new Integer[]{0,5,6,3,4,5,2,5,4,0}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .productBasedPointRules(new Object[]{items8,items9,items10,items11}) + .amountBasedPointRules(new Object[]{items12,items13,items14}) .subject("money") .setExclusive(false) - .pointExpiresInDays(2128) - .pointExpiresAt("2024-10-10T07:55:01.000000Z") + .pointExpiresInDays(885) + .pointExpiresAt("2023-01-24T15:03:14.000000Z") .status("enabled") - .description("FHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEP") - .event("topup") - .priority(8523) - .endsAt("2021-11-23T18:33:31.000000Z") - .startsAt("2021-01-31T00:28:24.000000Z") - .name("oSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHa"); + .description("zpE8reI7vFyo7eM4dNHW25nKJYDvzM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk") + .event("external-transaction") + .priority(3810) + .endsAt("2020-06-20T08:19:57.000000Z") + .startsAt("2021-10-28T02:33:58.000000Z") + .name("nq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -624,60 +724,69 @@ void test16() 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("product_code", "4912345678904"); items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("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("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("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("subject_more_than_or_equal", 1000); + items12.addProperty("subject_less_than", 5000); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); items14.addProperty("subject_more_than_or_equal", 1000); items14.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .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}) + .applicableShopIds(new String[]{"6bea3a3e-ab17-4641-bcb0-a2121cbd3b9f","c9ef0b38-e6c8-47fd-8ddb-c8f517dc602f","051d35fd-5087-467a-afd2-9d2d0d4b600c","11b542cb-8056-459e-aaef-45d9c0358e13","0f259b38-ce25-4337-ab7c-f5692e7812ad","32f2d61f-9593-4d5d-8578-e0e42870f616","b9443145-b748-4892-94a8-5d8c7853acce"}) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) + .applicableDaysOfWeek(new Integer[]{0,5,0,4,4}) + .blacklistedProductRules(new Object[]{items6,items7}) + .productBasedPointRules(new Object[]{items8,items9,items10}) + .amountBasedPointRules(new Object[]{items11,items12,items13,items14}) .subject("money") .setExclusive(true) - .pointExpiresInDays(2497) - .pointExpiresAt("2024-01-03T05:55:35.000000Z") - .status("disabled") - .description("rDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7") + .pointExpiresInDays(7874) + .pointExpiresAt("2023-02-21T09:59:43.000000Z") + .status("enabled") + .description("invVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoU") .event("external-transaction") - .priority(1092) - .endsAt("2021-04-25T19:58:00.000000Z") - .startsAt("2023-12-12T17:28:09.000000Z") - .name("xM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1"); + .priority(5033) + .endsAt("2022-11-07T16:20:07.000000Z") + .startsAt("2023-08-23T20:13:43.000000Z") + .name("2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -691,6 +800,105 @@ void test16() throws ConnectionError, ProcessingError { } @Test void test17() throws ConnectionError, ProcessingError { + JsonObject items = new JsonObject(); + items.addProperty("from", "12:00"); + items.addProperty("to", "23:59"); + JsonObject items2 = new JsonObject(); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); + JsonObject items3 = new JsonObject(); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); + JsonObject items4 = new JsonObject(); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); + JsonObject items5 = new JsonObject(); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); + JsonObject items6 = new JsonObject(); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); + JsonObject items7 = new JsonObject(); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); + JsonObject items8 = new JsonObject(); + items8.addProperty("point_amount", 5); + items8.addProperty("point_amount_unit", "percent"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); + JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); + JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); + JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("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 UpdateCampaign( + "65db6dd7-9052-465e-8da7-eb49014a9c1d" + ) + .applicableShopIds(new String[]{"83e7edcc-a993-4d27-a193-e4c5dcec5439"}) + .minimumNumberOfProducts(6832) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5}) + .applicableDaysOfWeek(new Integer[]{0,0,5,2,4,3,2,1}) + .blacklistedProductRules(new Object[]{items6,items7}) + .productBasedPointRules(new Object[]{items8,items9,items10,items11}) + .amountBasedPointRules(new Object[]{items12,items13,items14,items15}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(6086) + .pointExpiresAt("2022-11-07T18:23:12.000000Z") + .status("enabled") + .description("CQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5") + .event("external-transaction") + .priority(8266) + .endsAt("2023-09-24T22:50:04.000000Z") + .startsAt("2022-05-27T12:22:24.000000Z") + .name("YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3Lb"); + 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"); @@ -719,8 +927,8 @@ void test17() throws ConnectionError, ProcessingError { items9.addProperty("from", "12:00"); items9.addProperty("to", "23:59"); 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"); @@ -731,17 +939,11 @@ 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("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"); @@ -751,98 +953,35 @@ void test17() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); - 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); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"19d1647b-ebd5-4d38-8e76-2ae67165ef7e","087097ad-1654-447e-8150-50e768378ea5","4c662b03-c8da-41d1-9d25-c092b6723f1b","191baaef-c3de-41aa-87c7-3ca684b65158","88781984-43ab-444c-a5dc-4fbaf39c77db"}) - .minimumNumberOfProducts(3555) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) - .applicableDaysOfWeek(new Integer[]{0,4,5,5,6,4,6,2,2}) - .blacklistedProductRules(new Object[]{items11,items12,items13}) - .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20}) - .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27,items28,items29,items30}) + .applicableShopIds(new String[]{"6152c77b-8acb-45b6-aad6-c87515876034"}) + .minimumNumberOfAmount(2336) + .minimumNumberOfProducts(4083) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .applicableDaysOfWeek(new Integer[]{0,4,1,3,4,6}) + .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15}) + .productBasedPointRules(new Object[]{items16}) + .amountBasedPointRules(new Object[]{items17,items18}) .subject("all") .setExclusive(false) - .pointExpiresInDays(7051) - .pointExpiresAt("2023-09-27T07:08:06.000000Z") - .status("disabled") - .description("W") + .pointExpiresInDays(7702) + .pointExpiresAt("2020-04-03T08:14:08.000000Z") + .status("enabled") + .description("VXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ2") .event("topup") - .priority(9103) - .endsAt("2020-12-09T22:09:02.000000Z") - .startsAt("2021-09-03T10:28:08.000000Z") - .name("gkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSk"); + .priority(5900) + .endsAt("2020-10-16T17:39:18.000000Z") + .startsAt("2021-06-12T18:17:39.000000Z") + .name("mVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYY"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -855,16 +994,16 @@ void test17() throws ConnectionError, ProcessingError { } } @Test - void test18() throws ConnectionError, ProcessingError { + void test19() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("from", "12:00"); - items2.addProperty("to", "23:59"); + items2.addProperty("product_code", "4912345678904"); + items2.addProperty("classification_code", "c123"); JsonObject items3 = new JsonObject(); - items3.addProperty("from", "12:00"); - items3.addProperty("to", "23:59"); + items3.addProperty("product_code", "4912345678904"); + items3.addProperty("classification_code", "c123"); JsonObject items4 = new JsonObject(); items4.addProperty("product_code", "4912345678904"); items4.addProperty("classification_code", "c123"); @@ -875,17 +1014,11 @@ void test18() throws ConnectionError, ProcessingError { items6.addProperty("product_code", "4912345678904"); items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); @@ -926,28 +1059,54 @@ void test18() throws ConnectionError, ProcessingError { items15.addProperty("point_amount_unit", "percent"); items15.addProperty("subject_more_than_or_equal", 1000); items15.addProperty("subject_less_than", 5000); - Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" - ) - .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("k8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2") - .event("payment") - .priority(6282) - .endsAt("2021-11-17T13:16:21.000000Z") - .startsAt("2022-04-03T18:49:21.000000Z") - .name("ISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNe"); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("subject_more_than_or_equal", 1000); + items19.addProperty("subject_less_than", 5000); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); + Request request = new UpdateCampaign( + "65db6dd7-9052-465e-8da7-eb49014a9c1d" + ) + .applicableShopIds(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"}) + .minimumNumberForCombinationPurchase(6190) + .minimumNumberOfAmount(5067) + .minimumNumberOfProducts(8730) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{6,0,5,6,2,1,5,5,5,3}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13}) + .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20}) + .subject("money") + .setExclusive(false) + .pointExpiresInDays(6593) + .pointExpiresAt("2022-03-09T02:00:09.000000Z") + .status("enabled") + .description("9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHi") + .event("topup") + .priority(5478) + .endsAt("2022-06-25T04:52:04.000000Z") + .startsAt("2021-02-01T08:09:55.000000Z") + .name("uuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmm"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -960,7 +1119,7 @@ void test18() throws ConnectionError, ProcessingError { } } @Test - void test19() throws ConnectionError, ProcessingError { + void test20() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -977,8 +1136,8 @@ void test19() throws ConnectionError, ProcessingError { items5.addProperty("from", "12:00"); items5.addProperty("to", "23:59"); JsonObject items6 = new JsonObject(); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); items7.addProperty("product_code", "4912345678904"); items7.addProperty("classification_code", "c123"); @@ -986,57 +1145,103 @@ void test19() throws ConnectionError, ProcessingError { items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); + items10.addProperty("point_amount", 5); + items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); + items11.addProperty("point_amount", 5); + items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("classification_code", "c123"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("classification_code", "c123"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); items15.addProperty("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); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .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") + .applicableShopIds(new String[]{"dec35238-cd68-4d77-a4f1-d9f8b3f6d635","87a3929e-79bd-4e78-b788-5ce657b71a1a","6969de51-2409-4b20-a5da-e3981f25f55e","b0743a47-ff06-4fd0-aae0-f706fd7d4c4d","0811ef2d-ec58-4ac6-ba96-d2ef0b6becc0","9a2eec36-dadf-4f9f-88ef-a8c95888a11e","9d339e8f-45f6-435a-9d97-e9abcc3cdc40","8f93e0c7-189b-4091-b85b-8d5579876d2d","b14bc3a7-ef97-4c5e-8a14-3241789fd72b"}) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(998) + .minimumNumberOfAmount(2396) + .minimumNumberOfProducts(9220) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) + .applicableDaysOfWeek(new Integer[]{1,0,5,3,6,0,1,6,2,6}) + .blacklistedProductRules(new Object[]{items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11,items12}) + .amountBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19,items20,items21,items22}) + .subject("all") .setExclusive(false) - .pointExpiresInDays(2474) - .pointExpiresAt("2024-02-17T17:44:31.000000Z") + .pointExpiresInDays(2599) + .pointExpiresAt("2024-01-16T03:56:16.000000Z") .status("disabled") - .description("kSjhKrHXePF1aNsQcGEPe") - .event("external-transaction") - .priority(2179) - .endsAt("2021-03-25T18:53:17.000000Z") - .startsAt("2021-03-20T20:56:39.000000Z") - .name("2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3Tb"); + .description("8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0") + .event("topup") + .priority(8397) + .endsAt("2023-07-16T17:37:41.000000Z") + .startsAt("2023-09-28T23:55:20.000000Z") + .name("BLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5S"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1049,7 +1254,7 @@ void test19() throws ConnectionError, ProcessingError { } } @Test - void test20() throws ConnectionError, ProcessingError { + void test21() throws ConnectionError, ProcessingError { JsonObject items = new JsonObject(); items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); @@ -1081,23 +1286,14 @@ 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("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); @@ -1119,28 +1315,33 @@ void test20() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("subject_more_than_or_equal", 1000); - items17.addProperty("subject_less_than", 5000); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("subject_more_than_or_equal", 1000); - items18.addProperty("subject_less_than", 5000); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - 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"); @@ -1151,30 +1352,56 @@ void test20() throws ConnectionError, ProcessingError { items23.addProperty("point_amount_unit", "percent"); items23.addProperty("subject_more_than_or_equal", 1000); items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); + JsonObject items26 = new JsonObject(); + items26.addProperty("point_amount", 5); + items26.addProperty("point_amount_unit", "percent"); + items26.addProperty("subject_more_than_or_equal", 1000); + items26.addProperty("subject_less_than", 5000); + JsonObject items27 = new JsonObject(); + items27.addProperty("point_amount", 5); + items27.addProperty("point_amount_unit", "percent"); + items27.addProperty("subject_more_than_or_equal", 1000); + items27.addProperty("subject_less_than", 5000); + JsonObject items28 = new JsonObject(); + items28.addProperty("point_amount", 5); + items28.addProperty("point_amount_unit", "percent"); + items28.addProperty("subject_more_than_or_equal", 1000); + items28.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"bd452a4a-a4dc-4f4e-89ba-cf32576de231","a22149e1-feb8-47e8-915a-267408c21dfc","977b3b6d-e535-492b-8273-8f5fd2ef37ef","2ecfa17d-cbb8-404d-9aa4-ec2cae65e87a"}) + .applicableShopIds(new String[]{"6be92bd8-15df-45be-8ef1-7ae949f081f0","0db6ac89-72ff-43a1-9093-62a3271d365d","f398069c-04cb-438d-bc09-09115e91ea1e","39b3b40a-2fd6-4803-b3ae-4524c419e6db","55dc8dc9-77c9-4955-aad6-2b1a2e7c4ed9","eea2511f-2a80-4693-b85d-e833a1184cda","549483e9-0728-4823-9d15-224d9cb6d782","e58b8256-4f89-432e-bdd0-89961b182fda","27ca5845-569d-45a9-b12b-33e0a92e4d10","32df8629-49af-428d-aa07-01b0878b9e78"}) + .maxPointAmount(5096) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(7169) - .minimumNumberOfAmount(8480) - .minimumNumberOfProducts(3386) + .minimumNumberForCombinationPurchase(1276) + .minimumNumberOfAmount(4523) + .minimumNumberOfProducts(8296) .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) - .applicableDaysOfWeek(new Integer[]{4,3,6,5,0,4,1,6}) - .blacklistedProductRules(new Object[]{items7,items8,items9,items10}) - .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16}) - .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23}) + .applicableDaysOfWeek(new Integer[]{2,4,4,1,6,0}) + .blacklistedProductRules(new Object[]{items7,items8,items9,items10,items11,items12,items13}) + .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20,items21}) + .amountBasedPointRules(new Object[]{items22,items23,items24,items25,items26,items27,items28}) .subject("all") .setExclusive(false) - .pointExpiresInDays(933) - .pointExpiresAt("2021-10-23T00:17:29.000000Z") - .status("enabled") - .description("hdalQqRPyTvG2tPeRbQcNODGa3Iheb") - .event("payment") - .priority(6052) - .endsAt("2020-05-02T03:16:50.000000Z") - .startsAt("2023-01-31T02:06:10.000000Z") - .name("xi8kuGoSk8mm"); + .pointExpiresInDays(5666) + .pointExpiresAt("2024-10-27T20:09:43.000000Z") + .status("disabled") + .description("oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8") + .event("topup") + .priority(2564) + .endsAt("2021-01-17T02:16:48.000000Z") + .startsAt("2020-05-09T10:20:53.000000Z") + .name("bqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemY"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1187,22 +1414,25 @@ void test20() throws ConnectionError, ProcessingError { } } @Test - void test21() throws ConnectionError, ProcessingError { + 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"); + 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"); 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"); @@ -1218,137 +1448,81 @@ void test21() throws ConnectionError, ProcessingError { JsonObject items8 = new JsonObject(); items8.addProperty("point_amount", 5); items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("is_multiply_by_count", true); + items8.addProperty("required_count", 2); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); - items9.addProperty("subject_more_than_or_equal", 1000); - items9.addProperty("subject_less_than", 5000); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); - items10.addProperty("subject_more_than_or_equal", 1000); - items10.addProperty("subject_less_than", 5000); + items10.addProperty("product_code", "4912345678904"); + items10.addProperty("is_multiply_by_count", true); + items10.addProperty("required_count", 2); JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); + JsonObject items12 = new JsonObject(); + items12.addProperty("point_amount", 5); + items12.addProperty("point_amount_unit", "percent"); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); + JsonObject items13 = new JsonObject(); + items13.addProperty("point_amount", 5); + items13.addProperty("point_amount_unit", "percent"); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); + JsonObject items16 = new JsonObject(); + items16.addProperty("point_amount", 5); + items16.addProperty("point_amount_unit", "percent"); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .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) + .applicableShopIds(new String[]{"55a937f3-a4d7-4323-bdd6-bf0e9cb656d1","0145dec1-b6e1-4130-83db-608090dd7614","11cfbbd3-e42c-4e13-b9cf-9395667146af","6f59a6d7-9210-4145-8160-827cdcf116f1"}) + .maxTotalPointAmount(2050) + .maxPointAmount(8462) .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") + .minimumNumberForCombinationPurchase(1681) + .minimumNumberOfAmount(4561) + .minimumNumberOfProducts(3355) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{0,1,0,3,2,0,1,0}) + .blacklistedProductRules(new Object[]{items4}) + .productBasedPointRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13,items14}) + .amountBasedPointRules(new Object[]{items15,items16}) + .subject("all") .setExclusive(false) - .pointExpiresInDays(1367) - .pointExpiresAt("2023-06-12T23:49:59.000000Z") + .pointExpiresInDays(1166) + .pointExpiresAt("2021-07-23T23:13:09.000000Z") .status("disabled") - .description("vsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DM") + .description("D8THD4dpuhxNvhxjP") .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("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); - Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" - ) - .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(8401) - .minimumNumberOfAmount(9108) - .minimumNumberOfProducts(7700) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{6,1,4}) - .blacklistedProductRules(new Object[]{items2,items3,items4,items5}) - .productBasedPointRules(new Object[]{items6,items7,items8,items9,items10}) - .amountBasedPointRules(new Object[]{items11}) - .subject("all") - .setExclusive(true) - .pointExpiresInDays(2656) - .pointExpiresAt("2020-03-09T16:28:30.000000Z") - .status("disabled") - .description("rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQo") - .event("payment") - .priority(1355) - .endsAt("2022-03-07T14:25:07.000000Z") - .startsAt("2021-11-08T00:38:06.000000Z") - .name("Wzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnN"); + .priority(9956) + .endsAt("2020-04-02T02:31:23.000000Z") + .startsAt("2022-08-10T08:57:53.000000Z") + .name("CM"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1369,11 +1543,11 @@ void test23() 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("product_code", "4912345678904"); items4.addProperty("classification_code", "c123"); @@ -1390,8 +1564,11 @@ void test23() throws ConnectionError, ProcessingError { items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); + items9.addProperty("point_amount", 5); + items9.addProperty("point_amount_unit", "percent"); items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("is_multiply_by_count", true); + items9.addProperty("required_count", 2); JsonObject items10 = new JsonObject(); items10.addProperty("point_amount", 5); items10.addProperty("point_amount_unit", "percent"); @@ -1407,79 +1584,35 @@ void test23() throws ConnectionError, ProcessingError { JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); - 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); + items12.addProperty("subject_more_than_or_equal", 1000); + items12.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"548de50d-4dd0-481b-b954-6a98ef7f3761","414931f3-20a7-4cf1-b149-cc2caa3f61c6","e94e7191-01e5-4e78-8af8-9919c1e50648","aa68976f-2da4-46cf-bd73-a7147a409559","5ab17d17-8533-4ad8-932f-a7ed13f41ce6","8b3fff53-088f-412b-834d-e0cddb9a8ddb","33cdbec0-a8c9-4d07-b0dc-35059caf39e8","6a024150-328a-49fb-bc49-f9cf0c989163"}) + .applicableShopIds(new String[]{"dc71cb03-9faa-495b-89f0-4ba68300420d","66de783a-2ac7-4253-974f-f19fd97c015e","636d7468-00d6-463b-b736-5eb410bed174","e26e5e4b-5454-483b-bc3b-3439765ea76f","90300948-873d-402f-bc67-586a9d883fbd","94abb520-c8fd-476e-906e-62e500c3b335","eef88786-e431-4259-9a21-984f9ed560d5"}) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(1905) - .maxPointAmount(6824) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(1909) - .minimumNumberOfAmount(1160) - .minimumNumberOfProducts(8172) - .applicableTimeRanges(new Object[]{items,items2,items3}) - .applicableDaysOfWeek(new Integer[]{5,3,6,6,6,0,6,5,1}) - .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8,items9}) - .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15}) - .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(3296) - .pointExpiresAt("2020-09-13T21:12:42.000000Z") - .status("disabled") - .description("epcLNjePvmbsJ6aAodX3l") - .event("external-transaction") - .priority(2387) - .endsAt("2023-10-18T12:31:22.000000Z") - .startsAt("2020-10-24T22:23:54.000000Z") - .name("TfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiB"); + .maxTotalPointAmount(6310) + .maxPointAmount(7163) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(5106) + .minimumNumberOfAmount(2485) + .minimumNumberOfProducts(5713) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{3,5,0}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11}) + .amountBasedPointRules(new Object[]{items12}) + .subject("all") + .setExclusive(false) + .pointExpiresInDays(2187) + .pointExpiresAt("2021-01-02T12:41:24.000000Z") + .status("enabled") + .description("C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIv") + .event("payment") + .priority(5758) + .endsAt("2020-03-19T11:40:52.000000Z") + .startsAt("2021-04-16T05:15:38.000000Z") + .name("YzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g3"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1509,8 +1642,8 @@ void test24() 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("product_code", "4912345678904"); items5.addProperty("classification_code", "c123"); @@ -1518,17 +1651,11 @@ void test24() throws ConnectionError, ProcessingError { items6.addProperty("product_code", "4912345678904"); items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); @@ -1544,86 +1671,46 @@ void test24() 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"); - 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("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); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"fe324792-ddfe-466e-95fd-8c2c05c73622","a60dbc42-604c-469d-817d-e056cf36cb2f","5a0d7700-11b9-458f-b725-fdbe5209707e","59d32859-b0e6-40f4-8b29-cf54fb00a9be","d8200119-694d-43f0-88e8-78936ced7ea8","62f9d31d-4857-43de-8dd5-fbcb5a541abc","54ca7a33-7d99-411d-bcc0-53dc97515b91","3a58a4a3-0f0f-4b5e-9bae-03d33b971019","5b5e1a3e-c79a-490a-93c3-8e0cc560226d"}) + .applicableShopIds(new String[]{"abc8607c-bd48-4570-871f-5252f4b301cc","1d787d14-0209-4a83-951a-61f44c50af9f"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(2112) - .maxPointAmount(7523) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(5593) - .minimumNumberOfAmount(2306) - .minimumNumberOfProducts(2160) - .applicableTimeRanges(new Object[]{items,items2,items3,items4}) - .applicableDaysOfWeek(new Integer[]{4,2,3}) - .blacklistedProductRules(new Object[]{items5,items6}) - .productBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14,items15}) - .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20}) + .maxTotalPointAmount(9323) + .maxPointAmount(1998) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(2059) + .minimumNumberOfAmount(7656) + .minimumNumberOfProducts(4098) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{1,6,5,4,5}) + .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8}) + .productBasedPointRules(new Object[]{items9,items10}) + .amountBasedPointRules(new Object[]{items11,items12,items13}) .subject("money") .setExclusive(false) - .pointExpiresInDays(5043) - .pointExpiresAt("2024-04-08T07:42:21.000000Z") + .pointExpiresInDays(1239) + .pointExpiresAt("2023-01-07T06:55:29.000000Z") .status("enabled") - .description("HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJ") - .event("payment") - .priority(4953) - .endsAt("2022-10-28T17:56:15.000000Z") - .startsAt("2022-09-07T01:00:52.000000Z") - .name("zM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gU"); + .description("5HyW6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslN") + .event("external-transaction") + .priority(4412) + .endsAt("2023-05-20T22:36:55.000000Z") + .startsAt("2021-08-24T12:09:41.000000Z") + .name("aOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1662,17 +1749,17 @@ void test25() throws ConnectionError, ProcessingError { items6.addProperty("from", "12:00"); items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); JsonObject items9 = new JsonObject(); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + 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"); @@ -1715,89 +1802,42 @@ void test25() 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); - 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); + items20.addProperty("subject_more_than_or_equal", 1000); + items20.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .applicableShopIds(new String[]{"515ecff8-201a-4a38-af3f-66c8f04c1cd5","29cad8a1-88df-4c22-83f7-23b9d74b818b","3067ab19-5bc9-43ae-841d-99d55cbf7e24","eee0f438-f3e0-412d-9f90-a4a8203c5b76","e395a2b5-2f81-4c9e-b489-dfe537f3b684","5d15713c-d895-4862-abb7-f7b2fcbdcee2","d0e1e5ad-2b16-415b-aef1-bc35b4203ed6","470b7b7f-bd31-4523-bfd0-aa3d1c8ddfae","6dd96f59-7c75-4a20-b913-1a40ca9b00ad"}) - .budgetCapsAmount(1384174614) + .applicableShopIds(new String[]{"69c94ac1-9ed6-43cb-9775-1d4b9eba6bd2","fdebc21e-46c3-46b5-86cc-179fb6584641","1e3b5ec9-e9d2-4f24-9aa2-c40288344604","3c4dcf05-3326-43ad-bd69-b71703604506"}) + .budgetCapsAmount(1424881480) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(8658) - .maxPointAmount(8307) + .maxTotalPointAmount(3736) + .maxPointAmount(8414) .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(4908) - .pointExpiresAt("2022-10-17T13:31:06.000000Z") - .status("enabled") - .description("YeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6") + .minimumNumberForCombinationPurchase(6732) + .minimumNumberOfAmount(135) + .minimumNumberOfProducts(9462) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{0,3,5,3,3,4,4,6,2,6}) + .blacklistedProductRules(new Object[]{items11,items12,items13}) + .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18}) + .amountBasedPointRules(new Object[]{items19,items20}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(3780) + .pointExpiresAt("2023-01-20T16:15:28.000000Z") + .status("disabled") + .description("AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9TezTj3A085y5hWQ3g") .event("topup") - .priority(4147) - .endsAt("2020-02-27T14:07:49.000000Z") - .startsAt("2024-08-22T02:39:45.000000Z") - .name("adi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQ"); + .priority(4068) + .endsAt("2021-01-26T23:28:28.000000Z") + .startsAt("2021-05-08T17:33:03.000000Z") + .name("FExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8X"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1812,9 +1852,9 @@ void test25() throws ConnectionError, ProcessingError { @Test void test26() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"33c1f10d-7f75-4dd3-885f-3ce0dd9e03d8","08e97924-828f-43db-a054-d60169b5be6d","5c36650e-200b-4f45-9304-9e52ab9800fd"}); + .blacklistedShopIds(new String[]{"8bfbd67e-4897-4b42-a46c-f76fddcbb20c","2de184fd-db48-475b-bbee-7460420008b7","0afc93ee-d155-4784-8d80-db94f9ed3dbe","1d822437-146c-43fd-9616-95b9fffe3733","7df494b4-d7e2-4950-ae23-2a4d3c97d29c"}); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1829,10 +1869,10 @@ void test26() throws ConnectionError, ProcessingError { @Test void test27() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"27bedd27-eac5-4d31-9d59-071be2186919","cee2ccd6-0db9-44bd-a5e2-343ffaf5856e","2a08cbd5-e4fb-4307-adc2-c3dfedacf0f0","54fdafc0-effa-4044-b7e4-ba398d86a09d","1db3d69d-0544-4f73-87ee-0e1eeecf054f","eb8785be-dff6-4200-9074-7c5a7194334f"}) - .name("Q7wRQgMzlEQYhb78oA0LE9nGzsoBI"); + .blacklistedShopIds(new String[]{"5fa2b97e-8ebc-4a81-91b7-25c493474849","e3ee5c18-4977-4846-805f-8d8f9da77e8a","911cb5fe-582d-40a2-8dd8-f115be9949c7","bb303ea1-d775-4ed0-8bc3-0708f31c6472","7468e36d-7364-4dd5-a93b-d0c469c689db","a6c4e078-3906-409a-abdd-a42de794a7cb","60cfdee7-188b-41e7-8446-2195539a8aa5","aac3a6a5-3b0f-4de6-868d-17955e0b5f91"}) + .name("OJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWSc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1847,11 +1887,11 @@ void test27() throws ConnectionError, ProcessingError { @Test void test28() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"181b2253-cf2e-4bbe-835a-347dcc32fa82","e7c3d7c5-35ee-4726-9090-186312946d43"}) - .startsAt("2021-10-14T04:55:45.000000Z") - .name("jIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2"); + .blacklistedShopIds(new String[]{"613c11c1-80f7-4fc6-9bf4-d2759ece8662","920edbc4-7c9d-48d5-9713-efedde83bb9b"}) + .startsAt("2021-12-01T13:42:23.000000Z") + .name("mMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGF"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1866,12 +1906,12 @@ void test28() throws ConnectionError, ProcessingError { @Test void test29() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"e8a11a2f-1048-45bc-baa1-4406603cd51c","15f675e2-e918-428a-8eb0-750f38ecf587","03b5052a-7c8a-490e-828c-4af6479316b5","4c092bb1-a14a-4711-8ee5-f5bcd23e2278","df8df297-79f8-4632-b0c2-77dbc207d885","eae38c1e-ceec-452f-a328-2a23e0032aff","0153f85c-f810-426f-a264-106cdbb0282f","f623f5d4-31d9-4d9c-859f-f5365b4c03a8","eb26b65c-e06e-4eb3-8ce2-bde06152c77b","1a218acb-25b6-402a-9675-603451d0091f"}) - .endsAt("2023-04-27T05:38:53.000000Z") - .startsAt("2022-12-12T16:20:04.000000Z") - .name("hE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYY"); + .blacklistedShopIds(new String[]{"e4e79063-a22c-4b0d-89d4-bb15a157f86a","18449243-59fd-48c8-89aa-e71363596398","2b2abd88-4385-44fc-926b-a68eb1fb31b6","15931b8c-89c5-400d-9d4f-0a4b250b7b03","8158c193-1e27-439f-8459-6b092ef5ba8d","9185eb27-88c4-4280-a623-480532ff0ce8"}) + .endsAt("2023-02-01T06:20:39.000000Z") + .startsAt("2020-03-11T05:08:25.000000Z") + .name("YBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrc"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1886,13 +1926,13 @@ void test29() throws ConnectionError, ProcessingError { @Test void test30() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"6a20dea8-0563-44e7-90d0-6f898775279a","85b93efc-54ae-4584-8b20-59b3a6b5d8ae","9aa204c4-ada3-41a7-a386-92682567dc82","c0bedbfc-d38b-43f1-9da9-ede9cc68e11c","1b6c7a6b-fe8b-4935-8336-dd20c6a706b2","f0fb8bee-5551-41a3-9a1c-394a37da290d","d7654ca5-47c0-4137-a6c0-523d03fc655f"}) - .priority(6189) - .endsAt("2024-08-05T02:11:22.000000Z") - .startsAt("2020-12-12T23:58:18.000000Z") - .name("N9nEMDfH9ZULXMKOjFu2fGiSho"); + .blacklistedShopIds(new String[]{"014218ec-85a8-4a32-9f45-3ed6e444bb47","9f7bf92a-99f4-474a-9632-c5ce217c9d5f","c6317823-a774-4563-95e5-78c092b84e39","b8d2c783-9c9b-4149-a1a7-bbf117fd0e8f","dae4ade9-d0d6-48da-b5ae-9e5f95f438ed","601fc68d-b09e-4f3f-b523-dfe527be9813","c51dc8f9-df10-4cde-bead-abe5783e8a8f"}) + .priority(1240) + .endsAt("2022-02-14T06:33:48.000000Z") + .startsAt("2021-04-06T01:48:55.000000Z") + .name("KtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnv"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1907,14 +1947,14 @@ void test30() throws ConnectionError, ProcessingError { @Test void test31() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .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"}) + .blacklistedShopIds(new String[]{"b172f15f-7032-4434-a513-2aa96f0ab3eb","05415e6e-b70f-4414-a43f-0bfd8417a589","e0197b53-bf45-4887-8f9d-5af50660607d"}) .event("topup") - .priority(9851) - .endsAt("2021-04-29T23:37:40.000000Z") - .startsAt("2021-11-27T22:03:32.000000Z") - .name("G1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJA"); + .priority(4899) + .endsAt("2024-05-15T05:55:54.000000Z") + .startsAt("2021-11-06T17:27:45.000000Z") + .name("Lz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSE"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1929,15 +1969,15 @@ void test31() throws ConnectionError, ProcessingError { @Test void test32() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"af463a41-c3e5-43a5-9bc8-ed65ba62777f","e8966403-d3d5-4279-a711-44b7e449b1b8","64c9a465-b6c3-4bde-b071-007788120abf","1f103666-1a62-4256-a123-bf89e980c6c7","b5a11019-0a26-4d60-89ba-1b8460c38838"}) - .description("MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4") - .event("topup") - .priority(3174) - .endsAt("2023-12-19T09:00:52.000000Z") - .startsAt("2024-07-06T05:11:02.000000Z") - .name("0jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232"); + .blacklistedShopIds(new String[]{"9a9f5821-c8cd-4a4d-b6fb-f90787d05dff","613c4a8e-cbc4-402b-a34a-63ea0f5b79ae"}) + .description("AtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb5") + .event("payment") + .priority(3767) + .endsAt("2024-07-10T02:29:29.000000Z") + .startsAt("2023-08-15T02:02:11.000000Z") + .name("OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1952,16 +1992,16 @@ void test32() throws ConnectionError, ProcessingError { @Test void test33() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"6e2469a4-9222-4c20-ac8b-a615be48a1f6","5a8f2544-06fb-44c4-9050-278d2ff2a6f4","862e9622-c74d-4ff5-9ff3-7a5b4d0c97e5","f35f09ed-afb1-49ff-975c-f7d3296f11a6","cce9d081-bfd0-48cf-a4c1-746bd9245108","31f635ba-07aa-4c12-8757-e6de45c790cc","54ee4f43-c789-4048-be97-14dd068f309c","a7727268-3c82-4393-90ba-fc7f99a4e137","5efda571-9837-4d04-aa0e-15aa55ae8edb","af058ff9-8add-47ea-85ef-9138c61e580b"}) - .status("disabled") - .description("V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbD") - .event("payment") - .priority(374) - .endsAt("2022-11-05T16:15:07.000000Z") - .startsAt("2024-08-06T07:29:13.000000Z") - .name("Sa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1"); + .blacklistedShopIds(new String[]{"c2f6863a-5a5c-43ba-a1f6-ded3b369b0b6"}) + .status("enabled") + .description("JUWIFuWHifSCeHqDX4OovF1kPsfFAfUD6hedBMnO5c5siB") + .event("external-transaction") + .priority(4584) + .endsAt("2020-07-11T17:45:01.000000Z") + .startsAt("2020-11-09T15:22:56.000000Z") + .name("0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0kXmsTMdugDsmRtGnF7L4kFCWrbFqt27c2GHcIyayD2"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -1976,17 +2016,17 @@ void test33() throws ConnectionError, ProcessingError { @Test void test34() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"171644c7-d45d-4b16-b2bf-bba97acd78ed","c5f319c7-ba05-4e55-b9a1-fd265fdaf59f","d6c398d9-90e5-4544-9902-f5c824e323b5","1f3b4a7c-76d4-45f9-bc0d-fb40a14c1b3e","9a5a2bf3-3dea-4afa-ba8e-3ce052bad5b5","25fbcb25-8a01-4ff6-88df-1d024fa5d634","3e7fd694-9848-4906-97b6-2a6575f680f1","93c8c2eb-d8d3-4c6b-8500-6c9fa201d212","a1ed030c-b2ee-4783-889b-64ea7547b52f"}) - .pointExpiresAt("2022-02-17T16:54:47.000000Z") + .blacklistedShopIds(new String[]{"b9f2e24b-65ea-4858-8eb0-1d0669c6aece","4097ab42-5cd7-47f9-9ede-1de06a63e2d4"}) + .pointExpiresAt("2023-02-03T01:09:48.000000Z") .status("disabled") - .description("aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpS") - .event("payment") - .priority(4689) - .endsAt("2023-05-25T06:25:42.000000Z") - .startsAt("2023-09-05T23:10:15.000000Z") - .name("Lu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7Oo"); + .description("0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsMYGbxzOIV2r2JtDEGxgzX90xQ1qEw") + .event("topup") + .priority(4974) + .endsAt("2022-10-02T01:35:38.000000Z") + .startsAt("2021-09-10T02:17:08.000000Z") + .name("zBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0XdBqv"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2001,18 +2041,18 @@ void test34() throws ConnectionError, ProcessingError { @Test void test35() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .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") + .blacklistedShopIds(new String[]{"ada9194c-f55a-4171-9320-8a6274feb294","a77a5fb1-b4c3-4798-b2b9-1b47a141be05","95a43992-6781-4976-a8ca-d1aac5d26084"}) + .pointExpiresInDays(4018) + .pointExpiresAt("2022-06-05T02:13:10.000000Z") + .status("enabled") + .description("Vnb04lQy4ktenk93ttYPJhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoT") .event("external-transaction") - .priority(3221) - .endsAt("2024-04-25T18:39:26.000000Z") - .startsAt("2020-02-18T13:31:47.000000Z") - .name("XCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWS"); + .priority(6086) + .endsAt("2024-03-02T18:02:57.000000Z") + .startsAt("2021-07-06T00:56:40.000000Z") + .name("IPsIBBDhi4oQ1t1s3zE32Vk24Ceen1NSjytDUp3byZcF"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2027,19 +2067,19 @@ void test35() throws ConnectionError, ProcessingError { @Test void test36() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"ac893094-547e-4b36-8184-1c8b91f3c8ed"}) - .setExclusive(false) - .pointExpiresInDays(6452) - .pointExpiresAt("2021-12-27T15:21:00.000000Z") + .blacklistedShopIds(new String[]{"8453a945-f060-4450-ae49-67c428d0b1d6","68d0b379-bc27-4ddb-bfc5-d22c43c12985","689154aa-89ea-4cf3-b178-638157cad2c9","f5ed8656-af0c-407b-811d-cd28d29a045d","64b583c7-25b7-4e50-937b-bf1c65c8af88","0ba3221a-9d22-43bf-8a61-3f58d57c6786"}) + .setExclusive(true) + .pointExpiresInDays(6702) + .pointExpiresAt("2022-02-09T01:06:53.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"); + .description("PvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmp") + .event("external-transaction") + .priority(9699) + .endsAt("2023-03-17T03:58:49.000000Z") + .startsAt("2021-08-10T23:12:56.000000Z") + .name("X4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPSNst44xBM1tMMoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR3LjzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2054,20 +2094,20 @@ void test36() throws ConnectionError, ProcessingError { @Test void test37() throws ConnectionError, ProcessingError { Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"8a0367ee-3e46-4264-a357-3768b1925904","a361c0d3-0f64-4a3c-9197-9b7cbc7bb824","8c379061-034a-4c5e-a6ca-fbb64fa7f90a"}) - .subject("money") + .blacklistedShopIds(new String[]{"752281c8-9dd6-42e6-bb75-58ed65b4b8ca","acd65272-086b-4e86-a12a-e23ab44bf678","fdd201c1-dc97-42b1-9f97-aa0df1d3c9a8","d9e5b197-2d3a-4ed2-bc20-15c2c7168868"}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(305) - .pointExpiresAt("2024-01-06T22:44:45.000000Z") - .status("disabled") - .description("2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67y") + .pointExpiresInDays(3208) + .pointExpiresAt("2021-12-04T22:49:18.000000Z") + .status("enabled") + .description("n6T4UBYf7XzEp3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweA") .event("topup") - .priority(8998) - .endsAt("2020-03-20T09:11:34.000000Z") - .startsAt("2022-05-14T10:09:49.000000Z") - .name("xWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9Tez"); + .priority(4321) + .endsAt("2020-02-23T10:48:14.000000Z") + .startsAt("2020-04-16T13:21:30.000000Z") + .name("iLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkS"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2091,32 +2131,22 @@ void test38() throws ConnectionError, ProcessingError { items2.addProperty("point_amount_unit", "percent"); items2.addProperty("subject_more_than_or_equal", 1000); items2.addProperty("subject_less_than", 5000); - JsonObject items3 = new JsonObject(); - items3.addProperty("point_amount", 5); - items3.addProperty("point_amount_unit", "percent"); - items3.addProperty("subject_more_than_or_equal", 1000); - items3.addProperty("subject_less_than", 5000); - JsonObject items4 = new JsonObject(); - items4.addProperty("point_amount", 5); - items4.addProperty("point_amount_unit", "percent"); - items4.addProperty("subject_more_than_or_equal", 1000); - items4.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"26f30113-6213-4ea7-aca1-958505591023","2659686a-b006-4e33-81be-29161e31edb0","f02ead1f-89b8-40b5-b92e-68942ebfbdc0","d598b035-aa8a-4008-a8de-f88033c0d90c","6f78321e-7303-4ad7-9105-6311fc68fba1"}) - .amountBasedPointRules(new Object[]{items,items2,items3,items4}) - .subject("all") + .blacklistedShopIds(new String[]{"91bb0345-1c8b-49fc-9437-403dd6cb534e","7e244304-7a0b-4a40-a513-d654127bc459","b818442a-a0e4-4ed0-b938-303d50eda01a","fd970dd5-206a-41dc-8059-8b985b76f015","6bad1f63-ab39-43cf-ac12-a522ece50d73","604e9b84-bd6c-4d04-a585-5851038030d1","7d6e1eda-69c9-4e8e-bf96-3cf1de340f37"}) + .amountBasedPointRules(new Object[]{items,items2}) + .subject("money") .setExclusive(true) - .pointExpiresInDays(8613) - .pointExpiresAt("2020-06-26T07:19:03.000000Z") - .status("enabled") - .description("OWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIsw") - .event("external-transaction") - .priority(6296) - .endsAt("2020-12-29T16:02:19.000000Z") - .startsAt("2023-11-23T10:23:05.000000Z") - .name("c2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpC"); + .pointExpiresInDays(7760) + .pointExpiresAt("2024-10-25T10:37:55.000000Z") + .status("disabled") + .description("czj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3P21") + .event("topup") + .priority(3578) + .endsAt("2022-05-14T20:08:05.000000Z") + .startsAt("2020-06-04T01:56:48.000000Z") + .name("x2jnlKrw0LdNS4VtkXCDrt0LJOE3Qgwr"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2145,27 +2175,23 @@ void test39() throws ConnectionError, ProcessingError { JsonObject items3 = new JsonObject(); items3.addProperty("point_amount", 5); items3.addProperty("point_amount_unit", "percent"); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("is_multiply_by_count", true); - items3.addProperty("required_count", 2); + items3.addProperty("subject_more_than_or_equal", 1000); + items3.addProperty("subject_less_than", 5000); JsonObject items4 = new JsonObject(); items4.addProperty("point_amount", 5); items4.addProperty("point_amount_unit", "percent"); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("is_multiply_by_count", true); - items4.addProperty("required_count", 2); + items4.addProperty("subject_more_than_or_equal", 1000); + items4.addProperty("subject_less_than", 5000); JsonObject items5 = new JsonObject(); items5.addProperty("point_amount", 5); items5.addProperty("point_amount_unit", "percent"); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("subject_more_than_or_equal", 1000); + items5.addProperty("subject_less_than", 5000); JsonObject items6 = new JsonObject(); items6.addProperty("point_amount", 5); items6.addProperty("point_amount_unit", "percent"); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("subject_more_than_or_equal", 1000); + items6.addProperty("subject_less_than", 5000); JsonObject items7 = new JsonObject(); items7.addProperty("point_amount", 5); items7.addProperty("point_amount_unit", "percent"); @@ -2196,28 +2222,23 @@ void test39() 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); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"4e04f3fb-8bbc-4767-8937-a79ea7e39423","759e2927-17e3-4e5f-9549-a4ed7e48e0be","2d8451a6-856a-452c-aa67-e70fb59b3163","00a2ff5c-d07b-4dbc-9008-7fed6e48a88f","f5f865eb-1607-4141-8515-f55ec0702cfd"}) - .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6}) - .amountBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13}) - .subject("all") - .setExclusive(false) - .pointExpiresInDays(9256) - .pointExpiresAt("2021-07-22T23:55:17.000000Z") - .status("disabled") - .description("jMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwF") - .event("external-transaction") - .priority(5903) - .endsAt("2021-08-01T00:18:14.000000Z") - .startsAt("2024-03-22T21:04:38.000000Z") - .name("cNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqK"); + .blacklistedShopIds(new String[]{"22085cc3-465f-4f8c-9d63-cbf372f51b81","9b749dfa-a4e8-4281-83e6-d9487bf6ab30","d518c9b9-c3ab-423d-ab14-69bcfb82e70f"}) + .productBasedPointRules(new Object[]{items,items2}) + .amountBasedPointRules(new Object[]{items3,items4,items5,items6,items7,items8,items9,items10,items11,items12}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(1872) + .pointExpiresAt("2022-10-15T05:09:08.000000Z") + .status("enabled") + .description("wPmvHXBFS5mnHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGpCQn8B7l65BYMvNkhEwbRq7C0zj85JoESc") + .event("topup") + .priority(9148) + .endsAt("2021-08-13T06:32:53.000000Z") + .startsAt("2020-02-16T15:14:51.000000Z") + .name("xnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxVOS8aVOpiS1EeKe2EnvF9kW30yXFj5pEZQNOtIwcrR2Tap7t"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2244,23 +2265,14 @@ void test40() throws ConnectionError, ProcessingError { items4.addProperty("product_code", "4912345678904"); items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); 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"); @@ -2282,38 +2294,45 @@ void test40() throws ConnectionError, ProcessingError { JsonObject items11 = new JsonObject(); items11.addProperty("point_amount", 5); items11.addProperty("point_amount_unit", "percent"); - items11.addProperty("subject_more_than_or_equal", 1000); - items11.addProperty("subject_less_than", 5000); + items11.addProperty("product_code", "4912345678904"); + items11.addProperty("is_multiply_by_count", true); + items11.addProperty("required_count", 2); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); - items12.addProperty("subject_more_than_or_equal", 1000); - items12.addProperty("subject_less_than", 5000); + items12.addProperty("product_code", "4912345678904"); + items12.addProperty("is_multiply_by_count", true); + items12.addProperty("required_count", 2); JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("subject_more_than_or_equal", 1000); - items13.addProperty("subject_less_than", 5000); + items13.addProperty("product_code", "4912345678904"); + items13.addProperty("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - 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"); @@ -2325,23 +2344,23 @@ void test40() throws ConnectionError, ProcessingError { items19.addProperty("subject_more_than_or_equal", 1000); items19.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .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(3319) - .pointExpiresAt("2020-04-16T07:10:54.000000Z") + .blacklistedShopIds(new String[]{"f6a0697a-5c66-4cf1-b776-31bb7d5053bc","5e7eeb07-2e56-40bc-ac58-3d97e3d51863","555d029c-a7da-495a-9bd8-716b9a690a41","89a3206a-8759-4b02-a4d4-3ec5cc09ddcf","41bca8fe-76b6-497d-817e-e19c3fd00a35","f9a6ca18-6d8f-49df-86ce-ecdecb222a7c","ddaadb51-34f4-49c6-8ebb-98e03890154a","4ac0a1e1-ea3f-43d2-89d1-0d76f6732584","39b7816a-0e96-41ff-b52b-2cf98e696304"}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .productBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17}) + .amountBasedPointRules(new Object[]{items18,items19}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(1548) + .pointExpiresAt("2020-04-07T20:32:48.000000Z") .status("disabled") - .description("9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP") - .event("topup") - .priority(2707) - .endsAt("2021-04-02T02:58:31.000000Z") - .startsAt("2022-04-10T09:41:26.000000Z") - .name("srDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuC"); + .description("3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZG") + .event("external-transaction") + .priority(6429) + .endsAt("2020-01-03T09:25:30.000000Z") + .startsAt("2021-02-10T11:11:39.000000Z") + .name("rp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN6p0E72qWtOk3QUVbESEWPtcFyu37VMAkI2ylOPtFPfUfw5cNQlmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFrJK4NHPvl4Vh"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2374,35 +2393,66 @@ void test41() throws ConnectionError, ProcessingError { items6.addProperty("product_code", "4912345678904"); items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); - items8.addProperty("subject_more_than_or_equal", 1000); - items8.addProperty("subject_less_than", 5000); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); + JsonObject items9 = new JsonObject(); + items9.addProperty("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("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); + JsonObject items14 = new JsonObject(); + items14.addProperty("point_amount", 5); + items14.addProperty("point_amount_unit", "percent"); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"afa2926d-16b4-46f4-80cd-0e1afb8204b4","3050fda5-5af2-42d1-b73d-5298d71fe154","93ba6ccd-375d-48d7-8020-3d3ee2fd9216","6e700277-2e9e-4ddc-a5a3-a9adf71bff51","4be1a9d1-5f27-46be-a588-6c67f7c93741"}) - .applicableDaysOfWeek(new Integer[]{1,1,6,5,1,0,3}) - .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6}) - .productBasedPointRules(new Object[]{items7}) - .amountBasedPointRules(new Object[]{items8}) + .blacklistedShopIds(new String[]{"d147fa11-59cf-4c06-9164-9071a8767af9","d8a210cb-51c8-427c-a3c9-e04f5c46c621"}) + .applicableDaysOfWeek(new Integer[]{1}) + .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) + .productBasedPointRules(new Object[]{items10,items11,items12}) + .amountBasedPointRules(new Object[]{items13,items14,items15}) .subject("all") - .setExclusive(false) - .pointExpiresInDays(5093) - .pointExpiresAt("2021-04-20T22:14:33.000000Z") + .setExclusive(true) + .pointExpiresInDays(906) + .pointExpiresAt("2023-03-19T09:57:15.000000Z") .status("enabled") - .description("koAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz") + .description("ogj2mEAT9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbRE9tWUhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByW") .event("payment") - .priority(804) - .endsAt("2024-07-16T14:28:33.000000Z") - .startsAt("2024-02-13T17:21:15.000000Z") - .name("XV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHN"); + .priority(4913) + .endsAt("2023-01-09T07:38:48.000000Z") + .startsAt("2020-05-22T13:34:14.000000Z") + .name("iSMuTkME7Xo3gZLzoJUOW0"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2420,29 +2470,41 @@ void test42() 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("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"); @@ -2464,9 +2526,8 @@ void test42() throws ConnectionError, ProcessingError { JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); @@ -2508,25 +2569,25 @@ void test42() throws ConnectionError, ProcessingError { items21.addProperty("subject_more_than_or_equal", 1000); items21.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .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(true) - .pointExpiresInDays(2895) - .pointExpiresAt("2023-06-22T20:29:05.000000Z") - .status("enabled") - .description("Kg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4") + .blacklistedShopIds(new String[]{"2dc44658-3b02-4e66-8a94-168994ffacc7","f19bb0fd-5953-406b-83c0-542a463f6ea0","cc61729e-c8a4-41c2-b973-a2cde3c79a2f","191ce37b-3ac3-4b16-ac42-d11372068316","47cd69fc-0e93-4225-a17e-94461f924fea","36e5cdda-a7f4-4abd-9a1a-4cc22817991e"}) + .applicableTimeRanges(new Object[]{items}) + .applicableDaysOfWeek(new Integer[]{0,6,0,2,3,4,1,2,5,0}) + .blacklistedProductRules(new Object[]{items2,items3,items4,items5}) + .productBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12}) + .amountBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19,items20,items21}) + .subject("money") + .setExclusive(true) + .pointExpiresInDays(3044) + .pointExpiresAt("2020-06-20T02:04:18.000000Z") + .status("disabled") + .description("0Cr3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXonmfKJhNI2") .event("topup") - .priority(1391) - .endsAt("2021-02-08T05:24:06.000000Z") - .startsAt("2020-02-28T23:46:04.000000Z") - .name("F1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW6"); + .priority(8648) + .endsAt("2023-12-02T05:59:02.000000Z") + .startsAt("2022-10-04T04:29:49.000000Z") + .name("0SlKK1O1UKOiryeoJ2KHqioForPYYF"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2583,45 +2644,32 @@ void test43() throws ConnectionError, ProcessingError { items14.addProperty("product_code", "4912345678904"); items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("classification_code", "c123"); JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); + items16.addProperty("classification_code", "c123"); JsonObject items17 = new JsonObject(); - items17.addProperty("point_amount", 5); - items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("classification_code", "c123"); JsonObject items18 = new JsonObject(); - items18.addProperty("point_amount", 5); - items18.addProperty("point_amount_unit", "percent"); items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("classification_code", "c123"); JsonObject items19 = new JsonObject(); - items19.addProperty("point_amount", 5); - items19.addProperty("point_amount_unit", "percent"); items19.addProperty("product_code", "4912345678904"); - items19.addProperty("is_multiply_by_count", true); - items19.addProperty("required_count", 2); + items19.addProperty("classification_code", "c123"); 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"); @@ -2642,27 +2690,57 @@ void test43() throws ConnectionError, ProcessingError { items25.addProperty("point_amount_unit", "percent"); items25.addProperty("subject_more_than_or_equal", 1000); items25.addProperty("subject_less_than", 5000); + JsonObject items26 = new JsonObject(); + items26.addProperty("point_amount", 5); + items26.addProperty("point_amount_unit", "percent"); + items26.addProperty("subject_more_than_or_equal", 1000); + items26.addProperty("subject_less_than", 5000); + JsonObject items27 = new JsonObject(); + items27.addProperty("point_amount", 5); + items27.addProperty("point_amount_unit", "percent"); + items27.addProperty("subject_more_than_or_equal", 1000); + items27.addProperty("subject_less_than", 5000); + JsonObject items28 = new JsonObject(); + items28.addProperty("point_amount", 5); + items28.addProperty("point_amount_unit", "percent"); + items28.addProperty("subject_more_than_or_equal", 1000); + items28.addProperty("subject_less_than", 5000); + JsonObject items29 = new JsonObject(); + items29.addProperty("point_amount", 5); + items29.addProperty("point_amount_unit", "percent"); + items29.addProperty("subject_more_than_or_equal", 1000); + items29.addProperty("subject_less_than", 5000); + JsonObject items30 = new JsonObject(); + items30.addProperty("point_amount", 5); + items30.addProperty("point_amount_unit", "percent"); + items30.addProperty("subject_more_than_or_equal", 1000); + items30.addProperty("subject_less_than", 5000); + JsonObject items31 = new JsonObject(); + items31.addProperty("point_amount", 5); + items31.addProperty("point_amount_unit", "percent"); + items31.addProperty("subject_more_than_or_equal", 1000); + items31.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"15aaff14-cd8d-4936-90b3-b8c99b619a2c"}) - .minimumNumberOfProducts(6205) + .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"}) + .minimumNumberOfProducts(7787) .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .applicableDaysOfWeek(new Integer[]{2,0,1,3,1,0,5,3}) - .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14}) - .productBasedPointRules(new Object[]{items15,items16,items17,items18,items19}) - .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24,items25}) + .applicableDaysOfWeek(new Integer[]{5,2,5,3,6,6,2,2,4,6}) + .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18,items19}) + .productBasedPointRules(new Object[]{items20,items21}) + .amountBasedPointRules(new Object[]{items22,items23,items24,items25,items26,items27,items28,items29,items30,items31}) .subject("money") .setExclusive(true) - .pointExpiresInDays(4377) - .pointExpiresAt("2023-12-01T19:03:03.000000Z") - .status("enabled") - .description("smRtGnF7L4kFCWrbFqt27c2GHcIyayD2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsM") - .event("payment") - .priority(6343) - .endsAt("2022-12-02T04:36:47.000000Z") - .startsAt("2023-08-15T16:25:46.000000Z") - .name("bxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0Xd"); + .pointExpiresInDays(9315) + .pointExpiresAt("2022-08-06T03:24:46.000000Z") + .status("disabled") + .description("kXOVbuSOvVupSap8") + .event("topup") + .priority(1972) + .endsAt("2024-11-06T22:04:22.000000Z") + .startsAt("2021-04-11T20:51:41.000000Z") + .name("efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskF"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2683,20 +2761,20 @@ void test44() throws ConnectionError, ProcessingError { items2.addProperty("from", "12:00"); items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); JsonObject items6 = new JsonObject(); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); @@ -2713,23 +2791,14 @@ void test44() throws ConnectionError, ProcessingError { items12.addProperty("product_code", "4912345678904"); items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); 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"); @@ -2739,50 +2808,65 @@ void test44() throws ConnectionError, ProcessingError { JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("subject_more_than_or_equal", 1000); - items17.addProperty("subject_less_than", 5000); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("subject_more_than_or_equal", 1000); - items18.addProperty("subject_less_than", 5000); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - 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); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"08f4a642-e910-4927-b10d-2d76e0797efa","a6329a32-194c-455a-b153-0e2031ef8a62","74feb294-5fb1-44c3-9872-63b91c611b47","a141be05-3992-4781-b6a8-5cca0920d1aa","c5d26084-2beb-4fb1-b518-303657000592","18dd654a-7bd6-486e-a217-73a8e6b67d30"}) - .minimumNumberOfAmount(5415) - .minimumNumberOfProducts(821) - .applicableTimeRanges(new Object[]{items,items2}) - .applicableDaysOfWeek(new Integer[]{3,2,6,4,3,4,6,5,0,6}) - .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8,items9,items10,items11,items12}) - .productBasedPointRules(new Object[]{items13,items14,items15,items16}) - .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21}) + .blacklistedShopIds(new String[]{"bdf27bdb-edb1-4ea1-bb20-a8b72c180bed","751ee131-2607-45b6-bf28-d7a2a0a935ae","813301f2-1ad3-46f5-96a1-5433f4f7b447","af0f2b3a-3dd7-4c11-b16e-1efe8a6bcfde"}) + .minimumNumberOfAmount(4161) + .minimumNumberOfProducts(3551) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{3,0,6,0,4,5,0,6,2,5}) + .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15}) + .productBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21}) + .amountBasedPointRules(new Object[]{items22,items23}) .subject("money") - .setExclusive(false) - .pointExpiresInDays(5594) - .pointExpiresAt("2020-11-12T07:00:27.000000Z") - .status("enabled") - .description("JhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1t1s3zE32Vk24Ceen1NSjytDUp3byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7JLPWT4P") - .event("topup") - .priority(1700) - .endsAt("2021-02-26T00:46:07.000000Z") - .startsAt("2023-01-21T04:06:34.000000Z") - .name("IKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5Xg"); + .setExclusive(true) + .pointExpiresInDays(8143) + .pointExpiresAt("2024-03-23T11:57:58.000000Z") + .status("disabled") + .description("YqQB2LOvvxaJWdM6RyNE08AoCyr23XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0zvPKHwlN5") + .event("external-transaction") + .priority(1659) + .endsAt("2023-10-26T13:31:55.000000Z") + .startsAt("2020-09-11T02:03:07.000000Z") + .name("TDjrt62aO0gTJKvsFX8pCgUNdYXQChONhwWGHDaQRstzyfCMC6r4ZI5zg9bDUlUJBBIg9Fd6Y7e4aTjbZiLOaWRsEnzqZ6lGrz0tQnP1C"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2815,8 +2899,8 @@ void test45() throws ConnectionError, ProcessingError { items6.addProperty("from", "12:00"); items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); @@ -2824,17 +2908,11 @@ void test45() throws ConnectionError, ProcessingError { items9.addProperty("product_code", "4912345678904"); items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); - items10.addProperty("point_amount", 5); - items10.addProperty("point_amount_unit", "percent"); items10.addProperty("product_code", "4912345678904"); - items10.addProperty("is_multiply_by_count", true); - items10.addProperty("required_count", 2); + items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); items12.addProperty("point_amount", 5); items12.addProperty("point_amount_unit", "percent"); @@ -2844,67 +2922,61 @@ void test45() throws ConnectionError, ProcessingError { JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("subject_more_than_or_equal", 1000); + items14.addProperty("subject_less_than", 5000); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); + items16.addProperty("subject_more_than_or_equal", 1000); + items16.addProperty("subject_less_than", 5000); JsonObject items17 = new JsonObject(); items17.addProperty("point_amount", 5); items17.addProperty("point_amount_unit", "percent"); - items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("subject_more_than_or_equal", 1000); + items17.addProperty("subject_less_than", 5000); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("subject_more_than_or_equal", 1000); + items18.addProperty("subject_less_than", 5000); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); items19.addProperty("subject_more_than_or_equal", 1000); items19.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"d62ee4c4-ed98-4e2c-b5a0-335b1d5dc74a","a6439743-97b7-4744-8629-2a1c3baf3247","cac2cce0-fa58-400f-9702-b8cafc609ab1"}) - .minimumNumberForCombinationPurchase(8773) - .minimumNumberOfAmount(9565) - .minimumNumberOfProducts(6861) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6}) - .applicableDaysOfWeek(new Integer[]{1,4,2,2,6,0,4,1,5}) - .blacklistedProductRules(new Object[]{items7,items8,items9}) - .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18}) - .amountBasedPointRules(new Object[]{items19}) + .blacklistedShopIds(new String[]{"25ed8993-a382-4f2b-a4f8-6f342dfbe1c1","b776afd8-aaaa-46a1-8d3d-d1025f2520bf","5f849e76-f284-48fa-911c-0ee823f997d9","9c3b5d5e-08b1-43ca-87ec-aaf2cfc11694","51f75a48-6171-47e2-bd8c-04beb459ee7b"}) + .minimumNumberForCombinationPurchase(3670) + .minimumNumberOfAmount(9596) + .minimumNumberOfProducts(9037) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{6,1,1,1}) + .blacklistedProductRules(new Object[]{items8,items9,items10,items11}) + .productBasedPointRules(new Object[]{items12}) + .amountBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19}) .subject("all") .setExclusive(false) - .pointExpiresInDays(1343) - .pointExpiresAt("2022-12-21T20:43:10.000000Z") + .pointExpiresInDays(6685) + .pointExpiresAt("2024-09-01T03:22:06.000000Z") .status("enabled") - .description("st44xBM1tMMoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nS") + .description("qKIiyi3aAuGX") .event("external-transaction") - .priority(9651) - .endsAt("2024-09-15T11:27:27.000000Z") - .startsAt("2022-01-07T23:48:28.000000Z") - .name("jzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf7XzEp3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6"); + .priority(789) + .endsAt("2020-03-19T14:43:26.000000Z") + .startsAt("2021-01-13T05:57:56.000000Z") + .name("hyWJyqrPAKmmZGZJNC4j2awHXlJF9A7cu6AxfU8HIO6LO5Dd5XiFWL9oU011XoGoCpelXPpOt9Y3msxtcs0WRQEq2AUltkkF5RV8aSNO9GQnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328xFu"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -2931,80 +3003,143 @@ void test46() 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("from", "12:00"); - items8.addProperty("to", "23:59"); + items8.addProperty("product_code", "4912345678904"); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); - items9.addProperty("from", "12:00"); - items9.addProperty("to", "23:59"); + items9.addProperty("product_code", "4912345678904"); + items9.addProperty("classification_code", "c123"); JsonObject items10 = new JsonObject(); items10.addProperty("product_code", "4912345678904"); items10.addProperty("classification_code", "c123"); JsonObject items11 = new JsonObject(); - items11.addProperty("point_amount", 5); - items11.addProperty("point_amount_unit", "percent"); items11.addProperty("product_code", "4912345678904"); - items11.addProperty("is_multiply_by_count", true); - items11.addProperty("required_count", 2); + items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); JsonObject items15 = new JsonObject(); items15.addProperty("point_amount", 5); items15.addProperty("point_amount_unit", "percent"); - items15.addProperty("subject_more_than_or_equal", 1000); - items15.addProperty("subject_less_than", 5000); + items15.addProperty("product_code", "4912345678904"); + items15.addProperty("is_multiply_by_count", true); + items15.addProperty("required_count", 2); JsonObject items16 = new JsonObject(); items16.addProperty("point_amount", 5); items16.addProperty("point_amount_unit", "percent"); - items16.addProperty("subject_more_than_or_equal", 1000); - items16.addProperty("subject_less_than", 5000); + items16.addProperty("product_code", "4912345678904"); + items16.addProperty("is_multiply_by_count", true); + items16.addProperty("required_count", 2); + JsonObject items17 = new JsonObject(); + items17.addProperty("point_amount", 5); + items17.addProperty("point_amount_unit", "percent"); + items17.addProperty("product_code", "4912345678904"); + items17.addProperty("is_multiply_by_count", true); + items17.addProperty("required_count", 2); + JsonObject items18 = new JsonObject(); + items18.addProperty("point_amount", 5); + items18.addProperty("point_amount_unit", "percent"); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); + JsonObject items19 = new JsonObject(); + items19.addProperty("point_amount", 5); + items19.addProperty("point_amount_unit", "percent"); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); + JsonObject items20 = new JsonObject(); + items20.addProperty("point_amount", 5); + items20.addProperty("point_amount_unit", "percent"); + items20.addProperty("product_code", "4912345678904"); + items20.addProperty("is_multiply_by_count", true); + items20.addProperty("required_count", 2); + JsonObject items21 = new JsonObject(); + items21.addProperty("point_amount", 5); + items21.addProperty("point_amount_unit", "percent"); + items21.addProperty("subject_more_than_or_equal", 1000); + items21.addProperty("subject_less_than", 5000); + JsonObject items22 = new JsonObject(); + items22.addProperty("point_amount", 5); + items22.addProperty("point_amount_unit", "percent"); + items22.addProperty("subject_more_than_or_equal", 1000); + items22.addProperty("subject_less_than", 5000); + JsonObject items23 = new JsonObject(); + items23.addProperty("point_amount", 5); + items23.addProperty("point_amount_unit", "percent"); + items23.addProperty("subject_more_than_or_equal", 1000); + items23.addProperty("subject_less_than", 5000); + JsonObject items24 = new JsonObject(); + items24.addProperty("point_amount", 5); + items24.addProperty("point_amount_unit", "percent"); + items24.addProperty("subject_more_than_or_equal", 1000); + items24.addProperty("subject_less_than", 5000); + JsonObject items25 = new JsonObject(); + items25.addProperty("point_amount", 5); + items25.addProperty("point_amount_unit", "percent"); + items25.addProperty("subject_more_than_or_equal", 1000); + items25.addProperty("subject_less_than", 5000); + JsonObject items26 = new JsonObject(); + items26.addProperty("point_amount", 5); + items26.addProperty("point_amount_unit", "percent"); + items26.addProperty("subject_more_than_or_equal", 1000); + items26.addProperty("subject_less_than", 5000); + JsonObject items27 = new JsonObject(); + items27.addProperty("point_amount", 5); + items27.addProperty("point_amount_unit", "percent"); + items27.addProperty("subject_more_than_or_equal", 1000); + items27.addProperty("subject_less_than", 5000); + JsonObject items28 = new JsonObject(); + items28.addProperty("point_amount", 5); + items28.addProperty("point_amount_unit", "percent"); + items28.addProperty("subject_more_than_or_equal", 1000); + items28.addProperty("subject_less_than", 5000); + JsonObject items29 = new JsonObject(); + items29.addProperty("point_amount", 5); + items29.addProperty("point_amount_unit", "percent"); + items29.addProperty("subject_more_than_or_equal", 1000); + items29.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"fbabc2ea-21b9-402c-8a18-aba6fc5545d8","0eccf0ef-8956-467b-9ea4-8e2bb8381357","fa0939c5-349a-464f-aa94-c89b27afc79e"}) + .blacklistedShopIds(new String[]{"145ab40c-2d0d-429c-826d-51073686860f","d013fea9-b79a-4184-9f31-019a795ea848","3f8a753d-3eb3-4978-95e4-76fe6fa8840b","e4be9dac-00c8-4c3f-be3d-e39b3c7aa5f3","36f62d09-a345-4353-991a-1e2e1bfeba2b","c4bc1050-c4d7-49f9-9d56-4279b1880487","c6f92445-0116-4cf2-8e8e-9d90fa2f31e2","df8354cf-12a3-458b-ba5c-799500eeee1c","40ecab39-0ccf-4fa7-99c8-aeb663ff7a7d","464731ab-f9af-4e22-92d1-39e7a8f15091"}) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(651) - .minimumNumberOfAmount(5656) - .minimumNumberOfProducts(9444) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9}) - .applicableDaysOfWeek(new Integer[]{0,5,3,1,4}) - .blacklistedProductRules(new Object[]{items10}) - .productBasedPointRules(new Object[]{items11,items12,items13}) - .amountBasedPointRules(new Object[]{items14,items15,items16}) - .subject("money") - .setExclusive(true) - .pointExpiresInDays(2588) - .pointExpiresAt("2020-10-14T16:45:05.000000Z") + .minimumNumberForCombinationPurchase(5474) + .minimumNumberOfAmount(2916) + .minimumNumberOfProducts(4166) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{5,6,0,0}) + .blacklistedProductRules(new Object[]{items5,items6,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(7219) + .pointExpiresAt("2023-09-24T08:34:05.000000Z") .status("enabled") - .description("Dc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME") + .description("728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6wIXIQbTWkewXW1RgDvxeuhtqc0lVuVevBpKZFsUJPsCckORoCtdXbeAqJmttYcSXDoCgwypQnQUsnWOKMZ3rJ8aRGwz6VDq2kLV7UR9Ys1BTbKj9QeMGWU46l1ev23Q5PTPgtt4yAIzCwP1Z0JVfF9RSrf0Q1") .event("topup") - .priority(5548) - .endsAt("2022-10-17T21:35:50.000000Z") - .startsAt("2023-02-26T01:31:03.000000Z") - .name("RlyybO27figMsVRHKPW"); + .priority(5613) + .endsAt("2021-11-26T04:24:08.000000Z") + .startsAt("2024-04-11T12:13:11.000000Z") + .name("NJvae7EjBkQNn9uWl9JunPyftwg9sZ6EOXmzMsMVDhbzfFvUl3UtKdNP5TLVhbhll0GP4QAkQ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3040,14 +3175,14 @@ void test47() 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"); @@ -3067,71 +3202,110 @@ void test47() throws ConnectionError, ProcessingError { items16.addProperty("product_code", "4912345678904"); items16.addProperty("classification_code", "c123"); JsonObject items17 = new JsonObject(); - items17.addProperty("point_amount", 5); - items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("classification_code", "c123"); JsonObject items18 = new JsonObject(); items18.addProperty("point_amount", 5); items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("subject_more_than_or_equal", 1000); - items18.addProperty("subject_less_than", 5000); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("is_multiply_by_count", true); + items18.addProperty("required_count", 2); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); - items19.addProperty("subject_more_than_or_equal", 1000); - items19.addProperty("subject_less_than", 5000); + items19.addProperty("product_code", "4912345678904"); + items19.addProperty("is_multiply_by_count", true); + items19.addProperty("required_count", 2); JsonObject items20 = new JsonObject(); items20.addProperty("point_amount", 5); items20.addProperty("point_amount_unit", "percent"); - items20.addProperty("subject_more_than_or_equal", 1000); - items20.addProperty("subject_less_than", 5000); + items20.addProperty("product_code", "4912345678904"); + items20.addProperty("is_multiply_by_count", true); + items20.addProperty("required_count", 2); JsonObject items21 = new JsonObject(); items21.addProperty("point_amount", 5); items21.addProperty("point_amount_unit", "percent"); - items21.addProperty("subject_more_than_or_equal", 1000); - items21.addProperty("subject_less_than", 5000); + items21.addProperty("product_code", "4912345678904"); + items21.addProperty("is_multiply_by_count", true); + items21.addProperty("required_count", 2); JsonObject items22 = new JsonObject(); items22.addProperty("point_amount", 5); items22.addProperty("point_amount_unit", "percent"); - items22.addProperty("subject_more_than_or_equal", 1000); - items22.addProperty("subject_less_than", 5000); + items22.addProperty("product_code", "4912345678904"); + items22.addProperty("is_multiply_by_count", true); + items22.addProperty("required_count", 2); JsonObject items23 = new JsonObject(); items23.addProperty("point_amount", 5); items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("subject_more_than_or_equal", 1000); - items23.addProperty("subject_less_than", 5000); + items23.addProperty("product_code", "4912345678904"); + items23.addProperty("is_multiply_by_count", true); + items23.addProperty("required_count", 2); JsonObject items24 = new JsonObject(); items24.addProperty("point_amount", 5); items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("subject_more_than_or_equal", 1000); - items24.addProperty("subject_less_than", 5000); + 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); + 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); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"a9fd01a2-26c5-4d2e-bc85-49afa92b1162","46d1d815-4464-4094-85fd-e4e619357cf5","f2289ba9-452f-45cb-a420-c6e204708cf9","ef4c18db-fa66-4015-a3ea-c3594ddab61d","6a6318ce-7418-47c4-9678-a53471c9113e","20207195-daab-4941-b26f-34f6129a4971","4dd73196-b150-464d-96da-e841fb7c08a9","0e3c0fb8-6329-4069-b217-552f5dac81ba","7be81458-be4a-4139-9523-b4c54f3dea8d"}) - .maxPointAmount(2592) + .blacklistedShopIds(new String[]{"c0057e4f-fc2f-49a8-9e1f-9b50d03b363b","a5898ff2-7a54-4d9a-816f-6335d0b299c8","15cb1ce8-19ac-4a59-b835-2840067d5e95","f9ca6202-b70b-44ea-83e1-a17e0242ca47","47eda32b-955d-4ee2-8acc-48c5bfa7c7c0","389e3b9c-bb94-49aa-94f5-b54a283a90af"}) + .maxPointAmount(9262) .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(3132) - .minimumNumberOfAmount(1636) - .minimumNumberOfProducts(2463) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) - .applicableDaysOfWeek(new Integer[]{1,1,6,0,3,6,0,4,4,1}) - .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16}) - .productBasedPointRules(new Object[]{items17}) - .amountBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24}) + .minimumNumberForCombinationPurchase(1199) + .minimumNumberOfAmount(1929) + .minimumNumberOfProducts(9156) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) + .applicableDaysOfWeek(new Integer[]{2,4,4,3,1,3}) + .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17}) + .productBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24}) + .amountBasedPointRules(new Object[]{items25,items26,items27,items28,items29,items30,items31}) .subject("money") .setExclusive(false) - .pointExpiresInDays(9941) - .pointExpiresAt("2024-01-26T17:16:23.000000Z") + .pointExpiresInDays(7914) + .pointExpiresAt("2024-06-04T21:34:18.000000Z") .status("enabled") - .description("11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS5mnHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1a") - .event("topup") - .priority(6965) - .endsAt("2022-02-03T05:48:08.000000Z") - .startsAt("2023-04-28T08:13:57.000000Z") - .name("GpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxV"); + .description("HRWPkdj3cWX27LHxVCRXJ7RR9vhNIu31vkGd5KFMjSHWQRA9E535lViSyzzCH") + .event("external-transaction") + .priority(2666) + .endsAt("2020-01-16T07:23:53.000000Z") + .startsAt("2020-02-20T16:39:33.000000Z") + .name("0SpYDFFDY1quxNkSS1vmCLOUldc17zrM7imjJVYnMFmZVKbnQskJ4SJWYdnxMjsH9rlpcWw1Vg5A3jIY5TVDn7VAyGhf1a2i4Xb006Y5FN9bW9vksFBm8sMwbh1WFtpEmCrFqNwdLZ15QmFMvlNaa2goLZ5E9OEvOUIiBwbJ5GuqfgOe9nVnbOf1mceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SI"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3149,77 +3323,56 @@ void test48() throws ConnectionError, ProcessingError { items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); - items5.addProperty("product_code", "4912345678904"); - items5.addProperty("classification_code", "c123"); + items5.addProperty("from", "12:00"); + items5.addProperty("to", "23:59"); JsonObject items6 = new JsonObject(); - items6.addProperty("product_code", "4912345678904"); - items6.addProperty("classification_code", "c123"); + items6.addProperty("from", "12:00"); + items6.addProperty("to", "23:59"); JsonObject items7 = new JsonObject(); - items7.addProperty("product_code", "4912345678904"); - items7.addProperty("classification_code", "c123"); + items7.addProperty("from", "12:00"); + items7.addProperty("to", "23:59"); JsonObject items8 = new JsonObject(); - items8.addProperty("product_code", "4912345678904"); - items8.addProperty("classification_code", "c123"); + items8.addProperty("from", "12:00"); + items8.addProperty("to", "23:59"); JsonObject items9 = new JsonObject(); - items9.addProperty("product_code", "4912345678904"); - items9.addProperty("classification_code", "c123"); + items9.addProperty("from", "12:00"); + items9.addProperty("to", "23:59"); JsonObject items10 = new JsonObject(); - items10.addProperty("product_code", "4912345678904"); - items10.addProperty("classification_code", "c123"); + items10.addProperty("from", "12:00"); + items10.addProperty("to", "23:59"); JsonObject items11 = new JsonObject(); items11.addProperty("product_code", "4912345678904"); items11.addProperty("classification_code", "c123"); JsonObject items12 = new JsonObject(); - items12.addProperty("point_amount", 5); - items12.addProperty("point_amount_unit", "percent"); items12.addProperty("product_code", "4912345678904"); - items12.addProperty("is_multiply_by_count", true); - items12.addProperty("required_count", 2); + items12.addProperty("classification_code", "c123"); JsonObject items13 = new JsonObject(); - items13.addProperty("point_amount", 5); - items13.addProperty("point_amount_unit", "percent"); items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("classification_code", "c123"); JsonObject items14 = new JsonObject(); - items14.addProperty("point_amount", 5); - items14.addProperty("point_amount_unit", "percent"); items14.addProperty("product_code", "4912345678904"); - items14.addProperty("is_multiply_by_count", true); - items14.addProperty("required_count", 2); + items14.addProperty("classification_code", "c123"); JsonObject items15 = new JsonObject(); - items15.addProperty("point_amount", 5); - items15.addProperty("point_amount_unit", "percent"); items15.addProperty("product_code", "4912345678904"); - items15.addProperty("is_multiply_by_count", true); - items15.addProperty("required_count", 2); + items15.addProperty("classification_code", "c123"); JsonObject items16 = new JsonObject(); - items16.addProperty("point_amount", 5); - items16.addProperty("point_amount_unit", "percent"); items16.addProperty("product_code", "4912345678904"); - items16.addProperty("is_multiply_by_count", true); - items16.addProperty("required_count", 2); + items16.addProperty("classification_code", "c123"); JsonObject items17 = new JsonObject(); - items17.addProperty("point_amount", 5); - items17.addProperty("point_amount_unit", "percent"); items17.addProperty("product_code", "4912345678904"); - items17.addProperty("is_multiply_by_count", true); - items17.addProperty("required_count", 2); + items17.addProperty("classification_code", "c123"); JsonObject items18 = new JsonObject(); - items18.addProperty("point_amount", 5); - items18.addProperty("point_amount_unit", "percent"); - items18.addProperty("product_code", "4912345678904"); - items18.addProperty("is_multiply_by_count", true); - items18.addProperty("required_count", 2); + items18.addProperty("product_code", "4912345678904"); + items18.addProperty("classification_code", "c123"); JsonObject items19 = new JsonObject(); items19.addProperty("point_amount", 5); items19.addProperty("point_amount_unit", "percent"); @@ -3242,57 +3395,32 @@ void test48() throws ConnectionError, ProcessingError { items22.addProperty("point_amount_unit", "percent"); items22.addProperty("subject_more_than_or_equal", 1000); items22.addProperty("subject_less_than", 5000); - JsonObject items23 = new JsonObject(); - items23.addProperty("point_amount", 5); - items23.addProperty("point_amount_unit", "percent"); - items23.addProperty("subject_more_than_or_equal", 1000); - items23.addProperty("subject_less_than", 5000); - JsonObject items24 = new JsonObject(); - items24.addProperty("point_amount", 5); - items24.addProperty("point_amount_unit", "percent"); - items24.addProperty("subject_more_than_or_equal", 1000); - items24.addProperty("subject_less_than", 5000); - JsonObject items25 = new JsonObject(); - items25.addProperty("point_amount", 5); - items25.addProperty("point_amount_unit", "percent"); - items25.addProperty("subject_more_than_or_equal", 1000); - items25.addProperty("subject_less_than", 5000); - JsonObject items26 = new JsonObject(); - items26.addProperty("point_amount", 5); - items26.addProperty("point_amount_unit", "percent"); - items26.addProperty("subject_more_than_or_equal", 1000); - items26.addProperty("subject_less_than", 5000); - JsonObject items27 = new JsonObject(); - items27.addProperty("point_amount", 5); - items27.addProperty("point_amount_unit", "percent"); - items27.addProperty("subject_more_than_or_equal", 1000); - items27.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"f542e138-d461-4ed6-801a-df195e015e8c","d1efe22b-c2ad-49cf-b007-15e9de1c5aad","039c3553-9bb1-4d45-9165-16cba294d5e5","ed700b32-da1f-4f45-a7a0-c7ee2c7f2e13"}) - .maxTotalPointAmount(4215) - .maxPointAmount(2733) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(5343) - .minimumNumberOfAmount(967) - .minimumNumberOfProducts(6330) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{4,5,2,3,2,0}) - .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9,items10,items11}) - .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18,items19,items20}) - .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27}) - .subject("all") + .blacklistedShopIds(new String[]{"800f2b50-a018-46cc-a9da-7cf817afbe68","54d3f5d9-b09c-4f63-9c93-49094c6f4d2e","7d5afc70-2703-41c7-8f35-67c034eb0446","61d16007-9395-4741-9616-c560d8317fb5","46937f3b-6d19-4b7f-8409-f58bf8f85518","b0a14954-7383-4d12-903f-e10dd42e3c6d","49c80dde-167a-4fa5-862c-4cbe81abcdb4","60eb78e6-7bfb-416e-ba66-a657c7ae355d","d915f492-90bd-4a1e-8fcc-c8526c9f43a4","ed419fe1-25e6-40e2-aaa3-0648467e36c8"}) + .maxTotalPointAmount(8318) + .maxPointAmount(7658) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(1575) + .minimumNumberOfAmount(4235) + .minimumNumberOfProducts(9045) + .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10}) + .applicableDaysOfWeek(new Integer[]{5,4,6,4,2,1,1}) + .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18}) + .productBasedPointRules(new Object[]{items19,items20}) + .amountBasedPointRules(new Object[]{items21,items22}) + .subject("money") .setExclusive(true) - .pointExpiresInDays(566) - .pointExpiresAt("2022-10-10T20:59:11.000000Z") + .pointExpiresInDays(6758) + .pointExpiresAt("2022-08-08T02:12:14.000000Z") .status("disabled") - .description("pEZQNOtI") - .event("topup") - .priority(1159) - .endsAt("2020-02-14T18:41:22.000000Z") - .startsAt("2023-02-14T00:23:45.000000Z") - .name("p7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN"); + .description("Z3LjtgQn48RP8UioFkI4pFJl8") + .event("payment") + .priority(692) + .endsAt("2020-05-22T14:50:33.000000Z") + .startsAt("2022-09-10T04:10:14.000000Z") + .name("K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L6y5R4kNHRMXQTzW1iBiUI5JGbGoEyKdo0WvNvuZ2zOymd6UzJ163lry8C4rDtJNzcEFdrvo427ISByum8MIrVugVB"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3319,17 +3447,17 @@ void test49() throws ConnectionError, ProcessingError { items3.addProperty("from", "12:00"); items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("from", "12:00"); - items4.addProperty("to", "23:59"); + items4.addProperty("product_code", "4912345678904"); + items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("from", "12:00"); - items5.addProperty("to", "23:59"); + items5.addProperty("product_code", "4912345678904"); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("from", "12:00"); - items6.addProperty("to", "23:59"); + items6.addProperty("product_code", "4912345678904"); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("from", "12:00"); - items7.addProperty("to", "23:59"); + items7.addProperty("product_code", "4912345678904"); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); items8.addProperty("product_code", "4912345678904"); items8.addProperty("classification_code", "c123"); @@ -3337,124 +3465,100 @@ void test49() 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"); 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"); - 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("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( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"1d28ddb6-9d70-4ab0-85b7-3632e40ec371","00ab16d7-cda1-43de-bd9c-ac011c6923f4","e3db6fbd-a6cf-40bd-aa6b-59963b5f9513","b599481a-8c0e-4e5d-a990-24338764b7ab","93b282d1-a955-4d5b-9626-a6e20a7ea8aa","01a7d945-7853-4ac5-97d0-e3742d4e4763","4046c146-033b-4af9-b5fc-05879ae0b1a6"}) + .blacklistedShopIds(new String[]{"82c389a4-86a4-4427-af66-a2d465d1fb19","30c42a20-889a-4569-bee6-17339c20b5ad","b11aeb71-581c-49ab-b0ab-6e1ef22d2d2d"}) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(3855) - .maxPointAmount(5034) + .maxTotalPointAmount(345) + .maxPointAmount(3460) .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(6030) - .minimumNumberOfAmount(2596) - .minimumNumberOfProducts(5176) - .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7}) - .applicableDaysOfWeek(new Integer[]{2,5,4,1,1,3}) - .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17}) - .productBasedPointRules(new Object[]{items18,items19,items20}) - .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27,items28,items29,items30}) + .minimumNumberForCombinationPurchase(9220) + .minimumNumberOfAmount(1044) + .minimumNumberOfProducts(347) + .applicableTimeRanges(new Object[]{items,items2,items3}) + .applicableDaysOfWeek(new Integer[]{5,0,4,3}) + .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8,items9}) + .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17}) + .amountBasedPointRules(new Object[]{items18,items19,items20,items21}) .subject("all") - .setExclusive(true) - .pointExpiresInDays(2977) - .pointExpiresAt("2020-03-03T08:35:28.000000Z") + .setExclusive(false) + .pointExpiresInDays(4636) + .pointExpiresAt("2022-11-06T15:32:07.000000Z") .status("disabled") - .description("tFPfUfw") - .event("payment") - .priority(5091) - .endsAt("2021-07-22T02:49:01.000000Z") - .startsAt("2022-06-30T17:18:06.000000Z") - .name("lmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFr"); + .description("pHdsS3ShjnA4Sr1gSN2PelpywqnkqJGFUWWcs7OK2a7LaTGiSi2nVCa3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsFLw1OF89AbrhaWMPvJ4w9BbWGLWxTOnqHU20ukx1") + .event("topup") + .priority(4005) + .endsAt("2021-03-03T12:19:29.000000Z") + .startsAt("2020-01-25T17:57:34.000000Z") + .name("Vqtvlq3pwtYNpqFJFhJ6HuYWnqyIUhAD4rpz6whWSFAXMqy8UduAdQ5IH0TK2HSat5A6ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvII6xukRoB486IcnSrXwZGPsD"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3478,8 +3582,8 @@ void test50() throws ConnectionError, ProcessingError { items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); items3.addProperty("product_code", "4912345678904"); items3.addProperty("classification_code", "c123"); @@ -3487,29 +3591,17 @@ void test50() throws ConnectionError, ProcessingError { items4.addProperty("product_code", "4912345678904"); items4.addProperty("classification_code", "c123"); JsonObject items5 = new JsonObject(); - items5.addProperty("point_amount", 5); - items5.addProperty("point_amount_unit", "percent"); items5.addProperty("product_code", "4912345678904"); - items5.addProperty("is_multiply_by_count", true); - items5.addProperty("required_count", 2); + items5.addProperty("classification_code", "c123"); JsonObject items6 = new JsonObject(); - items6.addProperty("point_amount", 5); - items6.addProperty("point_amount_unit", "percent"); items6.addProperty("product_code", "4912345678904"); - items6.addProperty("is_multiply_by_count", true); - items6.addProperty("required_count", 2); + items6.addProperty("classification_code", "c123"); JsonObject items7 = new JsonObject(); - items7.addProperty("point_amount", 5); - items7.addProperty("point_amount_unit", "percent"); items7.addProperty("product_code", "4912345678904"); - items7.addProperty("is_multiply_by_count", true); - items7.addProperty("required_count", 2); + items7.addProperty("classification_code", "c123"); JsonObject items8 = new JsonObject(); - items8.addProperty("point_amount", 5); - items8.addProperty("point_amount_unit", "percent"); items8.addProperty("product_code", "4912345678904"); - items8.addProperty("is_multiply_by_count", true); - items8.addProperty("required_count", 2); + items8.addProperty("classification_code", "c123"); JsonObject items9 = new JsonObject(); items9.addProperty("point_amount", 5); items9.addProperty("point_amount_unit", "percent"); @@ -3537,9 +3629,8 @@ void test50() throws ConnectionError, ProcessingError { JsonObject items13 = new JsonObject(); items13.addProperty("point_amount", 5); items13.addProperty("point_amount_unit", "percent"); - items13.addProperty("product_code", "4912345678904"); - items13.addProperty("is_multiply_by_count", true); - items13.addProperty("required_count", 2); + items13.addProperty("subject_more_than_or_equal", 1000); + items13.addProperty("subject_less_than", 5000); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); @@ -3565,39 +3656,34 @@ void test50() 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( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"87866201-3684-460e-8bb4-d74ee3fdd4c8","612b55d0-7982-42f6-aca8-2c14971f6c34","6173b38d-34d6-4368-b111-59cf150fbc06","de14c591-8264-4071-b9cb-51c8998b527c","afd176e3-fdc9-404f-a150-3d214e133368","20a4079e-971a-4eae-a222-a3ffb7fa7cf6"}) + .blacklistedShopIds(new String[]{"2926cf04-1760-4185-bb99-1ebd9aa43566","c3dc1886-9c7c-4d2c-a492-5c62903f9983","b2f72b3e-a0e8-4e83-9116-daff03d0d1bc","749a5a70-1b6a-4e27-839d-39efd15f14b6","eee96981-3743-4ff6-9a2c-dded224651e9","bf9d6874-ff5d-4726-92b6-f7735b210d47","5d087832-9dc0-415d-8db2-223df9898c4c"}) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(906) - .maxPointAmount(3467) - .existInEachProductGroups(false) - .minimumNumberForCombinationPurchase(3119) - .minimumNumberOfAmount(872) - .minimumNumberOfProducts(1504) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{5}) - .blacklistedProductRules(new Object[]{items2,items3,items4}) - .productBasedPointRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13}) - .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19}) + .maxTotalPointAmount(3389) + .maxPointAmount(6104) + .existInEachProductGroups(true) + .minimumNumberForCombinationPurchase(3970) + .minimumNumberOfAmount(9841) + .minimumNumberOfProducts(9227) + .applicableTimeRanges(new Object[]{items,items2}) + .applicableDaysOfWeek(new Integer[]{4,3,0,1,1,5,3,5,2}) + .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8}) + .productBasedPointRules(new Object[]{items9,items10,items11,items12}) + .amountBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18}) .subject("all") .setExclusive(false) - .pointExpiresInDays(4508) - .pointExpiresAt("2021-04-28T08:51:45.000000Z") + .pointExpiresInDays(2170) + .pointExpiresAt("2021-06-09T10:41:14.000000Z") .status("enabled") - .description("T9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbR") - .event("payment") - .priority(5945) - .endsAt("2022-04-28T11:37:24.000000Z") - .startsAt("2024-05-22T20:52:59.000000Z") - .name("UhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGS"); + .description("p4Qp4t6WiXGIWU4TxH2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfu") + .event("topup") + .priority(2387) + .endsAt("2024-08-18T00:20:10.000000Z") + .startsAt("2022-05-28T06:14:04.000000Z") + .name("naFkgEEKedrMwdHukpCicHBj64f1DT6D6Mien3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4S8a9Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouPF8sEd3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOP"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -3621,14 +3707,14 @@ void test51() throws ConnectionError, ProcessingError { items.addProperty("from", "12:00"); items.addProperty("to", "23:59"); JsonObject items2 = new JsonObject(); - items2.addProperty("product_code", "4912345678904"); - items2.addProperty("classification_code", "c123"); + items2.addProperty("from", "12:00"); + items2.addProperty("to", "23:59"); JsonObject items3 = new JsonObject(); - items3.addProperty("product_code", "4912345678904"); - items3.addProperty("classification_code", "c123"); + items3.addProperty("from", "12:00"); + items3.addProperty("to", "23:59"); JsonObject items4 = new JsonObject(); - items4.addProperty("product_code", "4912345678904"); - items4.addProperty("classification_code", "c123"); + items4.addProperty("from", "12:00"); + items4.addProperty("to", "23:59"); JsonObject items5 = new JsonObject(); items5.addProperty("product_code", "4912345678904"); items5.addProperty("classification_code", "c123"); @@ -3645,60 +3731,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("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("is_multiply_by_count", true); + items13.addProperty("required_count", 2); JsonObject items14 = new JsonObject(); items14.addProperty("point_amount", 5); items14.addProperty("point_amount_unit", "percent"); - items14.addProperty("subject_more_than_or_equal", 1000); - items14.addProperty("subject_less_than", 5000); + items14.addProperty("product_code", "4912345678904"); + items14.addProperty("is_multiply_by_count", true); + items14.addProperty("required_count", 2); + JsonObject items15 = new JsonObject(); + items15.addProperty("point_amount", 5); + items15.addProperty("point_amount_unit", "percent"); + items15.addProperty("subject_more_than_or_equal", 1000); + items15.addProperty("subject_less_than", 5000); Request request = new UpdateCampaign( - "651b8291-64e3-477d-9712-e2ab96cd0d6c" + "65db6dd7-9052-465e-8da7-eb49014a9c1d" ) - .blacklistedShopIds(new String[]{"579d66c0-542a-4ea0-9ea4-11c26d44c7b9","7ab22c73-a2cd-4a2f-bbc3-3b16decc2dec","64aef242-d113-4316-bc93-4225add7aa61","28b2f27e-9446-4fea-9af4-8abd04056fda"}) - .budgetCapsAmount(1576527131) + .blacklistedShopIds(new String[]{"57d26b58-c98c-4a1f-9301-95924acc35e5","d5cdaf39-fbbc-450c-8f4f-e16f1d713f11","1ff9c798-e865-48f0-b52b-c74c4f7043eb","eadaedd1-c0c4-4117-a002-9aa27d994faa","90abfc13-e4ae-4256-b7bb-80f1b46c70ca","96d13a89-fbf7-4bb1-80c2-243ebafb9179","396dce36-6f85-4716-b5a5-2dc6e0c5b011","495539c8-9414-4811-abaa-1213ff499bc2"}) + .budgetCapsAmount(1125800636) .applicableTransactionMetadata(applicable_transaction_metadata) .applicableAccountMetadata(applicable_account_metadata) - .maxTotalPointAmount(3267) - .maxPointAmount(6431) - .existInEachProductGroups(true) - .minimumNumberForCombinationPurchase(6991) - .minimumNumberOfAmount(9120) - .minimumNumberOfProducts(1817) - .applicableTimeRanges(new Object[]{items}) - .applicableDaysOfWeek(new Integer[]{4,1,2,5}) - .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9}) - .productBasedPointRules(new Object[]{items10}) - .amountBasedPointRules(new Object[]{items11,items12,items13,items14}) - .subject("money") + .maxTotalPointAmount(617) + .maxPointAmount(8875) + .existInEachProductGroups(false) + .minimumNumberForCombinationPurchase(3005) + .minimumNumberOfAmount(7158) + .minimumNumberOfProducts(2761) + .applicableTimeRanges(new Object[]{items,items2,items3,items4}) + .applicableDaysOfWeek(new Integer[]{4,4,6,2,2}) + .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12}) + .productBasedPointRules(new Object[]{items13,items14}) + .amountBasedPointRules(new Object[]{items15}) + .subject("all") .setExclusive(true) - .pointExpiresInDays(6007) - .pointExpiresAt("2023-02-06T09:56:17.000000Z") - .status("enabled") - .description("0Cr3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXon") - .event("topup") - .priority(3727) - .endsAt("2020-03-14T12:41:41.000000Z") - .startsAt("2023-10-21T08:38:31.000000Z") - .name("mfKJhNI2H30SlKK1O1UKOiryeoJ2KHqioForPYYFDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVupSap8p4f5efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3"); + .pointExpiresInDays(4905) + .pointExpiresAt("2022-06-06T07:31:48.000000Z") + .status("disabled") + .description("gtR89zH4BRb4LxjYp1VFXi65IWH287FkS1AdoZmrqVFQp8fp9IpDGNT32XXjSeAsfsowmrnytFnDNPErJC0T6j8TSBN1GRIxfJ3UGUUM2jHDzbRjTfUU5d5AtOip") + .event("external-transaction") + .priority(4110) + .endsAt("2023-03-24T23:29:09.000000Z") + .startsAt("2024-10-01T00:28:17.000000Z") + .name("L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNR"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCashtrayTest.java index 6192533..a2067b7 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateCashtrayTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateCashtrayTest.java @@ -12,7 +12,7 @@ public class UpdateCashtrayTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateCashtray( - "5dac37c8-967a-4962-8818-43f58aac4ee3" + "5dffd7ce-f68a-42e9-a63e-8359d9772bb6" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateCashtray( - "5dac37c8-967a-4962-8818-43f58aac4ee3" + "5dffd7ce-f68a-42e9-a63e-8359d9772bb6" ) - .expiresIn(2373); + .expiresIn(5299); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateCashtray( - "5dac37c8-967a-4962-8818-43f58aac4ee3" + "5dffd7ce-f68a-42e9-a63e-8359d9772bb6" ) - .description("hID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8WbkxbWTp66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6GGJ1GXo5UPiFJuScrEGcY5") - .expiresIn(6071); + .description("c0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB") + .expiresIn(6142); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateCashtray( - "5dac37c8-967a-4962-8818-43f58aac4ee3" + "5dffd7ce-f68a-42e9-a63e-8359d9772bb6" ) - .amount(6557.0) - .description("YJqEcansSsP2ceIvKP9bgYanQbVQM9Z6RG0kCsPdzwEr5mXGzuLW3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhr") - .expiresIn(9919); + .amount(4538.0) + .description("1hiRjTNSU46DKPvyktKcWCyKm4tG2") + .expiresIn(4039); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java index c7bf6f8..94b46af 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java @@ -84,7 +84,7 @@ void test4() throws ConnectionError, ProcessingError { Request request = new UpdateCheck( "b0957c83-aab4-424b-b998-c121e5e95f6a" ) - .pointExpiresAt("2022-09-17T04:14:34.000000Z") + .pointExpiresAt("2024-10-21T15:22:50.000000Z") .pointExpiresInDays(6114) .bearPointAccount("120cd1dc-82f1-40db-b4e3-d8738f704eaf") .setDisabled(true); diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java index dd40801..5eeee92 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java @@ -12,9 +12,9 @@ public class UpdateCouponTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(8569); + .discountAmount(1659); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(6935) - .name("8UduAdQ5IH0TK2HSa"); + .discountAmount(639) + .name("TVlWMFnuMgJI5wZ1"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -47,11 +47,11 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(8052) - .description("A6ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvII6xukRoB486IcnSrXwZGPsDFfbhpjo") - .name("CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FA"); + .discountAmount(5963) + .description("V863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2MaByNhkorzLzXS7sax7iYOPlAj5UlMDxo6iDarlMDzJC7wMAkFYNemkzZpvDvog0lglLv2T90aOF7qLZJG6mWFW8mYG8iBpA9wK7FerKmMDJDN9kjnEAtWkM10yTZC3mt5NbCfjtxFXhJ") + .name("HyZxe38yvM1SEczLfO3bcMSuKdq3FslGbkHo1PhxbbT2umORVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77PuY"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -66,12 +66,12 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(8042) - .discountUpperLimit(1963) - .description("tbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEEKedrMwdHukpCicHBj64f1DT6D6") - .name("Mien3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4S"); + .discountAmount(2799) + .discountUpperLimit(2270) + .description("SdDE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQHQhhRs2PIaofbMQ1Wyxx6iPX8wNVpCNUyiEzApKM66ZkEOto1oTpzcZyDOIWVwoFQcmGYbDKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY") + .name("BXgCjIyZIJEzXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZ"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -86,13 +86,13 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(6201) - .startsAt("2024-05-22T11:46:17.000000Z") - .discountUpperLimit(7049) - .description("Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouPF8sEd3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4Lx") - .name("Yp1VFXi65IWH287FkS1AdoZmrqVFQp8fp9IpDGNT32XXjSeAsfsowmrnytFnDNPErJC0T6j8TSBN1GRIxfJ3UGUUM2jHDzbRjTfUU5d5AtO"); + .discountAmount(272) + .startsAt("2023-01-31T02:27:56.000000Z") + .discountUpperLimit(5403) + .description("sgSDOAS6m6W4ycEKeHr4636lRXTr2iPpZt0j1CI3l6J") + .name("30qBjXV2f99mPOolq1eiW"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -107,14 +107,14 @@ void test4() throws ConnectionError, ProcessingError { @Test void test5() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(2829) - .endsAt("2021-12-12T09:02:22.000000Z") - .startsAt("2023-03-24T23:29:09.000000Z") - .discountUpperLimit(8481) - .description("L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNR") - .name("sJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1TG2yJEOhnrWkQVh8G8vXFKeuF0FhTncNlMmgEuaHAH"); + .discountAmount(6208) + .endsAt("2021-12-28T08:11:25.000000Z") + .startsAt("2023-10-28T13:01:46.000000Z") + .discountUpperLimit(629) + .description("NHXLsbYmrfHwiW6AehvKLu9jSykyDMxjQhXvqsNkUwpnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD62pEennAfXO8IbuWWi93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMi") + .name("AoASOIgsAFMRnA6RqJv3Yoi1HNQ6SUUxfHdkFZrSjoj4E906hjOODSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -129,15 +129,15 @@ void test5() throws ConnectionError, ProcessingError { @Test void test6() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(1922) - .displayStartsAt("2023-04-09T08:14:22.000000Z") - .endsAt("2020-06-03T00:04:43.000000Z") - .startsAt("2020-11-04T09:07:58.000000Z") - .discountUpperLimit(8471) - .description("z60OEH7JgjiAw3cGaLL5KHpinnRK5y0OzJ9Hvf2cVYRMoN8ciCbZWnzcDnK4LA4gWzsFxrEWGQmIqwq80GWYOCdqp3aMw45RftnlC78XMJnZ0CKAQudtFEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVu") - .name("axHAAztkflrbX507aitxdTcYjjCJVatXW3s3mbWjjaocKJS9JHlwFlJcsltjjmodDQEUxDaghv7DnSC5Rfu0C0uKF"); + .discountAmount(57) + .displayStartsAt("2022-11-18T13:20:19.000000Z") + .endsAt("2021-10-14T06:10:01.000000Z") + .startsAt("2022-10-19T15:47:53.000000Z") + .discountUpperLimit(6220) + .description("kGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyx") + .name("z7D46SGfEdpD0URVkFLTmlxp8SI9cXescrmSD5nkp7THGlyH3t2HB4wHFbCGx0Xzqx2wtaKpu1qdmiKn22"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -152,16 +152,16 @@ void test6() throws ConnectionError, ProcessingError { @Test void test7() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(8592) - .displayEndsAt("2024-05-23T10:02:09.000000Z") - .displayStartsAt("2024-01-20T05:34:47.000000Z") - .endsAt("2020-05-11T15:53:17.000000Z") - .startsAt("2021-11-24T22:53:36.000000Z") - .discountUpperLimit(3664) - .description("PjblE3KxRrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0MuCLswxDV9drgRKhLSvZ2KQORxMHroQo6jM66W2y8KrZ8xMlNalvWasLjNh8s14cZJ7e4Q9GCUyL2v9u3mWzZwKqxzujrUlmkKRdRXeieY6AmMB38WCqGZQWNed5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3") - .name("ijXWL36Ne9BIyD0VsxUMLq2pynj2i9JShHMs7dpHbhmzmDvsuxdQFF1b9FFVSxNRhY3CeG383Fyff0GWuf"); + .discountAmount(11) + .displayEndsAt("2022-05-12T17:06:59.000000Z") + .displayStartsAt("2024-10-17T00:18:43.000000Z") + .endsAt("2022-12-13T03:25:33.000000Z") + .startsAt("2022-02-26T20:22:43.000000Z") + .discountUpperLimit(2036) + .description("IsxTTV24W3iMjgCaf4v1F7zb24TvVYyzGoNYLIXxqonkMGqXlJpJRQwp9nn9cv0p2uygmHKqGnnOeMtFto3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwmdx9H0O") + .name("7RXsy9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTKy9baAXpUrNxQgJv2d1RjRDv"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -176,17 +176,17 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .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"); + .discountAmount(5112) + .setDisabled(false) + .displayEndsAt("2022-05-13T20:18:21.000000Z") + .displayStartsAt("2022-03-07T15:34:04.000000Z") + .endsAt("2021-01-27T16:37:18.000000Z") + .startsAt("2021-05-18T05:10:41.000000Z") + .discountUpperLimit(9448) + .description("M2eopmIlmvqzqnGOYbg6rdqjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T5nZUMuDqspHuPmGiUoPteza9Foxx3GETJuunMNM7JUVu7YgDI0zSm6") + .name("cU49za1QJALcpDZJ7YKoaGZqFQRMYj7eI0OiTgfPr68fP2A8RCqV"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -201,18 +201,18 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(8570) - .setHidden(true) + .discountAmount(9225) + .setHidden(false) .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"); + .displayEndsAt("2020-12-23T05:57:52.000000Z") + .displayStartsAt("2023-10-20T04:06:04.000000Z") + .endsAt("2022-03-06T19:13:57.000000Z") + .startsAt("2022-11-17T06:13:26.000000Z") + .discountUpperLimit(6508) + .description("tZtjgMfuD") + .name("n3QgsidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0Kto"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -227,19 +227,19 @@ void test9() throws ConnectionError, ProcessingError { @Test void test10() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(9501) + .discountAmount(9376) .setPublic(false) - .setHidden(false) - .setDisabled(true) - .displayEndsAt("2021-03-27T16:01:28.000000Z") - .displayStartsAt("2022-01-12T06:57:26.000000Z") - .endsAt("2023-12-15T21:42:57.000000Z") - .startsAt("2022-01-25T09:25:13.000000Z") - .discountUpperLimit(3382) - .description("yQZu56A1wWzKTTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6cvEGDQNsufaSx2VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkw") - .name("C6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbV"); + .setHidden(true) + .setDisabled(false) + .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) { @@ -254,20 +254,20 @@ void test10() throws ConnectionError, ProcessingError { @Test void test11() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(4884) - .code("Nuqq") - .setPublic(true) - .setHidden(false) + .discountAmount(8030) + .code("o") + .setPublic(false) + .setHidden(true) .setDisabled(true) - .displayEndsAt("2024-01-19T14:39:22.000000Z") - .displayStartsAt("2020-10-29T23:27:00.000000Z") - .endsAt("2022-03-24T20:14:37.000000Z") - .startsAt("2022-09-21T08:59:37.000000Z") - .discountUpperLimit(8700) - .description("VdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8B2QPQ9Y2Rpsj0heI1pcWBx1T31cQtfbPCATbfETgM8KooCtS8z1fc4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCq") - .name("bvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9"); + .displayEndsAt("2023-05-04T18:20:50.000000Z") + .displayStartsAt("2021-09-04T09:10:55.000000Z") + .endsAt("2023-02-02T05:43:15.000000Z") + .startsAt("2020-02-26T14:11:19.000000Z") + .discountUpperLimit(7742) + .description("sW05W19aXuGVVRQlUVJv9CZ2ZsBhmJBENJ2Jp2YLnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ9bvTSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8NITOunWJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wDY3YT1DlU5jqThl0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLq") + .name("Ez"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -282,21 +282,21 @@ void test11() throws ConnectionError, ProcessingError { @Test void test12() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(8882) - .usageLimit(5765) - .code("bnV3FEVOMM") - .setPublic(true) - .setHidden(true) + .discountAmount(3282) + .usageLimit(7685) + .code("6XTR3") + .setPublic(false) + .setHidden(false) .setDisabled(false) - .displayEndsAt("2023-01-27T01:56:48.000000Z") - .displayStartsAt("2024-07-13T16:36:59.000000Z") - .endsAt("2023-08-13T04:41:18.000000Z") - .startsAt("2024-08-07T10:48:03.000000Z") - .discountUpperLimit(6304) - .description("SgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72QaNrZpzYfcTDxwidoKxhgH4IlA44068ievlutMBS788il7UEqSzLy9xJxJq4hHbOAXXY") - .name("VgVjKzFhmxuYV64qe5o2B2OlLXdk5kJbuw4YuJbyUdwtweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424DF7dkeP"); + .displayEndsAt("2021-04-20T22:33:10.000000Z") + .displayStartsAt("2024-04-14T12:03:21.000000Z") + .endsAt("2024-08-02T18:27:10.000000Z") + .startsAt("2021-10-14T12:02:20.000000Z") + .discountUpperLimit(3701) + .description("hWGSp4IuNXEvAYv341undTljbWPhfpiwPMjupC65xVDnAJbsKD6b895iftqbY6") + .name("Ut2zsAKH6lKT6gJXbaEKAddoUM0CRdaSDeoQ9lXXELG9oQdgpEse81Vv"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -311,22 +311,22 @@ void test12() throws ConnectionError, ProcessingError { @Test void test13() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(4539) - .minAmount(4628) - .usageLimit(8984) - .code("prAJuqXJL") - .setPublic(false) + .discountAmount(5488) + .minAmount(216) + .usageLimit(1778) + .code("HeuS") + .setPublic(true) .setHidden(true) .setDisabled(false) - .displayEndsAt("2020-01-05T12:35:41.000000Z") - .displayStartsAt("2022-11-05T08:42:48.000000Z") - .endsAt("2021-09-27T23:52:02.000000Z") - .startsAt("2022-03-31T21:30:07.000000Z") - .discountUpperLimit(1625) - .description("53kHtf9cD7bpNKlOmIqFEpEzlkbZXsHeK96R7zZjofXop8q4Bfps6VchHwOSBaSPaNKxM4bPYPan8UYIRAISeS032nbwP9uwXrTB") - .name("WthKP8SFB1epaCsenfTVlWMFnuMgJI5wZ1cKhV86"); + .displayEndsAt("2024-10-25T09:10:13.000000Z") + .displayStartsAt("2024-08-04T15:29:13.000000Z") + .endsAt("2020-11-25T23:52:44.000000Z") + .startsAt("2022-01-04T15:44:39.000000Z") + .discountUpperLimit(7734) + .description("cydG4CQY3zROLCcC3cDzGwCmJXHiF5C2aKJupg0Hph0EUCWBeCDLYnE6HiVXoG09ihrRj4aejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6F3HhJclpvEl0kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCNC") + .name("l989Inr9h5bKrK2A0m"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -341,23 +341,23 @@ void test13() throws ConnectionError, ProcessingError { @Test void test14() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(8499) + .discountAmount(2313) .setShopSpecified(false) - .minAmount(179) - .usageLimit(4444) - .code("LMEPLj") + .minAmount(198) + .usageLimit(6942) + .code("Ttdvds") .setPublic(false) - .setHidden(true) + .setHidden(false) .setDisabled(false) - .displayEndsAt("2024-05-19T14:02:16.000000Z") - .displayStartsAt("2021-05-13T02:34:55.000000Z") - .endsAt("2023-02-20T00:05:19.000000Z") - .startsAt("2020-01-17T07:31:07.000000Z") - .discountUpperLimit(5181) - .description("E7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2MaByNhkorzLzXS") - .name("7sax7iYOPlAj5UlMDxo6iDarlMDzJC7wMAkFY"); + .displayEndsAt("2023-04-17T07:53:30.000000Z") + .displayStartsAt("2022-11-03T07:21:48.000000Z") + .endsAt("2024-06-16T11:55:02.000000Z") + .startsAt("2022-06-16T11:40:52.000000Z") + .discountUpperLimit(4244) + .description("VoxJr0lAnMovtOnbZ68JstsOcxw5PoatcF0TU5W5omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc2ISnCuuu6HEZICTUsFd55cysKpzPw06buTFvYo4vEubGw6jVH") + .name("h2jNyPqoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPTZ7efHVp4Du6bqVzq0H9hNDIpWOGRlL4QDCIWr"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -372,24 +372,24 @@ void test14() throws ConnectionError, ProcessingError { @Test void test15() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(6440) - .availableShopIds(new String[]{"8903de65-e06d-409b-ab7a-415a3bacd7f0","23dccdf6-20ad-4c86-848f-c8763e77e2ef","3d449d5c-ffe7-4c0c-b012-ec6c8d2cccbb","85d79f04-a867-4a6c-8c76-8532d645b254"}) + .discountAmount(9932) + .availableShopIds(new String[]{"e314c97a-fcd9-425f-b79c-d4ad20eccc7f","6e46bf64-57da-4ba8-8836-d8521456d93b","29d35221-b75c-4059-9e00-a5e969158873","19fa5d4c-ceee-48de-a782-456d7c21529d","a4dfe140-0ba0-4ff5-a8e9-41004cc6d332","c673a25e-1dbb-4379-8d8c-baaab91f0479","8b339601-3507-46e6-81f6-efa7405d23bd","b47e328d-63c3-4d01-9550-9950a1f844e6","c39f56c3-5708-481a-b667-a79d9ec06791"}) .setShopSpecified(true) - .minAmount(9057) - .usageLimit(7685) - .code("OF7q") + .minAmount(7709) + .usageLimit(249) + .code("CFjnl") .setPublic(true) - .setHidden(true) + .setHidden(false) .setDisabled(true) - .displayEndsAt("2022-05-02T10:44:14.000000Z") - .displayStartsAt("2023-05-05T19:51:56.000000Z") - .endsAt("2020-12-25T09:57:39.000000Z") - .startsAt("2020-01-10T18:15:38.000000Z") - .discountUpperLimit(6999) - .description("FW8mYG8iBpA9wK7FerKmMDJDN9kjnE") - .name("AtWkM10yTZC3mt5NbCfjtxFXhJHyZxe38yvM1SEczLfO"); + .displayEndsAt("2024-03-03T20:20:16.000000Z") + .displayStartsAt("2020-05-01T03:38:02.000000Z") + .endsAt("2022-09-25T10:12:21.000000Z") + .startsAt("2022-07-22T13:14:29.000000Z") + .discountUpperLimit(2423) + .description("S8") + .name("FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { @@ -404,25 +404,25 @@ void test15() throws ConnectionError, ProcessingError { @Test void test16() throws ConnectionError, ProcessingError { Request request = new UpdateCoupon( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(7859) - .storageId("2cdaf362-15a4-432c-8e27-a8251a6cb20f") - .availableShopIds(new String[]{"d6c31202-144d-44d3-a075-5acb4c302ebd","1128e664-2df1-4b33-86f3-f609ade1300e","61052515-5082-4f28-9eec-177d6ab7c647","d8952262-d18a-47eb-8807-51264406a515"}) + .discountAmount(4027) + .storageId("db57132d-a53f-46c4-8065-5d1a792bdbf5") + .availableShopIds(new String[]{"a0887bb2-ca9d-410c-b482-e2bf8ab82113","2a0cc9c1-d61e-441b-a213-190068485387","206512db-19c5-4b8a-837b-8ec5b303094e","baa0372e-e2bc-4660-b0bb-50f66733dbb2","f0eb446d-6ed2-46bd-b49f-351f80d6e398","65f3237b-389e-4f60-83f6-b3ab61494c63","84b1be46-1796-48e2-8f92-feda0b98c960","583d27d9-b1d0-4dc7-b98e-1e9909daebf2"}) .setShopSpecified(false) - .minAmount(958) - .usageLimit(5795) - .code("xbbT2umOR") - .setPublic(true) - .setHidden(true) + .minAmount(7333) + .usageLimit(7313) + .code("L") + .setPublic(false) + .setHidden(false) .setDisabled(true) - .displayEndsAt("2020-12-23T22:29:05.000000Z") - .displayStartsAt("2021-12-10T07:01:50.000000Z") - .endsAt("2020-01-27T09:11:32.000000Z") - .startsAt("2022-08-29T03:00:12.000000Z") - .discountUpperLimit(7014) - .description("kPqeu7VG") - .name("hCxzDjEPJsArCV0qEvJPpVoq77PuYo1FVSdDE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQHQhhRs2PIaofbMQ1Wyxx6iPX8wNVpCNUyiEzApKM66ZkEO"); + .displayEndsAt("2023-09-01T21:52:00.000000Z") + .displayStartsAt("2023-12-30T10:22:02.000000Z") + .endsAt("2024-03-14T03:33:21.000000Z") + .startsAt("2024-06-16T12:54:49.000000Z") + .discountUpperLimit(1298) + .description("RMGfDCisIe5qHDsMdG7wbTKEpXzySqqc4sXPad6xuwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZ") + .name("73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZFtSWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREf"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(2060) - .discountPercentage(8252.0); + .discountAmount(1052) + .discountPercentage(6127.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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(6260) - .discountPercentage(6255.0) - .name("1oTpzcZyDOIWVwoFQc"); + .discountAmount(5142) + .discountPercentage(234.0) + .name("ZVoiIjURbvF5cuoyvA3tbiuns"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(9817) - .discountPercentage(9826.0) - .description("DKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZsgSDOAS6m6W4ycEK") - .name("eHr4636lRXTr2iPpZt0j1CI3l6J30qBjXV2f99mPOolq1eiW9RuNHXLsbYmrfHw"); + .discountAmount(64) + .discountPercentage(7230.0) + .description("Y6SNRraYwc8QDfAEf") + .name("V4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3rucfBues6uHoyn0kY9tu08AkjC0WPKbQvYow9FaOH3zD7SQmRuyNCMpGLgUAKK4AYXStTHGYGCT6FSvr"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(1408) - .discountPercentage(933.0) - .discountUpperLimit(182) - .description("AehvKLu9jSykyDMxjQhXvqsNkUwpnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD62pEennAfXO8IbuWWi93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMiAoASOIgsAFMRnA6RqJv3Yoi1HNQ6SUUxfHdkFZrSjoj4E906hjOO") - .name("DSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyxQz7D"); + .discountAmount(6905) + .discountPercentage(7346.0) + .discountUpperLimit(9827) + .description("iGzpWdg5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4IlVfzKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzj") + .name("XEIrL5tEVsPccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJx"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(6289) - .discountPercentage(5503.0) - .startsAt("2022-03-22T13:16:43.000000Z") - .discountUpperLimit(8449) - .description("6SGfEdpD0U") - .name("VkFLTmlxp8SI9cXescrmSD5nkp7THGlyH3t2HB4wHFbCGx0Xzqx2wtaKpu1qdmiKn22F3ctIsxTTV24W3iM"); + .discountAmount(676) + .discountPercentage(4500.0) + .startsAt("2020-12-21T03:23:12.000000Z") + .discountUpperLimit(173) + .description("Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8q") + .name("JafcwBDpLTRN1a0lar5cvmWk6HP3Ed"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(826) - .discountPercentage(5907.0) - .endsAt("2020-01-10T04:04:58.000000Z") - .startsAt("2022-11-05T13:54:18.000000Z") - .discountUpperLimit(359) - .description("Caf4v1F7zb24TvVYyzGoNYLIXxqonkMGqXlJ") - .name("pJRQwp9nn9cv0p2uygmHKqGnn"); + .discountAmount(6701) + .discountPercentage(7349.0) + .endsAt("2024-04-27T14:31:18.000000Z") + .startsAt("2022-01-05T01:25:05.000000Z") + .discountUpperLimit(2952) + .description("t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5PsH9YtmnNiOZyV9AO3DnB1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1") + .name("497oKjyplKXUyjuZoAdZaiUShsjo"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(6817) - .discountPercentage(2689.0) - .displayStartsAt("2020-05-21T18:56:37.000000Z") - .endsAt("2020-01-04T10:37:01.000000Z") - .startsAt("2024-08-02T07:28:33.000000Z") - .discountUpperLimit(7878) - .description("to3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwmdx9H0OP7RXsy9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTKy9baAX") - .name("UrNxQgJv2d1RjRDvxxlQFhM2eopmIlmvqzqnGOYbg6rdqjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T5nZ"); + .discountAmount(3493) + .discountPercentage(9851.0) + .displayStartsAt("2022-07-05T19:31:51.000000Z") + .endsAt("2020-09-05T03:38:35.000000Z") + .startsAt("2020-05-01T08:18:19.000000Z") + .discountUpperLimit(3685) + .description("mD9IJVji3EhQ10nakJ4Xx7B") + .name("sawhL51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8rNkq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVp"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(8544) - .discountPercentage(1041.0) - .displayEndsAt("2020-08-28T09:26:45.000000Z") - .displayStartsAt("2023-08-28T18:10:27.000000Z") - .endsAt("2022-11-29T12:21:33.000000Z") - .startsAt("2020-03-08T19:47:16.000000Z") - .discountUpperLimit(8307) - .description("HuPmGiUoPteza9Foxx3GETJuunMNM7JUVu7YgDI0zSm63cU49za1QJALcpDZJ7YKoaGZqFQRMYj7eI0OiTgfPr68fP2A8RCqVjIMZulltZtjgMfuD") - .name("n3QgsidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0Kto"); + .discountAmount(8622) + .discountPercentage(2679.0) + .displayEndsAt("2023-07-06T10:46:13.000000Z") + .displayStartsAt("2022-01-20T14:33:26.000000Z") + .endsAt("2022-06-13T16:07:21.000000Z") + .startsAt("2023-02-04T15:04:22.000000Z") + .discountUpperLimit(2137) + .description("020lVhpK1ujAV4SIGQkIPmfa5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKvyAHQ0Cmh0GR2iNpQgbrTS2HEffP70DHCUohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBpAMRk3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c") + .name("4Mkgq5YYKEEntoCEiLAHJ2sW9FitjutU"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(9376) - .discountPercentage(4837.0) - .setDisabled(true) - .displayEndsAt("2024-01-04T06:44:39.000000Z") - .displayStartsAt("2024-10-02T12:04:03.000000Z") - .endsAt("2021-02-16T23:36:22.000000Z") - .startsAt("2020-03-04T13:25:02.000000Z") - .discountUpperLimit(7223) - .description("wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltqUbvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3EykNpjwCPjAkzyY2kmUe2JJ53U3N6F0e26pbO3HttlG4e") - .name("yiatMI7VF3dtugJSz1Q3v"); + .discountAmount(7754) + .discountPercentage(9619.0) + .setDisabled(false) + .displayEndsAt("2020-10-02T19:54:19.000000Z") + .displayStartsAt("2020-01-04T03:46:07.000000Z") + .endsAt("2024-09-14T13:06:32.000000Z") + .startsAt("2022-06-11T23:14:15.000000Z") + .discountUpperLimit(2081) + .description("NUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3Hc5MrDSrYQmTFD8MK4LhwIRladKEnUCUBMTsHj") + .name("SLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(8030) - .discountPercentage(5262.0) + .discountAmount(8237) + .discountPercentage(9265.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"); + .setDisabled(false) + .displayEndsAt("2020-12-27T17:08:38.000000Z") + .displayStartsAt("2020-04-13T06:41:24.000000Z") + .endsAt("2020-07-25T03:48:07.000000Z") + .startsAt("2022-03-06T21:58:28.000000Z") + .discountUpperLimit(115) + .description("6Ne3S7kdpHli9FCf9vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn6U1tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5I") + .name("hzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQKCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z9k4WtlP60t1pGDCB7WpLioRLUyl"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(9044) - .discountPercentage(5553.0) + .discountAmount(5822) + .discountPercentage(4887.0) .setPublic(true) .setHidden(true) - .setDisabled(true) - .displayEndsAt("2020-01-26T06:26:17.000000Z") - .displayStartsAt("2022-11-02T01:42:53.000000Z") - .endsAt("2021-06-24T12:35:58.000000Z") - .startsAt("2023-01-22T21:35:42.000000Z") - .discountUpperLimit(5471) - .description("5jqThl0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSuhWG") - .name("p4IuNXEvAYv341undTljbWPhfpiwPMjupC65xVDnAJbsKD6b895iftqbY67Ut2zsAKH6lKT6gJXbaEKAddoU"); + .setDisabled(false) + .displayEndsAt("2023-04-25T16:40:16.000000Z") + .displayStartsAt("2023-07-14T19:29:55.000000Z") + .endsAt("2023-03-04T13:21:01.000000Z") + .startsAt("2021-08-25T22:01:38.000000Z") + .discountUpperLimit(9215) + .description("ylmnzTDYQPTQEhEDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGG") + .name("eSt4nt1ybC0Ywm3a7y1jkUDzYlQVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxqL"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(5837) - .discountPercentage(7725.0) - .code("0CR") + .discountAmount(1875) + .discountPercentage(1095.0) + .code("S4aP0CNMN") .setPublic(true) .setHidden(true) .setDisabled(true) - .displayEndsAt("2022-05-31T19:31:33.000000Z") - .displayStartsAt("2023-02-28T10:08:45.000000Z") - .endsAt("2022-02-21T00:31:29.000000Z") - .startsAt("2023-10-02T22:25:23.000000Z") - .discountUpperLimit(2989) - .description("DeoQ9lXXELG9oQdgpEse81VvpXr3HeuSevupI3Lg6cydG4") - .name("CQY3zROLCcC3cDzGwCmJXHiF5C"); + .displayEndsAt("2021-08-14T06:51:02.000000Z") + .displayStartsAt("2024-07-13T04:05:19.000000Z") + .endsAt("2020-06-07T20:37:49.000000Z") + .startsAt("2024-02-01T01:11:57.000000Z") + .discountUpperLimit(3621) + .description("owWUVfzovzP7VL5ebcijLtVhmlM6kBu7DC") + .name("Ng4aU7BlWsNECFWA4hHlvtcjG"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(9717) - .discountPercentage(9468.0) - .usageLimit(7920) - .code("0Hph0EUC") + .discountAmount(6260) + .discountPercentage(9111.0) + .usageLimit(8784) + .code("dS") .setPublic(false) .setHidden(false) .setDisabled(true) - .displayEndsAt("2022-08-18T13:57:47.000000Z") - .displayStartsAt("2023-02-22T19:34:01.000000Z") - .endsAt("2024-08-16T08:03:14.000000Z") - .startsAt("2023-04-06T10:00:07.000000Z") - .discountUpperLimit(7006) - .description("LYnE6HiVXoG09ihrRj4aejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6F3HhJclpvEl0kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCNCl989Inr9h5b") - .name("KrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtOnbZ"); + .displayEndsAt("2020-05-03T00:39:20.000000Z") + .displayStartsAt("2023-07-19T08:53:08.000000Z") + .endsAt("2023-08-06T09:49:42.000000Z") + .startsAt("2022-12-18T16:00:27.000000Z") + .discountUpperLimit(8949) + .description("7AfSh1iSdnomWlXA8y2vwAsTNYaeLyV7CWdrmk7DRyx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4") + .name("xhz7DzBywKIciMlN0S7L0N0u"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(3254) - .discountPercentage(6072.0) - .minAmount(8091) - .usageLimit(8638) - .code("JstsOcxw5") - .setPublic(false) - .setHidden(true) - .setDisabled(true) - .displayEndsAt("2021-03-10T22:22:52.000000Z") - .displayStartsAt("2023-10-02T15:46:06.000000Z") - .endsAt("2023-01-29T17:10:48.000000Z") - .startsAt("2022-12-29T10:13:04.000000Z") - .discountUpperLimit(2215) - .description("omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc") - .name("2ISnCuuu6HEZICTUsFd55cysKpzPw06buTFvYo"); + .discountAmount(3519) + .discountPercentage(5802.0) + .minAmount(6285) + .usageLimit(3517) + .code("Hj0") + .setPublic(true) + .setHidden(false) + .setDisabled(false) + .displayEndsAt("2023-09-18T17:49:06.000000Z") + .displayStartsAt("2024-07-12T10:56:56.000000Z") + .endsAt("2022-08-25T23:00:47.000000Z") + .startsAt("2021-08-27T12:20:22.000000Z") + .discountUpperLimit(1388) + .description("mI7crwjgiJmBq8x2BMoiejWmPY8qwKCFWRUhTWJtrSHM5KvGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wpFlmsWusC8RGaBKUJdHLf") + .name("9kwaxRbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1By6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8E"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(1678) - .discountPercentage(2946.0) + .discountAmount(7513) + .discountPercentage(9102.0) .setShopSpecified(false) - .minAmount(2440) - .usageLimit(3333) - .code("bGw6jV") + .minAmount(4235) + .usageLimit(98) + .code("PpBk") .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"); + .setDisabled(false) + .displayEndsAt("2023-07-02T19:02:08.000000Z") + .displayStartsAt("2023-12-09T03:37:30.000000Z") + .endsAt("2021-07-09T17:54:30.000000Z") + .startsAt("2024-07-02T23:56:52.000000Z") + .discountUpperLimit(3552) + .description("X3NEh") + .name("O0rjGagOIQ6x9sSfu0zX8zdCniT7rbp4RdF8jzLLX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZhOiq9TM1kLnMOaPoayQ1SL4LwXctk2uyua"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(3006) - .discountPercentage(4902.0) - .availableShopIds(new String[]{"771fe6b5-a671-4848-9798-2a7e10005920","05e9ee26-7344-43f3-8de4-1b1aa013f20a","61a3f6c7-169a-4e1c-a38d-c540d742fab7","672494f7-c7e2-4854-ad4b-17459fcc1670","89e2210d-0c14-4aa9-981a-54faa24d7779","5a6439d3-9dfe-473d-b1a1-378c95ad3002"}) - .setShopSpecified(false) - .minAmount(9253) - .usageLimit(611) - .code("4sXP") + .discountAmount(4260) + .discountPercentage(9259.0) + .availableShopIds(new String[]{"2100cca3-a4fa-44c6-9df0-fbee3a16fe67","c9e9d3ac-f0a0-4a97-bc4c-9312a298096b","16d4d392-6020-43a8-b9a2-f20d24994c30","75be6620-33a5-4a20-9eda-a61024e85142"}) + .setShopSpecified(true) + .minAmount(9512) + .usageLimit(2782) + .code("Fe7") .setPublic(false) .setHidden(false) .setDisabled(false) - .displayEndsAt("2022-04-17T00:14:56.000000Z") - .displayStartsAt("2021-01-02T13:59:05.000000Z") - .endsAt("2021-11-22T18:07:25.000000Z") - .startsAt("2022-05-31T15:32:30.000000Z") - .discountUpperLimit(9623) - .description("uwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZF") - .name("tSWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREfojZVoiIjURbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3r"); + .displayEndsAt("2024-10-21T00:52:25.000000Z") + .displayStartsAt("2022-05-26T12:15:01.000000Z") + .endsAt("2022-10-27T15:45:21.000000Z") + .startsAt("2024-10-10T06:42:41.000000Z") + .discountUpperLimit(2166) + .description("pCer6amUqWii2uDVrmTki6pqO0f8cnptMkBRjmpnnbeCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSblk7QSMdkkKPrtzfsCSKaR3OFn1WKJz5hhBZBCZgSERTDaoK9IqITw9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FG") + .name("0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq6VpVqu1DpFd0JaBsPBEjjxsN82R5bV74h6MclFLskpVJhF8OvhWGp3gTZC60RT"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountAmount(8803) - .discountPercentage(1126.0) - .storageId("7a404fc2-a15c-4c75-a5f3-1c154e869d05") - .availableShopIds(new String[]{"11a110a8-b4b6-455d-9af5-b9c8ce433b13","b84e9ca3-2b91-43ef-a210-58f9c98ad1fe","799609ee-c230-4489-903d-6e8913d2e96b","451d5c3b-b059-4dac-83b9-7e12bc5b9d1d","5d351174-5b75-4081-a5b0-1bb877aeb5c1","1bff186b-16bb-41ea-84c3-d93e56c3e5b0","2fb33710-5185-4fba-97d0-1ecbdc5d18e2","4fa0b651-b4a8-43ff-9903-39a364466b98","42f8d5f6-bfad-46be-bb83-058922628a04","29110f8d-5059-4bef-b739-5f5c305bea46"}) + .discountAmount(1655) + .discountPercentage(539.0) + .storageId("23c415b4-a1e6-4b7d-935a-cea9c244a9aa") + .availableShopIds(new String[]{"42ffc02d-24a0-40b8-babf-21570228a0c2"}) .setShopSpecified(false) - .minAmount(8904) - .usageLimit(3294) - .code("zD7S") - .setPublic(false) + .minAmount(3283) + .usageLimit(8515) + .code("3vDIMc") + .setPublic(true) .setHidden(true) .setDisabled(false) - .displayEndsAt("2024-03-04T08:18:26.000000Z") - .displayStartsAt("2024-02-20T15:40:54.000000Z") - .endsAt("2020-04-15T08:33:57.000000Z") - .startsAt("2023-12-12T01:24:30.000000Z") - .discountUpperLimit(5315) - .description("pGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpWdg5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4Il") - .name("VfzKQeAZtwqv4AGYkQ5Y"); + .displayEndsAt("2020-11-27T09:36:29.000000Z") + .displayStartsAt("2020-04-02T02:48:15.000000Z") + .endsAt("2021-05-26T23:37:07.000000Z") + .startsAt("2021-02-26T12:32:21.000000Z") + .discountUpperLimit(4595) + .description("EkhFzbMP7H4x70jy8CyXSjsNQfhm4JdiSR8LU0sAxVpKo9Pr8tnCR4b3VVcn") + .name("R7ySaTJSLXaRbjFaOCY9HY0faJMcRsZ3tfn14pqdpY2"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(9978.0); + .discountPercentage(654.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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(3445.0) - .name("0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsP"); + .discountPercentage(6363.0) + .name("gOVzxC2AMFcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77FXigkPx1"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(8978.0) - .description("ccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8") - .name("JafcwBDpLTRN1a0lar5cvmWk6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5Ps"); + .discountPercentage(25.0) + .description("7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt7JZTknlcSLOAfgHki7iEUUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOlUDOeBSRiyqeameMaY0bgN8gTUkelv3hkGm") + .name("k4iWQZAVafOlabiOcEnloh2DXft8ZR3ZIT5H8aSOl3MDXnG9yHqEAThwDuq1zew"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(9928.0) - .discountUpperLimit(1593) - .description("tmnNiOZyV9AO3DnB1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8r") - .name("kq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQk"); + .discountPercentage(698.0) + .discountUpperLimit(9868) + .description("sMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDIn3iu") + .name("QrrgeXzyNXNrNkeWa9hWsLSo6RhlRrNdmMatyDW12s5SKsd06fYHa9pHdUJ2NkpD9XRln1g"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(4048.0) - .startsAt("2023-02-25T20:09:17.000000Z") - .discountUpperLimit(358) - .description("a5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKv") - .name("yAHQ0Cmh0GR2iNpQgbrTS2HEffP70D"); + .discountPercentage(5300.0) + .startsAt("2024-09-10T10:34:05.000000Z") + .discountUpperLimit(241) + .description("1AmzenaBAIYsPX5BEVEkSwN7Jl7UfMqNeIWxDQ5mYkDBp76iPlz0WyF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5qnBpeG29hBWbNKIGuoyWD3BHeU5bc") + .name("dtREmG3PoPoUnVURoRDP0303M0EUzCR0XC7UBINw"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(1429.0) - .endsAt("2023-03-24T15:14:16.000000Z") - .startsAt("2022-11-21T09:12:45.000000Z") - .discountUpperLimit(67) - .description("ohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBpAMRk3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9FitjutUJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmm") - .name("XsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3H"); + .discountPercentage(1861.0) + .endsAt("2020-07-26T12:02:57.000000Z") + .startsAt("2024-07-22T21:53:36.000000Z") + .discountUpperLimit(1744) + .description("7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCxlziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9q8fRCM") + .name("2pzYekawpUouvYHKlj0GUL0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(9087.0) - .displayStartsAt("2022-02-12T00:52:45.000000Z") - .endsAt("2023-05-13T08:40:49.000000Z") - .startsAt("2024-08-02T17:07:25.000000Z") - .discountUpperLimit(6290) - .description("DSrYQmTFD8MK4LhwIRladKEnUCUBMTsHjSLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl1nws6Ne3S7kdpHli9FCf9") - .name("vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn"); + .discountPercentage(4826.0) + .displayStartsAt("2023-01-17T06:11:58.000000Z") + .endsAt("2020-04-03T09:24:38.000000Z") + .startsAt("2024-08-29T19:52:43.000000Z") + .discountUpperLimit(8140) + .description("KUg3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yV") + .name("PNCQEFIkbwhO9RJiR7mxn7kYGzShazSiZH6DDfNqfsVRi3zxzsVzVJLxpF9uCjOUSNMH9fWh27PiOpr3HM"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(1850.0) - .displayEndsAt("2023-04-13T11:52:53.000000Z") - .displayStartsAt("2021-07-26T11:21:57.000000Z") - .endsAt("2024-06-30T03:27:13.000000Z") - .startsAt("2020-02-14T18:14:30.000000Z") - .discountUpperLimit(1447) - .description("tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQ") - .name("KCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z"); + .discountPercentage(4301.0) + .displayEndsAt("2021-03-20T17:33:12.000000Z") + .displayStartsAt("2023-07-26T06:27:00.000000Z") + .endsAt("2023-05-17T11:08:47.000000Z") + .startsAt("2021-04-04T05:41:45.000000Z") + .discountUpperLimit(7912) + .description("b0Gko8iE0P3Cu0AOaTlKzyVFYYoK00acoGlEqYYGWZUMgU5LJ8ned") + .name("bEkL6VCbZlYCZFu0YjXrvick1kbCzvMElblaTUs"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(2100.0) - .setDisabled(false) - .displayEndsAt("2023-05-19T00:53:00.000000Z") - .displayStartsAt("2023-12-25T17:43:44.000000Z") - .endsAt("2022-01-27T15:06:39.000000Z") - .startsAt("2020-04-06T00:43:01.000000Z") - .discountUpperLimit(3633) - .description("pGDCB7WpLioRLUylhwp3jBXylmnzTDYQPTQEhEDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3a7y1jkUDzYl") - .name("QVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkE"); + .discountPercentage(1515.0) + .setDisabled(true) + .displayEndsAt("2024-03-07T11:11:00.000000Z") + .displayStartsAt("2020-02-10T20:13:58.000000Z") + .endsAt("2022-06-28T12:45:18.000000Z") + .startsAt("2023-01-01T05:30:40.000000Z") + .discountUpperLimit(2014) + .description("Ti4syFdijXYZ6Fkp0v2rObj5KP7CaX5R9O7hnOQMfDj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq2k3ETquM3SQujWFDE153B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1zaeUGprRtPpZgZ") + .name("OhvmvIjVKe7aM7QiN4LuTtB8ZF5mN9clYyKl8cUsYw8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSBniTvgiFcfFWfXoobW2"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(3613.0) - .setHidden(false) + .discountPercentage(9741.0) + .setHidden(true) .setDisabled(true) - .displayEndsAt("2021-11-30T21:36:02.000000Z") - .displayStartsAt("2021-06-16T21:49:18.000000Z") - .endsAt("2020-07-15T13:10:21.000000Z") - .startsAt("2021-05-03T22:35:12.000000Z") - .discountUpperLimit(4126) - .description("OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxqLSG8S4a") - .name("P0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kB"); + .displayEndsAt("2021-08-01T22:01:27.000000Z") + .displayStartsAt("2024-03-02T01:55:16.000000Z") + .endsAt("2022-02-05T01:56:20.000000Z") + .startsAt("2020-02-08T08:00:18.000000Z") + .discountUpperLimit(41) + .description("2zSsjxSJQCC2TKE3m70u0i2E7e3WCog3HknLhb4mGHjaX24jJAlJFQ82MhyQQoipgFNSux0jeobdQD1VXjUggH7qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9iCp3raZonaiDazAfoVN5ZcNoMxEFE") + .name("1voG9m7gWIlidcsFhnnSlOPQSKVW980GqQVfPuvUPiEFV6mDyi"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(9845.0) - .setPublic(false) + .discountPercentage(6209.0) + .setPublic(true) .setHidden(true) - .setDisabled(true) - .displayEndsAt("2020-08-14T17:00:51.000000Z") - .displayStartsAt("2023-01-23T22:18:17.000000Z") - .endsAt("2022-07-30T11:13:18.000000Z") - .startsAt("2020-05-26T01:14:15.000000Z") - .discountUpperLimit(7893) - .description("7BlWsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomWlXA8y2vwAsTNYaeLyV7CWdrmk7DRyx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4xhz7DzBywKIciMlN0S7L0N0uBHj0xIlmI7crwjgiJmBq8x2BMoiejWmPY8qwKCFWRUhTWJtrSHM5") - .name("vGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wp"); + .setDisabled(false) + .displayEndsAt("2023-08-24T15:08:00.000000Z") + .displayStartsAt("2022-12-11T03:32:19.000000Z") + .endsAt("2022-05-10T13:45:35.000000Z") + .startsAt("2021-04-19T02:51:39.000000Z") + .discountUpperLimit(5432) + .description("FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7b") + .name("IQ97lNo"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(3782.0) - .code("s") + .discountPercentage(1230.0) + .code("Eqq") .setPublic(false) .setHidden(true) .setDisabled(false) - .displayEndsAt("2021-12-28T17:38:18.000000Z") - .displayStartsAt("2024-04-24T07:37:39.000000Z") - .endsAt("2022-04-08T06:55:14.000000Z") - .startsAt("2024-07-21T19:55:51.000000Z") - .discountUpperLimit(4577) - .description("BKUJdHLf9kwaxRbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1By6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9VDX3NEhsO0rjGagOIQ6x9sSfu0zX8zd") - .name("niT7rbp4RdF8jzLLX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZhOiq9TM1kL"); + .displayEndsAt("2023-07-22T17:19:45.000000Z") + .displayStartsAt("2024-03-26T09:49:50.000000Z") + .endsAt("2022-09-01T14:05:02.000000Z") + .startsAt("2024-03-11T22:21:16.000000Z") + .discountUpperLimit(9515) + .description("1P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1Cipp2CPMRifbrHbdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w3aEMSDM") + .name("H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp2"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(8962.0) - .usageLimit(1825) - .code("MOaPoa") + .discountPercentage(9393.0) + .usageLimit(5856) + .code("GV") .setPublic(false) - .setHidden(false) + .setHidden(true) .setDisabled(false) - .displayEndsAt("2023-09-10T13:28:35.000000Z") - .displayStartsAt("2022-08-09T04:43:07.000000Z") - .endsAt("2021-06-17T02:46:52.000000Z") - .startsAt("2021-05-28T17:55:21.000000Z") - .discountUpperLimit(7102) - .description("1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIECbUavopCer6amUqWii2uDVrmTki6pqO0f8cnptMkBRjmpnn") - .name("beCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSblk7QSM"); + .displayEndsAt("2021-05-10T18:37:47.000000Z") + .displayStartsAt("2022-03-14T09:04:06.000000Z") + .endsAt("2024-10-31T03:22:52.000000Z") + .startsAt("2024-05-05T19:48:57.000000Z") + .discountUpperLimit(6310) + .description("thlN8cTNxtClPPAh3ydu7juMaO7kqGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOf") + .name("uO3LMtzPm5pmHiztzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2Z23Mwd98ipOldTUQCXPcZtLDZ6t1d7NhS3tI"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(6628.0) - .minAmount(4459) - .usageLimit(4224) - .code("kKPrtzfsC") + .discountPercentage(5501.0) + .minAmount(4194) + .usageLimit(7962) + .code("aQ9UqJHQZF") .setPublic(false) .setHidden(false) .setDisabled(true) - .displayEndsAt("2023-06-29T08:12:17.000000Z") - .displayStartsAt("2020-07-18T08:24:12.000000Z") - .endsAt("2023-06-11T14:41:15.000000Z") - .startsAt("2023-03-08T13:39:55.000000Z") - .discountUpperLimit(7603) - .description("OFn1WKJz5hhBZBCZgSERTDaoK9IqITw9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq6VpVqu1DpFd0JaBsPB") - .name("jjxsN82R5bV74h6MclFLskpVJhF8OvhWGp3gTZC60RTw4fZ8zWBqSC3vDIMcnooU2vsEkh"); + .displayEndsAt("2020-11-29T07:09:26.000000Z") + .displayStartsAt("2022-09-25T23:17:33.000000Z") + .endsAt("2024-04-23T20:32:45.000000Z") + .startsAt("2022-01-03T16:39:50.000000Z") + .discountUpperLimit(9479) + .description("a7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcINC0MaOVTzOYUS4YiFzadS1dG4VhCAXdvLcusNkP92lEHAtBr5") + .name("uMSg7mI2h9"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .discountPercentage(8196.0) - .setShopSpecified(false) - .minAmount(5806) - .usageLimit(9152) - .code("MP7") + .discountPercentage(7733.0) + .setShopSpecified(true) + .minAmount(8127) + .usageLimit(6429) + .code("NjF9pGXP") .setPublic(true) - .setHidden(false) + .setHidden(true) .setDisabled(true) - .displayEndsAt("2023-12-29T13:03:03.000000Z") - .displayStartsAt("2022-05-28T12:08:14.000000Z") - .endsAt("2021-04-16T05:06:06.000000Z") - .startsAt("2023-04-05T21:00:40.000000Z") - .discountUpperLimit(6792) - .description("0jy8CyXSjsNQfhm4JdiSR8LU0sAxVpKo9Pr8tnCR4b3VVcnR7ySaTJSL") - .name("XaRbjFaOCY9HY0faJMcRsZ"); + .displayEndsAt("2022-03-29T06:12:34.000000Z") + .displayStartsAt("2023-01-01T02:47:09.000000Z") + .endsAt("2023-03-05T20:40:00.000000Z") + .startsAt("2021-05-27T21:05:58.000000Z") + .discountUpperLimit(1816) + .description("6EH9oG2E8mJwg74tJdyJ5Llab29gfUQ6hTQL306GhITMLHDmfb2965KcWooPsLAa0LofoeILq2j1JbokM11iel9") + .name("SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .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(6419) - .usageLimit(2905) - .code("gOV") - .setPublic(false) - .setHidden(true) + .discountPercentage(892.0) + .availableShopIds(new String[]{"f9a62b30-ed09-452e-8cdb-d1cbc7d8780b","3e09529c-ebed-497e-a26e-00af28f10e7f","55c6bdb0-3a03-408e-8408-fa932db98736","36af1fa0-8575-4931-a171-7222f25e2858","de4853fd-8ad5-4667-8cd8-de16a9a6034c","e2838f50-5a71-4288-b290-3b61bf1db29f","843c4583-f3a8-4fd2-b730-e438e27c28e1"}) + .setShopSpecified(false) + .minAmount(8112) + .usageLimit(7410) + .code("HosccmX") + .setPublic(true) + .setHidden(false) .setDisabled(true) - .displayEndsAt("2021-09-04T11:53:12.000000Z") - .displayStartsAt("2023-06-16T21:20:50.000000Z") - .endsAt("2022-10-05T16:52:43.000000Z") - .startsAt("2023-03-31T03:38:41.000000Z") - .discountUpperLimit(7816) - .description("FcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt7JZTknlcSLOAfgHki7iE") - .name("UUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOlUDO"); + .displayEndsAt("2020-06-17T17:34:17.000000Z") + .displayStartsAt("2023-10-10T04:01:15.000000Z") + .endsAt("2022-01-08T07:50:09.000000Z") + .startsAt("2020-11-04T11:00:12.000000Z") + .discountUpperLimit(4235) + .description("5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JEew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVUwFU1amkd1FBZBysFgH8TiyAaF4dUSAbqyi") + .name("68iyJ302sQl233vCftoqwC5tymvF1K23X2uYu46ypSW9PxtiaID1SUCfz9yEelMoF9a26c2RLHzQWOO42l0o0g8SXRzZ3pUKHHeXuuwg12Ygg3AsTOryINKyRmJ3gW"); 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( - "98643617-5492-4616-8d92-3e5eaa3a95f1" + "7a54302d-6565-473e-baee-952044441727" ) - .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(false) + .discountPercentage(579.0) + .storageId("ca16bf19-bd93-4944-a309-996d68145cf3") + .availableShopIds(new String[]{"1b76d32d-0ef6-4890-8feb-2d0176d029a3","cc36347f-1f06-46cd-b2aa-1e3f26a275ca","ff0f64fb-528b-4e65-a305-d550d14af7a3","bcf6b374-5b0b-443c-9bc7-462fa734ff2f","5fea2b3c-b398-4ec6-a8a3-f15e064b9176","54667a34-0607-458b-a19a-3bc90a4cf5df"}) + .setShopSpecified(false) + .minAmount(4375) + .usageLimit(7720) + .code("aG") + .setPublic(true) + .setHidden(true) .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"); + .displayEndsAt("2020-02-07T18:36:55.000000Z") + .displayStartsAt("2021-10-08T12:14:14.000000Z") + .endsAt("2021-07-10T06:28:19.000000Z") + .startsAt("2022-03-03T13:30:38.000000Z") + .discountUpperLimit(1843) + .description("fEQ") + .name("ezBo8XnXONHGXDMcl8tuhVdB5KkP8PHvZEmmcBKkGsr9sdEDTBkey7pr4d2jpaf36YY6mrG9Y2ztoKUUUx5B1bSO8xEgnoe60dnWTCVmm3x115QsBZT6dCGgqZsePkl6"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) { diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateShopTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateShopTest.java index feb6c5b..612bc79 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateShopTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateShopTest.java @@ -12,7 +12,7 @@ public class UpdateShopTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d6211e8a-dcc3-4522-9d56-0f6c57ced4cd" ); try { PartnerAPITest.getClient().send(request); @@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d6211e8a-dcc3-4522-9d56-0f6c57ced4cd" ) - .status("active"); + .status("disabled"); 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 UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d6211e8a-dcc3-4522-9d56-0f6c57ced4cd" ) - .canTopupPrivateMoneyIds(new String[]{"9852d914-b345-425b-93b8-dca15f403b48","1bf8aaff-f5ff-4748-8aad-f96094ec44a3","ae46d9dc-d41d-4508-be66-c4bc7a989435","b2a9a4a4-0eb0-4cd4-9582-72df747d59c3","81904a92-37b5-4b79-9c90-37b26d46d548","6d8e4e09-16a2-4e13-8e81-ae1e8e0837f2"}) - .status("active"); + .canTopupPrivateMoneyIds(new String[]{"219e982e-e8a1-4c48-ab54-d05c6794ff48","89e791c5-6afb-4960-87af-d4526e658829","a6ee07d7-e4d5-4142-81d6-05d599e461da","e09c71db-a7e1-4fb1-9b86-ecf21b2f93ed","34c10cff-767c-4841-b87a-e61fc96a90df","e1db021a-0146-4214-95c6-d2b66cba6b82"}) + .status("disabled"); 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 UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d6211e8a-dcc3-4522-9d56-0f6c57ced4cd" ) - .privateMoneyIds(new String[]{}) - .canTopupPrivateMoneyIds(new String[]{"5728d3b3-a034-4f8b-a8a8-b744bd59d03b","ee49f0b1-f1f5-4d78-af49-cbe26410ef5f","1d6f1f75-aba0-4964-9080-53e7f02256cb","a3c1cb63-065f-48c1-8834-47ccddca635e","02d62971-ba05-4da9-b476-808e999c7787","ed6de882-f06e-4259-93e4-d9027866f90f","b002ff05-e505-4cfc-928c-07ca0164397f"}) + .privateMoneyIds(new String[]{"3867ad2c-76f6-406c-8d5d-6d7db08283c9","22ff837f-527b-411b-b406-651ed0acb405","2bdaad1a-56dc-44ff-b5af-db6f42754a4f","93e5d6c5-d810-4e6e-a65f-c6c0aa850429","cd08c5bf-054b-42f2-a1ce-139e56cf865d","29b9c2ea-c405-463f-ba92-8621af0ec32d","45af6670-f62a-4011-9e2f-1df38a71484e","645e1e39-46d3-4f18-bfa9-d36a95954b8a"}) + .canTopupPrivateMoneyIds(new String[]{"ed8a4f16-96f8-4f74-b8f2-4267e97de3f3","29784c37-bc2d-40e5-88fe-09307dbe535e","90b4bce4-5312-4e1c-abe9-3edbe62b54c1","69ed5fc1-f2e1-471a-b86a-81774aaaf1d8"}) .status("disabled"); try { PartnerAPITest.getClient().send(request); @@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError { @Test void test4() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d6211e8a-dcc3-4522-9d56-0f6c57ced4cd" ) - .externalId("VxWy0PirB5ccKSjPsnaJy0xSUaUZ3K") - .privateMoneyIds(new String[]{"67971269-72bb-4b70-ae5d-2347d45e0383","07e91f76-d9e5-4618-8ef0-d9b153d44db1","9b1e1f5f-eed7-4f27-870d-c4e9dfcb6d96","86f77bd3-6b72-4db0-9a29-9cb8c1440675","6e6cf586-7f1b-4e43-baa5-2eae1952f6c2","7d1294c0-6b30-463e-9dfc-a91e270b838f","cc70784a-2f84-49d3-9eac-60f400b15928","72200037-d68b-459a-a807-5cda45b9949c","3f345ead-5c4e-41cc-b663-1b76f0c059ff"}) - .canTopupPrivateMoneyIds(new String[]{"904eec3b-0c89-4b3a-b1c2-656e2f941c68","e86447ac-6bc7-4fee-a725-45793daf15d2","6cb8fb12-1ea2-4073-a4b1-95daf3408162"}) - .status("disabled"); + .externalId("FLCB1XlvzB") + .privateMoneyIds(new String[]{"4c224461-427a-43be-93c3-bc4571a2b028"}) + .canTopupPrivateMoneyIds(new String[]{"c2d4fb9f-b731-4be8-bd60-3ac523fc7c0c","ef8f2447-5086-4da0-bcb2-db2780e079c5","c3867c06-2791-476b-abdd-065e7e5e540c","d15debd0-0532-4a0d-ae56-942545d41008","a926f31d-6a49-4916-90f9-aa02547bc73e","48a18b37-8d7b-4d48-be89-a085f1ee2557","fde796b7-db24-4fc5-9ee5-91a70488dd5c","cf62acb7-30a8-49a9-bef3-ba6b0eff43c2","d3beb8b9-c73a-4edd-a008-7bbc7537621f","345c0d12-b142-4029-8228-74b1531a389e"}) + .status("active"); 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 UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d6211e8a-dcc3-4522-9d56-0f6c57ced4cd" ) - .email("EX46DL0EY9@Dfg2.com") - .externalId("2KSBJ32yceHk") - .privateMoneyIds(new String[]{}) - .canTopupPrivateMoneyIds(new String[]{"47031610-468f-480e-8a03-0701ad16ffd3","51f19c19-1d35-422e-b372-bbdffd022a2a","07488c1a-ee51-45d9-8672-84a561fc77fd","1aebc8c9-61c5-4052-b61c-25ecad8e7cb0","e5d8604b-05f2-4cfd-9be9-d4f575f3e55f"}) - .status("active"); + .email("YNClE0n87A@30l6.com") + .externalId("v") + .privateMoneyIds(new String[]{"338d9290-55f0-485c-be1b-ed3fcd1c34ff","5258974e-342a-4014-bb5b-03acda814fdd","6f01a7d7-e308-46bf-88b9-cf88c5623f75"}) + .canTopupPrivateMoneyIds(new String[]{"ab3091ae-39f8-48b4-99a6-42dff95c9471","5a68800c-8596-4032-bc92-26edac99e578","c5fed56a-1c94-46dd-8975-6a62e2f55fb5","f7d68c57-6239-4a64-8db4-11e6f5244061","1c94a6b7-3d2d-4339-a094-d5539a6ebf6e","3a8e89cf-1048-47d3-a65b-13ea9d162b0a","828f304b-c15b-4beb-b0b3-927c971ca951","8c2ae8df-2d97-406b-a9c9-9e9c7d29029d"}) + .status("disabled"); 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 UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d6211e8a-dcc3-4522-9d56-0f6c57ced4cd" ) - .tel("01813768343") - .email("nnsKFojcLO@uuur.com") - .externalId("aaP5zVuitJAWBnMTQrqQLb4F279") - .privateMoneyIds(new String[]{"fc9ec563-0e05-4b07-b364-b2108203d244","cf9981f4-70bc-46a6-834d-d1b3c74ccdac","c5c87499-e6f5-432c-97c0-408bc5a6a98c","9eb27d88-aa5e-4c53-a11d-87c540654e59","c1060862-d4f5-4d98-a17e-eeba284b644f","3286cee0-dff9-42a7-b1c1-12973aca16f4","3532624a-9219-4014-aa9c-16a002783062"}) - .canTopupPrivateMoneyIds(new String[]{"5ca9c410-3c7b-41da-a08c-9999113a20dc","47f4bac6-40f6-4985-988c-e63440782044","0d9d74dc-5ed4-45f2-a5db-d2807b407e6e","bd9d470d-f19b-4b59-bcac-89ea1922f35b","7d0459ff-ad9a-4710-b6bb-a3f2f35533c5","a3efa5b9-d4e0-4348-b55e-1c93e807f32b"}) - .status("disabled"); + .tel("070-9733998") + .email("RXSkWvgwMd@C6Ys.com") + .externalId("QVBM615BSLRTB4phpjbt6QHeDKx") + .privateMoneyIds(new String[]{"b8bc6296-47e4-481f-85e7-e426e4840f8a","56518360-3db3-474f-9778-4efb9cc9c928","745d48df-4647-446c-b35a-16e1289c9d56","61afcb24-9d53-4e3f-b0af-480505859f88","1614ee9d-245d-4b8f-9b1a-24eafdc671ef","1f67003b-198f-4417-91b6-d00155e317e6","1b01f55d-8466-4b59-8165-6b5fbc14e5ab","a1e10480-db36-4d15-846b-8dbb7d81be70"}) + .canTopupPrivateMoneyIds(new String[]{"93ad6dd8-197c-493e-a987-3dc3275adc54","710cab69-7953-4a42-95c9-086513740635","d7705f2d-b269-44db-b1c9-bb061b5ba49a","2389514d-4d4f-4f63-aa79-57f169320c05","c3192ac2-375f-463b-8bec-e65348eaa446","a89b11c7-de7c-4360-8a4c-6e208d76b3f5","9cf4ef24-8fbd-4e2c-9817-2df1523230bc","d93a0744-4796-44ee-91b2-b46f7727d195","44c6cd4d-ab86-4cfd-8059-c2d288146713","6b8fb90c-f506-49a4-9dc6-2685ae0a0a68"}) + .status("active"); 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 UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d6211e8a-dcc3-4522-9d56-0f6c57ced4cd" ) - .address("Gm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y") - .tel("070697-082") - .email("EUoqg0zXsu@vc8L.com") - .externalId("4mbP1hy") - .privateMoneyIds(new String[]{"62f6f59d-b5d0-4582-84af-aa2ba2787ce2","2ae8bbce-0a80-4956-aae3-6b9d4ff9bbbe","9b28ea88-92ba-4c93-89e0-ed13e3122e9f","f799f274-b4af-4935-b951-2ba77e63ed01","4addd0ce-9a1c-4c00-a9e0-9da37efd6119","cd0f48ea-4356-40db-aebf-1d9c92faf87d"}) - .canTopupPrivateMoneyIds(new String[]{}) + .address("cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC39nZBUv4F8J7UzyDYEv7bctcmIqdmvTV8RBzp0gixsKZWoUeORL98QDv9TW3tonru5DxxR1kiR4daTST401zYU9O5bmxo5R8HDeIrg") + .tel("04-498-221") + .email("OsOxJyiut3@0oRs.com") + .externalId("SLi4FAWj") + .privateMoneyIds(new String[]{"944f2b9a-63a3-4bce-af22-1b7f000d4946","79e8a56c-c102-4cfd-8d84-85a9dc1fcc47","ffd9c668-871b-4acf-8037-b0cdc78f776a","57527f0a-d005-4fef-8d9f-45ae768bb684","cc5754a9-a046-48e9-884c-6ca252efadf4","0a61a44e-620d-4739-99bb-43f1a5f9db79"}) + .canTopupPrivateMoneyIds(new String[]{"1bf80fa0-418d-4b52-9eb5-f953090a782d","e5b2dbe5-dc98-462e-bb6c-8fb410f9b122","c2e4ff7c-6df2-4f71-aa71-db44a3dff4b6","8eff0bed-7824-491d-8232-0a67044736be","8188d3ab-d3a9-407a-ab28-ac1978f87e28","32801030-1446-45c9-a4ce-6453eab16da9","423de480-2ce2-447c-9d8f-099c0f86007d"}) .status("disabled"); try { PartnerAPITest.getClient().send(request); @@ -168,15 +168,15 @@ void test7() throws ConnectionError, ProcessingError { @Test void test8() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d6211e8a-dcc3-4522-9d56-0f6c57ced4cd" ) - .postalCode("3254867") - .address("40vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEyp") - .tel("0812-256-2716") - .email("GgyrO7oaIP@GJ7J.com") - .externalId("BC1o5Rc9") - .privateMoneyIds(new String[]{"9a97ec77-edbb-4466-ad8a-60d6f4c9e8f2","3cdf80d7-22f2-4e4b-a4b8-892059fc8dda","39c4f4e3-9a6b-456e-a0e4-77968729de97","d8ab7c50-6e6e-4a1c-b09e-001fbe9d0ab3","34ecc8ee-2dbf-4128-a512-4f123e4c0adb","9e2cc413-bb91-4ffc-8c6f-56cde6c42624"}) - .canTopupPrivateMoneyIds(new String[]{"099843e5-94af-4002-ace5-e48ef262e4b3"}) + .postalCode("028-2419") + .address("3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9") + .tel("0724072427") + .email("mC3lYSdkRd@IHlB.com") + .externalId("iMGslQeLzTg9FCP6b") + .privateMoneyIds(new String[]{"b813703f-afa3-4bbd-ac18-3f13103ffdbc","53b4d05f-60e0-41eb-81a4-e28d1bcbfabb","1d4d19ce-1545-4f89-bc86-33d75eed2a5a","979933b0-dff8-45bc-87bd-62837cc65c22","3b501a01-ce6b-416f-9b35-ef2cb20969ff","30bb299f-e7a4-42f2-a8bf-a3f4b36db3d8","fb2721e4-81df-4128-ab6a-ba43619bcd0b","272b3c5a-3ab6-4e06-8bde-448fd2a73794","2f248e15-ed10-4b58-94ad-26ebd47cf6e9","8ffb3e4d-86f8-44b1-ab7f-2f3d07e56a48"}) + .canTopupPrivateMoneyIds(new String[]{"da81ff14-47d4-4556-bd86-76e2840b2470","5cd70b21-2eaf-4212-9285-bca164d68188","1bd788f8-ae37-4539-8987-cd9fff679cae","9f2f1a71-97ef-4f81-86d4-dd2f5c144aaa","a7551e28-11d6-40e9-97de-ecc70a6d636b","e7d2ff0d-e93b-4722-bf37-7b238b362472"}) .status("active"); try { PartnerAPITest.getClient().send(request); @@ -192,16 +192,16 @@ void test8() throws ConnectionError, ProcessingError { @Test void test9() throws ConnectionError, ProcessingError { Request request = new UpdateShop( - "a91dc663-99e6-4380-8321-0b2523e86c7b" + "d6211e8a-dcc3-4522-9d56-0f6c57ced4cd" ) - .name("pOb8vOALeCaVZzJ21Wkjwh096vY0") - .postalCode("7961126") - .address("OxtHaQb") - .tel("05860669461") - .email("YgBl99xXSI@Gv3O.com") - .externalId("n3SH7ljqEdpqCcPOpWjivoOnvdw0Y") - .privateMoneyIds(new String[]{"cbe99a17-ac76-4c7d-ace4-4c3b5e7dbab3","b7aaa03c-b649-4565-8a17-711186b577f9","022dade8-883f-412d-92af-d454cb75da7d","7d88e26c-81d2-4022-a7a3-8b545cd4aad4","1c373fdd-b6a2-4abd-b2ba-464e6e9bd15e","32548178-5ed3-4769-b068-e614e5a677da"}) - .canTopupPrivateMoneyIds(new String[]{"9a2d9c52-141c-48ec-8c82-5f2f7a19f5dc","e8460319-2210-476f-ac22-b0ab2144bb06","e156e2cc-0722-4bfd-bf9b-d0882f60821d","38553eea-774d-4514-ad91-d2bea7a7afcc"}) + .name("Kgu2ihoMxDsfU3TC1A8fV5nkzyaMo6HNFjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor") + .postalCode("429-4486") + .address("dTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si7WktomTSIs3sss0bSZ1") + .tel("00404-7685") + .email("0iBD2et6R8@9vRe.com") + .externalId("IZbMh6MfShA8D4Ev7O7TGT70LQ") + .privateMoneyIds(new String[]{"83a73614-6465-4af0-9178-79684654148e","76a70713-a8d8-4b94-b6ae-bd08b4e6ad13"}) + .canTopupPrivateMoneyIds(new String[]{"4364374a-51f2-4bdf-be94-fb7178057d7f","76fe8201-9318-431f-8ca7-4ff74e2153bc","32725ac3-65aa-4585-8bf7-032bbc42017a","d48a03dd-ef76-4f1f-8776-b31bac847203","8cfd8f35-d374-4729-bc83-840ed670b558","62e8fe42-f939-4eb3-bd5f-7fb4844dbeb1"}) .status("disabled"); try { PartnerAPITest.getClient().send(request); diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java index 3fa9335..d88d498 100644 --- a/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java +++ b/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java @@ -12,7 +12,7 @@ public class UpdateWebhookTest { @Test void test0() throws ConnectionError, ProcessingError { Request request = new UpdateWebhook( - "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" + "93faaa24-acef-45d6-b3eb-55d5b1f508c8" ); try { PartnerAPITest.getClient().send(request); @@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError { @Test void test1() throws ConnectionError, ProcessingError { Request request = new UpdateWebhook( - "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" + "93faaa24-acef-45d6-b3eb-55d5b1f508c8" ) .task("process_user_stats_operation"); try { @@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError { @Test void test2() throws ConnectionError, ProcessingError { Request request = new UpdateWebhook( - "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" + "93faaa24-acef-45d6-b3eb-55d5b1f508c8" ) - .setActive(true) + .setActive(false) .task("process_user_stats_operation"); try { PartnerAPITest.getClient().send(request); @@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError { @Test void test3() throws ConnectionError, ProcessingError { Request request = new UpdateWebhook( - "42571d9f-a90d-4a7f-bf30-c3ee221f1b72" + "93faaa24-acef-45d6-b3eb-55d5b1f508c8" ) - .url("QNFRYY") - .setActive(false) - .task("process_user_stats_operation"); + .url("r") + .setActive(true) + .task("bulk_shops"); try { PartnerAPITest.getClient().send(request); } catch (PartnerRequestError e) {