From da4e11c181a4494b8b290c114807b4dcbe95e6c0 Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Thu, 23 May 2024 13:46:12 +0000 Subject: [PATCH] generate --- docs/README.md | 17 +- docs/account.md | 2 + docs/bank_pay.md | 97 +- docs/bill.md | 41 +- docs/bulk.md | 18 +- docs/campaign.md | 439 +- docs/cashtray.md | 233 +- docs/check.md | 380 +- docs/coupon.md | 91 +- docs/customer.md | 201 +- docs/event.md | 106 +- docs/organization.md | 31 +- docs/private_money.md | 15 +- docs/responses.md | 17 - docs/shop.md | 49 +- docs/transaction.md | 386 +- docs/transfer.md | 45 +- docs/user.md | 20 - docs/user_device.md | 9 + docs/webhook.md | 133 +- partner.yaml | 473 +- src/index.test.ts | 8777 +++++++++-------- src/index.ts | 18 +- src/request/CreateCampaign.ts | 6 + src/request/CreateCpmTransaction.ts | 7 +- src/request/CreateExternalTransaction.ts | 7 +- src/request/CreatePaymentTransaction.ts | 7 +- src/request/CreateTransactionWithCashtray.ts | 34 + .../GetExternalTransactionByRequestId.ts | 20 + src/request/UpdateCampaign.ts | 6 + src/response/Product.ts | 1 + 31 files changed, 6699 insertions(+), 4987 deletions(-) create mode 100644 src/request/CreateTransactionWithCashtray.ts create mode 100644 src/request/GetExternalTransactionByRequestId.ts diff --git a/docs/README.md b/docs/README.md index 34a9930..641d5f6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -196,8 +196,8 @@ try { - [ListTransfersV2](./transfer.md#list-transfers-v2): ### Check -- [CreateCheck](./check.md#create-check): チャージQRコードの発行 - [ListChecks](./check.md#list-checks): チャージQRコード一覧の取得 +- [CreateCheck](./check.md#create-check): チャージQRコードの発行 - [GetCheck](./check.md#get-check): チャージQRコードの表示 - [UpdateCheck](./check.md#update-check): チャージQRコードの更新 - [CreateTopupTransactionWithCheck](./check.md#create-topup-transaction-with-check): チャージQRコードを読み取ることでチャージする @@ -208,15 +208,16 @@ try { - [UpdateBill](./bill.md#update-bill): 支払いQRコードの更新 ### Cashtray +- [CreateTransactionWithCashtray](./cashtray.md#create-transaction-with-cashtray): CashtrayQRコードを読み取ることで取引する - [CreateCashtray](./cashtray.md#create-cashtray): Cashtrayを作る -- [GetCashtray](./cashtray.md#get-cashtray): Cashtrayの情報を取得する - [CancelCashtray](./cashtray.md#cancel-cashtray): Cashtrayを無効化する +- [GetCashtray](./cashtray.md#get-cashtray): Cashtrayの情報を取得する - [UpdateCashtray](./cashtray.md#update-cashtray): Cashtrayの情報を更新する ### Customer +- [DeleteAccount](./customer.md#delete-account): ウォレットを退会する - [GetAccount](./customer.md#get-account): ウォレット情報を表示する - [UpdateAccount](./customer.md#update-account): ウォレット情報を更新する -- [DeleteAccount](./customer.md#delete-account): ウォレットを退会する - [ListAccountBalances](./customer.md#list-account-balances): エンドユーザーの残高内訳を表示する - [ListAccountExpiredBalances](./customer.md#list-account-expired-balances): エンドユーザーの失効済みの残高内訳を表示する - [UpdateCustomerAccount](./customer.md#update-customer-account): エンドユーザーのウォレット情報を更新する @@ -237,7 +238,6 @@ try { - [UpdateShop](./shop.md#update-shop): 店舗情報を更新する ### User -- [GetUser](./user.md#get-user): ### Account - [ListUserAccounts](./account.md#list-user-accounts): エンドユーザー、店舗ユーザーのウォレット一覧を表示する @@ -254,18 +254,19 @@ try { ### Event - [CreateExternalTransaction](./event.md#create-external-transaction): ポケペイ外部取引を作成する - [RefundExternalTransaction](./event.md#refund-external-transaction): ポケペイ外部取引をキャンセルする +- [GetExternalTransactionByRequestId](./event.md#get-external-transaction-by-request-id): リクエストIDからポケペイ外部取引を取得する ### Campaign -- [CreateCampaign](./campaign.md#create-campaign): ポイント付与キャンペーンを作る - [ListCampaigns](./campaign.md#list-campaigns): キャンペーン一覧を取得する +- [CreateCampaign](./campaign.md#create-campaign): ポイント付与キャンペーンを作る - [GetCampaign](./campaign.md#get-campaign): キャンペーンを取得する - [UpdateCampaign](./campaign.md#update-campaign): ポイント付与キャンペーンを更新する ### Webhook -- [CreateWebhook](./webhook.md#create-webhook): webhookの作成 - [ListWebhooks](./webhook.md#list-webhooks): 作成したWebhookの一覧を返す -- [UpdateWebhook](./webhook.md#update-webhook): Webhookの更新 +- [CreateWebhook](./webhook.md#create-webhook): webhookの作成 - [DeleteWebhook](./webhook.md#delete-webhook): Webhookの削除 +- [UpdateWebhook](./webhook.md#update-webhook): Webhookの更新 ### Coupon - [ListCoupons](./coupon.md#list-coupons): クーポン一覧の取得 @@ -279,7 +280,7 @@ try { - [ActivateUserDevice](./user_device.md#activate-user-device): デバイスの有効化 ### BankPay -- [CreateBank](./bank_pay.md#create-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 f90f17c..7689b2e 100644 --- a/docs/account.md +++ b/docs/account.md @@ -60,6 +60,7 @@ const response: Response = await client.send(new ListUs を返します + --- @@ -151,6 +152,7 @@ const response: Response = await client.send(new CreateUserAccoun を返します + --- diff --git a/docs/bank_pay.md b/docs/bank_pay.md index 19f30e1..065dceb 100644 --- a/docs/bank_pay.md +++ b/docs/bank_pay.md @@ -2,6 +2,53 @@ BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + +## ListBanks: 登録した銀行の一覧 +登録した銀行を一覧します + +```typescript +const response: Response = await client.send(new ListBanks({ + user_device_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +})); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Banks](./responses.md#banks) +を返します + + + +--- + + ## CreateBank: 銀行口座の登録 銀行口座の登録を始めるAPIです。レスポンスに含まれるredirect_urlをユーザーの端末で開き銀行を登録します。 @@ -16,7 +63,7 @@ const response: Response = await client.send(new CreateBank private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID callback_url: "", // コールバックURL kana: "ポケペイタロウ", // ユーザーの氏名 (片仮名で指定) - email: "qC15yVJZpc@8KVp.com", // ユーザーのメールアドレス + email: "fSCeHqDX4O@ovF1.com", // ユーザーのメールアドレス birthdate: "19901142" // 生年月日 })); ``` @@ -98,51 +145,6 @@ const response: Response = await client.send(new CreateBank を返します ---- - - - -## ListBanks: 登録した銀行の一覧 -登録した銀行を一覧します - -```typescript -const response: Response = await client.send(new ListBanks({ - user_device_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -})); -``` - - - -### Parameters -**`user_device_id`** - - - -```json -{ - "type": "string", - "format": "uuid" -} -``` - -**`private_money_id`** - - - -```json -{ - "type": "string", - "format": "uuid" -} -``` - - - -成功したときは -[Banks](./responses.md#banks) -を返します - --- @@ -155,7 +157,7 @@ const response: Response = await client.send(new ListBanks({ const response: Response = await client.send(new CreateBankTopupTransaction({ user_device_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - amount: 7742, // チャージ金額 + amount: 8157, // チャージ金額 bank_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 銀行ID request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID })); @@ -226,6 +228,7 @@ const response: Response = await client.send(new CreateBankTo を返します + --- diff --git a/docs/bill.md b/docs/bill.md index 0746733..f4c73f0 100644 --- a/docs/bill.md +++ b/docs/bill.md @@ -7,18 +7,18 @@ ```typescript const response: Response = await client.send(new ListBills({ - page: 8308, // ページ番号 - per_page: 5622, // 1ページの表示数 - bill_id: "laKx", // 支払いQRコードのID + page: 546, // ページ番号 + per_page: 6224, // 1ページの表示数 + bill_id: "0zGq4P", // 支払いQRコードのID private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - organization_code: "CMf-9Tbr-uA-3dv2K1u-t2aU848H--", // 組織コード + organization_code: "x---uV-ld6at5-L7-g-FnGpUst", // 組織コード description: "test bill", // 取引説明文 - created_from: "2020-01-14T03:21:13.000000Z", // 作成日時(起点) - created_to: "2020-09-03T11:53:51.000000Z", // 作成日時(終点) + created_from: "2023-09-11T07:24:00.000000Z", // 作成日時(起点) + created_to: "2020-07-14T19:40:44.000000Z", // 作成日時(終点) shop_name: "bill test shop1", // 店舗名 shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - lower_limit_amount: 3745, // 金額の範囲によるフィルタ(下限) - upper_limit_amount: 6172, // 金額の範囲によるフィルタ(上限) + lower_limit_amount: 7712, // 金額の範囲によるフィルタ(下限) + upper_limit_amount: 3564, // 金額の範囲によるフィルタ(上限) is_disabled: true // 支払いQRコードが無効化されているかどうか })); ``` @@ -193,6 +193,12 @@ const response: Response = await client.send(new ListBills({ [PaginatedBills](./responses.md#paginated-bills) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + --- @@ -205,7 +211,7 @@ const response: Response = await client.send(new ListBills({ const response: Response = await client.send(new CreateBill({ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払いマネーのマネーID shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払い先(受け取り人)の店舗ID - amount: 6991.0, // 支払い額 + amount: 2526.0, // 支払い額 description: "test bill" // 説明文(アプリ上で取引の説明文として表示される) })); ``` @@ -265,6 +271,18 @@ const response: Response = await client.send(new CreateBill({ [Bill](./responses.md#bill) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|shop_account_not_found||The shop account is not found| +|422|private_money_not_found||Private money not found| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_suspended|アカウントは停止されています|The account is suspended| + + --- @@ -276,9 +294,9 @@ const response: Response = await client.send(new CreateBill({ ```typescript const response: Response = await client.send(new UpdateBill({ bill_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払いQRコードのID - amount: 3919.0, // 支払い額 + amount: 8673.0, // 支払い額 description: "test bill", // 説明文 - is_disabled: true // 無効化されているかどうか + is_disabled: false // 無効化されているかどうか })); ``` @@ -340,6 +358,7 @@ const response: Response = await client.send(new UpdateBill({ を返します + --- diff --git a/docs/bulk.md b/docs/bulk.md index 2d4787c..83e1fd0 100644 --- a/docs/bulk.md +++ b/docs/bulk.md @@ -6,10 +6,10 @@ CSVファイルから一括取引をします。 ```typescript const response: Response = await client.send(new BulkCreateTransaction({ - name: "skU0m8hSr1melepO9LnwIsUc", // 一括取引タスク名 - content: "mvb4", // 取引する情報のCSV - request_id: "GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P3", // リクエストID - description: "35Nv6jpCTg7cI", // 一括取引の説明 + name: "kU0m8hSr1melepO9LnwI", // 一括取引タスク名 + content: "s", // 取引する情報のCSV + request_id: "UcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWL", // リクエストID + description: "Kpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepf", // 一括取引の説明 private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID })); ``` @@ -104,6 +104,16 @@ const response: Response = await client.send(new BulkCreateTran [BulkTransaction](./responses.md#bulk-transaction) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|403|organization_not_issuer|発行体以外に許可されていない操作です|Unpermitted operation except for issuer organizations.| +|409|NULL|NULL|NULL| +|422|private_money_not_found||Private money not found| +|422|bulk_transaction_invalid_csv_format|入力されたCSVデータに誤りがあります|Invalid csv format| + + --- diff --git a/docs/campaign.md b/docs/campaign.md index 30a79dc..af71112 100644 --- a/docs/campaign.md +++ b/docs/campaign.md @@ -1,5 +1,119 @@ # Campaign + +## ListCampaigns: キャンペーン一覧を取得する +マネーIDを指定してキャンペーンを取得します。 +発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 +閲覧権限がない場合は unpermitted_admin_user エラー(422)が返ります。 + +```typescript +const response: Response = await client.send(new ListCampaigns({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + is_ongoing: false, // 現在適用可能なキャンペーンかどうか + available_from: "2022-04-11T11:01:16.000000Z", // 指定された日時以降に適用可能期間が含まれているか + available_to: "2023-08-05T14:27:53.000000Z", // 指定された日時以前に適用可能期間が含まれているか + page: 1, // ページ番号 + per_page: 20 // 1ページ分の取得数 +})); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_ongoing`** + + +有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 +真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "boolean" +} +``` + +**`available_from`** + + +キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`available_to`** + + +キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 20 になっています。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 50 +} +``` + + + +成功したときは +[PaginatedCampaigns](./responses.md#paginated-campaigns) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + + +--- + + ## CreateCampaign: ポイント付与キャンペーンを作る ポイント付与キャンペーンを作成します。 @@ -7,29 +121,24 @@ ```typescript const response: Response = await client.send(new CreateCampaign({ - name: "jgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31R", // キャンペーン名 + name: "ZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdso", // キャンペーン名 private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - starts_at: "2020-01-23T17:23:33.000000Z", // キャンペーン開始日時 - ends_at: "2023-11-29T10:51:14.000000Z", // キャンペーン終了日時 - priority: 9775, // キャンペーンの適用優先度 - event: "external-transaction", // イベント種別 + starts_at: "2021-12-14T13:03:56.000000Z", // キャンペーン開始日時 + ends_at: "2021-04-28T13:14:17.000000Z", // キャンペーン終了日時 + priority: 4898, // キャンペーンの適用優先度 + event: "payment", // イベント種別 bear_point_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント負担先店舗ID - description: "FcTjCHIRk6EOKDYDfh7IyYBf", // キャンペーンの説明文 - status: "disabled", // キャンペーン作成時の状態 - point_expires_at: "2022-05-31T13:43:18.000000Z", // ポイント有効期限(絶対日時指定) - point_expires_in_days: 1075, // ポイント有効期限(相対日数指定) + description: "GFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGt", // キャンペーンの説明文 + status: "enabled", // キャンペーン作成時の状態 + point_expires_at: "2024-04-22T02:07:18.000000Z", // ポイント有効期限(絶対日時指定) + point_expires_in_days: 1487, // ポイント有効期限(相対日数指定) is_exclusive: false, // キャンペーンの重複設定 - subject: "money", // ポイント付与の対象金額の種別 + subject: "all", // ポイント付与の対象金額の種別 amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 -}, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], // 取引金額ベースのポイント付与ルール product_based_point_rules: [{ "point_amount": 5, @@ -37,6 +146,12 @@ const response: Response = await client.send(new CreateCampaign({ "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 +}, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }], // 商品情報ベースのポイント付与ルール blacklisted_product_rules: [{ "product_code": "4912345678904", @@ -45,24 +160,32 @@ const response: Response = await client.send(new CreateCampaign({ "product_code": "4912345678904", "classification_code": "c123" }], // 商品情報ベースのキャンペーンで除外対象にする商品リスト - applicable_days_of_week: [4, 5, 2], // キャンペーンを適用する曜日 (複数指定) + applicable_days_of_week: [1], // キャンペーンを適用する曜日 (複数指定) applicable_time_ranges: [{ "from": "12:00", "to": "23:59" +}, { + "from": "12:00", + "to": "23:59" }], // キャンペーンを適用する時間帯 (複数指定) - applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト - minimum_number_of_products: 3677, // キャンペーンを適用する1会計内の商品個数の下限 - minimum_number_of_amount: 9333, // キャンペーンを適用する1会計内の商品総額の下限 - minimum_number_for_combination_purchase: 1069, // 複数種類の商品を同時購入するときの商品種別数の下限 + applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト + blacklisted_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + minimum_number_of_products: 3728, // キャンペーンを適用する1会計内の商品個数の下限 + minimum_number_of_amount: 4311, // キャンペーンを適用する1会計内の商品総額の下限 + minimum_number_for_combination_purchase: 4662, // 複数種類の商品を同時購入するときの商品種別数の下限 exist_in_each_product_groups: true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - max_point_amount: 7906, // キャンペーンによって付与されるポイントの上限 - max_total_point_amount: 1642, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + max_point_amount: 7776, // キャンペーンによって付与されるポイントの上限 + max_total_point_amount: 1678, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 dest_private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント付与先となるマネーID applicable_account_metadata: { "key": "sex", "value": "male" }, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - budget_caps_amount: 1315895000 // キャンペーン予算上限 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" +}, // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + budget_caps_amount: 1404874911 // キャンペーン予算上限 })); ``` @@ -386,6 +509,9 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_days_of_week`** +キャンペーンを適用する曜日を指定します (複数指定)。 +曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 +指定しなかった場合は全日を対象にします (曜日による適用条件なし) ```json { @@ -401,6 +527,9 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_time_ranges`** +キャンペーンを適用する時間帯を指定します (複数指定可)。 +時間帯はfromとtoからなるオブジェクトで指定します。 +fromとtoは両方必要です。 ```json { @@ -414,6 +543,25 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_shop_ids`** +キャンペーンを適用する店舗IDを指定します (複数指定)。 +指定しなかった場合は全店舗が対象になります。 + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`blacklisted_shop_ids`** + + +キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 +このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 +blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 ```json { @@ -704,136 +852,76 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`budget_caps_amount`** +**`applicable_transaction_metadata`** -キャンペーンの予算上限を指定します。デフォルトは未指定です。 - -このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 -一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 - -```json -{ - "type": "integer", - "minimum": 1, - "maximum": 10000000000 -} -``` - - - -成功したときは -[Campaign](./responses.md#campaign) -を返します - - ---- - - - -## ListCampaigns: キャンペーン一覧を取得する -マネーIDを指定してキャンペーンを取得します。 -発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 -閲覧権限がない場合は unpermitted_admin_user エラー(422)が返ります。 - -```typescript -const response: Response = await client.send(new ListCampaigns({ - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - is_ongoing: true, // 現在適用可能なキャンペーンかどうか - available_from: "2021-02-12T14:30:23.000000Z", // 指定された日時以降に適用可能期間が含まれているか - available_to: "2021-11-23T20:11:23.000000Z", // 指定された日時以前に適用可能期間が含まれているか - page: 1, // ページ番号 - per_page: 20 // 1ページ分の取得数 -})); -``` - - - -### Parameters -**`private_money_id`** - - -マネーIDです。 - -フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。 - -```json -{ - "type": "string", - "format": "uuid" -} -``` +取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 +メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 +取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 -**`is_ongoing`** - +オプショナルパラメータtestによって比較方法を指定することができます。 +デフォルトは equal で、その他に not-equalを指定可能です。 -有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 -真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 -デフォルトでは未指定(フィルターなし)です。 +例1: 取引のメタデータに会員ランクとしてbronzeが指定されているときのみ発火 -```json +```javascript { - "type": "boolean" + "key": "rank", + "value": "bronze" } ``` -**`available_from`** - +例2: 取引のメタデータに会員ランクとしてbronze以外が指定されているときのみ発火 -キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。 -デフォルトでは未指定(フィルターなし)です。 - -```json +```javascript { - "type": "string", - "format": "date-time" + "key": "rank", + "value": "bronze", + "test": "not-equal" } ``` -**`available_to`** - - -キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。 -デフォルトでは未指定(フィルターなし)です。 - ```json { - "type": "string", - "format": "date-time" + "type": "object" } ``` -**`page`** +**`budget_caps_amount`** -取得したいページ番号です。 - -```json -{ - "type": "integer", - "minimum": 1 -} -``` - -**`per_page`** - +キャンペーンの予算上限を指定します。デフォルトは未指定です。 -1ページ分の取得数です。デフォルトでは 20 になっています。 +このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 +一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 ```json { "type": "integer", "minimum": 1, - "maximum": 50 + "maximum": 10000000000 } ``` 成功したときは -[PaginatedCampaigns](./responses.md#paginated-campaigns) +[Campaign](./responses.md#campaign) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|campaign_overlaps|同期間に開催されるキャンペーン間で優先度が重複してます|The campaign period overlaps under the same private-money / type / priority| +|422|shop_account_not_found||The shop account is not found| +|422|campaign_period_overlaps|同期間に開催されるキャンペーン間で優先度が重複してます|The campaign period overlaps under the same private-money / type / priority| +|422|campaign_invalid_period||Invalid campaign period starts_at later than ends_at| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| + + --- @@ -874,6 +962,7 @@ const response: Response = await client.send(new GetCampaign({ を返します + --- @@ -885,27 +974,22 @@ const response: Response = await client.send(new GetCampaign({ ```typescript const response: Response = await client.send(new UpdateCampaign({ campaign_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // キャンペーンID - name: "eLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTz", // キャンペーン名 - starts_at: "2022-04-04T12:36:17.000000Z", // キャンペーン開始日時 - ends_at: "2020-11-10T23:55:36.000000Z", // キャンペーン終了日時 - priority: 4845, // キャンペーンの適用優先度 + name: "5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP", // キャンペーン名 + starts_at: "2022-03-19T03:49:13.000000Z", // キャンペーン開始日時 + ends_at: "2021-04-30T05:17:50.000000Z", // キャンペーン終了日時 + priority: 2707, // キャンペーンの適用優先度 event: "external-transaction", // イベント種別 - description: "uCtm4tM4rQ7TMWwQQegAiqW5G", // キャンペーンの説明文 + description: "srDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuC", // キャンペーンの説明文 status: "enabled", // キャンペーン作成時の状態 - point_expires_at: "2023-01-16T12:50:59.000000Z", // ポイント有効期限(絶対日時指定) - point_expires_in_days: 1695, // ポイント有効期限(相対日数指定) - is_exclusive: true, // キャンペーンの重複設定 + point_expires_at: "2024-04-05T21:07:00.000000Z", // ポイント有効期限(絶対日時指定) + point_expires_in_days: 7361, // ポイント有効期限(相対日数指定) + is_exclusive: false, // キャンペーンの重複設定 subject: "money", // ポイント付与の対象金額の種別 amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 -}, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], // 取引金額ベースのポイント付与ルール product_based_point_rules: [{ "point_amount": 5, @@ -913,6 +997,12 @@ const response: Response = await client.send(new UpdateCampaign({ "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 +}, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }], // 商品情報ベースのポイント付与ルール blacklisted_product_rules: [{ "product_code": "4912345678904", @@ -920,24 +1010,32 @@ const response: Response = await client.send(new UpdateCampaign({ }, { "product_code": "4912345678904", "classification_code": "c123" +}, { + "product_code": "4912345678904", + "classification_code": "c123" }], // 商品情報ベースのキャンペーンで除外対象にする商品リスト - applicable_days_of_week: [3, 5, 3], // キャンペーンを適用する曜日 (複数指定) + applicable_days_of_week: [5, 0], // キャンペーンを適用する曜日 (複数指定) applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }], // キャンペーンを適用する時間帯 (複数指定) - applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト - minimum_number_of_products: 3650, // キャンペーンを適用する1会計内の商品個数の下限 - minimum_number_of_amount: 7375, // キャンペーンを適用する1会計内の商品総額の下限 - minimum_number_for_combination_purchase: 3509, // 複数種類の商品を同時購入するときの商品種別数の下限 - exist_in_each_product_groups: true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - max_point_amount: 3498, // キャンペーンによって付与されるポイントの上限 - max_total_point_amount: 6455, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト + blacklisted_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + minimum_number_of_products: 833, // キャンペーンを適用する1会計内の商品個数の下限 + minimum_number_of_amount: 3105, // キャンペーンを適用する1会計内の商品総額の下限 + minimum_number_for_combination_purchase: 4631, // 複数種類の商品を同時購入するときの商品種別数の下限 + exist_in_each_product_groups: false, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + max_point_amount: 7645, // キャンペーンによって付与されるポイントの上限 + max_total_point_amount: 9636, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 applicable_account_metadata: { "key": "sex", "value": "male" }, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - budget_caps_amount: 976430174 // キャンペーン予算上限 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" +}, // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + budget_caps_amount: 104245678 // キャンペーン予算上限 })); ``` @@ -1250,6 +1348,9 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_days_of_week`** +キャンペーンを適用する曜日を指定します (複数指定)。 +曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 +指定しなかった場合は全日を対象にします (曜日による適用条件なし) ```json { @@ -1265,6 +1366,9 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_time_ranges`** +キャンペーンを適用する時間帯を指定します (複数指定可)。 +時間帯はfromとtoからなるオブジェクトで指定します。 +fromとtoは両方必要です。 ```json { @@ -1278,6 +1382,25 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_shop_ids`** +キャンペーンを適用する店舗IDを指定します (複数指定)。 +指定しなかった場合は全店舗が対象になります。 + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`blacklisted_shop_ids`** + + +キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 +このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 +blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 ```json { @@ -1548,6 +1671,41 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +**`applicable_transaction_metadata`** + + +取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 +メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 +取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 + +オプショナルパラメータtestによって比較方法を指定することができます。 +デフォルトは equal で、その他に not-equalを指定可能です。 + +例1: 取引のメタデータに会員ランクとしてbronzeが指定されているときのみ発火 + +```javascript +{ + "key": "rank", + "value": "bronze" +} +``` + +例2: 取引のメタデータに会員ランクとしてbronze以外が指定されているときのみ発火 + +```javascript +{ + "key": "rank", + "value": "bronze", + "test": "not-equal" +} +``` + +```json +{ + "type": "object" +} +``` + **`budget_caps_amount`** @@ -1573,6 +1731,7 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 を返します + --- diff --git a/docs/cashtray.md b/docs/cashtray.md index 32cd0b7..c612717 100644 --- a/docs/cashtray.md +++ b/docs/cashtray.md @@ -5,6 +5,146 @@ Cashtrayはワンタイムで、一度読み取りに成功するか、取引エ また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 + +## CreateTransactionWithCashtray: CashtrayQRコードを読み取ることで取引する +エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。 + +通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 +もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがCashtrayQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 + + +```typescript +const response: Response = await client.send(new CreateTransactionWithCashtray({ + cashtray_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // Cashtray用QRコードのID + customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーのID + strategy: "point-preferred", // 支払い時の残高消費方式 + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +})); +``` + + + +### Parameters +**`cashtray_id`** + + +Cashtray用QRコードのIDです。 + +QRコード生成時に送金元店舗のウォレット情報や、金額などが登録されています。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`strategy`** + + +支払い時に残高がどのように消費されるかを指定します。 +チャージの場合は無効です。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。 +指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。 +もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|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|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_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.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|cashtray_already_proceed|この決済QRコードは既に処理されています|Cashtray is already proceed| +|422|cashtray_expired|この決済QRコードは有効期限が切れています|Cashtray is expired| +|422|cashtray_already_canceled|この決済QRコードは既に無効化されています|Cashtray is already canceled| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + ## CreateCashtray: Cashtrayを作る Cashtrayを作成します。 @@ -19,9 +159,9 @@ Cashtrayを作成します。 const response: Response = await client.send(new CreateCashtray({ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ユーザーID - amount: 1704.0, // 金額 + amount: 2923.0, // 金額 description: "たい焼き(小倉)", // 取引履歴に表示する説明文 - expires_in: 9821 // 失効時間(秒) + expires_in: 2518 // 失効時間(秒) })); ``` @@ -95,6 +235,53 @@ Cashtrayが失効するまでの時間を秒単位で指定します(任意項 [Cashtray](./responses.md#cashtray) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|account_not_found|アカウントが見つかりません|The account is not found| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| + + + +--- + + + +## CancelCashtray: Cashtrayを無効化する +Cashtrayを無効化します。 + +これにより、 `GetCashtray` のレスポンス中の `canceled_at` に無効化時点での現在時刻が入るようになります。 +エンドユーザーが無効化されたQRコードを読み取ると `cashtray_already_canceled` エラーとなり、取引は失敗します。 + +```typescript +const response: Response = await client.send(new CancelCashtray({ + cashtray_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID +})); +``` + + + +### Parameters +**`cashtray_id`** + + +無効化するCashtrayのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Cashtray](./responses.md#cashtray) +を返します + + --- @@ -188,43 +375,6 @@ const response: Response = await client.send(new GetCashtray を返します ---- - - - -## CancelCashtray: Cashtrayを無効化する -Cashtrayを無効化します。 - -これにより、 `GetCashtray` のレスポンス中の `canceled_at` に無効化時点での現在時刻が入るようになります。 -エンドユーザーが無効化されたQRコードを読み取ると `cashtray_already_canceled` エラーとなり、取引は失敗します。 - -```typescript -const response: Response = await client.send(new CancelCashtray({ - cashtray_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID -})); -``` - - - -### Parameters -**`cashtray_id`** - - -無効化するCashtrayのIDです。 - -```json -{ - "type": "string", - "format": "uuid" -} -``` - - - -成功したときは -[Cashtray](./responses.md#cashtray) -を返します - --- @@ -236,9 +386,9 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可 ```typescript const response: Response = await client.send(new UpdateCashtray({ cashtray_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // CashtrayのID - amount: 3126.0, // 金額 + amount: 3902.0, // 金額 description: "たい焼き(小倉)", // 取引履歴に表示する説明文 - expires_in: 5432 // 失効時間(秒) + expires_in: 9018 // 失効時間(秒) })); ``` @@ -301,6 +451,7 @@ Cashtrayが失効するまでの時間を秒で指定します(任意項目、 を返します + --- diff --git a/docs/check.md b/docs/check.md index d43ce7e..f33affd 100644 --- a/docs/check.md +++ b/docs/check.md @@ -8,63 +8,57 @@ QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注意: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 - -## CreateCheck: チャージQRコードの発行 + +## ListChecks: チャージQRコード一覧の取得 ```typescript -const response: Response = await client.send(new CreateCheck({ - account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金元の店舗アカウントID - money_amount: 5226.0, // 付与マネー額 - point_amount: 465.0, // 付与ポイント額 - description: "test check", // 説明文(アプリ上で取引の説明文として表示される) - is_onetime: false, // ワンタイムかどうかのフラグ - usage_limit: 8334, // ワンタイムでない場合の最大読み取り回数 - expires_at: "2020-10-23T06:09:39.000000Z", // チャージQRコード自体の失効日時 - point_expires_at: "2023-06-27T19:49:26.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 - point_expires_in_days: 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) - bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ポイント額を負担する店舗のウォレットID +const response: Response = await client.send(new ListChecks({ + page: 4561, // ページ番号 + per_page: 50, // 1ページの表示数 + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + organization_code: "oWhsZ81p0D8THD4dpuhxNvhxjPfdLCM", // 組織コード + expires_from: "2021-06-04T07:32:54.000000Z", // 有効期限の期間によるフィルター(開始時点) + expires_to: "2022-05-22T18:27:54.000000Z", // 有効期限の期間によるフィルター(終了時点) + created_from: "2020-02-09T19:52:16.000000Z", // 作成日時の期間によるフィルター(開始時点) + created_to: "2024-03-20T18:36:22.000000Z", // 作成日時の期間によるフィルター(終了時点) + issuer_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行店舗ID + description: "SOhV764t", // チャージQRコードの説明文 + is_onetime: false, // ワンタイムのチャージQRコードかどうか + is_disabled: true // 無効化されたチャージQRコードかどうか })); ``` -`money_amount`と`point_amount`の少なくとも一方は指定する必要があります。 - - ### Parameters -**`money_amount`** +**`page`** -チャージQRコードによって付与されるマネー額です。 -`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 - ```json { - "type": "number", - "format": "decimal", - "minimum": 0 + "type": "integer", + "minimum": 1 } ``` -**`point_amount`** +**`per_page`** -チャージQRコードによって付与されるポイント額です。 -`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 - +1ページ当たり表示数です。デフォルト値は50です。 ```json { - "type": "number", - "format": "decimal", - "minimum": 0 + "type": "integer", + "minimum": 1 } ``` -**`account_id`** +**`private_money_id`** +チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 + ```json { @@ -73,52 +67,52 @@ const response: Response = await client.send(new CreateCheck({ } ``` -**`description`** +**`organization_code`** +チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 +デフォルトでは未指定です。 ```json { "type": "string", - "maxLength": 200 + "maxLength": 32 } ``` -**`is_onetime`** +**`expires_from`** -チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 -`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 -ただし、その場合も1ユーザにつき1回のみしか読み取れません。 +有効期限の期間によるフィルターの開始時点のタイムスタンプです。 +デフォルトでは未指定です。 ```json { - "type": "boolean" + "type": "string", + "format": "date-time" } ``` -**`usage_limit`** +**`expires_to`** -複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 -NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 -デフォルト値はNULLです。 -ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 +有効期限の期間によるフィルターの終了時点のタイムスタンプです。 +デフォルトでは未指定です。 ```json { - "type": "integer" + "type": "string", + "format": "date-time" } ``` -**`expires_at`** +**`created_from`** -チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 - -チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 +作成日時の期間によるフィルターの開始時点のタイムスタンプです。 +デフォルトでは未指定です。 ```json @@ -128,12 +122,11 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_at`** +**`created_to`** -チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 - -チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 +作成日時の期間によるフィルターの終了時点のタイムスタンプです。 +デフォルトでは未指定です。 ```json @@ -143,164 +136,193 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_in_days`** +**`issuer_shop_id`** -チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 -1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 -`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 +チャージQRコードを発行した店舗IDによってフィルターします。 +デフォルトでは未指定です。 ```json { - "type": "integer", - "minimum": 1 + "type": "string", + "format": "uuid" } ``` -**`bear_point_account`** +**`description`** -ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 -デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 +チャージQRコードの説明文(description)によってフィルターします。 +部分一致(前方一致)したものを表示します。 +デフォルトでは未指定です。 ```json { - "type": "string", - "format": "uuid" + "type": "string" +} +``` + +**`is_onetime`** + + +チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 +`true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 +未指定の場合はフィルターしません。 +デフォルトでは未指定です。 + + +```json +{ + "type": "boolean" +} +``` + +**`is_disabled`** + + +チャージQRコードが無効化されているかどうかでフィルターします。 +`true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 +未指定の場合はフィルターしません。 +デフォルトでは未指定です。 + + +```json +{ + "type": "boolean" } ``` 成功したときは -[Check](./responses.md#check) +[PaginatedChecks](./responses.md#paginated-checks) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|organization_not_found||Organization not found| +|422|private_money_not_found||Private money not found| + + --- - -## ListChecks: チャージQRコード一覧の取得 + +## CreateCheck: チャージQRコードの発行 ```typescript -const response: Response = await client.send(new ListChecks({ - page: 4590, // ページ番号 - per_page: 50, // 1ページの表示数 - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - organization_code: "4vZ", // 組織コード - expires_from: "2022-07-06T19:27:10.000000Z", // 有効期限の期間によるフィルター(開始時点) - expires_to: "2023-12-18T20:25:22.000000Z", // 有効期限の期間によるフィルター(終了時点) - created_from: "2022-01-02T00:20:43.000000Z", // 作成日時の期間によるフィルター(開始時点) - created_to: "2022-02-12T08:10:50.000000Z", // 作成日時の期間によるフィルター(終了時点) - issuer_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行店舗ID - description: "HzNm8wd", // チャージQRコードの説明文 - is_onetime: false, // ワンタイムのチャージQRコードかどうか - is_disabled: true // 無効化されたチャージQRコードかどうか +const response: Response = await client.send(new CreateCheck({ + account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金元の店舗アカウントID + money_amount: 7227.0, // 付与マネー額 + point_amount: 2376.0, // 付与ポイント額 + description: "test check", // 説明文(アプリ上で取引の説明文として表示される) + is_onetime: false, // ワンタイムかどうかのフラグ + usage_limit: 4143, // ワンタイムでない場合の最大読み取り回数 + expires_at: "2022-06-25T23:11:28.000000Z", // チャージQRコード自体の失効日時 + point_expires_at: "2020-07-19T01:57:02.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + point_expires_in_days: 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ポイント額を負担する店舗のウォレットID })); ``` - -### Parameters -**`page`** - +`money_amount`と`point_amount`の少なくとも一方は指定する必要があります。 -```json -{ - "type": "integer", - "minimum": 1 -} -``` -**`per_page`** +### Parameters +**`money_amount`** -1ページ当たり表示数です。デフォルト値は50です。 +チャージQRコードによって付与されるマネー額です。 +`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 + ```json { - "type": "integer", - "minimum": 1 + "type": "number", + "format": "decimal", + "minimum": 0 } ``` -**`private_money_id`** +**`point_amount`** -チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 +チャージQRコードによって付与されるポイント額です。 +`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 ```json { - "type": "string", - "format": "uuid" + "type": "number", + "format": "decimal", + "minimum": 0 } ``` -**`organization_code`** +**`account_id`** -チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 -デフォルトでは未指定です。 ```json { "type": "string", - "maxLength": 32 + "format": "uuid" } ``` -**`expires_from`** +**`description`** -有効期限の期間によるフィルターの開始時点のタイムスタンプです。 -デフォルトでは未指定です。 - ```json { "type": "string", - "format": "date-time" + "maxLength": 200 } ``` -**`expires_to`** +**`is_onetime`** -有効期限の期間によるフィルターの終了時点のタイムスタンプです。 -デフォルトでは未指定です。 +チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 +`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 +ただし、その場合も1ユーザにつき1回のみしか読み取れません。 ```json { - "type": "string", - "format": "date-time" + "type": "boolean" } ``` -**`created_from`** +**`usage_limit`** -作成日時の期間によるフィルターの開始時点のタイムスタンプです。 -デフォルトでは未指定です。 +複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 +NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 +デフォルト値はNULLです。 +ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 ```json { - "type": "string", - "format": "date-time" + "type": "integer" } ``` -**`created_to`** +**`expires_at`** -作成日時の期間によるフィルターの終了時点のタイムスタンプです。 -デフォルトでは未指定です。 +チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 + +チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 ```json @@ -310,70 +332,73 @@ const response: Response = await client.send(new ListChecks({ } ``` -**`issuer_shop_id`** +**`point_expires_at`** -チャージQRコードを発行した店舗IDによってフィルターします。 -デフォルトでは未指定です。 - - -```json -{ - "type": "string", - "format": "uuid" -} -``` - -**`description`** - +チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 -チャージQRコードの説明文(description)によってフィルターします。 -部分一致(前方一致)したものを表示します。 -デフォルトでは未指定です。 +チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 ```json { - "type": "string" + "type": "string", + "format": "date-time" } ``` -**`is_onetime`** +**`point_expires_in_days`** -チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 -`true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 -未指定の場合はフィルターしません。 -デフォルトでは未指定です。 +チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 +1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 +`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 ```json { - "type": "boolean" + "type": "integer", + "minimum": 1 } ``` -**`is_disabled`** +**`bear_point_account`** -チャージQRコードが無効化されているかどうかでフィルターします。 -`true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 -未指定の場合はフィルターしません。 -デフォルトでは未指定です。 +ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 +デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 ```json { - "type": "boolean" + "type": "string", + "format": "uuid" } ``` 成功したときは -[PaginatedChecks](./responses.md#paginated-checks) +[Check](./responses.md#check) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| +|400|invalid_parameter_only_merchants_can_attach_points_to_check||Only merchants can attach points to check| +|400|invalid_parameter_bear_point_account_identification_item_not_unique|ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます|Request parameters include either bear_point_account or bear_point_shop_id.| +|400|invalid_parameter_combination_usage_limit_and_is_onetime||'usage_limit' can not be specified if 'is_onetime' is true.| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|400|invalid_parameter_expires_at||'expires_at' must be in the future| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|account_private_money_is_not_issued_by_organization||The account's private money is not issued by this organization| +|422|shop_account_not_found||The shop account is not found| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|bear_point_account_not_found|ポイントを負担する店舗アカウントが見つかりません|Bear point account not found.| + + --- @@ -409,6 +434,7 @@ const response: Response = await client.send(new GetCheck({ を返します + --- @@ -418,13 +444,13 @@ const response: Response = await client.send(new GetCheck({ ```typescript const response: Response = await client.send(new UpdateCheck({ check_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // チャージQRコードのID - money_amount: 2931.0, // 付与マネー額 - point_amount: 9794.0, // 付与ポイント額 + money_amount: 6096.0, // 付与マネー額 + point_amount: 8933.0, // 付与ポイント額 description: "test check", // チャージQRコードの説明文 is_onetime: false, // ワンタイムかどうかのフラグ - usage_limit: 783, // ワンタイムでない場合の最大読み取り回数 - expires_at: "2021-04-18T03:44:15.000000Z", // チャージQRコード自体の失効日時 - point_expires_at: "2020-12-06T19:49:13.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + usage_limit: 1926, // ワンタイムでない場合の最大読み取り回数 + expires_at: "2020-10-03T18:38:41.000000Z", // チャージQRコード自体の失効日時 + point_expires_at: "2022-04-09T15:16:41.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 point_expires_in_days: 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID is_disabled: true // 無効化されているかどうかのフラグ @@ -597,6 +623,7 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード を返します + --- @@ -654,6 +681,7 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -668,6 +696,48 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|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|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_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.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|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 ada5c5f..d1de776 100644 --- a/docs/coupon.md +++ b/docs/coupon.md @@ -10,12 +10,12 @@ Couponは特定店舗で利用できるものや利用可能期間、配信条 ```typescript const response: Response = await client.send(new ListCoupons({ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 対象クーポンのマネーID - coupon_id: "bkQVRY8Muh", // クーポンID - coupon_name: "wDy", // クーポン名 - issued_shop_name: "lFo5mD", // 発行店舗名 - available_shop_name: "Jw8V3XaTOk", // 利用可能店舗名 - available_from: "2022-05-02T17:52:06.000000Z", // 利用可能期間 (開始日時) - available_to: "2023-06-21T19:23:15.000000Z", // 利用可能期間 (終了日時) + coupon_id: "Gh3Eed", // クーポンID + coupon_name: "VkoAN4R6PB", // クーポン名 + issued_shop_name: "g", // 発行店舗名 + available_shop_name: "1bgbkQVR", // 利用可能店舗名 + available_from: "2021-03-29T22:17:00.000000Z", // 利用可能期間 (開始日時) + available_to: "2021-08-19T22:19:42.000000Z", // 利用可能期間 (終了日時) page: 1, // ページ番号 per_page: 50 // 1ページ分の取得数 })); @@ -143,6 +143,14 @@ const response: Response = await client.send(new ListCoupons({ [PaginatedCoupons](./responses.md#paginated-coupons) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| + + --- @@ -154,24 +162,24 @@ const response: Response = await client.send(new ListCoupons({ ```typescript const response: Response = await client.send(new CreateCoupon({ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - name: "DFDXkJRYuzmNrD0IPFMYcPpoEq", - starts_at: "2023-02-03T19:51:10.000000Z", - ends_at: "2021-11-27T11:49:55.000000Z", + name: "8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24eknd", + starts_at: "2022-03-02T09:17:51.000000Z", + ends_at: "2022-03-05T15:49:29.000000Z", issued_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行元の店舗ID - description: "qYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxd", - discount_amount: 8182, - discount_percentage: 1010.0, - discount_upper_limit: 4673, - display_starts_at: "2022-12-25T05:08:47.000000Z", // クーポンの掲載期間(開始日時) - display_ends_at: "2021-10-02T17:22:12.000000Z", // クーポンの掲載期間(終了日時) + description: "EuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz", + discount_amount: 3978, + discount_percentage: 5433.0, + discount_upper_limit: 4159, + display_starts_at: "2020-11-06T20:41:49.000000Z", // クーポンの掲載期間(開始日時) + display_ends_at: "2022-07-14T08:54:16.000000Z", // クーポンの掲載期間(終了日時) is_disabled: false, // 無効化フラグ - is_hidden: true, // クーポン一覧に掲載されるかどうか - is_public: true, // アプリ配信なしで受け取れるかどうか - code: "n", // クーポン受け取りコード - usage_limit: 1090, // ユーザごとの利用可能回数(NULLの場合は無制限) - min_amount: 3250, // クーポン適用可能な最小取引額 + is_hidden: false, // クーポン一覧に掲載されるかどうか + is_public: false, // アプリ配信なしで受け取れるかどうか + code: "Jn6t", // クーポン受け取りコード + usage_limit: 6932, // ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount: 3958, // クーポン適用可能な最小取引額 is_shop_specified: true, // 特定店舗限定のクーポンかどうか - available_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト + available_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト storage_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ストレージID })); ``` @@ -406,6 +414,17 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 [CouponDetail](./responses.md#coupon-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|404|partner_storage_not_found|指定したIDのデータは保存されていません|Not found by storage_id| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| +|422|coupon_image_storage_conflict|クーポン画像のストレージIDは既に存在します|The coupon image storage_id is already exists| + + --- @@ -444,6 +463,7 @@ UUIDv4フォーマットである必要があり、フォーマットが異な を返します + --- @@ -454,22 +474,22 @@ UUIDv4フォーマットである必要があり、フォーマットが異な ```typescript const response: Response = await client.send(new UpdateCoupon({ coupon_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // クーポンID - name: "JrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0u", - description: "guDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P", - discount_amount: 1159, - discount_percentage: 1312.0, - discount_upper_limit: 1476, - starts_at: "2023-04-10T09:31:34.000000Z", - ends_at: "2023-02-12T20:04:21.000000Z", - display_starts_at: "2024-01-04T08:26:32.000000Z", // クーポンの掲載期間(開始日時) - display_ends_at: "2023-07-30T04:28:05.000000Z", // クーポンの掲載期間(終了日時) + name: "hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbY", + description: "VC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2Xcm", + discount_amount: 7867, + discount_percentage: 8992.0, + discount_upper_limit: 1594, + starts_at: "2021-12-14T11:11:50.000000Z", + ends_at: "2022-09-22T01:52:19.000000Z", + display_starts_at: "2021-10-24T17:02:46.000000Z", // クーポンの掲載期間(開始日時) + display_ends_at: "2024-02-09T06:24:45.000000Z", // クーポンの掲載期間(終了日時) is_disabled: true, // 無効化フラグ is_hidden: true, // クーポン一覧に掲載されるかどうか - is_public: false, // アプリ配信なしで受け取れるかどうか - code: "j", // クーポン受け取りコード - usage_limit: 9892, // ユーザごとの利用可能回数(NULLの場合は無制限) - min_amount: 8114, // クーポン適用可能な最小取引額 - is_shop_specified: true, // 特定店舗限定のクーポンかどうか + is_public: true, // アプリ配信なしで受け取れるかどうか + code: "WIFuWH", // クーポン受け取りコード + usage_limit: 3623, // ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount: 7721, // クーポン適用可能な最小取引額 + is_shop_specified: false, // 特定店舗限定のクーポンかどうか available_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト storage_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ストレージID })); @@ -697,6 +717,7 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 を返します + --- diff --git a/docs/customer.md b/docs/customer.md index e2984f6..258ce66 100644 --- a/docs/customer.md +++ b/docs/customer.md @@ -1,5 +1,55 @@ # Customer + +## DeleteAccount: ウォレットを退会する +ウォレットを退会します。一度ウォレットを退会した後は、そのウォレットを再び利用可能な状態に戻すことは出来ません。 + +```typescript +const response: Response = await client.send(new DeleteAccount({ + account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID + cashback: true // 返金有無 +})); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +指定したウォレットIDのウォレットを退会します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`cashback`** + + +退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[AccountDeleted](./responses.md#account-deleted) +を返します + + + +--- + + ## GetAccount: ウォレット情報を表示する ウォレットを取得します。 @@ -34,6 +84,7 @@ const response: Response = await client.send(new GetAccount({ を返します + --- @@ -50,9 +101,9 @@ const response: Response = await client.send(new GetAccount({ ```typescript const response: Response = await client.send(new UpdateAccount({ account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - is_suspended: true, // ウォレットが凍結されているかどうか + is_suspended: false, // ウォレットが凍結されているかどうか status: "active", // ウォレット状態 - can_transfer_topup: true // チャージ可能かどうか + can_transfer_topup: false // チャージ可能かどうか })); ``` @@ -118,54 +169,6 @@ const response: Response = await client.send(new UpdateAccount({ を返します ---- - - - -## DeleteAccount: ウォレットを退会する -ウォレットを退会します。一度ウォレットを退会した後は、そのウォレットを再び利用可能な状態に戻すことは出来ません。 - -```typescript -const response: Response = await client.send(new DeleteAccount({ - account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - cashback: false // 返金有無 -})); -``` - - - -### Parameters -**`account_id`** - - -ウォレットIDです。 - -指定したウォレットIDのウォレットを退会します。 - -```json -{ - "type": "string", - "format": "uuid" -} -``` - -**`cashback`** - - -退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 - -```json -{ - "type": "boolean" -} -``` - - - -成功したときは -[AccountDeleted](./responses.md#account-deleted) -を返します - --- @@ -177,10 +180,10 @@ const response: Response = await client.send(new DeleteAccount({ ```typescript const response: Response = await client.send(new ListAccountBalances({ account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - page: 4864, // ページ番号 - per_page: 2363, // 1ページ分の取引数 - expires_at_from: "2022-10-29T13:58:49.000000Z", // 有効期限の期間によるフィルター(開始時点) - expires_at_to: "2022-12-20T05:38:25.000000Z", // 有効期限の期間によるフィルター(終了時点) + page: 4078, // ページ番号 + per_page: 1688, // 1ページ分の取引数 + expires_at_from: "2021-05-06T10:21:37.000000Z", // 有効期限の期間によるフィルター(開始時点) + expires_at_to: "2021-01-21T08:49:45.000000Z", // 有効期限の期間によるフィルター(終了時点) direction: "desc" // 有効期限によるソート順序 })); ``` @@ -272,6 +275,7 @@ const response: Response = await client.send(new ListAc を返します + --- @@ -282,11 +286,11 @@ const response: Response = await client.send(new ListAc ```typescript const response: Response = await client.send(new ListAccountExpiredBalances({ account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - page: 9610, // ページ番号 - per_page: 2603, // 1ページ分の取引数 - expires_at_from: "2020-05-11T07:12:37.000000Z", // 有効期限の期間によるフィルター(開始時点) - expires_at_to: "2022-01-18T11:04:15.000000Z", // 有効期限の期間によるフィルター(終了時点) - direction: "asc" // 有効期限によるソート順序 + page: 9574, // ページ番号 + per_page: 4482, // 1ページ分の取引数 + expires_at_from: "2023-11-06T20:51:24.000000Z", // 有効期限の期間によるフィルター(開始時点) + expires_at_to: "2022-05-16T22:10:11.000000Z", // 有効期限の期間によるフィルター(終了時点) + direction: "desc" // 有効期限によるソート順序 })); ``` @@ -377,6 +381,7 @@ const response: Response = await client.send(new ListAc を返します + --- @@ -387,9 +392,9 @@ const response: Response = await client.send(new ListAc ```typescript const response: Response = await client.send(new UpdateCustomerAccount({ account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - status: "pre-closed", // ウォレット状態 - account_name: "kLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbee", // アカウント名 - external_id: "KUX", // 外部ID + status: "suspended", // ウォレット状態 + account_name: "DzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXo", // アカウント名 + external_id: "Ul0tR07369wB", // 外部ID metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" // ウォレットに付加するメタデータ })); ``` @@ -485,6 +490,7 @@ const response: Response = await client.send(new UpdateCustomer を返します + --- @@ -495,15 +501,15 @@ const response: Response = await client.send(new UpdateCustomer ```typescript const response: Response = await client.send(new GetCustomerAccounts({ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - page: 8901, // ページ番号 - per_page: 9982, // 1ページ分のウォレット数 - created_at_from: "2022-05-12T14:01:20.000000Z", // ウォレット作成日によるフィルター(開始時点) - created_at_to: "2021-08-01T07:54:25.000000Z", // ウォレット作成日によるフィルター(終了時点) - is_suspended: true, // ウォレットが凍結状態かどうかでフィルターする + page: 5226, // ページ番号 + per_page: 9886, // 1ページ分のウォレット数 + created_at_from: "2022-04-14T18:43:30.000000Z", // ウォレット作成日によるフィルター(開始時点) + created_at_to: "2020-12-09T07:19:25.000000Z", // ウォレット作成日によるフィルター(終了時点) + is_suspended: false, // ウォレットが凍結状態かどうかでフィルターする status: "active", // ウォレット状態 - external_id: "vqgIch5W6XuTL0vlIdvd", // 外部ID - tel: "072777-896", // エンドユーザーの電話番号 - email: "BXoKUl0tR0@7369.com" // エンドユーザーのメールアドレス + external_id: "XZafz3jffpT8lg", // 外部ID + tel: "075-6437341", // エンドユーザーの電話番号 + email: "aJfJ60D0H2@T0aK.com" // エンドユーザーのメールアドレス })); ``` @@ -641,6 +647,13 @@ const response: Response = await client.send(new GetC [PaginatedAccountWithUsers](./responses.md#paginated-account-with-users) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|private_money_not_found||Private money not found| + + --- @@ -657,7 +670,7 @@ const response: Response = await client.send(new CreateCustomer private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID user_name: "ポケペイ太郎", // ユーザー名 account_name: "ポケペイ太郎のアカウント", // アカウント名 - external_id: "BiPR32MXZafz3jf" // 外部ID + external_id: "hnL3FlnAD82QrpY" // 外部ID })); ``` @@ -720,6 +733,19 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで [AccountWithUser](./responses.md#account-with-user) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|user_not_found||The user is not found| +|422|private_money_not_found||Private money not found| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|user_attributes_external_id_not_match|ユーザー属性情報の外部IDが一致しません|Not match external id of user attributes| +|422|user_attributes_not_found|ユーザー属性情報が存在しません|Not found the user attrubtes| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_can_not_create|このマネーに新規アカウントを作る事は出来ません|Can not create an account with this money| + + --- @@ -731,11 +757,11 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで ```typescript const response: Response = await client.send(new GetShopAccounts({ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - page: 5375, // ページ番号 - per_page: 7186, // 1ページ分のウォレット数 - created_at_from: "2020-02-09T06:31:25.000000Z", // ウォレット作成日によるフィルター(開始時点) - created_at_to: "2020-04-03T10:25:10.000000Z", // ウォレット作成日によるフィルター(終了時点) - is_suspended: false // ウォレットが凍結状態かどうかでフィルターする + page: 6296, // ページ番号 + per_page: 8012, // 1ページ分のウォレット数 + created_at_from: "2023-02-12T12:52:30.000000Z", // ウォレット作成日によるフィルター(開始時点) + created_at_to: "2022-09-29T09:47:44.000000Z", // ウォレット作成日によるフィルター(終了時点) + is_suspended: true // ウォレットが凍結状態かどうかでフィルターする })); ``` @@ -821,6 +847,13 @@ const response: Response = await client.send(new GetS [PaginatedAccountWithUsers](./responses.md#paginated-account-with-users) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|private_money_not_found||Private money not found| + + --- @@ -834,10 +867,10 @@ const response: Response = await client.send(new ListCusto private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID sender_customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金エンドユーザーID receiver_customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受取エンドユーザーID - type: "topup", // 取引種別 - is_modified: false, // キャンセル済みかどうか - from: "2021-06-10T14:16:07.000000Z", // 開始日時 - to: "2022-04-02T20:02:52.000000Z", // 終了日時 + type: "cashback", // 取引種別 + is_modified: true, // キャンセル済みかどうか + from: "2020-09-05T17:59:32.000000Z", // 開始日時 + to: "2023-04-19T08:52:30.000000Z", // 終了日時 page: 1, // ページ番号 per_page: 50 // 1ページ分の取引数 })); @@ -994,6 +1027,14 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 [PaginatedTransaction](./responses.md#paginated-transaction) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|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| + + --- diff --git a/docs/event.md b/docs/event.md index 32fc89e..78eb68c 100644 --- a/docs/event.md +++ b/docs/event.md @@ -12,26 +12,24 @@ const response: Response = await client.send(new Crea shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - amount: 9453, // 取引額 + amount: 7109, // 取引額 description: "たい焼き(小倉)", // 取引説明文 metadata: "{\"key\":\"value\"}", // ポケペイ外部取引メタデータ products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], // 商品情報データ - request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID + done_at: "2020-02-12T18:00:28.000000Z" // ポケペイ外部取引の実施時間 })); ``` @@ -130,6 +128,7 @@ const response: Response = await client.send(new Crea - `name`: 商品名。256字以下の文字列 - `unit_price`: 商品単価。0以上の数値 - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `quantity`: 商品の個数。この値が指定された場合、priceから算出される個数よりも優先されます。 - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 @@ -158,12 +157,67 @@ const response: Response = await client.send(new Crea } ``` +**`done_at`** + + +ポケペイ外部取引が実際に起こった時間です。 +時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。 +デフォルトではCreateExternalTransactionがリクエストされた時間になります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + 成功したときは [ExternalTransactionDetail](./responses.md#external-transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|customer_user_not_found||The customer user is not found| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -216,6 +270,44 @@ const response: Response = await client.send(new Refu を返します + +--- + + + +## GetExternalTransactionByRequestId: リクエストIDからポケペイ外部取引を取得する +リクエストIDを指定してポケペイ外部取引を取得します。 + +発行体の管理者は自組織発行のマネーに紐付くポケペイ外部取引を取得できます。 + +```typescript +const response: Response = await client.send(new GetExternalTransactionByRequestId({ + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +})); +``` + + + +### Parameters +**`request_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[ExternalTransactionDetail](./responses.md#external-transaction-detail) +を返します + + + --- diff --git a/docs/organization.md b/docs/organization.md index 5f98782..98b9eb5 100644 --- a/docs/organization.md +++ b/docs/organization.md @@ -8,8 +8,8 @@ const response: Response = await client.send(new ListOrg private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID page: 1, // ページ番号 per_page: 50, // 1ページ分の取引数 - name: "GERnFdcW", // 組織名 - code: "SdaJfJ60D" // 組織コード + name: "raOesyA", // 組織名 + code: "awWiyWkSV3" // 組織コード })); ``` @@ -79,6 +79,14 @@ const response: Response = await client.send(new ListOrg [PaginatedOrganizations](./responses.md#paginated-organizations) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|private_money_not_found||Private money not found| + + --- @@ -90,14 +98,14 @@ const response: Response = await client.send(new ListOrg const response: Response = await client.send(new CreateOrganization({ code: "ox-supermarket", // 新規組織コード name: "oxスーパー", // 新規組織名 - private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 加盟店組織で有効にするマネーIDの配列 - issuer_admin_user_email: "H2T0aKhnL3@FlnA.com", // 発行体担当者メールアドレス - member_admin_user_email: "D82QrpYaKu@slNr.com", // 新規組織担当者メールアドレス + private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 加盟店組織で有効にするマネーIDの配列 + issuer_admin_user_email: "bs4OkWhHFx@3P67.com", // 発行体担当者メールアドレス + member_admin_user_email: "yxFmxWAZtU@SoiV.com", // 新規組織担当者メールアドレス bank_name: "XYZ銀行", // 銀行名 bank_code: "1234", // 銀行金融機関コード bank_branch_name: "ABC支店", // 銀行支店名 bank_branch_code: "123", // 銀行支店コード - bank_account_type: "current", // 銀行口座種別 (普通=saving, 当座=current, その他=other) + bank_account_type: "other", // 銀行口座種別 (普通=saving, 当座=current, その他=other) bank_account: "1234567", // 銀行口座番号 bank_account_holder_name: "フクザワユキチ", // 口座名義人名 contact_name: "佐藤清" // 担当者名 @@ -266,6 +274,17 @@ const response: Response = await client.send(new CreateOrganizatio [Organization](./responses.md#organization) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|NULL|NULL|NULL| +|409|organization_conflict||The organization code is already used| +|409|shop_name_conflict||The shop name is already used| +|422|organization_private_money_not_found||Issuer organization does not have private-money| +|422|unavailable_private_money||Given private money(s) is/are not available| +|503|failed_to_send_email||Failed to send an E-mail.| + + --- diff --git a/docs/private_money.md b/docs/private_money.md index 8b5490d..cbfe141 100644 --- a/docs/private_money.md +++ b/docs/private_money.md @@ -58,6 +58,13 @@ const response: Response = await client.send(new GetPriv [PaginatedPrivateMoneys](./responses.md#paginated-private-moneys) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|organization_not_found||Organization not found| + + --- @@ -69,7 +76,7 @@ const response: Response = await client.send(new GetPriv const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID from: "2020-03-27T12:54:11.000000Z", // 開始日時(toと同時に指定する必要有) - to: "2020-05-10T02:22:04.000000Z", // 終了日時(fromと同時に指定する必要有) + to: "2020-04-17T04:38:29.000000Z", // 終了日時(fromと同時に指定する必要有) page: 1, // ページ番号 per_page: 50 // 1ページ分の取引数 })); @@ -141,6 +148,7 @@ const response: Response = await cli を返します + --- @@ -150,8 +158,8 @@ const response: Response = await cli ```typescript const response: Response = await client.send(new GetPrivateMoneySummary({ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - from: "2020-04-17T04:38:29.000000Z", // 開始日時 - to: "2022-03-25T04:16:14.000000Z" // 終了日時 + from: "2022-03-25T04:16:14.000000Z", // 開始日時 + to: "2020-07-18T13:08:46.000000Z" // 終了日時 })); ``` @@ -198,6 +206,7 @@ const response: Response = await client.send(new GetPrivate を返します + --- diff --git a/docs/responses.md b/docs/responses.md index cfbdc9a..5b85fd4 100644 --- a/docs/responses.md +++ b/docs/responses.md @@ -1,21 +1,4 @@ # Responses - -## AdminUserWithShopsAndPrivateMoneys -* `id (string)`: -* `role (string)`: -* `email (string)`: -* `name (string)`: -* `is_active (boolean)`: -* `organization (Organization)`: -* `shops (User[])`: -* `private_moneys (PrivateMoney[])`: - -`organization`は [Organization](#organization) オブジェクトを返します。 - -`shops`は [User](#user) オブジェクトの配列を返します。 - -`private-moneys`は [PrivateMoney](#private-money) オブジェクトの配列を返します。 - ## AccountWithUser * `id (string)`: diff --git a/docs/shop.md b/docs/shop.md index 6a18281..a153d96 100644 --- a/docs/shop.md +++ b/docs/shop.md @@ -8,11 +8,11 @@ const response: Response = await client.send(new ListShops({ organization_code: "pocketchange", // 組織コード private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID name: "oxスーパー三田店", // 店舗名 - postal_code: "055-8439", // 店舗の郵便番号 + postal_code: "968-3273", // 店舗の郵便番号 address: "東京都港区芝...", // 店舗の住所 - tel: "021-7099-1336", // 店舗の電話番号 - email: "3bs4OkWhHF@x3P6.com", // 店舗のメールアドレス - external_id: "yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5c", // 店舗の外部ID + tel: "067316-065", // 店舗の電話番号 + email: "G5cGcBP5wA@9GwS.com", // 店舗のメールアドレス + external_id: "8bf", // 店舗の外部ID with_disabled: true, // 無効な店舗を含める page: 1, // ページ番号 per_page: 50 // 1ページ分の取引数 @@ -171,6 +171,14 @@ const response: Response = await client.send(new ListShops({ [PaginatedShops](./responses.md#paginated-shops) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|private_money_not_found||Private money not found| +|422|organization_not_found||Organization not found| + + --- @@ -182,11 +190,11 @@ const response: Response = await client.send(new ListShops({ ```typescript const response: Response = await client.send(new CreateShop({ shop_name: "oxスーパー三田店", // 店舗名 - shop_postal_code: "795-2270", // 店舗の郵便番号 + shop_postal_code: "694-8096", // 店舗の郵便番号 shop_address: "東京都港区芝...", // 店舗の住所 - shop_tel: "097-9077320", // 店舗の電話番号 - shop_email: "8bfxMId7hF@KERG.com", // 店舗のメールアドレス - shop_external_id: "a7vbD1cIywVpXocQ5N98CAVKuK", // 店舗の外部ID + shop_tel: "0527-917-204", // 店舗の電話番号 + shop_email: "1cIywVpXoc@Q5N9.com", // 店舗のメールアドレス + shop_external_id: "AVKu", // 店舗の外部ID organization_code: "ox-supermarket" // 組織コード })); ``` @@ -280,6 +288,17 @@ const response: Response = await client.send(new CreateShop({ [User](./responses.md#user) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|NULL|NULL|NULL| +|409|email_conflict|このメールアドレスは既に使われています|The E-mail address is already registered| +|409|shop_name_conflict||The shop name is already used| +|422|organization_not_member_organization||The specified organization is not a member organization of the organization accessing this API| +|422|organization_not_found||Organization not found| +|422|unavailable_private_money||Given private money(s) is/are not available| + + --- @@ -431,6 +450,18 @@ const response: Response = await client.send(new CreateShopV2( [ShopWithAccounts](./responses.md#shop-with-accounts) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|409|shop_name_conflict||The shop name is already used| +|422|organization_not_found||Organization not found| +|422|unpermitted_private_money|このマネーは使えません|This money is not available| +|422|unavailable_private_money||Given private money(s) is/are not available| +|422|organization_not_member_organization||The specified organization is not a member organization of the organization accessing this API| + + --- @@ -468,6 +499,7 @@ const response: Response = await client.send(new GetShop({ を返します + --- @@ -639,6 +671,7 @@ const response: Response = await client.send(new UpdateShop({ を返します + --- diff --git a/docs/transaction.md b/docs/transaction.md index db475a9..0c2230b 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -6,7 +6,7 @@ CPMトークンの現在の状態を取得します。CPMトークンの有効 ```typescript const response: Response = await client.send(new GetCpmToken({ - cpm_token: "zroFJfg0zCih9qHu842U5S" // CPMトークン + cpm_token: "xlKwOlCibtq2e0nqtXLNIT" // CPMトークン })); ``` @@ -33,6 +33,7 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを を返します + --- @@ -42,15 +43,15 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを ```typescript const response: Response = await client.send(new ListTransactions({ - from: "2021-06-05T21:00:30.000000Z", // 開始日時 - to: "2020-10-02T07:49:29.000000Z", // 終了日時 + from: "2023-05-04T13:08:23.000000Z", // 開始日時 + to: "2022-11-02T13:06:01.000000Z", // 終了日時 page: 1, // ページ番号 per_page: 50, // 1ページ分の取引数 shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID customer_name: "太郎", // エンドユーザー名 terminal_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 端末ID - transaction_id: "NqipKVsII", // 取引ID + transaction_id: "ffmmox8h", // 取引ID organization_code: "pocketchange", // 組織コード private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID is_modified: false, // キャンセルフラグ @@ -288,6 +289,12 @@ const response: Response = await client.send(new ListTrans [PaginatedTransaction](./responses.md#paginated-transaction) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|NULL|NULL|NULL| + + --- @@ -301,10 +308,10 @@ const response: Response = await client.send(new CreateTransa shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - money_amount: 362, - point_amount: 3542, - point_expires_at: "2024-03-01T17:10:50.000000Z", // ポイント有効期限 - description: "x3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVR" + money_amount: 2545, + point_amount: 6648, + point_expires_at: "2022-02-08T18:32:21.000000Z", // ポイント有効期限 + description: "x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTH" })); ``` @@ -398,6 +405,47 @@ const response: Response = await client.send(new CreateTransa [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|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|NULL|NULL|NULL| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|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|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_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.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -415,11 +463,11 @@ const response: Response = await client.send(new ListTra customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID customer_name: "太郎", // エンドユーザー名 description: "店頭QRコードによる支払い", // 取引説明文 - transaction_id: "1P", // 取引ID + transaction_id: "kv", // 取引ID is_modified: true, // キャンセルフラグ types: ["topup", "payment"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment - from: "2024-02-04T04:47:18.000000Z", // 開始日時 - to: "2020-03-06T03:10:42.000000Z", // 終了日時 + from: "2021-07-19T23:53:06.000000Z", // 開始日時 + to: "2021-01-10T00:16:17.000000Z", // 終了日時 next_page_cursor_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 次ページへ遷移する際に起点となるtransactionのID prev_page_cursor_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 前ページへ遷移する際に起点となるtransactionのID per_page: 50 // 1ページ分の取引数 @@ -683,6 +731,12 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ [PaginatedTransactionV2](./responses.md#paginated-transaction-v2) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + --- @@ -697,9 +751,9 @@ const response: Response = await client.send(new CreateTopupT customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーのID private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID bear_point_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント支払時の負担店舗ID - money_amount: 4236, // マネー額 - point_amount: 5322, // ポイント額 - point_expires_at: "2021-02-02T23:32:54.000000Z", // ポイント有効期限 + money_amount: 3094, // マネー額 + point_amount: 4032, // ポイント額 + point_expires_at: "2023-05-22T22:55:16.000000Z", // ポイント有効期限 description: "初夏のチャージキャンペーン", // 取引履歴に表示する説明文 metadata: "{\"key\":\"value\"}", // 取引メタデータ request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID @@ -844,6 +898,7 @@ const response: Response = await client.send(new CreateTopupT 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -858,6 +913,47 @@ const response: Response = await client.send(new CreateTopupT [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|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| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_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.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|private_money_not_found||Private money not found| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -873,16 +969,24 @@ const response: Response = await client.send(new CreatePaymen shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - amount: 8608, // 支払い額 + amount: 9195, // 支払い額 description: "たい焼き(小倉)", // 取引履歴に表示する説明文 metadata: "{\"key\":\"value\"}", // 取引メタデータ products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], // 商品情報データ - request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID + strategy: "point-preferred" // 支払い時の残高消費方式 })); ``` @@ -983,6 +1087,7 @@ const response: Response = await client.send(new CreatePaymen - `name`: 商品名。256字以下の文字列 - `unit_price`: 商品単価。0以上の数値 - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `quantity`: 商品の個数。この値が指定された場合、priceから算出される個数よりも優先されます。 - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 @@ -1003,6 +1108,7 @@ const response: Response = await client.send(new CreatePaymen 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -1011,12 +1117,72 @@ const response: Response = await client.send(new CreatePaymen } ``` +**`strategy`** + + +支払い時に残高がどのように消費されるかを指定します。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + 成功したときは [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_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.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|private_money_not_found||Private money not found| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -1029,28 +1195,20 @@ CPMトークンに設定されたスコープの取引を作ることができ ```typescript const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "5SjzUvS2Jlq6P89tC2Mi1P", // CPMトークン + cpm_token: "fSmGSFmTTeLGAy7h6m0Yya", // CPMトークン shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - amount: 7208.0, // 取引金額 + amount: 1318.0, // 取引金額 description: "たい焼き(小倉)", // 取引説明文 metadata: "{\"key\":\"value\"}", // 店舗側メタデータ products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], // 商品情報データ - request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID + strategy: "point-preferred" // 支払い時の残高消費方式 })); ``` @@ -1137,6 +1295,7 @@ const response: Response = await client.send(new CreateCpmTra - `name`: 商品名。256字以下の文字列 - `unit_price`: 商品単価。0以上の数値 - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `quantity`: 商品の個数。この値が指定された場合、priceから算出される個数よりも優先されます。 - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 @@ -1157,6 +1316,7 @@ const response: Response = await client.send(new CreateCpmTra 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -1165,12 +1325,77 @@ const response: Response = await client.send(new CreateCpmTra } ``` +**`strategy`** + + +支払い時に残高がどのように消費されるかを指定します。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + 成功したときは [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|cpm_unacceptable_amount|このCPMトークンに対して許可されていない金額です。|The amount is unacceptable for the CPM token| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| +|422|cpm_token_already_proceed|このCPMトークンは既に処理されています。|The CPM token is already proceed| +|422|cpm_token_already_expired|このCPMトークンは既に失効しています。|The CPM token is already expired| +|422|cpm_token_not_found|CPMトークンが見つかりませんでした。|The CPM token is not found.| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_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.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -1186,7 +1411,7 @@ const response: Response = await client.send(new CreateTransf sender_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金元ユーザーID receiver_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受取ユーザーID private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - amount: 686.0, // 送金額 + amount: 1859.0, // 送金額 metadata: "{\"key\":\"value\"}", // 取引メタデータ description: "たい焼き(小倉)", // 取引履歴に表示する説明文 request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID @@ -1288,6 +1513,7 @@ const response: Response = await client.send(new CreateTransf 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -1302,6 +1528,46 @@ const response: Response = await client.send(new CreateTransf [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|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|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_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.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -1314,8 +1580,8 @@ const response: Response = await client.send(new CreateExchan user_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", sender_private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", receiver_private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - amount: 5541, - description: "Re6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ9", + amount: 1951, + description: "0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TP", request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID })); ``` @@ -1386,6 +1652,7 @@ const response: Response = await client.send(new CreateExchan 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -1400,6 +1667,44 @@ const response: Response = await client.send(new CreateExchan [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|account_not_found|アカウントが見つかりません|The account is not found| +|422|transaction_restricted||Transaction is not allowed| +|422|can_not_exchange_between_same_private_money|同じマネーとの交換はできません|| +|422|can_not_exchange_between_users|異なるユーザー間での交換は出来ません|| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -1438,6 +1743,7 @@ const response: Response = await client.send(new GetTransacti を返します + --- @@ -1455,7 +1761,7 @@ const response: Response = await client.send(new GetTransacti const response: Response = await client.send(new RefundTransaction({ transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID description: "返品対応のため", // 取引履歴に表示する返金事由 - returning_point_expires_at: "2023-04-11T16:40:53.000000Z" // 返却ポイントの有効期限 + returning_point_expires_at: "2021-07-22T02:45:40.000000Z" // 返却ポイントの有効期限 })); ``` @@ -1503,6 +1809,7 @@ const response: Response = await client.send(new RefundTransa を返します + --- @@ -1540,6 +1847,7 @@ const response: Response = await client.send(new GetTransacti を返します + --- @@ -1575,6 +1883,7 @@ const response: Response = await client.send(new GetBulkTransac を返します + --- @@ -1636,6 +1945,7 @@ const response: Response = await client.send(new Li を返します + --- @@ -1700,6 +2010,16 @@ const response: Response = await client.send(new RequestUser [UserStatsOperation](./responses.md#user-stats-operation) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|invalid_promotional_operation_user|ユーザーの指定に不正な値が含まれています|Invalid user data is specified| +|422|invalid_promotional_operation_status|不正な処理ステータスです|Invalid operation status is specified| +|503|user_stats_operation_service_unavailable|一時的にユーザー統計サービスが利用不能です|User stats service is temporarily unavailable| + + --- diff --git a/docs/transfer.md b/docs/transfer.md index 1673ac8..7726e32 100644 --- a/docs/transfer.md +++ b/docs/transfer.md @@ -7,8 +7,8 @@ ```typescript const response: Response = await client.send(new GetAccountTransferSummary({ account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - from: "2020-05-19T10:22:23.000000Z", // 集計期間の開始時刻 - to: "2022-09-30T14:05:52.000000Z", // 集計期間の終了時刻 + from: "2023-06-23T21:17:23.000000Z", // 集計期間の開始時刻 + to: "2023-06-14T19:07:49.000000Z", // 集計期間の終了時刻 transfer_types: ["topup", "payment"] // 取引明細種別 (複数指定可) })); ``` @@ -113,6 +113,7 @@ const response: Response = await client.send(new GetAcco を返します + --- @@ -121,19 +122,19 @@ const response: Response = await client.send(new GetAcco ```typescript const response: Response = await client.send(new ListTransfers({ - from: "2023-09-04T06:29:07.000000Z", - to: "2024-01-13T03:24:09.000000Z", - page: 4884, - per_page: 6195, + from: "2021-03-22T20:29:34.000000Z", + to: "2024-01-28T16:06:14.000000Z", + page: 776, + per_page: 7651, shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - shop_name: "C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7k", + shop_name: "uWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1P", customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - customer_name: "VTYLZtj", + customer_name: "Re6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxq", transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", is_modified: true, - transaction_types: ["payment", "topup", "cashback"], - transfer_types: ["coupon", "cashback", "campaign", "payment", "topup", "transfer", "expire", "exchange"], // 取引明細の種類でフィルターします。 + transaction_types: ["exchange"], + transfer_types: ["exchange", "payment", "coupon", "campaign"], // 取引明細の種類でフィルターします。 description: "店頭QRコードによる支払い" // 取引詳細説明文 })); ``` @@ -349,6 +350,12 @@ const response: Response = await client.send(new ListTransfe [PaginatedTransfers](./responses.md#paginated-transfers) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|NULL|NULL|NULL| + + --- @@ -359,20 +366,20 @@ const response: Response = await client.send(new ListTransfe ```typescript const response: Response = await client.send(new ListTransfersV2({ shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - shop_name: "xB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaT", // 店舗名 + shop_name: "FYcLTC4xCABLekowD1pN0MSUSS", // 店舗名 customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID - customer_name: "lLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EK", // エンドユーザー名 + customer_name: "62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0", // エンドユーザー名 transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID is_modified: false, // キャンセルフラグ - transaction_types: ["cashback"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + transaction_types: ["exchange", "payment"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment next_page_cursor_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 次ページへ遷移する際に起点となるtransferのID prev_page_cursor_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 前ページへ遷移する際に起点となるtransferのID per_page: 50, // 1ページ分の取引数 - transfer_types: ["transfer", "exchange"], // 取引明細種別 (複数指定可) + transfer_types: ["expire", "cashback"], // 取引明細種別 (複数指定可) description: "店頭QRコードによる支払い", // 取引詳細説明文 - from: "2020-07-02T11:27:30.000000Z", // 開始日時 - to: "2020-07-24T15:07:42.000000Z" // 終了日時 + from: "2022-05-13T03:08:57.000000Z", // 開始日時 + to: "2020-08-03T21:57:14.000000Z" // 終了日時 })); ``` @@ -666,6 +673,12 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません [PaginatedTransfersV2](./responses.md#paginated-transfers-v2) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + --- diff --git a/docs/user.md b/docs/user.md index bffa6f6..aa9b25e 100644 --- a/docs/user.md +++ b/docs/user.md @@ -1,23 +1,3 @@ # User - -## GetUser - -```typescript -const response: Response = await client.send(new GetUser()); -``` - - - - - - -成功したときは -[AdminUserWithShopsAndPrivateMoneys](./responses.md#admin-user-with-shops-and-private-moneys) -を返します - - ---- - - diff --git a/docs/user_device.md b/docs/user_device.md index b3081e1..e6ad387 100644 --- a/docs/user_device.md +++ b/docs/user_device.md @@ -49,6 +49,13 @@ const response: Response = await client.send(new CreateUserDevice({ [UserDevice](./responses.md#user-device) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|user_not_found||The user is not found| + + --- @@ -84,6 +91,7 @@ const response: Response = await client.send(new GetUserDevice({ を返します + --- @@ -119,6 +127,7 @@ const response: Response = await client.send(new ActivateUserDevice( を返します + --- diff --git a/docs/webhook.md b/docs/webhook.md index 9a9e999..8fc7469 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -4,6 +4,59 @@ WebHookにはURLとタスク名、有効化されているかを設定するこ 通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。 + +## ListWebhooks: 作成したWebhookの一覧を返す + +```typescript +const response: Response = await client.send(new ListWebhooks({ + page: 1, // ページ番号 + per_page: 50 // 1ページ分の取得数 +})); +``` + + + +### Parameters +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 50 になっています。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedOrganizationWorkerTaskWebhook](./responses.md#paginated-organization-worker-task-webhook) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + + +--- + + ## CreateWebhook: webhookの作成 ワーカータスクの処理が終了したことを通知するためのWebhookを登録します @@ -12,8 +65,8 @@ WebHookにはURLとタスク名、有効化されているかを設定するこ ```typescript const response: Response = await client.send(new CreateWebhook({ - task: "bulk_shops", // タスク名 - url: "Bgm1" // URL + task: "process_user_stats_operation", // タスク名 + url: "eg" // URL })); ``` @@ -52,54 +105,50 @@ const response: Response = await client.send(new [OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|409|organization_worker_task_finish_webhook_conflict|そのwebhookは既に登録されています|The webhook is already registered| + + --- - -## ListWebhooks: 作成したWebhookの一覧を返す + +## DeleteWebhook: Webhookの削除 +指定したWebhookを削除します ```typescript -const response: Response = await client.send(new ListWebhooks({ - page: 1, // ページ番号 - per_page: 50 // 1ページ分の取得数 +const response: Response = await client.send(new DeleteWebhook({ + webhook_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Webhook ID })); ``` ### Parameters -**`page`** - - -取得したいページ番号です。 - -```json -{ - "type": "integer", - "minimum": 1 -} -``` - -**`per_page`** +**`webhook_id`** -1ページ分の取得数です。デフォルトでは 50 になっています。 +削除するWebhookのIDです。 ```json { - "type": "integer", - "minimum": 1 + "type": "string", + "format": "uuid" } ``` 成功したときは -[PaginatedOrganizationWorkerTaskWebhook](./responses.md#paginated-organization-worker-task-webhook) +[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) を返します + --- @@ -110,7 +159,7 @@ const response: Response = await client. ```typescript const response: Response = await client.send(new UpdateWebhook({ webhook_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // Webhook ID - url: "b", // URL + url: "iq", // URL is_active: false, // 有効/無効 task: "bulk_shops" // タスク名 })); @@ -175,40 +224,6 @@ trueならWebhookによる通知が有効になり、falseなら無効になり を返します ---- - - - -## DeleteWebhook: Webhookの削除 -指定したWebhookを削除します - -```typescript -const response: Response = await client.send(new DeleteWebhook({ - webhook_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Webhook ID -})); -``` - - - -### Parameters -**`webhook_id`** - - -削除するWebhookのIDです。 - -```json -{ - "type": "string", - "format": "uuid" -} -``` - - - -成功したときは -[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) -を返します - --- diff --git a/partner.yaml b/partner.yaml index 4619f57..a6d8467 100644 --- a/partner.yaml +++ b/partner.yaml @@ -7,8 +7,9 @@ openapi: '3.0.1' info: description: >- Partner APIs + title: Partner APIs - version: 0.0.0 + version: 24.3.26 tags: - name: Transaction @@ -1021,6 +1022,55 @@ components: 例えば、キャンペーンによるポイント付与取引やキャンセル状況などの情報が含まれます。 ポケペイ取引が存在しない場合はnullが設定されます。 + Products: + type: array + items: + type: object + properties: + jan_code: + type: string + maxLength: 64 + classification_code: + type: string + maxLength: 64 + name: + type: string + maxLength: 256 + unit_price: + type: number + minimum: 0 + price: + type: number + minimum: 0 + quantity: + type: integer + minimum: 1 + is_discounted: + type: boolean + other: + type: string + format: json + example: |- + {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, + "is_discounted": false, + "other":"{}"} + title: '商品情報データ' + description: |- + 一つの取引に含まれる商品情報データです。 + 以下の内容からなるJSONオブジェクトの配列で指定します。 + + - `jan_code`: JANコード。64字以下の文字列 + - `name`: 商品名。256字以下の文字列 + - `unit_price`: 商品単価。0以上の数値 + - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 + - `quantity`: 商品の個数。この値が指定された場合、priceから算出される個数よりも優先されます。 + - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean + - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + Product: x-pokepay-schema-type: "response" properties: @@ -1036,6 +1086,10 @@ components: price: type: number minimum: 0 + quantity: + type: integer + minimum: 1 + nullable: true is_discounted: type: boolean other: @@ -3761,6 +3815,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -3819,6 +3874,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -3904,48 +3960,7 @@ paths: example: |- {"key":"value"} products: - type: array - items: - type: object - properties: - jan_code: - type: string - maxLength: 64 - classification_code: - type: string - maxLength: 64 - name: - type: string - maxLength: 256 - unit_price: - type: number - minimum: 0 - price: - type: number - minimum: 0 - is_discounted: - type: boolean - other: - type: string - format: json - example: |- - {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"} - title: '商品情報データ' - description: |- - 一つの取引に含まれる商品情報データです。 - 以下の内容からなるJSONオブジェクトの配列で指定します。 - - - `jan_code`: JANコード。64字以下の文字列 - - `name`: 商品名。256字以下の文字列 - - `unit_price`: 商品単価。0以上の数値 - - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 - - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + $ref: '#/components/schemas/Products' request_id: type: string format: uuid @@ -3956,7 +3971,21 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + strategy: + type: string + enum: [point-preferred, money-only] + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + example: 'point-preferred' responses: '200': description: OK @@ -4031,48 +4060,7 @@ paths: example: |- {"key":"value"} products: - type: array - items: - type: object - properties: - jan_code: - type: string - maxLength: 64 - classification_code: - type: string - maxLength: 64 - name: - type: string - maxLength: 256 - unit_price: - type: number - minimum: 0 - price: - type: number - minimum: 0 - is_discounted: - type: boolean - other: - type: string - format: json - example: |- - {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"} - title: 商品情報データ - description: |- - 一つの取引に含まれる商品情報データです。 - 以下の内容からなるJSONオブジェクトの配列で指定します。 - - - `jan_code`: JANコード。64字以下の文字列 - - `name`: 商品名。256字以下の文字列 - - `unit_price`: 商品単価。0以上の数値 - - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 - - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + $ref: '#/components/schemas/Products' request_id: type: string format: uuid @@ -4083,7 +4071,21 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + strategy: + type: string + enum: [point-preferred, money-only] + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + example: 'point-preferred' responses: '200': description: OK @@ -4154,6 +4156,88 @@ paths: $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/UnprocessableEntity' + + /transactions/cashtray: + post: + tags: + - Cashtray + summary: 'CashtrayQRコードを読み取ることで取引する' + description: | + エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。 + + 通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 + もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがCashtrayQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 + + x-pokepay-operator-name: "CreateTransactionWithCashtray" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["cashtray_id", "customer_id"] + properties: + cashtray_id: + type: string + format: uuid + title: 'Cashtray用QRコードのID' + description: |- + Cashtray用QRコードのIDです。 + + QRコード生成時に送金元店舗のウォレット情報や、金額などが登録されています。 + + customer_id: + type: string + format: uuid + title: 'エンドユーザーのID' + description: |- + エンドユーザーIDです。 + + strategy: + type: string + enum: [point-preferred, money-only] + default: 'point-preferred' + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + チャージの場合は無効です。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + + request_id: + type: string + format: uuid + title: 'リクエストID' + description: |- + 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + + 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。 + 指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + + リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。 + もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionDetail' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /transactions/transfer: post: tags: @@ -4232,6 +4316,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -4284,6 +4369,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -4566,48 +4652,7 @@ paths: example: |- {"key":"value"} products: - type: array - items: - type: object - properties: - jan_code: - type: string - maxLength: 64 - classification_code: - type: string - maxLength: 64 - name: - type: string - maxLength: 256 - unit_price: - type: number - minimum: 0 - price: - type: number - minimum: 0 - is_discounted: - type: boolean - other: - type: string - format: json - example: |- - {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"} - title: '商品情報データ' - description: |- - 一つの取引に含まれる商品情報データです。 - 以下の内容からなるJSONオブジェクトの配列で指定します。 - - - `jan_code`: JANコード。64字以下の文字列 - - `name`: 商品名。256字以下の文字列 - - `unit_price`: 商品単価。0以上の数値 - - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 - - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + $ref: '#/components/schemas/Products' request_id: type: string format: uuid @@ -4619,6 +4664,14 @@ paths: リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 example: 9dbfd997-b948-40d3-a3bf-6bc1a01368d2 + done_at: + type: string + format: date-time + title: 'ポケペイ外部取引の実施時間' + description: |- + ポケペイ外部取引が実際に起こった時間です。 + 時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。 + デフォルトではCreateExternalTransactionがリクエストされた時間になります。 responses: '200': description: OK @@ -4676,6 +4729,37 @@ paths: $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/UnprocessableEntity' + /external-transactions/requests/{request_id}: + get: + tags: + - Event + summary: 'リクエストIDからポケペイ外部取引を取得する' + description: |- + リクエストIDを指定してポケペイ外部取引を取得します。 + + 発行体の管理者は自組織発行のマネーに紐付くポケペイ外部取引を取得できます。 + + x-pokepay-operator-name: GetExternalTransactionByRequestId + x-pokepay-allow-server-side: true + parameters: + - in: path + name: request_id + required: true + schema: + type: string + format: uuid + title: 'リクエストID' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ExternalTransactionDetail' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' /transfers: get: tags: @@ -6522,7 +6606,7 @@ paths: minimum: 0 maximum: 6 title: 'キャンペーンを適用する曜日 (複数指定)' - describe: |- + description: |- キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) @@ -6546,7 +6630,7 @@ paths: } title: 'キャンペーンを適用する時間帯 (複数指定)' - describe: |- + description: |- キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 @@ -6556,9 +6640,19 @@ paths: type: string format: uuid title: 'キャンペーン適用対象となる店舗IDのリスト' - describe: |- + description: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 + blacklisted_shop_ids: + type: array + items: + type: string + format: uuid + title: 'キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)' + description: |- + キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 + このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 + blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 minimum_number_of_products: type: integer minimum: 1 @@ -6761,6 +6855,7 @@ paths: デフォルトではポイント付与先はキャンペーンを駆動するイベントのマネー(private_money_idで指定したマネー)になります。 別マネーに対するポイント付与は別のtransactionとなります。 RefundTransaction で元のイベントをキャンセルしたときはポイント付与のtransactionもキャンセルされ、逆にポイント付与のtransactionをキャンセルしたときは連動して元のイベントがキャンセルされます。 + applicable_account_metadata: description: |- ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 @@ -6810,6 +6905,55 @@ paths: "value": "male" } + applicable_transaction_metadata: + description: |- + 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 + 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 + + オプショナルパラメータtestによって比較方法を指定することができます。 + デフォルトは equal で、その他に not-equalを指定可能です。 + + 例1: 取引のメタデータに会員ランクとしてbronzeが指定されているときのみ発火 + + ```javascript + { + "key": "rank", + "value": "bronze" + } + ``` + + 例2: 取引のメタデータに会員ランクとしてbronze以外が指定されているときのみ発火 + + ```javascript + { + "key": "rank", + "value": "bronze", + "test": "not-equal" + } + ``` + + type: object + properties: + key: + type: string + description: |- + メタデータの属性名 + value: + type: string + description: |- + メタデータの値 + test: + type: string + enum: [equal, not-equal] + description: |- + メタデータの値の比較方法。デフォルトはequal + example: |- + { + "key": "rank", + "value": "bronze" + } + budget_caps_amount: title: 'キャンペーン予算上限' type: integer @@ -7354,7 +7498,7 @@ paths: maximum: 6 nullable: true title: 'キャンペーンを適用する曜日 (複数指定)' - describe: |- + description: |- キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) @@ -7379,7 +7523,7 @@ paths: nullable: true title: 'キャンペーンを適用する時間帯 (複数指定)' - describe: |- + description: |- キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 @@ -7390,9 +7534,20 @@ paths: format: uuid nullable: true title: 'キャンペーン適用対象となる店舗IDのリスト' - describe: |- + description: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 + blacklisted_shop_ids: + type: array + items: + type: string + format: uuid + nullable: true + title: 'キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)' + description: |- + キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 + このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 + blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 minimum_number_of_products: type: integer minimum: 1 @@ -7586,6 +7741,7 @@ paths: このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 + applicable_account_metadata: description: |- ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 @@ -7636,6 +7792,56 @@ paths: "value": "male" } + applicable_transaction_metadata: + description: |- + 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 + 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 + + オプショナルパラメータtestによって比較方法を指定することができます。 + デフォルトは equal で、その他に not-equalを指定可能です。 + + 例1: 取引のメタデータに会員ランクとしてbronzeが指定されているときのみ発火 + + ```javascript + { + "key": "rank", + "value": "bronze" + } + ``` + + 例2: 取引のメタデータに会員ランクとしてbronze以外が指定されているときのみ発火 + + ```javascript + { + "key": "rank", + "value": "bronze", + "test": "not-equal" + } + ``` + + type: object + nullable: true + properties: + key: + type: string + description: |- + メタデータの属性名 + value: + type: string + description: |- + メタデータの値 + test: + type: string + enum: [equal, not-equal] + description: |- + メタデータの値の比較方法。デフォルトはequal + example: |- + { + "key": "rank", + "value": "bronze" + } + budget_caps_amount: title: 'キャンペーン予算上限' type: integer @@ -7726,6 +7932,7 @@ paths: $ref: '#/components/responses/UnpermittedAdminUser' '503': $ref: '#/components/responses/UserStatsOperationServiceUnavailable' + /webhooks: post: x-pokepay-operator-name: "CreateWebhook" diff --git a/src/index.test.ts b/src/index.test.ts index 1baa02c..9d56ecc 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -1,7 +1,7 @@ // DO NOT EDIT: File is generated by code generator. import axios from 'axios'; -import { Client, VERSION, Request, Method, Response, UserStatsOperationServiceUnavailable, UnpermittedAdminUser, InvalidParameters, PartnerRequestAlreadyDone, PartnerRequestExpired, PartnerDecryptionFailed, PartnerClientNotFound, BadRequest, PaginatedOrganizations, PaginatedCoupons, CouponDetail, Coupon, PaginatedOrganizationWorkerTaskWebhook, OrganizationWorkerTaskWebhook, AccountTransferSummary, AccountTransferSummaryElement, PaginatedCampaigns, Campaign, PaginatedPrivateMoneys, PaginatedBills, PaginatedShops, PaginatedAccountBalance, PaginatedAccountDetails, PaginatedAccountWithUsers, PaginatedAccounts, PaginatedTransfersV2, PaginatedTransfers, PaginatedTransactionV2, PaginatedTransaction, Banks, Bank, BankRegisteringInfo, UserDevice, UserStatsOperation, PrivateMoneySummary, PaginatedPrivateMoneyOrganizationSummaries, PrivateMoneyOrganizationSummary, OrganizationSummary, Product, ExternalTransactionDetail, ExternalTransaction, Transfer, AccountWithoutPrivateMoneyDetail, PaginatedBulkTransactionJob, BulkTransactionJob, BulkTransaction, ShopWithAccounts, ShopWithMetadata, TransactionDetail, Transaction, Organization, PrivateMoney, User, CashtrayAttempt, CashtrayWithResult, Cashtray, CpmToken, PaginatedChecks, Check, Bill, AccountBalance, AccountDeleted, ShopAccount, AccountDetail, AccountWithUser, Account, AdminUserWithShopsAndPrivateMoneys, Pagination, Echo, Pong, UpdateCoupon, GetCoupon, CreateCoupon, ListCoupons, CreateBankTopupTransaction, ListBanks, CreateBank, ActivateUserDevice, GetUserDevice, CreateUserDevice, DeleteWebhook, UpdateWebhook, ListWebhooks, CreateWebhook, RequestUserStats, UpdateCampaign, GetCampaign, ListCampaigns, CreateCampaign, UpdateCashtray, CancelCashtray, GetCashtray, CreateCashtray, ListBulkTransactionJobs, GetBulkTransaction, ListCustomerTransactions, GetPrivateMoneySummary, GetPrivateMoneyOrganizationSummaries, GetPrivateMoneys, UpdateShop, GetShop, CreateShopV2, CreateShop, ListShops, CreateOrganization, ListOrganizations, ListTransfersV2, ListTransfers, RefundExternalTransaction, CreateExternalTransaction, GetTransactionByRequestId, RefundTransaction, GetTransaction, BulkCreateTransaction, CreateExchangeTransaction, CreateTransferTransaction, CreateCpmTransaction, CreatePaymentTransaction, CreateTopupTransactionWithCheck, CreateTopupTransaction, ListTransactionsV2, CreateTransaction, ListTransactions, GetCpmToken, UpdateCheck, GetCheck, ListChecks, CreateCheck, UpdateBill, CreateBill, ListBills, GetShopAccounts, CreateCustomerAccount, GetCustomerAccounts, GetAccountTransferSummary, UpdateCustomerAccount, ListAccountExpiredBalances, ListAccountBalances, DeleteAccount, UpdateAccount, GetAccount, CreateUserAccount, ListUserAccounts, GetUser, SendEcho, GetPing } from "./index"; +import { Client, VERSION, Request, Method, Response, UserStatsOperationServiceUnavailable, UnpermittedAdminUser, InvalidParameters, PartnerRequestAlreadyDone, PartnerRequestExpired, PartnerDecryptionFailed, PartnerClientNotFound, BadRequest, PaginatedOrganizations, PaginatedCoupons, CouponDetail, Coupon, PaginatedOrganizationWorkerTaskWebhook, OrganizationWorkerTaskWebhook, AccountTransferSummary, AccountTransferSummaryElement, PaginatedCampaigns, Campaign, PaginatedPrivateMoneys, PaginatedBills, PaginatedShops, PaginatedAccountBalance, PaginatedAccountDetails, PaginatedAccountWithUsers, PaginatedAccounts, PaginatedTransfersV2, PaginatedTransfers, PaginatedTransactionV2, PaginatedTransaction, Banks, Bank, BankRegisteringInfo, UserDevice, UserStatsOperation, PrivateMoneySummary, PaginatedPrivateMoneyOrganizationSummaries, PrivateMoneyOrganizationSummary, OrganizationSummary, Product, ExternalTransactionDetail, ExternalTransaction, Transfer, AccountWithoutPrivateMoneyDetail, PaginatedBulkTransactionJob, BulkTransactionJob, BulkTransaction, ShopWithAccounts, ShopWithMetadata, TransactionDetail, Transaction, Organization, PrivateMoney, User, CashtrayAttempt, CashtrayWithResult, Cashtray, CpmToken, PaginatedChecks, Check, Bill, AccountBalance, AccountDeleted, ShopAccount, AccountDetail, AccountWithUser, Account, AdminUserWithShopsAndPrivateMoneys, Pagination, Echo, Pong, UpdateCoupon, GetCoupon, CreateCoupon, ListCoupons, CreateBankTopupTransaction, CreateBank, ListBanks, ActivateUserDevice, GetUserDevice, CreateUserDevice, UpdateWebhook, DeleteWebhook, CreateWebhook, ListWebhooks, RequestUserStats, UpdateCampaign, GetCampaign, CreateCampaign, ListCampaigns, UpdateCashtray, GetCashtray, CancelCashtray, CreateCashtray, ListBulkTransactionJobs, GetBulkTransaction, ListCustomerTransactions, GetPrivateMoneySummary, GetPrivateMoneyOrganizationSummaries, GetPrivateMoneys, UpdateShop, GetShop, CreateShopV2, CreateShop, ListShops, CreateOrganization, ListOrganizations, ListTransfersV2, ListTransfers, GetExternalTransactionByRequestId, RefundExternalTransaction, CreateExternalTransaction, GetTransactionByRequestId, RefundTransaction, GetTransaction, BulkCreateTransaction, CreateExchangeTransaction, CreateTransferTransaction, CreateTransactionWithCashtray, CreateCpmTransaction, CreatePaymentTransaction, CreateTopupTransactionWithCheck, CreateTopupTransaction, ListTransactionsV2, CreateTransaction, ListTransactions, GetCpmToken, UpdateCheck, GetCheck, CreateCheck, ListChecks, UpdateBill, CreateBill, ListBills, GetShopAccounts, CreateCustomerAccount, GetCustomerAccounts, GetAccountTransferSummary, UpdateCustomerAccount, ListAccountExpiredBalances, ListAccountBalances, UpdateAccount, GetAccount, DeleteAccount, CreateUserAccount, ListUserAccounts, GetUser, SendEcho, GetPing } from "./index"; const client = new Client("~/.pokepay/test-config.ini"); @@ -180,10 +180,10 @@ test('Check CreateUserAccount | 3', async () => { expect(status).not.toBe(400); }) -test('Check GetAccount | 0', async () => { +test('Check DeleteAccount | 0', async () => { let status = 400; try { - const response: Response = await client.send(new GetAccount({ + const response: Response = await client.send(new DeleteAccount({ account_id: "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d" })); status = response.code; @@ -196,11 +196,12 @@ test('Check GetAccount | 0', async () => { expect(status).not.toBe(400); }) -test('Check UpdateAccount | 0', async () => { +test('Check DeleteAccount | 1', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateAccount({ - account_id: "553fd4da-7231-4218-aeb3-2d714f66622b" + const response: Response = await client.send(new DeleteAccount({ + account_id: "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d", + cashback: true })); status = response.code; } catch (e) { @@ -212,12 +213,11 @@ test('Check UpdateAccount | 0', async () => { expect(status).not.toBe(400); }) -test('Check UpdateAccount | 1', async () => { +test('Check GetAccount | 0', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateAccount({ - account_id: "553fd4da-7231-4218-aeb3-2d714f66622b", - can_transfer_topup: false + const response: Response = await client.send(new GetAccount({ + account_id: "e2f27231-d218-406e-b371-622b2afd45f7" })); status = response.code; } catch (e) { @@ -229,13 +229,11 @@ test('Check UpdateAccount | 1', async () => { expect(status).not.toBe(400); }) -test('Check UpdateAccount | 2', async () => { +test('Check UpdateAccount | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateAccount({ - account_id: "553fd4da-7231-4218-aeb3-2d714f66622b", - status: "pre-closed", - can_transfer_topup: true + account_id: "f687016b-d0b3-46f2-8833-e8985291851f" })); status = response.code; } catch (e) { @@ -247,14 +245,12 @@ test('Check UpdateAccount | 2', async () => { expect(status).not.toBe(400); }) -test('Check UpdateAccount | 3', async () => { +test('Check UpdateAccount | 1', async () => { let status = 400; try { const response: Response = await client.send(new UpdateAccount({ - account_id: "553fd4da-7231-4218-aeb3-2d714f66622b", - is_suspended: false, - status: "active", - can_transfer_topup: false + account_id: "f687016b-d0b3-46f2-8833-e8985291851f", + can_transfer_topup: true })); status = response.code; } catch (e) { @@ -266,11 +262,13 @@ test('Check UpdateAccount | 3', async () => { expect(status).not.toBe(400); }) -test('Check DeleteAccount | 0', async () => { +test('Check UpdateAccount | 2', async () => { let status = 400; try { - const response: Response = await client.send(new DeleteAccount({ - account_id: "78993f7e-a95e-4e84-8ce0-7a7b0adcc451" + const response: Response = await client.send(new UpdateAccount({ + account_id: "f687016b-d0b3-46f2-8833-e8985291851f", + status: "pre-closed", + can_transfer_topup: true })); status = response.code; } catch (e) { @@ -282,12 +280,14 @@ test('Check DeleteAccount | 0', async () => { expect(status).not.toBe(400); }) -test('Check DeleteAccount | 1', async () => { +test('Check UpdateAccount | 3', async () => { let status = 400; try { - const response: Response = await client.send(new DeleteAccount({ - account_id: "78993f7e-a95e-4e84-8ce0-7a7b0adcc451", - cashback: false + const response: Response = await client.send(new UpdateAccount({ + account_id: "f687016b-d0b3-46f2-8833-e8985291851f", + is_suspended: true, + status: "active", + can_transfer_topup: false })); status = response.code; } catch (e) { @@ -303,7 +303,7 @@ test('Check ListAccountBalances | 0', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountBalances({ - account_id: "124a3fe8-1e88-4803-9195-15bbd1722f1a" + account_id: "0adcc451-9f5b-4fe8-8803-fd1118c34c95" })); status = response.code; } catch (e) { @@ -319,7 +319,7 @@ test('Check ListAccountBalances | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountBalances({ - account_id: "124a3fe8-1e88-4803-9195-15bbd1722f1a", + account_id: "0adcc451-9f5b-4fe8-8803-fd1118c34c95", direction: "desc" })); status = response.code; @@ -336,9 +336,9 @@ test('Check ListAccountBalances | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountBalances({ - account_id: "124a3fe8-1e88-4803-9195-15bbd1722f1a", - expires_at_to: "2020-09-07T21:25:03.000000Z", - direction: "asc" + account_id: "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + expires_at_to: "2020-10-07T18:59:38.000000Z", + direction: "desc" })); status = response.code; } catch (e) { @@ -354,8 +354,8 @@ test('Check ListAccountBalances | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountBalances({ - account_id: "124a3fe8-1e88-4803-9195-15bbd1722f1a", - expires_at_from: "2020-07-02T09:51:09.000000Z", + account_id: "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + expires_at_from: "2020-09-07T21:25:03.000000Z", expires_at_to: "2022-05-06T04:41:55.000000Z", direction: "desc" })); @@ -373,11 +373,11 @@ test('Check ListAccountBalances | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountBalances({ - account_id: "124a3fe8-1e88-4803-9195-15bbd1722f1a", + account_id: "0adcc451-9f5b-4fe8-8803-fd1118c34c95", per_page: 3844, - expires_at_from: "2020-06-15T18:58:37.000000Z", - expires_at_to: "2022-03-04T19:01:47.000000Z", - direction: "desc" + expires_at_from: "2022-07-13T08:37:39.000000Z", + expires_at_to: "2022-05-05T20:55:29.000000Z", + direction: "asc" })); status = response.code; } catch (e) { @@ -393,12 +393,12 @@ test('Check ListAccountBalances | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountBalances({ - account_id: "124a3fe8-1e88-4803-9195-15bbd1722f1a", - page: 3584, - per_page: 7257, - expires_at_from: "2022-05-05T20:55:29.000000Z", - expires_at_to: "2023-04-07T14:57:44.000000Z", - direction: "asc" + account_id: "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + page: 677, + per_page: 5673, + expires_at_from: "2021-09-28T23:27:27.000000Z", + expires_at_to: "2020-10-21T06:08:14.000000Z", + direction: "desc" })); status = response.code; } catch (e) { @@ -414,7 +414,7 @@ test('Check ListAccountExpiredBalances | 0', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountExpiredBalances({ - account_id: "cce276f9-f936-4628-91b6-bb60d347c3df" + account_id: "e82d7cf3-7ec5-43b0-a747-7fff9e012434" })); status = response.code; } catch (e) { @@ -430,8 +430,8 @@ test('Check ListAccountExpiredBalances | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountExpiredBalances({ - account_id: "cce276f9-f936-4628-91b6-bb60d347c3df", - direction: "asc" + account_id: "e82d7cf3-7ec5-43b0-a747-7fff9e012434", + direction: "desc" })); status = response.code; } catch (e) { @@ -447,8 +447,8 @@ test('Check ListAccountExpiredBalances | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountExpiredBalances({ - account_id: "cce276f9-f936-4628-91b6-bb60d347c3df", - expires_at_to: "2022-11-08T09:57:39.000000Z", + account_id: "e82d7cf3-7ec5-43b0-a747-7fff9e012434", + expires_at_to: "2020-03-19T18:01:03.000000Z", direction: "desc" })); status = response.code; @@ -465,9 +465,9 @@ test('Check ListAccountExpiredBalances | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountExpiredBalances({ - account_id: "cce276f9-f936-4628-91b6-bb60d347c3df", - expires_at_from: "2021-02-10T04:23:33.000000Z", - expires_at_to: "2021-11-27T03:23:28.000000Z", + account_id: "e82d7cf3-7ec5-43b0-a747-7fff9e012434", + expires_at_from: "2022-12-28T17:18:58.000000Z", + expires_at_to: "2023-10-07T04:30:21.000000Z", direction: "desc" })); status = response.code; @@ -484,11 +484,11 @@ test('Check ListAccountExpiredBalances | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountExpiredBalances({ - account_id: "cce276f9-f936-4628-91b6-bb60d347c3df", - per_page: 9269, - expires_at_from: "2022-07-27T12:24:37.000000Z", - expires_at_to: "2020-03-19T18:01:03.000000Z", - direction: "desc" + account_id: "e82d7cf3-7ec5-43b0-a747-7fff9e012434", + per_page: 9557, + expires_at_from: "2023-08-29T00:06:37.000000Z", + expires_at_to: "2024-05-02T18:19:52.000000Z", + direction: "asc" })); status = response.code; } catch (e) { @@ -504,11 +504,11 @@ test('Check ListAccountExpiredBalances | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountExpiredBalances({ - account_id: "cce276f9-f936-4628-91b6-bb60d347c3df", - page: 6531, - per_page: 2579, - expires_at_from: "2023-10-07T04:30:21.000000Z", - expires_at_to: "2023-04-20T20:38:29.000000Z", + account_id: "e82d7cf3-7ec5-43b0-a747-7fff9e012434", + page: 7340, + per_page: 6193, + expires_at_from: "2021-08-26T01:41:22.000000Z", + expires_at_to: "2022-02-08T20:51:26.000000Z", direction: "asc" })); status = response.code; @@ -525,7 +525,7 @@ test('Check UpdateCustomerAccount | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCustomerAccount({ - account_id: "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + account_id: "fbeb99af-7def-4c9c-b194-75595f563ea0" })); status = response.code; } catch (e) { @@ -541,7 +541,7 @@ test('Check UpdateCustomerAccount | 1', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCustomerAccount({ - account_id: "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + account_id: "fbeb99af-7def-4c9c-b194-75595f563ea0", metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" })); status = response.code; @@ -558,8 +558,8 @@ test('Check UpdateCustomerAccount | 2', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCustomerAccount({ - account_id: "86e1558d-113e-4ea6-8a48-226ea0c2dcab", - external_id: "hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qq", + account_id: "fbeb99af-7def-4c9c-b194-75595f563ea0", + external_id: "yGaN9eZjSIQORsTn19Lt83IRf", metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" })); status = response.code; @@ -576,9 +576,9 @@ test('Check UpdateCustomerAccount | 3', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCustomerAccount({ - account_id: "86e1558d-113e-4ea6-8a48-226ea0c2dcab", - account_name: "rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfd", - external_id: "KJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCb", + account_id: "fbeb99af-7def-4c9c-b194-75595f563ea0", + account_name: "6apsZzwHUgb2qqrLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfddKJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCbHnT3R8fCd8115VzfSNwUPij0JCeK", + external_id: "ErwIngTct5VctC8ahSG576Yk267hNuqsd2", metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" })); status = response.code; @@ -595,10 +595,10 @@ test('Check UpdateCustomerAccount | 4', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCustomerAccount({ - account_id: "86e1558d-113e-4ea6-8a48-226ea0c2dcab", - status: "pre-closed", - account_name: "nT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fc", - external_id: "KmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUj", + account_id: "fbeb99af-7def-4c9c-b194-75595f563ea0", + status: "suspended", + account_name: "Eu5ugI0fcKmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUjDTSSciw3PX7IImkvl5vCAHh7QD95u0YIcm0Sp", + external_id: "2RluFOAxJTKKlkJp5ENq52", metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" })); status = response.code; @@ -615,7 +615,7 @@ test('Check GetAccountTransferSummary | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetAccountTransferSummary({ - account_id: "d79ada44-2554-41d3-a753-5725590e9c63" + account_id: "76ed671d-bd16-408a-9d0c-cda580df7f8f" })); status = response.code; } catch (e) { @@ -631,8 +631,8 @@ test('Check GetAccountTransferSummary | 1', async () => { let status = 400; try { const response: Response = await client.send(new GetAccountTransferSummary({ - account_id: "d79ada44-2554-41d3-a753-5725590e9c63", - transfer_types: ["exchange-outflow", "exchange-inflow", "refund-topup", "use-coupon", "refund-coupon", "payment", "refund-campaign", "campaign-topup", "refund-exchange-outflow"] + account_id: "76ed671d-bd16-408a-9d0c-cda580df7f8f", + transfer_types: ["refund-exchange-outflow", "exchange-inflow", "use-coupon", "refund-coupon", "campaign-topup", "refund-payment", "payment", "refund-campaign", "exchange-outflow", "refund-exchange-inflow", "topup"] })); status = response.code; } catch (e) { @@ -648,9 +648,9 @@ test('Check GetAccountTransferSummary | 2', async () => { let status = 400; try { const response: Response = await client.send(new GetAccountTransferSummary({ - account_id: "d79ada44-2554-41d3-a753-5725590e9c63", - to: "2022-08-23T05:52:55.000000Z", - transfer_types: ["exchange-outflow", "use-coupon", "refund-payment", "topup", "payment", "exchange-inflow", "refund-exchange-outflow"] + account_id: "76ed671d-bd16-408a-9d0c-cda580df7f8f", + to: "2022-05-08T23:58:55.000000Z", + transfer_types: ["campaign-topup"] })); status = response.code; } catch (e) { @@ -666,10 +666,10 @@ test('Check GetAccountTransferSummary | 3', async () => { let status = 400; try { const response: Response = await client.send(new GetAccountTransferSummary({ - account_id: "d79ada44-2554-41d3-a753-5725590e9c63", - from: "2022-12-23T00:17:08.000000Z", - to: "2023-06-07T07:45:11.000000Z", - transfer_types: ["exchange-outflow", "refund-campaign", "exchange-inflow", "topup", "refund-topup", "refund-payment", "refund-exchange-inflow", "refund-coupon", "refund-exchange-outflow", "use-coupon"] + account_id: "76ed671d-bd16-408a-9d0c-cda580df7f8f", + from: "2021-02-13T21:14:34.000000Z", + to: "2020-09-07T03:23:29.000000Z", + transfer_types: ["refund-payment", "refund-campaign", "refund-topup", "payment", "exchange-inflow", "refund-exchange-inflow", "use-coupon"] })); status = response.code; } catch (e) { @@ -685,7 +685,7 @@ test('Check GetCustomerAccounts | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetCustomerAccounts({ - private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9" + private_money_id: "9bc3d23a-fe8e-4699-9be7-a93d626f5384" })); status = response.code; } catch (e) { @@ -701,8 +701,8 @@ test('Check GetCustomerAccounts | 1', async () => { let status = 400; try { const response: Response = await client.send(new GetCustomerAccounts({ - private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", - email: "Icm0Sp2Rlu@FOAx.com" + private_money_id: "9bc3d23a-fe8e-4699-9be7-a93d626f5384", + email: "dxWfKkMLwr@BpOR.com" })); status = response.code; } catch (e) { @@ -718,9 +718,9 @@ test('Check GetCustomerAccounts | 2', async () => { let status = 400; try { const response: Response = await client.send(new GetCustomerAccounts({ - private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", - tel: "047-0551-2657", - email: "TcJlnsa7zu@y1tu.com" + private_money_id: "9bc3d23a-fe8e-4699-9be7-a93d626f5384", + tel: "00807-2523", + email: "d4nadmeyKn@qGyq.com" })); status = response.code; } catch (e) { @@ -736,10 +736,10 @@ test('Check GetCustomerAccounts | 3', async () => { let status = 400; try { const response: Response = await client.send(new GetCustomerAccounts({ - private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", - external_id: "dw", - tel: "071-69745487", - email: "fKkMLwrBpO@RQ9L.com" + private_money_id: "9bc3d23a-fe8e-4699-9be7-a93d626f5384", + external_id: "pn3W7S36l34SSSOxW72gqSjd8QPzbjt0rt7UmerReZGbvGgv", + tel: "02911-591", + email: "6an4P1AnQA@LadF.com" })); status = response.code; } catch (e) { @@ -755,11 +755,11 @@ test('Check GetCustomerAccounts | 4', async () => { let status = 400; try { const response: Response = await client.send(new GetCustomerAccounts({ - private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", + private_money_id: "9bc3d23a-fe8e-4699-9be7-a93d626f5384", status: "suspended", - external_id: "lnKRmCd4n", - tel: "045-981479", - email: "qpn3W7S36l@34SS.com" + external_id: "fKjbtuXgZDedIJqTHGgnOhGiwZBj5AvHdO2AtfcL", + tel: "02-664-818", + email: "3sP8V6IT9V@FC5b.com" })); status = response.code; } catch (e) { @@ -775,12 +775,12 @@ test('Check GetCustomerAccounts | 5', async () => { let status = 400; try { const response: Response = await client.send(new GetCustomerAccounts({ - private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", + private_money_id: "9bc3d23a-fe8e-4699-9be7-a93d626f5384", is_suspended: false, status: "active", - external_id: "W72gqSjd8QPzbjt0rt7UmerReZGbvGgvA", - tel: "09215911045", - email: "P1AnQALadF@sAzg.com" + external_id: "KXfPASw8jPQ0hMJ4nPgN", + tel: "03059385951", + email: "SOX0vTgyFK@1FOp.com" })); status = response.code; } catch (e) { @@ -796,13 +796,13 @@ test('Check GetCustomerAccounts | 6', async () => { let status = 400; try { const response: Response = await client.send(new GetCustomerAccounts({ - private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", - created_at_to: "2022-07-27T22:59:50.000000Z", - is_suspended: true, - status: "pre-closed", - external_id: "tuXgZDedIJqTHGgnOhGiwZBj5AvHdO2Atfc", - tel: "0129-664-818", - email: "3sP8V6IT9V@FC5b.com" + private_money_id: "9bc3d23a-fe8e-4699-9be7-a93d626f5384", + created_at_to: "2024-01-16T15:32:50.000000Z", + is_suspended: false, + status: "active", + external_id: "9MWii2exAarzlUllrgsQZQAnUYeKIbZQuPYAKNLvTyMcI", + tel: "002-93-3592", + email: "HNPv9LO3Mt@Pyt1.com" })); status = response.code; } catch (e) { @@ -818,14 +818,14 @@ test('Check GetCustomerAccounts | 7', async () => { let status = 400; try { const response: Response = await client.send(new GetCustomerAccounts({ - private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", - created_at_from: "2021-03-24T19:42:09.000000Z", - created_at_to: "2023-05-02T07:02:07.000000Z", + private_money_id: "9bc3d23a-fe8e-4699-9be7-a93d626f5384", + created_at_from: "2021-07-27T20:21:40.000000Z", + created_at_to: "2023-02-08T02:38:28.000000Z", is_suspended: true, - status: "pre-closed", - external_id: "XfPASw8jPQ0h", - tel: "062-07305693", - email: "xkUSOX0vTg@yFK1.com" + status: "suspended", + external_id: "tL8AYkBvD7caRgncONv8Kje2pUTWzADNDe87oiAkJDB6", + tel: "03053-1650", + email: "IdkjysmBoC@y1Ud.com" })); status = response.code; } catch (e) { @@ -841,15 +841,15 @@ test('Check GetCustomerAccounts | 8', async () => { let status = 400; try { const response: Response = await client.send(new GetCustomerAccounts({ - private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", - per_page: 6034, - created_at_from: "2022-02-08T11:59:01.000000Z", - created_at_to: "2021-10-26T00:50:23.000000Z", + private_money_id: "9bc3d23a-fe8e-4699-9be7-a93d626f5384", + per_page: 8230, + created_at_from: "2024-05-01T00:34:57.000000Z", + created_at_to: "2023-02-03T10:37:25.000000Z", is_suspended: true, - status: "pre-closed", - external_id: "7pl9MWii2exAarzlUllr", - tel: "01-1105-7098", - email: "bZQuPYAKNL@vTyM.com" + status: "suspended", + external_id: "rxfXmPZX1VlVfqebv", + tel: "0032739459", + email: "e0pY47yGoA@wg28.com" })); status = response.code; } catch (e) { @@ -865,16 +865,16 @@ test('Check GetCustomerAccounts | 9', async () => { let status = 400; try { const response: Response = await client.send(new GetCustomerAccounts({ - private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", - page: 7048, - per_page: 7330, - created_at_from: "2022-02-14T10:49:45.000000Z", - created_at_to: "2023-05-04T06:41:23.000000Z", - is_suspended: false, + private_money_id: "9bc3d23a-fe8e-4699-9be7-a93d626f5384", + page: 2864, + per_page: 334, + created_at_from: "2020-07-06T22:38:59.000000Z", + created_at_to: "2020-04-11T20:12:48.000000Z", + is_suspended: true, status: "suspended", - external_id: "LoYSz5jRHNPv9LO3MtPyt1wTnktL8AYkBvD7caRgncONv", - tel: "085-5471-045", - email: "87oiAkJDB6@ZsUU.com" + external_id: "6mAewFZHEg2RF0uEHwK5Jbw", + tel: "028-62098395", + email: "a7ymUxn4mf@vD7y.com" })); status = response.code; } catch (e) { @@ -890,7 +890,7 @@ test('Check CreateCustomerAccount | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateCustomerAccount({ - private_money_id: "19fe1ff3-9f6b-4e97-91df-6f0f805413b6" + private_money_id: "44e32ee3-3010-4c9c-b50b-baffa595516e" })); status = response.code; } catch (e) { @@ -906,8 +906,8 @@ test('Check CreateCustomerAccount | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateCustomerAccount({ - private_money_id: "19fe1ff3-9f6b-4e97-91df-6f0f805413b6", - external_id: "umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e" + private_money_id: "44e32ee3-3010-4c9c-b50b-baffa595516e", + external_id: "86BZW4IWD5GZy4J15w0ovS" })); status = response.code; } catch (e) { @@ -923,9 +923,9 @@ test('Check CreateCustomerAccount | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateCustomerAccount({ - private_money_id: "19fe1ff3-9f6b-4e97-91df-6f0f805413b6", - account_name: "e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5IbgTWsj7Mi", - external_id: "Gr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBC" + private_money_id: "44e32ee3-3010-4c9c-b50b-baffa595516e", + account_name: "rq2HjQnZoVWhOdLDSpe9mEjT", + external_id: "pY" })); status = response.code; } catch (e) { @@ -941,10 +941,10 @@ test('Check CreateCustomerAccount | 3', async () => { let status = 400; try { const response: Response = await client.send(new CreateCustomerAccount({ - private_money_id: "19fe1ff3-9f6b-4e97-91df-6f0f805413b6", - user_name: "Ym4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH9e", - account_name: "mhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Z", - external_id: "po5LBba7yo5q8iS" + private_money_id: "44e32ee3-3010-4c9c-b50b-baffa595516e", + user_name: "8vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5IbgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYN", + account_name: "S3c0MUvvhZ", + external_id: "Fdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0" })); status = response.code; } catch (e) { @@ -960,7 +960,7 @@ test('Check GetShopAccounts | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetShopAccounts({ - private_money_id: "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" + private_money_id: "e7f9bb88-8b7f-4883-b91c-43b0aea260a6" })); status = response.code; } catch (e) { @@ -976,7 +976,7 @@ test('Check GetShopAccounts | 1', async () => { let status = 400; try { const response: Response = await client.send(new GetShopAccounts({ - private_money_id: "ca2616e9-5ed4-477c-bcc2-cc53b62f225a", + private_money_id: "e7f9bb88-8b7f-4883-b91c-43b0aea260a6", is_suspended: false })); status = response.code; @@ -993,9 +993,9 @@ test('Check GetShopAccounts | 2', async () => { let status = 400; try { const response: Response = await client.send(new GetShopAccounts({ - private_money_id: "ca2616e9-5ed4-477c-bcc2-cc53b62f225a", - created_at_to: "2023-10-10T07:01:36.000000Z", - is_suspended: false + private_money_id: "e7f9bb88-8b7f-4883-b91c-43b0aea260a6", + created_at_to: "2022-01-09T07:41:23.000000Z", + is_suspended: true })); status = response.code; } catch (e) { @@ -1011,10 +1011,10 @@ test('Check GetShopAccounts | 3', async () => { let status = 400; try { const response: Response = await client.send(new GetShopAccounts({ - private_money_id: "ca2616e9-5ed4-477c-bcc2-cc53b62f225a", - created_at_from: "2022-03-15T18:57:12.000000Z", - created_at_to: "2022-11-02T09:39:16.000000Z", - is_suspended: false + private_money_id: "e7f9bb88-8b7f-4883-b91c-43b0aea260a6", + created_at_from: "2020-10-18T03:56:04.000000Z", + created_at_to: "2021-07-25T03:50:36.000000Z", + is_suspended: true })); status = response.code; } catch (e) { @@ -1030,11 +1030,11 @@ test('Check GetShopAccounts | 4', async () => { let status = 400; try { const response: Response = await client.send(new GetShopAccounts({ - private_money_id: "ca2616e9-5ed4-477c-bcc2-cc53b62f225a", - per_page: 2047, - created_at_from: "2020-10-29T13:03:08.000000Z", - created_at_to: "2022-09-06T09:13:55.000000Z", - is_suspended: false + private_money_id: "e7f9bb88-8b7f-4883-b91c-43b0aea260a6", + per_page: 9222, + created_at_from: "2023-07-21T18:59:40.000000Z", + created_at_to: "2022-05-03T22:28:24.000000Z", + is_suspended: true })); status = response.code; } catch (e) { @@ -1050,12 +1050,12 @@ test('Check GetShopAccounts | 5', async () => { let status = 400; try { const response: Response = await client.send(new GetShopAccounts({ - private_money_id: "ca2616e9-5ed4-477c-bcc2-cc53b62f225a", - page: 9914, - per_page: 9044, - created_at_from: "2023-03-04T08:24:04.000000Z", - created_at_to: "2021-01-14T14:41:40.000000Z", - is_suspended: false + private_money_id: "e7f9bb88-8b7f-4883-b91c-43b0aea260a6", + page: 4807, + per_page: 6255, + created_at_from: "2023-05-11T13:18:24.000000Z", + created_at_to: "2020-12-31T07:17:51.000000Z", + is_suspended: true })); status = response.code; } catch (e) { @@ -1101,8 +1101,8 @@ test('Check ListBills | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - upper_limit_amount: 8374, - is_disabled: true + upper_limit_amount: 5168, + is_disabled: false })); status = response.code; } catch (e) { @@ -1118,9 +1118,9 @@ test('Check ListBills | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - lower_limit_amount: 414, - upper_limit_amount: 3796, - is_disabled: false + lower_limit_amount: 7192, + upper_limit_amount: 2756, + is_disabled: true })); status = response.code; } catch (e) { @@ -1136,9 +1136,9 @@ test('Check ListBills | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - shop_id: "db454cdb-2563-4ac8-b0e7-d118290fa6e1", - lower_limit_amount: 937, - upper_limit_amount: 3109, + shop_id: "3a601079-b551-4d6f-a145-1d90db3b844c", + lower_limit_amount: 7788, + upper_limit_amount: 8837, is_disabled: true })); status = response.code; @@ -1155,11 +1155,11 @@ test('Check ListBills | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - shop_name: "j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuIVqRIEU93kljq1Q8TjukgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYY", - shop_id: "94cc5713-2995-4c41-89a2-4575114060c5", - lower_limit_amount: 3553, - upper_limit_amount: 5130, - is_disabled: true + shop_name: "Jk6MRPKi62IzWH9emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycM", + shop_id: "82ebb227-2b66-4610-ac0f-35fd8e7a7012", + lower_limit_amount: 9084, + upper_limit_amount: 8550, + is_disabled: false })); status = response.code; } catch (e) { @@ -1175,12 +1175,12 @@ test('Check ListBills | 6', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - created_to: "2023-10-09T22:21:55.000000Z", - shop_name: "yo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4", - shop_id: "874fa5ed-b7f0-49db-8954-3ad99a1b5897", - lower_limit_amount: 9824, - upper_limit_amount: 8975, - is_disabled: true + created_to: "2022-05-19T01:21:34.000000Z", + shop_name: "IeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuI", + shop_id: "710d4017-92d6-4271-bcdd-481e21159dd2", + lower_limit_amount: 4359, + upper_limit_amount: 8483, + is_disabled: false })); status = response.code; } catch (e) { @@ -1196,12 +1196,12 @@ test('Check ListBills | 7', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - created_from: "2020-04-02T18:45:34.000000Z", - created_to: "2021-04-23T15:02:20.000000Z", - shop_name: "PcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCX", - shop_id: "fdbe7b8b-788f-4c00-a578-5635ad054457", - lower_limit_amount: 2310, - upper_limit_amount: 5672, + created_from: "2023-03-08T17:36:02.000000Z", + created_to: "2022-05-20T09:26:17.000000Z", + shop_name: "3kljq", + shop_id: "475e63b1-beff-49d1-b83c-1a5453abc36a", + lower_limit_amount: 9077, + upper_limit_amount: 4735, is_disabled: false })); status = response.code; @@ -1218,14 +1218,14 @@ test('Check ListBills | 8', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - description: "s7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cp", - created_from: "2020-08-28T22:18:38.000000Z", - created_to: "2022-11-20T18:31:07.000000Z", - shop_name: "GDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f", - shop_id: "f11af890-deb6-4b64-a11b-8551a0684435", - lower_limit_amount: 7259, - upper_limit_amount: 2726, - is_disabled: true + description: "kgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFP", + created_from: "2024-04-28T23:17:21.000000Z", + created_to: "2021-10-23T10:59:23.000000Z", + shop_name: "cfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25uvrmGGKjRYVWTh4n3", + shop_id: "35000ba0-b226-4912-b48c-e408c8553d3e", + lower_limit_amount: 8452, + upper_limit_amount: 7282, + is_disabled: false })); status = response.code; } catch (e) { @@ -1241,14 +1241,14 @@ test('Check ListBills | 9', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - organization_code: "9-7z-8w3g4i0s-qc68-o8Z-X1I", - description: "0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKy", - created_from: "2022-08-08T09:36:18.000000Z", - created_to: "2021-09-29T13:05:19.000000Z", - shop_name: "jnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8Ler", - shop_id: "cdeffdd8-4f1b-4bd1-9f2d-70233a2b1ca4", - lower_limit_amount: 3165, - upper_limit_amount: 4670, + organization_code: "-Jp7kL8y", + description: "IiOwN14umNbs9HzTMzg2AFGgoFwChMKyF", + created_from: "2021-09-29T13:05:19.000000Z", + created_to: "2021-10-26T11:55:40.000000Z", + shop_name: "np6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8LerXQe8LjF8Q6qvpD5ZbBwXFvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmt", + shop_id: "e57b1c63-c28d-43ab-b992-9ee99f75160e", + lower_limit_amount: 4290, + upper_limit_amount: 4228, is_disabled: true })); status = response.code; @@ -1265,16 +1265,16 @@ test('Check ListBills | 10', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - private_money_id: "eac43b3c-974c-496a-8638-e118119cc1d1", - organization_code: "r---Y8Go7-", - description: "CMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB", - created_from: "2023-06-27T03:44:29.000000Z", - created_to: "2023-09-25T17:59:46.000000Z", - shop_name: "2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSI", - shop_id: "08ce28e1-09fb-46f8-9d2f-f55ae957baa9", - lower_limit_amount: 2816, - upper_limit_amount: 5711, - is_disabled: false + private_money_id: "df234d3c-99f3-4b08-bc3b-95f9771c9f79", + organization_code: "lu3-l----QNs-JFkVzAdX-8--e0-5", + description: "zg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3P", + created_from: "2021-01-17T09:28:40.000000Z", + created_to: "2022-01-08T09:20:21.000000Z", + shop_name: "hjHLVEtSIaxZ8O9N2SLzG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep", + shop_id: "72cdf3b4-d256-42fd-ab5f-bb09eca8d78b", + lower_limit_amount: 4506, + upper_limit_amount: 321, + is_disabled: true })); status = response.code; } catch (e) { @@ -1290,17 +1290,17 @@ test('Check ListBills | 11', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - bill_id: "SLz", - private_money_id: "db39cdc7-1a93-4896-b321-119f13b4e6aa", - organization_code: "r1--l0PC2-YF-u9-1n-N-hH17XZ7e", - description: "C9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN5", - created_from: "2023-11-11T11:34:52.000000Z", - created_to: "2020-04-08T02:23:53.000000Z", - shop_name: "s59xI", - shop_id: "fcb6a957-11c7-4b2c-87bf-1702d83dcc75", - lower_limit_amount: 4067, - upper_limit_amount: 7962, - is_disabled: true + bill_id: "gvgI7YgV", + private_money_id: "08c9f9cb-602d-46ff-9f17-268356ed04c3", + organization_code: "5uc-J-a-3--Ef1-KE6", + description: "vvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteVH8YLvoUoraYyVUvoHuSd144X7ZEq8UGlMat7Q5BMcC1v73", + created_from: "2022-08-09T16:28:31.000000Z", + created_to: "2023-11-28T15:26:40.000000Z", + shop_name: "y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7", + shop_id: "1e5a9379-8126-4cbe-87aa-8c6bfb42fe62", + lower_limit_amount: 3700, + upper_limit_amount: 7674, + is_disabled: false })); status = response.code; } catch (e) { @@ -1316,17 +1316,17 @@ test('Check ListBills | 12', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - per_page: 7637, - bill_id: "FFrrXyLyM", - private_money_id: "967b698e-4ccf-4173-a274-e440aeed4465", - organization_code: "e-rUFv-xFCvH54G51-", - description: "t7Q5BMcC1v73v60y8DMLWrlnr061xWZsz", - created_from: "2020-09-12T06:07:45.000000Z", - created_to: "2022-03-16T12:50:50.000000Z", - shop_name: "ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7", - shop_id: "851944d1-637b-4de0-a2cd-9d8271642a8f", - lower_limit_amount: 5132, - upper_limit_amount: 1439, + per_page: 4385, + bill_id: "h", + private_money_id: "90a3957a-79d2-424f-ae10-b310fd5f9c3b", + organization_code: "R--s0-Gz6e2-", + description: "fu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VCG4sTwcYeFwcP7ZmLygXYRtj", + created_from: "2021-06-27T01:22:22.000000Z", + created_to: "2023-08-02T05:16:05.000000Z", + shop_name: "aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20dIuBp2e25agSXyEGickpeze5Yn7vyz", + shop_id: "01980368-0f1b-4d06-a4af-3c19517f0bec", + lower_limit_amount: 4955, + upper_limit_amount: 5620, is_disabled: false })); status = response.code; @@ -1343,19 +1343,19 @@ test('Check ListBills | 13', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - page: 7626, - per_page: 7612, - bill_id: "bzCAj1GsSv", - private_money_id: "c24c2166-3189-461c-987e-f204c0bb4a9f", - organization_code: "T1--v-G724-7qs-0fqD1J46-L", - description: "z7mGpF3omDB92rueqlmfnAfu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yot", - created_from: "2020-03-03T04:15:12.000000Z", - created_to: "2022-02-09T13:42:21.000000Z", - shop_name: "hlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9", - shop_id: "028de0f4-4a0b-499c-9550-af757adb9f62", - lower_limit_amount: 6879, - upper_limit_amount: 3373, - is_disabled: false + page: 2742, + per_page: 1766, + bill_id: "jt157", + private_money_id: "15754913-ff9c-4b00-8208-cd1b515bb1b8", + organization_code: "X-f", + description: "j2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLnAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkG", + created_from: "2022-09-04T03:17:44.000000Z", + created_to: "2021-06-14T17:14:49.000000Z", + shop_name: "qQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe", + shop_id: "c0557835-031e-4545-be6f-b04826be4156", + lower_limit_amount: 5638, + upper_limit_amount: 5520, + is_disabled: true })); status = response.code; } catch (e) { @@ -1371,8 +1371,8 @@ test('Check CreateBill | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateBill({ - private_money_id: "0c713354-c78c-4e7c-9a93-bcdc32aa3bd5", - shop_id: "460688ba-b35d-4d0f-af63-7640929518b5" + private_money_id: "a203b064-dded-4486-b8b1-acc0bab4d42a", + shop_id: "13d3bd3a-d93e-46e9-8d9e-3c61c4af3be3" })); status = response.code; } catch (e) { @@ -1388,9 +1388,9 @@ test('Check CreateBill | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateBill({ - private_money_id: "0c713354-c78c-4e7c-9a93-bcdc32aa3bd5", - shop_id: "460688ba-b35d-4d0f-af63-7640929518b5", - description: "HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLnAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgS" + private_money_id: "a203b064-dded-4486-b8b1-acc0bab4d42a", + shop_id: "13d3bd3a-d93e-46e9-8d9e-3c61c4af3be3", + description: "3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55WYfHfvN0QEBe9OUmuQoNyAxdhT65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zIxNZx4eE9mHPjq6XCvY" })); status = response.code; } catch (e) { @@ -1406,10 +1406,10 @@ test('Check CreateBill | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateBill({ - private_money_id: "0c713354-c78c-4e7c-9a93-bcdc32aa3bd5", - shop_id: "460688ba-b35d-4d0f-af63-7640929518b5", - amount: 8640.0, - description: "pyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55W" + private_money_id: "a203b064-dded-4486-b8b1-acc0bab4d42a", + shop_id: "13d3bd3a-d93e-46e9-8d9e-3c61c4af3be3", + amount: 6762.0, + description: "bcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2pLnur36TYPgxIzfeirgwWnuJKugM3OQh" })); status = response.code; } catch (e) { @@ -1425,7 +1425,7 @@ test('Check UpdateBill | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateBill({ - bill_id: "7b13563f-52a4-4ad9-a683-55c84cee1a90" + bill_id: "61ec7332-334a-4f82-88c2-d06ea0d6211f" })); status = response.code; } catch (e) { @@ -1441,7 +1441,7 @@ test('Check UpdateBill | 1', async () => { let status = 400; try { const response: Response = await client.send(new UpdateBill({ - bill_id: "7b13563f-52a4-4ad9-a683-55c84cee1a90", + bill_id: "61ec7332-334a-4f82-88c2-d06ea0d6211f", is_disabled: true })); status = response.code; @@ -1458,8 +1458,8 @@ test('Check UpdateBill | 2', async () => { let status = 400; try { const response: Response = await client.send(new UpdateBill({ - bill_id: "7b13563f-52a4-4ad9-a683-55c84cee1a90", - description: "vN0QEBe9OUmuQoNyAxdhT65YfaNVM2xjqlPxxy8RqwFW", + bill_id: "61ec7332-334a-4f82-88c2-d06ea0d6211f", + description: "iEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2HyY5rxBRsFTyEvnewbYd4rNZJsCq7m7arw2NKYH12xHXaAOFqIwxrvxkxwVYBDQiR", is_disabled: true })); status = response.code; @@ -1476,9 +1476,9 @@ test('Check UpdateBill | 3', async () => { let status = 400; try { const response: Response = await client.send(new UpdateBill({ - bill_id: "7b13563f-52a4-4ad9-a683-55c84cee1a90", - amount: 4820.0, - description: "1hvVt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2p", + bill_id: "61ec7332-334a-4f82-88c2-d06ea0d6211f", + amount: 3651.0, + description: "yVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YV", is_disabled: true })); status = response.code; @@ -1491,13 +1491,10 @@ test('Check UpdateBill | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 0', async () => { +test('Check ListChecks | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 8380.0 - })); + const response: Response = await client.send(new ListChecks()); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -1508,13 +1505,11 @@ test('Check CreateCheck | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 1', async () => { +test('Check ListChecks | 1', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 6406.0, - description: "36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2HyY5rxBRsFTyEvnewbYd4rNZJsCq7m7arw2NKYH12xHXaAOFqIwxrvxkxwVYBDQiRCyVT" + const response: Response = await client.send(new ListChecks({ + is_disabled: false })); status = response.code; } catch (e) { @@ -1526,14 +1521,12 @@ test('Check CreateCheck | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 2', async () => { +test('Check ListChecks | 2', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 8734.0, + const response: Response = await client.send(new ListChecks({ is_onetime: true, - description: "3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1" + is_disabled: false })); status = response.code; } catch (e) { @@ -1545,15 +1538,13 @@ test('Check CreateCheck | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 3', async () => { +test('Check ListChecks | 3', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 7574.0, - usage_limit: 138, + const response: Response = await client.send(new ListChecks({ + description: "6SfrLsE", is_onetime: true, - description: "jZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO" + is_disabled: false })); status = response.code; } catch (e) { @@ -1565,16 +1556,14 @@ test('Check CreateCheck | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 4', async () => { +test('Check ListChecks | 4', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 7859.0, - expires_at: "2023-05-07T23:01:35.000000Z", - usage_limit: 3057, + const response: Response = await client.send(new ListChecks({ + issuer_shop_id: "ba4dc3e7-3962-4d77-89fd-e94461fedff2", + description: "afzykU", is_onetime: true, - description: "SQ0YVNC6SfrLsEgbwDrafzykU4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJf" + is_disabled: true })); status = response.code; } catch (e) { @@ -1586,17 +1575,15 @@ test('Check CreateCheck | 4', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 5', async () => { +test('Check ListChecks | 5', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 7124.0, - point_expires_at: "2023-05-07T19:04:42.000000Z", - expires_at: "2021-04-03T08:49:41.000000Z", - usage_limit: 5919, + const response: Response = await client.send(new ListChecks({ + created_to: "2021-01-29T22:51:55.000000Z", + issuer_shop_id: "9478d451-18bf-4c29-9ea3-091a8cdc7857", + description: "w", is_onetime: true, - description: "v94bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8" + is_disabled: true })); status = response.code; } catch (e) { @@ -1608,18 +1595,16 @@ test('Check CreateCheck | 5', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 6', async () => { +test('Check ListChecks | 6', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 5070.0, - point_expires_in_days: 6716, - point_expires_at: "2023-03-31T08:24:20.000000Z", - expires_at: "2020-11-28T02:54:40.000000Z", - usage_limit: 2977, - is_onetime: false, - description: "ZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgUm73I2kFchNQksZB6By" + const response: Response = await client.send(new ListChecks({ + created_from: "2021-10-09T06:04:28.000000Z", + created_to: "2023-12-14T06:14:52.000000Z", + issuer_shop_id: "13cfd584-aa52-47c2-a8de-489b654c7eb7", + description: "Q2", + is_onetime: true, + is_disabled: true })); status = response.code; } catch (e) { @@ -1631,19 +1616,17 @@ test('Check CreateCheck | 6', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 7', async () => { +test('Check ListChecks | 7', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 2132.0, - bear_point_account: "564f0633-c088-426c-bfdf-b12916570056", - point_expires_in_days: 4947, - point_expires_at: "2024-03-06T17:39:29.000000Z", - expires_at: "2024-01-16T03:09:56.000000Z", - usage_limit: 8911, + const response: Response = await client.send(new ListChecks({ + expires_to: "2021-12-12T05:27:32.000000Z", + created_from: "2020-07-20T08:54:28.000000Z", + created_to: "2021-11-22T16:25:22.000000Z", + issuer_shop_id: "f2e116b8-88e5-4536-9da6-d22ccddfb251", + description: "8fK7SBx", is_onetime: true, - description: "23WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6X" + is_disabled: false })); status = response.code; } catch (e) { @@ -1655,13 +1638,18 @@ test('Check CreateCheck | 7', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 8', async () => { +test('Check ListChecks | 8', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 2943.0, - point_amount: 6616.0 + const response: Response = await client.send(new ListChecks({ + expires_from: "2020-05-03T21:16:19.000000Z", + expires_to: "2021-12-07T01:40:49.000000Z", + created_from: "2020-02-26T04:54:20.000000Z", + created_to: "2022-11-09T12:34:48.000000Z", + issuer_shop_id: "fa5c5b43-1775-4f1f-bac3-410ea49f033e", + description: "4dB", + is_onetime: false, + is_disabled: false })); status = response.code; } catch (e) { @@ -1673,14 +1661,19 @@ test('Check CreateCheck | 8', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 9', async () => { +test('Check ListChecks | 9', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 4440.0, - point_amount: 2094.0, - description: "3Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNC" + const response: Response = await client.send(new ListChecks({ + organization_code: "WzD3a", + expires_from: "2024-03-07T03:20:07.000000Z", + expires_to: "2021-04-28T05:09:39.000000Z", + created_from: "2020-11-14T02:15:23.000000Z", + created_to: "2023-12-11T22:57:24.000000Z", + issuer_shop_id: "e4041ec1-3ff6-4cda-b41a-d00c53918013", + description: "Cmt", + is_onetime: false, + is_disabled: false })); status = response.code; } catch (e) { @@ -1692,15 +1685,20 @@ test('Check CreateCheck | 9', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 10', async () => { +test('Check ListChecks | 10', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 1341.0, - point_amount: 3944.0, - is_onetime: false, - description: "ERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOE" + const response: Response = await client.send(new ListChecks({ + private_money_id: "d411d285-e776-4869-884c-4c48c483cdcf", + organization_code: "BHoLHZ5", + expires_from: "2020-12-26T04:12:56.000000Z", + expires_to: "2023-09-06T23:32:39.000000Z", + created_from: "2023-08-27T03:43:53.000000Z", + created_to: "2020-01-21T20:06:56.000000Z", + issuer_shop_id: "084d1b6f-3fb5-42f5-8816-1eb95712113a", + description: "sjia9h3ovw", + is_onetime: true, + is_disabled: false })); status = response.code; } catch (e) { @@ -1712,16 +1710,21 @@ test('Check CreateCheck | 10', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 11', async () => { +test('Check ListChecks | 11', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 1020.0, - point_amount: 7368.0, - usage_limit: 6710, - is_onetime: false, - description: "NdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzN" + const response: Response = await client.send(new ListChecks({ + per_page: 5873, + private_money_id: "cd0bc731-91d1-480e-b17b-b6cf208b19d9", + organization_code: "JfTJv94bn", + expires_from: "2021-09-26T02:05:59.000000Z", + expires_to: "2023-02-09T10:23:34.000000Z", + created_from: "2021-11-24T12:34:12.000000Z", + created_to: "2024-01-29T17:17:32.000000Z", + issuer_shop_id: "212cb8a8-9367-4f37-aa3f-bb9f26487466", + description: "TRBDusrb", + is_onetime: true, + is_disabled: false })); status = response.code; } catch (e) { @@ -1733,17 +1736,22 @@ test('Check CreateCheck | 11', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 12', async () => { +test('Check ListChecks | 12', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 5196.0, - point_amount: 8782.0, - expires_at: "2023-04-24T17:55:07.000000Z", - usage_limit: 3819, - is_onetime: true, - description: "oAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZ" + const response: Response = await client.send(new ListChecks({ + page: 5354, + per_page: 3837, + private_money_id: "40dbb2ed-f712-4465-99ba-1b610651864e", + organization_code: "035TYhQYVT6897JBIT98Ea3vOiHnJ", + expires_from: "2023-03-12T02:45:23.000000Z", + expires_to: "2020-01-05T07:35:46.000000Z", + created_from: "2020-07-22T04:43:43.000000Z", + created_to: "2023-10-23T03:36:28.000000Z", + issuer_shop_id: "693929ae-6dfa-4919-b84d-be73baa0ea98", + description: "YTRQVbbD", + is_onetime: false, + is_disabled: false })); status = response.code; } catch (e) { @@ -1755,18 +1763,12 @@ test('Check CreateCheck | 12', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 13', async () => { +test('Check CreateCheck | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 5465.0, - point_amount: 9473.0, - point_expires_at: "2023-01-06T00:46:39.000000Z", - expires_at: "2023-12-11T07:46:43.000000Z", - usage_limit: 1602, - is_onetime: true, - description: "tgwRL" + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 2662.0 })); status = response.code; } catch (e) { @@ -1778,19 +1780,13 @@ test('Check CreateCheck | 13', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 14', async () => { +test('Check CreateCheck | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 778.0, - point_amount: 5777.0, - point_expires_in_days: 5743, - point_expires_at: "2020-09-11T08:09:37.000000Z", - expires_at: "2020-06-24T07:15:37.000000Z", - usage_limit: 6025, - is_onetime: true, - description: "1" + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 1522.0, + description: "wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVto" })); status = response.code; } catch (e) { @@ -1802,20 +1798,14 @@ test('Check CreateCheck | 14', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 15', async () => { +test('Check CreateCheck | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 3271.0, - point_amount: 1239.0, - bear_point_account: "d98f9df1-5a7b-4001-a67e-7d325bfa80fc", - point_expires_in_days: 1933, - point_expires_at: "2022-10-06T14:18:40.000000Z", - expires_at: "2021-10-09T18:26:18.000000Z", - usage_limit: 2848, - is_onetime: true, - description: "amqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHs" + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 3062.0, + is_onetime: false, + description: "3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgUm73I2kFchNQksZB" })); status = response.code; } catch (e) { @@ -1827,12 +1817,15 @@ test('Check CreateCheck | 15', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 16', async () => { +test('Check CreateCheck | 3', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 4728.0 + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 2589.0, + usage_limit: 5247, + is_onetime: true, + description: "yT3lVRQ7O823WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXXM3Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB" })); status = response.code; } catch (e) { @@ -1844,13 +1837,16 @@ test('Check CreateCheck | 16', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 17', async () => { +test('Check CreateCheck | 4', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 4232.0, - description: "1kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApoltrzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvR" + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 2225.0, + expires_at: "2020-10-10T03:32:12.000000Z", + usage_limit: 3631, + is_onetime: false, + description: "eTNJcIKtWyeNc1zzlxW2hgO" })); status = response.code; } catch (e) { @@ -1862,14 +1858,17 @@ test('Check CreateCheck | 17', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 18', async () => { +test('Check CreateCheck | 5', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 5863.0, - is_onetime: true, - description: "fjTir1eeHpnGAvFN5uVHKI7mM3plgJR5" + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 1227.0, + point_expires_at: "2020-05-16T01:17:44.000000Z", + expires_at: "2021-08-28T21:31:38.000000Z", + usage_limit: 3150, + is_onetime: false, + description: "I225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL" })); status = response.code; } catch (e) { @@ -1881,15 +1880,18 @@ test('Check CreateCheck | 18', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 19', async () => { +test('Check CreateCheck | 6', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 8844.0, - usage_limit: 6043, + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 1592.0, + point_expires_in_days: 6943, + point_expires_at: "2022-03-05T21:00:37.000000Z", + expires_at: "2022-04-23T11:08:18.000000Z", + usage_limit: 7752, is_onetime: false, - description: "wzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0" + description: "ZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46h" })); status = response.code; } catch (e) { @@ -1901,16 +1903,19 @@ test('Check CreateCheck | 19', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 20', async () => { +test('Check CreateCheck | 7', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 5779.0, - expires_at: "2021-08-19T06:24:40.000000Z", - usage_limit: 6812, - is_onetime: false, - description: "KDvZ2PuoFKU33PYYZTEIyRn" + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 7185.0, + bear_point_account: "2a44ed92-9e66-47dc-b37e-4efb99f965d2", + point_expires_in_days: 663, + point_expires_at: "2023-10-11T13:28:27.000000Z", + expires_at: "2021-08-21T10:35:05.000000Z", + usage_limit: 3019, + is_onetime: true, + description: "TClCMK7WZ9OzNLNkjfoAuPSksHUu" })); status = response.code; } catch (e) { @@ -1922,17 +1927,13 @@ test('Check CreateCheck | 20', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 21', async () => { +test('Check CreateCheck | 8', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 7103.0, - point_expires_at: "2022-04-14T03:54:12.000000Z", - expires_at: "2023-11-18T08:53:29.000000Z", - usage_limit: 8965, - is_onetime: false, - description: "mm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLm" + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 2203.0, + point_amount: 1446.0 })); status = response.code; } catch (e) { @@ -1944,18 +1945,14 @@ test('Check CreateCheck | 21', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 22', async () => { +test('Check CreateCheck | 9', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 9717.0, - point_expires_in_days: 8378, - point_expires_at: "2022-01-29T08:19:17.000000Z", - expires_at: "2020-01-09T22:54:37.000000Z", - usage_limit: 2484, - is_onetime: false, - description: "TQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvg" + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 3328.0, + point_amount: 5357.0, + description: "0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVq" })); status = response.code; } catch (e) { @@ -1967,19 +1964,15 @@ test('Check CreateCheck | 22', async () => { expect(status).not.toBe(400); }) -test('Check CreateCheck | 23', async () => { +test('Check CreateCheck | 10', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 5112.0, - bear_point_account: "3b5cf612-fb24-4648-ba09-81a28c59f07a", - point_expires_in_days: 2879, - point_expires_at: "2020-05-16T22:29:02.000000Z", - expires_at: "2020-03-08T04:01:31.000000Z", - usage_limit: 8140, + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 3882.0, + point_amount: 2310.0, is_onetime: false, - description: "gPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnf" + description: "MzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHsxk71kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0" })); status = response.code; } catch (e) { @@ -1991,10 +1984,17 @@ test('Check CreateCheck | 23', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 0', async () => { +test('Check CreateCheck | 11', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks()); + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 2148.0, + point_amount: 6835.0, + usage_limit: 2807, + is_onetime: false, + description: "KLF4xWXCgQOdSsQVPrApoltrzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN" + })); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -2005,11 +2005,17 @@ test('Check ListChecks | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 1', async () => { +test('Check CreateCheck | 12', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks({ - is_disabled: false + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 3957.0, + point_amount: 1941.0, + expires_at: "2021-07-25T17:17:19.000000Z", + usage_limit: 7428, + is_onetime: false, + description: "3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr2" })); status = response.code; } catch (e) { @@ -2021,12 +2027,18 @@ test('Check ListChecks | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 2', async () => { +test('Check CreateCheck | 13', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks({ + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 8899.0, + point_amount: 4073.0, + point_expires_at: "2020-07-20T07:17:59.000000Z", + expires_at: "2023-06-19T16:14:49.000000Z", + usage_limit: 1356, is_onetime: true, - is_disabled: false + description: "5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB" })); status = response.code; } catch (e) { @@ -2038,13 +2050,19 @@ test('Check ListChecks | 2', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 3', async () => { +test('Check CreateCheck | 14', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks({ - description: "HR", + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 5471.0, + point_amount: 9975.0, + point_expires_in_days: 5224, + point_expires_at: "2023-05-19T13:55:52.000000Z", + expires_at: "2024-01-30T17:01:09.000000Z", + usage_limit: 5391, is_onetime: false, - is_disabled: false + description: "dkqUOY2HAI87h7tC8" })); status = response.code; } catch (e) { @@ -2056,14 +2074,20 @@ test('Check ListChecks | 3', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 4', async () => { +test('Check CreateCheck | 15', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks({ - issuer_shop_id: "c09173a9-38c4-47ae-a6cd-1dbf767be412", - description: "3LCAS", + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + money_amount: 8196.0, + point_amount: 8481.0, + bear_point_account: "3b750c29-9b3b-4505-9e8a-4ef6dc1c5a4d", + point_expires_in_days: 6639, + point_expires_at: "2023-06-05T04:28:42.000000Z", + expires_at: "2024-01-18T23:41:29.000000Z", + usage_limit: 7066, is_onetime: true, - is_disabled: false + description: "NmFW" })); status = response.code; } catch (e) { @@ -2075,15 +2099,12 @@ test('Check ListChecks | 4', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 5', async () => { +test('Check CreateCheck | 16', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks({ - created_to: "2020-11-29T18:13:57.000000Z", - issuer_shop_id: "a95626e0-cc96-42e5-98b9-08e292a990d9", - description: "sHOG", - is_onetime: true, - is_disabled: true + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + point_amount: 9668.0 })); status = response.code; } catch (e) { @@ -2095,16 +2116,13 @@ test('Check ListChecks | 5', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 6', async () => { +test('Check CreateCheck | 17', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks({ - created_from: "2021-09-30T14:14:20.000000Z", - created_to: "2023-01-10T03:03:49.000000Z", - issuer_shop_id: "3ff659a5-a0b3-4a2a-8d85-c516ed220bfc", - description: "i4", - is_onetime: true, - is_disabled: false + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + point_amount: 261.0, + description: "ZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoe" })); status = response.code; } catch (e) { @@ -2116,17 +2134,14 @@ test('Check ListChecks | 6', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 7', async () => { +test('Check CreateCheck | 18', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks({ - expires_to: "2023-04-26T10:51:35.000000Z", - created_from: "2023-09-27T03:56:30.000000Z", - created_to: "2022-05-30T20:39:11.000000Z", - issuer_shop_id: "a83d2837-4b37-41aa-8abd-0b9bf6620f26", - description: "RN8AasC", - is_onetime: false, - is_disabled: true + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + point_amount: 5495.0, + is_onetime: true, + description: "JggIMA5wXB3CTdPu3I6Gb57N6Bfk723" })); status = response.code; } catch (e) { @@ -2138,18 +2153,15 @@ test('Check ListChecks | 7', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 8', async () => { +test('Check CreateCheck | 19', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks({ - expires_from: "2020-07-04T15:44:08.000000Z", - expires_to: "2023-04-23T18:30:13.000000Z", - created_from: "2020-12-04T19:50:30.000000Z", - created_to: "2022-06-14T21:14:35.000000Z", - issuer_shop_id: "c09b2bad-6cb6-49e7-addd-0a6e4351aa9f", - description: "uHFpFsNPJm", - is_onetime: true, - is_disabled: false + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + point_amount: 6588.0, + usage_limit: 4984, + is_onetime: false, + description: "JhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5" })); status = response.code; } catch (e) { @@ -2161,19 +2173,16 @@ test('Check ListChecks | 8', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 9', async () => { +test('Check CreateCheck | 20', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks({ - organization_code: "uH1GHYOOmiUvKwy", - expires_from: "2023-09-04T23:43:12.000000Z", - expires_to: "2022-06-02T14:38:33.000000Z", - created_from: "2023-01-01T15:46:03.000000Z", - created_to: "2020-06-18T01:18:09.000000Z", - issuer_shop_id: "6f04fcd9-d253-4bac-9253-25ef4e15462b", - description: "K", - is_onetime: true, - is_disabled: false + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + point_amount: 1701.0, + expires_at: "2021-02-13T20:25:17.000000Z", + usage_limit: 6128, + is_onetime: false, + description: "lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOm" })); status = response.code; } catch (e) { @@ -2185,20 +2194,17 @@ test('Check ListChecks | 9', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 10', async () => { +test('Check CreateCheck | 21', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks({ - private_money_id: "055fb6ce-ce08-4e0a-b55a-3c9826318e47", - organization_code: "mU0unMptspEioBBqGcJ", - expires_from: "2023-12-14T08:42:56.000000Z", - expires_to: "2022-11-30T14:16:44.000000Z", - created_from: "2021-08-24T14:05:27.000000Z", - created_to: "2021-03-13T03:07:07.000000Z", - issuer_shop_id: "0f38b0e1-af01-4fd8-a3e0-a8928df81f84", - description: "pDTPRH", + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + point_amount: 8809.0, + point_expires_at: "2023-11-01T17:45:57.000000Z", + expires_at: "2022-06-28T14:04:38.000000Z", + usage_limit: 9215, is_onetime: true, - is_disabled: false + description: "yiQYSSoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROp" })); status = response.code; } catch (e) { @@ -2210,21 +2216,18 @@ test('Check ListChecks | 10', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 11', async () => { +test('Check CreateCheck | 22', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks({ - per_page: 3853, - private_money_id: "899befc5-fe6c-4be0-ac9b-ccde0397b840", - organization_code: "NQrvWUnk17KWA", - expires_from: "2022-08-12T19:43:37.000000Z", - expires_to: "2021-07-13T02:37:35.000000Z", - created_from: "2020-04-20T01:38:22.000000Z", - created_to: "2021-07-31T11:29:45.000000Z", - issuer_shop_id: "f33264e9-eec6-4bc9-8e47-e2e01c125c48", - description: "shpxz5S2", + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + point_amount: 2172.0, + point_expires_in_days: 162, + point_expires_at: "2022-10-26T23:49:24.000000Z", + expires_at: "2020-12-31T15:11:36.000000Z", + usage_limit: 6948, is_onetime: true, - is_disabled: true + description: "c0j39oPNkDTFwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ" })); status = response.code; } catch (e) { @@ -2236,22 +2239,19 @@ test('Check ListChecks | 11', async () => { expect(status).not.toBe(400); }) -test('Check ListChecks | 12', async () => { +test('Check CreateCheck | 23', async () => { let status = 400; try { - const response: Response = await client.send(new ListChecks({ - page: 2202, - per_page: 4497, - private_money_id: "03afc5f2-3a5d-44a1-b485-0daea0b50c43", - organization_code: "ar2DsC6IO", - expires_from: "2022-05-13T22:07:21.000000Z", - expires_to: "2021-11-23T07:06:20.000000Z", - created_from: "2023-05-22T07:06:37.000000Z", - created_to: "2021-05-19T00:39:45.000000Z", - issuer_shop_id: "deb706e0-5aaf-4db3-98da-7543ffb37461", - description: "lZmMT5mAF", - is_onetime: true, - is_disabled: true + const response: Response = await client.send(new CreateCheck({ + account_id: "42127d33-ab91-4e4b-86f6-8e9ab9f70d96", + point_amount: 689.0, + bear_point_account: "c5326363-7a38-43bc-b1bf-7a4bca8a5f86", + point_expires_in_days: 7941, + point_expires_at: "2021-12-07T03:10:44.000000Z", + expires_at: "2023-03-01T00:04:05.000000Z", + usage_limit: 3447, + is_onetime: false, + description: "6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaD" })); status = response.code; } catch (e) { @@ -2267,7 +2267,7 @@ test('Check GetCheck | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetCheck({ - check_id: "8893f8dc-e441-4a3d-bdc9-d19c00308720" + check_id: "53ce9a18-e5d4-42c8-bd83-bbe093b92bc5" })); status = response.code; } catch (e) { @@ -2283,7 +2283,7 @@ test('Check UpdateCheck | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCheck({ - check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29" + check_id: "40a50bcf-8206-4f40-98c9-b916f0c501de" })); status = response.code; } catch (e) { @@ -2299,7 +2299,7 @@ test('Check UpdateCheck | 1', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCheck({ - check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", + check_id: "40a50bcf-8206-4f40-98c9-b916f0c501de", is_disabled: false })); status = response.code; @@ -2316,8 +2316,8 @@ test('Check UpdateCheck | 2', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCheck({ - check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", - bear_point_account: "877b6ac5-dc4f-457a-9802-506ec699da52", + check_id: "40a50bcf-8206-4f40-98c9-b916f0c501de", + bear_point_account: "17b01569-f389-43e0-9a6a-492e81004be4", is_disabled: false })); status = response.code; @@ -2334,10 +2334,10 @@ test('Check UpdateCheck | 3', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCheck({ - check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", - point_expires_in_days: 8804, - bear_point_account: "783b74e2-59cc-40cf-b329-934d2f2b98e9", - is_disabled: true + check_id: "40a50bcf-8206-4f40-98c9-b916f0c501de", + point_expires_in_days: 161, + bear_point_account: "c70cc07e-1da4-4751-9178-bcfddb91beed", + is_disabled: false })); status = response.code; } catch (e) { @@ -2353,10 +2353,10 @@ test('Check UpdateCheck | 4', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCheck({ - check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", - point_expires_at: "2021-05-12T14:03:42.000000Z", - point_expires_in_days: 6709, - bear_point_account: "dcab8474-6c03-4cad-a76a-bf096ff41614", + check_id: "40a50bcf-8206-4f40-98c9-b916f0c501de", + point_expires_at: "2020-02-02T23:53:05.000000Z", + point_expires_in_days: 9594, + bear_point_account: "d03d8be0-1757-4c89-a30f-613e284a8ce7", is_disabled: false })); status = response.code; @@ -2373,12 +2373,12 @@ test('Check UpdateCheck | 5', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCheck({ - check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", - expires_at: "2022-07-26T06:58:09.000000Z", - point_expires_at: "2021-02-21T06:43:04.000000Z", - point_expires_in_days: 9667, - bear_point_account: "260816a3-b8c1-4552-9cae-d24f7d536370", - is_disabled: true + check_id: "40a50bcf-8206-4f40-98c9-b916f0c501de", + expires_at: "2021-07-17T01:51:25.000000Z", + point_expires_at: "2023-11-16T14:00:50.000000Z", + point_expires_in_days: 2172, + bear_point_account: "d5226a40-015a-4c76-82d1-8e89c230eeaa", + is_disabled: false })); status = response.code; } catch (e) { @@ -2394,12 +2394,12 @@ test('Check UpdateCheck | 6', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCheck({ - check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", - usage_limit: 2172, - expires_at: "2022-12-08T17:40:49.000000Z", - point_expires_at: "2022-10-26T23:49:24.000000Z", - point_expires_in_days: 2345, - bear_point_account: "462b5b24-ccd2-465f-a5e3-3830ca957fea", + check_id: "40a50bcf-8206-4f40-98c9-b916f0c501de", + usage_limit: 1579, + expires_at: "2020-06-28T23:46:44.000000Z", + point_expires_at: "2020-12-15T03:19:07.000000Z", + point_expires_in_days: 7914, + bear_point_account: "eb72643d-7248-459b-b620-bc80c9a95768", is_disabled: false })); status = response.code; @@ -2416,14 +2416,14 @@ test('Check UpdateCheck | 7', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCheck({ - check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", - is_onetime: false, - usage_limit: 1372, - expires_at: "2021-09-09T13:14:33.000000Z", - point_expires_at: "2021-12-26T21:39:57.000000Z", - point_expires_in_days: 3119, - bear_point_account: "861533ef-cd50-464e-a8eb-a55d2caf6f01", - is_disabled: true + check_id: "40a50bcf-8206-4f40-98c9-b916f0c501de", + is_onetime: true, + usage_limit: 9742, + expires_at: "2021-11-19T16:07:04.000000Z", + point_expires_at: "2021-07-05T05:27:00.000000Z", + point_expires_in_days: 2836, + bear_point_account: "dc63079b-1ee6-4b16-9afd-4d5c064d671b", + is_disabled: false })); status = response.code; } catch (e) { @@ -2439,14 +2439,14 @@ test('Check UpdateCheck | 8', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCheck({ - check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", - description: "FwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ", + check_id: "40a50bcf-8206-4f40-98c9-b916f0c501de", + description: "0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3xaXPio5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7", is_onetime: false, - usage_limit: 9059, - expires_at: "2021-10-07T02:28:08.000000Z", - point_expires_at: "2021-04-24T12:53:16.000000Z", - point_expires_in_days: 3008, - bear_point_account: "0e137a4b-5f86-48b9-9f04-9d3aaee341d6", + usage_limit: 4747, + expires_at: "2021-07-05T13:53:16.000000Z", + point_expires_at: "2022-05-08T17:53:07.000000Z", + point_expires_in_days: 2892, + bear_point_account: "fd164407-f392-4f7b-92cd-723f3f88b8d0", is_disabled: true })); status = response.code; @@ -2463,16 +2463,16 @@ test('Check UpdateCheck | 9', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCheck({ - check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", - point_amount: 3447.0, - description: "N6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51", - is_onetime: true, - usage_limit: 1057, - expires_at: "2020-12-19T17:53:33.000000Z", - point_expires_at: "2023-07-04T09:11:48.000000Z", - point_expires_in_days: 3649, - bear_point_account: "591280a7-f0a7-40d5-b028-aa35a4710bd6", - is_disabled: true + check_id: "40a50bcf-8206-4f40-98c9-b916f0c501de", + point_amount: 3896.0, + description: "cOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHA", + is_onetime: false, + usage_limit: 4533, + expires_at: "2020-01-21T20:05:30.000000Z", + point_expires_at: "2021-02-16T05:42:00.000000Z", + point_expires_in_days: 7264, + bear_point_account: "dbd1aeae-be97-4976-ab1e-5350b051a77b", + is_disabled: false })); status = response.code; } catch (e) { @@ -2488,17 +2488,17 @@ test('Check UpdateCheck | 10', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCheck({ - check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", - money_amount: 7176.0, - point_amount: 3177.0, - description: "AQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3xaXPio5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeu", - is_onetime: false, - usage_limit: 3852, - expires_at: "2021-06-20T12:42:25.000000Z", - point_expires_at: "2023-11-26T07:29:58.000000Z", - point_expires_in_days: 720, - bear_point_account: "a503d874-d430-4934-9da8-bd9696e081ca", - is_disabled: false + check_id: "40a50bcf-8206-4f40-98c9-b916f0c501de", + money_amount: 9205.0, + point_amount: 5387.0, + description: "4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0eLyZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvb", + is_onetime: true, + usage_limit: 6217, + expires_at: "2022-11-11T21:36:07.000000Z", + point_expires_at: "2020-09-18T19:22:00.000000Z", + point_expires_in_days: 8280, + bear_point_account: "34592ec1-9371-4ec7-a088-7fb4b0220d0f", + is_disabled: true })); status = response.code; } catch (e) { @@ -2514,7 +2514,7 @@ test('Check GetCpmToken | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetCpmToken({ - cpm_token: "jRtKJ3Y50yRgOZb7LyYKRM" + cpm_token: "SfipEZMFGhk16I7iXigWOn" })); status = response.code; } catch (e) { @@ -2544,7 +2544,7 @@ test('Check ListTransactions | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - description: "PV8lVcOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7Ry" + description: "UAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05" })); status = response.code; } catch (e) { @@ -2560,8 +2560,8 @@ test('Check ListTransactions | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - types: ["payment", "exchange_outflow", "cashback", "exchange_inflow"], - description: "IVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0" + types: ["topup", "exchange_outflow", "payment", "exchange_inflow", "expire"], + description: "bzQDuaFv4VsaDUMga8HPHL" })); status = response.code; } catch (e) { @@ -2578,8 +2578,8 @@ test('Check ListTransactions | 3', async () => { try { const response: Response = await client.send(new ListTransactions({ is_modified: true, - types: ["expire", "exchange_outflow", "topup", "exchange_inflow", "cashback", "payment"], - description: "ZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qL" + types: ["topup", "exchange_inflow", "exchange_outflow", "cashback"], + description: "VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqybT3XFSWXNEvBDebROkI568yn3vAdg2WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbW" })); status = response.code; } catch (e) { @@ -2595,10 +2595,10 @@ test('Check ListTransactions | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - private_money_id: "62c302d4-35f1-4e7e-87c4-3215645cc062", + private_money_id: "f5b06197-7d43-4573-80c6-1a31a63d5958", is_modified: false, - types: ["exchange_outflow", "topup"], - description: "v4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPy" + types: ["expire", "exchange_inflow", "topup", "payment"], + description: "Ri8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9" })); status = response.code; } catch (e) { @@ -2614,11 +2614,11 @@ test('Check ListTransactions | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - organization_code: "k1SSX-r", - private_money_id: "311bd1b2-821b-4fe2-94e0-f5a4694a8a3d", + organization_code: "K3a-", + private_money_id: "23c0b173-6202-478c-a6a4-dd2460d39e95", is_modified: false, - types: ["payment", "exchange_inflow", "expire", "topup", "exchange_outflow", "cashback"], - description: "FSWXNEvBDebROkI568yn3vAdg2WzE6cQfJbdKVhY" + types: ["payment", "expire"], + description: "cXHRn98CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRI" })); status = response.code; } catch (e) { @@ -2634,12 +2634,12 @@ test('Check ListTransactions | 6', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - transaction_id: "IeaGt", - organization_code: "D9A--UB-y5Wn--5I--9u393gS--s3", - private_money_id: "fe6213e7-e07d-4a7e-adfe-2cf43ac6f070", + transaction_id: "ac4Bt", + organization_code: "R3l7", + private_money_id: "8ab8ecb2-094c-4af2-9b90-8e355fa064dd", is_modified: true, - types: ["expire", "topup", "cashback", "payment", "exchange_outflow", "exchange_inflow"], - description: "BR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8S" + types: ["expire", "topup", "exchange_inflow", "payment", "exchange_outflow"], + description: "iRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mhVFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NW" })); status = response.code; } catch (e) { @@ -2655,13 +2655,13 @@ test('Check ListTransactions | 7', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - terminal_id: "9b31a3e7-fc60-4e5d-9839-b6718f656803", - transaction_id: "O6", - organization_code: "3iJ-9dD---7-YolA58m-Vc-996y5l", - private_money_id: "1750ab2f-d7c2-480d-842e-9bc53e6fa6aa", + terminal_id: "1878075e-5a9f-450e-a926-fc11f5458084", + transaction_id: "V", + organization_code: "08--6-v5DcI--N-s1a-jgB--MYcX6--V", + private_money_id: "d32dcc20-e896-4555-ae85-dd4222dae1d6", is_modified: true, - types: ["cashback"], - description: "S5KI84n4B4JwtxMbsrynF" + types: ["exchange_outflow", "exchange_inflow", "topup", "cashback", "payment"], + description: "8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixLpvflY8MFYZJvlfPZ9XRs2DjUex" })); status = response.code; } catch (e) { @@ -2677,14 +2677,14 @@ test('Check ListTransactions | 8', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - customer_name: "zleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2L", - terminal_id: "0cdc7118-47d0-4396-a2a9-9f8c6a148ab0", - transaction_id: "vCf", - organization_code: "U8m-EI8MS8hII-tI", - private_money_id: "26687349-3c16-4178-b708-abe5d4699ac8", + customer_name: "8FZcru468uiy2IBQ", + terminal_id: "2a2a8973-53cb-4c4e-a27e-a5c5507b9ea4", + transaction_id: "Uony", + organization_code: "-0U-K-v-y24", + private_money_id: "df3b885f-bc20-4481-9f37-44a99bf51ee5", is_modified: true, - types: ["expire"], - description: "VFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVj" + types: ["payment", "cashback", "exchange_inflow", "exchange_outflow"], + description: "Hz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXDkJqy1UyPa" })); status = response.code; } catch (e) { @@ -2700,15 +2700,15 @@ test('Check ListTransactions | 9', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - customer_id: "05b57152-289f-42cc-99c3-c34692786d8b", - customer_name: "S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixL", - terminal_id: "8df7af26-c41d-4788-b003-3d76867b583d", - transaction_id: "lY8MFYZ", - organization_code: "Y03-2UWgF9", - private_money_id: "0e260079-0ae0-4332-921a-f0180b856949", - is_modified: true, - types: ["exchange_outflow", "topup", "expire", "payment", "cashback", "exchange_inflow"], - description: "CUonyUv3nTPZ701h3V5Qywi2pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6f" + customer_id: "456064c7-cec8-4abd-9b40-413ac92f4ed6", + customer_name: "kyMSdmemZcovbEUc9TiM3DTSa7pJlo8JS6mIVfCl8O6XTpGUPEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xl", + terminal_id: "4f57728f-a26e-4378-b631-80dc19de3382", + transaction_id: "QEXBdwXQXB", + organization_code: "-3L", + private_money_id: "c4aacc8f-fcb9-4253-98a9-0250533eedb9", + is_modified: false, + types: ["expire", "topup", "exchange_inflow", "cashback"], + description: "oagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLIZnC6rDyYuuG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKL" })); status = response.code; } catch (e) { @@ -2724,16 +2724,16 @@ test('Check ListTransactions | 10', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - shop_id: "977e2b08-a061-4a79-8a06-64febe0d9c5a", - customer_id: "1bff689c-8cfb-475b-a32a-95326e526f27", - customer_name: "E32vm3RMvvWttu1PJb3d04IfskzbRh2", - terminal_id: "f52d39cb-6a2d-48aa-9358-6123c140ac44", - transaction_id: "Jqy1UyPaGH", - organization_code: "v39jFTlu-XkApk--324-FW3m--8", - private_money_id: "d897650b-e0a6-4c4f-b61c-e2d8149b3754", - is_modified: false, - types: ["topup", "cashback", "expire"], - description: "PEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLI" + shop_id: "c1f6e167-8024-4f1d-8116-b661d60726b2", + customer_id: "679dd8fb-affc-44ed-a384-1b5e70f0e58c", + customer_name: "76DTKceEBbKe1QbzWrTYvHigdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbPQzPRirLmp7HiQajpl09d6QIiaL5c40GPi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgK", + terminal_id: "77648c26-1a05-4a4f-8739-bfd2b207581f", + transaction_id: "gq", + organization_code: "3---6OyU-RB2", + private_money_id: "9efde369-9fa1-4fc3-bccb-aae15092e7a6", + is_modified: true, + types: ["payment", "cashback", "expire"], + description: "TmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjC" })); status = response.code; } catch (e) { @@ -2749,17 +2749,17 @@ test('Check ListTransactions | 11', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - per_page: 2395, - shop_id: "7b52361c-ab20-4604-aea4-95c333415836", - customer_id: "cd4922a1-cbf2-4319-84f9-005989664ef5", - customer_name: "uG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYM", - terminal_id: "2743e2fa-a1c8-49fc-8065-9650cee5841f", - transaction_id: "RHJLPebY", - organization_code: "-Cq10S-E8gQ----jDNN98mfGHwMEIBk", - private_money_id: "34e88dfc-36bd-404c-9bb5-d4e327efddb4", + per_page: 3881, + shop_id: "e4dbf5d1-6ed6-4b7e-bc5a-769c499ffaf7", + customer_id: "1ad7ba7a-64f3-4974-ba31-b3a2e4621601", + customer_name: "XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8ZrqfNGAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6", + terminal_id: "165b8151-f0c5-485e-9e13-9376e3e3056d", + transaction_id: "tQTqfI", + organization_code: "--5K--1YJs-9-52-Kz4h14i-eY-9", + private_money_id: "96bad78d-ad2c-4b0f-9caa-03294ae5cc2a", is_modified: true, - types: ["exchange_outflow", "cashback", "topup", "exchange_inflow"], - description: "Pi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1" + types: ["topup", "payment", "exchange_inflow", "expire", "exchange_outflow", "cashback"], + description: "EVrOM4dkj0diMGxwkBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyBabDj1sJ7k6dP6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsP" })); status = response.code; } catch (e) { @@ -2775,18 +2775,18 @@ test('Check ListTransactions | 12', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - page: 7539, - per_page: 8246, - shop_id: "7261d6a9-1fb2-463f-8e20-eb786615d1ed", - customer_id: "66eb1f15-3d9c-431d-9b12-329d5a93ed89", - customer_name: "So3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oa", - terminal_id: "bf1043fa-ff9c-4b4f-a0a9-5aeedb4aaf53", - transaction_id: "RVBAD", - organization_code: "-i2w-XaN03-R-7n", - private_money_id: "b5e91b2f-b889-4b22-a38e-7bc7310df541", + page: 3078, + per_page: 4255, + shop_id: "c9081efd-44ea-4a62-9e06-67b96c0dbd55", + customer_id: "cde26dc3-e262-4d94-a4d0-1c7fbf93baaf", + customer_name: "cYx5YXiYOW0oa5SUOR88F7Ubd6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK775FUjJKUwWsCFULHC5xu9xwKzEEFrv0p5VC2XFSxIKMXYPxeKc6v3uyZaCEMZ2Ju8UbXHSU9E0Qlg3gebvAwjzG8", + terminal_id: "e0fb7e55-d959-4e87-9d5e-2b03fa444761", + transaction_id: "g", + organization_code: "nU8hA8-gW8Qx-gnL0-Y0z--", + private_money_id: "168946bc-2354-46ed-b145-f1e17b934e40", is_modified: false, - types: ["exchange_outflow", "exchange_inflow", "payment", "expire", "cashback"], - description: "AIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08aWAgYKgMRg4eijui0x4A" + types: ["cashback"], + description: "runisLVA8D7RtvLwR" })); status = response.code; } catch (e) { @@ -2802,19 +2802,19 @@ test('Check ListTransactions | 13', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - to: "2020-07-26T10:55:21.000000Z", - page: 2784, - per_page: 4219, - shop_id: "f98b4df5-c995-408a-bb6b-47a2f3349e71", - customer_id: "7bdf35a9-2b58-4e69-a9b0-1b92641220af", - customer_name: "wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrG", - terminal_id: "f8b5d8eb-2220-422d-88af-8fc79f2630a0", - transaction_id: "nz7dW1L", - organization_code: "e--Pwgc9HmVBlTce5-o-6v-Mx23q", - private_money_id: "87fcfd6b-5fb5-49b5-9cdb-6529a6653d70", - is_modified: true, - types: ["expire"], - description: "BmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyBabDj1sJ7k6dP6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YX" + to: "2021-12-11T20:57:53.000000Z", + page: 275, + per_page: 4193, + shop_id: "7b3af2d8-e293-4ee9-aa48-68c93e1bfdf9", + customer_id: "e774df22-344d-4f85-8783-087892896cf2", + customer_name: "gTxrmP2c2b7AqdqrRaU4", + terminal_id: "6a440174-13f3-474e-be7d-822f3e8273a7", + transaction_id: "OU", + organization_code: "---Y3-u-72-t-Sq9--7yFH3l-", + private_money_id: "1ceb0960-738e-457d-9d9a-4ad6b6932b1c", + is_modified: false, + types: ["payment", "topup"], + description: "2WPHw1UTjf1quigD2l2JnK33Y2PKk" })); status = response.code; } catch (e) { @@ -2830,20 +2830,20 @@ test('Check ListTransactions | 14', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactions({ - from: "2024-02-05T13:13:38.000000Z", - to: "2023-03-16T23:25:29.000000Z", - page: 3546, - per_page: 3920, - shop_id: "9b3545d7-4db0-4b06-8d6f-09019542ff11", - customer_id: "4423a488-860a-46e1-85ac-dc3b1dddcc1f", - customer_name: "SUOR88F7Ubd6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK7", - terminal_id: "f1c2eeb7-2535-44a0-8655-b1ea851422ca", - transaction_id: "wWsCFU", - organization_code: "LYQf-X-6--oZ", - private_money_id: "4591de5a-0210-4461-a6c3-1e458e9de94d", + from: "2021-07-16T21:26:05.000000Z", + to: "2024-04-27T15:51:58.000000Z", + page: 8809, + per_page: 6147, + shop_id: "063ffe5f-98e7-46e4-a5ea-ef954fb3438f", + customer_id: "6a403931-2b94-4152-a2f7-9a23cbcca228", + customer_name: "dGAkTKdkwDZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KDx3FmD9kbbli1vOnH69EFiv", + terminal_id: "adf88ac9-4c20-41a0-a56a-06c199beca22", + transaction_id: "JEHCCuK", + organization_code: "Kzcd7W-i-MgUl-7-e-2lbp4", + private_money_id: "f2538a72-d81e-4e67-9198-2d9d4a0aa3e8", is_modified: false, - types: ["exchange_outflow", "payment", "expire"], - description: "u8UbXHSU9E0Qlg3gebv" + types: ["cashback", "payment", "expire"], + description: "slDBuoJSIFUrTRne91u8KmONYXCce6NgXmM6" })); status = response.code; } catch (e) { @@ -2859,9 +2859,9 @@ test('Check CreateTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateTransaction({ - shop_id: "8a480fc1-4577-4907-9d6a-c87cf26f7afa", - customer_id: "a387e891-8847-4c38-9559-5e87acab0e1d", - private_money_id: "d044b25e-2b03-4761-acdb-0b70e9a91604" + shop_id: "49e86053-1355-4238-bf2d-7c6da6ffc327", + customer_id: "9af7cc09-0b54-41b9-8e37-ee7bdc6728d9", + private_money_id: "a9c6983e-8e64-43ef-b9ba-6f686ab81c76" })); status = response.code; } catch (e) { @@ -2877,10 +2877,10 @@ test('Check CreateTransaction | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateTransaction({ - shop_id: "8a480fc1-4577-4907-9d6a-c87cf26f7afa", - customer_id: "a387e891-8847-4c38-9559-5e87acab0e1d", - private_money_id: "d044b25e-2b03-4761-acdb-0b70e9a91604", - description: "gA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5qYfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua2WPHw1UTjf1quigD2l2J" + shop_id: "49e86053-1355-4238-bf2d-7c6da6ffc327", + customer_id: "9af7cc09-0b54-41b9-8e37-ee7bdc6728d9", + private_money_id: "a9c6983e-8e64-43ef-b9ba-6f686ab81c76", + description: "K96oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7Ozzt" })); status = response.code; } catch (e) { @@ -2896,11 +2896,11 @@ test('Check CreateTransaction | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateTransaction({ - shop_id: "8a480fc1-4577-4907-9d6a-c87cf26f7afa", - customer_id: "a387e891-8847-4c38-9559-5e87acab0e1d", - private_money_id: "d044b25e-2b03-4761-acdb-0b70e9a91604", - point_expires_at: "2023-11-18T10:39:42.000000Z", - description: "K33Y2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQd" + shop_id: "49e86053-1355-4238-bf2d-7c6da6ffc327", + customer_id: "9af7cc09-0b54-41b9-8e37-ee7bdc6728d9", + private_money_id: "a9c6983e-8e64-43ef-b9ba-6f686ab81c76", + point_expires_at: "2020-12-21T01:34:50.000000Z", + description: "RdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmosz" })); status = response.code; } catch (e) { @@ -2916,12 +2916,12 @@ test('Check CreateTransaction | 3', async () => { let status = 400; try { const response: Response = await client.send(new CreateTransaction({ - shop_id: "8a480fc1-4577-4907-9d6a-c87cf26f7afa", - customer_id: "a387e891-8847-4c38-9559-5e87acab0e1d", - private_money_id: "d044b25e-2b03-4761-acdb-0b70e9a91604", - point_amount: 676, - point_expires_at: "2020-08-14T23:35:01.000000Z", - description: "ofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KDx3FmD9kb" + shop_id: "49e86053-1355-4238-bf2d-7c6da6ffc327", + customer_id: "9af7cc09-0b54-41b9-8e37-ee7bdc6728d9", + private_money_id: "a9c6983e-8e64-43ef-b9ba-6f686ab81c76", + point_amount: 3050, + point_expires_at: "2024-04-23T13:14:38.000000Z", + description: "7gjncZRjG49ZyE9dB8fCGfT" })); status = response.code; } catch (e) { @@ -2937,13 +2937,13 @@ test('Check CreateTransaction | 4', async () => { let status = 400; try { const response: Response = await client.send(new CreateTransaction({ - shop_id: "8a480fc1-4577-4907-9d6a-c87cf26f7afa", - customer_id: "a387e891-8847-4c38-9559-5e87acab0e1d", - private_money_id: "d044b25e-2b03-4761-acdb-0b70e9a91604", - money_amount: 7778, - point_amount: 5824, - point_expires_at: "2024-01-26T18:25:24.000000Z", - description: "i1vOnH69EFivIjA6JEHCCuKlnfNVTWFTkh4YZxFD" + shop_id: "49e86053-1355-4238-bf2d-7c6da6ffc327", + customer_id: "9af7cc09-0b54-41b9-8e37-ee7bdc6728d9", + private_money_id: "a9c6983e-8e64-43ef-b9ba-6f686ab81c76", + money_amount: 7228, + point_amount: 2765, + point_expires_at: "2024-02-15T15:30:06.000000Z", + description: "Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ6" })); status = response.code; } catch (e) { @@ -2973,7 +2973,7 @@ test('Check ListTransactionsV2 | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - per_page: 136 + per_page: 653 })); status = response.code; } catch (e) { @@ -2989,8 +2989,8 @@ test('Check ListTransactionsV2 | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - prev_page_cursor_id: "fc527984-a5e8-44f2-a31f-4c7f0cdfdd95", - per_page: 313 + prev_page_cursor_id: "97b1a518-3f31-4af0-9ea6-86230d0a0bbd", + per_page: 19 })); status = response.code; } catch (e) { @@ -3006,9 +3006,9 @@ test('Check ListTransactionsV2 | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - next_page_cursor_id: "fb22ffa1-f122-40d1-a829-257fab34ceea", - prev_page_cursor_id: "3ccd8c04-5759-4eec-bb42-5cb460baa4a3", - per_page: 307 + next_page_cursor_id: "a336c023-b4d7-4117-bfc4-d063b58d43d6", + prev_page_cursor_id: "505c87f9-84c5-4f48-bc2a-392e1679533f", + per_page: 49 })); status = response.code; } catch (e) { @@ -3024,10 +3024,10 @@ test('Check ListTransactionsV2 | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - to: "2022-06-12T16:45:46.000000Z", - next_page_cursor_id: "b59dafbc-912c-4bef-bb8d-474796f0ec41", - prev_page_cursor_id: "61cefb16-141f-40a0-a8bf-97792c4e46ec", - per_page: 369 + to: "2024-01-08T03:55:04.000000Z", + next_page_cursor_id: "0eb7cfbb-e351-4629-8676-2619951cf6be", + prev_page_cursor_id: "8ea7329f-590b-48d0-84c3-1cd2d9574f7b", + per_page: 694 })); status = response.code; } catch (e) { @@ -3043,11 +3043,11 @@ test('Check ListTransactionsV2 | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - from: "2022-05-13T22:51:50.000000Z", - to: "2021-03-13T23:51:09.000000Z", - next_page_cursor_id: "fece7a94-33ac-43dd-8b1b-1ec60b163d4f", - prev_page_cursor_id: "4caa26ae-5ef7-4ec3-a49f-d4a4805d1b3f", - per_page: 831 + from: "2020-05-27T08:52:25.000000Z", + to: "2023-02-28T00:45:00.000000Z", + next_page_cursor_id: "420fa59f-7807-4580-a0a1-c659f77259bc", + prev_page_cursor_id: "58606c5a-493f-4fe8-bbd8-747d946d7b37", + per_page: 396 })); status = response.code; } catch (e) { @@ -3063,12 +3063,12 @@ test('Check ListTransactionsV2 | 6', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - types: ["exchange_outflow", "expire"], - from: "2023-05-12T04:41:04.000000Z", - to: "2021-06-07T00:06:19.000000Z", - next_page_cursor_id: "8cf2e07e-679f-4d8f-821f-65dac7d4c4e4", - prev_page_cursor_id: "f2538a72-d81e-4e67-9198-2d9d4a0aa3e8", - per_page: 442 + types: ["expire"], + from: "2022-12-25T18:29:43.000000Z", + to: "2021-01-22T12:30:53.000000Z", + next_page_cursor_id: "f54afdea-375e-4bd7-8806-38f4024ef7c7", + prev_page_cursor_id: "c324a222-93ba-4b73-b3e2-5eb80f70cf0c", + per_page: 311 })); status = response.code; } catch (e) { @@ -3085,12 +3085,12 @@ test('Check ListTransactionsV2 | 7', async () => { try { const response: Response = await client.send(new ListTransactionsV2({ is_modified: true, - types: ["topup", "cashback", "exchange_inflow", "payment"], - from: "2022-10-11T10:49:34.000000Z", - to: "2021-12-28T16:25:23.000000Z", - next_page_cursor_id: "cb3e846c-d7c4-41bb-a404-c55fc895efc2", - prev_page_cursor_id: "27a88a14-4475-4cbe-af24-ad0171a19d4a", - per_page: 645 + types: ["cashback", "exchange_outflow", "topup"], + from: "2021-04-20T23:38:53.000000Z", + to: "2023-03-26T18:24:47.000000Z", + next_page_cursor_id: "34cb2605-e98c-4b7b-880e-e08895753838", + prev_page_cursor_id: "4c0ee7ea-fea4-4097-b2be-4b096e64bfe6", + per_page: 675 })); status = response.code; } catch (e) { @@ -3106,14 +3106,14 @@ test('Check ListTransactionsV2 | 8', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - transaction_id: "IFUr", - is_modified: false, - types: ["cashback", "exchange_inflow", "topup"], - from: "2021-09-05T06:44:01.000000Z", - to: "2020-10-14T01:18:45.000000Z", - next_page_cursor_id: "6dd14e7e-5638-4902-81cb-a0185959ff6d", - prev_page_cursor_id: "e93949cf-e08a-46ce-bbd9-55031442dcd8", - per_page: 281 + transaction_id: "P", + is_modified: true, + types: ["exchange_outflow", "exchange_inflow", "expire", "topup", "payment", "cashback"], + from: "2020-11-13T13:13:56.000000Z", + to: "2021-02-08T10:41:26.000000Z", + next_page_cursor_id: "5d688559-3de4-43ef-a88b-e0a210ed2d44", + prev_page_cursor_id: "96254252-9478-401b-9d63-ac655023169f", + per_page: 31 })); status = response.code; } catch (e) { @@ -3129,15 +3129,15 @@ test('Check ListTransactionsV2 | 9', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - description: "ce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzry", - transaction_id: "GRNkAeSH", + description: "psSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFh", + transaction_id: "A", is_modified: false, - types: ["expire", "topup", "payment"], - from: "2020-05-01T18:04:20.000000Z", - to: "2021-09-07T23:55:30.000000Z", - next_page_cursor_id: "5fcd5437-265b-46d8-8081-5f3706143e05", - prev_page_cursor_id: "1a0a7af2-ad93-4e89-9e39-0928d69b0d5c", - per_page: 423 + types: ["exchange_outflow", "topup", "payment"], + from: "2023-10-18T05:20:37.000000Z", + to: "2022-03-06T18:42:56.000000Z", + next_page_cursor_id: "702d90b9-3ef2-4781-b296-c4d27037028a", + prev_page_cursor_id: "f4c30796-b698-4142-a5e1-9bc20706164f", + per_page: 46 })); status = response.code; } catch (e) { @@ -3153,16 +3153,16 @@ test('Check ListTransactionsV2 | 10', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - customer_name: "8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsdecspEcH6zAIM8ju98", - description: "f3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRt", - transaction_id: "mknLVk7hQO", + customer_name: "dWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfnZ2mwTeB7HbtOFrcDL7mo", + description: "yloW0gLyNig5qU771SYwG9bLF", + transaction_id: "HIbs98V", is_modified: false, - types: ["exchange_outflow", "exchange_inflow", "cashback", "expire", "payment"], - from: "2020-12-02T05:29:29.000000Z", - to: "2022-02-09T17:20:58.000000Z", - next_page_cursor_id: "e5b630a8-6881-4a04-8d83-81465bf9cfa5", - prev_page_cursor_id: "bdbe4cff-86e8-422a-a0a9-f10b73fdd11b", - per_page: 827 + types: ["topup", "cashback"], + from: "2021-11-01T21:13:07.000000Z", + to: "2023-01-30T09:23:34.000000Z", + next_page_cursor_id: "7fc77008-cb38-4170-bcae-0c5398d4869b", + prev_page_cursor_id: "409113b7-c2d7-4495-9d95-7e9d21bcd75a", + per_page: 267 })); status = response.code; } catch (e) { @@ -3178,17 +3178,17 @@ test('Check ListTransactionsV2 | 11', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - customer_id: "9d99c341-5555-4bb2-894c-ad6eb8ec2dca", - customer_name: "GL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpK", - description: "eG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG", - transaction_id: "9bLFf", + customer_id: "2d6b2f87-f014-45f5-ad0d-10e0b5367189", + customer_name: "uB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5V", + description: "BpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2", + transaction_id: "JncUb", is_modified: true, - types: ["payment", "cashback", "topup", "exchange_inflow"], - from: "2022-09-13T20:18:07.000000Z", - to: "2023-09-26T20:31:25.000000Z", - next_page_cursor_id: "6abc9db9-7c38-4cdd-9601-a9f053d20a4f", - prev_page_cursor_id: "ab3f5867-04a3-49bb-ad88-c58f0213e999", - per_page: 868 + types: ["topup"], + from: "2024-03-14T04:24:51.000000Z", + to: "2021-10-16T10:34:46.000000Z", + next_page_cursor_id: "597f7907-c354-4719-beeb-675a6bd89bbe", + prev_page_cursor_id: "d2abd54c-1b23-4d10-bb0d-d0640cbcc922", + per_page: 250 })); status = response.code; } catch (e) { @@ -3204,18 +3204,18 @@ test('Check ListTransactionsV2 | 12', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - terminal_id: "15cbab96-7008-4b38-b0fc-29ae27c00c53", - customer_id: "98d4869b-13b7-42d7-955d-8695dbb97e9d", - customer_name: "iumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3", - description: "9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf", - transaction_id: "ESdF", + terminal_id: "740466b8-af96-4ea1-82dc-5f9d38f40ab9", + customer_id: "8144be57-8e57-4771-bd91-82ce44d9d572", + customer_name: "VXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6Y", + description: "YkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur", + transaction_id: "lrAgR", is_modified: true, - types: ["exchange_inflow", "payment", "expire", "exchange_outflow", "topup"], - from: "2022-06-06T10:38:03.000000Z", - to: "2022-11-23T05:39:52.000000Z", - next_page_cursor_id: "5d685570-9b2e-403c-850a-60b143b8297c", - prev_page_cursor_id: "bd2b7e86-c9fd-459e-b9e7-5db8278cb9b9", - per_page: 627 + types: ["payment", "expire", "exchange_outflow", "topup", "exchange_inflow", "cashback"], + from: "2024-01-21T19:12:21.000000Z", + to: "2021-01-10T18:58:33.000000Z", + next_page_cursor_id: "c7b3c8dc-0ae0-4312-8543-6cc47f989efc", + prev_page_cursor_id: "9d55c712-30f0-4312-98b8-ba0201a288ce", + per_page: 682 })); status = response.code; } catch (e) { @@ -3231,19 +3231,19 @@ test('Check ListTransactionsV2 | 13', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - shop_id: "006d11ab-04d5-4f0b-bf1d-902772835f67", - terminal_id: "55325684-d1fd-4d11-96b8-2131a83d9ba4", - customer_id: "95901060-912a-477d-9314-936851642711", - customer_name: "6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un", - description: "nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90ILh1FnEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHG", - transaction_id: "ImjW3", + shop_id: "c13d55f9-6e22-465c-bb37-5845aebb53f8", + terminal_id: "2b8b8db4-8c7a-4d26-9ccc-b0798d3a473f", + customer_id: "46242823-365e-4d2c-bd0c-b0acb53b605c", + customer_name: "mVuuwRZjnfSOf90ILh1FnEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34z4jE8W9hhkpYWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNA", + description: "Up6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsv", + transaction_id: "Q", is_modified: true, - types: ["exchange_outflow", "expire", "exchange_inflow"], - from: "2022-04-02T04:19:54.000000Z", - to: "2022-09-02T08:24:37.000000Z", - next_page_cursor_id: "63e5715b-e038-487b-9715-19b9ff9442aa", - prev_page_cursor_id: "9a3946e8-cfe8-49eb-b09f-c5596e9aa017", - per_page: 728 + types: ["payment", "topup", "expire", "exchange_inflow", "cashback", "exchange_outflow"], + from: "2023-04-30T13:50:19.000000Z", + to: "2021-04-26T12:13:02.000000Z", + next_page_cursor_id: "de4aaed8-5b77-41c0-b4bf-7f2e7a32ff50", + prev_page_cursor_id: "6385eb40-9ae6-4027-9f3e-31cbdf6f8c88", + per_page: 194 })); status = response.code; } catch (e) { @@ -3259,20 +3259,20 @@ test('Check ListTransactionsV2 | 14', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - organization_code: "1sxp-", - shop_id: "5afd0db1-785d-48fb-85d4-5797d56626da", - terminal_id: "713d02df-bad6-45fd-b269-b22386f4452e", - customer_id: "4ac97787-846d-4758-99bc-153beaf7ae51", - customer_name: "2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4Uw", - description: "xtqXzHNdytk1inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5", - transaction_id: "UqQsbMF", - is_modified: false, - types: ["topup", "expire", "exchange_inflow", "exchange_outflow", "cashback", "payment"], - from: "2020-02-03T08:11:05.000000Z", - to: "2023-06-29T18:25:12.000000Z", - next_page_cursor_id: "30f1ff9d-ef59-4f88-953a-1d6e057e9d65", - prev_page_cursor_id: "4860306d-5194-4efa-9c52-df967e6670e4", - per_page: 861 + organization_code: "ZgPolr77LuET-----gizz6u", + shop_id: "ed2904e4-23df-4046-a63d-39b000bd405e", + terminal_id: "95f56e59-fb8a-4731-9bca-2b167cad46cf", + customer_id: "1d21542d-b288-4810-846f-27427e0ef468", + customer_name: "EJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF", + description: "7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6nh3hboA", + transaction_id: "Va", + is_modified: true, + types: ["payment", "exchange_outflow", "cashback", "topup", "expire"], + from: "2020-04-12T18:56:58.000000Z", + to: "2020-01-09T10:00:20.000000Z", + next_page_cursor_id: "ec88c98d-3119-4a37-8838-28767dafce26", + prev_page_cursor_id: "39a18535-c6cf-4e59-988e-6781ef8fa632", + per_page: 451 })); status = response.code; } catch (e) { @@ -3288,21 +3288,21 @@ test('Check ListTransactionsV2 | 15', async () => { let status = 400; try { const response: Response = await client.send(new ListTransactionsV2({ - private_money_id: "037875d2-a2cf-48cb-a21d-4c4705c5bba4", - organization_code: "-X2-C07GVrnb4d-B4--", - shop_id: "34dc55ac-a31b-4d3e-ad69-82ee07a1bdec", - terminal_id: "301a1fbb-1b9e-48be-938a-00ff3831334a", - customer_id: "41652a06-e107-4103-a2df-97e77f4ab73e", - customer_name: "COpN21EzYv53e8C68gL6nh3hboA1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXUyJ1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXf", - description: "zIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTq", - transaction_id: "NfSRiXL", + private_money_id: "1b05a49a-8e5d-42fd-a28d-234047c47a37", + organization_code: "u69-xrU--0eU11U-Ik", + shop_id: "4c4dce85-93d0-441a-beac-2002d088577c", + terminal_id: "51c604ba-4958-4855-b94a-5f82c0d80f7d", + customer_id: "820096b1-b0d6-429e-b072-8135e4b9819c", + customer_name: "HRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cF", + description: "x", + transaction_id: "90D5go4dBL", is_modified: false, - types: ["exchange_outflow", "payment", "cashback", "topup", "exchange_inflow", "expire"], - from: "2020-03-21T03:35:25.000000Z", - to: "2021-01-28T09:27:41.000000Z", - next_page_cursor_id: "eb184385-8def-41e0-a634-4d0f5c103d4e", - prev_page_cursor_id: "1c990833-aae0-4762-985c-e437b7a43332", - per_page: 122 + types: ["cashback", "exchange_inflow", "expire", "exchange_outflow", "payment", "topup"], + from: "2022-08-20T00:15:35.000000Z", + to: "2022-09-21T22:50:13.000000Z", + next_page_cursor_id: "2051d1a1-7343-49d3-9a8d-45a3aba0c4bc", + prev_page_cursor_id: "a3428956-0382-45e4-9f34-ede39e0d30a3", + per_page: 862 })); status = response.code; } catch (e) { @@ -3318,9 +3318,9 @@ test('Check CreateTopupTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - customer_id: "bd51d245-8c4b-4321-be4d-9459c0099b05", - private_money_id: "6d4ad3a8-07fb-4773-aad2-cc8044238a66" + shop_id: "51c7add4-cdf1-448e-ae06-c24ed826d28d", + customer_id: "1930bc66-7b53-403e-9e02-46d25ff33469", + private_money_id: "9d25f7d8-8206-4095-8c77-0d1a89f3b820" })); status = response.code; } catch (e) { @@ -3336,10 +3336,10 @@ test('Check CreateTopupTransaction | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - customer_id: "bd51d245-8c4b-4321-be4d-9459c0099b05", - private_money_id: "6d4ad3a8-07fb-4773-aad2-cc8044238a66", - request_id: "590665db-07b9-4f76-8072-72e918278a87" + shop_id: "51c7add4-cdf1-448e-ae06-c24ed826d28d", + customer_id: "1930bc66-7b53-403e-9e02-46d25ff33469", + private_money_id: "9d25f7d8-8206-4095-8c77-0d1a89f3b820", + request_id: "82dcfeb6-bc49-4a58-bd7d-aa785206a28d" })); status = response.code; } catch (e) { @@ -3355,11 +3355,11 @@ test('Check CreateTopupTransaction | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - customer_id: "bd51d245-8c4b-4321-be4d-9459c0099b05", - private_money_id: "6d4ad3a8-07fb-4773-aad2-cc8044238a66", + shop_id: "51c7add4-cdf1-448e-ae06-c24ed826d28d", + customer_id: "1930bc66-7b53-403e-9e02-46d25ff33469", + private_money_id: "9d25f7d8-8206-4095-8c77-0d1a89f3b820", metadata: "{\"key\":\"value\"}", - request_id: "030cd959-7ae9-433d-907b-8d0018d356a9" + request_id: "eb184385-8def-41e0-a634-4d0f5c103d4e" })); status = response.code; } catch (e) { @@ -3375,12 +3375,12 @@ test('Check CreateTopupTransaction | 3', async () => { let status = 400; try { const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - customer_id: "bd51d245-8c4b-4321-be4d-9459c0099b05", - private_money_id: "6d4ad3a8-07fb-4773-aad2-cc8044238a66", - description: "8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3jya01c", + shop_id: "51c7add4-cdf1-448e-ae06-c24ed826d28d", + customer_id: "1930bc66-7b53-403e-9e02-46d25ff33469", + private_money_id: "9d25f7d8-8206-4095-8c77-0d1a89f3b820", + description: "bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipu", metadata: "{\"key\":\"value\"}", - request_id: "7061914c-07b7-4315-a564-a305d539bee8" + request_id: "9e71daad-0acc-49f4-b349-7dd154f1964b" })); status = response.code; } catch (e) { @@ -3396,13 +3396,13 @@ test('Check CreateTopupTransaction | 4', async () => { let status = 400; try { const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - customer_id: "bd51d245-8c4b-4321-be4d-9459c0099b05", - private_money_id: "6d4ad3a8-07fb-4773-aad2-cc8044238a66", - point_expires_at: "2020-09-15T01:10:05.000000Z", - description: "i5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8J", + shop_id: "51c7add4-cdf1-448e-ae06-c24ed826d28d", + customer_id: "1930bc66-7b53-403e-9e02-46d25ff33469", + private_money_id: "9d25f7d8-8206-4095-8c77-0d1a89f3b820", + point_expires_at: "2022-10-10T10:39:13.000000Z", + description: "Hb", metadata: "{\"key\":\"value\"}", - request_id: "3859c46b-1a83-4a4c-b64b-2e24d6c94e1d" + request_id: "ddc93afc-af24-4636-a6e9-2b6bf9b56fa7" })); status = response.code; } catch (e) { @@ -3418,14 +3418,14 @@ test('Check CreateTopupTransaction | 5', async () => { let status = 400; try { const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - customer_id: "bd51d245-8c4b-4321-be4d-9459c0099b05", - private_money_id: "6d4ad3a8-07fb-4773-aad2-cc8044238a66", - point_amount: 5478, - point_expires_at: "2021-01-21T20:23:24.000000Z", - description: "UtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQ", + shop_id: "51c7add4-cdf1-448e-ae06-c24ed826d28d", + customer_id: "1930bc66-7b53-403e-9e02-46d25ff33469", + private_money_id: "9d25f7d8-8206-4095-8c77-0d1a89f3b820", + point_amount: 4526, + point_expires_at: "2021-06-14T21:36:22.000000Z", + description: "U3XBigR3jya01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICt", metadata: "{\"key\":\"value\"}", - request_id: "b17cfe53-f624-4d0a-a77d-66734f88b581" + request_id: "cc3c3fd9-98e3-49e2-90c8-187b2cb5a3dc" })); status = response.code; } catch (e) { @@ -3441,15 +3441,15 @@ test('Check CreateTopupTransaction | 6', async () => { let status = 400; try { const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - customer_id: "bd51d245-8c4b-4321-be4d-9459c0099b05", - private_money_id: "6d4ad3a8-07fb-4773-aad2-cc8044238a66", - money_amount: 4875, - point_amount: 5757, - point_expires_at: "2022-07-23T01:40:42.000000Z", - description: "cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2iLh", + shop_id: "51c7add4-cdf1-448e-ae06-c24ed826d28d", + customer_id: "1930bc66-7b53-403e-9e02-46d25ff33469", + private_money_id: "9d25f7d8-8206-4095-8c77-0d1a89f3b820", + money_amount: 2442, + point_amount: 6322, + point_expires_at: "2023-09-21T16:58:21.000000Z", + description: "ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xi", metadata: "{\"key\":\"value\"}", - request_id: "8c138815-f8eb-46c2-8330-e7b84bbc97ed" + request_id: "ad2f9e23-c243-4d70-b472-56401978677e" })); status = response.code; } catch (e) { @@ -3465,16 +3465,16 @@ test('Check CreateTopupTransaction | 7', async () => { let status = 400; try { const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - customer_id: "bd51d245-8c4b-4321-be4d-9459c0099b05", - private_money_id: "6d4ad3a8-07fb-4773-aad2-cc8044238a66", - bear_point_shop_id: "10405a8e-bc57-4118-816f-fc5d8281775d", - money_amount: 339, - point_amount: 7237, - point_expires_at: "2022-04-12T16:41:10.000000Z", - description: "4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNm", + shop_id: "51c7add4-cdf1-448e-ae06-c24ed826d28d", + customer_id: "1930bc66-7b53-403e-9e02-46d25ff33469", + private_money_id: "9d25f7d8-8206-4095-8c77-0d1a89f3b820", + bear_point_shop_id: "a3ea2e99-cc38-482b-a858-151a624d8b14", + money_amount: 2323, + point_amount: 5155, + point_expires_at: "2020-06-25T01:12:49.000000Z", + description: "QSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh", metadata: "{\"key\":\"value\"}", - request_id: "51ebc46a-bd9a-49dd-8bd7-5914be8dc5d0" + request_id: "455bed39-19ac-4dbe-abad-dbbdeb3be4af" })); status = response.code; } catch (e) { @@ -3490,8 +3490,8 @@ test('Check CreateTopupTransactionWithCheck | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateTopupTransactionWithCheck({ - check_id: "868e5c11-4cc4-49bc-85fa-63810b85da65", - customer_id: "3918ac9a-e7ee-40b9-9e25-c17d02968c56" + check_id: "6e364286-d514-45ac-8e73-89ee21638920", + customer_id: "77dc6e96-dd0d-4d01-b154-48d3d4379d4b" })); status = response.code; } catch (e) { @@ -3507,9 +3507,9 @@ test('Check CreateTopupTransactionWithCheck | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateTopupTransactionWithCheck({ - check_id: "868e5c11-4cc4-49bc-85fa-63810b85da65", - customer_id: "3918ac9a-e7ee-40b9-9e25-c17d02968c56", - request_id: "d58acfa1-dd8e-4945-8d68-d739993bb8bc" + check_id: "6e364286-d514-45ac-8e73-89ee21638920", + customer_id: "77dc6e96-dd0d-4d01-b154-48d3d4379d4b", + request_id: "30465051-2efb-4fd9-a14c-7074857aec8f" })); status = response.code; } catch (e) { @@ -3525,10 +3525,10 @@ test('Check CreatePaymentTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreatePaymentTransaction({ - shop_id: "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", - customer_id: "18784388-b8a1-407c-bad5-2a6c5339a77a", - private_money_id: "bdf3cc73-c818-4ef8-a203-60ff592792fe", - amount: 7737 + shop_id: "687e8207-e404-4fe7-bcc2-635f731420c6", + customer_id: "6ca83432-a396-4cc0-b1cd-f19acd584961", + private_money_id: "b433b0ef-6f30-41e9-bc4d-76a821bfcc82", + amount: 5932 })); status = response.code; } catch (e) { @@ -3544,11 +3544,11 @@ test('Check CreatePaymentTransaction | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreatePaymentTransaction({ - shop_id: "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", - customer_id: "18784388-b8a1-407c-bad5-2a6c5339a77a", - private_money_id: "bdf3cc73-c818-4ef8-a203-60ff592792fe", - amount: 7737, - request_id: "f3cbd8f4-fd23-4591-91cb-a58906a761d3" + shop_id: "687e8207-e404-4fe7-bcc2-635f731420c6", + customer_id: "6ca83432-a396-4cc0-b1cd-f19acd584961", + private_money_id: "b433b0ef-6f30-41e9-bc4d-76a821bfcc82", + amount: 5932, + strategy: "point-preferred" })); status = response.code; } catch (e) { @@ -3564,37 +3564,58 @@ test('Check CreatePaymentTransaction | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreatePaymentTransaction({ - shop_id: "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", - customer_id: "18784388-b8a1-407c-bad5-2a6c5339a77a", - private_money_id: "bdf3cc73-c818-4ef8-a203-60ff592792fe", - amount: 7737, + shop_id: "687e8207-e404-4fe7-bcc2-635f731420c6", + customer_id: "6ca83432-a396-4cc0-b1cd-f19acd584961", + private_money_id: "b433b0ef-6f30-41e9-bc4d-76a821bfcc82", + amount: 5932, + request_id: "de4bda95-f9aa-4578-b732-fbcd45551daf", + strategy: "point-preferred" + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check CreatePaymentTransaction | 3', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreatePaymentTransaction({ + shop_id: "687e8207-e404-4fe7-bcc2-635f731420c6", + customer_id: "6ca83432-a396-4cc0-b1cd-f19acd584961", + private_money_id: "b433b0ef-6f30-41e9-bc4d-76a821bfcc82", + amount: 5932, products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "7d67f75a-5c8b-4264-ba4d-a220bf88c88e" + request_id: "5e16aaa4-8562-405d-9a09-c4410dc95174", + strategy: "point-preferred" })); status = response.code; } catch (e) { @@ -3606,47 +3627,54 @@ test('Check CreatePaymentTransaction | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreatePaymentTransaction | 3', async () => { +test('Check CreatePaymentTransaction | 4', async () => { let status = 400; try { const response: Response = await client.send(new CreatePaymentTransaction({ - shop_id: "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", - customer_id: "18784388-b8a1-407c-bad5-2a6c5339a77a", - private_money_id: "bdf3cc73-c818-4ef8-a203-60ff592792fe", - amount: 7737, + shop_id: "687e8207-e404-4fe7-bcc2-635f731420c6", + customer_id: "6ca83432-a396-4cc0-b1cd-f19acd584961", + private_money_id: "b433b0ef-6f30-41e9-bc4d-76a821bfcc82", + amount: 5932, metadata: "{\"key\":\"value\"}", products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "42165fc1-ad2b-422c-9ad4-7a2b06f5a10f" + request_id: "0011a1d1-db98-4fdb-a6e2-257726374750", + strategy: "money-only" })); status = response.code; } catch (e) { @@ -3658,68 +3686,55 @@ test('Check CreatePaymentTransaction | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreatePaymentTransaction | 4', async () => { +test('Check CreatePaymentTransaction | 5', async () => { let status = 400; try { const response: Response = await client.send(new CreatePaymentTransaction({ - shop_id: "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", - customer_id: "18784388-b8a1-407c-bad5-2a6c5339a77a", - private_money_id: "bdf3cc73-c818-4ef8-a203-60ff592792fe", - amount: 7737, - description: "HlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04aLs4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZma6CRo8nyJO9", + shop_id: "687e8207-e404-4fe7-bcc2-635f731420c6", + customer_id: "6ca83432-a396-4cc0-b1cd-f19acd584961", + private_money_id: "b433b0ef-6f30-41e9-bc4d-76a821bfcc82", + amount: 5932, + description: "5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy2qiGNeSDJu", metadata: "{\"key\":\"value\"}", products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "6ad79f33-4be6-4e00-99b9-eca699fa8e64" + request_id: "9cebef12-7317-41d7-a983-784e1a663421", + strategy: "point-preferred" })); status = response.code; } catch (e) { @@ -3735,9 +3750,9 @@ test('Check CreateCpmTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "jMgk8QSZwJ1udEIb7zDJ6K", - shop_id: "18bed4da-27d4-4c23-91db-b3c5b1944e6b", - amount: 4884.0 + cpm_token: "AF2iLhkB08mWoSEw4Yfnz5", + shop_id: "bd45e765-53e0-4b33-a23e-bdea58df0881", + amount: 3032.0 })); status = response.code; } catch (e) { @@ -3753,10 +3768,10 @@ test('Check CreateCpmTransaction | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "jMgk8QSZwJ1udEIb7zDJ6K", - shop_id: "18bed4da-27d4-4c23-91db-b3c5b1944e6b", - amount: 4884.0, - request_id: "fb9e0f30-8d3a-4e08-ad27-35c422d3be7f" + cpm_token: "AF2iLhkB08mWoSEw4Yfnz5", + shop_id: "bd45e765-53e0-4b33-a23e-bdea58df0881", + amount: 3032.0, + strategy: "money-only" })); status = response.code; } catch (e) { @@ -3772,26 +3787,56 @@ test('Check CreateCpmTransaction | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "jMgk8QSZwJ1udEIb7zDJ6K", - shop_id: "18bed4da-27d4-4c23-91db-b3c5b1944e6b", - amount: 4884.0, + cpm_token: "AF2iLhkB08mWoSEw4Yfnz5", + shop_id: "bd45e765-53e0-4b33-a23e-bdea58df0881", + amount: 3032.0, + request_id: "eff09dcb-e0ec-463c-a4c1-4ba98e9f29ce", + strategy: "money-only" + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check CreateCpmTransaction | 3', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCpmTransaction({ + cpm_token: "AF2iLhkB08mWoSEw4Yfnz5", + shop_id: "bd45e765-53e0-4b33-a23e-bdea58df0881", + amount: 3032.0, products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "23667b47-a8f1-46bf-a438-206a38759b97" + request_id: "af2fa697-79da-43e5-b439-c5976caea37d", + strategy: "point-preferred" })); status = response.code; } catch (e) { @@ -3803,21 +3848,23 @@ test('Check CreateCpmTransaction | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateCpmTransaction | 3', async () => { +test('Check CreateCpmTransaction | 4', async () => { let status = 400; try { const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "jMgk8QSZwJ1udEIb7zDJ6K", - shop_id: "18bed4da-27d4-4c23-91db-b3c5b1944e6b", - amount: 4884.0, + cpm_token: "AF2iLhkB08mWoSEw4Yfnz5", + shop_id: "bd45e765-53e0-4b33-a23e-bdea58df0881", + amount: 3032.0, metadata: "{\"key\":\"value\"}", products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "d06e9347-04e9-4b68-8632-23298ca3f192" + request_id: "1ba10cf1-6e8e-4e8c-8b3b-0e567bdbf29a", + strategy: "money-only" })); status = response.code; } catch (e) { @@ -3829,37 +3876,102 @@ test('Check CreateCpmTransaction | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateCpmTransaction | 4', async () => { +test('Check CreateCpmTransaction | 5', async () => { let status = 400; try { const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "jMgk8QSZwJ1udEIb7zDJ6K", - shop_id: "18bed4da-27d4-4c23-91db-b3c5b1944e6b", - amount: 4884.0, - description: "zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pP", + cpm_token: "AF2iLhkB08mWoSEw4Yfnz5", + shop_id: "bd45e765-53e0-4b33-a23e-bdea58df0881", + amount: 3032.0, + description: "1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3H", metadata: "{\"key\":\"value\"}", products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "338ac73d-0ec8-4345-b5b7-80b49109483c" + request_id: "c2a3ffe8-959c-4505-aef9-60cec3c2985a", + strategy: "money-only" + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check CreateTransactionWithCashtray | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateTransactionWithCashtray({ + cashtray_id: "4d01fb19-1f51-459b-bb37-101654160837", + customer_id: "403a998f-a5d5-40ab-9830-bbb458a827e1" + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check CreateTransactionWithCashtray | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateTransactionWithCashtray({ + cashtray_id: "4d01fb19-1f51-459b-bb37-101654160837", + customer_id: "403a998f-a5d5-40ab-9830-bbb458a827e1", + request_id: "04fce82c-e9de-4890-a52d-fda939f20a17" + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check CreateTransactionWithCashtray | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateTransactionWithCashtray({ + cashtray_id: "4d01fb19-1f51-459b-bb37-101654160837", + customer_id: "403a998f-a5d5-40ab-9830-bbb458a827e1", + strategy: "point-preferred", + request_id: "eb814111-9273-4201-963d-d134b297bce8" })); status = response.code; } catch (e) { @@ -3875,10 +3987,10 @@ test('Check CreateTransferTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateTransferTransaction({ - sender_id: "3a769fe5-ee23-42bf-947c-a065feae4e58", - receiver_id: "25fadf3a-fb31-4d02-ab0e-d173863896c8", - private_money_id: "01bf5cb4-a152-4eb2-8d09-9367e182b608", - amount: 9687.0 + sender_id: "716d5a6d-f4f9-4b34-83b2-58df9dd2b302", + receiver_id: "4afec0a0-1187-4a9a-8638-1c8939bf743b", + private_money_id: "aba150a8-d640-42d7-8d09-96eee3965eff", + amount: 7066.0 })); status = response.code; } catch (e) { @@ -3894,11 +4006,11 @@ test('Check CreateTransferTransaction | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateTransferTransaction({ - sender_id: "3a769fe5-ee23-42bf-947c-a065feae4e58", - receiver_id: "25fadf3a-fb31-4d02-ab0e-d173863896c8", - private_money_id: "01bf5cb4-a152-4eb2-8d09-9367e182b608", - amount: 9687.0, - request_id: "37d4c4a4-dabf-4ab6-ba31-5fb48e82ab0b" + sender_id: "716d5a6d-f4f9-4b34-83b2-58df9dd2b302", + receiver_id: "4afec0a0-1187-4a9a-8638-1c8939bf743b", + private_money_id: "aba150a8-d640-42d7-8d09-96eee3965eff", + amount: 7066.0, + request_id: "30e946d2-b47c-49e6-a78c-eafadeb25a32" })); status = response.code; } catch (e) { @@ -3914,12 +4026,12 @@ test('Check CreateTransferTransaction | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateTransferTransaction({ - sender_id: "3a769fe5-ee23-42bf-947c-a065feae4e58", - receiver_id: "25fadf3a-fb31-4d02-ab0e-d173863896c8", - private_money_id: "01bf5cb4-a152-4eb2-8d09-9367e182b608", - amount: 9687.0, - description: "JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1", - request_id: "832b55cb-dc90-46d1-ac8d-0fb44328a863" + sender_id: "716d5a6d-f4f9-4b34-83b2-58df9dd2b302", + receiver_id: "4afec0a0-1187-4a9a-8638-1c8939bf743b", + private_money_id: "aba150a8-d640-42d7-8d09-96eee3965eff", + amount: 7066.0, + description: "eovb1R7O6QOgboW2zpcaLxa2QZma6CRo8nyJO9Y3f9djMgk8QSZwJ1udEIb7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgogh", + request_id: "3790ff07-84d3-40b3-b050-703c0b800fa3" })); status = response.code; } catch (e) { @@ -3935,13 +4047,13 @@ test('Check CreateTransferTransaction | 3', async () => { let status = 400; try { const response: Response = await client.send(new CreateTransferTransaction({ - sender_id: "3a769fe5-ee23-42bf-947c-a065feae4e58", - receiver_id: "25fadf3a-fb31-4d02-ab0e-d173863896c8", - private_money_id: "01bf5cb4-a152-4eb2-8d09-9367e182b608", - amount: 9687.0, + sender_id: "716d5a6d-f4f9-4b34-83b2-58df9dd2b302", + receiver_id: "4afec0a0-1187-4a9a-8638-1c8939bf743b", + private_money_id: "aba150a8-d640-42d7-8d09-96eee3965eff", + amount: 7066.0, metadata: "{\"key\":\"value\"}", - description: "6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdz", - request_id: "d7a5de29-8fda-47c0-ba8e-5e36d9e5fbff" + description: "HE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayq", + request_id: "f2bf20d1-4acc-4841-bb87-0e0cd984f6cb" })); status = response.code; } catch (e) { @@ -3957,10 +4069,10 @@ test('Check CreateExchangeTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateExchangeTransaction({ - user_id: "20b64fab-07cb-4869-b736-77309ace2f45", - sender_private_money_id: "7760bacb-448b-498e-b0cf-e1a7d8d57bb7", - receiver_private_money_id: "1581d02e-d446-49dd-9ccc-47304c371c1c", - amount: 4278 + user_id: "8b4e383e-9111-42d8-8b79-b97f894f9f84", + sender_private_money_id: "ea8ae27d-f4bd-4960-a8a8-9cff4726ec90", + receiver_private_money_id: "a2198f27-3357-441e-91d9-dfe46732aa93", + amount: 109 })); status = response.code; } catch (e) { @@ -3976,11 +4088,11 @@ test('Check CreateExchangeTransaction | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateExchangeTransaction({ - user_id: "20b64fab-07cb-4869-b736-77309ace2f45", - sender_private_money_id: "7760bacb-448b-498e-b0cf-e1a7d8d57bb7", - receiver_private_money_id: "1581d02e-d446-49dd-9ccc-47304c371c1c", - amount: 4278, - request_id: "2d65e7db-21c1-49d2-9916-3e538fbebde9" + user_id: "8b4e383e-9111-42d8-8b79-b97f894f9f84", + sender_private_money_id: "ea8ae27d-f4bd-4960-a8a8-9cff4726ec90", + receiver_private_money_id: "a2198f27-3357-441e-91d9-dfe46732aa93", + amount: 109, + request_id: "b14d8bdc-e501-4906-892e-5c944cfd12a1" })); status = response.code; } catch (e) { @@ -3996,12 +4108,12 @@ test('Check CreateExchangeTransaction | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateExchangeTransaction({ - user_id: "20b64fab-07cb-4869-b736-77309ace2f45", - sender_private_money_id: "7760bacb-448b-498e-b0cf-e1a7d8d57bb7", - receiver_private_money_id: "1581d02e-d446-49dd-9ccc-47304c371c1c", - amount: 4278, - description: "G2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJ", - request_id: "21073e70-f299-4d1a-ba1e-51d357a1b62e" + user_id: "8b4e383e-9111-42d8-8b79-b97f894f9f84", + sender_private_money_id: "ea8ae27d-f4bd-4960-a8a8-9cff4726ec90", + receiver_private_money_id: "a2198f27-3357-441e-91d9-dfe46732aa93", + amount: 109, + description: "HfSBBKI1KQl4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSF", + request_id: "cd47278a-4595-4ff9-a381-8a4ea02a779c" })); status = response.code; } catch (e) { @@ -4017,9 +4129,9 @@ test('Check BulkCreateTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new BulkCreateTransaction({ - name: "XKPSRM", - content: "YMVxniA", - request_id: "NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH" + name: "opqI6bCrDgQTiBz8hople", + content: "Wuv10dzqD", + request_id: "mxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6s" })); status = response.code; } catch (e) { @@ -4035,10 +4147,10 @@ test('Check BulkCreateTransaction | 1', async () => { let status = 400; try { const response: Response = await client.send(new BulkCreateTransaction({ - name: "XKPSRM", - content: "YMVxniA", - request_id: "NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH", - private_money_id: "19a91c59-b734-4147-80d0-a82a1224a44d" + name: "opqI6bCrDgQTiBz8hople", + content: "Wuv10dzqD", + request_id: "mxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6s", + private_money_id: "6f99d372-eb1f-4c52-bc15-d67bf2975a97" })); status = response.code; } catch (e) { @@ -4054,11 +4166,11 @@ test('Check BulkCreateTransaction | 2', async () => { let status = 400; try { const response: Response = await client.send(new BulkCreateTransaction({ - name: "XKPSRM", - content: "YMVxniA", - request_id: "NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH", - description: "gqa4p3NBV6jnDEmNin", - private_money_id: "2eb7b49f-ffed-4618-99fc-e4e0ce656897" + name: "opqI6bCrDgQTiBz8hople", + content: "Wuv10dzqD", + request_id: "mxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6s", + description: "NC9bYJUFWp4SJDd9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJ", + private_money_id: "66371e9e-b8cd-47b9-bbdd-88b9d568deac" })); status = response.code; } catch (e) { @@ -4074,7 +4186,7 @@ test('Check GetTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetTransaction({ - transaction_id: "3c306e03-fc9f-4742-819e-76eb7dc7271d" + transaction_id: "0078acea-f083-4fdf-bd9a-d856d247d617" })); status = response.code; } catch (e) { @@ -4090,7 +4202,7 @@ test('Check RefundTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new RefundTransaction({ - transaction_id: "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1" + transaction_id: "5f70cd36-c168-4bb5-84d1-08346c938e84" })); status = response.code; } catch (e) { @@ -4106,8 +4218,8 @@ test('Check RefundTransaction | 1', async () => { let status = 400; try { const response: Response = await client.send(new RefundTransaction({ - transaction_id: "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1", - returning_point_expires_at: "2021-05-18T00:32:02.000000Z" + transaction_id: "5f70cd36-c168-4bb5-84d1-08346c938e84", + returning_point_expires_at: "2023-02-05T03:18:54.000000Z" })); status = response.code; } catch (e) { @@ -4123,9 +4235,9 @@ test('Check RefundTransaction | 2', async () => { let status = 400; try { const response: Response = await client.send(new RefundTransaction({ - transaction_id: "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1", - description: "4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2Jl", - returning_point_expires_at: "2021-08-12T02:32:59.000000Z" + transaction_id: "5f70cd36-c168-4bb5-84d1-08346c938e84", + description: "TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zL", + returning_point_expires_at: "2020-11-21T08:36:55.000000Z" })); status = response.code; } catch (e) { @@ -4141,7 +4253,7 @@ test('Check GetTransactionByRequestId | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetTransactionByRequestId({ - request_id: "0ed68ecd-85d3-4714-bcd1-033669dd0e2b" + request_id: "d910fda9-2d27-407b-8e19-bb249777445a" })); status = response.code; } catch (e) { @@ -4157,10 +4269,10 @@ test('Check CreateExternalTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateExternalTransaction({ - shop_id: "82bbdb9d-8356-4e38-9c97-731155d767e4", - customer_id: "c161298b-00af-49d2-88d9-03531d9fc0c6", - private_money_id: "4d772685-d144-4ae9-a7e7-6873865779e1", - amount: 7886 + shop_id: "c7f354a7-8af9-4519-8308-cce7b1a70388", + customer_id: "8de2041b-d4a9-41ad-91b3-0f63125b3ec5", + private_money_id: "eae9b603-4193-44d0-9d73-7f39e4d41562", + amount: 5755 })); status = response.code; } catch (e) { @@ -4176,11 +4288,11 @@ test('Check CreateExternalTransaction | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateExternalTransaction({ - shop_id: "82bbdb9d-8356-4e38-9c97-731155d767e4", - customer_id: "c161298b-00af-49d2-88d9-03531d9fc0c6", - private_money_id: "4d772685-d144-4ae9-a7e7-6873865779e1", - amount: 7886, - request_id: "7cbf90a1-a822-4b22-adc0-bc343a43ad50" + shop_id: "c7f354a7-8af9-4519-8308-cce7b1a70388", + customer_id: "8de2041b-d4a9-41ad-91b3-0f63125b3ec5", + private_money_id: "eae9b603-4193-44d0-9d73-7f39e4d41562", + amount: 5755, + done_at: "2021-07-06T16:52:11.000000Z" })); status = response.code; } catch (e) { @@ -4196,27 +4308,64 @@ test('Check CreateExternalTransaction | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateExternalTransaction({ - shop_id: "82bbdb9d-8356-4e38-9c97-731155d767e4", - customer_id: "c161298b-00af-49d2-88d9-03531d9fc0c6", - private_money_id: "4d772685-d144-4ae9-a7e7-6873865779e1", - amount: 7886, + shop_id: "c7f354a7-8af9-4519-8308-cce7b1a70388", + customer_id: "8de2041b-d4a9-41ad-91b3-0f63125b3ec5", + private_money_id: "eae9b603-4193-44d0-9d73-7f39e4d41562", + amount: 5755, + request_id: "ff131c24-e3c0-47bc-b725-d691c86be8e5", + done_at: "2022-02-25T14:11:43.000000Z" + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check CreateExternalTransaction | 3', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateExternalTransaction({ + shop_id: "c7f354a7-8af9-4519-8308-cce7b1a70388", + customer_id: "8de2041b-d4a9-41ad-91b3-0f63125b3ec5", + private_money_id: "eae9b603-4193-44d0-9d73-7f39e4d41562", + amount: 5755, products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "ce67ec62-5417-4af1-9aee-5c30fdbb3e95" + request_id: "281dfb2e-19ca-4bbf-8e06-7852999348ed", + done_at: "2020-12-24T21:59:25.000000Z" })); status = response.code; } catch (e) { @@ -4228,67 +4377,66 @@ test('Check CreateExternalTransaction | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateExternalTransaction | 3', async () => { +test('Check CreateExternalTransaction | 4', async () => { let status = 400; try { const response: Response = await client.send(new CreateExternalTransaction({ - shop_id: "82bbdb9d-8356-4e38-9c97-731155d767e4", - customer_id: "c161298b-00af-49d2-88d9-03531d9fc0c6", - private_money_id: "4d772685-d144-4ae9-a7e7-6873865779e1", - amount: 7886, + shop_id: "c7f354a7-8af9-4519-8308-cce7b1a70388", + customer_id: "8de2041b-d4a9-41ad-91b3-0f63125b3ec5", + private_money_id: "eae9b603-4193-44d0-9d73-7f39e4d41562", + amount: 5755, metadata: "{\"key\":\"value\"}", products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "e8a6fd63-0375-4a18-818a-9fc9e853672a" + request_id: "ab7ef1c3-e088-445d-b626-062c3721cb7b", + done_at: "2023-11-01T06:06:16.000000Z" })); status = response.code; } catch (e) { @@ -4300,58 +4448,67 @@ test('Check CreateExternalTransaction | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateExternalTransaction | 4', async () => { +test('Check CreateExternalTransaction | 5', async () => { let status = 400; try { const response: Response = await client.send(new CreateExternalTransaction({ - shop_id: "82bbdb9d-8356-4e38-9c97-731155d767e4", - customer_id: "c161298b-00af-49d2-88d9-03531d9fc0c6", - private_money_id: "4d772685-d144-4ae9-a7e7-6873865779e1", - amount: 7886, - description: "8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJ", + shop_id: "c7f354a7-8af9-4519-8308-cce7b1a70388", + customer_id: "8de2041b-d4a9-41ad-91b3-0f63125b3ec5", + private_money_id: "eae9b603-4193-44d0-9d73-7f39e4d41562", + amount: 5755, + description: "V5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d", metadata: "{\"key\":\"value\"}", products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "750722eb-dd49-47f6-949b-24da4059d2ee" + request_id: "13638eb2-433e-45d0-84bf-58d3dbf67818", + done_at: "2020-09-29T22:08:18.000000Z" })); status = response.code; } catch (e) { @@ -4367,7 +4524,7 @@ test('Check RefundExternalTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new RefundExternalTransaction({ - event_id: "7141b1d2-93ce-4ba0-8ec1-1cf697f2e9b7" + event_id: "8184f8e0-7cc2-4b4e-8e7f-96c7e2299898" })); status = response.code; } catch (e) { @@ -4383,8 +4540,24 @@ test('Check RefundExternalTransaction | 1', async () => { let status = 400; try { const response: Response = await client.send(new RefundExternalTransaction({ - event_id: "7141b1d2-93ce-4ba0-8ec1-1cf697f2e9b7", - description: "oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4h" + event_id: "8184f8e0-7cc2-4b4e-8e7f-96c7e2299898", + description: "P71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG" + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check GetExternalTransactionByRequestId | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new GetExternalTransactionByRequestId({ + request_id: "7f3f01b6-a328-42ea-9680-430769e803fa" })); status = response.code; } catch (e) { @@ -4414,7 +4587,7 @@ test('Check ListTransfers | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - description: "G6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV" + description: "iN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM" })); status = response.code; } catch (e) { @@ -4430,8 +4603,8 @@ test('Check ListTransfers | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - transfer_types: ["campaign", "transfer", "coupon", "cashback", "payment"], - description: "z14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A8" + transfer_types: ["exchange", "campaign", "coupon", "cashback"], + description: "Su06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjkso" })); status = response.code; } catch (e) { @@ -4447,9 +4620,9 @@ test('Check ListTransfers | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - transaction_types: ["cashback", "transfer", "expire", "topup"], - transfer_types: ["payment", "campaign", "exchange", "topup", "expire", "coupon", "cashback", "transfer"], - description: "I5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C" + transaction_types: ["payment", "expire", "cashback", "topup", "transfer"], + transfer_types: ["topup", "expire", "coupon", "payment", "cashback", "exchange"], + description: "BfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5" })); status = response.code; } catch (e) { @@ -4466,9 +4639,9 @@ test('Check ListTransfers | 4', async () => { try { const response: Response = await client.send(new ListTransfers({ is_modified: true, - transaction_types: ["cashback", "transfer", "payment", "topup"], - transfer_types: ["topup", "payment", "cashback"], - description: "hZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5" + transaction_types: ["transfer", "payment", "topup", "exchange", "expire"], + transfer_types: ["topup", "cashback", "expire", "campaign", "coupon", "transfer", "payment", "exchange"], + description: "tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44" })); status = response.code; } catch (e) { @@ -4484,11 +4657,11 @@ test('Check ListTransfers | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - private_money_id: "756e8b6f-d54a-4a6e-8836-7b9aa432b39e", - is_modified: true, - transaction_types: ["cashback", "payment"], - transfer_types: ["expire", "topup", "exchange", "coupon", "cashback", "payment", "campaign", "transfer"], - description: "mDSuxOmphkziTG6p4H" + private_money_id: "cb63deea-16a4-42f5-95c3-fc290697ab9c", + is_modified: false, + transaction_types: ["cashback"], + transfer_types: ["coupon", "exchange", "campaign", "expire", "transfer", "payment"], + description: "8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIcNrFvlQBIX1JBgnrD1yLFlL5kbgs6xUgxf5" })); status = response.code; } catch (e) { @@ -4504,12 +4677,12 @@ test('Check ListTransfers | 6', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - transaction_id: "6c924988-2fac-4d73-be4c-ba65f1e586c9", - private_money_id: "f563105d-0b63-433c-8e19-9089b8670c72", - is_modified: true, - transaction_types: ["topup", "cashback"], - transfer_types: ["exchange", "expire"], - description: "JBgnrD1yLFlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9Yu" + transaction_id: "a1f90aa9-d114-45f3-8f90-fa912f9329ef", + private_money_id: "9151f440-5fa2-4166-9973-a6a21b8b2de5", + is_modified: false, + transaction_types: ["exchange", "expire", "transfer", "topup"], + transfer_types: ["campaign", "exchange", "transfer", "expire", "cashback", "payment", "coupon", "topup"], + description: "PpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rWW" })); status = response.code; } catch (e) { @@ -4525,13 +4698,13 @@ test('Check ListTransfers | 7', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - customer_name: "KsTGECVvJsAnqjel2la3rWWdK2ybDtXJiikZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXH", - transaction_id: "fcbcc1a5-4a92-4a8d-870a-23d365c8b97d", - private_money_id: "1b07a123-ec2d-4656-9767-ecd67903e927", + customer_name: "K2ybDtXJiikZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4m", + transaction_id: "daacf7ad-334c-4880-9fca-34c3447b65fa", + private_money_id: "b7585721-fba6-4b17-889f-4270b07ac300", is_modified: false, - transaction_types: ["exchange", "expire", "payment", "cashback", "transfer"], - transfer_types: ["topup", "exchange", "coupon", "expire", "cashback", "campaign", "payment"], - description: "1wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Ho" + transaction_types: ["expire", "cashback"], + transfer_types: ["topup", "coupon", "cashback", "transfer", "expire", "exchange", "payment"], + description: "I8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsu" })); status = response.code; } catch (e) { @@ -4547,14 +4720,14 @@ test('Check ListTransfers | 8', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - customer_id: "78bb4967-bd05-4214-a6b0-e86b4f1fab38", - customer_name: "xuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8", - transaction_id: "9e59eb11-cf66-4d10-9b6d-c40f4e141921", - private_money_id: "a7d8b2b3-88bd-41e0-8651-e9feedc2402f", - is_modified: true, - transaction_types: ["transfer", "expire", "cashback", "exchange"], - transfer_types: ["expire", "exchange", "transfer", "payment", "topup"], - description: "bGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsird" + customer_id: "96528069-3fc5-430e-94b8-fe3bd4971060", + customer_name: "8p3Hog0k8dxuKgCFI0", + transaction_id: "52817ad1-fa3e-4776-b1dc-e1e21c0faf72", + private_money_id: "ac04bb6e-9c05-4838-8cac-5141357cdc8d", + is_modified: false, + transaction_types: ["cashback", "exchange", "transfer", "topup", "payment", "expire"], + transfer_types: ["campaign", "cashback", "transfer", "payment", "topup", "exchange", "coupon"], + description: "ApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKU" })); status = response.code; } catch (e) { @@ -4570,15 +4743,15 @@ test('Check ListTransfers | 9', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - shop_name: "b8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe", - customer_id: "293c3c2c-1733-429b-b035-fcc211734ff2", - customer_name: "uF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLv", - transaction_id: "a76fc7ae-3bca-4b02-8064-e3b10a1d36b8", - private_money_id: "d3fa4246-66b7-4ced-a773-de567fb84543", - is_modified: true, - transaction_types: ["payment", "transfer"], - transfer_types: ["exchange", "topup", "cashback", "campaign"], - description: "3pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7nFXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7" + shop_name: "WvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKu", + customer_id: "311e672f-3efa-4c7c-8f6c-c82d560d8c40", + customer_name: "LMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLvJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzK", + transaction_id: "f409254f-eede-4926-9c8d-850f98d07f59", + private_money_id: "d5c63540-1802-4524-9f26-a54975d8991d", + is_modified: false, + transaction_types: ["transfer", "expire", "topup", "payment"], + transfer_types: ["payment", "topup", "exchange", "expire", "transfer", "campaign", "coupon", "cashback"], + description: "HcZXN3Xa70o7nFXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2a" })); status = response.code; } catch (e) { @@ -4594,16 +4767,16 @@ test('Check ListTransfers | 10', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - shop_id: "96063097-7148-4834-bcc2-2b542745e7b2", - shop_name: "dLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eH", - customer_id: "98d160ee-3bce-4079-9cb5-1a0601a109b4", - customer_name: "9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnl", - transaction_id: "0834f167-d21f-4e27-8704-a0188cb3bb01", - private_money_id: "e5797c89-913d-4d0e-a2b8-40a6168f505d", - is_modified: false, - transaction_types: ["topup", "payment", "exchange", "expire", "transfer", "cashback"], - transfer_types: ["exchange", "topup", "coupon", "cashback"], - description: "eP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNH" + shop_id: "1368ddac-a947-4d0c-bf5b-c8b0e93e9e1c", + shop_name: "P6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdL", + customer_id: "b9202a65-7805-4803-bb22-27ca894df6da", + customer_name: "TCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHn", + transaction_id: "997f3bce-2079-4edc-b506-09b4d3babefa", + private_money_id: "99f341b9-3bdb-4107-9983-161f629e095a", + is_modified: true, + transaction_types: ["exchange", "expire"], + transfer_types: ["payment", "topup", "campaign", "cashback", "expire"], + description: "lubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydA" })); status = response.code; } catch (e) { @@ -4619,17 +4792,17 @@ test('Check ListTransfers | 11', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - per_page: 9411, - shop_id: "e38a02c1-943f-4a12-956e-343d0dab3e81", - shop_name: "qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015U", - customer_id: "4ee9c33e-9bc4-4039-b171-0fe0c2f5e900", - customer_name: "TdX", - transaction_id: "b90d6aa9-883e-4480-84ee-d9ebc868e291", - private_money_id: "d5469691-3f11-44c0-8c1e-e05bc3c7b948", + per_page: 1384, + shop_id: "68d65124-ff51-4e2c-a6b1-25eb783c8b6a", + shop_name: "gylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUG", + customer_id: "c3836652-34f1-4d2c-9cbe-367d3fc7b354", + customer_name: "3wcuceySCabxrgTXSx", + transaction_id: "56c173da-86fb-4ce2-898f-fee776527987", + private_money_id: "849803fb-733e-4ec0-96a6-2231f236d2d5", is_modified: true, - transaction_types: ["expire", "payment", "exchange", "transfer", "topup"], - transfer_types: ["payment", "cashback", "coupon", "transfer", "expire", "campaign", "topup", "exchange"], - description: "28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S" + transaction_types: ["payment", "transfer", "expire"], + transfer_types: ["expire", "coupon", "transfer", "cashback", "campaign", "exchange", "topup", "payment"], + description: "qv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6" })); status = response.code; } catch (e) { @@ -4645,18 +4818,18 @@ test('Check ListTransfers | 12', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - page: 3297, - per_page: 441, - shop_id: "955006fc-2f46-4207-9653-5e4434697ccd", - shop_name: "5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5r", - customer_id: "7eb27e58-03c0-4fb0-9b72-e8561aec20a1", - customer_name: "mpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDf", - transaction_id: "1f3e21d5-f316-4cf4-807d-2fb459bdb925", - private_money_id: "982f1d5e-d2d9-4167-8979-01da54ab9d00", + page: 448, + per_page: 9470, + shop_id: "1965a9f9-1133-4553-a46f-1278a6e0c794", + shop_name: "dn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNHBAUn0qZzCUWIZlu3n", + customer_id: "eb35aed6-a7c3-46d0-95ae-ac48ffeadc67", + customer_name: "HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28", + transaction_id: "5d2ed476-1b05-4244-b396-5ed9cdbd239f", + private_money_id: "7406e0ab-24f2-4932-9bdd-fec571e2afcf", is_modified: false, - transaction_types: ["cashback", "payment", "expire", "topup", "transfer"], - transfer_types: ["exchange", "payment", "expire", "campaign"], - description: "ShoExxXDz" + transaction_types: ["expire", "cashback", "payment"], + transfer_types: ["payment", "transfer", "campaign"], + description: "ZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0Q" })); status = response.code; } catch (e) { @@ -4672,19 +4845,19 @@ test('Check ListTransfers | 13', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - to: "2022-04-04T13:09:11.000000Z", - page: 622, - per_page: 5213, - shop_id: "84ad7475-84bd-4aaa-9f30-bd4020d89d8a", - shop_name: "mtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq", - customer_id: "b20ca7b2-a03e-49c3-90a5-b390f50ba945", - customer_name: "ph5LyiHrKKZ", - transaction_id: "3fedc792-2f3a-46c8-8090-5459edb3ce95", - private_money_id: "46ffd7a7-b5e5-4add-acc1-a3090d5b7b9d", - is_modified: true, - transaction_types: ["cashback", "topup", "transfer", "payment"], - transfer_types: ["exchange", "coupon", "payment"], - description: "fNhFwjSSUkqouGV2ULftf3KLiOm0u6Od" + to: "2020-01-03T09:40:18.000000Z", + page: 768, + per_page: 6042, + shop_id: "805fd378-fef9-46ec-8dc6-ec9e2ebbf257", + shop_name: "lu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST", + customer_id: "9dbf81a2-2931-4057-9874-6287015fce22", + customer_name: "f", + transaction_id: "69e9dc60-7765-414b-a553-cf19c4606d84", + private_money_id: "6c98e919-89fa-4072-979e-1a8f6130520a", + is_modified: false, + transaction_types: ["payment", "exchange", "expire", "cashback", "topup"], + transfer_types: ["campaign", "cashback", "expire", "exchange", "transfer"], + description: "YOCwl5C8rEq5yNf" })); status = response.code; } catch (e) { @@ -4700,20 +4873,20 @@ test('Check ListTransfers | 14', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfers({ - from: "2021-06-05T17:48:04.000000Z", - to: "2024-02-27T08:22:21.000000Z", - page: 532, - per_page: 218, - shop_id: "51a32931-1a88-4419-978c-b74df4025183", - shop_name: "a6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYH", - customer_id: "97e5ea88-c68d-491f-bca8-f848de508515", - customer_name: "Or63hjnglJCcSZdRjCOwy", - transaction_id: "1e9be219-1b86-4e61-be70-00be2900f515", - private_money_id: "8a7d7a30-269c-476c-8ef3-9ae2daaeea9e", - is_modified: false, - transaction_types: ["topup", "expire", "transfer", "exchange", "cashback"], - transfer_types: ["transfer", "exchange", "coupon"], - description: "U1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqI" + from: "2022-07-21T03:52:48.000000Z", + to: "2020-11-15T12:30:39.000000Z", + page: 7270, + per_page: 1417, + shop_id: "94a51035-33ad-4aa6-b258-03c055df6fb0", + shop_name: "rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ", + customer_id: "bb41ea14-5f37-4c80-a5b1-2d1545b7e61a", + customer_name: "CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jR", + transaction_id: "cf80c144-88bc-4199-966e-0e44ebff96e6", + private_money_id: "1f3e21d5-f316-4cf4-807d-2fb459bdb925", + is_modified: true, + transaction_types: ["payment", "transfer"], + transfer_types: ["coupon", "payment", "campaign", "topup", "transfer", "expire", "cashback", "exchange"], + description: "cCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZ" })); status = response.code; } catch (e) { @@ -4743,7 +4916,7 @@ test('Check ListTransfersV2 | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - to: "2023-04-24T11:52:04.000000Z" + to: "2023-04-12T01:58:18.000000Z" })); status = response.code; } catch (e) { @@ -4759,8 +4932,8 @@ test('Check ListTransfersV2 | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - from: "2021-02-28T21:44:07.000000Z", - to: "2020-06-20T16:05:34.000000Z" + from: "2022-07-18T23:07:52.000000Z", + to: "2023-10-07T07:36:48.000000Z" })); status = response.code; } catch (e) { @@ -4776,9 +4949,9 @@ test('Check ListTransfersV2 | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - description: "L8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcL", - from: "2022-05-07T07:33:39.000000Z", - to: "2021-02-26T05:13:40.000000Z" + description: "eA6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLiOm0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0", + from: "2023-05-09T16:33:20.000000Z", + to: "2021-04-01T02:13:52.000000Z" })); status = response.code; } catch (e) { @@ -4794,10 +4967,10 @@ test('Check ListTransfersV2 | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - transfer_types: ["expire", "cashback", "transfer", "campaign", "coupon"], - description: "IrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRf", - from: "2023-07-21T11:26:44.000000Z", - to: "2022-11-23T03:12:25.000000Z" + transfer_types: ["payment", "exchange", "campaign", "cashback", "coupon", "expire", "transfer", "topup"], + description: "rbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUT", + from: "2020-02-28T11:13:14.000000Z", + to: "2022-03-13T13:27:53.000000Z" })); status = response.code; } catch (e) { @@ -4813,11 +4986,11 @@ test('Check ListTransfersV2 | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - per_page: 717, - transfer_types: ["transfer"], - description: "Ds9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98", - from: "2020-02-11T04:00:02.000000Z", - to: "2022-05-07T17:02:15.000000Z" + per_page: 28, + transfer_types: ["payment", "topup", "exchange", "expire", "coupon"], + description: "Or63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcL", + from: "2022-05-07T07:33:39.000000Z", + to: "2021-02-26T05:13:40.000000Z" })); status = response.code; } catch (e) { @@ -4833,12 +5006,12 @@ test('Check ListTransfersV2 | 6', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - prev_page_cursor_id: "1e74191c-0e2d-4e1e-895f-03afddabfe94", - per_page: 181, - transfer_types: ["exchange", "campaign", "cashback", "expire", "payment", "transfer", "topup", "coupon"], - description: "5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVY", - from: "2023-09-25T07:38:16.000000Z", - to: "2021-08-28T00:48:34.000000Z" + prev_page_cursor_id: "3a590a3f-d6f5-44a9-bf12-a664b78e75d0", + per_page: 877, + transfer_types: ["coupon", "transfer", "cashback", "topup", "payment", "expire"], + description: "LFWJxcGB9NLriuIsMTYyCUoOE", + from: "2020-05-07T20:15:29.000000Z", + to: "2022-01-31T01:04:59.000000Z" })); status = response.code; } catch (e) { @@ -4854,13 +5027,13 @@ test('Check ListTransfersV2 | 7', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - next_page_cursor_id: "786c5ce8-1834-4f52-8dac-dc000b29450c", - prev_page_cursor_id: "88ec6fd7-f6a4-46b4-936a-840a0cb35793", - per_page: 654, - transfer_types: ["coupon"], - description: "u2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCb", - from: "2021-10-04T22:51:31.000000Z", - to: "2021-07-25T03:11:47.000000Z" + next_page_cursor_id: "d211eb39-53d9-4d1a-9a7e-fa618e2e6419", + prev_page_cursor_id: "146e3655-c9ce-4dd0-8400-3154d7f0124d", + per_page: 738, + transfer_types: ["transfer", "exchange"], + description: "LGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7", + from: "2024-03-10T23:40:38.000000Z", + to: "2021-10-29T09:29:09.000000Z" })); status = response.code; } catch (e) { @@ -4876,14 +5049,14 @@ test('Check ListTransfersV2 | 8', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - transaction_types: ["cashback", "topup", "exchange"], - next_page_cursor_id: "49e56398-02f9-498f-8bd5-da82a90641a4", - prev_page_cursor_id: "a07d9779-cbfd-47c2-b08c-0abeb39dde94", - per_page: 136, - transfer_types: ["payment", "transfer", "cashback", "campaign"], - description: "FHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhq", - from: "2023-01-09T23:52:41.000000Z", - to: "2022-09-23T13:00:01.000000Z" + transaction_types: ["payment", "transfer", "exchange", "cashback", "topup", "expire"], + next_page_cursor_id: "ab17dbd5-e20a-4761-aba4-ffad460a923d", + prev_page_cursor_id: "f64a8a33-bd5f-4493-ba6d-928e749b768f", + per_page: 284, + transfer_types: ["exchange", "expire", "campaign", "payment"], + description: "ktMbdZ0Ff5nebRZC0vDYNEW", + from: "2023-11-27T09:54:21.000000Z", + to: "2021-11-04T11:52:44.000000Z" })); status = response.code; } catch (e) { @@ -4899,15 +5072,15 @@ test('Check ListTransfersV2 | 9', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - is_modified: false, - transaction_types: ["payment", "expire", "cashback", "transfer"], - next_page_cursor_id: "0f0a9aca-721a-493c-a8d7-34c6b7765b7c", - prev_page_cursor_id: "3b9d9ff7-83a3-413b-8106-37d301940baa", - per_page: 604, - transfer_types: ["expire", "campaign", "cashback", "payment", "coupon", "transfer", "exchange", "topup"], - description: "Ezja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQ", - from: "2022-05-16T21:50:12.000000Z", - to: "2021-03-30T17:45:55.000000Z" + is_modified: true, + transaction_types: ["transfer", "topup", "payment", "cashback", "expire", "exchange"], + next_page_cursor_id: "357f2e58-8a53-4c56-8448-44a53fe6783f", + prev_page_cursor_id: "1980b352-cbd9-47b4-991a-235a9d366222", + per_page: 913, + transfer_types: ["expire", "campaign", "payment", "transfer"], + description: "klf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTx", + from: "2020-08-21T10:38:18.000000Z", + to: "2024-05-22T06:36:03.000000Z" })); status = response.code; } catch (e) { @@ -4923,16 +5096,16 @@ test('Check ListTransfersV2 | 10', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - private_money_id: "8325ccc8-e2f9-4169-862b-4f22fde3c66f", + private_money_id: "1f1eb64f-eb73-4ce1-bd3d-b37cd502a98d", is_modified: false, - transaction_types: ["expire", "topup", "payment", "cashback", "transfer", "exchange"], - next_page_cursor_id: "cc574e88-c45d-4bc8-a0f1-e2fb9e931459", - prev_page_cursor_id: "48e8f195-8779-4825-9f4b-dc1509dc54b8", - per_page: 200, - transfer_types: ["transfer", "exchange"], - description: "GU45uzPdd", - from: "2024-01-01T18:14:23.000000Z", - to: "2023-10-07T02:12:34.000000Z" + transaction_types: ["exchange", "expire", "cashback", "payment"], + next_page_cursor_id: "ba286b8d-ed96-40b0-a543-52ccbc8bdf9f", + prev_page_cursor_id: "8352cae3-5c66-4d97-bf1c-cbefca275121", + per_page: 608, + transfer_types: ["campaign", "expire", "payment", "topup", "exchange"], + description: "EJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdn", + from: "2021-02-11T09:30:51.000000Z", + to: "2020-04-27T13:54:01.000000Z" })); status = response.code; } catch (e) { @@ -4948,17 +5121,17 @@ test('Check ListTransfersV2 | 11', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - transaction_id: "5301ba98-1230-42e4-830f-34cafde925a2", - private_money_id: "10a14565-72ce-4e99-8e80-3094f99e8676", - is_modified: false, - transaction_types: ["exchange"], - next_page_cursor_id: "786b5f8f-7973-4931-a896-fb3fcb85de98", - prev_page_cursor_id: "16cc8c94-13f6-42df-9219-346dde3ce47e", - per_page: 869, - transfer_types: ["payment", "cashback", "exchange", "coupon", "transfer"], - description: "brAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0", - from: "2022-07-17T06:33:19.000000Z", - to: "2024-01-06T19:53:08.000000Z" + transaction_id: "6093d98f-6ccb-48d5-82a4-97792239cbfd", + private_money_id: "87b097c2-9870-4a8c-be94-d4875faa30e1", + is_modified: true, + transaction_types: ["cashback", "exchange", "transfer", "expire"], + next_page_cursor_id: "5014853a-b446-4ac8-ae4c-fe7beae7e7f9", + prev_page_cursor_id: "4abb2ad0-6268-403d-af43-d7f1b47c852a", + per_page: 192, + transfer_types: ["expire", "coupon", "payment", "campaign"], + description: "DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uv", + from: "2021-06-10T05:36:33.000000Z", + to: "2023-05-03T19:18:45.000000Z" })); status = response.code; } catch (e) { @@ -4974,18 +5147,18 @@ test('Check ListTransfersV2 | 12', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - customer_name: "G0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvT", - transaction_id: "67f248ff-d3ed-4517-a61d-d1eb3ef959d3", - private_money_id: "39bd4c70-3764-4ee3-bf9d-7a9147de42cc", - is_modified: true, - transaction_types: ["payment", "cashback", "topup", "expire"], - next_page_cursor_id: "d66771ca-a929-4b51-891c-68523389333e", - prev_page_cursor_id: "ded5f4e9-a29c-4ffc-b55f-47f6f497bed7", - per_page: 222, - transfer_types: ["transfer", "payment", "coupon", "cashback", "exchange", "campaign", "topup"], - description: "qbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EE", - from: "2022-12-30T12:00:08.000000Z", - to: "2022-09-01T12:57:42.000000Z" + customer_name: "bw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0bqs", + transaction_id: "ce1a5931-a668-4996-bf98-8c94de3713f6", + private_money_id: "d1a722df-dc92-4019-ad7e-af64d85e0989", + is_modified: false, + transaction_types: ["topup", "transfer", "payment", "cashback", "exchange"], + next_page_cursor_id: "98a158e5-4b76-489f-938f-0062afe90381", + prev_page_cursor_id: "baa72672-74c1-4ed1-be8c-562c753c0347", + per_page: 241, + transfer_types: ["cashback", "exchange", "expire", "campaign"], + description: "E2cpD4cThkIOO2LW0e3G1sTmjjH", + from: "2022-06-11T04:08:32.000000Z", + to: "2022-03-27T10:41:18.000000Z" })); status = response.code; } catch (e) { @@ -5001,19 +5174,19 @@ test('Check ListTransfersV2 | 13', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - customer_id: "9e4cd36d-0aae-429b-9dd1-a677220fb134", - customer_name: "mJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5o", - transaction_id: "d5d5907a-16c8-4c44-aea2-a38ae2e9b1b0", - private_money_id: "0ce2db90-10e9-4892-bc8f-099326e0609a", - is_modified: true, - transaction_types: ["expire", "transfer", "cashback", "topup", "exchange"], - next_page_cursor_id: "9859849b-0e1b-438a-b9d2-cfaa3919a430", - prev_page_cursor_id: "1e4c8d6e-961c-411b-81aa-20a7606e9f51", - per_page: 236, - transfer_types: ["topup", "exchange", "payment"], - description: "z7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvf", - from: "2022-03-09T22:13:49.000000Z", - to: "2024-01-10T05:02:11.000000Z" + customer_id: "846fa98f-32b5-48b7-87da-80e278439d0b", + customer_name: "AikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL", + transaction_id: "79249bad-dffb-44b9-8b3c-04891141ee9e", + private_money_id: "0d3b28f8-fcbc-45b0-aa91-8ad989bc2e6b", + is_modified: false, + transaction_types: ["exchange", "topup"], + next_page_cursor_id: "99603510-8d7b-4ce3-9fcf-2bbe1c61fdd4", + prev_page_cursor_id: "ad293d7b-72bd-4500-a75f-22b2d4302c88", + per_page: 436, + transfer_types: ["expire"], + description: "rX6ozTzm0HG0TosxKz4jitwH", + from: "2023-11-19T03:37:24.000000Z", + to: "2023-08-22T13:24:50.000000Z" })); status = response.code; } catch (e) { @@ -5029,20 +5202,20 @@ test('Check ListTransfersV2 | 14', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - shop_name: "Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8", - customer_id: "f84c0fae-8671-4045-92fb-a25e36318b3e", - customer_name: "1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9", - transaction_id: "b8368dc9-3490-4e44-8490-6d93394d4095", - private_money_id: "2934a934-e0c6-4d1a-bccc-945b27afb95d", + shop_name: "ujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWg", + customer_id: "e89056f9-5e4d-42b4-b3a8-a2892af986c1", + customer_name: "JZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRk", + transaction_id: "0877d370-91db-41e8-ba6e-2474073e6d71", + private_money_id: "7f093e62-5cd4-40f2-b276-88826421c0c8", is_modified: false, - transaction_types: ["expire", "cashback", "transfer", "payment", "exchange"], - next_page_cursor_id: "ce4f63a2-a763-4e54-8425-62c3458bbd61", - prev_page_cursor_id: "577317e6-a2f5-4b06-a30d-6e0764523ce0", - per_page: 591, - transfer_types: ["topup", "campaign", "expire"], - description: "50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MW", - from: "2021-05-31T10:22:22.000000Z", - to: "2022-11-13T18:05:41.000000Z" + transaction_types: ["payment"], + next_page_cursor_id: "1618b85f-2346-4922-81ab-d0db1963d52a", + prev_page_cursor_id: "177298a3-3b1d-4d0f-9d30-4fd9fea41ab7", + per_page: 299, + transfer_types: ["coupon"], + description: "iTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRUR", + from: "2023-07-12T01:12:07.000000Z", + to: "2023-05-24T04:58:43.000000Z" })); status = response.code; } catch (e) { @@ -5058,21 +5231,21 @@ test('Check ListTransfersV2 | 15', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - shop_id: "dd34396c-10f8-414a-8d71-9e655904d196", - shop_name: "EoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4", - customer_id: "930a0e29-6b6a-428f-b718-6f7099d5e3fb", - customer_name: "0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPM", - transaction_id: "30175c7a-6f58-456e-8164-bbc4f6b1b872", - private_money_id: "7af290dc-8205-40d9-b95b-59828e008db6", + shop_id: "00f485d5-c2fd-4bfd-8ecd-d5e6b61b3030", + shop_name: "5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvS", + customer_id: "0db3a518-e8f7-4b3f-9690-7c12d5a83205", + customer_name: "QUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2w", + transaction_id: "9fd5c376-468c-433d-9a63-1e1e64b2387c", + private_money_id: "5166647d-ef5a-436d-a5ca-131c18f7768c", is_modified: false, - transaction_types: ["expire", "payment", "topup"], - next_page_cursor_id: "478f9181-11d1-4fb9-b8bd-80fb6c039586", - prev_page_cursor_id: "ae842453-150a-42ce-9830-a07a3220169b", - per_page: 153, - transfer_types: ["cashback", "coupon", "exchange", "expire", "transfer", "topup", "campaign"], - description: "ix", - from: "2022-05-30T00:08:09.000000Z", - to: "2023-12-14T02:17:58.000000Z" + transaction_types: ["topup", "expire", "cashback", "payment"], + next_page_cursor_id: "ac848a80-6f5a-4377-b51c-2f7d54772124", + prev_page_cursor_id: "5850f865-a85c-4de5-8a34-a477e25b1303", + per_page: 285, + transfer_types: ["payment", "transfer", "campaign", "coupon", "cashback", "expire", "exchange"], + description: "9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dB", + from: "2022-04-03T13:05:47.000000Z", + to: "2024-04-05T13:30:11.000000Z" })); status = response.code; } catch (e) { @@ -5088,7 +5261,7 @@ test('Check ListOrganizations | 0', async () => { let status = 400; try { const response: Response = await client.send(new ListOrganizations({ - private_money_id: "fd11d67f-90f1-4aea-bfe7-8524bf4859f6" + private_money_id: "e1599cce-b9e4-4591-9897-41a2f8e5d1df" })); status = response.code; } catch (e) { @@ -5104,8 +5277,8 @@ test('Check ListOrganizations | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListOrganizations({ - private_money_id: "fd11d67f-90f1-4aea-bfe7-8524bf4859f6", - code: "Ncs" + private_money_id: "e1599cce-b9e4-4591-9897-41a2f8e5d1df", + code: "e1s" })); status = response.code; } catch (e) { @@ -5121,9 +5294,9 @@ test('Check ListOrganizations | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListOrganizations({ - private_money_id: "fd11d67f-90f1-4aea-bfe7-8524bf4859f6", - name: "QLQxA", - code: "tJmVTcXWtK" + private_money_id: "e1599cce-b9e4-4591-9897-41a2f8e5d1df", + name: "jLSVztCspd", + code: "pKcD" })); status = response.code; } catch (e) { @@ -5139,10 +5312,10 @@ test('Check ListOrganizations | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListOrganizations({ - private_money_id: "fd11d67f-90f1-4aea-bfe7-8524bf4859f6", - per_page: 5974, - name: "kN", - code: "d35" + private_money_id: "e1599cce-b9e4-4591-9897-41a2f8e5d1df", + per_page: 2262, + name: "5LATApzQ2", + code: "dQG1" })); status = response.code; } catch (e) { @@ -5158,11 +5331,11 @@ test('Check ListOrganizations | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListOrganizations({ - private_money_id: "fd11d67f-90f1-4aea-bfe7-8524bf4859f6", - page: 4321, - per_page: 9262, - name: "uBKlwozbM8", - code: "BIp6WWFto" + private_money_id: "e1599cce-b9e4-4591-9897-41a2f8e5d1df", + page: 3197, + per_page: 8929, + name: "XtK0", + code: "fX1fzm" })); status = response.code; } catch (e) { @@ -5178,11 +5351,11 @@ test('Check CreateOrganization | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateOrganization({ - code: "M3mKKWyblmmAHRS", - name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], - issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", - member_admin_user_email: "MAKSZHQ2Tj@ahc0.com" + code: "KZw4jAX5", + name: "dVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh", + private_money_ids: ["8c43c7b7-4dc0-4723-b8de-875ccfe704d1", "8430285c-12e6-4c8c-80e8-84ce6bb5afbd", "7d06f885-0598-4162-80da-d6dfacb1e5bc", "747b4e04-b69d-4d0b-b32f-dad91de9d2e6", "589e2706-a947-47fb-a62e-039d483c9226", "1fe2b016-0918-407d-bce8-9f3cd344f9ec", "769cc183-033d-4b3a-a213-ce71c2277561", "ffede34f-c0c5-4b89-986c-18f6d6dc6b3b"], + issuer_admin_user_email: "ScjtjkG1WE@jltq.com", + member_admin_user_email: "aYkhp7caXj@UtBc.com" })); status = response.code; } catch (e) { @@ -5198,12 +5371,12 @@ test('Check CreateOrganization | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateOrganization({ - code: "M3mKKWyblmmAHRS", - name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], - issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", - member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", - contact_name: "ASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5" + code: "KZw4jAX5", + name: "dVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh", + private_money_ids: ["8c43c7b7-4dc0-4723-b8de-875ccfe704d1", "8430285c-12e6-4c8c-80e8-84ce6bb5afbd", "7d06f885-0598-4162-80da-d6dfacb1e5bc", "747b4e04-b69d-4d0b-b32f-dad91de9d2e6", "589e2706-a947-47fb-a62e-039d483c9226", "1fe2b016-0918-407d-bce8-9f3cd344f9ec", "769cc183-033d-4b3a-a213-ce71c2277561", "ffede34f-c0c5-4b89-986c-18f6d6dc6b3b"], + issuer_admin_user_email: "ScjtjkG1WE@jltq.com", + member_admin_user_email: "aYkhp7caXj@UtBc.com", + contact_name: "e9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Sw" })); status = response.code; } catch (e) { @@ -5219,13 +5392,13 @@ test('Check CreateOrganization | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateOrganization({ - code: "M3mKKWyblmmAHRS", - name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], - issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", - member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", - bank_account_holder_name: "7", - contact_name: "WZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4" + code: "KZw4jAX5", + name: "dVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh", + private_money_ids: ["8c43c7b7-4dc0-4723-b8de-875ccfe704d1", "8430285c-12e6-4c8c-80e8-84ce6bb5afbd", "7d06f885-0598-4162-80da-d6dfacb1e5bc", "747b4e04-b69d-4d0b-b32f-dad91de9d2e6", "589e2706-a947-47fb-a62e-039d483c9226", "1fe2b016-0918-407d-bce8-9f3cd344f9ec", "769cc183-033d-4b3a-a213-ce71c2277561", "ffede34f-c0c5-4b89-986c-18f6d6dc6b3b"], + issuer_admin_user_email: "ScjtjkG1WE@jltq.com", + member_admin_user_email: "aYkhp7caXj@UtBc.com", + bank_account_holder_name: " ", + contact_name: "g2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7j" })); status = response.code; } catch (e) { @@ -5241,14 +5414,14 @@ test('Check CreateOrganization | 3', async () => { let status = 400; try { const response: Response = await client.send(new CreateOrganization({ - code: "M3mKKWyblmmAHRS", - name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], - issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", - member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", + code: "KZw4jAX5", + name: "dVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh", + private_money_ids: ["8c43c7b7-4dc0-4723-b8de-875ccfe704d1", "8430285c-12e6-4c8c-80e8-84ce6bb5afbd", "7d06f885-0598-4162-80da-d6dfacb1e5bc", "747b4e04-b69d-4d0b-b32f-dad91de9d2e6", "589e2706-a947-47fb-a62e-039d483c9226", "1fe2b016-0918-407d-bce8-9f3cd344f9ec", "769cc183-033d-4b3a-a213-ce71c2277561", "ffede34f-c0c5-4b89-986c-18f6d6dc6b3b"], + issuer_admin_user_email: "ScjtjkG1WE@jltq.com", + member_admin_user_email: "aYkhp7caXj@UtBc.com", bank_account: "", - bank_account_holder_name: "X", - contact_name: "453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh" + bank_account_holder_name: "K", + contact_name: "8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVr" })); status = response.code; } catch (e) { @@ -5264,15 +5437,15 @@ test('Check CreateOrganization | 4', async () => { let status = 400; try { const response: Response = await client.send(new CreateOrganization({ - code: "M3mKKWyblmmAHRS", - name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], - issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", - member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", - bank_account_type: "other", - bank_account: "5", - bank_account_holder_name: "/", - contact_name: "Adcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsX" + code: "KZw4jAX5", + name: "dVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh", + private_money_ids: ["8c43c7b7-4dc0-4723-b8de-875ccfe704d1", "8430285c-12e6-4c8c-80e8-84ce6bb5afbd", "7d06f885-0598-4162-80da-d6dfacb1e5bc", "747b4e04-b69d-4d0b-b32f-dad91de9d2e6", "589e2706-a947-47fb-a62e-039d483c9226", "1fe2b016-0918-407d-bce8-9f3cd344f9ec", "769cc183-033d-4b3a-a213-ce71c2277561", "ffede34f-c0c5-4b89-986c-18f6d6dc6b3b"], + issuer_admin_user_email: "ScjtjkG1WE@jltq.com", + member_admin_user_email: "aYkhp7caXj@UtBc.com", + bank_account_type: "current", + bank_account: "964", + bank_account_holder_name: "(", + contact_name: "LXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHh" })); status = response.code; } catch (e) { @@ -5288,16 +5461,16 @@ test('Check CreateOrganization | 5', async () => { let status = 400; try { const response: Response = await client.send(new CreateOrganization({ - code: "M3mKKWyblmmAHRS", - name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], - issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", - member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", - bank_branch_code: "280", - bank_account_type: "saving", - bank_account: "4217", - bank_account_holder_name: "ル", - contact_name: "pIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8" + code: "KZw4jAX5", + name: "dVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh", + private_money_ids: ["8c43c7b7-4dc0-4723-b8de-875ccfe704d1", "8430285c-12e6-4c8c-80e8-84ce6bb5afbd", "7d06f885-0598-4162-80da-d6dfacb1e5bc", "747b4e04-b69d-4d0b-b32f-dad91de9d2e6", "589e2706-a947-47fb-a62e-039d483c9226", "1fe2b016-0918-407d-bce8-9f3cd344f9ec", "769cc183-033d-4b3a-a213-ce71c2277561", "ffede34f-c0c5-4b89-986c-18f6d6dc6b3b"], + issuer_admin_user_email: "ScjtjkG1WE@jltq.com", + member_admin_user_email: "aYkhp7caXj@UtBc.com", + bank_branch_code: "034", + bank_account_type: "other", + bank_account: "5010366", + bank_account_holder_name: "」", + contact_name: "D2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03B" })); status = response.code; } catch (e) { @@ -5313,17 +5486,17 @@ test('Check CreateOrganization | 6', async () => { let status = 400; try { const response: Response = await client.send(new CreateOrganization({ - code: "M3mKKWyblmmAHRS", - name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], - issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", - member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", - bank_branch_name: "diYCurcmVOPZzwM", - bank_branch_code: "871", + code: "KZw4jAX5", + name: "dVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh", + private_money_ids: ["8c43c7b7-4dc0-4723-b8de-875ccfe704d1", "8430285c-12e6-4c8c-80e8-84ce6bb5afbd", "7d06f885-0598-4162-80da-d6dfacb1e5bc", "747b4e04-b69d-4d0b-b32f-dad91de9d2e6", "589e2706-a947-47fb-a62e-039d483c9226", "1fe2b016-0918-407d-bce8-9f3cd344f9ec", "769cc183-033d-4b3a-a213-ce71c2277561", "ffede34f-c0c5-4b89-986c-18f6d6dc6b3b"], + issuer_admin_user_email: "ScjtjkG1WE@jltq.com", + member_admin_user_email: "aYkhp7caXj@UtBc.com", + bank_branch_name: "qB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPz", + bank_branch_code: "", bank_account_type: "saving", - bank_account: "", - bank_account_holder_name: "キ", - contact_name: "pW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8" + bank_account: "935123", + bank_account_holder_name: ",", + contact_name: "OPZzwMWHgQ0VESfsp" })); status = response.code; } catch (e) { @@ -5339,18 +5512,18 @@ test('Check CreateOrganization | 7', async () => { let status = 400; try { const response: Response = await client.send(new CreateOrganization({ - code: "M3mKKWyblmmAHRS", - name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], - issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", - member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", - bank_code: "", - bank_branch_name: "q15XpRuu89q3NykiRPYO2oQiAY", - bank_branch_code: "382", + code: "KZw4jAX5", + name: "dVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh", + private_money_ids: ["8c43c7b7-4dc0-4723-b8de-875ccfe704d1", "8430285c-12e6-4c8c-80e8-84ce6bb5afbd", "7d06f885-0598-4162-80da-d6dfacb1e5bc", "747b4e04-b69d-4d0b-b32f-dad91de9d2e6", "589e2706-a947-47fb-a62e-039d483c9226", "1fe2b016-0918-407d-bce8-9f3cd344f9ec", "769cc183-033d-4b3a-a213-ce71c2277561", "ffede34f-c0c5-4b89-986c-18f6d6dc6b3b"], + issuer_admin_user_email: "ScjtjkG1WE@jltq.com", + member_admin_user_email: "aYkhp7caXj@UtBc.com", + bank_code: "9275", + bank_branch_name: "9NBdczTSynCfTiWLEN2pEbq7ZeB8", + bank_branch_code: "860", bank_account_type: "other", - bank_account: "589", - bank_account_holder_name: "「", - contact_name: "SjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV" + bank_account: "94", + bank_account_holder_name: ")", + contact_name: "eTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx" })); status = response.code; } catch (e) { @@ -5366,19 +5539,19 @@ test('Check CreateOrganization | 8', async () => { let status = 400; try { const response: Response = await client.send(new CreateOrganization({ - code: "M3mKKWyblmmAHRS", - name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], - issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", - member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", - bank_name: "uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSp", - bank_code: "0682", - bank_branch_name: "QLy6PO73cHGKqjz0v27dHE8reh", + code: "KZw4jAX5", + name: "dVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh", + private_money_ids: ["8c43c7b7-4dc0-4723-b8de-875ccfe704d1", "8430285c-12e6-4c8c-80e8-84ce6bb5afbd", "7d06f885-0598-4162-80da-d6dfacb1e5bc", "747b4e04-b69d-4d0b-b32f-dad91de9d2e6", "589e2706-a947-47fb-a62e-039d483c9226", "1fe2b016-0918-407d-bce8-9f3cd344f9ec", "769cc183-033d-4b3a-a213-ce71c2277561", "ffede34f-c0c5-4b89-986c-18f6d6dc6b3b"], + issuer_admin_user_email: "ScjtjkG1WE@jltq.com", + member_admin_user_email: "aYkhp7caXj@UtBc.com", + bank_name: "jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtM", + bank_code: "", + bank_branch_name: "If7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoS", bank_branch_code: "", - bank_account_type: "current", - bank_account: "09", - bank_account_holder_name: "テ", - contact_name: "2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJ" + bank_account_type: "other", + bank_account: "099830", + bank_account_holder_name: "ヲ", + contact_name: "3jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQ" })); status = response.code; } catch (e) { @@ -5408,7 +5581,7 @@ test('Check ListShops | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - per_page: 7130 + per_page: 2682 })); status = response.code; } catch (e) { @@ -5424,8 +5597,8 @@ test('Check ListShops | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - page: 7961, - per_page: 6131 + page: 5559, + per_page: 7120 })); status = response.code; } catch (e) { @@ -5441,9 +5614,9 @@ test('Check ListShops | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - with_disabled: true, - page: 3741, - per_page: 4684 + with_disabled: false, + page: 6308, + per_page: 6057 })); status = response.code; } catch (e) { @@ -5459,10 +5632,10 @@ test('Check ListShops | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - external_id: "48UyLazcda", - with_disabled: true, - page: 4543, - per_page: 8830 + external_id: "HGKqjz0v27dHE8reh9b3v7zq", + with_disabled: false, + page: 7427, + per_page: 9600 })); status = response.code; } catch (e) { @@ -5478,11 +5651,11 @@ test('Check ListShops | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - email: "g9M9b56VUQ@zIG7.com", - external_id: "r7fsBnFuG56tOVY8vi9Z9lrbTG", - with_disabled: false, - page: 2467, - per_page: 1897 + email: "YS2n0EGsPP@bvQv.com", + external_id: "YkAP", + with_disabled: true, + page: 8568, + per_page: 4328 })); status = response.code; } catch (e) { @@ -5498,12 +5671,12 @@ test('Check ListShops | 6', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - tel: "03-19-6229", - email: "dPS2DfLew9@jsvL.com", - external_id: "XjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp", + tel: "037407-356", + email: "xAKZBD2FhN@oFZK.com", + external_id: "bAgSoRCKxx", with_disabled: true, - page: 5759, - per_page: 8627 + page: 582, + per_page: 4656 })); status = response.code; } catch (e) { @@ -5519,13 +5692,13 @@ test('Check ListShops | 7', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - address: "diJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAS", - tel: "028204669152", - email: "8jW2j8noWb@hryH.com", - external_id: "KQAP2bBeZkmIh2UeN7", - with_disabled: true, - page: 4607, - per_page: 4277 + address: "WQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2D", + tel: "06-85-752", + email: "9jsvLcXjFR@qAsd.com", + external_id: "yU0EjzFGdoCEVoN09yrlyTlHcxkp2hd", + with_disabled: false, + page: 3659, + per_page: 5040 })); status = response.code; } catch (e) { @@ -5541,14 +5714,14 @@ test('Check ListShops | 8', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - postal_code: "7747550", - address: "MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0S", - tel: "02-2481879", - email: "xGHxi6f0cu@W1Zh.com", - external_id: "tCHCm7yUfJm7F", + postal_code: "7383657", + address: "eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCx", + tel: "0235-16-072", + email: "y4QR5kzfuc@n7LZ.com", + external_id: "Zwhy5RI", with_disabled: true, - page: 9576, - per_page: 403 + page: 6789, + per_page: 816 })); status = response.code; } catch (e) { @@ -5564,15 +5737,15 @@ test('Check ListShops | 9', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - name: "8YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5N", - postal_code: "0389723", - address: "qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9", - tel: "0728819628", - email: "VF2gH7EAnl@FEgM.com", - external_id: "mBN0T80aLvrKoRyTXgPVT4AzeoZ", + name: "bFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlO", + postal_code: "392-1580", + address: "q8SXpxSHJRZi52y7Kvoekl", + tel: "059074662", + email: "tbb0SlK2Kb@T8BQ.com", + external_id: "xGHxi6f0cuW1ZhxLtCHCm7yU", with_disabled: false, - page: 9020, - per_page: 9500 + page: 4773, + per_page: 1181 })); status = response.code; } catch (e) { @@ -5588,16 +5761,16 @@ test('Check ListShops | 10', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - private_money_id: "ee4d51fd-5a4f-4a59-be75-cef5577dd231", - name: "RyqlWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcN", - postal_code: "282-5219", - address: "0lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuw", - tel: "013981-0924", - email: "HLBFs4pFpu@xUcI.com", - external_id: "rb43g0nK7tb3btHVGJJQejQb3sdWf", - with_disabled: false, - page: 344, - per_page: 9090 + private_money_id: "01c4d116-9d26-468e-a6ca-68a834ba376d", + name: "Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJL", + postal_code: "5589129", + address: "rAGwszVwlQAuTXTWtKg", + tel: "0956896-081", + email: "uVYsbDyysR@isRQ.com", + external_id: "ectqoj4yKOsEPCrpQPvSjUDltH57", + with_disabled: true, + page: 4251, + per_page: 1967 })); status = response.code; } catch (e) { @@ -5613,17 +5786,17 @@ test('Check ListShops | 11', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - organization_code: "RfZph94--4G--48o-gVrg65t-Su", - private_money_id: "f6bd24bc-8d9a-4506-8eed-2dac62e4700e", - name: "p3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", - postal_code: "6777462", - address: "eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKi", - tel: "060673665", - email: "qDH6cAdyVZ@n4o5.com", - external_id: "A5DSTN7FZ8Y8t8MIK7", + organization_code: "7L5ota-KxC-RCP9D3YLuKU-ph3U", + private_money_id: "a3de1149-26a4-4673-a106-3643db238c89", + name: "t80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSB", + postal_code: "745-9428", + address: "7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAnlFEgMmyi8jmBN0T80aLvrKoRyTXgPVT4AzeoZEOYuu1RyqlWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcNHBIUBy90lbf", + tel: "081295599570", + email: "gJllatyS0e@xoVZ.com", + external_id: "X2Y3MjJVkSKFu78PD8Nsi0ghqRiHIi", with_disabled: false, - page: 1530, - per_page: 78 + page: 7148, + per_page: 8184 })); status = response.code; } catch (e) { @@ -5639,7 +5812,7 @@ test('Check CreateShop | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateShop({ - shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh" + shop_name: "QAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE9" })); status = response.code; } catch (e) { @@ -5655,8 +5828,8 @@ test('Check CreateShop | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateShop({ - shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", - organization_code: "5f--P--" + shop_name: "QAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE9", + organization_code: "-7Q-6HodV9-O5----9Pj908B-" })); status = response.code; } catch (e) { @@ -5672,9 +5845,9 @@ test('Check CreateShop | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateShop({ - shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", - shop_external_id: "wwlNZ", - organization_code: "cv3786tt-8b-tR--" + shop_name: "QAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE9", + shop_external_id: "84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5", + organization_code: "uM--" })); status = response.code; } catch (e) { @@ -5690,10 +5863,10 @@ test('Check CreateShop | 3', async () => { let status = 400; try { const response: Response = await client.send(new CreateShop({ - shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", - shop_email: "x8cOR3TFR9@a8hM.com", - shop_external_id: "Mtt7RdIKeKSciqwdkkgvqZ", - organization_code: "Z0-50-gK-d-ZQh66q" + shop_name: "QAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE9", + shop_email: "Xa99m3Ela8@zcR9.com", + shop_external_id: "4JgHtiXrfi4", + organization_code: "--8-rp6--16--sh2p-uS5b6AT" })); status = response.code; } catch (e) { @@ -5709,11 +5882,11 @@ test('Check CreateShop | 4', async () => { let status = 400; try { const response: Response = await client.send(new CreateShop({ - shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", - shop_tel: "0268705290", - shop_email: "29oTCv16fP@XjhV.com", - shop_external_id: "pKgtr0aXml0I8", - organization_code: "KYD6-Qy-02Yp----iy-A0" + shop_name: "QAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE9", + shop_tel: "074-274306", + shop_email: "Ff6xG0YeVk@LQLh.com", + shop_external_id: "7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7R", + organization_code: "f--Bayj6cu-9R7" })); status = response.code; } catch (e) { @@ -5729,12 +5902,12 @@ test('Check CreateShop | 5', async () => { let status = 400; try { const response: Response = await client.send(new CreateShop({ - shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", - shop_address: "8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNj", - shop_tel: "0109-309718", - shop_email: "ADYEWxDRpy@5o7r.com", - shop_external_id: "N4eiDq", - organization_code: "Y2lJz-JS2K-H-k4Jp2m---" + shop_name: "QAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE9", + shop_address: "Y7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjh", + shop_tel: "0772390", + shop_email: "aXml0I8A7s@PYx7.com", + shop_external_id: "Ws9GrfkcGFxl", + organization_code: "jcx-tLZ-wKu---DPHLH40" })); status = response.code; } catch (e) { @@ -5750,13 +5923,13 @@ test('Check CreateShop | 6', async () => { let status = 400; try { const response: Response = await client.send(new CreateShop({ - shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", - shop_postal_code: "850-7917", - shop_address: "tSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9", - shop_tel: "0848-097", - shop_email: "3fT2ekfbMy@pSoZ.com", - shop_external_id: "rm", - organization_code: "k610S7NJ-u-h9D0B79-" + shop_name: "QAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE9", + shop_postal_code: "506-0034", + shop_address: "XLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7", + shop_tel: "02737-9106", + shop_email: "Iyu0AtoOYT@3d8x.com", + shop_external_id: "XDGe31wijgcuuWSuu", + organization_code: "Tm92-I6KEzXENgsq" })); status = response.code; } catch (e) { @@ -5772,7 +5945,7 @@ test('Check CreateShopV2 | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateShopV2({ - name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk" + name: "y5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUO" })); status = response.code; } catch (e) { @@ -5788,8 +5961,8 @@ test('Check CreateShopV2 | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateShopV2({ - name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - can_topup_private_money_ids: ["a97e4d57-f3f0-40db-bc7b-690dac7645e5", "dc252447-0dd6-4ba1-95f4-41ad2f0d6d37", "0fffc042-3507-4d1a-a3d4-ba3a7d64a460", "93d3b47f-349f-4e74-a7cb-933395ef0809", "aa7b09ad-7f5d-42ac-a116-923b71619f9c", "f28dcdd6-c177-49be-bb24-810bc594df8b", "136d8162-a009-4755-9367-dc5f76c294d8", "2d640bc9-d190-4e47-a6c4-003b3b7d2250"] + name: "y5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUO", + can_topup_private_money_ids: ["37acd32b-97e6-495a-8bfd-4d237d474223", "49ac488b-319d-48d5-9474-2768b53ad86a"] })); status = response.code; } catch (e) { @@ -5805,9 +5978,9 @@ test('Check CreateShopV2 | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateShopV2({ - name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - private_money_ids: ["f88b5ed0-6726-4f18-b748-530dd7a66cc5", "72710844-5a5f-422e-9d30-bd4b7a49c5be", "0ede1a74-0d28-4195-adad-fb44a3d4eb5e", "26378601-c10a-4efa-b8cc-f1d5ab6d912c", "d1e5462f-0962-49d5-9c24-b08dd6e27765", "1a6f71e7-8bb7-4ef7-a138-9c08250f055b"], - can_topup_private_money_ids: ["9aaf2bc0-b87d-4a13-9695-36fb7866477d", "dc24ec29-5e49-40d5-8837-2e5502fe084b", "7a298ce8-2189-4b9d-bc21-2bf88f125b4c"] + name: "y5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUO", + private_money_ids: ["4c84905d-0c04-4ec3-bd54-fba60c4faa8a", "00425f9a-510d-4464-907d-a377fedc012f", "47758a6b-10fc-442b-820b-0fb298a4c4af", "23977be7-6d37-4dfe-bbc4-8e5c7603a95d", "293576d9-4e68-48c6-b5d8-9e578dfe6aa3", "6452ed7d-771f-422b-b4db-411e0bd40561", "7a988178-2632-428d-bce7-e848a02c1b7f", "0e46fa5e-f837-40dd-8eed-04ef5edf0123", "7f908923-ae14-4173-9183-c2ff455ef5a3"], + can_topup_private_money_ids: ["8eb0751f-b859-45c1-bb96-fd7fdab65e67", "3108c453-f89b-426a-a405-69216b7d1e31", "ead7771a-cb4c-445d-9675-6eb484288e3e", "c2b0754e-4eb1-452b-be47-1b3ab2d61b97"] })); status = response.code; } catch (e) { @@ -5823,10 +5996,10 @@ test('Check CreateShopV2 | 3', async () => { let status = 400; try { const response: Response = await client.send(new CreateShopV2({ - name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - organization_code: "-HQ-Ro6-Ya7W2---", - private_money_ids: ["9ead6d97-097b-487e-9714-3c57c7d00812"], - can_topup_private_money_ids: ["3fad58e5-2ab6-4b26-b949-2f938743bbdf", "d9346ac8-abc3-400a-a790-66840a64a5ab"] + name: "y5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUO", + organization_code: "3zk9G2r-F-RiV-tm-7-0-V---s", + private_money_ids: ["056bedf3-4fc4-4e43-9701-7fa8b5c6ddee", "aab8490e-31a4-49ba-b399-0fbe87d9d189", "8402dc12-cab6-426e-9d5f-5b3da0649b24", "7110fb39-3e32-47cc-8aac-b3ef3b8a2994", "0fa6e242-296e-495d-9ef8-a456c0825957", "d24ca541-35b0-4c3b-82ed-3af83650d330", "ff2d7cd0-5433-4473-93e8-bb898342edb5", "21e8c732-8a3f-4564-aaab-66c430369978", "ecd612b2-0ec5-42a9-b871-0132b31b2f2a"], + can_topup_private_money_ids: ["dcaaf254-676c-45a9-b00c-cf36d9360749", "5c64449d-a893-4f56-ba1e-4759dab59415", "a3b757f7-f734-4f9a-a97a-8d8d8ea01fdd"] })); status = response.code; } catch (e) { @@ -5842,11 +6015,11 @@ test('Check CreateShopV2 | 4', async () => { let status = 400; try { const response: Response = await client.send(new CreateShopV2({ - name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - external_id: "e3KvTMWtvAOdqc6t46b4EgFIpDVk", - organization_code: "X6-rt-3sy-LB256zJw7T--EY-869Y", - private_money_ids: ["5f64556a-c481-4d81-9cf0-b2afb61ffd6f", "8bc071d9-6c4f-4ceb-864c-c959c3730c89", "644070e2-865d-484a-8d34-fe9c46da04b6", "30ebe918-39d9-4a47-ae12-a5a0762b58dd", "c0c20b4b-0944-47ca-a125-051757bd511a", "538cf11e-232a-4e56-91c1-599da68087ce", "091c0808-1ef4-4d66-a69b-08d5355c3a64", "cacfacc8-bfa8-45d6-a3f3-1e6fd1018075", "63e177fc-22f8-4a96-9833-b986e1080778"], - can_topup_private_money_ids: ["de6731b9-ba12-40c3-a6c8-981305bcf564", "4e91d35a-f95f-4747-bd6b-7f45ee2eed17", "f93abace-e809-483f-92c4-d88173ca89d3", "670635eb-36a4-4952-b966-a9d7e78f9099", "a4f89b60-f14b-4e41-b86a-c98c69dc5424", "c36d46fc-11d1-4c88-97ea-798e105e3243", "68ec2842-b0b8-4492-9a1f-3140097e73ee", "af9522c6-e63f-4c2f-907c-1563c21e4c82", "3b5350f1-5912-48ed-8586-bca6c60bce98"] + name: "y5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUO", + external_id: "7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmv", + organization_code: "10S7NJ-u-h9D0B7", + private_money_ids: ["f126ea13-6b4b-4519-a6dd-e99b0d6c678e", "479053d1-6e43-4947-8240-b4c65181e13b", "9d48b177-85ae-40dd-a371-4d95861c82bc", "6986356e-e03d-436a-8b5c-16f475df21d8", "6c83d82b-6013-43a3-bbd3-2b350b1a243f", "d9fddfe3-6b3f-47f4-a2b0-7173542c9029", "3d7f5d55-2444-47e1-ad7d-f88c9288b851", "b52faae9-1826-464a-8626-87e18f4ee4dd", "15714ef6-f366-49c9-bc07-5c6c914de2f3", "46c0679d-c151-4987-aaf3-7bb10306f755"], + can_topup_private_money_ids: ["3accf840-8c76-48c0-b980-52dcc94e3afb", "f82b8118-1638-4275-89a4-e66f2b15ef88", "fd8688a7-d11f-41fe-87f8-48dea16e1561", "376a57ab-07a3-4339-9f63-9ee65f06b9a6", "1056962c-088c-4471-a4c2-f7ba499a318a", "05967cda-dc5e-4d8d-827e-40535a82633b", "cd694353-3001-4279-a5f5-62bbf527cf15", "277988d0-c840-4173-8c67-d6638b4d4eb1"] })); status = response.code; } catch (e) { @@ -5862,12 +6035,12 @@ test('Check CreateShopV2 | 5', async () => { let status = 400; try { const response: Response = await client.send(new CreateShopV2({ - name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - email: "NfDor1zgwF@9x3x.com", - external_id: "ZsR", - organization_code: "3BAr-7-G9lrl", - private_money_ids: ["7eaa259f-ef33-4a4f-90ab-d8a1ef2b2df5", "29f04be4-3593-4ad8-b095-67048a140784", "82633b59-d0e8-4e2f-8ef7-7446a7bdf8d7", "c2628355-1841-45cb-8f3c-f0ee2f5845d7", "f670a0ec-b0e8-49ee-8cfc-1ce1a0a044a9", "5c482a30-01ec-4911-9e59-3703918782ce"], - can_topup_private_money_ids: ["3bbff11f-d80d-453c-a2c5-f87d98f4575e"] + name: "y5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUO", + email: "4jRH1daAJW@kWpe.com", + external_id: "Vt7BTtK3", + organization_code: "l4vNb8vp5", + private_money_ids: ["7b08b08d-7765-41e7-b7f7-14a143cfcb38", "3d029c08-055b-45e3-807d-6a13e164ea96", "20af6895-36fb-477d-a949-b0d5ae347108", "e53cb737-2e55-484b-a889-7b9d2ea119fc", "3b0bbf21-2bf8-4b4c-bd90-3e65f967b80d"], + can_topup_private_money_ids: ["2b8cd094-197f-40c6-8d48-17ef25d6c568"] })); status = response.code; } catch (e) { @@ -5883,13 +6056,13 @@ test('Check CreateShopV2 | 6', async () => { let status = 400; try { const response: Response = await client.send(new CreateShopV2({ - name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - tel: "0706-299-751", - email: "E3q4gTN93g@HJA1.com", - external_id: "FfneXYRV1FBu9VqwmK2QWEkaIk3", - organization_code: "-aH1U8-oB0RsBu", - private_money_ids: ["ae82df74-2702-4972-afa7-f8369df0cddf", "02b4209f-80b5-47d2-bacd-ae3c00e4c100", "46361234-8f53-43d9-9979-c8d7848404d0"], - can_topup_private_money_ids: ["14b223a4-54b4-4804-a2b5-e24506be7ef6"] + name: "y5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUO", + tel: "01-65-949", + email: "GNYlDyRk3a@GMps.com", + external_id: "1HN2Oi", + organization_code: "", + private_money_ids: ["51028903-eccd-4857-be9a-d33beaf794a1", "798bb391-451c-44f4-a187-a77648c2b041", "e4a307cf-f164-4306-b115-d86314484f8d", "e1c80ab6-1df4-4c34-82b6-19dd457366e2", "ca668e0a-2fb4-4210-a8c5-b4e7ca1bba9a"], + can_topup_private_money_ids: ["b5086449-fdba-40f0-8244-4dd62099b1e0", "c16ccaeb-f51d-4c8a-b287-5fbc3b126215", "0d4191dd-840a-4e73-85a6-c5408e2820f1", "323d699f-e0a2-425b-9168-e5eca680000b", "31bea4a0-7e0f-4441-954e-b80b6a7c429e", "a3146fc6-8f30-404b-bc5d-ac013155e9f2"] })); status = response.code; } catch (e) { @@ -5905,14 +6078,14 @@ test('Check CreateShopV2 | 7', async () => { let status = 400; try { const response: Response = await client.send(new CreateShopV2({ - name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - address: "FhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWy", - tel: "0258643-2381", - email: "fyfPvqbgkb@gVyE.com", - external_id: "xJx", - organization_code: "z2xJYke----Du6670x3", - private_money_ids: ["cafc81d1-aef2-4076-833e-7e999db852fb"], - can_topup_private_money_ids: [] + name: "y5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUO", + address: "6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGkENDSkRyfWKAxjQWjCB8nFcqmENfDor1zgwF9x3xZsR5bLJPhH", + tel: "0751-34872106", + email: "U4cD6smAeq@ngif.com", + external_id: "ikqDE3OudXpYhNw", + organization_code: "ZA7BK-", + private_money_ids: ["fc8dcc34-a8a4-47e7-94ce-213913029686", "e1c79326-2633-4023-a748-32cacb75dca2"], + can_topup_private_money_ids: ["0277e741-90aa-497c-bb31-e99a0b3b8099", "24c73dc6-122c-49e6-ab06-446eb3fd0b21", "724c3582-f52b-4865-981f-34feeefa4c86", "d9a49ed9-a5d2-4656-8da2-2bb165148f46", "9e4226a5-2bc2-4075-b9db-36d63eebc5f1", "139192f7-56ed-4bcb-85b2-acdbf238309e", "3cda7088-ae21-4f51-8557-cffbe6fd3b27"] })); status = response.code; } catch (e) { @@ -5928,15 +6101,15 @@ test('Check CreateShopV2 | 8', async () => { let status = 400; try { const response: Response = await client.send(new CreateShopV2({ - name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - postal_code: "5669559", - address: "rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClW", - tel: "09370795-600", - email: "6qorRSF9NZ@ATmh.com", - external_id: "oWmfQbT09Lp665rg0d7eG", - organization_code: "toK78LG2-", - private_money_ids: ["3722fedb-fcc9-4e09-9167-d75d534492f7", "53930cf8-7113-4e23-b86f-3deff057915d", "1043c491-d7fc-4cf3-8acc-fecbb246bab5"], - can_topup_private_money_ids: ["3bad8971-45b6-40a8-beb7-1e2a4bd1a5a9", "70984756-99ac-4c18-984d-a9057f5454f0"] + name: "y5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUO", + postal_code: "751-0723", + address: "f304AeRoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtc", + tel: "0816-5612-027", + email: "VyEBxJxS2d@p5fO.com", + external_id: "6g3h5b1QYmVCtk7", + organization_code: "G-0NVI-2733a-8m-QHXyC-955F-D71RS", + private_money_ids: ["d823dc21-98ba-4e0b-a129-296c120f770e", "1a70ac9e-99d6-4213-818b-fcdf52da9b0d", "c9fde57b-bae0-4578-88d5-7f78d4d6287e", "febb8891-8278-4bab-af4a-b9b39f2ca1ed", "58a44fb2-cc63-4c18-807e-95dc20bea24f", "c49fe4d9-fe46-4609-bca3-ef4e9b3236b3"], + can_topup_private_money_ids: ["22b1d44a-d559-4305-9df7-d05dada2db16", "ef1990a6-6feb-4f8f-8c02-41db4a404569", "5f2d360e-7975-4ac0-a196-425e43c2df04", "03b6510f-533f-4ec0-a80b-fd81ecc5160b", "e53cfcf3-fa4e-4349-9833-9f5495980cd1", "84eedf34-d855-4ee2-a224-cfdf611eab14"] })); status = response.code; } catch (e) { @@ -5952,7 +6125,7 @@ test('Check GetShop | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetShop({ - shop_id: "fc39bb18-ffda-4647-a8cd-4553857aa692" + shop_id: "f4ba4938-fb9c-4f40-a3d5-68bf3aae9a34" })); status = response.code; } catch (e) { @@ -5968,7 +6141,7 @@ test('Check UpdateShop | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateShop({ - shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6" + shop_id: "52155e4c-38ef-4795-879c-3c45a71af190" })); status = response.code; } catch (e) { @@ -5984,7 +6157,7 @@ test('Check UpdateShop | 1', async () => { let status = 400; try { const response: Response = await client.send(new UpdateShop({ - shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", + shop_id: "52155e4c-38ef-4795-879c-3c45a71af190", status: "disabled" })); status = response.code; @@ -6001,9 +6174,9 @@ test('Check UpdateShop | 2', async () => { let status = 400; try { const response: Response = await client.send(new UpdateShop({ - shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", - can_topup_private_money_ids: ["b641d85b-3ca4-4710-88d9-85d21e42d16a", "2f93d07a-3629-4c41-92da-738c009370de", "b11d6899-71f7-4630-857c-5b35524dabd4", "d67ba291-9cf9-4c30-801f-52fe8a8d0707", "be9d8702-b5ee-4ee5-aef7-5c2394fb0f7a", "20f018c8-664f-4b7f-a1c9-64d649d982f7", "055db824-ca0d-4aa8-8e0b-c14d74005b0e", "443a0c54-749a-4b91-88ea-5d9f33b2bdd0"], - status: "disabled" + shop_id: "52155e4c-38ef-4795-879c-3c45a71af190", + can_topup_private_money_ids: ["f263b119-060f-4d7a-98cd-dba5dcd17b60", "00bb6b3a-7188-4d8c-9956-46519d187f34", "960b87ec-4ea9-4019-b9d7-0de41e49acde", "410442e6-8877-4a60-9bce-2ec01dbd11b1", "d8987494-3611-4b47-ac14-df3c206da1c2", "2ba4bd3d-0b87-4658-b23b-39149291ec88"], + status: "active" })); status = response.code; } catch (e) { @@ -6019,10 +6192,10 @@ test('Check UpdateShop | 3', async () => { let status = 400; try { const response: Response = await client.send(new UpdateShop({ - shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", - private_money_ids: ["4b7d345e-13c6-4e94-9f4d-7f04f85d3647", "1c45aa1a-91e5-4376-a713-c0f714edd5d6", "9295abcd-c59f-4365-80da-781df7cf65df", "aaee20fb-f7ab-490a-8ff4-c03888f3fac5", "b1806aa8-1f71-409b-9faf-227ee7d8abc9", "326fac9b-1e76-453e-898e-fa09cb96c892"], - can_topup_private_money_ids: ["695a3ff8-327c-48f6-81fe-80ecbca5126a", "3a30c4b5-c24b-4be1-ac8b-91f1220b3dbc", "5b5eaff8-e42c-4b0c-a418-1a034c73bb41", "33f65219-2a29-49fe-b748-56f526e1472a", "dd005588-4e1e-435c-9f91-a03f8a4b4492", "0f15b3fd-5c7b-4171-a3f6-f4293fcaaf9f", "cc2df764-af18-4b91-934e-0d1ceeb25c5b", "c05683f6-9ee5-48d7-bad7-6ec908a01f2e", "ac6a7a35-f5cc-4a93-8097-b88d36f43bb6"], - status: "disabled" + shop_id: "52155e4c-38ef-4795-879c-3c45a71af190", + private_money_ids: ["931b11ae-3315-465d-84c9-37bd160fe959", "bcf9b896-de06-4dbe-9aa5-fb8eabfd3cdc", "aefbebec-2159-4c4c-8f69-171099de3e5e"], + can_topup_private_money_ids: ["523de385-3d35-47f3-ae0b-81c2393e67d2", "30597085-5008-4dfc-9602-6afeb98943df", "d7d3fab5-8130-420a-a7c5-58327bdbfd7d"], + status: "active" })); status = response.code; } catch (e) { @@ -6038,11 +6211,11 @@ test('Check UpdateShop | 4', async () => { let status = 400; try { const response: Response = await client.send(new UpdateShop({ - shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", - external_id: "QvZvRJLln3CmVmPz2bcH2x", - private_money_ids: ["47f387c2-4048-427c-94e2-6980a843eee9", "f7ec771e-0bcf-4ac8-a7a2-ca1268fe0c59", "8724bc8d-bc14-435c-a2fa-b25f6dc092a9", "307f775e-0bd7-4720-86b7-9445bb04c59d", "b2791b2b-74d9-4b0f-83ae-30661ce90ba7", "0f4e0bb7-bab6-45ad-946f-615c544ea624"], - can_topup_private_money_ids: ["451b0c2e-dea3-47e3-bca1-6b896ea55708", "4744398d-0eec-4100-b8e4-eef4c9589522", "abd40a2a-d67a-443f-9563-b0f13639882d", "edc5efc4-95b6-41f2-b12e-be405b3f107f", "933685f7-b147-4426-84fd-3a88da476a56", "dd9456d2-19e4-4c6f-a0ea-328534361b47", "556f5a6a-947b-46e9-a748-cc70dd98a114", "70b6451f-96da-4ebb-846c-121b99048d9d"], - status: "active" + shop_id: "52155e4c-38ef-4795-879c-3c45a71af190", + external_id: "43Lt7Q0", + private_money_ids: ["a7d222eb-ee20-42a9-bf51-719a075d832e", "b47f09de-7c47-443b-ac22-b9956543aca2", "7ff1e548-e6cc-44ed-8629-0e55360d9fef"], + can_topup_private_money_ids: ["dc84f160-8df2-4605-b618-190d9d94ae4e", "f3e9a997-bc5f-4e3e-bcc3-ceec752329c0", "0564d9d7-b48a-4346-9d89-5bd308a770d7", "ca723fd4-155e-480f-a0e7-56cd4e41a98f", "17a7446e-6529-420d-bf35-4d77d29fc364", "d2ecc736-b8b0-4170-b6f1-f6966607b8ef", "61142a60-fcf2-43d2-9c53-29463f4a09b9", "c569b84e-fada-4dc1-9480-4bed550859e8"], + status: "disabled" })); status = response.code; } catch (e) { @@ -6058,11 +6231,11 @@ test('Check UpdateShop | 5', async () => { let status = 400; try { const response: Response = await client.send(new UpdateShop({ - shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", - email: "8InHQBhMIr@dZJT.com", - external_id: "9MnQgGfElkSct56tB3QvYjy8m", - private_money_ids: ["6ce4fe92-b0aa-4900-a7c4-5679cd343c95", "0b0218d8-5e2e-488e-913a-62a382675314", "d48a3c59-8307-49cf-8eaa-ce182f38af01", "3bf70fd3-7073-4dae-a818-c1199f4aa6f0", "27138bbd-f847-4bcd-836b-6fe5a7c4cdb1"], - can_topup_private_money_ids: [], + shop_id: "52155e4c-38ef-4795-879c-3c45a71af190", + email: "oWmfQbT09L@p665.com", + external_id: "g0d7eGITtIklkYFTO7OJe9dSEOGAL", + private_money_ids: ["caf69db8-f053-4a7c-9d2e-a7999cedbf5c"], + can_topup_private_money_ids: ["8d288ade-80b7-427a-aaa8-bdb1c28b9bcb", "95da72a1-d246-4482-a23f-496fa8c539f2", "3722fedb-fcc9-4e09-9167-d75d534492f7", "53930cf8-7113-4e23-b86f-3deff057915d", "1043c491-d7fc-4cf3-8acc-fecbb246bab5", "fd1f6652-8971-45b6-a8be-d0b76f121e2a", "4bd1a5a9-4756-49ac-98d8-b24dab9fa905", "7f5454f0-bb18-4fda-8728-e2cd01a54553", "857aa692-a126-477a-bf37-fb86853ba86b", "c10796f6-0a4f-40cd-9b7f-be28b641d85b"], status: "active" })); status = response.code; @@ -6079,12 +6252,12 @@ test('Check UpdateShop | 6', async () => { let status = 400; try { const response: Response = await client.send(new UpdateShop({ - shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", - tel: "0005-9248141", - email: "iUj9JqianI@8FqI.com", - external_id: "qzelGZDONUAJfl2HMto7yaW0G", - private_money_ids: ["38efd286-ccb1-4970-8f8f-01cf76094593", "14b8b70c-2bc2-4da4-9a81-38fb67363d17", "6608ae1e-43fb-40ba-8108-d1efdbb8fbfe", "6ee8ecf3-d0f8-4963-9594-e9dff17a2eb6"], - can_topup_private_money_ids: ["f873bf31-ad5e-413d-b628-9abb4f324bc6", "652db89b-7722-4f4d-8b27-0b4e5c64db39", "44f54ca8-c540-4a35-aa97-ea322987e4bf", "a250df56-3a2f-45ff-9564-17d1d2de9c33", "a3baf25f-8e7c-497e-863c-0a8bda44ad74", "80b438b6-bb08-4e33-bf09-6c9c6d7a8dd7", "54220f70-fb7f-4b79-b3e7-d55e4b891b07"], + shop_id: "52155e4c-38ef-4795-879c-3c45a71af190", + tel: "099129-554", + email: "y0nenwzHOa@IVwM.com", + external_id: "TjPFMGevwVMeZt8", + private_money_ids: ["b1806aa8-1f71-409b-9faf-227ee7d8abc9", "326fac9b-1e76-453e-898e-fa09cb96c892", "307a4679-3ff8-427c-b601-01fe223c80ec", "bca5126a-c4b5-424b-a1ec-768bfd2691f1", "220b3dbc-aff8-442c-8c24-b71858611a03"], + can_topup_private_money_ids: ["33f65219-2a29-49fe-b748-56f526e1472a"], status: "active" })); status = response.code; @@ -6101,13 +6274,13 @@ test('Check UpdateShop | 7', async () => { let status = 400; try { const response: Response = await client.send(new UpdateShop({ - shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", - address: "20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKruisPGcjRxKz0hnHtPEmOFzye10sMn1hLqgZ4Scflk2JdjznjOojFztUyYyUwwyS9B5htgNIDpUpzKyj3BEvYp1TbuySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7", - tel: "037409056", - email: "BC2Sel2Qni@qdOC.com", - external_id: "9my1YOO8Cj", - private_money_ids: ["40a9195b-e812-449b-8c30-80fbd0f9ae59", "4787c17c-e346-4bed-b6b4-07308a3c7e5f"], - can_topup_private_money_ids: ["61851016-24d5-4e2e-afcd-6635e2edb077", "80343906-659b-4c85-94a6-44011287311e", "471eac5a-a4e7-4001-b5e5-069aa4784324", "dcb5e80a-8b0d-45b6-95b7-56e5c9b3c515"], + shop_id: "52155e4c-38ef-4795-879c-3c45a71af190", + address: "qvdSNveWzWI5L6stQvZvRJLln3CmVmP", + tel: "0224-23-8628", + email: "TbiOHYbzW7@EYCf.com", + external_id: "oHcl8dtzcqD6rqwGDVRdo", + private_money_ids: [], + can_topup_private_money_ids: ["b6653285-1b47-4a6a-bbe9-306775976648", "a560cc70-a114-451f-9abb-910442cea36c", "bf8a121b-8d9d-4392-b849-026eab8cc315", "c506f9a5-81a6-482d-88a2-2e135373c6d1", "731a8542-5ee8-4ecd-bb49-dc7b65a7428e", "ea6f2172-e364-4dda-8a0c-7f54c5390198", "b0d9e027-ad39-4505-aefc-d9ab55bf3898", "474d3cff-204d-4f6e-9167-3047572dcdfe", "19307487-c38a-4ee6-a380-ad8429fb46c5", "793eb0ec-38aa-4feb-9363-55f43d0263b5"], status: "disabled" })); status = response.code; @@ -6124,14 +6297,14 @@ test('Check UpdateShop | 8', async () => { let status = 400; try { const response: Response = await client.send(new UpdateShop({ - shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", - postal_code: "8609258", - address: "E3L7gW6pVOxZ4jRFNa6hoBOihdHvejLf7HUNUhMpEnczyOhMWAPbHXytdjUT8FkE6WXDem2rgSzz35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ", - tel: "09-16923", - email: "YZY4p9bZgs@cBV3.com", - external_id: "pXiPPiW2qUm4F", - private_money_ids: ["427fc08c-0851-4c85-b5e3-ab2d687ff6f3", "1a4e61fc-15ac-43ed-bab0-77c75a672c59"], - can_topup_private_money_ids: ["056a8ddb-0ef7-40d9-847f-2c38b86fd813"], + shop_id: "52155e4c-38ef-4795-879c-3c45a71af190", + postal_code: "0643016", + address: "Yjy8mUgDyXQYOSshpGMCke10fApKjBHnAmdlKiUj9JqianI8FqIXqzelGZDONUAJfl2HMto7yaW0Gkt1pOBZosxcU6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKruisPGcj", + tel: "041388-402", + email: "EmOFzye10s@Mn1h.com", + external_id: "qgZ4Scflk2Jdj", + private_money_ids: ["9e5c2889-8191-4fee-aac0-f082b9f274cf", "5b0a5a7e-a5ef-406a-8697-bd833afb8525", "3f44cdbe-621a-4e7a-b4a8-105545a652f9", "e7b261ab-f209-478a-92be-b2851407ed59", "6966bd79-655c-4199-9592-d32d4b044013", "7e106412-4b2d-47f7-b740-95f9330b6b53", "ef5fe913-5718-46b9-8235-ea0d80b10868", "324a837d-9bbb-4140-aaf4-09e73123f84e", "b3893a26-d8c9-42c4-b03d-49d50000f62a", "275bd480-ccf0-438a-bacb-550e7a4b5da9"], + can_topup_private_money_ids: ["f37d4879-74ea-4d3b-b342-bdc5370e4c3f", "dea49576-7059-4ffe-bef0-f2bf202a04bf", "022b151e-0b31-4f2d-a73e-eadc1ac3a6d4", "162578e2-301e-4f75-b953-57c981047840", "f5adcfa6-e018-4d79-817d-0290935a3139", "fe4f1bf6-024d-4da8-a0bd-830f0bd62426", "605011e6-f16a-4612-817d-38f3407b3139", "fa347a52-9d53-495b-9617-4d49eff36d7c", "937eaf75-9621-4952-9bcc-f8ca457aeb61"], status: "disabled" })); status = response.code; @@ -6148,15 +6321,15 @@ test('Check UpdateShop | 9', async () => { let status = 400; try { const response: Response = await client.send(new UpdateShop({ - shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", - name: "K8kF9CcO2FCZ7wQECuE", - postal_code: "987-8945", - address: "4l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - tel: "047-4531-939", - email: "gb4Yb3t6km@vyhj.com", - external_id: "D7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJ", - private_money_ids: [], - can_topup_private_money_ids: ["13e59d9d-b8b0-40fc-83fc-c2046b3661c8", "d2330960-b1b1-472b-9530-bcc74e9936d1", "c9e06b62-7a39-4297-9f36-18cae73755fa"], + shop_id: "52155e4c-38ef-4795-879c-3c45a71af190", + name: "Ugod9vJRMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L7gW6pVOxZ4jRFNa6hoBOihdHvejLf7HUNUhMpEnczyOhMWAPbHXytdjUT8FkE6WXDem2rgSzz35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3", + postal_code: "0890972", + address: "qUm4FbQucsmz0GYwY85K8kF9Cc", + tel: "012-96-0117", + email: "wQECuEigH9@T54l.com", + external_id: "9EXWThBhNBtq0", + private_money_ids: ["b81963c0-8c82-486c-bde0-523c12a0d472", "8f538ddf-c319-4335-9601-01a591f70092", "08ad5a2f-2955-44c4-a352-7bea13e8cfd0", "426423d7-bfe8-405c-953d-36231086d7e3", "2a0b8ba4-df1e-4913-9781-c72ef4f34645", "31b3ea35-c686-4411-a1c5-2060e82a52e4", "c99f0d1a-c330-4cc4-b036-2871fdf8316d", "6abdfb09-b185-4bdd-bd0f-43fcab5d9193"], + can_topup_private_money_ids: ["83fed4e5-768c-4aee-bdad-c392f4f0bf8e", "7405ec4e-f8c9-47d9-ac2e-5bf05207dab4", "acdb5592-d957-4f5e-b587-b800e0ced5d5", "196b1bdc-bccc-484c-abd1-2f7c41ac4a94", "fdf3ba5c-da9b-49c2-8e1c-957b82797322"], status: "disabled" })); status = response.code; @@ -6187,7 +6360,7 @@ test('Check GetPrivateMoneys | 1', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneys({ - per_page: 5471 + per_page: 9085 })); status = response.code; } catch (e) { @@ -6203,8 +6376,8 @@ test('Check GetPrivateMoneys | 2', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneys({ - page: 3814, - per_page: 6679 + page: 3978, + per_page: 4532 })); status = response.code; } catch (e) { @@ -6220,9 +6393,9 @@ test('Check GetPrivateMoneys | 3', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneys({ - organization_code: "2-0H-3-2f7yZ-n9----e-30kbsk2H-5J", - page: 9536, - per_page: 6615 + organization_code: "R-C7j9-wTEwA8A7uWw-Bm7zL7-18E2", + page: 216, + per_page: 1847 })); status = response.code; } catch (e) { @@ -6238,7 +6411,7 @@ test('Check GetPrivateMoneyOrganizationSummaries | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "d131a915-2939-44d5-b344-449adb4679be" + private_money_id: "8b435134-d292-4663-a223-7b05385da2e8" })); status = response.code; } catch (e) { @@ -6254,8 +6427,8 @@ test('Check GetPrivateMoneyOrganizationSummaries | 1', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "d131a915-2939-44d5-b344-449adb4679be", - page: 6767 + private_money_id: "8b435134-d292-4663-a223-7b05385da2e8", + page: 9307 })); status = response.code; } catch (e) { @@ -6271,9 +6444,9 @@ test('Check GetPrivateMoneyOrganizationSummaries | 2', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "d131a915-2939-44d5-b344-449adb4679be", - per_page: 8597, - page: 1535 + private_money_id: "8b435134-d292-4663-a223-7b05385da2e8", + per_page: 7885, + page: 5932 })); status = response.code; } catch (e) { @@ -6289,9 +6462,9 @@ test('Check GetPrivateMoneyOrganizationSummaries | 3', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "d131a915-2939-44d5-b344-449adb4679be", - from: "2023-04-08T17:43:14.000000Z", - to: "2020-02-26T11:52:13.000000Z" + private_money_id: "8b435134-d292-4663-a223-7b05385da2e8", + from: "2021-03-18T04:15:01.000000Z", + to: "2023-09-27T15:20:52.000000Z" })); status = response.code; } catch (e) { @@ -6307,10 +6480,10 @@ test('Check GetPrivateMoneyOrganizationSummaries | 4', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "d131a915-2939-44d5-b344-449adb4679be", - from: "2021-08-23T00:04:33.000000Z", - to: "2021-05-06T17:07:04.000000Z", - page: 7960 + private_money_id: "8b435134-d292-4663-a223-7b05385da2e8", + from: "2023-11-25T19:54:40.000000Z", + to: "2022-03-12T15:18:23.000000Z", + page: 9104 })); status = response.code; } catch (e) { @@ -6326,11 +6499,11 @@ test('Check GetPrivateMoneyOrganizationSummaries | 5', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "d131a915-2939-44d5-b344-449adb4679be", - from: "2021-08-12T01:57:43.000000Z", - to: "2022-03-26T03:33:02.000000Z", - per_page: 9256, - page: 7137 + private_money_id: "8b435134-d292-4663-a223-7b05385da2e8", + from: "2022-07-16T19:35:51.000000Z", + to: "2021-10-05T12:49:05.000000Z", + per_page: 1220, + page: 7126 })); status = response.code; } catch (e) { @@ -6346,7 +6519,7 @@ test('Check GetPrivateMoneySummary | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneySummary({ - private_money_id: "e7cd26a1-9168-425c-9d09-636dbe75dd68" + private_money_id: "3f3e9fcf-d998-4ae5-9349-2f4c929f7e20" })); status = response.code; } catch (e) { @@ -6362,8 +6535,8 @@ test('Check GetPrivateMoneySummary | 1', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneySummary({ - private_money_id: "e7cd26a1-9168-425c-9d09-636dbe75dd68", - to: "2021-11-10T15:25:11.000000Z" + private_money_id: "3f3e9fcf-d998-4ae5-9349-2f4c929f7e20", + to: "2021-11-02T18:23:10.000000Z" })); status = response.code; } catch (e) { @@ -6379,9 +6552,9 @@ test('Check GetPrivateMoneySummary | 2', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneySummary({ - private_money_id: "e7cd26a1-9168-425c-9d09-636dbe75dd68", - from: "2022-12-25T19:43:41.000000Z", - to: "2020-08-05T15:13:26.000000Z" + private_money_id: "3f3e9fcf-d998-4ae5-9349-2f4c929f7e20", + from: "2021-03-22T09:56:10.000000Z", + to: "2020-03-11T08:25:07.000000Z" })); status = response.code; } catch (e) { @@ -6397,7 +6570,7 @@ test('Check ListCustomerTransactions | 0', async () => { let status = 400; try { const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481" + private_money_id: "86c3664b-e50d-4724-bd4a-ac75b8598991" })); status = response.code; } catch (e) { @@ -6413,8 +6586,8 @@ test('Check ListCustomerTransactions | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", - per_page: 8256 + private_money_id: "86c3664b-e50d-4724-bd4a-ac75b8598991", + per_page: 2195 })); status = response.code; } catch (e) { @@ -6430,9 +6603,9 @@ test('Check ListCustomerTransactions | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", - page: 2206, - per_page: 7490 + private_money_id: "86c3664b-e50d-4724-bd4a-ac75b8598991", + page: 1583, + per_page: 7505 })); status = response.code; } catch (e) { @@ -6448,10 +6621,10 @@ test('Check ListCustomerTransactions | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", - to: "2020-01-20T01:11:03.000000Z", - page: 9694, - per_page: 9903 + private_money_id: "86c3664b-e50d-4724-bd4a-ac75b8598991", + to: "2021-06-29T22:46:37.000000Z", + page: 9986, + per_page: 5020 })); status = response.code; } catch (e) { @@ -6467,11 +6640,11 @@ test('Check ListCustomerTransactions | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", - from: "2020-02-01T11:11:06.000000Z", - to: "2020-11-08T11:23:32.000000Z", - page: 5385, - per_page: 4709 + private_money_id: "86c3664b-e50d-4724-bd4a-ac75b8598991", + from: "2023-01-30T07:54:11.000000Z", + to: "2023-01-13T03:50:03.000000Z", + page: 5920, + per_page: 7957 })); status = response.code; } catch (e) { @@ -6487,12 +6660,12 @@ test('Check ListCustomerTransactions | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", - is_modified: true, - from: "2022-10-29T14:50:22.000000Z", - to: "2021-04-30T22:35:59.000000Z", - page: 7609, - per_page: 8380 + private_money_id: "86c3664b-e50d-4724-bd4a-ac75b8598991", + is_modified: false, + from: "2021-10-31T16:53:27.000000Z", + to: "2020-08-28T01:39:11.000000Z", + page: 8501, + per_page: 377 })); status = response.code; } catch (e) { @@ -6508,13 +6681,13 @@ test('Check ListCustomerTransactions | 6', async () => { let status = 400; try { const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", + private_money_id: "86c3664b-e50d-4724-bd4a-ac75b8598991", type: "expire", - is_modified: false, - from: "2021-08-04T03:54:08.000000Z", - to: "2022-10-12T21:59:05.000000Z", - page: 8858, - per_page: 4413 + is_modified: true, + from: "2024-01-28T15:51:48.000000Z", + to: "2021-06-10T03:45:45.000000Z", + page: 4637, + per_page: 8364 })); status = response.code; } catch (e) { @@ -6530,14 +6703,14 @@ test('Check ListCustomerTransactions | 7', async () => { let status = 400; try { const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", - receiver_customer_id: "9087f23e-f2a7-441c-b433-8d14b39040e8", - type: "payment", + private_money_id: "86c3664b-e50d-4724-bd4a-ac75b8598991", + receiver_customer_id: "adda7660-557a-491a-a56c-9888103f5578", + type: "expire", is_modified: true, - from: "2020-10-31T17:38:56.000000Z", - to: "2020-10-11T05:03:35.000000Z", - page: 5983, - per_page: 6393 + from: "2020-04-26T04:18:59.000000Z", + to: "2021-07-19T20:03:51.000000Z", + page: 9596, + per_page: 7027 })); status = response.code; } catch (e) { @@ -6553,15 +6726,15 @@ test('Check ListCustomerTransactions | 8', async () => { let status = 400; try { const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", - sender_customer_id: "1e6c77d7-74a1-40cb-b0a5-1af95b4f3dbc", - receiver_customer_id: "81f23c66-355d-4806-bbfd-cd9a8c0411d3", - type: "cashback", + private_money_id: "86c3664b-e50d-4724-bd4a-ac75b8598991", + sender_customer_id: "c8dd41ae-0a04-4ce5-8e4d-d25356c9c581", + receiver_customer_id: "1dea5adb-bc3a-4b7f-ad3d-e0ee5be50599", + type: "transfer", is_modified: false, - from: "2021-06-10T12:34:18.000000Z", - to: "2022-06-18T07:50:48.000000Z", - page: 6706, - per_page: 1232 + from: "2021-07-05T03:03:05.000000Z", + to: "2024-03-11T02:49:23.000000Z", + page: 6711, + per_page: 6254 })); status = response.code; } catch (e) { @@ -6577,7 +6750,7 @@ test('Check GetBulkTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetBulkTransaction({ - bulk_transaction_id: "9ad02669-f2ce-43aa-878d-0615fd1d73ab" + bulk_transaction_id: "c2885e76-1879-4e8f-a87c-eba8c16c4d7c" })); status = response.code; } catch (e) { @@ -6593,7 +6766,7 @@ test('Check ListBulkTransactionJobs | 0', async () => { let status = 400; try { const response: Response = await client.send(new ListBulkTransactionJobs({ - bulk_transaction_id: "8d19d42d-8c55-410d-a223-f18af8702f99" + bulk_transaction_id: "c3f1c30e-a60f-4103-aa22-17c4e2a21637" })); status = response.code; } catch (e) { @@ -6609,8 +6782,8 @@ test('Check ListBulkTransactionJobs | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListBulkTransactionJobs({ - bulk_transaction_id: "8d19d42d-8c55-410d-a223-f18af8702f99", - per_page: 5933 + bulk_transaction_id: "c3f1c30e-a60f-4103-aa22-17c4e2a21637", + per_page: 4362 })); status = response.code; } catch (e) { @@ -6626,9 +6799,9 @@ test('Check ListBulkTransactionJobs | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListBulkTransactionJobs({ - bulk_transaction_id: "8d19d42d-8c55-410d-a223-f18af8702f99", - page: 6622, - per_page: 3346 + bulk_transaction_id: "c3f1c30e-a60f-4103-aa22-17c4e2a21637", + page: 802, + per_page: 6279 })); status = response.code; } catch (e) { @@ -6644,9 +6817,9 @@ test('Check CreateCashtray | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateCashtray({ - private_money_id: "e30abff5-65d3-40c5-9785-a465e9b3f1cd", - shop_id: "c04a228a-5738-4402-9615-9e297f57284c", - amount: 2925.0 + private_money_id: "754162fe-6f2d-4631-8abb-bfec97ecff16", + shop_id: "6392be60-18bc-4ebe-a167-9e7a28ae01f1", + amount: 1609.0 })); status = response.code; } catch (e) { @@ -6662,10 +6835,10 @@ test('Check CreateCashtray | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateCashtray({ - private_money_id: "e30abff5-65d3-40c5-9785-a465e9b3f1cd", - shop_id: "c04a228a-5738-4402-9615-9e297f57284c", - amount: 2925.0, - expires_in: 2144 + private_money_id: "754162fe-6f2d-4631-8abb-bfec97ecff16", + shop_id: "6392be60-18bc-4ebe-a167-9e7a28ae01f1", + amount: 1609.0, + expires_in: 9603 })); status = response.code; } catch (e) { @@ -6681,11 +6854,11 @@ test('Check CreateCashtray | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateCashtray({ - private_money_id: "e30abff5-65d3-40c5-9785-a465e9b3f1cd", - shop_id: "c04a228a-5738-4402-9615-9e297f57284c", - amount: 2925.0, - description: "qznKIn9uBoqN", - expires_in: 6964 + private_money_id: "754162fe-6f2d-4631-8abb-bfec97ecff16", + shop_id: "6392be60-18bc-4ebe-a167-9e7a28ae01f1", + amount: 1609.0, + description: "MLpUpAeuRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3hyN01xWKpyfSJX1OiNUbqHXuSEWeM8VLmM8qznKIn9uBoqN3XKkwm", + expires_in: 8874 })); status = response.code; } catch (e) { @@ -6697,11 +6870,11 @@ test('Check CreateCashtray | 2', async () => { expect(status).not.toBe(400); }) -test('Check GetCashtray | 0', async () => { +test('Check CancelCashtray | 0', async () => { let status = 400; try { - const response: Response = await client.send(new GetCashtray({ - cashtray_id: "5512a3ba-aadc-4358-870a-6d9abd7d2b7c" + const response: Response = await client.send(new CancelCashtray({ + cashtray_id: "bc86ff06-520d-4a1b-ae02-b188e7124f4c" })); status = response.code; } catch (e) { @@ -6713,11 +6886,11 @@ test('Check GetCashtray | 0', async () => { expect(status).not.toBe(400); }) -test('Check CancelCashtray | 0', async () => { +test('Check GetCashtray | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CancelCashtray({ - cashtray_id: "f7a80c4b-aba9-43eb-b76d-38580067e846" + const response: Response = await client.send(new GetCashtray({ + cashtray_id: "bb2ab8ae-1d4c-4430-b628-c1683b15245a" })); status = response.code; } catch (e) { @@ -6733,7 +6906,7 @@ test('Check UpdateCashtray | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCashtray({ - cashtray_id: "20ece2a9-ff06-420d-9b6e-77022062b188" + cashtray_id: "5af4bebb-b4ed-4efa-807e-1f29a1557037" })); status = response.code; } catch (e) { @@ -6749,8 +6922,8 @@ test('Check UpdateCashtray | 1', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCashtray({ - cashtray_id: "20ece2a9-ff06-420d-9b6e-77022062b188", - expires_in: 3917 + cashtray_id: "5af4bebb-b4ed-4efa-807e-1f29a1557037", + expires_in: 1395 })); status = response.code; } catch (e) { @@ -6766,9 +6939,9 @@ test('Check UpdateCashtray | 2', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCashtray({ - cashtray_id: "20ece2a9-ff06-420d-9b6e-77022062b188", - description: "L0vhZmz7rucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34hD1uxIbudPgKcAH4LqtvnYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46D", - expires_in: 1061 + cashtray_id: "5af4bebb-b4ed-4efa-807e-1f29a1557037", + description: "ucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34hD1ux", + expires_in: 6448 })); status = response.code; } catch (e) { @@ -6784,10 +6957,121 @@ test('Check UpdateCashtray | 3', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCashtray({ - cashtray_id: "20ece2a9-ff06-420d-9b6e-77022062b188", - amount: 1484.0, - description: "EY9Dfg2K2KSBJ32yceHkpeJS53rQYrIERvl0KriuNlhP5RwfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F279GcsdDtM3uSEYbuaOy1AtJbZFvX4DTrnYj6rE9HuWGm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30J", - expires_in: 1575 + cashtray_id: "5af4bebb-b4ed-4efa-807e-1f29a1557037", + amount: 3042.0, + description: "udPgKcAH4LqtvnYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1Zbg", + expires_in: 649 + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check ListCampaigns | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCampaigns({ + private_money_id: "80bebf8d-ef45-4e96-9834-95b601aeae44" + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check ListCampaigns | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCampaigns({ + private_money_id: "80bebf8d-ef45-4e96-9834-95b601aeae44", + per_page: 37 + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check ListCampaigns | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCampaigns({ + private_money_id: "80bebf8d-ef45-4e96-9834-95b601aeae44", + page: 1485, + per_page: 49 + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check ListCampaigns | 3', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCampaigns({ + private_money_id: "80bebf8d-ef45-4e96-9834-95b601aeae44", + available_to: "2022-03-17T07:14:07.000000Z", + page: 5306, + per_page: 7 + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check ListCampaigns | 4', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCampaigns({ + private_money_id: "80bebf8d-ef45-4e96-9834-95b601aeae44", + available_from: "2021-08-03T16:04:36.000000Z", + available_to: "2022-11-21T20:15:00.000000Z", + page: 9575, + per_page: 40 + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check ListCampaigns | 5', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCampaigns({ + private_money_id: "80bebf8d-ef45-4e96-9834-95b601aeae44", + is_ongoing: true, + available_from: "2022-01-26T18:32:43.000000Z", + available_to: "2023-02-13T09:00:59.000000Z", + page: 8131, + per_page: 11 })); status = response.code; } catch (e) { @@ -6803,12 +7087,12 @@ test('Check CreateCampaign | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction" + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup" })); status = response.code; } catch (e) { @@ -6824,13 +7108,13 @@ test('Check CreateCampaign | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - budget_caps_amount: 826378708 + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + budget_caps_amount: 404261566 })); status = response.code; } catch (e) { @@ -6846,17 +7130,17 @@ test('Check CreateCampaign | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - applicable_account_metadata: { - "key": "sex", - "value": "male" + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" }, - budget_caps_amount: 619822229 + budget_caps_amount: 1472227188 })); status = response.code; } catch (e) { @@ -6872,18 +7156,21 @@ test('Check CreateCampaign | 3', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - dest_private_money_id: "874b3279-0484-4c86-ba2f-13d129ee3dc0", + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1933776541 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 7908965 })); status = response.code; } catch (e) { @@ -6899,19 +7186,22 @@ test('Check CreateCampaign | 4', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - max_total_point_amount: 449, - dest_private_money_id: "7d082cbd-93e5-4654-b823-7e8a24141542", + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + dest_private_money_id: "87443aed-40d3-45a9-ae12-f9ae3191efee", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1764941427 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 298846853 })); status = response.code; } catch (e) { @@ -6927,20 +7217,23 @@ test('Check CreateCampaign | 5', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - max_point_amount: 6740, - max_total_point_amount: 6373, - dest_private_money_id: "c4793847-f9c2-4eff-b4db-68db0b40ce74", + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + max_total_point_amount: 8524, + dest_private_money_id: "f51dd646-9c6f-41a5-aa63-8e03aa8a62cc", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1046979123 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 208565968 })); status = response.code; } catch (e) { @@ -6956,21 +7249,24 @@ test('Check CreateCampaign | 6', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - exist_in_each_product_groups: false, - max_point_amount: 3313, - max_total_point_amount: 1827, - dest_private_money_id: "cc729950-54fb-4d0f-a18b-ab8113d363b3", + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + max_point_amount: 3649, + max_total_point_amount: 118, + dest_private_money_id: "de39c775-04bd-49ff-b518-64721a76abda", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 204619724 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 2121041378 })); status = response.code; } catch (e) { @@ -6986,22 +7282,25 @@ test('Check CreateCampaign | 7', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - minimum_number_for_combination_purchase: 7792, + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", exist_in_each_product_groups: true, - max_point_amount: 720, - max_total_point_amount: 8923, - dest_private_money_id: "300d0313-4c73-4d25-ad41-9627b85011b8", + max_point_amount: 3846, + max_total_point_amount: 1250, + dest_private_money_id: "d5f88e0f-4ed0-4335-96a4-e309f138df7a", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1187813134 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 251167319 })); status = response.code; } catch (e) { @@ -7017,23 +7316,26 @@ test('Check CreateCampaign | 8', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - minimum_number_of_amount: 7580, - minimum_number_for_combination_purchase: 6246, - exist_in_each_product_groups: true, - max_point_amount: 3682, - max_total_point_amount: 4593, - dest_private_money_id: "aec63e50-12e2-4040-81e2-b9ebf071400f", + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + minimum_number_for_combination_purchase: 6134, + exist_in_each_product_groups: false, + max_point_amount: 3160, + max_total_point_amount: 9539, + dest_private_money_id: "923d5e6e-f9cd-4954-9108-2183bf1ddb07", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 127213637 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1513268234 })); status = response.code; } catch (e) { @@ -7049,24 +7351,27 @@ test('Check CreateCampaign | 9', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - minimum_number_of_products: 5810, - minimum_number_of_amount: 666, - minimum_number_for_combination_purchase: 18, + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + minimum_number_of_amount: 4211, + minimum_number_for_combination_purchase: 978, exist_in_each_product_groups: true, - max_point_amount: 1706, - max_total_point_amount: 208, - dest_private_money_id: "9840cdab-d0c2-4c8d-a166-1013dd582994", + max_point_amount: 2485, + max_total_point_amount: 2571, + dest_private_money_id: "a937e186-7127-4086-86b2-ebffae347414", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1283939849 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 612645158 })); status = response.code; } catch (e) { @@ -7082,25 +7387,28 @@ test('Check CreateCampaign | 10', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - applicable_shop_ids: ["d89c76fa-454e-41d4-8291-5cbddb249f87", "c6697a11-6b58-4349-967f-4d915b7302b1", "e48ef5f7-443d-4283-9b18-b7ac761ce9c7", "ed07dcfd-c909-4bf0-8ab1-390c81cf733b", "af6135d2-1886-44ee-b355-4f08d319d194", "404a7398-1c3d-4c09-a1b4-1416fe5dc4cb"], - minimum_number_of_products: 3903, - minimum_number_of_amount: 9760, - minimum_number_for_combination_purchase: 7088, + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + minimum_number_of_products: 2376, + minimum_number_of_amount: 1380, + minimum_number_for_combination_purchase: 3590, exist_in_each_product_groups: false, - max_point_amount: 4034, - max_total_point_amount: 6638, - dest_private_money_id: "cb22f064-4ed6-4327-8918-3813bd641c2a", + max_point_amount: 2420, + max_total_point_amount: 4677, + dest_private_money_id: "cf9981f4-70bc-46a6-834d-d1b3c74ccdac", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1101544356 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1170764954 })); status = response.code; } catch (e) { @@ -7116,32 +7424,29 @@ test('Check CreateCampaign | 11', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: ["af1c4822-11a4-413f-9072-310d5945d355", "930b0fbd-881e-47e9-8e12-d168522fcd4e"], - minimum_number_of_products: 6707, - minimum_number_of_amount: 8423, - minimum_number_for_combination_purchase: 5760, - exist_in_each_product_groups: false, - max_point_amount: 1717, - max_total_point_amount: 3772, - dest_private_money_id: "6694a68b-b428-403c-b6b0-e536ec92f73d", + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + blacklisted_shop_ids: ["e83b132c-dd17-4ec0-8b8c-7d880953aa5e", "a6899c53-6621-401d-8559-0862b0dcd4f5", "55059d98-4fe1-477e-ba4f-cee0d0a6dff9", "c8e7b2a7-d6b1-40c1-97f4-624a16d29219", "97fc9014-95aa-4d9c-a062-4ea65ca9c410", "9d623c7b-61da-43e0-8c99-20dc47f4bac6"], + minimum_number_of_products: 247, + minimum_number_of_amount: 8537, + minimum_number_for_combination_purchase: 6029, + exist_in_each_product_groups: true, + max_point_amount: 8261, + max_total_point_amount: 7893, + dest_private_money_id: "597a05f2-05ff-4e25-9b80-7e6ebd9d470d", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1994554518 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1252258204 })); status = response.code; } catch (e) { @@ -7157,13 +7462,51 @@ test('Check CreateCampaign | 12', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - applicable_days_of_week: [2, 5, 3, 0, 4, 3, 6, 2], + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + applicable_shop_ids: ["2e7d403c-b4ac-49ea-9b9a-67106e9915b6", "0ac2d1bb-a3f2-43c5-b9e0-53486e2e6e75", "4510615e-1c93-432b-973f-b1c7503f41ed", "48dd102c-ba35-4b07-bb16-940960e8c5dc", "5e15318e-ff1f-46a4-b804-99a552a1fda0", "14c1e56d-b67f-4618-bb0b-dd919a7472a8", "53e26a89-ef5d-43c2-8550-ef84a09cf89a", "8bf61b16-6f45-4a72-99a5-3ceade6b24d6", "6b6a85b2-6034-4c9b-bc26-03f81787b8cb", "7bdea653-dd9c-4c62-a6da-620fec6a6de9"], + blacklisted_shop_ids: ["6b7e475b-6dba-4ca2-8645-c823ef7c2f60", "f9bb7831-a16d-430b-b832-a4fa123ab093", "2ec3f29a-ee7e-4f13-bb47-2854fbf34e5c", "c27cb131-7778-4282-8828-477ca0dc7e3f", "55e9c6a8-fc9d-4f66-84dc-132dc97378d5", "525c72e6-0e25-42ff-b48b-0b3b186699c9", "d2a3e81c-025d-4621-9e33-4fb0acc5af06"], + minimum_number_of_products: 1355, + minimum_number_of_amount: 1575, + minimum_number_for_combination_purchase: 5242, + exist_in_each_product_groups: false, + max_point_amount: 8010, + max_total_point_amount: 6481, + dest_private_money_id: "21d25d85-9d71-4164-8bc3-43be03962d29", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1067832517 + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check CreateCampaign | 13', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -7186,19 +7529,24 @@ test('Check CreateCampaign | 12', async () => { "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["03a49247-b289-4ebd-8cba-6a7166e3e4d1", "9689cfe9-af82-482b-a3a3-ca9228274a71"], - minimum_number_of_products: 8418, - minimum_number_of_amount: 3644, - minimum_number_for_combination_purchase: 5803, - exist_in_each_product_groups: false, - max_point_amount: 2483, - max_total_point_amount: 4209, - dest_private_money_id: "1da33c39-b581-44e9-8072-64d60b01a80e", + applicable_shop_ids: ["31f14c3d-4189-4827-aed4-0d5293051b76", "1c01fff2-0c8b-4769-bea0-72cdd648c6a4", "ae30ee4d-eb1d-43f1-891f-76a1b00ae054", "830262ad-c800-45a1-9ffd-57b84e439918", "03d816a2-a5d9-4017-b227-e41fdd537bf7", "8341e050-2896-4678-a057-ab89f315428f", "8272e857-a0fd-4f1c-bb10-89585e5ab792", "216d3c45-7883-4007-8b55-78ef8b118c02"], + blacklisted_shop_ids: ["a473ef7c-3e2c-4f67-a18e-b6b0cc963d94", "c6e3ae25-789a-467a-80d8-4bf3aa513edd"], + minimum_number_of_products: 5750, + minimum_number_of_amount: 8466, + minimum_number_for_combination_purchase: 6861, + exist_in_each_product_groups: true, + max_point_amount: 1282, + max_total_point_amount: 4646, + dest_private_money_id: "48abd7a3-c4ed-46e2-90a7-b231e8adce23", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 435207887 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 748526441 })); status = response.code; } catch (e) { @@ -7210,50 +7558,39 @@ test('Check CreateCampaign | 12', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 13', async () => { +test('Check CreateCampaign | 14', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - blacklisted_product_rules: [{ - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }], - applicable_days_of_week: [3, 2, 1, 0, 5, 5, 5, 4], + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + applicable_days_of_week: [5, 3, 3, 6, 5, 0, 2, 4, 3, 2], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["cbed6dde-5e8b-47c5-b905-9f70d15bd0e6", "ac327f02-05a8-4b81-b2a5-14f30e19f29d", "e22d4b9f-c162-4a05-be4d-3dfa40fa8a06", "f70d1735-35f3-4a5c-a2c7-46b19e1cac0f", "fbf0a4a6-f38e-4f80-8700-5e67590958ff", "460f0ba1-9979-4272-8fb7-1a7d502d6f95", "0d328b2c-4923-44ef-a1fc-6b9130675d92"], - minimum_number_of_products: 4426, - minimum_number_of_amount: 1489, - minimum_number_for_combination_purchase: 2070, + applicable_shop_ids: ["22a79fea-27e3-4b9d-be88-92ba719cfc93", "27acf789-44e0-4d13-9f74-b4af79f9e935", "941800f9-1b51-4ba7-81ce-9a1c7cacac00", "c020b329-cfe0-4da3-99ea-4356a8bde0db", "bb62c3ee-42bf-4d9c-bdc0-4733e2729ca3", "30751092-9c35-4772-848d-9ee88f762c96", "784a4807-3ab0-4bb4-a489-a3acd13588e0"], + blacklisted_shop_ids: ["1c3d378a-9fc0-4e20-b6e8-aa1b44a95992"], + minimum_number_of_products: 4818, + minimum_number_of_amount: 7944, + minimum_number_for_combination_purchase: 2072, exist_in_each_product_groups: true, - max_point_amount: 6059, - max_total_point_amount: 840, - dest_private_money_id: "39408316-624a-4437-8a47-0c42c6b1db7e", + max_point_amount: 6234, + max_total_point_amount: 481, + dest_private_money_id: "a14792fc-37b5-447c-965b-631781833b6c", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 413072068 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1073703717 })); status = response.code; } catch (e) { @@ -7265,63 +7602,49 @@ test('Check CreateCampaign | 13', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 14', async () => { +test('Check CreateCampaign | 15', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }], + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", blacklisted_product_rules: [{ "product_code": "4912345678904", "classification_code": "c123" }, { "product_code": "4912345678904", "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_days_of_week: [1, 5, 4, 2, 5, 0, 4, 6], + applicable_days_of_week: [5, 4, 0, 4, 2], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["08ae7609-c839-463e-b677-edbb9446e466", "ef4f316d-778a-40d6-b2d7-22f266970e4b", "99a0b664-64b8-4920-9ae3-9a6b5bb7156e", "80e5d760-c7e4-4796-9750-6e6e386caa1c"], - minimum_number_of_products: 6769, - minimum_number_of_amount: 8351, - minimum_number_for_combination_purchase: 32, + applicable_shop_ids: ["1d3e4a3d-9bc6-4028-a612-0ca2a1341e06", "24ff08f5-c7ba-4868-a8a8-d5f8930fcad0", "b8412d4e-cf1d-47ff-b81a-604a9911e302", "50720665-8f14-41e4-816f-0d8260f61f83", "76da8fb6-5e0f-4b3c-8449-469ebb605a42", "57f86731-465e-404a-b740-33c9778a54df", "6fbc4234-6dc8-4074-8cc8-75504578a36c", "6a62b0c8-5bbf-4746-a7c5-40754ca0e150", "71fcf047-78ff-44bb-9a9f-b16f71a3be33", "787a93c7-7ceb-460d-a428-a1f98945efe7"], + blacklisted_shop_ids: ["314189d3-bc94-4279-8486-83fa092a642f", "e03f13d1-3dc0-469c-b1c0-2cbd42da93e5", "618a8654-d7f8-4523-8a42-de72ab9a72fb", "4c321a53-58e4-4847-82b4-62dbbb1368db", "0b40ce74-a232-497d-92f0-4722cc729950", "251354fb-bd0f-4821-8b81-63b30c323fcb", "d13a9e6f-06e8-4f2b-a2cf-68ae0e4622da"], + minimum_number_of_products: 788, + minimum_number_of_amount: 3188, + minimum_number_for_combination_purchase: 7746, exist_in_each_product_groups: false, - max_point_amount: 2287, - max_total_point_amount: 297, - dest_private_money_id: "fdccb7a5-4c12-4f12-9b13-bb914f6d6ffc", + max_point_amount: 4537, + max_total_point_amount: 5902, + dest_private_money_id: "9814bca9-dd9b-4865-b06b-8e612088345f", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 405791693 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 2029384388 })); status = response.code; } catch (e) { @@ -7333,43 +7656,35 @@ test('Check CreateCampaign | 14', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 15', async () => { +test('Check CreateCampaign | 16', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - amount_based_point_rules: [{ + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -7385,49 +7700,30 @@ test('Check CreateCampaign | 15', async () => { blacklisted_product_rules: [{ "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [4, 5, 6], + applicable_days_of_week: [2], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["c127b51b-9170-4fcf-a862-b238afbab276"], - minimum_number_of_products: 4131, - minimum_number_of_amount: 7296, - minimum_number_for_combination_purchase: 7888, + applicable_shop_ids: ["277862e2-b9eb-400f-84ee-d6b16fbcfb5a", "ed650299-8011-44f2-92a9-ff1f835400cf"], + blacklisted_shop_ids: ["9367ec8d-e0e1-4b66-9394-5e081157169b", "a2cfa9fb-8ad5-46fa-8ed4-f7c2dc81e191", "21925cbd-9f87-4a11-9849-f1d67813c47f"], + minimum_number_of_products: 3474, + minimum_number_of_amount: 690, + minimum_number_for_combination_purchase: 1086, exist_in_each_product_groups: false, - max_point_amount: 7211, - max_total_point_amount: 2765, - dest_private_money_id: "46343905-42e5-487d-8361-b49b5355045f", + max_point_amount: 7836, + max_total_point_amount: 9241, + dest_private_money_id: "7b8db7ac-e9c7-4cfd-89f0-f98a16e775b1", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 601600727 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 928594189 })); status = response.code; } catch (e) { @@ -7439,17 +7735,16 @@ test('Check CreateCampaign | 15', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 16', async () => { +test('Check CreateCampaign | 17', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - subject: "all", + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -7465,36 +7760,6 @@ test('Check CreateCampaign | 16', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -7548,8 +7813,11 @@ test('Check CreateCampaign | 16', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_days_of_week: [1, 3, 3], + applicable_days_of_week: [0, 4, 0, 5, 1, 1], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -7565,13 +7833,104 @@ test('Check CreateCampaign | 16', async () => { }, { "from": "12:00", "to": "23:59" + }], + applicable_shop_ids: ["fe5dc4cb-cf3e-47d1-b38c-261f8a8d1baf", "64f173af-f72b-4fc1-93ed-f064010f4ed6", "a3620327-5089-4418-932a-3ba3208dd801", "d886eed1-4822-41a4-bf90-6fff8e498872", "30cc310d-d355-4fbd-9ee9-ad0e64487712", "bd81d168-cd4e-4af5-b2e6-d67fc9c3860b", "501734a5-86b4-4ebb-8b28-e03ce0cd4836"], + blacklisted_shop_ids: ["137be536-f73d-4c95-ac5a-c67798d17e0a"], + minimum_number_of_products: 1038, + minimum_number_of_amount: 1204, + minimum_number_for_combination_purchase: 7129, + exist_in_each_product_groups: true, + max_point_amount: 3772, + max_total_point_amount: 4448, + dest_private_money_id: "d7ca944f-f8e6-413a-b671-9247dc85b289", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1366859454 + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check CreateCampaign | 18', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + subject: "money", + amount_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [3, 3, 3], + applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { @@ -7581,19 +7940,24 @@ test('Check CreateCampaign | 16', async () => { "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["7c85eb77-a868-495f-b0b9-d6045bb2c13e", "b78bf37f-ce7d-433c-b627-a9aa6a0d51df", "d8317293-b676-4508-9929-cd40c097e006"], - minimum_number_of_products: 3930, - minimum_number_of_amount: 4844, - minimum_number_for_combination_purchase: 3303, + applicable_shop_ids: ["315260e1-7647-4e3b-aa2f-49b24fe41070", "1da33c39-b581-44e9-8072-64d60b01a80e"], + blacklisted_shop_ids: ["0932947e-672b-4ba7-a3a2-852995b4fb10", "34ff8f8d-febd-464d-a4cf-234fb766c4cd", "1632478b-1792-46ba-86de-5e8b50b087c5"], + minimum_number_of_products: 4090, + minimum_number_of_amount: 7686, + minimum_number_for_combination_purchase: 8049, exist_in_each_product_groups: true, - max_point_amount: 2802, - max_total_point_amount: 6850, - dest_private_money_id: "c0850b72-6beb-4156-864f-57919bff2c2c", + max_point_amount: 1449, + max_total_point_amount: 7042, + dest_private_money_id: "4699e6b2-51a5-44f3-9d9f-c162c9b63a05", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 949953665 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 428959679 })); status = response.code; } catch (e) { @@ -7605,18 +7969,18 @@ test('Check CreateCampaign | 16', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 17', async () => { +test('Check CreateCampaign | 19', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", is_exclusive: false, - subject: "all", + subject: "money", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -7652,16 +8016,6 @@ test('Check CreateCampaign | 17', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -7699,24 +8053,6 @@ test('Check CreateCampaign | 17', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 }], blacklisted_product_rules: [{ "product_code": "4912345678904", @@ -7730,52 +8066,30 @@ test('Check CreateCampaign | 17', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [6, 1, 1, 0, 4, 2, 1, 2, 5], + applicable_days_of_week: [1, 6, 6], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["1bd8f4b6-a1de-454b-a056-004689f84ee2"], - minimum_number_of_products: 3230, - minimum_number_of_amount: 7451, - minimum_number_for_combination_purchase: 4554, - exist_in_each_product_groups: true, - max_point_amount: 7742, - max_total_point_amount: 9479, - dest_private_money_id: "11e29df1-b359-4fe7-826c-6a1b02142139", + applicable_shop_ids: ["1725d300-5e67-48ff-a179-22721bfdfccf", "62d005b7-1a7d-4f95-ac23-44efcb0c2ce1", "8beaeafc-6b91-4d92-8149-c5d05fa20815", "3cbb0cfe-17aa-4d3c-8716-624a29332437", "c7df64ca-2347-4c42-bec3-3b00e1548f9f", "ccedbd0b-1eb1-4e17-af91-e43506b339bc", "4f448452-a905-4ba0-9c5e-99a53f0c3a63", "08ae7609-c839-463e-b677-edbb9446e466"], + blacklisted_shop_ids: ["f4c9e8f2-80d7-42f2-8b64-64b80c468920", "59fc8dda-f4e3-4a6b-ae60-c7e44d387796", "8729de97-7c50-4e6e-9c70-e09ecb48001f", "be9d0ab3-c8ee-4dbf-a8a5-4c1201194f12", "3e4c0adb-c413-4b91-bccc-156fae2b56cd", "e6c42624-9681-43e5-af02-fbecd647f8e5", "a34ee48e-e4b3-4e70-9b70-8fcfcd028ca8"], + minimum_number_of_products: 4131, + minimum_number_of_amount: 7296, + minimum_number_for_combination_purchase: 7888, + exist_in_each_product_groups: false, + max_point_amount: 7211, + max_total_point_amount: 2765, + dest_private_money_id: "46343905-42e5-487d-8361-b49b5355045f", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1048575674 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 601600727 })); status = response.code; } catch (e) { @@ -7787,18 +8101,18 @@ test('Check CreateCampaign | 17', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 18', async () => { +test('Check CreateCampaign | 20', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - point_expires_in_days: 9721, - is_exclusive: false, + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + point_expires_in_days: 3334, + is_exclusive: true, subject: "money", amount_based_point_rules: [{ "point_amount": 5, @@ -7820,50 +8134,23 @@ test('Check CreateCampaign | 18', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }], - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -7891,30 +8178,27 @@ test('Check CreateCampaign | 18', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" + }], + applicable_days_of_week: [3, 3], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" - }], - applicable_days_of_week: [5, 0, 6, 6, 3, 2, 6, 4], - applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { @@ -7927,19 +8211,24 @@ test('Check CreateCampaign | 18', async () => { "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["af29f425-4c7e-47c8-b716-1d8be8f18f6c", "ce4285ea-7620-4829-8c71-28076bf5b6c5", "f08aaf64-c470-44ba-87aa-fd2a00b03b71", "5ec7a743-2297-42e3-902c-5ccfdaf98fbd"], - minimum_number_of_products: 6, - minimum_number_of_amount: 3953, - minimum_number_for_combination_purchase: 7000, - exist_in_each_product_groups: true, - max_point_amount: 8742, - max_total_point_amount: 619, - dest_private_money_id: "cfc5f52c-d12f-4f69-b602-fcaaac59caa9", + applicable_shop_ids: ["7c85eb77-a868-495f-b0b9-d6045bb2c13e", "b78bf37f-ce7d-433c-b627-a9aa6a0d51df", "d8317293-b676-4508-9929-cd40c097e006"], + blacklisted_shop_ids: ["2d3e6b97-4f59-42eb-a67c-0af1c7c7dac1"], + minimum_number_of_products: 2931, + minimum_number_of_amount: 6034, + minimum_number_for_combination_purchase: 9345, + exist_in_each_product_groups: false, + max_point_amount: 5881, + max_total_point_amount: 960, + dest_private_money_id: "e4dce728-b9f4-48c8-8661-025173c6d820", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 818977520 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 202568973 })); status = response.code; } catch (e) { @@ -7951,19 +8240,19 @@ test('Check CreateCampaign | 18', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 19', async () => { +test('Check CreateCampaign | 21', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - point_expires_at: "2022-01-04T18:02:55.000000Z", - point_expires_in_days: 5615, - is_exclusive: false, + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + point_expires_at: "2022-10-22T14:06:26.000000Z", + point_expires_in_days: 2802, + is_exclusive: true, subject: "all", amount_based_point_rules: [{ "point_amount": 5, @@ -8005,69 +8294,29 @@ test('Check CreateCampaign | 19', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }], - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", + }], + blacklisted_product_rules: [{ "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }], - blacklisted_product_rules: [{ "product_code": "4912345678904", "classification_code": "c123" }, { @@ -8080,24 +8329,47 @@ test('Check CreateCampaign | 19', async () => { "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [6, 4, 5, 4, 5, 6, 4], + applicable_days_of_week: [6], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["521515bb-9086-4a17-b67d-7aecabf86ce4", "26b04c3b-bab3-403c-8965-1eca8f7c7517", "e35c7111-77f9-4de8-bf2d-6412bb8900af", "73bfd454-da7d-426c-9222-9167c61c77a3", "65018b54-aad4-4fdd-a2bd-c5329d539fba", "7fa3464e-d15e-4178-9369-24f0ad5c1868", "aa30e614-77da-46a4-921c-28ec383fbccc", "9519c782-5f2f-45dc-9910-576fad00152c", "7e9ffe22-b0ab-4b06-8c22-3bfdf1b1243f", "995a029b-d088-421d-aa4d-1514a8e73ded"], - minimum_number_of_products: 4799, - minimum_number_of_amount: 3234, - minimum_number_for_combination_purchase: 6996, + applicable_shop_ids: ["efe9b773-4c9d-445c-9ac9-bca4440fde3d", "53f46506-9df1-4359-a7c2-cf6ce1bd6a1b", "02142139-feb9-45f8-a558-d9d321f590a9"], + blacklisted_shop_ids: ["0a7fb047-d08f-47a5-a0fe-fd766c9e87b3", "de8e4292-6dcf-44f6-9c6e-afb3051aa853", "af29f425-4c7e-47c8-b716-1d8be8f18f6c", "ce4285ea-7620-4829-8c71-28076bf5b6c5", "f08aaf64-c470-44ba-87aa-fd2a00b03b71", "5ec7a743-2297-42e3-902c-5ccfdaf98fbd", "49eac005-cf70-4b57-a625-426acfc5f52c", "1390d12f-5f69-41f6-82aa-caa930d09aef", "33c8aacf-95ee-48a9-ab97-eb19195f5783", "6ae7e486-9776-4964-b7a5-17dc9795cb85"], + minimum_number_of_products: 7688, + minimum_number_of_amount: 1853, + minimum_number_for_combination_purchase: 9521, exist_in_each_product_groups: false, - max_point_amount: 7422, - max_total_point_amount: 3913, - dest_private_money_id: "ec7e1215-88d1-4216-bf19-230d0eb4d484", + max_point_amount: 5082, + max_total_point_amount: 5564, + dest_private_money_id: "ea979086-9a17-4c76-bdec-6ce426b04c3b", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1686759322 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1585298100 })); status = response.code; } catch (e) { @@ -8109,20 +8381,20 @@ test('Check CreateCampaign | 19', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 20', async () => { +test('Check CreateCampaign | 22', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", status: "enabled", - point_expires_at: "2023-08-09T04:23:09.000000Z", - point_expires_in_days: 6024, - is_exclusive: true, + point_expires_at: "2021-10-14T15:51:45.000000Z", + point_expires_in_days: 2112, + is_exclusive: false, subject: "money", amount_based_point_rules: [{ "point_amount": 5, @@ -8149,26 +8421,6 @@ test('Check CreateCampaign | 20', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -8188,12 +8440,6 @@ test('Check CreateCampaign | 20', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 }], blacklisted_product_rules: [{ "product_code": "4912345678904", @@ -8204,17 +8450,8 @@ test('Check CreateCampaign | 20', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [4, 0, 3, 0, 6], + applicable_days_of_week: [3, 4, 4, 5, 2, 5, 2, 2], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -8243,19 +8480,24 @@ test('Check CreateCampaign | 20', async () => { "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["5fccadec-02c0-4c76-8b60-de7852784c8d", "2703a543-6b19-4ebf-b85e-4e10ba37690c", "1985f651-840f-41aa-bb95-9194ab8c0140", "21ac83ef-9e02-416a-88ce-aca9b2e8c3cb", "e6e0277b-00ce-438f-8130-7bae71779ffa"], - minimum_number_of_products: 9110, - minimum_number_of_amount: 1010, - minimum_number_for_combination_purchase: 3863, - exist_in_each_product_groups: false, - max_point_amount: 4164, - max_total_point_amount: 1671, - dest_private_money_id: "85ecf905-d23b-4c90-9274-9fc06bc89d13", + applicable_shop_ids: ["2ee0a769-24f0-4868-94da-e6a49a2d9c52", "a277141c-28ec-4ccc-822f-f5dce8460319", "de4a2210-576f-452c-a2ab-bb06e156e2cc", "76b80722-3bfd-443f-9b88-821d38553eea"], + blacklisted_shop_ids: ["a8e73ded-a891-42be-8ca1-db5361324a07", "c842dcfd-8f48-4215-9116-d33f956c0219", "3ec9230d-d484-4799-94ad-f120c6841787", "98b6d110-e4c0-4de8-8365-7eb401345274", "add272c8-2283-4150-be08-dbdc4fb2bae4"], + minimum_number_of_products: 705, + minimum_number_of_amount: 3191, + minimum_number_for_combination_purchase: 204, + exist_in_each_product_groups: true, + max_point_amount: 7801, + max_total_point_amount: 3214, + dest_private_money_id: "2703a543-6b19-4ebf-b85e-4e10ba37690c", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 2086510520 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 428209746 })); status = response.code; } catch (e) { @@ -8267,22 +8509,22 @@ test('Check CreateCampaign | 20', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 21', async () => { +test('Check CreateCampaign | 23', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - description: "PEIsHw9iaxaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3Ttk", + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + description: "ojNKN0zqICt7BPEI", status: "disabled", - point_expires_at: "2023-07-08T21:45:49.000000Z", - point_expires_in_days: 7077, - is_exclusive: true, - subject: "money", + point_expires_at: "2023-10-27T22:37:01.000000Z", + point_expires_in_days: 1815, + is_exclusive: false, + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -8303,26 +8545,6 @@ test('Check CreateCampaign | 21', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -8360,37 +8582,28 @@ test('Check CreateCampaign | 21', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 }], blacklisted_product_rules: [{ "product_code": "4912345678904", "classification_code": "c123" + }], + applicable_days_of_week: [4, 1, 1, 4, 4, 1, 1, 0, 5], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" - }], - applicable_days_of_week: [6, 1, 4, 2, 6, 4, 3, 2, 2, 0], - applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { @@ -8403,19 +8616,24 @@ test('Check CreateCampaign | 21', async () => { "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["19760078-71e1-44d3-92f5-00aa990d70bb", "74899646-7783-4423-a501-fe7667f81c87", "b02d11e3-257c-47ea-b373-c02b8874d80c", "77441aaf-bc1f-41af-95b2-3ad1672e8fee", "cb77e988-6303-4e5e-b833-dee7beb678db", "95ece3be-7ed7-4916-86c8-257f34d20737", "78c9a768-24bc-46bd-8630-aaa689c4450f", "6cee271f-ecd4-4902-8438-ce2742d3e903", "2fa4d94e-c768-4c37-a5ef-3e1f8999785b", "0c6c4b4f-c0a9-4810-97a8-c13a67601118"], - minimum_number_of_products: 695, - minimum_number_of_amount: 3627, - minimum_number_for_combination_purchase: 5402, + applicable_shop_ids: ["42cb2178-8461-4aad-932c-8a50ce07857a", "66e499fc-981a-47ef-a161-e4fb93833944", "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", "0428413c-9b23-49d2-a591-73ea3cfc5831", "30eeb799-ccd4-42f7-a232-05219d726b04"], + blacklisted_shop_ids: ["d04f5f76-68f0-43e9-b7a0-f7ca024e9507", "221c3ca7-ce4c-4d7c-987b-c8bcec97ffd3", "b6821ef9-66e8-47fc-aff1-c3d910072560"], + minimum_number_of_products: 6767, + minimum_number_of_amount: 760, + minimum_number_for_combination_purchase: 9688, exist_in_each_product_groups: false, - max_point_amount: 8829, - max_total_point_amount: 4980, - dest_private_money_id: "760504bc-ab2e-43ea-9dcf-838067b7f47b", + max_point_amount: 4059, + max_total_point_amount: 5006, + dest_private_money_id: "2093fee4-da6f-4433-943b-d68bb93f9474", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 983324416 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 751349228 })); status = response.code; } catch (e) { @@ -8427,23 +8645,23 @@ test('Check CreateCampaign | 21', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 22', async () => { +test('Check CreateCampaign | 24', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", - starts_at: "2020-02-28T15:38:38.000000Z", - ends_at: "2021-01-29T22:29:35.000000Z", - priority: 5711, - event: "external-transaction", - bear_point_shop_id: "11f10eef-2e78-4cb0-9206-8dd2ef518714", - description: "gJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8Jtqof", - status: "disabled", - point_expires_at: "2020-03-23T11:05:38.000000Z", - point_expires_in_days: 5114, - is_exclusive: true, - subject: "all", + name: "32yceHkpeJS53rQYrIERvl0KriuNlh", + private_money_id: "2fbfec21-b0d0-43b5-922f-cea35d4549f7", + starts_at: "2021-12-29T19:19:26.000000Z", + ends_at: "2021-09-29T16:33:42.000000Z", + priority: 3282, + event: "topup", + bear_point_shop_id: "0db2f041-f80d-4ba4-a0d0-d91a71dc0a87", + description: "fziyB2HYxaS", + status: "enabled", + point_expires_at: "2022-09-26T15:19:17.000000Z", + point_expires_in_days: 171, + is_exclusive: false, + subject: "money", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -8464,39 +8682,52 @@ test('Check CreateCampaign | 22', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }], - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }], - blacklisted_product_rules: [{ + "classification_code": "c123" + }, { "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [5, 3, 4, 6, 3, 3], + applicable_days_of_week: [6, 3], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -8509,96 +8740,25 @@ test('Check CreateCampaign | 22', async () => { }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["1485bae7-bc91-4b7e-9532-97d31ed5ecfc", "0f960c70-0f8a-42c4-afe5-32c718d50ec0", "8f4a6f72-b920-4379-8abb-2683f77d6349", "fc204909-3519-4d1e-bd35-8d5d3d169acf", "159ee39a-ee51-45d1-b925-4fc7dbd3f582", "1365dc6f-fa85-4a9f-92e5-2926fd531d68"], - minimum_number_of_products: 9233, - minimum_number_of_amount: 4834, - minimum_number_for_combination_purchase: 6942, - exist_in_each_product_groups: true, - max_point_amount: 2896, - max_total_point_amount: 7167, - dest_private_money_id: "8eac67b2-059c-451c-af01-3e21d210b388", + applicable_shop_ids: ["c1f2c02b-d80c-4aaf-9faf-0d5519b87fb2", "87113ad1-8fee-4988-835e-893803bbd333", "e7f3dee7-78db-43be-9716-b086cf4839c8", "017b257f-0737-4768-bcbd-184649231630"], + blacklisted_shop_ids: ["89c4450f-271f-4cd4-8204-2b3885f6ce27", "42d3e903-d94e-4768-b765-b8efd5fb3e1f", "8999785b-4b4f-40a9-9017-d5a8c110c13a", "67601118-c2b6-4e2a-ba19-436121c3a27c", "ed9ad373-04bc-4b2e-aa1d-e2cfd2488380", "67b7f47b-56ff-4eef-b8b0-73d2c3d35606", "e7bd8dd2-8714-43fa-97fa-252c95dc1e0d"], + minimum_number_of_products: 5451, + minimum_number_of_amount: 9737, + minimum_number_for_combination_purchase: 7706, + exist_in_each_product_groups: false, + max_point_amount: 1773, + max_total_point_amount: 4078, + dest_private_money_id: "532da7fc-ccf8-4a6e-a0ae-8b9ebba2368e", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1835558922 - })); - status = response.code; - } catch (e) { - if (axios.isAxiosError(e) && e.response) { - status = e.response.status; - } - } - expect(typeof status).toBe('number'); - expect(status).not.toBe(400); -}) - -test('Check ListCampaigns | 0', async () => { - let status = 400; - try { - const response: Response = await client.send(new ListCampaigns({ - private_money_id: "e97d96a6-4994-49cd-9ab3-81e6fe93b873" - })); - status = response.code; - } catch (e) { - if (axios.isAxiosError(e) && e.response) { - status = e.response.status; - } - } - expect(typeof status).toBe('number'); - expect(status).not.toBe(400); -}) - -test('Check ListCampaigns | 1', async () => { - let status = 400; - try { - const response: Response = await client.send(new ListCampaigns({ - private_money_id: "e97d96a6-4994-49cd-9ab3-81e6fe93b873", - per_page: 28 - })); - status = response.code; - } catch (e) { - if (axios.isAxiosError(e) && e.response) { - status = e.response.status; - } - } - expect(typeof status).toBe('number'); - expect(status).not.toBe(400); -}) - -test('Check ListCampaigns | 2', async () => { - let status = 400; - try { - const response: Response = await client.send(new ListCampaigns({ - private_money_id: "e97d96a6-4994-49cd-9ab3-81e6fe93b873", - page: 8812, - per_page: 33 - })); - status = response.code; - } catch (e) { - if (axios.isAxiosError(e) && e.response) { - status = e.response.status; - } - } - expect(typeof status).toBe('number'); - expect(status).not.toBe(400); -}) - -test('Check ListCampaigns | 3', async () => { - let status = 400; - try { - const response: Response = await client.send(new ListCampaigns({ - private_money_id: "e97d96a6-4994-49cd-9ab3-81e6fe93b873", - available_to: "2020-07-14T14:34:50.000000Z", - page: 5746, - per_page: 25 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 199584620 })); status = response.code; } catch (e) { @@ -8610,15 +8770,11 @@ test('Check ListCampaigns | 3', async () => { expect(status).not.toBe(400); }) -test('Check ListCampaigns | 4', async () => { +test('Check GetCampaign | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListCampaigns({ - private_money_id: "e97d96a6-4994-49cd-9ab3-81e6fe93b873", - available_from: "2022-02-21T01:02:48.000000Z", - available_to: "2022-04-09T08:29:11.000000Z", - page: 408, - per_page: 35 + const response: Response = await client.send(new GetCampaign({ + campaign_id: "a11ad04d-4d90-4704-8c2f-d9671ef64615" })); status = response.code; } catch (e) { @@ -8630,16 +8786,11 @@ test('Check ListCampaigns | 4', async () => { expect(status).not.toBe(400); }) -test('Check ListCampaigns | 5', async () => { +test('Check UpdateCampaign | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListCampaigns({ - private_money_id: "e97d96a6-4994-49cd-9ab3-81e6fe93b873", - is_ongoing: false, - available_from: "2023-05-31T11:07:36.000000Z", - available_to: "2022-07-22T02:58:39.000000Z", - page: 3467, - per_page: 35 + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c" })); status = response.code; } catch (e) { @@ -8651,11 +8802,12 @@ test('Check ListCampaigns | 5', async () => { expect(status).not.toBe(400); }) -test('Check GetCampaign | 0', async () => { +test('Check UpdateCampaign | 1', async () => { let status = 400; try { - const response: Response = await client.send(new GetCampaign({ - campaign_id: "663770d7-bf54-4cf0-86b6-9fb6e0dc55af" + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + budget_caps_amount: 144506128 })); status = response.code; } catch (e) { @@ -8667,11 +8819,16 @@ test('Check GetCampaign | 0', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 0', async () => { +test('Check UpdateCampaign | 2', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86" + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 133502738 })); status = response.code; } catch (e) { @@ -8683,12 +8840,20 @@ test('Check UpdateCampaign | 0', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 1', async () => { +test('Check UpdateCampaign | 3', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - budget_caps_amount: 1846048109 + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1241976266 })); status = response.code; } catch (e) { @@ -8700,16 +8865,21 @@ test('Check UpdateCampaign | 1', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 2', async () => { +test('Check UpdateCampaign | 4', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + max_total_point_amount: 4625, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1161308371 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1461831200 })); status = response.code; } catch (e) { @@ -8721,17 +8891,22 @@ test('Check UpdateCampaign | 2', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 3', async () => { +test('Check UpdateCampaign | 5', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - max_total_point_amount: 5715, + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + max_point_amount: 60, + max_total_point_amount: 5755, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1062068093 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 888150371 })); status = response.code; } catch (e) { @@ -8743,18 +8918,23 @@ test('Check UpdateCampaign | 3', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 4', async () => { +test('Check UpdateCampaign | 6', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - max_point_amount: 6330, - max_total_point_amount: 8831, + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + exist_in_each_product_groups: true, + max_point_amount: 1561, + max_total_point_amount: 1014, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 769812961 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 179064548 })); status = response.code; } catch (e) { @@ -8766,19 +8946,24 @@ test('Check UpdateCampaign | 4', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 5', async () => { +test('Check UpdateCampaign | 7', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - exist_in_each_product_groups: true, - max_point_amount: 1270, - max_total_point_amount: 124, + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + minimum_number_for_combination_purchase: 2373, + exist_in_each_product_groups: false, + max_point_amount: 458, + max_total_point_amount: 5925, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 173694542 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1644615059 })); status = response.code; } catch (e) { @@ -8790,20 +8975,25 @@ test('Check UpdateCampaign | 5', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 6', async () => { +test('Check UpdateCampaign | 8', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - minimum_number_for_combination_purchase: 2135, + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + minimum_number_of_amount: 7844, + minimum_number_for_combination_purchase: 7493, exist_in_each_product_groups: true, - max_point_amount: 1276, - max_total_point_amount: 9060, + max_point_amount: 3636, + max_total_point_amount: 189, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1165020838 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 460544034 })); status = response.code; } catch (e) { @@ -8815,21 +9005,26 @@ test('Check UpdateCampaign | 6', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 7', async () => { +test('Check UpdateCampaign | 9', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - minimum_number_of_amount: 3475, - minimum_number_for_combination_purchase: 5299, + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + minimum_number_of_products: 1906, + minimum_number_of_amount: 6374, + minimum_number_for_combination_purchase: 5056, exist_in_each_product_groups: false, - max_point_amount: 6011, - max_total_point_amount: 5516, + max_point_amount: 6512, + max_total_point_amount: 1043, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1777436902 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 176833848 })); status = response.code; } catch (e) { @@ -8841,22 +9036,27 @@ test('Check UpdateCampaign | 7', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 8', async () => { +test('Check UpdateCampaign | 10', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - minimum_number_of_products: 2258, - minimum_number_of_amount: 9990, - minimum_number_for_combination_purchase: 4946, - exist_in_each_product_groups: true, - max_point_amount: 3456, - max_total_point_amount: 7634, + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + blacklisted_shop_ids: ["41d150a8-266d-4f47-9bdb-41d516e61465", "e3b9130a-229e-4415-8216-4abf4f000993", "58f64da9-9eb8-48df-8aca-0bf46d663cf1", "354910ef-5266-44cd-8271-6d31014cf454", "ac4393f9-b946-4263-975d-3b3097eea620", "6b2d6855-8ff5-46db-9c9e-02bfc3f2f463", "40210e23-61b5-487b-b5e7-bc914768eb7e", "dd159595-a532-47d3-bc70-0f8aaad752c4"], + minimum_number_of_products: 5872, + minimum_number_of_amount: 3777, + minimum_number_for_combination_purchase: 9860, + exist_in_each_product_groups: false, + max_point_amount: 2314, + max_total_point_amount: 3359, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1301092573 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1284662974 })); status = response.code; } catch (e) { @@ -8868,23 +9068,28 @@ test('Check UpdateCampaign | 8', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 9', async () => { +test('Check UpdateCampaign | 11', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - applicable_shop_ids: ["4bbd3162-b4bb-4f35-b1a5-46ba6148651b", "cda6d07a-1155-4544-aa81-b166dcba48f9", "ae7c1721-ee2a-4ec7-8270-e69fcc091380", "1c897513-09ce-47a6-9e6b-68493eed742b", "ac9ee7e9-c302-4e55-845b-fc98e531b5ae", "1e361976-63f3-4583-baab-1764889ba0a5", "b57c3e30-6037-4bbd-8c69-5b82ea40fb33", "8e158dc7-99f9-4fbc-99ad-1a86bddc371e"], - minimum_number_of_products: 9363, - minimum_number_of_amount: 1299, - minimum_number_for_combination_purchase: 4422, + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + applicable_shop_ids: ["b2b78d5d-9acf-439a-91d1-28392be42c25", "0ffa4fc7-f582-4c6f-859f-fa521b79b6e5", "5af92926-1d68-4410-a11d-0900bd68eb89", "5a4b7599-f9d3-4b2b-8db9-0b4f3defdbfe", "8eac67b2-059c-451c-af01-3e21d210b388", "6d686809-96a6-4994-8d1a-feb3608581e6"], + blacklisted_shop_ids: ["88676ddb-e26b-49e0-8a71-1a58c40703b8", "044562d7-c197-413e-a2eb-4978dcce315f", "b6acb75d-8d8a-4562-9754-acf0858c4786", "67e6e2b6-9fb6-45af-a95b-cd474218636a"], + minimum_number_of_products: 7346, + minimum_number_of_amount: 2968, + minimum_number_for_combination_purchase: 5715, exist_in_each_product_groups: true, - max_point_amount: 2933, - max_total_point_amount: 6728, + max_point_amount: 6330, + max_total_point_amount: 8831, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 233495880 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 769812961 })); status = response.code; } catch (e) { @@ -8896,30 +9101,56 @@ test('Check UpdateCampaign | 9', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 10', async () => { +test('Check UpdateCampaign | 12', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["1ed1f2c7-d3a2-4058-af35-53e03c81bd2e", "f3b70088-e1ba-4a0f-9550-f6843e6f4da2"], - minimum_number_of_products: 1838, - minimum_number_of_amount: 5548, - minimum_number_for_combination_purchase: 160, + applicable_shop_ids: ["6b8ec07b-5e4d-4856-acfb-77aa8d77e363", "c570cea5-ff73-4d92-b2bf-977a07dc558b", "e9f188e5-b985-48d1-8551-1d6286110d7f", "2c82ddd1-18dc-462a-b762-b4bb60a7df35", "a61be5b1-57a5-46ba-9b7a-11553dff8544", "c176bcea-8e81-4166-b921-ee2a0a670ec7"], + blacklisted_shop_ids: ["743ef470-e69f-4380-93ce-b7a69b808ede", "7213a46b-6849-442b-a902-1e55be90d044", "5ca8f75b-fc98-45ae-b6f3-e58302e384ba"], + minimum_number_of_products: 4268, + minimum_number_of_amount: 5989, + minimum_number_for_combination_purchase: 8358, exist_in_each_product_groups: true, - max_point_amount: 7207, - max_total_point_amount: 2538, + max_point_amount: 8248, + max_total_point_amount: 1357, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 39477703 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 146363242 })); status = response.code; } catch (e) { @@ -8931,12 +9162,12 @@ test('Check UpdateCampaign | 10', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 11', async () => { +test('Check UpdateCampaign | 13', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - applicable_days_of_week: [2, 6, 3, 3, 2, 5], + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + applicable_days_of_week: [3, 1, 4], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -8961,19 +9192,30 @@ test('Check UpdateCampaign | 11', async () => { }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["4632bf59-dcb5-4049-b69d-11762472c923", "11cf33fe-56bb-4759-a17c-e44a9d4338aa", "5f77f094-7128-4e7f-bc71-8d454c8014e3", "0cafe261-eeee-4a73-9373-1fd0940982b2"], - minimum_number_of_products: 2184, - minimum_number_of_amount: 9496, - minimum_number_for_combination_purchase: 5902, + applicable_shop_ids: ["bddc371e-a492-47a2-9245-5de40a36cb74", "4c533723-6fb6-4a47-8781-014a800c3331", "1ed1f2c7-d3a2-4058-af35-53e03c81bd2e", "f3b70088-e1ba-4a0f-9550-f6843e6f4da2", "e91cc72d-d5ab-409f-8006-6a105d819c26", "429a09e9-61c6-4f2d-8aaa-45f5b025251a", "2e164ebe-7e53-44e3-b245-20c7c74dc1e3"], + blacklisted_shop_ids: ["2d5edcb5-f049-47b6-9d76-c92311cf33fe", "b27056bb-2759-43a1-bc4a-38aa5f77f094", "c7667128-3e7f-4f7c-b145-14e30cafe261", "ad76eeee-ca73-4853-b3d0-82b21d5cf363", "3f4f2aa3-0887-4517-8d5e-a0bde37900e5", "089b10fd-95c9-4d76-bbcb-731db186acd0", "34109fb9-a693-4ae2-9fdb-a56780fa11ae", "e5b97cd9-dee1-45ae-916e-cf0f43ae0151", "4eafcce2-48d6-493a-94d1-68cdd7580739", "8f70a35a-aab6-4c86-92c7-1ab0914f49eb"], + minimum_number_of_products: 3773, + minimum_number_of_amount: 4164, + minimum_number_for_combination_purchase: 1049, exist_in_each_product_groups: true, - max_point_amount: 8382, - max_total_point_amount: 230, + max_point_amount: 3700, + max_total_point_amount: 7207, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 144380158 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1273741777 })); status = response.code; } catch (e) { @@ -8985,11 +9227,11 @@ test('Check UpdateCampaign | 11', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 12', async () => { +test('Check UpdateCampaign | 14', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", blacklisted_product_rules: [{ "product_code": "4912345678904", "classification_code": "c123" @@ -9005,23 +9247,8 @@ test('Check UpdateCampaign | 12', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [3, 3, 5, 0, 1, 3, 2], + applicable_days_of_week: [2, 0, 5], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9031,34 +9258,24 @@ test('Check UpdateCampaign | 12', async () => { }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["2845dee1-e5ae-4111-ae0f-01514eafcce2", "aaea48d6-893a-4494-91cd-07398f70a35a", "2b95aab6-6c86-4dd2-87b0-49ebf6138ebc", "0cd7e98f-d043-4418-9873-3f1470955c26", "cbebc1d0-9be4-4922-baf7-0c90e3471f45", "912395f2-bc1d-4e7d-acb5-da116b009b6d", "29590a58-3988-4708-abbe-68296e105dc7", "3333f13f-cbfa-46f5-8c02-e58553d9c527", "4530dad7-5833-4546-abd7-807f3added3e", "83e6959a-1469-448d-b9da-4468386e4949"], - minimum_number_of_products: 6652, - minimum_number_of_amount: 3899, - minimum_number_for_combination_purchase: 9776, - exist_in_each_product_groups: false, - max_point_amount: 4496, - max_total_point_amount: 7383, + applicable_shop_ids: ["5f9dda11-9b6d-4a58-8808-fe2b5dc902be", "ece06829-5dc7-413f-baf5-254cda00cb02", "4ebae585-c527-4ad7-b346-336bb7d29cd7", "9641807f-ed3e-459a-a98d-1239e73eacda", "f1094468-4949-49fb-ba2f-406f0e45d18f", "52fd75ea-5cd6-400f-9aef-50c1e88924f0"], + blacklisted_shop_ids: ["21623f30-970f-4256-a306-840e7b90fcc1", "c2944358-17ba-4102-964a-99292d8c8fce", "3b7059a7-13fd-4a05-8a9b-f00432acdb9c", "2bcb1895-f493-4001-8e10-9920f28912b8", "3332cf27-fcb1-4009-8c07-c7c9a79caefb", "536ecf8b-b234-42af-b478-70a4009dc68d"], + minimum_number_of_products: 7720, + minimum_number_of_amount: 2748, + minimum_number_for_combination_purchase: 1664, + exist_in_each_product_groups: true, + max_point_amount: 1390, + max_total_point_amount: 5924, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1025667088 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 753345698 })); status = response.code; } catch (e) { @@ -9070,11 +9287,11 @@ test('Check UpdateCampaign | 12', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 13', async () => { +test('Check UpdateCampaign | 15', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -9087,52 +9304,87 @@ test('Check UpdateCampaign | 13', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }], blacklisted_product_rules: [{ "product_code": "4912345678904", "classification_code": "c123" - }], - applicable_days_of_week: [0, 6, 3, 6, 6, 1], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [0, 6, 2], + applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["0e2aad56-794a-4929-8ea7-13fd509cda05", "6aae338a-e89b-4004-9c95-f4936f465001", "92c529ce-c410-4920-b827-fcb108e1c009"], - minimum_number_of_products: 7373, - minimum_number_of_amount: 1994, - minimum_number_for_combination_purchase: 3980, - exist_in_each_product_groups: true, - max_point_amount: 4784, - max_total_point_amount: 889, + applicable_shop_ids: ["dffe7175-3982-40c5-bc9f-ddcf3d0bafd6"], + blacklisted_shop_ids: ["a9eb04fd-f74b-4bfe-b0d0-6ea13becf6fc", "eacacb2b-af3c-4621-ba44-f543c82a507e", "377f6799-7a79-4afb-9542-862447ec851e", "10bbe3e7-c1b3-4b91-82d6-f189f21d379a", "a22129e1-b923-4856-8567-09293d5a65b5"], + minimum_number_of_products: 4754, + minimum_number_of_amount: 4178, + minimum_number_for_combination_purchase: 3660, + exist_in_each_product_groups: false, + max_point_amount: 6030, + max_total_point_amount: 7956, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 148336805 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1658430366 })); status = response.code; } catch (e) { @@ -9144,11 +9396,11 @@ test('Check UpdateCampaign | 13', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 14', async () => { +test('Check UpdateCampaign | 16', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -9189,14 +9441,18 @@ test('Check UpdateCampaign | 14', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }], - product_based_point_rules: [{ + }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -9227,8 +9483,11 @@ test('Check UpdateCampaign | 14', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_days_of_week: [6, 0], + applicable_days_of_week: [2, 6, 2, 0, 5, 1, 1, 5, 2], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9239,18 +9498,23 @@ test('Check UpdateCampaign | 14', async () => { "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["f0621bc6-dc0a-46d0-9c10-7175df743982"], - minimum_number_of_products: 8390, - minimum_number_of_amount: 5437, - minimum_number_for_combination_purchase: 7632, + applicable_shop_ids: ["9d307326-7ebd-4fa9-9ec6-81d4b9e5af93", "ea8a56ac-98c7-4680-a372-69dbfe137e32"], + blacklisted_shop_ids: ["5c721506-6b11-4f76-a82c-3552e51fc35b", "24629dee-305e-4230-a156-382f3474dffb", "de8af631-43cb-4ded-bf4b-bc16b963edbc", "f104e971-d4dd-4989-bb4e-eee8c81a17f0", "d817fba0-5b0b-4df5-8486-85b12f14d741"], + minimum_number_of_products: 4692, + minimum_number_of_amount: 9930, + minimum_number_for_combination_purchase: 3705, exist_in_each_product_groups: true, - max_point_amount: 1278, - max_total_point_amount: 3071, + max_point_amount: 92, + max_total_point_amount: 1351, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1972410865 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 31217666 })); status = response.code; } catch (e) { @@ -9262,22 +9526,17 @@ test('Check UpdateCampaign | 14', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 15', async () => { +test('Check UpdateCampaign | 17', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - subject: "money", + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -9291,90 +9550,43 @@ test('Check UpdateCampaign | 15', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }], - blacklisted_product_rules: [{ - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }, { + "point_amount": 5, + "point_amount_unit": "percent", "product_code": "4912345678904", - "classification_code": "c123" + "is_multiply_by_count": true, + "required_count": 2 }, { + "point_amount": 5, + "point_amount_unit": "percent", "product_code": "4912345678904", - "classification_code": "c123" + "is_multiply_by_count": true, + "required_count": 2 }, { + "point_amount": 5, + "point_amount_unit": "percent", "product_code": "4912345678904", - "classification_code": "c123" - }], - applicable_days_of_week: [6, 1, 1, 3], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" + "is_multiply_by_count": true, + "required_count": 2 }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: ["60548624-851e-43e7-b391-1a02842e45d6", "4b08f189-379a-49e1-a356-4a858f1f9d67", "776b0929-65b5-45ec-9180-ac134a935051"], - minimum_number_of_products: 3660, - minimum_number_of_amount: 6030, - minimum_number_for_combination_purchase: 7956, - exist_in_each_product_groups: false, - max_point_amount: 3775, - max_total_point_amount: 1907, - applicable_account_metadata: { - "key": "sex", - "value": "male" - }, - budget_caps_amount: 1799661733 - })); - status = response.code; - } catch (e) { - if (axios.isAxiosError(e) && e.response) { - status = e.response.status; - } - } - expect(typeof status).toBe('number'); - expect(status).not.toBe(400); -}) - -test('Check UpdateCampaign | 16', async () => { - let status = 400; - try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - is_exclusive: true, - subject: "money", - amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -9387,8 +9599,26 @@ test('Check UpdateCampaign | 16', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_days_of_week: [5, 2, 2, 1, 6, 5, 1, 6, 6, 4], + applicable_days_of_week: [1, 4, 0], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9401,19 +9631,27 @@ test('Check UpdateCampaign | 16', async () => { }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["cf34b680-c8a3-4b72-9b32-14b45c721506", "aefa6b11-0f76-40a8-ac52-c35b24629dee", "d6b7305e-c230-4d21-962f-dffbde8af631", "438843cb-0ded-453f-8b16-edbcf104e971", "7292d4dd-0989-43bb-8ee8-17f0d817fba0", "e6b55b0b-2df5-4e44-86b1-d741c0791253", "3fcab134-3e90-46c9-8218-4e789c6709f6", "44b73670-805b-4822-8601-f39ba5f626d0"], - minimum_number_of_products: 9641, - minimum_number_of_amount: 6216, - minimum_number_for_combination_purchase: 9135, + applicable_shop_ids: ["10b3e8a0-661a-49c6-983d-55366b330ba7", "479d6b29-9067-48ad-98a0-a77421210cdb", "bf9b3264-1533-4398-920b-d2ee2e26dfbd", "d5cc43ca-98f9-41f9-90ce-f0653e37e0b7", "93dc68df-eebe-47b4-915c-c5a78e2a9215", "b4de44c0-f4b2-4297-98fb-4690bda74400", "a84f51e2-8476-40a3-ba85-fb26c9de83de", "622ce946-a774-4397-a0c4-70ef18566181"], + blacklisted_shop_ids: ["caaf65ae-3af5-4f25-af64-ba0c1156adfa", "68c06994-dfd0-4507-9fd3-38810804a9b7"], + minimum_number_of_products: 6175, + minimum_number_of_amount: 5457, + minimum_number_for_combination_purchase: 9743, exist_in_each_product_groups: true, - max_point_amount: 2658, - max_total_point_amount: 4133, + max_point_amount: 4606, + max_total_point_amount: 6074, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1540138721 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1373908118 })); status = response.code; } catch (e) { @@ -9425,14 +9663,13 @@ test('Check UpdateCampaign | 16', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 17', async () => { +test('Check UpdateCampaign | 18', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - point_expires_in_days: 4488, - is_exclusive: true, - subject: "money", + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + is_exclusive: false, + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -9468,6 +9705,11 @@ test('Check UpdateCampaign | 17', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -9523,6 +9765,12 @@ test('Check UpdateCampaign | 17', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }], blacklisted_product_rules: [{ "product_code": "4912345678904", @@ -9545,15 +9793,15 @@ test('Check UpdateCampaign | 17', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" - }], - applicable_days_of_week: [1, 5, 0, 0, 4, 3, 4, 3], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [4, 3, 6], + applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { @@ -9575,18 +9823,23 @@ test('Check UpdateCampaign | 17', async () => { "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["665e330b-d2ee-4fbd-8af9-b1f972c70910", "ad5607ce-f065-40b7-9fbe-17b45591cf51", "ebc4bf5c-c5a7-4215-80b2-a29760739c18"], - minimum_number_of_products: 1681, - minimum_number_of_amount: 1025, - minimum_number_for_combination_purchase: 4579, - exist_in_each_product_groups: true, - max_point_amount: 164, - max_total_point_amount: 7355, + applicable_shop_ids: ["d6211e8a-dcc3-4522-9d56-0f6c57ced4cd", "98da092b-904b-4cc6-aea1-bc4854c2c36b", "06680354-d05c-4f48-85fb-0960d24ce747", "4aba8caf-d452-4829-97d5-1142f52b6801", "712bb9d6-05d5-41da-9be1-efb11316639b"], + blacklisted_shop_ids: ["5b36ecf2-93ed-4cff-bc41-db785c77907a", "363fe61f-90df-421a-8614-e7d54c2e30c6", "8664d2b6-6b82-4ee9-a82c-76f6aebe406c", "5caee18d-6d5d-4d7d-897f-527b94f3311b", "b4aa8634-b906-451e-851a-56dcd7d014ff", "b85786f5-56af-4b6f-8fc5-d810461eae6e", "ead2b2a6-445f-46c0-a9bf-054b20f132f2"], + minimum_number_of_products: 2402, + minimum_number_of_amount: 8911, + minimum_number_for_combination_purchase: 5023, + exist_in_each_product_groups: false, + max_point_amount: 747, + max_total_point_amount: 1030, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 963819398 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1744193088 })); status = response.code; } catch (e) { @@ -9598,57 +9851,27 @@ test('Check UpdateCampaign | 17', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 18', async () => { +test('Check UpdateCampaign | 19', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - point_expires_at: "2023-08-03T16:56:06.000000Z", - point_expires_in_days: 991, - is_exclusive: true, - subject: "money", + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + point_expires_in_days: 7827, + is_exclusive: false, + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -9667,11 +9890,8 @@ test('Check UpdateCampaign | 18', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [3, 1], + applicable_days_of_week: [3, 0, 1, 2, 2, 4, 6, 0, 4, 0], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9681,28 +9901,24 @@ test('Check UpdateCampaign | 18', async () => { }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["d4babf2f-2164-4a0c-ba94-dfd0e22c3507", "814cc85f-f6d3-4881-b71e-95505508260e", "8d8b0a12-704a-4730-bd85-57b951e42c95", "e35a3a0b-3f99-4b77-a9e8-be1278e0f1ec", "9b21671b-11c6-4a36-948a-dcc31598c522", "c7fa359d-2e56-4f6c-8d2b-904b7b5a3cc6"], - minimum_number_of_products: 6191, - minimum_number_of_amount: 876, - minimum_number_for_combination_purchase: 853, + applicable_shop_ids: ["e97de3f3-4c37-4c2d-a508-8cfea6540930", "7dbe535e-bce4-4312-9c6b-86e95e7b3edb", "e62b54c1-5fc1-42e1-9a38-a76a7a4d8177", "4aaaf1d8-212f-44b6-89dd-a2a6c0545929", "da76f9c6-d8cc-4543-82df-cfdf9054805b", "0b52ae31-e63e-4d18-9886-3ddee7eef4dd", "9016afec-1c76-417a-8542-cd114c224461", "d2af427a-33be-4e53-8345-b0281d4fc23d"], + blacklisted_shop_ids: ["7661bbe8-a8bd-4360-850c-24479f5b5086", "340bfda0-a3bc-4bb2-a7c5-7c0633462791"], + minimum_number_of_products: 7660, + minimum_number_of_amount: 1631, + minimum_number_for_combination_purchase: 5133, exist_in_each_product_groups: true, - max_point_amount: 4550, - max_total_point_amount: 2401, + max_point_amount: 1331, + max_total_point_amount: 5039, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1380771656 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 760799063 })); status = response.code; } catch (e) { @@ -9714,14 +9930,13 @@ test('Check UpdateCampaign | 18', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 19', async () => { +test('Check UpdateCampaign | 20', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - status: "disabled", - point_expires_at: "2022-11-11T20:49:22.000000Z", - point_expires_in_days: 2090, + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + point_expires_at: "2023-02-05T18:10:16.000000Z", + point_expires_in_days: 1855, is_exclusive: false, subject: "all", amount_based_point_rules: [{ @@ -9739,6 +9954,36 @@ test('Check UpdateCampaign | 19', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -9752,11 +9997,56 @@ test('Check UpdateCampaign | 19', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }], - blacklisted_product_rules: [{ + }, { + "point_amount": 5, + "point_amount_unit": "percent", "product_code": "4912345678904", - "classification_code": "c123" + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ "product_code": "4912345678904", "classification_code": "c123" }, { @@ -9775,7 +10065,7 @@ test('Check UpdateCampaign | 19', async () => { "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [2, 3, 1, 1, 3, 6], + applicable_days_of_week: [4, 5, 6, 5, 4, 0, 1, 6], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9785,19 +10075,27 @@ test('Check UpdateCampaign | 19', async () => { }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["1753db78-907a-461f-9f1a-014665548214", "b5afe7d5-30c6-42b6-82e9-c0683867ad2c"], - minimum_number_of_products: 109, - minimum_number_of_amount: 8590, - minimum_number_for_combination_purchase: 970, - exist_in_each_product_groups: false, - max_point_amount: 4732, - max_total_point_amount: 1589, + applicable_shop_ids: ["d3beb8b9-c73a-4edd-a008-7bbc7537621f", "345c0d12-b142-4029-8228-74b1531a389e", "f1c39d18-8fd9-4983-8e2f-6943a50f66ec"], + blacklisted_shop_ids: ["fd836e3a-ebc5-4830-a86e-a33bde898838", "15c39237-a4c1-4633-8a92-2f0632d42e89", "dd781830-560c-476c-b6c0-e10b6c8ee176", "66eb225c-86db-4773-90f0-d85c0515f6be"], + minimum_number_of_products: 5967, + minimum_number_of_amount: 9276, + minimum_number_for_combination_purchase: 8540, + exist_in_each_product_groups: true, + max_point_amount: 4062, + max_total_point_amount: 8969, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1833154823 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 2109986496 })); status = response.code; } catch (e) { @@ -9809,17 +10107,16 @@ test('Check UpdateCampaign | 19', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 20', async () => { +test('Check UpdateCampaign | 21', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - description: "uoOEnKraNjpsN9SjDxtxrgs7e0dkiAA", - status: "disabled", - point_expires_at: "2023-04-14T04:35:38.000000Z", - point_expires_in_days: 5177, + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + status: "enabled", + point_expires_at: "2022-11-11T10:14:13.000000Z", + point_expires_in_days: 4527, is_exclusive: true, - subject: "all", + subject: "money", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -9865,6 +10162,11 @@ test('Check UpdateCampaign | 20', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -9915,32 +10217,8 @@ test('Check UpdateCampaign | 20', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [1, 6, 4, 3, 2, 3, 1], + applicable_days_of_week: [2, 4, 2, 5, 0, 2, 4], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9968,19 +10246,27 @@ test('Check UpdateCampaign | 20', async () => { }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["df324786-3dde-44dd-ac76-217ac2ccd605", "9d1e1b42-cd11-4461-babe-2e53af301fc3", "46fbbc45-b028-423d-bbba-fb9f27fbb731", "7661bbe8-a8bd-4360-850c-24479f5b5086", "340bfda0-a3bc-4bb2-a7c5-7c0633462791", "c59cf76b-5deb-42dd-9e0c-ebd05bd30532", "5678ba0d-93ae-4f56-a508-f31dad866a49", "78367916-efd0-41f9-823e-8b372ff08d7b", "8edb5d48-aa3e-4e89-8557-96b7c19cdb24"], - minimum_number_of_products: 7775, - minimum_number_of_amount: 6886, - minimum_number_for_combination_purchase: 4520, - exist_in_each_product_groups: true, - max_point_amount: 5876, - max_total_point_amount: 963, + applicable_shop_ids: ["8b8c6a62-5fb5-4c57-b964-f78da9f18db4", "af1211e6-4061-46b7-ad39-e9e0f8574894", "1664d553-bf6e-49cf-88d3-e466d104fc5b", "6f2213ea-2b0a-404b-9beb-f5708d2780b3", "cfe3927c-a951-48df-976b-61a948d99ac9", "37089e9c-029d-4d9f-b1b1-0add43e5aceb"], + blacklisted_shop_ids: ["d7a0e6ab-b750-4bd5-8f3b-a1a2bb66b257", "4133b82a-ecc9-4a1e-978a-d49e29247dcf", "65af3ec3-8f43-42a0-a609-963907d4b5d8", "9548b2be-0b52-4c3c-a09b-3e587bd9dfd3", "4200ba06-178f-4a60-abbd-dcfd443aad8b", "b695699b-93db-49d7-8414-709f517b86ab", "ab0d2810-ee8d-40ff-a20b-85768933d367", "5bc645f7-f24d-4764-bd43-a3366b5fd159"], + minimum_number_of_products: 6900, + minimum_number_of_amount: 9243, + minimum_number_for_combination_purchase: 2470, + exist_in_each_product_groups: false, + max_point_amount: 5148, + max_total_point_amount: 6743, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1405008058 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1940142123 })); status = response.code; } catch (e) { @@ -9992,50 +10278,60 @@ test('Check UpdateCampaign | 20', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 21', async () => { +test('Check UpdateCampaign | 22', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - event: "external-transaction", - description: "BB1YNClE0n87A30l6vspNWH9u8x4Yq2mx", + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + description: "BM615BS", status: "enabled", - point_expires_at: "2023-05-16T03:50:44.000000Z", - point_expires_in_days: 74, - is_exclusive: false, + point_expires_at: "2020-08-16T21:57:32.000000Z", + point_expires_in_days: 4437, + is_exclusive: true, subject: "money", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -10053,7 +10349,66 @@ test('Check UpdateCampaign | 21', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [6, 4, 2], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" }, { + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["6cbe9517-329d-4dab-9dd1-3afdea31d584", "9fa8b21c-88ff-4ba0-8817-870ecc0b6365", "cf4ab4af-da44-402e-a84b-9cace4b0b583", "20d33981-8c78-4bde-9896-47e4b3ee081f", "1feb6bc5-7fe7-4426-8a60-3db3ce16574f", "a019c6ff-2d97-4378-bb28-48dfa31d4647", "f63b846c-8ef3-4e5a-a156-cb24954d9d53"], + blacklisted_shop_ids: ["a71eadaf-4805-4f88-9d5d-3b8f66ce191b"], + minimum_number_of_products: 4123, + minimum_number_of_amount: 9451, + minimum_number_for_combination_purchase: 60, + exist_in_each_product_groups: false, + max_point_amount: 5144, + max_total_point_amount: 8402, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1136588215 + })); + status = response.code; + } catch (e) { + if (axios.isAxiosError(e) && e.response) { + status = e.response.status; + } + } + expect(typeof status).toBe('number'); + expect(status).not.toBe(400); +}) + +test('Check UpdateCampaign | 23', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + event: "payment", + description: "fYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPC", + status: "disabled", + point_expires_at: "2020-05-25T08:26:10.000000Z", + point_expires_in_days: 7197, + is_exclusive: true, + subject: "all", + amount_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -10099,66 +10454,29 @@ test('Check UpdateCampaign | 21', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [5, 4, 6, 1, 5], + applicable_days_of_week: [0, 4, 4, 3, 1], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["f8574894-d553-4f6e-8f48-87d3ab29e466"], - minimum_number_of_products: 5099, - minimum_number_of_amount: 348, - minimum_number_for_combination_purchase: 180, - exist_in_each_product_groups: true, - max_point_amount: 4204, - max_total_point_amount: 8618, + applicable_shop_ids: ["bbb7f820-b301-43af-92a2-6a3915e9a2a2", "5be446ce-2d01-45b8-a4e8-939d3cc531eb", "1722609f-46aa-4378-a080-fb6f2816237e", "d07525d3-a49e-4051-a3c6-c659195834c4", "ea7431d5-9740-4ed5-b01f-712c1e98370b", "bdc2c048-0510-4df5-8733-6b3397d80432", "b1f337eb-86d9-43e4-81d2-81c5c07475ff", "48cf69d1-6d9f-4625-9ac3-1e0f8287ffb3", "b919d8dd-80b9-4f01-a0a2-ae97dfd8438c"], + blacklisted_shop_ids: ["fd90c942-d255-4e76-b415-ff0796416346", "352f702c-7138-4edf-9e03-0a0bc6fe3bff", "cb1852ca-0ddd-4922-b755-66af91c7aa17", "0fceb7fa-ccf9-4806-92bc-4e0f8eedfddb", "57b56fc4-1b9e-433b-877b-dbd977491445"], + minimum_number_of_products: 2679, + minimum_number_of_amount: 221, + minimum_number_for_combination_purchase: 4906, + exist_in_each_product_groups: false, + max_point_amount: 739, + max_total_point_amount: 356, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1222220490 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 730273425 })); status = response.code; } catch (e) { @@ -10170,18 +10488,18 @@ test('Check UpdateCampaign | 21', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 22', async () => { +test('Check UpdateCampaign | 24', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - priority: 7836, + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + priority: 9135, event: "payment", - description: "11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfD", - status: "disabled", - point_expires_at: "2020-04-08T14:09:01.000000Z", - point_expires_in_days: 5192, - is_exclusive: false, + description: "IqdmvTV8RBzp0gixs", + status: "enabled", + point_expires_at: "2020-02-28T19:40:09.000000Z", + point_expires_in_days: 1115, + is_exclusive: true, subject: "all", amount_based_point_rules: [{ "point_amount": 5, @@ -10193,6 +10511,26 @@ test('Check UpdateCampaign | 22', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -10206,6 +10544,18 @@ test('Check UpdateCampaign | 22', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }], blacklisted_product_rules: [{ "product_code": "4912345678904", @@ -10216,18 +10566,18 @@ test('Check UpdateCampaign | 22', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" - }], - applicable_days_of_week: [1], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [2, 4, 1], + applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { @@ -10243,18 +10593,23 @@ test('Check UpdateCampaign | 22', async () => { "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["2749e009-eadf-4e50-8343-a022772edc1c"], - minimum_number_of_products: 3633, - minimum_number_of_amount: 933, - minimum_number_for_combination_purchase: 6089, - exist_in_each_product_groups: true, - max_point_amount: 2813, - max_total_point_amount: 8116, + applicable_shop_ids: ["b51020a3-76ad-44d1-9f3e-7d4426219476", "67d3e939-405b-4e54-8ed7-95b3ed4fd8df", "002e5c04-762f-46f4-af97-f56eecab59f2", "0c10f216-bbf5-44b5-843d-ac0159bd5f2e", "0cd2aef8-9e78-4f9b-92a7-f78d8c1b9d97", "d973c19d-9522-4edc-8731-d22eff86566b", "95479d96-ef22-497d-88e9-aa5200c399b4", "cd651564-4b61-44d4-9304-ed5456fd4db4", "75d3759f-b13f-4830-b1fb-a893c52a265e"], + blacklisted_shop_ids: ["dca915fa-61d9-4eba-bcd5-533966fdcfad"], + minimum_number_of_products: 336, + minimum_number_of_amount: 694, + minimum_number_for_combination_purchase: 227, + exist_in_each_product_groups: false, + max_point_amount: 1470, + max_total_point_amount: 9356, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1181237434 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1339082278 })); status = response.code; } catch (e) { @@ -10266,20 +10621,20 @@ test('Check UpdateCampaign | 22', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 23', async () => { +test('Check UpdateCampaign | 25', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - ends_at: "2021-09-25T13:53:31.000000Z", - priority: 4029, - event: "topup", - description: "9N8hkxoSQFYDUU0HuG332kYdREQC39nZBUv4F8J7UzyDYEv7bctcmIqdmvTV8RBzp0gixsKZWoUeORL98QDv9TW3tonru5DxxR1kiR4daTST401zYU9O5bmxo5R8", + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + ends_at: "2022-05-13T16:48:47.000000Z", + priority: 4100, + event: "payment", + description: "R8HD", status: "disabled", - point_expires_at: "2021-12-03T15:45:24.000000Z", - point_expires_in_days: 7212, - is_exclusive: true, - subject: "all", + point_expires_at: "2024-05-05T23:12:50.000000Z", + point_expires_in_days: 3048, + is_exclusive: false, + subject: "money", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -10290,38 +10645,43 @@ test('Check UpdateCampaign | 23', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }], - product_based_point_rules: [{ + }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -10361,15 +10721,30 @@ test('Check UpdateCampaign | 23', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" - }], - applicable_days_of_week: [3, 0, 0, 3, 4, 1, 5, 3], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [3, 4, 4, 1, 0, 1], + applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { @@ -10379,18 +10754,23 @@ test('Check UpdateCampaign | 23', async () => { "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["aad860f8-3ca1-4cde-92fb-5d82b3eac05e", "757a7ed1-fd20-4a9f-9f95-1593d5af36a1", "458ad14f-8819-4a60-b31f-e882be0574cf", "b89422f8-f4ca-4679-8e28-a53a9bd28a69", "6b74bc75-730a-4491-a106-a774b08c8733", "bae993de-4f04-4ab0-af5f-338866e78052", "3f1dbc06-17a8-45f3-8753-40ccce9c2a23", "bf738611-db5f-4c60-a926-45a8c22edb34", "10b24f0a-0e46-4816-94c1-15d756dd79de", "fee124ea-6476-4b9a-a3ce-382feab35f22"], - minimum_number_of_products: 7040, - minimum_number_of_amount: 2375, - minimum_number_for_combination_purchase: 9581, - exist_in_each_product_groups: true, - max_point_amount: 8654, - max_total_point_amount: 8581, + applicable_shop_ids: ["b3eac05e-7ed1-4d20-9f1f-ef95d5ed1593", "d5af36a1-d14f-4819-a0f3-ce1f7bcee882", "be0574cf-22f8-44ca-b90e-1d28a9dba53a"], + blacklisted_shop_ids: ["6b74bc75-730a-4491-a106-a774b08c8733", "bae993de-4f04-4ab0-af5f-338866e78052", "3f1dbc06-17a8-45f3-8753-40ccce9c2a23", "bf738611-db5f-4c60-a926-45a8c22edb34", "10b24f0a-0e46-4816-94c1-15d756dd79de", "fee124ea-6476-4b9a-a3ce-382feab35f22", "9d191b7f-4946-456c-82fd-21cd96a7a184", "ef7085a9-cc47-4668-9bcf-4c0058b02637", "83bbb0cd-776a-4f0a-85ef-5e0d14f2c89f", "d17845ae-b684-44a9-86e9-d448e42d6b4c"], + minimum_number_of_products: 9295, + minimum_number_of_amount: 8718, + minimum_number_for_combination_purchase: 1850, + exist_in_each_product_groups: false, + max_point_amount: 1010, + max_total_point_amount: 7034, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1869645226 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 2076434360 })); status = response.code; } catch (e) { @@ -10402,20 +10782,20 @@ test('Check UpdateCampaign | 23', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 24', async () => { +test('Check UpdateCampaign | 26', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - starts_at: "2022-03-11T20:12:55.000000Z", - ends_at: "2024-03-04T10:50:16.000000Z", - priority: 1819, - event: "topup", - description: "MjoFiHLtN9Yqy7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuU", + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + starts_at: "2022-10-18T22:02:53.000000Z", + ends_at: "2021-01-19T15:35:46.000000Z", + priority: 1502, + event: "payment", + description: "el4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2Nc", status: "disabled", - point_expires_at: "2023-04-17T05:00:28.000000Z", - point_expires_in_days: 6912, - is_exclusive: true, + point_expires_at: "2021-08-31T12:39:12.000000Z", + point_expires_in_days: 1893, + is_exclusive: false, subject: "money", amount_based_point_rules: [{ "point_amount": 5, @@ -10442,23 +10822,32 @@ test('Check UpdateCampaign | 24', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -10470,11 +10859,32 @@ test('Check UpdateCampaign | 24', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }], - blacklisted_product_rules: [{ + }, { + "point_amount": 5, + "point_amount_unit": "percent", "product_code": "4912345678904", - "classification_code": "c123" + "is_multiply_by_count": true, + "required_count": 2 }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ "product_code": "4912345678904", "classification_code": "c123" }, { @@ -10499,7 +10909,7 @@ test('Check UpdateCampaign | 24', async () => { "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [4, 3, 3, 6, 6, 2, 4, 3, 2], + applicable_days_of_week: [6, 0, 2, 4, 2, 2, 2, 1], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -10525,18 +10935,23 @@ test('Check UpdateCampaign | 24', async () => { "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["bcea9165-c034-43ef-b341-bca1eaf31ab7", "407f462f-c7c1-49f3-b4b7-7dc71bce209e", "d4fac0de-4a5a-4460-8b03-cd7d9d4a64cb"], - minimum_number_of_products: 391, - minimum_number_of_amount: 2150, - minimum_number_for_combination_purchase: 5757, - exist_in_each_product_groups: false, - max_point_amount: 2699, - max_total_point_amount: 4642, + applicable_shop_ids: ["3742069a-c681-4724-876a-4b15c1416b32", "8a03eb07-581e-408d-bedb-372624655338", "4a42f20d-59e2-4611-bf03-dafcb8d0486a", "63ff650f-b3fa-4b6f-8d60-6f0d69b492eb", "fb5f34d5-60e6-4151-82a5-49da0209ae79", "aa2fd1c7-6bae-4bb6-ba11-47f17ebbc2ec"], + blacklisted_shop_ids: ["d3151e6b-2c76-4f49-beba-cf208c6a32e3", "dc79c4b3-6d75-423b-8ae7-a1d117faa682", "8dc73088-9515-472f-a6d6-a50389018e63", "14d82977-f4cb-4fc5-953f-324f789c5c41", "1140a26c-1986-4e4d-9515-ebacac40a895", "76490394-8e5c-4959-a26c-01a3e391907b", "f9069ec1-71ee-454f-98ca-f1553645fd5d", "4a04e7ff-ff20-4ef7-bca3-a82b81ef949c", "56be44b5-ee75-4795-85ba-668f66649f3a", "1cd88f12-1d5e-42a4-99de-6d67125f3ccc"], + minimum_number_of_products: 2646, + minimum_number_of_amount: 827, + minimum_number_for_combination_purchase: 8342, + exist_in_each_product_groups: true, + max_point_amount: 6181, + max_total_point_amount: 7004, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 99696538 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 813166377 })); status = response.code; } catch (e) { @@ -10548,22 +10963,22 @@ test('Check UpdateCampaign | 24', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 25', async () => { +test('Check UpdateCampaign | 27', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - name: "QbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uY", - starts_at: "2021-04-23T02:58:38.000000Z", - ends_at: "2022-05-06T16:35:51.000000Z", - priority: 2645, + campaign_id: "aaf6a586-88af-4705-b315-e668c4144e0c", + name: "IHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHT", + starts_at: "2024-04-01T18:00:54.000000Z", + ends_at: "2022-12-18T06:12:13.000000Z", + priority: 7046, event: "external-transaction", - description: "2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6b", - status: "disabled", - point_expires_at: "2022-02-27T09:09:30.000000Z", - point_expires_in_days: 3006, - is_exclusive: true, - subject: "money", + description: "Rx79qoFTViWGk7rsKgu2ihoMxDsfU3TC1A8fV5nkzyaMo6HNFjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLp", + status: "enabled", + point_expires_at: "2022-08-05T11:03:04.000000Z", + point_expires_in_days: 5564, + is_exclusive: false, + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -10584,6 +10999,21 @@ test('Check UpdateCampaign | 25', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -10591,6 +11021,42 @@ test('Check UpdateCampaign | 25', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }], blacklisted_product_rules: [{ "product_code": "4912345678904", @@ -10598,42 +11064,53 @@ test('Check UpdateCampaign | 25', async () => { }, { "product_code": "4912345678904", "classification_code": "c123" - }], - applicable_days_of_week: [5, 3, 6, 5, 1], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [1, 4], + applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["5eed2a5a-33b0-4ff8-bc87-d7bd3bb16283", "7cc65c22-1a01-4e6b-af9b-97354412ef2c", "b20969ff-299f-47a4-b2a8-dbbf4edda3f4", "b36db3d8-21e4-41df-a8eb-756aa2aaba43", "619bcd0b-3c5a-4ab6-864b-c6de4440448f", "d2a73794-8e15-4d10-9814-66ada42426eb", "d47cf6e9-3e4d-46f8-b1eb-137f6d912f3d", "07e56a48-f496-4f14-9456-ce3d7c629b86"], - minimum_number_of_products: 9329, - minimum_number_of_amount: 2850, - minimum_number_for_combination_purchase: 531, - exist_in_each_product_groups: true, - max_point_amount: 3974, - max_total_point_amount: 393, + applicable_shop_ids: ["2161b6ea-7901-4fbd-b003-141bfb65f9b3", "ac5d9da5-867b-4eb5-a5ab-4e6dc85ce221"], + blacklisted_shop_ids: ["775bc3a7-8bba-4887-863c-cdc2113f9d8b", "ed19f4dd-cdb0-4365-8fbe-5b310c1f45bb", "5f6977bb-a0fa-437f-990a-5151cb7828dc"], + minimum_number_of_products: 8639, + minimum_number_of_amount: 4345, + minimum_number_for_combination_purchase: 5916, + exist_in_each_product_groups: false, + max_point_amount: 1155, + max_total_point_amount: 62, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 467110137 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 8851661 })); status = response.code; } catch (e) { @@ -10649,8 +11126,8 @@ test('Check RequestUserStats | 0', async () => { let status = 400; try { const response: Response = await client.send(new RequestUserStats({ - from: "2020-09-24T12:21:11.000000Z", - to: "2021-08-29T03:04:32.000000Z" + from: "2023-11-09T02:37:11.000000Z", + to: "2024-03-10T10:48:28.000000Z" })); status = response.code; } catch (e) { @@ -10662,13 +11139,10 @@ test('Check RequestUserStats | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateWebhook | 0', async () => { +test('Check ListWebhooks | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateWebhook({ - task: "process_user_stats_operation", - url: "oF" - })); + const response: Response = await client.send(new ListWebhooks()); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -10679,10 +11153,12 @@ test('Check CreateWebhook | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListWebhooks | 0', async () => { +test('Check ListWebhooks | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListWebhooks()); + const response: Response = await client.send(new ListWebhooks({ + per_page: 8216 + })); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -10693,11 +11169,12 @@ test('Check ListWebhooks | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListWebhooks | 1', async () => { +test('Check ListWebhooks | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListWebhooks({ - per_page: 6869 + page: 755, + per_page: 454 })); status = response.code; } catch (e) { @@ -10709,12 +11186,12 @@ test('Check ListWebhooks | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListWebhooks | 2', async () => { +test('Check CreateWebhook | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListWebhooks({ - page: 7472, - per_page: 2731 + const response: Response = await client.send(new CreateWebhook({ + task: "process_user_stats_operation", + url: "rKUADY" })); status = response.code; } catch (e) { @@ -10726,11 +11203,11 @@ test('Check ListWebhooks | 2', async () => { expect(status).not.toBe(400); }) -test('Check UpdateWebhook | 0', async () => { +test('Check DeleteWebhook | 0', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateWebhook({ - webhook_id: "a7551e28-11d6-40e9-97de-ecc70a6d636b" + const response: Response = await client.send(new DeleteWebhook({ + webhook_id: "8400d524-1661-4ed5-8d40-1dd30d4ffd34" })); status = response.code; } catch (e) { @@ -10742,12 +11219,11 @@ test('Check UpdateWebhook | 0', async () => { expect(status).not.toBe(400); }) -test('Check UpdateWebhook | 1', async () => { +test('Check UpdateWebhook | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateWebhook({ - webhook_id: "a7551e28-11d6-40e9-97de-ecc70a6d636b", - task: "process_user_stats_operation" + webhook_id: "874c0e8a-3517-46fb-960b-bf31b27ea8af" })); status = response.code; } catch (e) { @@ -10759,13 +11235,12 @@ test('Check UpdateWebhook | 1', async () => { expect(status).not.toBe(400); }) -test('Check UpdateWebhook | 2', async () => { +test('Check UpdateWebhook | 1', async () => { let status = 400; try { const response: Response = await client.send(new UpdateWebhook({ - webhook_id: "a7551e28-11d6-40e9-97de-ecc70a6d636b", - is_active: false, - task: "bulk_shops" + webhook_id: "874c0e8a-3517-46fb-960b-bf31b27ea8af", + task: "process_user_stats_operation" })); status = response.code; } catch (e) { @@ -10777,12 +11252,11 @@ test('Check UpdateWebhook | 2', async () => { expect(status).not.toBe(400); }) -test('Check UpdateWebhook | 3', async () => { +test('Check UpdateWebhook | 2', async () => { let status = 400; try { const response: Response = await client.send(new UpdateWebhook({ - webhook_id: "a7551e28-11d6-40e9-97de-ecc70a6d636b", - url: "rsKgu2ih", + webhook_id: "874c0e8a-3517-46fb-960b-bf31b27ea8af", is_active: true, task: "process_user_stats_operation" })); @@ -10796,11 +11270,14 @@ test('Check UpdateWebhook | 3', async () => { expect(status).not.toBe(400); }) -test('Check DeleteWebhook | 0', async () => { +test('Check UpdateWebhook | 3', async () => { let status = 400; try { - const response: Response = await client.send(new DeleteWebhook({ - webhook_id: "757ac34d-0129-43a0-b828-78c4e69be2aa" + const response: Response = await client.send(new UpdateWebhook({ + webhook_id: "874c0e8a-3517-46fb-960b-bf31b27ea8af", + url: "z", + is_active: true, + task: "process_user_stats_operation" })); status = response.code; } catch (e) { @@ -10816,7 +11293,7 @@ test('Check CreateUserDevice | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateUserDevice({ - user_id: "3ef0155b-df73-4fe6-95b3-029be84e5c80" + user_id: "d4d9610a-1ab9-4e52-bc6c-c7ffbd99782a" })); status = response.code; } catch (e) { @@ -10832,7 +11309,7 @@ test('Check CreateUserDevice | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateUserDevice({ - user_id: "3ef0155b-df73-4fe6-95b3-029be84e5c80", + user_id: "d4d9610a-1ab9-4e52-bc6c-c7ffbd99782a", metadata: "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}" })); status = response.code; @@ -10849,7 +11326,7 @@ test('Check GetUserDevice | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetUserDevice({ - user_device_id: "97103bd4-55aa-4e14-838c-d7b19e377bc1" + user_device_id: "e6222ce9-5275-4b71-8f42-f5298f163d7f" })); status = response.code; } catch (e) { @@ -10865,7 +11342,7 @@ test('Check ActivateUserDevice | 0', async () => { let status = 400; try { const response: Response = await client.send(new ActivateUserDevice({ - user_device_id: "6ae625fc-8f38-4b66-96b5-badc1584cc03" + user_device_id: "24fc1449-6dce-416d-b451-0022c1d9c737" })); status = response.code; } catch (e) { @@ -10877,14 +11354,11 @@ test('Check ActivateUserDevice | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateBank | 0', async () => { +test('Check ListBanks | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateBank({ - user_device_id: "5ceabfee-19eb-4683-baf9-d5e1eacd3507", - private_money_id: "809e5b4d-316f-481c-b62c-d410f3bdb948", - callback_url: "FjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE", - kana: "WDor4IADTHdTPsjhUsWbu" + const response: Response = await client.send(new ListBanks({ + user_device_id: "73e18737-9d5b-402f-828a-f60de59eb028" })); status = response.code; } catch (e) { @@ -10896,15 +11370,12 @@ test('Check CreateBank | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateBank | 1', async () => { +test('Check ListBanks | 1', async () => { let status = 400; try { - const response: Response = await client.send(new CreateBank({ - user_device_id: "5ceabfee-19eb-4683-baf9-d5e1eacd3507", - private_money_id: "809e5b4d-316f-481c-b62c-d410f3bdb948", - callback_url: "FjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE", - kana: "WDor4IADTHdTPsjhUsWbu", - birthdate: "hnbI" + const response: Response = await client.send(new ListBanks({ + user_device_id: "73e18737-9d5b-402f-828a-f60de59eb028", + private_money_id: "6c51ea79-7271-4fe9-bb2a-f3fae1d5abab" })); status = response.code; } catch (e) { @@ -10916,16 +11387,14 @@ test('Check CreateBank | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateBank | 2', async () => { +test('Check CreateBank | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateBank({ - user_device_id: "5ceabfee-19eb-4683-baf9-d5e1eacd3507", - private_money_id: "809e5b4d-316f-481c-b62c-d410f3bdb948", - callback_url: "FjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE", - kana: "WDor4IADTHdTPsjhUsWbu", - email: "UFlfvobOcl@FXKf.com", - birthdate: "dQivs3h" + user_device_id: "8d23aa86-0356-4fd1-856f-5b1620d87007", + private_money_id: "d9dba665-183e-410e-ba86-0a329fe19cdc", + callback_url: "X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlf", + kana: "v" })); status = response.code; } catch (e) { @@ -10937,11 +11406,15 @@ test('Check CreateBank | 2', async () => { expect(status).not.toBe(400); }) -test('Check ListBanks | 0', async () => { +test('Check CreateBank | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListBanks({ - user_device_id: "9e9585ea-3721-4a9d-b41f-db2253895544" + const response: Response = await client.send(new CreateBank({ + user_device_id: "8d23aa86-0356-4fd1-856f-5b1620d87007", + private_money_id: "d9dba665-183e-410e-ba86-0a329fe19cdc", + callback_url: "X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlf", + kana: "v", + birthdate: "bOclFXKf" })); status = response.code; } catch (e) { @@ -10953,12 +11426,16 @@ test('Check ListBanks | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListBanks | 1', async () => { +test('Check CreateBank | 2', async () => { let status = 400; try { - const response: Response = await client.send(new ListBanks({ - user_device_id: "9e9585ea-3721-4a9d-b41f-db2253895544", - private_money_id: "cec34104-64b1-4b8c-96a5-4f590e92a4fb" + const response: Response = await client.send(new CreateBank({ + user_device_id: "8d23aa86-0356-4fd1-856f-5b1620d87007", + private_money_id: "d9dba665-183e-410e-ba86-0a329fe19cdc", + callback_url: "X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlf", + kana: "v", + email: "vdQivs3hjt@D1VY.com", + birthdate: "nThE" })); status = response.code; } catch (e) { @@ -10974,11 +11451,11 @@ test('Check CreateBankTopupTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateBankTopupTransaction({ - user_device_id: "ca66f5fd-f8ff-406e-bad4-295d6e468868", - private_money_id: "7c2943c5-a1e0-4c8a-9dd1-78fecba543cf", - amount: 6861, - bank_id: "1cb975f4-046c-470a-abde-2f3addeec9dd", - request_id: "f09db652-b3d0-44c9-815e-14123e6a6665" + user_device_id: "700aa1e0-fc8a-4a9d-91fe-43cf8c799acc", + private_money_id: "1cb975f4-046c-470a-abde-2f3addeec9dd", + amount: 1226, + bank_id: "e4243741-8f5e-4412-a549-cb1665c7d318", + request_id: "9c38f68c-0081-49b3-81a2-0fc3c7624a31" })); status = response.code; } catch (e) { @@ -10994,7 +11471,7 @@ test('Check ListCoupons | 0', async () => { let status = 400; try { const response: Response = await client.send(new ListCoupons({ - private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801" + private_money_id: "dc217f26-4deb-4a29-8c3e-96db0cd002f7" })); status = response.code; } catch (e) { @@ -11010,8 +11487,8 @@ test('Check ListCoupons | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListCoupons({ - private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", - per_page: 4036 + private_money_id: "dc217f26-4deb-4a29-8c3e-96db0cd002f7", + per_page: 1136 })); status = response.code; } catch (e) { @@ -11027,9 +11504,9 @@ test('Check ListCoupons | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListCoupons({ - private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", - page: 2610, - per_page: 3564 + private_money_id: "dc217f26-4deb-4a29-8c3e-96db0cd002f7", + page: 4692, + per_page: 6987 })); status = response.code; } catch (e) { @@ -11045,10 +11522,10 @@ test('Check ListCoupons | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListCoupons({ - private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", - available_to: "2022-10-30T15:41:29.000000Z", - page: 1343, - per_page: 5852 + private_money_id: "dc217f26-4deb-4a29-8c3e-96db0cd002f7", + available_to: "2020-06-06T07:13:47.000000Z", + page: 6056, + per_page: 2293 })); status = response.code; } catch (e) { @@ -11064,11 +11541,11 @@ test('Check ListCoupons | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListCoupons({ - private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", - available_from: "2022-07-23T12:05:11.000000Z", - available_to: "2023-12-25T11:20:15.000000Z", - page: 4692, - per_page: 6987 + private_money_id: "dc217f26-4deb-4a29-8c3e-96db0cd002f7", + available_from: "2021-10-01T05:50:40.000000Z", + available_to: "2023-05-18T17:47:03.000000Z", + page: 5883, + per_page: 4412 })); status = response.code; } catch (e) { @@ -11084,12 +11561,12 @@ test('Check ListCoupons | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListCoupons({ - private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", - available_shop_name: "t", - available_from: "2022-09-20T11:42:56.000000Z", - available_to: "2020-10-04T03:55:03.000000Z", - page: 177, - per_page: 6137 + private_money_id: "dc217f26-4deb-4a29-8c3e-96db0cd002f7", + available_shop_name: "g", + available_from: "2020-12-20T06:53:14.000000Z", + available_to: "2021-04-01T00:49:49.000000Z", + page: 5789, + per_page: 8382 })); status = response.code; } catch (e) { @@ -11105,13 +11582,13 @@ test('Check ListCoupons | 6', async () => { let status = 400; try { const response: Response = await client.send(new ListCoupons({ - private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", - issued_shop_name: "zgZ3SAsj", - available_shop_name: "A", - available_from: "2022-11-23T12:41:58.000000Z", - available_to: "2021-11-05T17:31:33.000000Z", - page: 849, - per_page: 7307 + private_money_id: "dc217f26-4deb-4a29-8c3e-96db0cd002f7", + issued_shop_name: "S", + available_shop_name: "sj", + available_from: "2020-01-18T23:21:39.000000Z", + available_to: "2023-06-02T03:19:09.000000Z", + page: 7634, + per_page: 5240 })); status = response.code; } catch (e) { @@ -11127,14 +11604,14 @@ test('Check ListCoupons | 7', async () => { let status = 400; try { const response: Response = await client.send(new ListCoupons({ - private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", - coupon_name: "wO", - issued_shop_name: "MEx", - available_shop_name: "C1w6", - available_from: "2023-07-14T05:00:25.000000Z", - available_to: "2021-01-18T09:29:10.000000Z", - page: 826, - per_page: 1755 + private_money_id: "dc217f26-4deb-4a29-8c3e-96db0cd002f7", + coupon_name: "MEx", + issued_shop_name: "C1w6", + available_shop_name: "fl9ZUstqj7", + available_from: "2023-10-17T12:11:47.000000Z", + available_to: "2020-09-20T09:15:20.000000Z", + page: 7115, + per_page: 7602 })); status = response.code; } catch (e) { @@ -11150,15 +11627,15 @@ test('Check ListCoupons | 8', async () => { let status = 400; try { const response: Response = await client.send(new ListCoupons({ - private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", - coupon_id: "stqj7j", - coupon_name: "J1Xazd0M0", - issued_shop_name: "E8", - available_shop_name: "si7", - available_from: "2021-03-21T03:47:10.000000Z", - available_to: "2022-02-22T01:50:15.000000Z", - page: 2183, - per_page: 7920 + private_money_id: "dc217f26-4deb-4a29-8c3e-96db0cd002f7", + coupon_id: "azd0M0QE8", + coupon_name: "si7", + issued_shop_name: "ktomTSIs", + available_shop_name: "sss0", + available_from: "2021-09-27T07:12:19.000000Z", + available_to: "2021-01-14T23:41:37.000000Z", + page: 9981, + per_page: 929 })); status = response.code; } catch (e) { @@ -11174,12 +11651,12 @@ test('Check CreateCoupon | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 7357 + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 6407 })); status = response.code; } catch (e) { @@ -11195,13 +11672,13 @@ test('Check CreateCoupon | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 9216, - storage_id: "980727cd-c844-4e89-bd67-9a9679730e08" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 3352, + storage_id: "fb972ee9-25c2-4844-9412-6532f77d05e5" })); status = response.code; } catch (e) { @@ -11217,14 +11694,14 @@ test('Check CreateCoupon | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 9392, - min_amount: 2436, - storage_id: "b7bc887c-58af-4907-98e9-25c22bc9b844" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 5912, + min_amount: 7284, + storage_id: "b6dccb11-6e36-478c-8511-dad23193dd38" })); status = response.code; } catch (e) { @@ -11240,15 +11717,15 @@ test('Check CreateCoupon | 3', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 1044, - usage_limit: 4882, - min_amount: 9522, - storage_id: "f77d05e5-1718-4c74-9136-f78c9ca62105" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 4921, + usage_limit: 502, + min_amount: 2514, + storage_id: "0f91d282-4807-4481-a5e8-455933bc1e49" })); status = response.code; } catch (e) { @@ -11264,16 +11741,16 @@ test('Check CreateCoupon | 4', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 1041, - code: "89v", - usage_limit: 2514, - min_amount: 4738, - storage_id: "3d504807-f481-4765-a859-1e493ffa0d5a" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 3418, + code: "Mh6", + usage_limit: 3877, + min_amount: 9677, + storage_id: "baafb710-262f-49e6-bfa5-2803664303bb" })); status = response.code; } catch (e) { @@ -11289,17 +11766,17 @@ test('Check CreateCoupon | 5', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 7359, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 6013, is_public: true, - code: "6MfShA8D4", - usage_limit: 6464, - min_amount: 9440, - storage_id: "175165c5-7cf6-42b7-8f1a-bf211aca37cf" + code: "hA8D", + usage_limit: 9652, + min_amount: 6464, + storage_id: "f7bde4e0-65c5-4cf6-b70f-1e1a035bbf21" })); status = response.code; } catch (e) { @@ -11315,11 +11792,11 @@ test('Check CreateCoupon | 6', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", discount_amount: 4572, is_hidden: false, is_public: true, @@ -11342,11 +11819,11 @@ test('Check CreateCoupon | 7', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", discount_amount: 2800, is_disabled: false, is_hidden: true, @@ -11370,20 +11847,20 @@ test('Check CreateCoupon | 8', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", discount_amount: 6412, - display_ends_at: "2021-04-02T08:24:07.000000Z", - is_disabled: false, - is_hidden: true, + display_ends_at: "2021-04-20T02:26:11.000000Z", + is_disabled: true, + is_hidden: false, is_public: false, - code: "wzvGv5", - usage_limit: 4980, - min_amount: 1833, - storage_id: "69d87ffc-5b83-440e-9842-f9399c396eb3" + code: "zvGv5tXB", + usage_limit: 2045, + min_amount: 5057, + storage_id: "8a5b38e4-47ab-441b-845d-a1d16ae6e1a1" })); status = response.code; } catch (e) { @@ -11399,21 +11876,21 @@ test('Check CreateCoupon | 9', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 2045, - display_starts_at: "2022-03-14T05:45:03.000000Z", - display_ends_at: "2021-12-28T19:08:36.000000Z", - is_disabled: false, - is_hidden: false, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 2844, + display_starts_at: "2020-10-30T13:44:26.000000Z", + display_ends_at: "2022-07-07T06:05:02.000000Z", + is_disabled: true, + is_hidden: true, is_public: true, - code: "QSvr2", - usage_limit: 5053, - min_amount: 5610, - storage_id: "a46f64c4-3d32-4e00-9ec3-59d056f6235e" + code: "j", + usage_limit: 9412, + min_amount: 6608, + storage_id: "56f6235e-f142-4510-8cc5-38a2a47ebee7" })); status = response.code; } catch (e) { @@ -11429,22 +11906,22 @@ test('Check CreateCoupon | 10', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 9488, - discount_upper_limit: 2828, - display_starts_at: "2021-07-09T22:20:53.000000Z", - display_ends_at: "2024-02-07T05:48:18.000000Z", - is_disabled: false, - is_hidden: false, - is_public: false, - code: "qDXhSH8", - usage_limit: 7272, - min_amount: 7265, - storage_id: "f7c3fa5b-2066-47ca-8984-82f9add52405" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 785, + discount_upper_limit: 4292, + display_starts_at: "2022-03-23T09:01:12.000000Z", + display_ends_at: "2022-09-14T15:29:12.000000Z", + is_disabled: true, + is_hidden: true, + is_public: true, + code: "fJ", + usage_limit: 132, + min_amount: 761, + storage_id: "add52405-f93b-4130-ad1d-850d488705c0" })); status = response.code; } catch (e) { @@ -11460,23 +11937,23 @@ test('Check CreateCoupon | 11', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 304, - description: "sDTnMPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14x", - discount_upper_limit: 8514, - display_starts_at: "2021-02-08T09:28:24.000000Z", - display_ends_at: "2021-08-09T03:36:25.000000Z", + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 9028, + description: "TnMPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14xB891rPV7FcdDeB61vcOZ1uNBAdr6lfzbfqKlnsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuw", + discount_upper_limit: 4412, + display_starts_at: "2021-01-07T10:53:19.000000Z", + display_ends_at: "2024-02-03T11:47:59.000000Z", is_disabled: false, - is_hidden: true, + is_hidden: false, is_public: true, - code: "V", - usage_limit: 8759, - min_amount: 838, - storage_id: "fa1a063e-3263-4064-8721-dd08de992644" + code: "hKOt", + usage_limit: 4104, + min_amount: 1857, + storage_id: "81d87bef-283f-4629-8d58-ca88a86289a7" })); status = response.code; } catch (e) { @@ -11492,14 +11969,14 @@ test('Check CreateCoupon | 12', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 7013, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 2416, is_shop_specified: true, - available_shop_ids: ["d9b922de-c15b-4ec2-b631-7676b9077163"] + available_shop_ids: ["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"] })); status = response.code; } catch (e) { @@ -11515,15 +11992,15 @@ test('Check CreateCoupon | 13', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 511, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 5148, is_shop_specified: true, - available_shop_ids: ["0fc680a2-e4cf-44da-a09d-84b11ab73dbc", "81d0530a-aa75-45bf-8e20-f41cc7d6be88", "1231e502-dc42-4394-a141-1064011a7372", "ab5c0000-949b-4dba-bc5f-b236e313491a", "dfcadd0b-81fe-45ec-bce6-ee193fe0477a"], - storage_id: "74124162-ace6-41f1-9dcb-06ec07ca066e" + available_shop_ids: ["f161eeb1-362d-4a0e-a869-2b522d8c44ea", "487b2493-c518-4754-97ce-7cd32ffc5da7", "46c40c15-4095-4f28-9581-84b4312a05a8", "31fc71dc-eeb6-46c4-8bd0-3aa2ad677c07", "5a056d0f-5376-432d-b98b-57abd8d0e119", "79af150f-106b-46a1-b49b-d5cb889fa51d", "f9e3f481-1021-4f63-9918-fcba262743d7", "1b157b5d-77c3-4ff9-8107-0dbe6ad6f5fd"], + storage_id: "7423d03f-7f7d-40cb-ad34-1df41a774247" })); status = response.code; } catch (e) { @@ -11539,16 +12016,16 @@ test('Check CreateCoupon | 14', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 3071, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 5170, is_shop_specified: false, - available_shop_ids: ["6391deb4-e2bf-4c2e-b003-f3ac5dd2ecf7", "0f0145da-64ef-4182-b052-3e02814b8d80", "da94a5db-3e54-4304-b930-702d13e966ed", "4125cdd4-bd76-4e80-bc39-218c3bb01669", "9f641011-3c1f-407c-ad3f-0d6d7d0fe965", "5dffd7ce-f68a-42e9-a63e-8359d9772bb6", "0549d4b2-3a42-4063-b08f-2b6e0e655735", "ec7a2179-1178-435f-aea7-fba70106c378"], - min_amount: 1910, - storage_id: "50ad7ebb-354b-4006-a4df-2144aaba6be1" + available_shop_ids: ["38657c7a-8ae5-4c03-aedf-76d7ec36fb58", "62325978-65d0-4b4e-b652-f2e9c81e0ecd", "44c21256-7668-4286-9aed-8a1fdd0d9482", "9086e990-4d6d-4f47-aa5e-313085f9d611", "08add354-8d8d-4d4d-910e-c5a34566b3ea", "ef1475d0-2e06-4f17-a692-b7ac3b07f1a8", "3e64c546-2fcc-4da7-8818-95cd02720b2b"], + min_amount: 8880, + storage_id: "d517d25c-168f-4abe-844c-a67c78c18a88" })); status = response.code; } catch (e) { @@ -11564,17 +12041,17 @@ test('Check CreateCoupon | 15', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 9002, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 2039, is_shop_specified: true, - available_shop_ids: ["704a7f0d-aa5f-4563-97b2-94760e99ed35"], - usage_limit: 1596, - min_amount: 1102, - storage_id: "dcaa7cf6-7bbe-4fc5-92d2-3c1b39de888f" + available_shop_ids: ["90458d56-6fd8-4124-a231-25aa5adde624", "7c3e1c1f-923f-4de0-aebf-a8668130aa50", "981c845a-5b1e-4ef4-88fa-97474406f7f5", "2534116e-fcd6-4088-8aa8-2ce2d72df77c", "4c536a74-87c3-441f-83ee-d773d6f1429a", "09fdb62f-b5e0-47ff-bce4-390d8b71a125"], + usage_limit: 4678, + min_amount: 8724, + storage_id: "415103d6-778f-4a2d-9f63-a88327a71bdc" })); status = response.code; } catch (e) { @@ -11590,18 +12067,18 @@ test('Check CreateCoupon | 16', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 7601, - is_shop_specified: false, - available_shop_ids: ["cae95ad5-2d3b-4a6f-9053-9a4debeaa614", "ce9f70f8-2289-4775-abf7-7414776b113c", "91eb071f-46ef-4569-b3b4-3f33614c8f0c", "6cb4933d-8886-4115-a8cb-b0cf4b56778e", "7836c574-d008-4741-af3f-462928db048d", "ce507f58-ca88-49a7-b727-306f1ce20970", "4cde362c-0814-4df5-a1e5-fb237a6c2c37"], - code: "O", - usage_limit: 6702, - min_amount: 2741, - storage_id: "e3c517ad-8e38-43c1-bd22-8a7cebf34ee5" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 6890, + is_shop_specified: true, + available_shop_ids: ["4180cc2e-a720-4df0-a0eb-068bb7f421ae", "16d4350b-f32e-4e72-850f-915b21bd09b7", "ef7e3b6e-0c7f-4042-9be9-d7aadc9400ae", "a318536a-09e1-4161-b475-491a2d8ee771", "1f0d1fda-31bf-424b-ac62-3e70f5b65212", "a35f97c8-1a22-48d1-80d4-9234467568fe", "ef8a9b13-e8ed-4c8f-9a51-fe3b67d8d25e", "cf085b9e-fba7-4428-9b44-f53f8ac68025", "57f0d0c2-5d36-4075-b199-465c6f6b0514"], + code: "M", + usage_limit: 7626, + min_amount: 8180, + storage_id: "8828df58-a2cc-484d-8df7-e3dd65d054e0" })); status = response.code; } catch (e) { @@ -11617,19 +12094,19 @@ test('Check CreateCoupon | 17', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 8872, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 3177, is_shop_specified: false, - available_shop_ids: ["692e0554-bfee-48a1-bdf2-d029382227c6", "b17c6bd3-a36a-4f62-82fd-91bae229141c", "6380028e-9f97-4eb1-ad0e-99e8d8d0cd69", "93562b52-44ea-4493-9854-9597019950ce", "219a7cd3-5da7-4c15-9528-115516a36881", "b79d84b4-05a8-41dc-b6c4-02cb90f9a9d0", "e84c3aa2-7c07-4d0f-b62d-19f928a54c8b", "660c57ab-e119-450f-aba1-c2f4210b4a9b", "f627d5cb-a51d-4481-a163-c7192f4e9d18"], - is_public: true, - code: "CyKm4tG2", - usage_limit: 4038, - min_amount: 2789, - storage_id: "747a7c03-cdae-4adf-9758-597836eb65d0" + available_shop_ids: ["f67037cd-d21f-4e69-b350-19a8573ccdd4", "0695de81-53d8-403b-b6fe-99ca5843f5b9", "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"], + is_public: false, + code: "2", + usage_limit: 996, + min_amount: 4564, + storage_id: "f42f6a9c-3382-4873-8990-bf189801a753" })); status = response.code; } catch (e) { @@ -11645,20 +12122,20 @@ test('Check CreateCoupon | 18', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 2894, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 8187, is_shop_specified: true, - available_shop_ids: ["2529f2e9-0ecd-4256-a886-6fdab38969ed", "998e8a1f-9482-4990-ad47-baea293b505e", "d69f3130-d611-4354-8d4d-7c91bcb37a0e"], - is_hidden: false, - is_public: true, - code: "F", - usage_limit: 6408, - min_amount: 7960, - storage_id: "fe9a95cd-0b2b-4b1e-b05c-168f46148abe" + available_shop_ids: ["83721b8f-6918-4ece-9fba-2dbd834be33e", "a9671ea2-27d8-4784-a742-fbf5683bdcc0", "c1d07f89-f5e8-404c-9b41-4ef8b1f5d403", "dc2586af-75d0-403b-b882-ed4c1191bfa6", "77b05288-f6bf-4592-a49b-90233bd1b791", "289903e7-7950-4a24-9e46-b00d0071c437", "d994eda7-a7ff-43d0-882d-1e399a84c1db", "b87cd8bc-126a-450f-b3fb-ae501b26b3bd", "09c2f4ff-72ef-432b-a9b3-b7f1872436d2"], + is_hidden: true, + is_public: false, + code: "C06hH5q5N", + usage_limit: 4662, + min_amount: 9482, + storage_id: "a197aeac-5e3d-42f2-a01f-231c2f08c253" })); status = response.code; } catch (e) { @@ -11674,21 +12151,21 @@ test('Check CreateCoupon | 19', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 8388, - is_shop_specified: true, - available_shop_ids: ["b433f764-07f7-42c0-9556-6fd87988f124", "09d015a2-2b31-45aa-a41f-923f2b2d4de0", "18cd3bee-e2bf-4866-905a-5b1e0b4dfef4", "24139a88-20fa-4747-b56e-fcd67d093088", "76f6d9ca-1ea8-4ce2-bc74-87c3abbac41f", "d13cc483-a8ee-4773-9a2f-b5e01ab7d7ff", "75bc6ffc-70e4-490d-a52c-924688e7ebbd", "9b0ce214-03d6-478f-addf-ff63443ca883", "27a71bdc-1aea-4fc6-b82e-a720bf8fbdf0"], - is_disabled: true, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 5140, + is_shop_specified: false, + available_shop_ids: ["60df8aaf-23fd-4fec-90db-d611c05931e8", "fb148318-6fe3-47bc-81a7-c36c55ce455d", "ce18681e-5c83-427d-b862-0de280711893", "1e30219f-e0c9-4531-8c70-f28403b1a8bb", "26e5863c-165d-4a77-a318-8ecec84d7356", "2ca51a1f-127f-4f4e-ab58-19319b97c077", "29560594-8a62-457b-bca9-6974e0a2d548", "bb37ca0a-9c28-4971-8ba0-3f370398082d"], + is_disabled: false, is_hidden: false, - is_public: false, - code: "7nB", - usage_limit: 5865, - min_amount: 6058, - storage_id: "dc9400ae-536a-49e1-a134-4e75f7f1491a" + is_public: true, + code: "h4XHkB", + usage_limit: 4984, + min_amount: 9150, + storage_id: "9f0e28d2-2330-46d2-8c05-a76eda8cc10b" })); status = response.code; } catch (e) { @@ -11704,22 +12181,22 @@ test('Check CreateCoupon | 20', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 8154, - is_shop_specified: false, - available_shop_ids: ["66d53e70-5212-47c8-a2d1-a9c072aaedd4", "4be39234-68fe-4b13-ad8f-2fda5f237151", "8e51fe3b-d25e-4b9e-a728-d89b81dc7144"], - display_ends_at: "2021-06-06T14:05:51.000000Z", + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 76, + is_shop_specified: true, + available_shop_ids: ["f0e1b77b-f672-49c7-8a96-b6df5b20d02d", "110c9153-edb2-4698-bb1c-834e1a6e5bb5", "2ea4d217-ef5f-4cd3-b6dc-295dfaf45745", "450f857b-3f0d-4316-9bc0-4945c5e1b84f", "64659729-edbc-420a-b542-9b973fb793a2", "51c113f0-7eac-4ab0-9489-3461f7e72d3d", "c674afa1-8b8d-4599-a984-e71559e2848c", "d3c1fcbc-a291-4619-8272-7693c3babfed", "e2a9346e-e2bd-4d64-a982-e4c393ac070d", "d8e9d3be-844e-4f1d-b858-af58bc48d500"], + display_ends_at: "2021-08-14T09:03:02.000000Z", is_disabled: false, is_hidden: true, is_public: true, - code: "1kMJt8", - usage_limit: 8180, - min_amount: 8024, - storage_id: "0e0ca2cc-d84d-468d-b7dd-54e0fa6e0c69" + code: "eT", + usage_limit: 8878, + min_amount: 1016, + storage_id: "798c98a4-b8a6-47df-bd93-09e6c57304e5" })); status = response.code; } catch (e) { @@ -11735,23 +12212,23 @@ test('Check CreateCoupon | 21', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 3402, - is_shop_specified: false, - available_shop_ids: ["f67037cd-d21f-4e69-b350-19a8573ccdd4", "0695de81-53d8-403b-b6fe-99ca5843f5b9", "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"], - display_starts_at: "2021-05-19T15:51:25.000000Z", - display_ends_at: "2022-03-07T03:21:20.000000Z", - is_disabled: false, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 4636, + is_shop_specified: true, + available_shop_ids: ["fc21e989-5351-4993-839a-a8c8c59a3b7a"], + display_starts_at: "2022-07-26T20:53:02.000000Z", + display_ends_at: "2020-03-17T12:23:20.000000Z", + is_disabled: true, is_hidden: true, is_public: false, - code: "dhT", - usage_limit: 6259, - min_amount: 4233, - storage_id: "0dd17f90-bf18-4753-bb3a-310cd42e4f78" + code: "OG8zcq", + usage_limit: 8527, + min_amount: 5880, + storage_id: "db415e49-8188-4647-a3bc-43d74dccfe7b" })); status = response.code; } catch (e) { @@ -11767,24 +12244,24 @@ test('Check CreateCoupon | 22', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 7055, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 8739, is_shop_specified: true, - available_shop_ids: ["275127d8-8784-4ea7-82f5-dcc0c1d07f89", "cd4bf5e8-c04c-491b-81f8-d403dc2586af", "c95875d0-e03b-4df8-824c-bfa677b05288"], - discount_upper_limit: 1426, - display_starts_at: "2023-01-10T01:53:40.000000Z", - display_ends_at: "2023-12-28T16:04:43.000000Z", + available_shop_ids: ["f87ddb5a-7c6a-40ea-8d36-70bdfb8c87ea", "5a016905-3533-449b-a507-0bae901ca15e", "4a9013ad-7082-4a3b-a493-f22cfe809c44", "acf091e3-799b-4270-9a75-85ff0a3de75d", "f14fea1d-27b9-49e9-8ee9-8b8f7d30d0c0"], + discount_upper_limit: 837, + display_starts_at: "2024-01-04T09:02:02.000000Z", + display_ends_at: "2020-01-27T05:41:11.000000Z", is_disabled: false, is_hidden: false, is_public: false, - code: "F", - usage_limit: 1079, - min_amount: 976, - storage_id: "f95a6c48-852d-4e39-9bbc-126a8cc8f50f" + code: "eQ36NR", + usage_limit: 5042, + min_amount: 1580, + storage_id: "9624cc49-ace0-42ea-bce8-38795f1caabf" })); status = response.code; } catch (e) { @@ -11800,25 +12277,25 @@ test('Check CreateCoupon | 23', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 8307, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_amount: 6788, is_shop_specified: false, - available_shop_ids: ["1b26b3bd-f4ff-42ef-ab29-d7b3c9bab7f1"], - description: "bXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO5Bp0TaBrmndiCNxXXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMyd", - discount_upper_limit: 9580, - display_starts_at: "2020-12-24T14:18:47.000000Z", - display_ends_at: "2021-11-23T19:34:19.000000Z", + available_shop_ids: ["d4a21acb-6610-43ac-893b-69d17f435fdd", "85bba8b7-bd3c-4622-9be3-87bcd18c1f47", "d9fa440b-aeec-4491-afb7-4610c0d8bffb", "42707753-67f2-4143-aae9-386d2662c4e4", "75a8357b-0eec-4767-adbf-0577ff67bc6e", "aa0af439-ba21-4bfd-9df1-aa763f98f8e1", "cecc09f5-150b-4515-9132-af865b8b156b"], + description: "Dhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG76qE4T1vOrKA4IwgS5AgijWRyxneekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJA", + discount_upper_limit: 2085, + display_starts_at: "2020-04-13T12:51:34.000000Z", + display_ends_at: "2023-09-28T09:55:41.000000Z", is_disabled: false, is_hidden: false, is_public: true, - code: "qE4", - usage_limit: 1281, - min_amount: 2260, - storage_id: "347c6031-7ff6-414f-b20c-b482317519cb" + code: "I6ywfpyKil", + usage_limit: 5309, + min_amount: 9194, + storage_id: "3d16e328-5cb5-45bd-a0fa-a53e1991dc67" })); status = response.code; } catch (e) { @@ -11834,12 +12311,12 @@ test('Check CreateCoupon | 24', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 6541.0 + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 1976.0 })); status = response.code; } catch (e) { @@ -11855,13 +12332,13 @@ test('Check CreateCoupon | 25', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 3905.0, - storage_id: "2c2afa1e-4834-4c49-b7a5-01046f5627e7" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 5744.0, + storage_id: "f24256e0-ab6e-46b5-b704-ee228a7a97eb" })); status = response.code; } catch (e) { @@ -11877,14 +12354,14 @@ test('Check CreateCoupon | 26', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 8787.0, - min_amount: 4289, - storage_id: "4521aa01-0767-4121-a909-b38b24913d5b" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 6061.0, + min_amount: 3654, + storage_id: "b199c1b0-7316-407f-bfa8-62a8c15753c4" })); status = response.code; } catch (e) { @@ -11900,15 +12377,15 @@ test('Check CreateCoupon | 27', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 2858.0, - usage_limit: 9687, - min_amount: 2296, - storage_id: "149d8e18-385b-439d-ae65-6f88745a3d65" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 5986.0, + usage_limit: 4048, + min_amount: 2764, + storage_id: "5c6cc3d8-0e8c-456a-8175-69db8c276777" })); status = response.code; } catch (e) { @@ -11924,16 +12401,16 @@ test('Check CreateCoupon | 28', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 2667.0, - code: "V8cI", - usage_limit: 477, - min_amount: 5316, - storage_id: "e2cb1bdb-265b-452f-9430-c9a029af4c5e" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 1778.0, + code: "e", + usage_limit: 5021, + min_amount: 5538, + storage_id: "f04889b0-5808-4241-a1be-99b913623b49" })); status = response.code; } catch (e) { @@ -11949,17 +12426,17 @@ test('Check CreateCoupon | 29', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 4762.0, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 5209.0, is_public: true, - code: "8h8evW68NK", - usage_limit: 1776, - min_amount: 3221, - storage_id: "a2ee087f-c55e-4c64-ab0b-9471fa211a30" + code: "4", + usage_limit: 5537, + min_amount: 6131, + storage_id: "2f1438fb-8d11-4fc1-a9c6-90cebfe0d9a3" })); status = response.code; } catch (e) { @@ -11975,18 +12452,18 @@ test('Check CreateCoupon | 30', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 6224.0, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 2935.0, is_hidden: false, is_public: false, - code: "o6", - usage_limit: 5353, - min_amount: 3410, - storage_id: "72f76b31-5b0a-4b31-94de-a741089e050b" + code: "ac9r9GBqh0", + usage_limit: 397, + min_amount: 329, + storage_id: "dbaa45ec-f13b-4e39-8d0e-77b1b9f7e97d" })); status = response.code; } catch (e) { @@ -12002,19 +12479,19 @@ test('Check CreateCoupon | 31', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 7664.0, - is_disabled: false, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 9087.0, + is_disabled: true, is_hidden: false, - is_public: false, - code: "gNTXOxF", - usage_limit: 8322, - min_amount: 2721, - storage_id: "f287c4bd-7526-4777-b193-d6273bae16e8" + is_public: true, + code: "v4", + usage_limit: 9432, + min_amount: 4543, + storage_id: "ffccaeb1-8b72-4188-96cc-f59a1141e3e6" })); status = response.code; } catch (e) { @@ -12030,20 +12507,20 @@ test('Check CreateCoupon | 32', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 5483.0, - display_ends_at: "2023-03-21T06:19:56.000000Z", + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 9511.0, + display_ends_at: "2020-01-20T17:58:12.000000Z", is_disabled: false, - is_hidden: false, + is_hidden: true, is_public: true, - code: "pZV", - usage_limit: 162, - min_amount: 4106, - storage_id: "21e1c3f0-1e46-4c1c-937b-de026597e01b" + code: "BovHK", + usage_limit: 2673, + min_amount: 3691, + storage_id: "f45d9eb7-9f12-4460-be29-31227b2d37c7" })); status = response.code; } catch (e) { @@ -12059,21 +12536,21 @@ test('Check CreateCoupon | 33', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 9168.0, - display_starts_at: "2023-07-19T00:14:52.000000Z", - display_ends_at: "2022-03-27T10:37:51.000000Z", - is_disabled: true, - is_hidden: true, - is_public: true, - code: "p5bfKV", - usage_limit: 1158, - min_amount: 9785, - storage_id: "e2b3a15d-b52a-46c4-90d9-b1ca5326759d" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 3329.0, + display_starts_at: "2023-05-17T04:25:38.000000Z", + display_ends_at: "2022-12-18T18:44:19.000000Z", + is_disabled: false, + is_hidden: false, + is_public: false, + code: "G1DZKj2", + usage_limit: 628, + min_amount: 4231, + storage_id: "f56fcec2-2752-48ac-86e5-99a0ab108388" })); status = response.code; } catch (e) { @@ -12089,22 +12566,22 @@ test('Check CreateCoupon | 34', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 2085.0, - discount_upper_limit: 4310, - display_starts_at: "2021-04-29T14:17:30.000000Z", - display_ends_at: "2020-04-13T12:51:34.000000Z", + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 9381.0, + discount_upper_limit: 8214, + display_starts_at: "2024-02-11T01:48:16.000000Z", + display_ends_at: "2020-09-20T09:26:07.000000Z", is_disabled: true, is_hidden: true, is_public: false, - code: "vyI6yw", - usage_limit: 5391, - min_amount: 6057, - storage_id: "a2aa4979-3f4b-4c69-a723-36ec32ea14bd" + code: "uL22", + usage_limit: 871, + min_amount: 4935, + storage_id: "4d1524bc-2fa2-4de7-bee1-b237640b19f0" })); status = response.code; } catch (e) { @@ -12120,23 +12597,23 @@ test('Check CreateCoupon | 35', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 9194.0, - description: "5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac", - discount_upper_limit: 1593, - display_starts_at: "2022-09-20T16:39:04.000000Z", - display_ends_at: "2023-01-28T15:06:04.000000Z", - is_disabled: false, - is_hidden: true, - is_public: false, - code: "Bqh0SVIl", - usage_limit: 7423, - min_amount: 9087, - storage_id: "0239f926-855b-49ba-aa9d-e9212eecd940" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 2819.0, + description: "F0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnl", + discount_upper_limit: 7774, + display_starts_at: "2024-01-02T01:19:29.000000Z", + display_ends_at: "2020-07-11T01:34:28.000000Z", + is_disabled: true, + is_hidden: false, + is_public: true, + code: "uj8A7eDOA", + usage_limit: 6315, + min_amount: 4099, + storage_id: "c5759a98-b157-4cab-91e5-abaff2a27aef" })); status = response.code; } catch (e) { @@ -12152,14 +12629,14 @@ test('Check CreateCoupon | 36', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 7220.0, - is_shop_specified: false, - available_shop_ids: ["3ed2b3cb-a4d8-4f55-bfb1-8b72a9ec6188", "d37b6756-03cc-459a-a636-6c55d3ade527", "8d89a530-ac4b-4934-87e0-b990bfcdeb5f", "2c6ff334-cfc2-40ef-a2f6-43112b12a4ab", "ad682780-8848-4a21-bf89-db2aa556904b"] + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 21.0, + is_shop_specified: true, + available_shop_ids: ["47915465-a013-43c6-9fe0-fa0b9c291036"] })); status = response.code; } catch (e) { @@ -12175,15 +12652,15 @@ test('Check CreateCoupon | 37', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 2673.0, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 8694.0, is_shop_specified: false, - available_shop_ids: ["b0ef9f12-9460-4bbe-a922-37c750bbcd01", "26587642-7e83-4dad-857f-4a96db039b47", "65eec6ba-1a1f-4a26-bdb1-55c46de1cfa1", "176f785a-01fe-44fd-8bea-0eb276bf0274", "8c1fd087-cec2-4752-acc6-35e5242599a0", "ab108388-64a5-4016-a02f-7e72a5a4aee8", "ca541eff-d653-40f5-8cb2-3e9718582200", "c4acf214-7522-44b2-be21-c36792bb9347"], - storage_id: "4d1524bc-2fa2-4de7-bee1-b237640b19f0" + available_shop_ids: ["400bb3f9-f67b-441b-a71c-a531770a4cce", "8fac1e39-7b91-4870-94ec-f0ff4cfd2c78", "1e70ca37-587c-4e2f-aa19-939c3a1b1b6a", "8db16cc8-46cb-47a0-b145-6696c79ea6fb"], + storage_id: "4b422631-8750-4155-9169-460903175e2b" })); status = response.code; } catch (e) { @@ -12199,16 +12676,16 @@ test('Check CreateCoupon | 38', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 2819.0, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 4469.0, is_shop_specified: true, - available_shop_ids: ["6b704930-82ee-4fed-8c4d-bd1a0e23a0e6", "73c81adc-16ee-4307-ab49-e3af6fae341c", "cde1e159-42d4-4710-bbd1-f7648f03267e", "3d66de1e-50ba-4c9b-b192-4c837014ccbc", "b58e551d-f0c8-4100-bf24-634a9fb397da", "1094b925-6ab8-45d7-896e-b6c0b19c0844", "abdd9b18-5d48-4a8f-85bc-abd6ff3a35be"], - min_amount: 102, - storage_id: "e68deb01-c827-45dc-b0c9-d628c02dc8be" + available_shop_ids: ["844a8264-bd0d-4254-8026-68169967945b", "cb04ac60-18a1-45b2-8690-31be9e408a59", "1efed1d6-2656-4c3b-8ea1-d667e1c0920b"], + min_amount: 4456, + storage_id: "7843dec7-5c5b-423e-897e-f8e9b28173cf" })); status = response.code; } catch (e) { @@ -12224,17 +12701,17 @@ test('Check CreateCoupon | 39', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 9282.0, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 4577.0, is_shop_specified: true, - available_shop_ids: ["0db33645-0aa1-4bcf-8dfb-19ad163ddad0", "f7b56332-2780-463b-81a6-03d526cebe92", "8f919827-e437-4f2a-896b-a6d99236eef9", "ab37e6dc-302b-489f-a0e7-d60f9c490d01", "dc28b76d-876b-4ea7-ab44-ec9f3a81ac87"], - usage_limit: 6156, - min_amount: 3629, - storage_id: "9b088bf8-5805-481e-9164-0984c5a23833" + available_shop_ids: ["b768a76b-b5b8-4512-a423-3d2753f778c8", "8a472157-2557-4b9f-a2d8-0c4fd4b6461e", "43662892-5c4d-4e73-b91a-a4cd2a1f3e8c", "d8330cde-f2d6-4a90-9802-890beab432a3", "1a395a91-f0a8-451b-91cc-d1313ff0cb08", "6835311d-4489-4159-8f30-31a83c1d095f", "961a639b-2646-4f3e-9326-d989b143b97a"], + usage_limit: 3754, + min_amount: 7691, + storage_id: "797f782f-6ed6-47c7-a004-1490dc60e31b" })); status = response.code; } catch (e) { @@ -12250,18 +12727,18 @@ test('Check CreateCoupon | 40', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 832.0, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 3755.0, is_shop_specified: false, - available_shop_ids: ["cf2be07a-693b-42f0-ab7a-c5f6a39beb9e", "1215befc-0dbe-4650-ba3e-a9f3d0e94ad0", "3cf579ef-5eb2-42f6-abbf-6ce36c4fbcda", "02d413f6-534b-4484-a861-72bb0e196f9c", "4bfe0466-be34-4037-b00d-6c4459f40c77", "ec02ff91-ea86-43b5-99df-cb9e87d0edac"], - code: "I6", - usage_limit: 8677, - min_amount: 8325, - storage_id: "eb47ec15-ed41-4fa6-a2ad-9426485df6a4" + available_shop_ids: ["57e5156f-fe55-4833-9778-9d935bb384ca", "3202aace-3690-4b4b-a06d-a07588b24d7f", "ae2206e1-bf44-44f2-a2de-1234fd84cd3f", "8836d5e3-a313-4d80-aa3d-4f7e2900222c", "471f01a0-94cd-4153-ab41-87084862a400", "d7d95667-4dc8-42c4-9441-e340d86e586c", "ec7d39cc-316c-4792-8e50-ea36e24ba2cc"], + code: "5y", + usage_limit: 303, + min_amount: 9347, + storage_id: "2833a22a-f7b1-4d94-90f6-b2377e9d7988" })); status = response.code; } catch (e) { @@ -12277,19 +12754,19 @@ test('Check CreateCoupon | 41', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 8399.0, - is_shop_specified: false, - available_shop_ids: ["4705f294-b0c4-4e2b-82e7-01525eb1c595", "1cca2b96-a6fc-4e14-9141-dc671d8693ed", "06f35eea-ef85-44de-b890-d640eb8954bf"], - is_public: true, - code: "GCqaBwJ9", - usage_limit: 8536, - min_amount: 5610, - storage_id: "c7307dd8-6abc-4c53-85e6-016284b2676b" + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 2052.0, + is_shop_specified: true, + available_shop_ids: ["3ef65e3d-e46c-4a43-8d34-5ef996b2c940", "1a5a5186-589a-4812-b271-00bbeb417ab4", "1935336c-49c9-482b-b3ed-9848d67af92a", "617aa2af-e60f-4a79-bbf6-f8ae957a7566", "839fec41-d93e-4def-b10f-9dbcbc2c935a", "24c65b99-f16b-4277-ab18-606462089fa4", "c7ec92b2-3001-42c1-aa17-01447935ed8d"], + is_public: false, + code: "yNq", + usage_limit: 5170, + min_amount: 1440, + storage_id: "883470bc-cbd0-4ad7-9db9-41e51abfaed0" })); status = response.code; } catch (e) { @@ -12305,20 +12782,20 @@ test('Check CreateCoupon | 42', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 5085.0, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 6031.0, is_shop_specified: true, - available_shop_ids: ["862a6910-cb88-4d92-b376-02ec46d1e9aa"], - is_hidden: true, + available_shop_ids: ["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", "e175cad0-74dd-45f1-bf86-e0317118449a", "72ac22eb-356c-4bfe-a58e-987dc5facb29", "e970cad0-7a1a-480f-86d9-e1c9a735bb85"], + is_hidden: false, is_public: true, - code: "1NOUE", - usage_limit: 8157, - min_amount: 6669, - storage_id: "77a128ff-3da3-4c55-a6cf-7b9dc665c8c0" + code: "gZzpFf9", + usage_limit: 7065, + min_amount: 3958, + storage_id: "00a11f3b-745d-4c84-a0c3-5852ff3f331a" })); status = response.code; } catch (e) { @@ -12334,21 +12811,21 @@ test('Check CreateCoupon | 43', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 1412.0, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 9260.0, is_shop_specified: false, - available_shop_ids: ["85fe33d4-74e5-4f59-b5e1-ccb55bd97244", "902b3ef6-110c-48e5-8af3-a4ee7c4c6e38", "5e129fa7-74a6-4dec-a8c0-053bad574749", "ab264084-1055-49a0-a30d-307e9ab05a67", "29e3dcc9-3908-4f6b-99b0-cfae11f6946f", "6672ea4e-4360-4088-848a-70a8aaa40555", "426d5912-9a34-4e08-bdbb-69247c37a512", "d0480440-cca4-411b-9af4-990ecf02b8da"], - is_disabled: false, - is_hidden: true, + available_shop_ids: ["442187c4-9fa5-4755-b8ca-3bb599d4b539", "babc919e-b84f-405b-9cf4-d4e3934101ef", "6d2ef45f-26eb-443c-867f-4e1dc8d81b2b", "cf6a2b3e-7aa8-45c5-9f84-f2161bf162a8", "28be3b4d-ea4d-48d6-9e9b-985d485cd389"], + is_disabled: true, + is_hidden: false, is_public: false, - code: "Hmd", - usage_limit: 9339, - min_amount: 5494, - storage_id: "48064ff9-31ec-4aa0-891c-927d28cb5c94" + code: "iBo", + usage_limit: 8903, + min_amount: 9557, + storage_id: "631e55b1-50cf-4b8d-83f8-46df97625981" })); status = response.code; } catch (e) { @@ -12364,22 +12841,22 @@ test('Check CreateCoupon | 44', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 3084.0, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 2645.0, is_shop_specified: true, - available_shop_ids: ["398df768-72c7-43a1-a4c4-014d8dabcd02", "f3c9e73b-74f8-4703-82aa-86f54c8abfea", "40e3a40f-f417-462f-9c0f-02b814352341"], - display_ends_at: "2021-12-21T15:43:30.000000Z", - is_disabled: false, - is_hidden: false, + available_shop_ids: ["94f79ea7-947d-4b6d-8b1d-89fe610fe149", "0357376c-163a-4406-81b7-6a094660d76a"], + display_ends_at: "2023-02-05T18:31:30.000000Z", + is_disabled: true, + is_hidden: true, is_public: false, - code: "DOA", - usage_limit: 6315, - min_amount: 4099, - storage_id: "c5759a98-b157-4cab-91e5-abaff2a27aef" + code: "rfEKMQ8FC", + usage_limit: 9587, + min_amount: 1968, + storage_id: "b7c6cba8-518f-4736-b250-fd4c10e29b62" })); status = response.code; } catch (e) { @@ -12395,23 +12872,23 @@ test('Check CreateCoupon | 45', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 21.0, - is_shop_specified: true, - available_shop_ids: ["47915465-a013-43c6-9fe0-fa0b9c291036"], - display_starts_at: "2020-06-23T10:27:15.000000Z", - display_ends_at: "2022-01-25T23:08:38.000000Z", + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 2101.0, + is_shop_specified: false, + available_shop_ids: ["4e81ad2d-b366-4ffa-ae69-e0f7a6286e1a", "36eda71a-7a38-412e-9a60-cdaeba336eaa", "aad0c8b7-4c54-4ff2-afea-68223e4557d7", "2b45d900-ed68-4b13-9eb0-fc91b0e17642", "9c1e0ae0-28d1-4c9d-a41f-ae72c991800c", "00af4272-72b7-4b98-a221-ee0c4e580d4f", "6c123220-67c3-4082-b024-39c152d1d955", "86034266-1a4a-4417-9bee-f97d70258996", "e8a6c2da-79ee-489b-936f-02677817e878", "5ef3af93-8665-4143-9e7e-a90e6f3e8357"], + display_starts_at: "2020-12-07T20:20:30.000000Z", + display_ends_at: "2020-06-04T10:50:10.000000Z", is_disabled: false, - is_hidden: false, - is_public: false, - code: "1N9plx7j", - usage_limit: 4121, - min_amount: 5020, - storage_id: "3a1b1b6a-6cc8-46cb-a031-7545636c6696" + is_hidden: true, + is_public: true, + code: "l0P2Dqh3", + usage_limit: 8188, + min_amount: 7379, + storage_id: "32916e0b-1acb-42ab-b2b3-19cda4e76683" })); status = response.code; } catch (e) { @@ -12427,24 +12904,24 @@ test('Check CreateCoupon | 46', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 9979.0, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 4459.0, is_shop_specified: false, - available_shop_ids: ["e5f26155-ded1-4869-892b-517522354cd6"], - discount_upper_limit: 3967, - display_starts_at: "2021-01-05T23:06:34.000000Z", - display_ends_at: "2021-11-05T02:04:42.000000Z", + available_shop_ids: ["ff753a16-a384-46ed-b6c3-4bec66256dee", "e7d7009d-ee28-4030-ae8a-00e594b1e293", "721cb478-0578-4035-8dc3-8045a1dcf9f7", "fb7cdc35-e47e-4404-92b8-763347af603c", "cf9980ca-f332-42d7-9f45-1f429bcf2069", "0b220269-9bdc-4acf-96c6-327bb36e9c10", "f6ba39f5-2577-4d6e-803f-4187b87c561b", "309dc9ad-4f65-4e3b-9b08-979577b04e88", "3c9fd9d4-22af-4115-a657-d3c85ca2bbb1"], + discount_upper_limit: 753, + display_starts_at: "2023-02-14T15:47:15.000000Z", + display_ends_at: "2022-01-15T17:16:14.000000Z", is_disabled: false, is_hidden: true, is_public: true, - code: "T2YVV", - usage_limit: 7118, - min_amount: 4769, - storage_id: "79ced667-920b-431d-9d6b-d1687843dec7" + code: "FKkOnPRe3", + usage_limit: 7560, + min_amount: 767, + storage_id: "267ce1b3-5c4f-41f1-9920-0fcdc42a667c" })); status = response.code; } catch (e) { @@ -12460,25 +12937,25 @@ test('Check CreateCoupon | 47', async () => { let status = 400; try { const response: Response = await client.send(new CreateCoupon({ - private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", - name: "s3sss0bSZ", - starts_at: "2021-01-14T23:41:37.000000Z", - ends_at: "2020-09-06T06:55:56.000000Z", - issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 7259.0, + private_money_id: "66e0c7d2-0187-4635-b204-bfdd62185cbd", + name: "M", + starts_at: "2020-04-15T03:04:29.000000Z", + ends_at: "2022-01-03T18:07:35.000000Z", + issued_shop_id: "28da9a96-0e08-4c85-b084-887cc7d458af", + discount_percentage: 7222.0, is_shop_specified: true, - available_shop_ids: ["83e9307e-f8e9-43cf-a124-494a14fa6f96", "b768a76b-b5b8-4512-a423-3d2753f778c8", "8a472157-2557-4b9f-a2d8-0c4fd4b6461e", "43662892-5c4d-4e73-b91a-a4cd2a1f3e8c", "d8330cde-f2d6-4a90-9802-890beab432a3", "1a395a91-f0a8-451b-91cc-d1313ff0cb08", "6835311d-4489-4159-8f30-31a83c1d095f", "961a639b-2646-4f3e-9326-d989b143b97a", "042db78d-4eaa-4e0b-afd6-57c7d92fb8e0", "71011504-1490-431b-abf1-284ff43bcecb"], - description: "oU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iBoGU1OxUmIl7jlWxrfEKMQ8FCs062PLb59yfzniw8Z7TrjWh0BQdrr7bOC0AUfJnZn", - discount_upper_limit: 6299, - display_starts_at: "2024-01-27T13:55:31.000000Z", - display_ends_at: "2023-03-28T10:50:23.000000Z", + available_shop_ids: ["986c95a7-5137-491c-af02-c566bdd4ff1d", "4e75b52a-2bff-4110-896c-cbba71da506f", "86423770-caca-4070-9c4c-77302172ef03", "009ddd9f-beb6-4d84-b752-36cf79b5e7d1", "fa6d1496-7cbf-4a5a-ab33-a817024b4d8e", "d3e5be33-ede4-481c-938a-7a623a471235", "ec1a8831-8b9c-40c3-b251-cc3b7ffc57dc", "bcea0aac-e61e-455a-9694-21a7240f14af", "9d848b16-1fa1-4504-9cd6-5383f93afa01", "35ae4d6f-d18c-41f2-8db8-0fb0deee7a98"], + description: "jAnbL9pF2AijYf8ydTws4HIQ4An", + discount_upper_limit: 2153, + display_starts_at: "2024-04-13T16:10:40.000000Z", + display_ends_at: "2022-07-17T03:58:08.000000Z", is_disabled: false, is_hidden: true, - is_public: false, - code: "CWxbc4", - usage_limit: 6312, - min_amount: 7229, - storage_id: "79e59fbd-ceb0-4e50-b2c4-ee2a4708567f" + is_public: true, + code: "D9", + usage_limit: 5936, + min_amount: 687, + storage_id: "8c61658d-d0de-493c-886f-f5cc155a950c" })); status = response.code; } catch (e) { @@ -12494,7 +12971,7 @@ test('Check GetCoupon | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetCoupon({ - coupon_id: "37ca2208-5d71-4368-b393-e89b31863544" + coupon_id: "f88eda2f-f491-4613-9f36-f461f57277bf" })); status = response.code; } catch (e) { @@ -12510,8 +12987,8 @@ test('Check UpdateCoupon | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1971 + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 7078 })); status = response.code; } catch (e) { @@ -12527,9 +13004,9 @@ test('Check UpdateCoupon | 1', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 6605, - name: "k8m6" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 9174, + name: "afBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP7" })); status = response.code; } catch (e) { @@ -12545,10 +13022,10 @@ test('Check UpdateCoupon | 2', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 6851, - description: "n0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3", - name: "JQAlc0mxfIBE" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 6200, + description: "JI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2", + name: "aljg7pW" })); status = response.code; } catch (e) { @@ -12564,11 +13041,11 @@ test('Check UpdateCoupon | 3', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 3624, - discount_upper_limit: 8519, - description: "WMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqyd", - name: "ndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEe" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 7868, + discount_upper_limit: 3486, + description: "tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKa", + name: "l8UJ7mvjTFU0wWAMu89mD0TpxWczQ" })); status = response.code; } catch (e) { @@ -12584,12 +13061,12 @@ test('Check UpdateCoupon | 4', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1336, - starts_at: "2020-09-14T07:21:18.000000Z", - discount_upper_limit: 8419, - description: "L5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxF", - name: "X7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2P" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 7545, + starts_at: "2023-02-12T20:35:36.000000Z", + discount_upper_limit: 4055, + description: "VgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81", + name: "XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2P" })); status = response.code; } catch (e) { @@ -12605,13 +13082,13 @@ test('Check UpdateCoupon | 5', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", discount_amount: 5603, - ends_at: "2020-05-10T10:02:02.000000Z", - starts_at: "2022-03-03T10:05:30.000000Z", - discount_upper_limit: 6669, - description: "2ctvmZzuG53qZWTYzGouu", - name: "X6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3C" + ends_at: "2022-03-03T10:05:30.000000Z", + starts_at: "2020-11-08T00:25:49.000000Z", + discount_upper_limit: 2068, + description: "2ctvmZzuG53qZ", + name: "TYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3CIlE3dO8Hdi7PJ" })); status = response.code; } catch (e) { @@ -12627,14 +13104,14 @@ test('Check UpdateCoupon | 6', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1277, - display_starts_at: "2020-09-05T11:32:25.000000Z", - ends_at: "2020-05-20T02:48:54.000000Z", - starts_at: "2020-04-15T18:37:32.000000Z", - discount_upper_limit: 9669, - description: "dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8u", - name: "okXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3Po" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 9593, + display_starts_at: "2024-02-21T10:23:58.000000Z", + ends_at: "2021-09-04T12:03:53.000000Z", + starts_at: "2023-03-13T02:47:37.000000Z", + discount_upper_limit: 5607, + description: "AK5b9hyZhcZh8MuSlVRKgCSpIL13YY", + name: "GN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbp" })); status = response.code; } catch (e) { @@ -12650,15 +13127,15 @@ test('Check UpdateCoupon | 7', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 5999, - display_ends_at: "2023-10-18T01:36:24.000000Z", - display_starts_at: "2020-09-02T00:29:43.000000Z", - ends_at: "2022-04-26T07:44:48.000000Z", - starts_at: "2022-07-12T10:34:51.000000Z", - discount_upper_limit: 4289, - description: "3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9C", - name: "N5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 9422, + display_ends_at: "2023-10-08T08:17:01.000000Z", + display_starts_at: "2020-02-04T08:38:38.000000Z", + ends_at: "2022-03-18T09:49:29.000000Z", + starts_at: "2023-07-20T05:52:32.000000Z", + discount_upper_limit: 8827, + description: "ET9MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB", + name: "37CRt8PxiPIwCl" })); status = response.code; } catch (e) { @@ -12674,16 +13151,16 @@ test('Check UpdateCoupon | 8', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 6369, - is_disabled: false, - display_ends_at: "2021-05-15T22:02:56.000000Z", - display_starts_at: "2023-05-10T05:55:37.000000Z", - ends_at: "2023-07-22T16:36:18.000000Z", - starts_at: "2023-01-12T10:59:04.000000Z", - discount_upper_limit: 1185, - description: "gOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw", - name: "eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslT" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 4380, + is_disabled: true, + display_ends_at: "2023-12-06T06:46:50.000000Z", + display_starts_at: "2021-02-06T03:34:09.000000Z", + ends_at: "2021-04-12T01:13:51.000000Z", + starts_at: "2021-07-18T09:01:27.000000Z", + discount_upper_limit: 9157, + description: "sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZ", + name: "trUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkN" })); status = response.code; } catch (e) { @@ -12699,17 +13176,17 @@ test('Check UpdateCoupon | 9', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 2342, + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 4128, is_hidden: true, - is_disabled: false, - display_ends_at: "2022-04-20T01:25:25.000000Z", - display_starts_at: "2023-10-08T13:53:12.000000Z", - ends_at: "2022-03-18T09:03:54.000000Z", - starts_at: "2021-06-30T22:02:05.000000Z", - discount_upper_limit: 432, - description: "0PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFum", - name: "QVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IA" + is_disabled: true, + display_ends_at: "2022-11-25T07:03:22.000000Z", + display_starts_at: "2023-05-01T07:54:07.000000Z", + ends_at: "2021-05-11T04:30:26.000000Z", + starts_at: "2022-07-24T05:13:39.000000Z", + discount_upper_limit: 1749, + description: "UlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iw", + name: "l9CKN5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9" })); status = response.code; } catch (e) { @@ -12725,18 +13202,18 @@ test('Check UpdateCoupon | 10', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 5337, + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 7431, is_public: true, - is_hidden: false, - is_disabled: true, - display_ends_at: "2023-08-26T20:02:34.000000Z", - display_starts_at: "2021-08-13T21:31:53.000000Z", - ends_at: "2022-02-14T12:55:29.000000Z", - starts_at: "2022-10-19T08:05:31.000000Z", - discount_upper_limit: 3488, - description: "HAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVf", - name: "L5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3Px" + is_hidden: true, + is_disabled: false, + display_ends_at: "2023-08-04T10:32:30.000000Z", + display_starts_at: "2021-05-15T22:02:56.000000Z", + ends_at: "2023-01-12T10:59:04.000000Z", + starts_at: "2020-08-20T16:38:19.000000Z", + discount_upper_limit: 5284, + description: "OJ9lz7HMs7r8Mwpfor2", + name: "g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3" })); status = response.code; } catch (e) { @@ -12752,19 +13229,19 @@ test('Check UpdateCoupon | 11', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 7058, - code: "v", - is_public: true, - is_hidden: false, + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 7450, + code: "scS", + is_public: false, + is_hidden: true, is_disabled: true, - display_ends_at: "2023-09-17T19:01:04.000000Z", - display_starts_at: "2023-01-19T19:29:08.000000Z", - ends_at: "2021-03-21T02:48:14.000000Z", - starts_at: "2024-02-22T15:55:19.000000Z", - discount_upper_limit: 3031, - description: "A6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizY", - name: "vZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnIC" + display_ends_at: "2023-04-26T22:54:50.000000Z", + display_starts_at: "2022-08-05T00:50:13.000000Z", + ends_at: "2024-01-14T09:08:15.000000Z", + starts_at: "2021-06-18T15:20:53.000000Z", + discount_upper_limit: 5111, + description: "AJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44", + name: "NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLp" })); status = response.code; } catch (e) { @@ -12780,20 +13257,20 @@ test('Check UpdateCoupon | 12', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 6693, - usage_limit: 7178, - code: "BJimGKiop", + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 5703, + usage_limit: 5811, + code: "IRMVqbJ", is_public: true, - is_hidden: true, + is_hidden: false, is_disabled: true, - display_ends_at: "2020-01-24T01:52:50.000000Z", - display_starts_at: "2020-07-24T06:27:09.000000Z", - ends_at: "2022-10-23T01:58:06.000000Z", - starts_at: "2023-10-07T12:21:53.000000Z", - discount_upper_limit: 8662, - description: "9", - name: "u47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7Rr" + display_ends_at: "2022-10-16T15:33:36.000000Z", + display_starts_at: "2021-10-23T10:09:44.000000Z", + ends_at: "2021-02-28T15:59:57.000000Z", + starts_at: "2023-01-14T02:45:36.000000Z", + discount_upper_limit: 9005, + description: "zwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4", + name: "Z4gR5YjMfLJAECo2gND" })); status = response.code; } catch (e) { @@ -12809,21 +13286,21 @@ test('Check UpdateCoupon | 13', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 3320, - min_amount: 8177, - usage_limit: 2786, - code: "xY5", - is_public: false, + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 6365, + min_amount: 1476, + usage_limit: 8050, + code: "V3Pxoz", + is_public: true, is_hidden: true, is_disabled: true, - display_ends_at: "2020-10-28T00:05:23.000000Z", - display_starts_at: "2022-12-20T18:53:15.000000Z", - ends_at: "2022-01-27T12:10:21.000000Z", - starts_at: "2020-06-26T00:50:42.000000Z", - discount_upper_limit: 3192, - description: "b35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKI", - name: "dqTZCuDots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzma" + display_ends_at: "2020-06-05T02:10:36.000000Z", + display_starts_at: "2023-09-17T19:01:04.000000Z", + ends_at: "2021-03-21T02:48:14.000000Z", + starts_at: "2024-02-22T15:55:19.000000Z", + discount_upper_limit: 3031, + description: "A6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizY", + name: "vZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnIC" })); status = response.code; } catch (e) { @@ -12839,22 +13316,22 @@ test('Check UpdateCoupon | 14', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 4030, - is_shop_specified: false, - min_amount: 3120, - usage_limit: 2135, - code: "VCj", + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 6693, + is_shop_specified: true, + min_amount: 7178, + usage_limit: 8890, + code: "BJimGKiop", is_public: true, - is_hidden: false, - is_disabled: false, - display_ends_at: "2022-01-10T01:07:38.000000Z", - display_starts_at: "2022-11-04T10:45:55.000000Z", - ends_at: "2021-07-18T22:29:58.000000Z", - starts_at: "2020-04-25T13:22:39.000000Z", - discount_upper_limit: 2424, - description: "XnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4", - name: "bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI" + is_hidden: true, + is_disabled: true, + display_ends_at: "2024-04-25T12:34:58.000000Z", + display_starts_at: "2020-07-24T06:27:09.000000Z", + ends_at: "2023-10-07T12:21:53.000000Z", + starts_at: "2020-01-05T11:26:56.000000Z", + discount_upper_limit: 1977, + description: "u47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzma", + name: "0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxr" })); status = response.code; } catch (e) { @@ -12870,23 +13347,23 @@ test('Check UpdateCoupon | 15', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 5168, - available_shop_ids: ["ae9ec8ff-29c5-49a8-8f92-10271208b93e", "f131a284-cd80-4a1c-bb49-c4bc595b4e25", "539e4b17-9b22-4ff1-8fa3-bfc66b9fbe87", "9f38494c-5371-4c6e-8cb2-f6a0929a205a", "8905f6de-9c17-4f75-8c2f-92eb57d9f297"], + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 1875, + available_shop_ids: ["4893587e-a0d9-456e-8d49-1430ff40b6e4", "ae9ec8ff-29c5-49a8-8f92-10271208b93e", "f131a284-cd80-4a1c-bb49-c4bc595b4e25", "539e4b17-9b22-4ff1-8fa3-bfc66b9fbe87", "9f38494c-5371-4c6e-8cb2-f6a0929a205a", "8905f6de-9c17-4f75-8c2f-92eb57d9f297", "41ca25de-97b5-4fc7-a6a8-e14695d66932", "8965d846-7006-44d5-b579-d77bebeca844", "b8d0a8d6-3d07-4a11-bb55-b6f0d1b92092", "337c9a5b-5dda-406e-a7c3-7f35113e71aa"], is_shop_specified: true, - min_amount: 6069, - usage_limit: 7334, - code: "F2FUuyDVU", - is_public: true, - is_hidden: true, + min_amount: 4441, + usage_limit: 6501, + code: "z", + is_public: false, + is_hidden: false, is_disabled: false, - display_ends_at: "2022-11-09T23:59:22.000000Z", - display_starts_at: "2021-11-05T06:38:38.000000Z", - ends_at: "2022-05-08T04:57:11.000000Z", - starts_at: "2024-02-25T02:06:59.000000Z", - discount_upper_limit: 4441, - description: "ez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOy", - name: "21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see" + display_ends_at: "2021-04-21T18:38:31.000000Z", + display_starts_at: "2024-04-17T15:06:11.000000Z", + ends_at: "2023-02-12T14:39:57.000000Z", + starts_at: "2023-03-10T14:55:43.000000Z", + discount_upper_limit: 3320, + description: "e0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGg", + name: "Klkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWo" })); status = response.code; } catch (e) { @@ -12902,24 +13379,24 @@ test('Check UpdateCoupon | 16', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 5301, - storage_id: "9e17eafe-e8c0-4808-a1f1-0a131d9f69c7", - available_shop_ids: ["4a09ea83-13e7-46ce-ace0-a60afb82a391", "0ee8b57c-ff5b-40ad-8bec-be2483e12a15", "a790d814-2e1d-43a2-bd6b-3c8f88a6faa6", "ba9417f6-0e08-4eb5-9008-f1f663e72045", "a61bd28f-6afd-4686-ab63-61df7d4ad05c", "3a5ede3b-c989-4cc5-af22-a0cd605b1d06", "05a09d6a-f0ba-433f-a254-de34c88a4656", "3263c9d0-38b8-415d-acda-09c65ff0bcad", "3b0fc2b0-5641-4a68-9bfb-19892e81341f"], + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 493, + storage_id: "90ec9e37-fe03-4c2e-9b69-f3532eeaed92", + available_shop_ids: ["9767518e-da5c-4c7c-869d-6fc90f5f5081", "2b2979cf-14b4-43f5-9a64-c8903c7ec724", "c3692774-170b-42ca-8047-776eb50d44b6", "40333d48-00bc-4d5c-a457-4791911dab9b", "3d3e1a25-6ccc-419d-bcab-7c42ce9424d6", "c1d82671-9082-4d37-8acb-7fcc47640b1f"], is_shop_specified: true, - min_amount: 4725, - usage_limit: 5902, - code: "hoXC", + min_amount: 9874, + usage_limit: 7807, + code: "Iw17", is_public: false, - is_hidden: true, - is_disabled: true, - display_ends_at: "2023-10-29T09:57:30.000000Z", - display_starts_at: "2023-04-05T21:15:37.000000Z", - ends_at: "2022-12-29T01:49:43.000000Z", - starts_at: "2023-11-22T00:07:21.000000Z", - discount_upper_limit: 6630, - description: "Yfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vF", - name: "ea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc" + is_hidden: false, + is_disabled: false, + display_ends_at: "2022-03-01T10:36:53.000000Z", + display_starts_at: "2023-01-04T16:46:49.000000Z", + ends_at: "2021-04-09T21:59:10.000000Z", + starts_at: "2024-04-10T03:14:29.000000Z", + discount_upper_limit: 1539, + description: "RgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc4uSkk26uSRwX6Rx7fOEoFSQ", + name: "iDYpTTgrywklVD4mELe2edQ" })); status = response.code; } catch (e) { @@ -12935,9 +13412,9 @@ test('Check UpdateCoupon | 17', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 3851, - discount_percentage: 4745.0 + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 1252, + discount_percentage: 2826.0 })); status = response.code; } catch (e) { @@ -12953,10 +13430,10 @@ test('Check UpdateCoupon | 18', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 40, - discount_percentage: 4085.0, - name: "kk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 5137, + discount_percentage: 9037.0, + name: "wu12UeT7ThuLLgJ9PT" })); status = response.code; } catch (e) { @@ -12972,11 +13449,11 @@ test('Check UpdateCoupon | 19', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 9484, - discount_percentage: 8601.0, - description: "BlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4", - name: "fUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruI" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 5554, + discount_percentage: 8843.0, + description: "GkxOOzhTpPLnUQXea3eTBlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4XfUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQ", + name: "s8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ" })); status = response.code; } catch (e) { @@ -12992,12 +13469,12 @@ test('Check UpdateCoupon | 20', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1367, - discount_percentage: 115.0, - discount_upper_limit: 3331, - description: "4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5", - name: "t8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6Jlqv" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 5390, + discount_percentage: 9773.0, + discount_upper_limit: 3265, + description: "zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDa", + name: "hvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I" })); status = response.code; } catch (e) { @@ -13013,13 +13490,13 @@ test('Check UpdateCoupon | 21', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1149, - discount_percentage: 9556.0, - starts_at: "2021-02-16T11:41:35.000000Z", - discount_upper_limit: 9715, - description: "7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFhS", - name: "bUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 9129, + discount_percentage: 1759.0, + starts_at: "2021-05-15T12:41:43.000000Z", + discount_upper_limit: 7120, + description: "FzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oej", + name: "I9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmF" })); status = response.code; } catch (e) { @@ -13035,14 +13512,14 @@ test('Check UpdateCoupon | 22', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 8884, - discount_percentage: 8369.0, - ends_at: "2023-02-02T05:10:51.000000Z", - starts_at: "2022-01-16T00:07:17.000000Z", - discount_upper_limit: 8450, - description: "Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kI", - name: "mOLWynZ7sTqSkOWWDLZmiyY4qSDc" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 5478, + discount_percentage: 3885.0, + ends_at: "2021-05-12T01:50:40.000000Z", + starts_at: "2023-03-03T10:46:17.000000Z", + discount_upper_limit: 4263, + description: "PpsziVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4", + name: "mk88yYjRj6ppJLnlec8JObXuRs" })); status = response.code; } catch (e) { @@ -13058,15 +13535,15 @@ test('Check UpdateCoupon | 23', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 9445, - discount_percentage: 1457.0, - display_starts_at: "2021-09-01T21:03:10.000000Z", - ends_at: "2022-10-12T02:30:00.000000Z", - starts_at: "2022-08-30T12:14:25.000000Z", - discount_upper_limit: 3894, - description: "C4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22", - name: "kprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxA" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 5989, + discount_percentage: 5702.0, + display_starts_at: "2020-02-26T01:40:40.000000Z", + ends_at: "2023-08-21T15:27:06.000000Z", + starts_at: "2024-02-12T19:22:27.000000Z", + discount_upper_limit: 4927, + description: "OCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZt", + name: "IAyP3B3n1m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZg" })); status = response.code; } catch (e) { @@ -13082,16 +13559,16 @@ test('Check UpdateCoupon | 24', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1704, - discount_percentage: 5062.0, - display_ends_at: "2023-06-06T13:41:03.000000Z", - display_starts_at: "2021-08-29T08:59:32.000000Z", - ends_at: "2021-10-09T22:51:23.000000Z", - starts_at: "2023-06-03T00:22:24.000000Z", - discount_upper_limit: 5770, - description: "GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bn", - name: "X1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6C" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 5393, + discount_percentage: 371.0, + display_ends_at: "2022-10-06T12:33:28.000000Z", + display_starts_at: "2023-04-29T15:43:29.000000Z", + ends_at: "2022-05-06T18:04:27.000000Z", + starts_at: "2020-06-05T02:27:07.000000Z", + discount_upper_limit: 723, + description: "DA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1B", + name: "igovU99ROsTZK65zQOhilbvDcAlC" })); status = response.code; } catch (e) { @@ -13107,17 +13584,17 @@ test('Check UpdateCoupon | 25', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 5594, - discount_percentage: 3235.0, + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 4297, + discount_percentage: 5504.0, is_disabled: false, - display_ends_at: "2022-11-21T04:50:37.000000Z", - display_starts_at: "2022-07-09T19:17:30.000000Z", - ends_at: "2024-02-29T07:46:53.000000Z", - starts_at: "2022-08-19T04:51:51.000000Z", - discount_upper_limit: 6857, - description: "HDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQO", - name: "hilbvDcAlCpIpPo9knGna2qU0GmaUmeizg" + display_ends_at: "2023-09-19T03:55:01.000000Z", + display_starts_at: "2024-04-30T12:42:35.000000Z", + ends_at: "2021-08-04T10:55:26.000000Z", + starts_at: "2021-09-20T03:16:00.000000Z", + discount_upper_limit: 4957, + description: "Po9knGna2qU", + name: "GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPB" })); status = response.code; } catch (e) { @@ -13133,18 +13610,18 @@ test('Check UpdateCoupon | 26', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 8488, - discount_percentage: 4489.0, - is_hidden: false, + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 8216, + discount_percentage: 9846.0, + is_hidden: true, is_disabled: true, - display_ends_at: "2022-07-02T11:13:06.000000Z", - display_starts_at: "2022-12-23T01:36:40.000000Z", - ends_at: "2022-06-22T06:35:17.000000Z", - starts_at: "2021-03-06T08:34:30.000000Z", - discount_upper_limit: 9478, - description: "wqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536", - name: "2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0k" + display_ends_at: "2021-10-21T05:52:47.000000Z", + display_starts_at: "2021-11-26T12:29:26.000000Z", + ends_at: "2020-02-22T14:07:39.000000Z", + starts_at: "2022-10-08T13:08:53.000000Z", + discount_upper_limit: 6238, + description: "6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKC", + name: "Z1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDR" })); status = response.code; } catch (e) { @@ -13160,19 +13637,19 @@ test('Check UpdateCoupon | 27', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 8252, - discount_percentage: 7917.0, + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 5073, + discount_percentage: 3512.0, is_public: true, is_hidden: true, - is_disabled: false, - display_ends_at: "2022-08-08T12:14:12.000000Z", - display_starts_at: "2023-01-03T03:55:08.000000Z", - ends_at: "2023-08-01T12:14:38.000000Z", - starts_at: "2022-11-25T20:14:21.000000Z", - discount_upper_limit: 3684, - description: "8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2", - name: "Y3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7" + is_disabled: true, + display_ends_at: "2021-09-11T20:48:49.000000Z", + display_starts_at: "2023-03-01T17:51:58.000000Z", + ends_at: "2023-06-28T22:54:36.000000Z", + starts_at: "2022-04-17T21:03:27.000000Z", + discount_upper_limit: 9774, + description: "QkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi2", + name: "2Jw1idAxcQ9RQcA93jzk" })); status = response.code; } catch (e) { @@ -13188,20 +13665,20 @@ test('Check UpdateCoupon | 28', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 4076, - discount_percentage: 30.0, - code: "qy4kEKJ1Q", + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 6128, + discount_percentage: 1300.0, + code: "VE1", is_public: false, is_hidden: false, - is_disabled: false, - display_ends_at: "2022-10-27T14:43:36.000000Z", - display_starts_at: "2023-05-01T01:15:06.000000Z", - ends_at: "2022-06-15T14:56:21.000000Z", - starts_at: "2023-01-18T20:31:52.000000Z", - discount_upper_limit: 2992, - description: "ZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlk", - name: "s1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSH" + is_disabled: true, + display_ends_at: "2022-03-01T04:36:08.000000Z", + display_starts_at: "2024-03-04T18:18:02.000000Z", + ends_at: "2023-08-02T23:44:57.000000Z", + starts_at: "2022-04-11T21:17:12.000000Z", + discount_upper_limit: 2784, + description: "sp14vePeJl09h1S", + name: "mSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSP" })); status = response.code; } catch (e) { @@ -13217,21 +13694,21 @@ test('Check UpdateCoupon | 29', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 6507, - discount_percentage: 4332.0, - usage_limit: 3122, - code: "NjfKFk3x", + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 8019, + discount_percentage: 9378.0, + usage_limit: 358, + code: "kv8", is_public: false, is_hidden: true, is_disabled: true, - display_ends_at: "2020-09-22T13:07:47.000000Z", - display_starts_at: "2020-06-18T03:09:02.000000Z", - ends_at: "2020-03-30T20:40:11.000000Z", - starts_at: "2022-10-24T02:13:06.000000Z", - discount_upper_limit: 581, - description: "uZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2Q", - name: "qNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85" + display_ends_at: "2023-05-22T21:54:55.000000Z", + display_starts_at: "2023-08-30T22:00:31.000000Z", + ends_at: "2023-11-03T14:38:28.000000Z", + starts_at: "2023-02-23T14:31:09.000000Z", + discount_upper_limit: 3592, + description: "CXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4Afuww", + name: "eTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNa" })); status = response.code; } catch (e) { @@ -13247,22 +13724,22 @@ test('Check UpdateCoupon | 30', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 9357, - discount_percentage: 273.0, - min_amount: 4197, - usage_limit: 4929, - code: "Ni4DCh9E1p", - is_public: false, + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 1071, + discount_percentage: 2548.0, + min_amount: 2733, + usage_limit: 6259, + code: "wZjW", + is_public: true, is_hidden: false, is_disabled: false, - display_ends_at: "2021-11-12T14:41:44.000000Z", - display_starts_at: "2021-10-07T02:21:04.000000Z", - ends_at: "2020-06-09T11:54:21.000000Z", - starts_at: "2023-07-25T06:56:05.000000Z", - discount_upper_limit: 1921, - description: "vY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xx", - name: "Ci9aS7pUn8sHDE4F3kcf0hr" + display_ends_at: "2022-02-09T06:36:21.000000Z", + display_starts_at: "2022-09-22T15:32:32.000000Z", + ends_at: "2021-06-22T20:08:31.000000Z", + starts_at: "2023-01-06T18:33:29.000000Z", + discount_upper_limit: 9286, + description: "c4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul", + name: "3ISoLlG" })); status = response.code; } catch (e) { @@ -13278,23 +13755,23 @@ test('Check UpdateCoupon | 31', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1617, - discount_percentage: 993.0, + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 3002, + discount_percentage: 3289.0, is_shop_specified: false, - min_amount: 6258, - usage_limit: 4233, - code: "ThS8KkZC", + min_amount: 349, + usage_limit: 2087, + code: "oXoGAustV", is_public: false, - is_hidden: true, - is_disabled: true, - display_ends_at: "2020-04-10T21:59:54.000000Z", - display_starts_at: "2023-01-27T17:43:26.000000Z", - ends_at: "2022-02-24T15:14:25.000000Z", - starts_at: "2020-11-24T16:48:56.000000Z", - discount_upper_limit: 479, - description: "SP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH", - name: "9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoa" + is_hidden: false, + is_disabled: false, + display_ends_at: "2022-09-24T05:30:17.000000Z", + display_starts_at: "2022-04-09T11:33:13.000000Z", + ends_at: "2023-09-28T13:12:14.000000Z", + starts_at: "2020-04-15T22:44:55.000000Z", + discount_upper_limit: 8960, + description: "I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5Mv", + name: "hzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25V" })); status = response.code; } catch (e) { @@ -13310,24 +13787,24 @@ test('Check UpdateCoupon | 32', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 2731, - discount_percentage: 3077.0, - available_shop_ids: ["e0581ca4-3554-4c5e-ad56-9e9e0de1fa58", "e5178e30-4f58-4f71-b14c-12075b19deb2", "b312d144-581b-4688-bdc4-fd436355c0e4"], - is_shop_specified: true, - min_amount: 3143, - usage_limit: 7158, - code: "9Q", - is_public: false, + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 9360, + discount_percentage: 4823.0, + available_shop_ids: ["d0a11059-cda9-4e0f-a3dc-cfc8b1ec8822", "19a49052-961a-48b7-906d-911f9d84571c"], + is_shop_specified: false, + min_amount: 8537, + usage_limit: 2056, + code: "y85eAI", + is_public: true, is_hidden: false, is_disabled: false, - display_ends_at: "2020-07-23T09:39:26.000000Z", - display_starts_at: "2021-11-29T08:02:08.000000Z", - ends_at: "2023-11-09T10:42:06.000000Z", - starts_at: "2022-02-25T16:39:41.000000Z", - discount_upper_limit: 7405, - description: "X2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy", - name: "00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamO" + display_ends_at: "2020-06-25T14:18:17.000000Z", + display_starts_at: "2022-04-23T01:21:08.000000Z", + ends_at: "2021-11-21T00:42:17.000000Z", + starts_at: "2020-10-10T19:23:32.000000Z", + discount_upper_limit: 3519, + description: "Ch9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0", + name: "hrQ4" })); status = response.code; } catch (e) { @@ -13343,25 +13820,25 @@ test('Check UpdateCoupon | 33', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 8605, - discount_percentage: 9224.0, - storage_id: "1320b152-d5ed-4fd7-a373-0cf317deafa4", - available_shop_ids: ["43cf93b2-cb11-4ba6-bdc6-14c657d58eb3", "35d74648-b29b-46c1-bae8-56406379f474", "c38bf3f4-623b-44b1-b875-961fa976023e", "4fdb232e-2c94-4612-aa20-02e0f9410421", "eb5ccaae-c1b7-4d1a-8d6f-ba115ff4df6f", "c589f3d5-5f07-4d04-b58f-4cfbfa60fbe5", "bbc4b156-21d7-4cef-b8db-d6d4675cad9f", "34d3a7b9-e364-4fd2-824e-84f646fcb51c", "e2481ce6-3df5-4033-a73b-b0f1c5b86c9b", "be221607-38eb-4977-9442-3d4479a58d8a"], - is_shop_specified: true, - min_amount: 122, - usage_limit: 6460, - code: "QpgEVips", + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_amount: 993, + discount_percentage: 5171.0, + storage_id: "ac30d872-7850-4089-a754-b1e8c0563320", + available_shop_ids: ["3be0a59b-bba4-4b53-b880-6eabd1866a9b", "dd23054b-746b-4b5d-9a43-cf4f7f9efc0e", "d576862c-0b5a-4c3e-9178-01df71d455e5", "fc54b020-6a53-46d0-b21b-0b8d3397e0be", "352aacfa-e039-418f-b195-83df48817e3b", "71cf4e78-e283-414e-aa9d-b11e5c79267f", "4bee7df6-7546-4a06-8e72-15cc6066ee19"], + is_shop_specified: false, + min_amount: 8037, + usage_limit: 4322, + code: "M3qu8k", is_public: false, is_hidden: true, - is_disabled: true, - display_ends_at: "2022-04-24T23:41:04.000000Z", - display_starts_at: "2022-08-27T01:34:21.000000Z", - ends_at: "2021-11-30T06:35:29.000000Z", - starts_at: "2020-09-02T19:20:31.000000Z", - discount_upper_limit: 4207, - description: "pS", - name: "XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa6s2OiS" + is_disabled: false, + display_ends_at: "2022-07-08T05:00:24.000000Z", + display_starts_at: "2020-04-19T13:07:58.000000Z", + ends_at: "2023-02-16T00:31:22.000000Z", + starts_at: "2024-04-06T23:14:24.000000Z", + discount_upper_limit: 3472, + description: "aevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9S", + name: "7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR" })); status = response.code; } catch (e) { @@ -13377,8 +13854,8 @@ test('Check UpdateCoupon | 34', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 9396.0 + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 5679.0 })); status = response.code; } catch (e) { @@ -13394,9 +13871,9 @@ test('Check UpdateCoupon | 35', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 1788.0, - name: "zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2F" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 6878.0, + name: "4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM" })); status = response.code; } catch (e) { @@ -13412,10 +13889,10 @@ test('Check UpdateCoupon | 36', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 4050.0, - description: "RBCtapsc2OJEtIYHTkPMCnHWRh", - name: "K3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 4234.0, + description: "sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2D", + name: "DCdNGv9QaNMmxX2S2fPh6fy135I5" })); status = response.code; } catch (e) { @@ -13431,11 +13908,11 @@ test('Check UpdateCoupon | 37', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 3886.0, - discount_upper_limit: 8232, - description: "J6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8", - name: "v3XGoxNYBzQF26RR" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 452.0, + discount_upper_limit: 5642, + description: "GGggnvkdWrHaspAw5Vcp7C", + name: "78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XO" })); status = response.code; } catch (e) { @@ -13451,12 +13928,12 @@ test('Check UpdateCoupon | 38', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 2030.0, - starts_at: "2021-07-18T03:46:21.000000Z", - discount_upper_limit: 1227, - description: "M2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxO", - name: "gNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 1059.0, + starts_at: "2020-07-31T12:48:36.000000Z", + discount_upper_limit: 8007, + description: "887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ", + name: "SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176" })); status = response.code; } catch (e) { @@ -13472,13 +13949,13 @@ test('Check UpdateCoupon | 39', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 4342.0, - ends_at: "2023-10-08T17:08:20.000000Z", - starts_at: "2022-08-07T16:45:00.000000Z", - discount_upper_limit: 7091, - description: "yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4s", - name: "tkoPc7UXRyRiV8P" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 3661.0, + ends_at: "2020-09-03T05:22:52.000000Z", + starts_at: "2023-12-05T14:15:06.000000Z", + discount_upper_limit: 8571, + description: "YJwKQkQhcSsOlDNZZsSWHBkBrsiXhC", + name: "ZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwb" })); status = response.code; } catch (e) { @@ -13494,14 +13971,14 @@ test('Check UpdateCoupon | 40', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 2986.0, - display_starts_at: "2020-03-03T08:39:56.000000Z", - ends_at: "2020-11-03T02:57:26.000000Z", - starts_at: "2021-10-24T06:28:19.000000Z", - discount_upper_limit: 7304, - description: "x53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzh", - name: "bkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKN" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 794.0, + display_starts_at: "2020-07-09T22:04:56.000000Z", + ends_at: "2022-01-12T15:04:27.000000Z", + starts_at: "2022-09-18T15:39:39.000000Z", + discount_upper_limit: 8119, + description: "bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJ", + name: "Vfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNYB" })); status = response.code; } catch (e) { @@ -13517,15 +13994,15 @@ test('Check UpdateCoupon | 41', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 6856.0, - display_ends_at: "2020-12-11T15:26:11.000000Z", - display_starts_at: "2021-08-21T17:19:13.000000Z", - ends_at: "2022-11-22T01:22:29.000000Z", - starts_at: "2021-08-31T06:48:48.000000Z", - discount_upper_limit: 1130, - description: "8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNT", - name: "sv2Llex1ej" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 6944.0, + display_ends_at: "2023-10-19T15:22:57.000000Z", + display_starts_at: "2020-05-21T02:41:10.000000Z", + ends_at: "2023-03-21T10:21:38.000000Z", + starts_at: "2022-07-10T17:30:30.000000Z", + discount_upper_limit: 2734, + description: "RnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJ", + name: "LQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKr" })); status = response.code; } catch (e) { @@ -13541,16 +14018,16 @@ test('Check UpdateCoupon | 42', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 7424.0, - is_disabled: false, - display_ends_at: "2021-07-22T17:27:26.000000Z", - display_starts_at: "2023-10-23T01:56:33.000000Z", - ends_at: "2022-02-25T09:09:49.000000Z", - starts_at: "2022-12-09T07:26:19.000000Z", - discount_upper_limit: 1629, - description: "2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3", - name: "OsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnU" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 525.0, + is_disabled: true, + display_ends_at: "2023-05-06T19:46:10.000000Z", + display_starts_at: "2022-02-24T00:37:36.000000Z", + ends_at: "2023-10-31T11:36:28.000000Z", + starts_at: "2022-11-27T22:03:50.000000Z", + discount_upper_limit: 9249, + description: "1aNsQcGEPe2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfR", + name: "wBothNvTY3vFr4ELRXyBW70oqJ1J" })); status = response.code; } catch (e) { @@ -13566,17 +14043,17 @@ test('Check UpdateCoupon | 43', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 2045.0, - is_hidden: true, - is_disabled: true, - display_ends_at: "2023-03-21T12:04:18.000000Z", - display_starts_at: "2022-05-30T04:00:12.000000Z", - ends_at: "2022-04-06T02:14:53.000000Z", - starts_at: "2021-12-10T15:31:13.000000Z", - discount_upper_limit: 8278, - description: "97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQP", - name: "L0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM0" + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 8481.0, + is_hidden: false, + is_disabled: false, + display_ends_at: "2020-04-03T05:27:04.000000Z", + display_starts_at: "2020-11-09T08:02:32.000000Z", + ends_at: "2024-02-04T12:30:24.000000Z", + starts_at: "2020-02-16T05:18:54.000000Z", + discount_upper_limit: 3745, + description: "wzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5Pt", + name: "zYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1" })); status = response.code; } catch (e) { @@ -13592,18 +14069,18 @@ test('Check UpdateCoupon | 44', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 5926.0, + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 2533.0, is_public: true, is_hidden: false, is_disabled: true, - display_ends_at: "2024-01-01T04:51:29.000000Z", - display_starts_at: "2023-12-19T12:56:00.000000Z", - ends_at: "2020-01-25T17:00:23.000000Z", - starts_at: "2020-08-27T08:24:51.000000Z", - discount_upper_limit: 2265, - description: "kecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvC", - name: "pCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8" + display_ends_at: "2021-05-14T05:27:35.000000Z", + display_starts_at: "2021-07-22T17:27:26.000000Z", + ends_at: "2023-10-23T01:56:33.000000Z", + starts_at: "2023-07-06T22:19:40.000000Z", + discount_upper_limit: 1330, + description: "ugzGxu81Sx50Yf2M71M8zENOS", + name: "GlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEIT" })); status = response.code; } catch (e) { @@ -13619,19 +14096,19 @@ test('Check UpdateCoupon | 45', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 2345.0, - code: "cd", + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 4668.0, + code: "i3yOkB", is_public: true, - is_hidden: true, - is_disabled: true, - display_ends_at: "2022-01-25T22:26:12.000000Z", - display_starts_at: "2020-01-27T18:47:21.000000Z", - ends_at: "2023-07-17T16:34:48.000000Z", - starts_at: "2020-09-13T22:04:01.000000Z", - discount_upper_limit: 4885, - description: "1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQN", - name: "H3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsG" + is_hidden: false, + is_disabled: false, + display_ends_at: "2020-05-23T14:48:04.000000Z", + display_starts_at: "2021-12-22T11:58:49.000000Z", + ends_at: "2020-11-12T14:18:29.000000Z", + starts_at: "2022-01-20T14:01:49.000000Z", + discount_upper_limit: 9107, + description: "6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAod", + name: "X3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGej" })); status = response.code; } catch (e) { @@ -13647,20 +14124,20 @@ test('Check UpdateCoupon | 46', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 2030.0, - usage_limit: 3614, - code: "PtZOQ7w", + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 1641.0, + usage_limit: 5113, + code: "b3srgm7L", is_public: true, is_hidden: false, - is_disabled: false, - display_ends_at: "2020-08-09T06:07:33.000000Z", - display_starts_at: "2022-07-26T14:13:54.000000Z", - ends_at: "2022-10-02T01:58:02.000000Z", - starts_at: "2023-05-23T01:51:38.000000Z", - discount_upper_limit: 209, - description: "MzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5s", - name: "OcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNe" + is_disabled: true, + display_ends_at: "2022-02-22T13:28:14.000000Z", + display_starts_at: "2020-10-31T11:09:44.000000Z", + ends_at: "2020-09-24T01:03:53.000000Z", + starts_at: "2021-04-05T05:45:32.000000Z", + discount_upper_limit: 382, + description: "ZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM004QSYdkecoF", + name: "zr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHf" })); status = response.code; } catch (e) { @@ -13676,21 +14153,21 @@ test('Check UpdateCoupon | 47', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 8824.0, - min_amount: 5682, - usage_limit: 3583, - code: "B", + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 8237.0, + min_amount: 4304, + usage_limit: 628, + code: "Dr", is_public: false, is_hidden: false, is_disabled: true, - display_ends_at: "2021-08-26T15:14:52.000000Z", - display_starts_at: "2020-04-26T05:03:43.000000Z", - ends_at: "2020-03-19T14:35:15.000000Z", - starts_at: "2023-05-13T15:00:56.000000Z", - discount_upper_limit: 4194, - description: "lTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs", - name: "D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6" + display_ends_at: "2021-06-03T08:53:13.000000Z", + display_starts_at: "2020-05-27T15:28:47.000000Z", + ends_at: "2024-05-05T08:14:58.000000Z", + starts_at: "2023-06-06T09:45:30.000000Z", + discount_upper_limit: 444, + description: "QhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCS", + name: "Sb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DU" })); status = response.code; } catch (e) { @@ -13706,22 +14183,22 @@ test('Check UpdateCoupon | 48', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 5367.0, - is_shop_specified: false, - min_amount: 522, - usage_limit: 947, - code: "jv", + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 2417.0, + is_shop_specified: true, + min_amount: 7235, + usage_limit: 5898, + code: "UD", is_public: false, - is_hidden: true, + is_hidden: false, is_disabled: false, - display_ends_at: "2022-12-21T03:52:49.000000Z", - display_starts_at: "2021-06-29T07:22:40.000000Z", - ends_at: "2023-06-08T17:17:20.000000Z", - starts_at: "2022-06-26T07:30:54.000000Z", - discount_upper_limit: 520, - description: "WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md", - name: "8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYw" + display_ends_at: "2021-12-07T09:57:05.000000Z", + display_starts_at: "2021-08-15T13:24:55.000000Z", + ends_at: "2020-05-17T11:48:24.000000Z", + starts_at: "2021-11-07T14:45:23.000000Z", + discount_upper_limit: 7629, + description: "9IYmurAkMd4wDsAO01hvmpIXnG4V", + name: "dq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbi" })); status = response.code; } catch (e) { @@ -13737,23 +14214,23 @@ test('Check UpdateCoupon | 49', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 3664.0, - available_shop_ids: ["99cf987e-da3a-45da-95b5-5fad8f958ade", "9a76d1c7-07db-4714-b96f-48892c7f1d82", "f8818ddf-c183-4959-9986-dea8ac560563", "180914e7-edd0-41d0-899a-3efcfe0e54ae"], + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 970.0, + available_shop_ids: ["728553eb-2898-46ac-bedd-e980344025f8", "c758e900-2ed5-4b45-b784-cd27e583417c", "10392f8b-16d4-4033-997e-e698b3b10ccd"], is_shop_specified: true, - min_amount: 6579, - usage_limit: 6318, - code: "chqik", + min_amount: 7329, + usage_limit: 4153, + code: "1XjHrTG7f", is_public: false, is_hidden: false, - is_disabled: false, - display_ends_at: "2023-03-17T04:01:58.000000Z", - display_starts_at: "2023-01-02T11:21:04.000000Z", - ends_at: "2023-07-15T18:38:42.000000Z", - starts_at: "2020-07-09T19:15:58.000000Z", - discount_upper_limit: 5457, - description: "J7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78", - name: "CpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRr" + is_disabled: true, + display_ends_at: "2023-10-23T20:06:16.000000Z", + display_starts_at: "2020-05-15T18:47:13.000000Z", + ends_at: "2021-11-30T17:47:54.000000Z", + starts_at: "2023-07-26T01:45:12.000000Z", + discount_upper_limit: 80, + description: "uSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20", + name: "lobdlTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZi" })); status = response.code; } catch (e) { @@ -13769,24 +14246,24 @@ test('Check UpdateCoupon | 50', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 4465.0, - storage_id: "ce3bcc09-acfc-4779-b346-1ceff62df628", - available_shop_ids: ["1b9bda8d-b38a-4af2-9d52-685ef1c58318", "01966d81-08af-46e9-9c87-bd48f6730fe2", "3ea677e6-839c-4994-b4ce-f527763c799d", "24cd7a97-a737-49b7-bc45-ca04ac597b90", "1948f3a3-e32a-4589-9139-f206be16d483", "ce7d3695-4873-494b-8b11-e5de39d53829", "711576a0-ac9e-4c19-9d0d-7cd0caa0a41f", "37453a1b-af9f-4f26-b24c-9edfd5614e19", "e1553fd7-ab86-4654-88ad-4cd1202bf3eb"], - is_shop_specified: true, - min_amount: 9809, - usage_limit: 3094, - code: "TkmfS", + coupon_id: "a3fdb404-ea20-44bb-beeb-54b4480d0db4", + discount_percentage: 8292.0, + storage_id: "70111e2b-c8f6-4dbb-9aaa-aa359e5ad535", + available_shop_ids: ["4d22c1ed-ce41-4f0d-a7bb-54cfda6e83c5", "65e2647e-9d8e-4384-b17f-132dd30e3f8a", "cc834a36-b61c-45c1-aeed-7cd951562862", "753fddfa-da5b-4143-8cc8-bf8a0778abd9", "a33eea0e-8794-405d-973e-8103834d71a7", "3162f61c-32e3-4b6f-8c9e-f0ee39e4ed56"], + is_shop_specified: false, + min_amount: 4620, + usage_limit: 7004, + code: "iJFwo", is_public: false, is_hidden: false, is_disabled: true, - display_ends_at: "2023-07-03T10:11:19.000000Z", - display_starts_at: "2021-07-30T18:26:40.000000Z", - ends_at: "2022-09-30T10:55:01.000000Z", - starts_at: "2022-06-20T02:34:59.000000Z", - discount_upper_limit: 710, - description: "mTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLq", - name: "eRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWF" + display_ends_at: "2022-05-20T09:03:06.000000Z", + display_starts_at: "2021-10-14T19:22:16.000000Z", + ends_at: "2022-11-24T13:06:39.000000Z", + starts_at: "2022-07-28T02:52:35.000000Z", + discount_upper_limit: 9649, + description: "1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2f", + name: "iShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWx" })); status = response.code; } catch (e) { diff --git a/src/index.ts b/src/index.ts index 37de059..e61e58b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -80,23 +80,23 @@ import { GetCoupon } from "./request/GetCoupon"; import { CreateCoupon } from "./request/CreateCoupon"; import { ListCoupons } from "./request/ListCoupons"; import { CreateBankTopupTransaction } from "./request/CreateBankTopupTransaction"; -import { ListBanks } from "./request/ListBanks"; import { CreateBank } from "./request/CreateBank"; +import { ListBanks } from "./request/ListBanks"; import { ActivateUserDevice } from "./request/ActivateUserDevice"; import { GetUserDevice } from "./request/GetUserDevice"; import { CreateUserDevice } from "./request/CreateUserDevice"; -import { DeleteWebhook } from "./request/DeleteWebhook"; import { UpdateWebhook } from "./request/UpdateWebhook"; -import { ListWebhooks } from "./request/ListWebhooks"; +import { DeleteWebhook } from "./request/DeleteWebhook"; import { CreateWebhook } from "./request/CreateWebhook"; +import { ListWebhooks } from "./request/ListWebhooks"; import { RequestUserStats } from "./request/RequestUserStats"; import { UpdateCampaign } from "./request/UpdateCampaign"; import { GetCampaign } from "./request/GetCampaign"; -import { ListCampaigns } from "./request/ListCampaigns"; import { CreateCampaign } from "./request/CreateCampaign"; +import { ListCampaigns } from "./request/ListCampaigns"; import { UpdateCashtray } from "./request/UpdateCashtray"; -import { CancelCashtray } from "./request/CancelCashtray"; import { GetCashtray } from "./request/GetCashtray"; +import { CancelCashtray } from "./request/CancelCashtray"; import { CreateCashtray } from "./request/CreateCashtray"; import { ListBulkTransactionJobs } from "./request/ListBulkTransactionJobs"; import { GetBulkTransaction } from "./request/GetBulkTransaction"; @@ -113,6 +113,7 @@ import { CreateOrganization } from "./request/CreateOrganization"; import { ListOrganizations } from "./request/ListOrganizations"; import { ListTransfersV2 } from "./request/ListTransfersV2"; import { ListTransfers } from "./request/ListTransfers"; +import { GetExternalTransactionByRequestId } from "./request/GetExternalTransactionByRequestId"; import { RefundExternalTransaction } from "./request/RefundExternalTransaction"; import { CreateExternalTransaction } from "./request/CreateExternalTransaction"; import { GetTransactionByRequestId } from "./request/GetTransactionByRequestId"; @@ -121,6 +122,7 @@ import { GetTransaction } from "./request/GetTransaction"; import { BulkCreateTransaction } from "./request/BulkCreateTransaction"; import { CreateExchangeTransaction } from "./request/CreateExchangeTransaction"; import { CreateTransferTransaction } from "./request/CreateTransferTransaction"; +import { CreateTransactionWithCashtray } from "./request/CreateTransactionWithCashtray"; import { CreateCpmTransaction } from "./request/CreateCpmTransaction"; import { CreatePaymentTransaction } from "./request/CreatePaymentTransaction"; import { CreateTopupTransactionWithCheck } from "./request/CreateTopupTransactionWithCheck"; @@ -131,8 +133,8 @@ import { ListTransactions } from "./request/ListTransactions"; import { GetCpmToken } from "./request/GetCpmToken"; import { UpdateCheck } from "./request/UpdateCheck"; import { GetCheck } from "./request/GetCheck"; -import { ListChecks } from "./request/ListChecks"; import { CreateCheck } from "./request/CreateCheck"; +import { ListChecks } from "./request/ListChecks"; import { UpdateBill } from "./request/UpdateBill"; import { CreateBill } from "./request/CreateBill"; import { ListBills } from "./request/ListBills"; @@ -143,16 +145,16 @@ import { GetAccountTransferSummary } from "./request/GetAccountTransferSummary"; import { UpdateCustomerAccount } from "./request/UpdateCustomerAccount"; import { ListAccountExpiredBalances } from "./request/ListAccountExpiredBalances"; import { ListAccountBalances } from "./request/ListAccountBalances"; -import { DeleteAccount } from "./request/DeleteAccount"; import { UpdateAccount } from "./request/UpdateAccount"; import { GetAccount } from "./request/GetAccount"; +import { DeleteAccount } from "./request/DeleteAccount"; import { CreateUserAccount } from "./request/CreateUserAccount"; import { ListUserAccounts } from "./request/ListUserAccounts"; import { GetUser } from "./request/GetUser"; import { SendEcho } from "./request/SendEcho"; import { GetPing } from "./request/GetPing"; -export { Client, VERSION, Request, Method, Response, UserStatsOperationServiceUnavailable, UnpermittedAdminUser, InvalidParameters, PartnerRequestAlreadyDone, PartnerRequestExpired, PartnerDecryptionFailed, PartnerClientNotFound, BadRequest, PaginatedOrganizations, PaginatedCoupons, CouponDetail, Coupon, PaginatedOrganizationWorkerTaskWebhook, OrganizationWorkerTaskWebhook, AccountTransferSummary, AccountTransferSummaryElement, PaginatedCampaigns, Campaign, PaginatedPrivateMoneys, PaginatedBills, PaginatedShops, PaginatedAccountBalance, PaginatedAccountDetails, PaginatedAccountWithUsers, PaginatedAccounts, PaginatedTransfersV2, PaginatedTransfers, PaginatedTransactionV2, PaginatedTransaction, Banks, Bank, BankRegisteringInfo, UserDevice, UserStatsOperation, PrivateMoneySummary, PaginatedPrivateMoneyOrganizationSummaries, PrivateMoneyOrganizationSummary, OrganizationSummary, Product, ExternalTransactionDetail, ExternalTransaction, Transfer, AccountWithoutPrivateMoneyDetail, PaginatedBulkTransactionJob, BulkTransactionJob, BulkTransaction, ShopWithAccounts, ShopWithMetadata, TransactionDetail, Transaction, Organization, PrivateMoney, User, CashtrayAttempt, CashtrayWithResult, Cashtray, CpmToken, PaginatedChecks, Check, Bill, AccountBalance, AccountDeleted, ShopAccount, AccountDetail, AccountWithUser, Account, AdminUserWithShopsAndPrivateMoneys, Pagination, Echo, Pong, UpdateCoupon, GetCoupon, CreateCoupon, ListCoupons, CreateBankTopupTransaction, ListBanks, CreateBank, ActivateUserDevice, GetUserDevice, CreateUserDevice, DeleteWebhook, UpdateWebhook, ListWebhooks, CreateWebhook, RequestUserStats, UpdateCampaign, GetCampaign, ListCampaigns, CreateCampaign, UpdateCashtray, CancelCashtray, GetCashtray, CreateCashtray, ListBulkTransactionJobs, GetBulkTransaction, ListCustomerTransactions, GetPrivateMoneySummary, GetPrivateMoneyOrganizationSummaries, GetPrivateMoneys, UpdateShop, GetShop, CreateShopV2, CreateShop, ListShops, CreateOrganization, ListOrganizations, ListTransfersV2, ListTransfers, RefundExternalTransaction, CreateExternalTransaction, GetTransactionByRequestId, RefundTransaction, GetTransaction, BulkCreateTransaction, CreateExchangeTransaction, CreateTransferTransaction, CreateCpmTransaction, CreatePaymentTransaction, CreateTopupTransactionWithCheck, CreateTopupTransaction, ListTransactionsV2, CreateTransaction, ListTransactions, GetCpmToken, UpdateCheck, GetCheck, ListChecks, CreateCheck, UpdateBill, CreateBill, ListBills, GetShopAccounts, CreateCustomerAccount, GetCustomerAccounts, GetAccountTransferSummary, UpdateCustomerAccount, ListAccountExpiredBalances, ListAccountBalances, DeleteAccount, UpdateAccount, GetAccount, CreateUserAccount, ListUserAccounts, GetUser, SendEcho, GetPing }; +export { Client, VERSION, Request, Method, Response, UserStatsOperationServiceUnavailable, UnpermittedAdminUser, InvalidParameters, PartnerRequestAlreadyDone, PartnerRequestExpired, PartnerDecryptionFailed, PartnerClientNotFound, BadRequest, PaginatedOrganizations, PaginatedCoupons, CouponDetail, Coupon, PaginatedOrganizationWorkerTaskWebhook, OrganizationWorkerTaskWebhook, AccountTransferSummary, AccountTransferSummaryElement, PaginatedCampaigns, Campaign, PaginatedPrivateMoneys, PaginatedBills, PaginatedShops, PaginatedAccountBalance, PaginatedAccountDetails, PaginatedAccountWithUsers, PaginatedAccounts, PaginatedTransfersV2, PaginatedTransfers, PaginatedTransactionV2, PaginatedTransaction, Banks, Bank, BankRegisteringInfo, UserDevice, UserStatsOperation, PrivateMoneySummary, PaginatedPrivateMoneyOrganizationSummaries, PrivateMoneyOrganizationSummary, OrganizationSummary, Product, ExternalTransactionDetail, ExternalTransaction, Transfer, AccountWithoutPrivateMoneyDetail, PaginatedBulkTransactionJob, BulkTransactionJob, BulkTransaction, ShopWithAccounts, ShopWithMetadata, TransactionDetail, Transaction, Organization, PrivateMoney, User, CashtrayAttempt, CashtrayWithResult, Cashtray, CpmToken, PaginatedChecks, Check, Bill, AccountBalance, AccountDeleted, ShopAccount, AccountDetail, AccountWithUser, Account, AdminUserWithShopsAndPrivateMoneys, Pagination, Echo, Pong, UpdateCoupon, GetCoupon, CreateCoupon, ListCoupons, CreateBankTopupTransaction, CreateBank, ListBanks, ActivateUserDevice, GetUserDevice, CreateUserDevice, UpdateWebhook, DeleteWebhook, CreateWebhook, ListWebhooks, RequestUserStats, UpdateCampaign, GetCampaign, CreateCampaign, ListCampaigns, UpdateCashtray, GetCashtray, CancelCashtray, CreateCashtray, ListBulkTransactionJobs, GetBulkTransaction, ListCustomerTransactions, GetPrivateMoneySummary, GetPrivateMoneyOrganizationSummaries, GetPrivateMoneys, UpdateShop, GetShop, CreateShopV2, CreateShop, ListShops, CreateOrganization, ListOrganizations, ListTransfersV2, ListTransfers, GetExternalTransactionByRequestId, RefundExternalTransaction, CreateExternalTransaction, GetTransactionByRequestId, RefundTransaction, GetTransaction, BulkCreateTransaction, CreateExchangeTransaction, CreateTransferTransaction, CreateTransactionWithCashtray, CreateCpmTransaction, CreatePaymentTransaction, CreateTopupTransactionWithCheck, CreateTopupTransaction, ListTransactionsV2, CreateTransaction, ListTransactions, GetCpmToken, UpdateCheck, GetCheck, CreateCheck, ListChecks, UpdateBill, CreateBill, ListBills, GetShopAccounts, CreateCustomerAccount, GetCustomerAccounts, GetAccountTransferSummary, UpdateCustomerAccount, ListAccountExpiredBalances, ListAccountBalances, UpdateAccount, GetAccount, DeleteAccount, CreateUserAccount, ListUserAccounts, GetUser, SendEcho, GetPing }; async function example(): Promise { console.log(`Pokepay partner SDK ${VERSION} example.`); diff --git a/src/request/CreateCampaign.ts b/src/request/CreateCampaign.ts index d916cf8..4722ba1 100644 --- a/src/request/CreateCampaign.ts +++ b/src/request/CreateCampaign.ts @@ -27,6 +27,7 @@ class CreateCampaign implements Request { applicable_days_of_week?: number[], applicable_time_ranges?: Object[], applicable_shop_ids?: string[], + blacklisted_shop_ids?: string[], minimum_number_of_products?: number, minimum_number_of_amount?: number, minimum_number_for_combination_purchase?: number, @@ -35,6 +36,7 @@ class CreateCampaign implements Request { max_total_point_amount?: number, dest_private_money_id?: string, applicable_account_metadata?: Object, + applicable_transaction_metadata?: Object, budget_caps_amount?: number }; public constructor(params: { @@ -57,6 +59,7 @@ class CreateCampaign implements Request { applicable_days_of_week?: number[], applicable_time_ranges?: Object[], applicable_shop_ids?: string[], + blacklisted_shop_ids?: string[], minimum_number_of_products?: number, minimum_number_of_amount?: number, minimum_number_for_combination_purchase?: number, @@ -65,6 +68,7 @@ class CreateCampaign implements Request { max_total_point_amount?: number, dest_private_money_id?: string, applicable_account_metadata?: Object, + applicable_transaction_metadata?: Object, budget_caps_amount?: number }) { if (params.name === void 0) throw new Error('"name" is required'); @@ -95,6 +99,7 @@ class CreateCampaign implements Request { if (params.applicable_days_of_week !== void 0) this.bodyParams.applicable_days_of_week = params.applicable_days_of_week; if (params.applicable_time_ranges !== void 0) this.bodyParams.applicable_time_ranges = params.applicable_time_ranges; if (params.applicable_shop_ids !== void 0) this.bodyParams.applicable_shop_ids = params.applicable_shop_ids; + if (params.blacklisted_shop_ids !== void 0) this.bodyParams.blacklisted_shop_ids = params.blacklisted_shop_ids; if (params.minimum_number_of_products !== void 0) this.bodyParams.minimum_number_of_products = params.minimum_number_of_products; if (params.minimum_number_of_amount !== void 0) this.bodyParams.minimum_number_of_amount = params.minimum_number_of_amount; if (params.minimum_number_for_combination_purchase !== void 0) this.bodyParams.minimum_number_for_combination_purchase = params.minimum_number_for_combination_purchase; @@ -103,6 +108,7 @@ class CreateCampaign implements Request { if (params.max_total_point_amount !== void 0) this.bodyParams.max_total_point_amount = params.max_total_point_amount; if (params.dest_private_money_id !== void 0) this.bodyParams.dest_private_money_id = params.dest_private_money_id; if (params.applicable_account_metadata !== void 0) this.bodyParams.applicable_account_metadata = params.applicable_account_metadata; + if (params.applicable_transaction_metadata !== void 0) this.bodyParams.applicable_transaction_metadata = params.applicable_transaction_metadata; if (params.budget_caps_amount !== void 0) this.bodyParams.budget_caps_amount = params.budget_caps_amount; } } diff --git a/src/request/CreateCpmTransaction.ts b/src/request/CreateCpmTransaction.ts index 8bddc11..6aeafb9 100644 --- a/src/request/CreateCpmTransaction.ts +++ b/src/request/CreateCpmTransaction.ts @@ -14,7 +14,8 @@ class CreateCpmTransaction implements Request { description?: string, metadata?: string, products?: Object[], - request_id?: string + request_id?: string, + strategy?: string }; public constructor(params: { cpm_token: string, @@ -23,7 +24,8 @@ class CreateCpmTransaction implements Request { description?: string, metadata?: string, products?: Object[], - request_id?: string + request_id?: string, + strategy?: string }) { if (params.cpm_token === void 0) throw new Error('"cpm_token" is required'); if (params.shop_id === void 0) throw new Error('"shop_id" is required'); @@ -38,6 +40,7 @@ class CreateCpmTransaction implements Request { if (params.metadata !== void 0) this.bodyParams.metadata = params.metadata; if (params.products !== void 0) this.bodyParams.products = params.products; if (params.request_id !== void 0) this.bodyParams.request_id = params.request_id; + if (params.strategy !== void 0) this.bodyParams.strategy = params.strategy; } } diff --git a/src/request/CreateExternalTransaction.ts b/src/request/CreateExternalTransaction.ts index 7e0f706..67d2d53 100644 --- a/src/request/CreateExternalTransaction.ts +++ b/src/request/CreateExternalTransaction.ts @@ -15,7 +15,8 @@ class CreateExternalTransaction implements Request { description?: string, metadata?: string, products?: Object[], - request_id?: string + request_id?: string, + done_at?: string }; public constructor(params: { shop_id: string, @@ -25,7 +26,8 @@ class CreateExternalTransaction implements Request { description?: string, metadata?: string, products?: Object[], - request_id?: string + request_id?: string, + done_at?: string }) { if (params.shop_id === void 0) throw new Error('"shop_id" is required'); if (params.customer_id === void 0) throw new Error('"customer_id" is required'); @@ -42,6 +44,7 @@ class CreateExternalTransaction implements Request { if (params.metadata !== void 0) this.bodyParams.metadata = params.metadata; if (params.products !== void 0) this.bodyParams.products = params.products; if (params.request_id !== void 0) this.bodyParams.request_id = params.request_id; + if (params.done_at !== void 0) this.bodyParams.done_at = params.done_at; } } diff --git a/src/request/CreatePaymentTransaction.ts b/src/request/CreatePaymentTransaction.ts index 18f6fb3..de658dd 100644 --- a/src/request/CreatePaymentTransaction.ts +++ b/src/request/CreatePaymentTransaction.ts @@ -15,7 +15,8 @@ class CreatePaymentTransaction implements Request { description?: string, metadata?: string, products?: Object[], - request_id?: string + request_id?: string, + strategy?: string }; public constructor(params: { shop_id: string, @@ -25,7 +26,8 @@ class CreatePaymentTransaction implements Request { description?: string, metadata?: string, products?: Object[], - request_id?: string + request_id?: string, + strategy?: string }) { if (params.shop_id === void 0) throw new Error('"shop_id" is required'); if (params.customer_id === void 0) throw new Error('"customer_id" is required'); @@ -42,6 +44,7 @@ class CreatePaymentTransaction implements Request { if (params.metadata !== void 0) this.bodyParams.metadata = params.metadata; if (params.products !== void 0) this.bodyParams.products = params.products; if (params.request_id !== void 0) this.bodyParams.request_id = params.request_id; + if (params.strategy !== void 0) this.bodyParams.strategy = params.strategy; } } diff --git a/src/request/CreateTransactionWithCashtray.ts b/src/request/CreateTransactionWithCashtray.ts new file mode 100644 index 0000000..43c5617 --- /dev/null +++ b/src/request/CreateTransactionWithCashtray.ts @@ -0,0 +1,34 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { TransactionDetail } from "../response/TransactionDetail"; + +class CreateTransactionWithCashtray implements Request { + public readonly __r: TransactionDetail | undefined; + public readonly method: Method = "POST"; + public readonly path: string; + public readonly bodyParams: { + cashtray_id: string, + customer_id: string, + strategy?: string, + request_id?: string + }; + public constructor(params: { + cashtray_id: string, + customer_id: string, + strategy?: string, + request_id?: string + }) { + if (params.cashtray_id === void 0) throw new Error('"cashtray_id" is required'); + if (params.customer_id === void 0) throw new Error('"customer_id" is required'); + this.path = "/transactions" + "/cashtray"; + this.bodyParams = { + cashtray_id: params.cashtray_id, + customer_id: params.customer_id, + }; + if (params.strategy !== void 0) this.bodyParams.strategy = params.strategy; + if (params.request_id !== void 0) this.bodyParams.request_id = params.request_id; + } +} + +export { CreateTransactionWithCashtray }; diff --git a/src/request/GetExternalTransactionByRequestId.ts b/src/request/GetExternalTransactionByRequestId.ts new file mode 100644 index 0000000..f10bb76 --- /dev/null +++ b/src/request/GetExternalTransactionByRequestId.ts @@ -0,0 +1,20 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { ExternalTransactionDetail } from "../response/ExternalTransactionDetail"; + +class GetExternalTransactionByRequestId implements Request { + public readonly __r: ExternalTransactionDetail | undefined; + public readonly method: Method = "GET"; + public readonly path: string; + public readonly bodyParams: {}; + public constructor(params: { + request_id: string + }) { + if (params.request_id === void 0) throw new Error('"request_id" is required'); + this.path = "/external-transactions" + "/requests" + "/" + params.request_id; + this.bodyParams = {}; + } +} + +export { GetExternalTransactionByRequestId }; diff --git a/src/request/UpdateCampaign.ts b/src/request/UpdateCampaign.ts index 5fb82a2..e2af9ef 100644 --- a/src/request/UpdateCampaign.ts +++ b/src/request/UpdateCampaign.ts @@ -25,6 +25,7 @@ class UpdateCampaign implements Request { applicable_days_of_week?: number[], applicable_time_ranges?: Object[], applicable_shop_ids?: string[], + blacklisted_shop_ids?: string[], minimum_number_of_products?: number, minimum_number_of_amount?: number, minimum_number_for_combination_purchase?: number, @@ -32,6 +33,7 @@ class UpdateCampaign implements Request { max_point_amount?: number, max_total_point_amount?: number, applicable_account_metadata?: Object, + applicable_transaction_metadata?: Object, budget_caps_amount?: number }; public constructor(params: { @@ -53,6 +55,7 @@ class UpdateCampaign implements Request { applicable_days_of_week?: number[], applicable_time_ranges?: Object[], applicable_shop_ids?: string[], + blacklisted_shop_ids?: string[], minimum_number_of_products?: number, minimum_number_of_amount?: number, minimum_number_for_combination_purchase?: number, @@ -60,6 +63,7 @@ class UpdateCampaign implements Request { max_point_amount?: number, max_total_point_amount?: number, applicable_account_metadata?: Object, + applicable_transaction_metadata?: Object, budget_caps_amount?: number }) { if (params.campaign_id === void 0) throw new Error('"campaign_id" is required'); @@ -82,6 +86,7 @@ class UpdateCampaign implements Request { if (params.applicable_days_of_week !== void 0) this.bodyParams.applicable_days_of_week = params.applicable_days_of_week; if (params.applicable_time_ranges !== void 0) this.bodyParams.applicable_time_ranges = params.applicable_time_ranges; if (params.applicable_shop_ids !== void 0) this.bodyParams.applicable_shop_ids = params.applicable_shop_ids; + if (params.blacklisted_shop_ids !== void 0) this.bodyParams.blacklisted_shop_ids = params.blacklisted_shop_ids; if (params.minimum_number_of_products !== void 0) this.bodyParams.minimum_number_of_products = params.minimum_number_of_products; if (params.minimum_number_of_amount !== void 0) this.bodyParams.minimum_number_of_amount = params.minimum_number_of_amount; if (params.minimum_number_for_combination_purchase !== void 0) this.bodyParams.minimum_number_for_combination_purchase = params.minimum_number_for_combination_purchase; @@ -89,6 +94,7 @@ class UpdateCampaign implements Request { if (params.max_point_amount !== void 0) this.bodyParams.max_point_amount = params.max_point_amount; if (params.max_total_point_amount !== void 0) this.bodyParams.max_total_point_amount = params.max_total_point_amount; if (params.applicable_account_metadata !== void 0) this.bodyParams.applicable_account_metadata = params.applicable_account_metadata; + if (params.applicable_transaction_metadata !== void 0) this.bodyParams.applicable_transaction_metadata = params.applicable_transaction_metadata; if (params.budget_caps_amount !== void 0) this.bodyParams.budget_caps_amount = params.budget_caps_amount; } } diff --git a/src/response/Product.ts b/src/response/Product.ts index ad56fbe..6aef6d4 100644 --- a/src/response/Product.ts +++ b/src/response/Product.ts @@ -5,6 +5,7 @@ interface Product { readonly name: string; readonly unit_price: number; readonly price: number; + readonly quantity?: number; readonly is_discounted: boolean; readonly other: string; }