diff --git a/docs/index.md b/docs/index.md index 3b41099..9484aa6 100644 --- a/docs/index.md +++ b/docs/index.md @@ -190,6 +190,9 @@ try { - [ListTransfers](#list-transfers): - [ListTransfersV2](#list-transfers-v2): - [CreateCheck](#create-check): チャージQRコードの発行 +- [ListChecks](#list-checks): チャージQRコード一覧の取得 +- [GetCheck](#get-check): チャージQRコードの表示 +- [UpdateCheck](#update-check): チャージQRコードの更新 - [CreateTopupTransactionWithCheck](#create-topup-transaction-with-check): チャージQRコードを読み取ることでチャージする - [ListBills](#list-bills): 支払いQRコード一覧を表示する - [CreateBill](#create-bill): 支払いQRコードの発行 @@ -208,6 +211,8 @@ try { - [CreateCustomerAccount](#create-customer-account): 新規エンドユーザーをウォレットと共に追加する - [GetShopAccounts](#get-shop-accounts): 店舗ユーザーのウォレット一覧を表示する - [ListCustomerTransactions](#list-customer-transactions): 取引履歴を取得する +- [ListOrganizations](#list-organizations): 加盟店組織の一覧を取得する +- [CreateOrganization](#create-organization): 新規加盟店組織を追加する - [ListShops](#list-shops): 店舗一覧を取得する - [CreateShop](#create-shop): 【廃止】新規店舗を追加する - [CreateShopV2](#create-shop-v2): 新規店舗を追加する @@ -228,15 +233,24 @@ try { - [CreateWebhook](#create-webhook): webhookの作成 - [ListWebhooks](#list-webhooks): 作成したWebhookの一覧を返す - [UpdateWebhook](#update-webhook): Webhookの更新 +- [DeleteWebhook](#delete-webhook): Webhookの削除 - [ListCoupons](#list-coupons): クーポン一覧の取得 +- [CreateCoupon](#create-coupon): クーポンの登録 - [GetCoupon](#get-coupon): クーポンの取得 +- [UpdateCoupon](#update-coupon): クーポンの更新 +- [CreateUserDevice](#create-user-device): ユーザーのデバイス登録 +- [GetUserDevice](#get-user-device): ユーザーのデバイスを取得 +- [ActivateUserDevice](#activate-user-device): デバイスの有効化 +- [CreateBank](#create-bank): 銀行口座の登録 +- [ListBanks](#list-banks): 登録した銀行の一覧 +- [CreateBankTopupTransaction](#create-bank-topup-transaction): 銀行からのチャージ ### Transaction #### CPMトークンの状態取得 CPMトークンの現在の状態を取得します。CPMトークンの有効期限やCPM取引の状態を返します。 ```typescript const response: Response = await client.send(new GetCpmToken({ - cpm_token: "7PJ09whlF6CVlMKFHkTHEG" // CPMトークン + cpm_token: "ulFo5mDyJw8V3XaTOkFDFD" // CPMトークン })); ``` @@ -258,18 +272,18 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを 取引一覧を返します。 ```typescript const response: Response = await client.send(new ListTransactions({ - from: "2017-10-30T21:52:54.000000+09:00", // 開始日時 - to: "2017-01-04T03:27:45.000000+09:00", // 終了日時 + from: "2021-02-09T18:58:32.000000Z", // 開始日時 + to: "2022-12-03T17:28:10.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: "VUZ", // 取引ID + transaction_id: "kJRYuzmNr", // 取引ID organization_code: "pocketchange", // 組織コード private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - is_modified: false, // キャンセルフラグ + is_modified: true, // キャンセルフラグ types: ["topup", "payment"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment description: "店頭QRコードによる支払い" // 取引説明文 })); @@ -370,7 +384,9 @@ const response: Response = await client.send(new ListTrans --- `transaction_id` ```json -{ "type": "string" } +{ + "type": "string" +} ``` 取引IDです。 @@ -404,7 +420,9 @@ const response: Response = await client.send(new ListTrans --- `is_modified` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` キャンセルフラグです。 @@ -418,11 +436,14 @@ const response: Response = await client.send(new ListTrans "type": "array", "items": { "type": "string", - "enum": { - "topup": "payment", - "exchange_outflow": "exchange_inflow", - "cashback": "expire" - } + "enum": [ + "topup", + "payment", + "exchange_outflow", + "exchange_inflow", + "cashback", + "expire" + ] } } ``` @@ -470,10 +491,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: 9115, - point_amount: 9606, - point_expires_at: "2023-03-22T22:26:15.000000+09:00", // ポイント有効期限 - description: "xzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE1h" + money_amount: 713, + point_amount: 7622, + point_expires_at: "2022-08-29T06:44:29.000000Z", // ポイント有効期限 + description: "YcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz" })); ``` @@ -502,11 +523,11 @@ const response: Response = await client.send(new ListTra customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID customer_name: "太郎", // エンドユーザー名 description: "店頭QRコードによる支払い", // 取引説明文 - transaction_id: "E", // 取引ID + transaction_id: "T8Jn6tKv84", // 取引ID is_modified: true, // キャンセルフラグ types: ["topup", "payment"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment - from: "2022-11-05T14:20:24.000000+09:00", // 開始日時 - to: "2020-02-25T03:45:37.000000+09:00", // 終了日時 + from: "2023-12-17T00:21:30.000000Z", // 開始日時 + to: "2020-09-12T19:25:31.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ページ分の取引数 @@ -601,7 +622,9 @@ const response: Response = await client.send(new ListTra --- `transaction_id` ```json -{ "type": "string" } +{ + "type": "string" +} ``` 取引IDです。 @@ -610,7 +633,9 @@ const response: Response = await client.send(new ListTra --- `is_modified` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` キャンセルフラグです。 @@ -624,11 +649,14 @@ const response: Response = await client.send(new ListTra "type": "array", "items": { "type": "string", - "enum": { - "topup": "payment", - "exchange_outflow": "exchange_inflow", - "cashback": "expire" - } + "enum": [ + "topup", + "payment", + "exchange_outflow", + "exchange_inflow", + "cashback", + "expire" + ] } } ``` @@ -735,9 +763,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: 7659, // マネー額 - point_amount: 1630, // ポイント額 - point_expires_at: "2021-06-03T04:49:28.000000+09:00", // ポイント有効期限 + money_amount: 4072, // マネー額 + point_amount: 9325, // ポイント額 + point_expires_at: "2022-02-17T02:29:28.000000Z", // ポイント有効期限 description: "初夏のチャージキャンペーン", // 取引履歴に表示する説明文 metadata: "{\"key\":\"value\"}", // 取引メタデータ request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID @@ -879,7 +907,7 @@ 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: 5038, // 支払い額 + amount: 4299, // 支払い額 description: "たい焼き(小倉)", // 取引履歴に表示する説明文 metadata: "{\"key\":\"value\"}", // 取引メタデータ products: [{"jan_code":"abc", @@ -887,16 +915,6 @@ const response: Response = await client.send(new CreatePaymen "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":"{}"}], // 商品情報データ request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID })); @@ -979,7 +997,9 @@ const response: Response = await client.send(new CreatePaymen ```json { "type": "array", - "items": { "type": "object" } + "items": { + "type": "object" + } } ``` 一つの取引に含まれる商品情報データです。 @@ -1015,9 +1035,9 @@ CPMトークンに設定されたスコープの取引を作ることができ ```typescript const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "IPy7HW7Ee7skB9BB1YNClE", // CPMトークン + cpm_token: "JWGe0W2JoBVxOBG6QSEaMM", // CPMトークン shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - amount: 3112.0, // 取引金額 + amount: 1462.0, // 取引金額 description: "たい焼き(小倉)", // 取引説明文 metadata: "{\"key\":\"value\"}", // 店舗側メタデータ products: [{"jan_code":"abc", @@ -1068,7 +1088,9 @@ const response: Response = await client.send(new CreateCpmTra --- `amount` ```json -{ "type": "number" } +{ + "type": "number" +} ``` 取引金額を指定します。 @@ -1103,7 +1125,9 @@ const response: Response = await client.send(new CreateCpmTra ```json { "type": "array", - "items": { "type": "object" } + "items": { + "type": "object" + } } ``` 一つの取引に含まれる商品情報データです。 @@ -1142,7 +1166,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: 9019.0, // 送金額 + amount: 3012.0, // 送金額 metadata: "{\"key\":\"value\"}", // 取引メタデータ description: "たい焼き(小倉)", // 取引履歴に表示する説明文 request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID @@ -1244,8 +1268,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: 2105.0, - description: "A30l6vspNWH9u8x4Yq2mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWI", + amount: 7268, + description: "jfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCD", request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID })); ``` @@ -1302,7 +1326,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: "2021-04-20T23:17:51.000000+09:00" // 返却ポイントの有効期限 + returning_point_expires_at: "2023-05-11T18:52:28.000000Z" // 返却ポイントの有効期限 })); ``` @@ -1361,8 +1385,8 @@ CSVの作成は非同期で行われるため完了まで少しの間待つ必 また、指定期間より前の決済を時間をおいてキャンセルした場合などには payment_money_amount, payment_point_amount, payment_transaction_count が負の値になることもあることに留意してください。 ```typescript const response: Response = await client.send(new RequestUserStats({ - from: "2018-10-07T05:51:38.000000+09:00", // 集計期間の開始時刻 - to: "2017-09-02T22:46:29.000000+09:00" // 集計期間の終了時刻 + from: "2022-05-20T17:56:49.000000+09:00", // 集計期間の開始時刻 + to: "2023-12-10T01:16:11.000000+09:00" // 集計期間の終了時刻 })); ``` @@ -1397,8 +1421,8 @@ const response: Response = await client.send(new RequestUser ```typescript const response: Response = await client.send(new GetAccountTransferSummary({ account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - from: "2019-03-02T08:20:50.000000+09:00", // 集計期間の開始時刻 - to: "2024-03-03T23:37:37.000000+09:00", // 集計期間の終了時刻 + from: "2023-06-01T05:18:02.000000Z", // 集計期間の開始時刻 + to: "2021-03-07T07:42:08.000000Z", // 集計期間の終了時刻 transfer_types: ["topup", "payment"] // 取引明細種別 (複数指定可) })); ``` @@ -1422,14 +1446,20 @@ const response: Response = await client.send(new GetAcco "type": "array", "items": { "type": "string", - "enum": { - "payment": "topup", - "campaign-topup": "use-coupon", - "refund-payment": "refund-topup", - "refund-campaign": "refund-coupon", - "exchange-inflow": "exchange-outflow", - "refund-exchange-inflow": "refund-exchange-outflow" - } + "enum": [ + "payment", + "topup", + "campaign-topup", + "use-coupon", + "refund-payment", + "refund-topup", + "refund-campaign", + "refund-coupon", + "exchange-inflow", + "exchange-outflow", + "refund-exchange-inflow", + "refund-exchange-outflow" + ] } } ``` @@ -1467,19 +1497,19 @@ const response: Response = await client.send(new GetAcco #### ```typescript const response: Response = await client.send(new ListTransfers({ - from: "2023-07-03T19:49:26.000000+09:00", - to: "2016-05-31T03:04:08.000000+09:00", - page: 8148, - per_page: 6032, + from: "2020-01-25T14:29:08.000000Z", + to: "2024-01-19T14:59:19.000000Z", + page: 7643, + per_page: 422, shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - shop_name: "kWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2", + shop_name: "XMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4OovF1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpP", customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - customer_name: "MYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC39nZBUv4F8J7UzyDYEv7bct", + customer_name: "yEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3Il", transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - is_modified: false, - transaction_types: ["exchange"], - transfer_types: ["campaign"], // 取引明細の種類でフィルターします。 + is_modified: true, + transaction_types: ["transfer", "payment", "exchange", "cashback", "topup", "expire"], + transfer_types: ["transfer", "campaign", "expire", "exchange", "payment"], // 取引明細の種類でフィルターします。 description: "店頭QRコードによる支払い" // 取引詳細説明文 })); ``` @@ -1491,12 +1521,16 @@ const response: Response = await client.send(new ListTransfe "type": "array", "items": { "type": "string", - "enum": { - "topup": "payment", - "exchange": "transfer", - "coupon": "campaign", - "cashback": "expire" - } + "enum": [ + "topup", + "payment", + "exchange", + "transfer", + "coupon", + "campaign", + "cashback", + "expire" + ] } } ``` @@ -1544,20 +1578,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: "RBzp0gixsKZWoUeORL98QDv9TW3tonru5DxxR1kiR4daTST401zYU9O5bmxo5R8HDeIrg38UDixRQOsOxJyiut30oRsSLi4FAWjvNFlMGhO7MjoFiHLtN9Yqy7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkL", // 店舗名 + shop_name: "gDsmRtGnF7L4kFCWrbFqt27c2", // 店舗名 customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID - customer_name: "5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28b", // エンドユーザー名 + customer_name: "HcIyayD2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFt", // エンドユーザー名 transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - is_modified: false, // キャンセルフラグ - transaction_types: ["exchange", "expire", "cashback", "payment", "topup", "transfer"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + is_modified: true, // キャンセルフラグ + transaction_types: ["transfer"], // 取引種別 (複数指定可)、チャージ=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: ["topup", "cashback"], // 取引明細種別 (複数指定可) + transfer_types: ["payment", "expire", "coupon"], // 取引明細種別 (複数指定可) description: "店頭QRコードによる支払い", // 取引詳細説明文 - from: "2024-05-24T18:40:54.000000+09:00", // 開始日時 - to: "2019-05-17T21:17:02.000000+09:00" // 終了日時 + from: "2020-06-13T02:02:54.000000Z", // 開始日時 + to: "2021-07-01T03:33:06.000000Z" // 終了日時 })); ``` @@ -1636,7 +1670,9 @@ const response: Response = await client.send(new ListTrans --- `is_modified` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` キャンセルフラグです。 @@ -1650,11 +1686,14 @@ const response: Response = await client.send(new ListTrans "type": "array", "items": { "type": "string", - "enum": { - "topup": "payment", - "transfer": "exchange", - "cashback": "expire" - } + "enum": [ + "topup", + "payment", + "transfer", + "exchange", + "cashback", + "expire" + ] } } ``` @@ -1733,12 +1772,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません "type": "array", "items": { "type": "string", - "enum": { - "topup": "payment", - "exchange": "transfer", - "coupon": "campaign", - "cashback": "expire" - } + "enum": [ + "topup", + "payment", + "exchange", + "transfer", + "coupon", + "campaign", + "cashback", + "expire" + ] } } ``` @@ -1819,37 +1862,445 @@ QRコードを読み取る方法以外にも、このURLリンクを直接スマ ```typescript const response: Response = await client.send(new CreateCheck({ account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金元の店舗アカウントID - money_amount: 2033.0, // 付与マネー額 - point_amount: 748.0, // 付与ポイント額 + money_amount: 1137.0, // 付与マネー額 + point_amount: 1857.0, // 付与ポイント額 description: "test check", // 説明文(アプリ上で取引の説明文として表示される) - is_onetime: false, // ワンタイムかどうか。真の場合1度読み込まれた時点でそのチャージQRは失効する(デフォルト値は真) - usage_limit: 7787, // ワンタイムでない場合、複数ユーザから読み取られ得る。その場合の最大読み取り回数 - expires_at: "2020-11-15T19:34:41.000000+09:00", // チャージQR自体の失効日時 - point_expires_at: "2022-07-09T22:12:18.000000+09:00", // チャージQRによって付与されるポイントの失効日時 - point_expires_in_days: 60, // チャージQRによって付与されるポイントの有効期限(相対指定、単位は日) - bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ポイント額を負担する店舗アカウントのID + is_onetime: false, // ワンタイムかどうかのフラグ + usage_limit: 3412, // ワンタイムでない場合の最大読み取り回数 + expires_at: "2021-03-19T15:02:16.000000Z", // チャージQRコード自体の失効日時 + point_expires_at: "2023-07-16T22:11:18.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + point_expires_in_days: 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ポイント額を負担する店舗のウォレットID })); ``` `money_amount`と`point_amount`の少なくとも一方は指定する必要があります。 +--- +`money_amount` +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` +チャージQRコードによって付与されるマネー額です。 +`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 + + +--- +`point_amount` +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` +チャージQRコードによって付与されるポイント額です。 +`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 + + --- `is_onetime` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 -`false`の場合、そのチャージQRコードは1ユーザについては1回きりですが、複数ユーザによって読み取り可能なQRコードになります。 +`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 +ただし、その場合も1ユーザにつき1回のみしか読み取れません。 + + +--- +`usage_limit` +```json +{ + "type": "integer" +} +``` +複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 +NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 +デフォルト値はNULLです。 +ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 + + +--- +`expires_at` +```json +{ + "type": "string", + "format": "date-time" +} +``` +チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 + +チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 + + +--- +`point_expires_at` +```json +{ + "type": "string", + "format": "date-time" +} +``` +チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 + +チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 + + +--- +`point_expires_in_days` +```json +{ + "type": "integer", + "minimum": 1 +} +``` +チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 +1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 +`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 + + +--- +`bear_point_account` +```json +{ + "type": "string", + "format": "uuid" +} +``` +ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 +デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 + + +--- +成功したときは[Check](#check)オブジェクトを返します + +#### チャージQRコード一覧の取得 +```typescript +const response: Response = await client.send(new ListChecks({ + page: 3706, // ページ番号 + per_page: 50, // 1ページの表示数 + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + organization_code: "0A3", // 組織コード + expires_from: "2023-09-08T15:18:47.000000Z", // 有効期限の期間によるフィルター(開始時点) + expires_to: "2022-08-09T10:42:18.000000Z", // 有効期限の期間によるフィルター(終了時点) + created_from: "2022-06-07T12:42:11.000000Z", // 作成日時の期間によるフィルター(開始時点) + created_to: "2023-06-18T14:55:56.000000Z", // 作成日時の期間によるフィルター(終了時点) + issuer_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行店舗ID + description: "2EcUb892j", // チャージQRコードの説明文 + is_onetime: true, // ワンタイムのチャージQRコードかどうか + is_disabled: true // 無効化されたチャージQRコードかどうか +})); +``` + +--- +`per_page` +```json +{ + "type": "integer", + "minimum": 1 +} +``` +1ページ当たり表示数です。デフォルト値は50です。 + +--- +`private_money_id` +```json +{ + "type": "string", + "format": "uuid" +} +``` +チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 + + +--- +`organization_code` +```json +{ + "type": "string", + "maxLength": 32 +} +``` +チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 +デフォルトでは未指定です。 + +--- +`expires_from` +```json +{ + "type": "string", + "format": "date-time" +} +``` +有効期限の期間によるフィルターの開始時点のタイムスタンプです。 +デフォルトでは未指定です。 + + +--- +`expires_to` +```json +{ + "type": "string", + "format": "date-time" +} +``` +有効期限の期間によるフィルターの終了時点のタイムスタンプです。 +デフォルトでは未指定です。 + + +--- +`created_from` +```json +{ + "type": "string", + "format": "date-time" +} +``` +作成日時の期間によるフィルターの開始時点のタイムスタンプです。 +デフォルトでは未指定です。 + + +--- +`created_to` +```json +{ + "type": "string", + "format": "date-time" +} +``` +作成日時の期間によるフィルターの終了時点のタイムスタンプです。 +デフォルトでは未指定です。 + + +--- +`issuer_shop_id` +```json +{ + "type": "string", + "format": "uuid" +} +``` +チャージQRコードを発行した店舗IDによってフィルターします。 +デフォルトでは未指定です。 + + +--- +`description` +```json +{ + "type": "string" +} +``` +チャージQRコードの説明文(description)によってフィルターします。 +部分一致(前方一致)したものを表示します。 +デフォルトでは未指定です。 + + +--- +`is_onetime` +```json +{ + "type": "boolean" +} +``` +チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 +`true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 +未指定の場合はフィルターしません。 +デフォルトでは未指定です。 + + +--- +`is_disabled` +```json +{ + "type": "boolean" +} +``` +チャージQRコードが無効化されているかどうかでフィルターします。 +`true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 +未指定の場合はフィルターしません。 +デフォルトでは未指定です。 + + +--- +成功したときは[PaginatedChecks](#paginated-checks)オブジェクトを返します + +#### チャージQRコードの表示 +```typescript +const response: Response = await client.send(new GetCheck({ + check_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // チャージQRコードのID +})); +``` + +--- +`check_id` +```json +{ + "type": "string", + "format": "uuid" +} +``` +表示対象のチャージQRコードのIDです。 + +--- +成功したときは[Check](#check)オブジェクトを返します + +#### チャージQRコードの更新 +```typescript +const response: Response = await client.send(new UpdateCheck({ + check_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // チャージQRコードのID + money_amount: 691.0, // 付与マネー額 + point_amount: 974.0, // 付与ポイント額 + description: "test check", // チャージQRコードの説明文 + is_onetime: true, // ワンタイムかどうかのフラグ + usage_limit: 787, // ワンタイムでない場合の最大読み取り回数 + expires_at: "2020-08-02T15:37:21.000000Z", // チャージQRコード自体の失効日時 + point_expires_at: "2020-03-29T12:42:24.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + point_expires_in_days: 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID + is_disabled: true // 無効化されているかどうかのフラグ +})); +``` + +--- +`check_id` +```json +{ + "type": "string", + "format": "uuid" +} +``` +更新対象のチャージQRコードのIDです。 + +--- +`money_amount` +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` +チャージQRコードによって付与されるマネー額です。 +`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 + + +--- +`point_amount` +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` +チャージQRコードによって付与されるポイント額です。 +`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 + + +--- +`description` +```json +{ + "type": "string", + "maxLength": 200 +} +``` +チャージQRコードの説明文です。 +チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 + + +--- +`is_onetime` +```json +{ + "type": "boolean" +} +``` +チャージQRコードが一度の読み取りで失効するときに`true`にします。 +`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 +ただし、その場合も1ユーザにつき1回のみしか読み取れません。 --- `usage_limit` ```json -{ "type": "integer" } +{ + "type": "integer" +} +``` +複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 +NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 +ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 + + +--- +`expires_at` +```json +{ + "type": "string", + "format": "date-time" +} +``` +チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。 + +チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 + + +--- +`point_expires_at` +```json +{ + "type": "string", + "format": "date-time" +} +``` +チャージQRコードによって付与されるポイント残高の有効起源を指定します。 + +チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 + + +--- +`point_expires_in_days` +```json +{ + "type": "integer", + "minimum": 1 +} ``` -複数ユーザによって読み取り可能なチャージQRコードの読み取り回数に制限をつけるために指定します。 -省略すると無制限に読み取り可能なチャージQRコードになります。 -チャージQRコードは管理画面からいつでも無効化(有効化)することができます。 +チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 +1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 +`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 +`point_expires_at`と`point_expires_in_days`が両方NULLに設定されている場合は、マネーに設定されている残高の有効期限と同じになります。 + + +--- +`bear_point_account` +```json +{ + "type": "string", + "format": "uuid" +} +``` +ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 + + +--- +`is_disabled` +```json +{ + "type": "boolean" +} +``` +チャージQRコードを無効化するときに`true`にします。 +`false`の場合は無効化されているチャージQRコードを再有効化します。 --- @@ -1915,18 +2366,18 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な 支払いQRコード一覧を表示します。 ```typescript const response: Response = await client.send(new ListBills({ - page: 1204, // ページ番号 - per_page: 4491, // 1ページの表示数 - bill_id: "QfVcwKEO", // 支払いQRコードのID + page: 2111, // ページ番号 + per_page: 6570, // 1ページの表示数 + bill_id: "yFeM64i", // 支払いQRコードのID private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - organization_code: "v", // 組織コード + organization_code: "a-RQbg-P55SQ", // 組織コード description: "test bill", // 取引説明文 - created_from: "2022-11-12T00:44:34.000000+09:00", // 作成日時(起点) - created_to: "2015-10-17T09:46:04.000000+09:00", // 作成日時(終点) + created_from: "2022-04-08T18:46:56.000000Z", // 作成日時(起点) + created_to: "2023-05-26T08:42:49.000000Z", // 作成日時(終点) shop_name: "bill test shop1", // 店舗名 shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - lower_limit_amount: 6180, // 金額の範囲によるフィルタ(下限) - upper_limit_amount: 7003, // 金額の範囲によるフィルタ(上限) + lower_limit_amount: 8447, // 金額の範囲によるフィルタ(下限) + upper_limit_amount: 5739, // 金額の範囲によるフィルタ(上限) is_disabled: true // 支払いQRコードが無効化されているかどうか })); ``` @@ -1954,7 +2405,9 @@ const response: Response = await client.send(new ListBills({ --- `bill_id` ```json -{ "type": "string" } +{ + "type": "string" +} ``` 支払いQRコードのIDを指定して検索します。IDは前方一致で検索されます。 @@ -2058,7 +2511,9 @@ const response: Response = await client.send(new ListBills({ --- `is_disabled` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` 支払いQRコードが無効化されているかどうかを表します。デフォルト値は偽(有効)です。 @@ -2071,7 +2526,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: 5903.0, // 支払い額 + amount: 7339.0, // 支払い額 description: "test bill" // 説明文(アプリ上で取引の説明文として表示される) })); ``` @@ -2095,9 +2550,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: 1197.0, // 支払い額 + amount: 2784.0, // 支払い額 description: "test bill", // 説明文 - is_disabled: true // 無効化されているかどうか + is_disabled: false // 無効化されているかどうか })); ``` @@ -2135,7 +2590,9 @@ const response: Response = await client.send(new UpdateBill({ --- `is_disabled` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` 支払いQRコードが無効化されているかどうかを指定します。真にすると無効化され、偽にすると有効化します。 @@ -2160,9 +2617,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: 1224.0, // 金額 + amount: 4879.0, // 金額 description: "たい焼き(小倉)", // 取引履歴に表示する説明文 - expires_in: 4068 // 失効時間(秒) + expires_in: 4584 // 失効時間(秒) })); ``` @@ -2189,7 +2646,9 @@ const response: Response = await client.send(new CreateCashtray({ --- `amount` ```json -{ "type": "number" } +{ + "type": "number" +} ``` マネー額です(必須項目)。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 @@ -2325,9 +2784,9 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可 ```typescript const response: Response = await client.send(new UpdateCashtray({ cashtray_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // CashtrayのID - amount: 4570.0, // 金額 + amount: 4450.0, // 金額 description: "たい焼き(小倉)", // 取引履歴に表示する説明文 - expires_in: 2858 // 失効時間(秒) + expires_in: 4918 // 失効時間(秒) })); ``` @@ -2344,7 +2803,9 @@ const response: Response = await client.send(new UpdateCashtray({ --- `amount` ```json -{ "type": "number" } +{ + "type": "number" +} ``` マネー額です(任意項目)。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 @@ -2408,9 +2869,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: false, // ウォレットが凍結されているかどうか + is_suspended: true, // ウォレットが凍結されているかどうか status: "suspended", // ウォレット状態 - can_transfer_topup: false // チャージ可能かどうか + can_transfer_topup: true // チャージ可能かどうか })); ``` @@ -2429,7 +2890,9 @@ const response: Response = await client.send(new UpdateAccount({ --- `is_suspended` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` ウォレットの凍結状態です。真にするとウォレットが凍結され、そのウォレットでは新規取引ができなくなります。偽にすると凍結解除されます。 @@ -2438,7 +2901,11 @@ const response: Response = await client.send(new UpdateAccount({ ```json { "type": "string", - "enum": [ "active", "suspended", "pre-closed" ] + "enum": [ + "active", + "suspended", + "pre-closed" + ] } ``` ウォレットの状態です。 @@ -2446,7 +2913,9 @@ const response: Response = await client.send(new UpdateAccount({ --- `can_transfer_topup` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` 店舗ユーザーがエンドユーザーにチャージ可能かどうかです。真にするとチャージ可能となり、偽にするとチャージ不可能となります。 @@ -2458,7 +2927,7 @@ const response: Response = await client.send(new UpdateAccount({ ```typescript const response: Response = await client.send(new DeleteAccount({ account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - cashback: false // 返金有無 + cashback: true // 返金有無 })); ``` @@ -2477,7 +2946,9 @@ const response: Response = await client.send(new DeleteAccount({ --- `cashback` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` 退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 @@ -2489,10 +2960,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: 2449, // ページ番号 - per_page: 520, // 1ページ分の取引数 - expires_at_from: "2023-09-18T23:32:30.000000+09:00", // 有効期限の期間によるフィルター(開始時点) - expires_at_to: "2018-01-22T23:46:25.000000+09:00", // 有効期限の期間によるフィルター(終了時点) + page: 4038, // ページ番号 + per_page: 9332, // 1ページ分の取引数 + expires_at_from: "2021-12-12T20:53:51.000000Z", // 有効期限の期間によるフィルター(開始時点) + expires_at_to: "2022-03-09T21:57:33.000000Z", // 有効期限の期間によるフィルター(終了時点) direction: "desc" // 有効期限によるソート順序 })); ``` @@ -2554,7 +3025,10 @@ const response: Response = await client.send(new ListAc ```json { "type": "string", - "enum": { "asc": "desc" } + "enum": [ + "asc", + "desc" + ] } ``` 有効期限によるソートの順序を指定します。デフォルト値はasc (昇順)です。 @@ -2567,11 +3041,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: 2562, // ページ番号 - per_page: 2350, // 1ページ分の取引数 - expires_at_from: "2022-11-07T23:53:28.000000+09:00", // 有効期限の期間によるフィルター(開始時点) - expires_at_to: "2024-03-02T12:53:21.000000+09:00", // 有効期限の期間によるフィルター(終了時点) - direction: "asc" // 有効期限によるソート順序 + page: 6344, // ページ番号 + per_page: 1186, // 1ページ分の取引数 + expires_at_from: "2022-12-02T04:36:47.000000Z", // 有効期限の期間によるフィルター(開始時点) + expires_at_to: "2023-08-15T16:25:46.000000Z", // 有効期限の期間によるフィルター(終了時点) + direction: "desc" // 有効期限によるソート順序 })); ``` @@ -2632,7 +3106,10 @@ const response: Response = await client.send(new ListAc ```json { "type": "string", - "enum": { "asc": "desc" } + "enum": [ + "asc", + "desc" + ] } ``` 有効期限によるソートの順序を指定します。デフォルト値はdesc (降順)です。 @@ -2645,9 +3122,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: "suspended", // ウォレット状態 - account_name: "2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79qoFTViWGk7rsKgu2ihoMxDsfU3TC1A8fV5nkzyaMo6HNFjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKU", // アカウント名 - external_id: "ADYaUMS4V1", // 外部ID + status: "active", // ウォレット状態 + account_name: "bxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPv", // アカウント名 + external_id: "o", // 外部ID metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" // ウォレットに付加するメタデータ })); ``` @@ -2669,7 +3146,11 @@ const response: Response = await client.send(new UpdateCustomer ```json { "type": "string", - "enum": [ "active", "suspended", "pre-closed" ] + "enum": [ + "active", + "suspended", + "pre-closed" + ] } ``` ウォレットの状態です。 @@ -2727,15 +3208,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: 4060, // ページ番号 - per_page: 2564, // 1ページ分のウォレット数 - created_at_from: "2022-12-06T00:04:18.000000+09:00", // ウォレット作成日によるフィルター(開始時点) - created_at_to: "2018-02-12T04:05:18.000000+09:00", // ウォレット作成日によるフィルター(終了時点) - is_suspended: true, // ウォレットが凍結状態かどうかでフィルターする + page: 7158, // ページ番号 + per_page: 1278, // 1ページ分のウォレット数 + created_at_from: "2023-02-19T06:09:39.000000Z", // ウォレット作成日によるフィルター(開始時点) + created_at_to: "2022-05-26T12:04:19.000000Z", // ウォレット作成日によるフィルター(終了時点) + is_suspended: false, // ウォレットが凍結状態かどうかでフィルターする status: "active", // ウォレット状態 - external_id: "iuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9", // 外部ID - tel: "09835724", // エンドユーザーの電話番号 - email: "Jofbfd8lI7@ca3o.com" // エンドユーザーのメールアドレス + external_id: "Ms9", // 外部ID + tel: "0955159538", // エンドユーザーの電話番号 + email: "sXeAgeVmz0@XdBq.com" // エンドユーザーのメールアドレス })); ``` @@ -2794,7 +3275,9 @@ const response: Response = await client.send(new GetC --- `is_suspended` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 @@ -2803,7 +3286,11 @@ const response: Response = await client.send(new GetC ```json { "type": "string", - "enum": [ "active", "suspended", "pre-closed" ] + "enum": [ + "active", + "suspended", + "pre-closed" + ] } ``` このパラメータが指定されている場合、ウォレットの状態で結果がフィルターされます。デフォルトでは未指定です。 @@ -2851,7 +3338,7 @@ const response: Response = await client.send(new CreateCustomer private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID user_name: "ポケペイ太郎", // ユーザー名 account_name: "ポケペイ太郎のアカウント", // アカウント名 - external_id: "QIsUl3rCM2ZMpE4WDo" // 外部ID + external_id: "vz2LZqSb1Cr9Gv" // 外部ID })); ``` @@ -2905,11 +3392,11 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで ```typescript const response: Response = await client.send(new GetShopAccounts({ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - page: 6515, // ページ番号 - per_page: 2556, // 1ページ分のウォレット数 - created_at_from: "2024-03-23T00:01:00.000000+09:00", // ウォレット作成日によるフィルター(開始時点) - created_at_to: "2019-08-19T02:00:31.000000+09:00", // ウォレット作成日によるフィルター(終了時点) - is_suspended: true // ウォレットが凍結状態かどうかでフィルターする + page: 5289, // ページ番号 + per_page: 7371, // 1ページ分のウォレット数 + created_at_from: "2020-08-07T01:47:22.000000Z", // ウォレット作成日によるフィルター(開始時点) + created_at_to: "2023-02-04T11:29:08.000000Z", // ウォレット作成日によるフィルター(終了時点) + is_suspended: false // ウォレットが凍結状態かどうかでフィルターする })); ``` @@ -2968,7 +3455,9 @@ const response: Response = await client.send(new GetS --- `is_suspended` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 @@ -2982,10 +3471,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: "cashback", // 取引種別 - is_modified: true, // キャンセル済みかどうか - from: "2017-02-24T20:56:29.000000+09:00", // 開始日時 - to: "2020-11-21T02:48:12.000000+09:00", // 終了日時 + type: "payment", // 取引種別 + is_modified: false, // キャンセル済みかどうか + from: "2021-12-12T20:22:48.000000Z", // 開始日時 + to: "2022-06-05T02:13:10.000000Z", // 終了日時 page: 1, // ページ番号 per_page: 50 // 1ページ分の取引数 })); @@ -3031,11 +3520,14 @@ const response: Response = await client.send(new ListCusto ```json { "type": "string", - "enum": { - "topup": "payment", - "exchange": "transfer", - "cashback": "expire" - } + "enum": [ + "topup", + "payment", + "exchange", + "transfer", + "cashback", + "expire" + ] } ``` 取引の種類でフィルターします。 @@ -3058,7 +3550,9 @@ const response: Response = await client.send(new ListCusto --- `is_modified` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` キャンセル済みかどうかを判定するフラグです。 @@ -3113,6 +3607,71 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 --- 成功したときは[PaginatedTransaction](#paginated-transaction)オブジェクトを返します ### Organization + +#### 加盟店組織の一覧を取得する +```typescript +const response: Response = await client.send(new ListOrganizations({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + page: 1, // ページ番号 + per_page: 50, // 1ページ分の取引数 + name: "JVn", // 組織名 + code: "04l" // 組織コード +})); +``` + +--- +`private_money_id` +```json +{ + "type": "string", + "format": "uuid" +} +``` +マネーIDです。 +このマネーに加盟している加盟組織がフィルターされます。 + +--- +`page` +```json +{ + "type": "integer", + "minimum": 1 +} +``` +取得したいページ番号です。 + +--- +`per_page` +```json +{ + "type": "integer", + "minimum": 1 +} +``` +1ページ分の取引数です。 + +--- +成功したときは[PaginatedOrganizations](#paginated-organizations)オブジェクトを返します + +#### 新規加盟店組織を追加する +```typescript +const response: Response = await client.send(new CreateOrganization({ + code: "ox-supermarket", // 新規組織コード + name: "oxスーパー", // 新規組織名 + private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 加盟店組織で有効にするマネーIDの配列 + issuer_admin_user_email: "Qy4ktenk93@ttYP.com", // 発行体担当者メールアドレス + member_admin_user_email: "JhOiPCYhnx@itPJ.com", // 新規組織担当者メールアドレス + bank_name: "XYZ銀行", // 銀行名 + bank_code: "1234", // 銀行金融機関コード + bank_branch_name: "ABC支店", // 銀行支店名 + bank_branch_code: "123", // 銀行支店コード + bank_account_type: "other", // 銀行口座種別 (普通=saving, 当座=current, その他=other) + bank_account: "1234567", // 銀行口座番号 + bank_account_holder_name: "フクザワユキチ", // 口座名義人名 + contact_name: "佐藤清" // 担当者名 +})); +``` +成功したときは[Organization](#organization)オブジェクトを返します ### Shop #### 店舗一覧を取得する @@ -3121,12 +3680,12 @@ const response: Response = await client.send(new ListShops({ organization_code: "pocketchange", // 組織コード private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID name: "oxスーパー三田店", // 店舗名 - postal_code: "0308543", // 店舗の郵便番号 + postal_code: "840-0964", // 店舗の郵便番号 address: "東京都港区芝...", // 店舗の住所 - tel: "02552956-860", // 店舗の電話番号 - email: "vobOclFXKf@vdQi.com", // 店舗のメールアドレス - external_id: "3hjtD1VYnThEQOLtlkRPIAe", // 店舗の外部ID - with_disabled: false, // 無効な店舗を含める + tel: "07962-0052", // 店舗の電話番号 + email: "nV35pBMGKJ@EJkp.com", // 店舗のメールアドレス + external_id: "6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1", // 店舗の外部ID + with_disabled: true, // 無効な店舗を含める page: 1, // ページ番号 per_page: 50 // 1ページ分の取引数 })); @@ -3226,7 +3785,9 @@ const response: Response = await client.send(new ListShops({ --- `with_disabled` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。 @@ -3259,11 +3820,11 @@ const response: Response = await client.send(new ListShops({ ```typescript const response: Response = await client.send(new CreateShop({ shop_name: "oxスーパー三田店", // 店舗名 - shop_postal_code: "681-1231", // 店舗の郵便番号 + shop_postal_code: "414-3353", // 店舗の郵便番号 shop_address: "東京都港区芝...", // 店舗の住所 - shop_tel: "0973740877", // 店舗の電話番号 - shop_email: "zgZ3SAsjpA@uPQw.com", // 店舗のメールアドレス - shop_external_id: "MExC1w6ifl9ZUstq", // 店舗の外部ID + shop_tel: "01663553194", // 店舗の電話番号 + shop_email: "DUp3byZcFE@PnID.com", // 店舗のメールアドレス + shop_external_id: "yEjs1xIVAG7PJaXsPvnXy7J", // 店舗の外部ID organization_code: "ox-supermarket" // 組織コード })); ``` @@ -3273,14 +3834,14 @@ const response: Response = await client.send(new CreateShop({ ```typescript const response: Response = await client.send(new CreateShopV2({ name: "oxスーパー三田店", // 店舗名 - postal_code: "7381888", // 店舗の郵便番号 + postal_code: "0107440", // 店舗の郵便番号 address: "東京都港区芝...", // 店舗の住所 - tel: "040-70-5582", // 店舗の電話番号 - email: "si7WktomTS@Is3s.com", // 店舗のメールアドレス - external_id: "ss0bSZ1", // 店舗の外部ID + tel: "06-5261414", // 店舗の電話番号 + email: "VhR8qFWp5t@CaOk.com", // 店舗のメールアドレス + external_id: "j6", // 店舗の外部ID organization_code: "ox-supermarket", // 組織コード private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 店舗で有効にするマネーIDの配列 - can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"] // 店舗でチャージ可能にするマネーIDの配列 + can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"] // 店舗でチャージ可能にするマネーIDの配列 })); ``` @@ -3351,14 +3912,14 @@ const response: Response = await client.send(new GetShop({ const response: Response = await client.send(new UpdateShop({ shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ユーザーID name: "oxスーパー三田店", // 店舗名 - postal_code: "027-2404", // 店舗の郵便番号 + postal_code: "0784915", // 店舗の郵便番号 address: "東京都港区芝...", // 店舗の住所 - tel: "076478-442", // 店舗の電話番号 - email: "2et6R89vRe@hYIZ.com", // 店舗のメールアドレス - external_id: "Mh6MfShA8D4Ev7O7TGT70LQ2epxhXvfJrqw", // 店舗の外部ID + tel: "00540-5427", // 店舗の電話番号 + email: "mpVcy9ixDX@4fCf.com", // 店舗のメールアドレス + external_id: "AE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOn", // 店舗の外部ID private_money_ids: [], // 店舗で有効にするマネーIDの配列 - can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 店舗でチャージ可能にするマネーIDの配列 - status: "active" // 店舗の状態 + can_topup_private_money_ids: [], // 店舗でチャージ可能にするマネーIDの配列 + status: "disabled" // 店舗の状態 })); ``` @@ -3455,7 +4016,10 @@ const response: Response = await client.send(new UpdateShop({ ```json { "type": "string", - "enum": { "active": "disabled" } + "enum": [ + "active", + "disabled" + ] } ``` 店舗の状態です。activeを指定すると有効となり、disabledを指定するとリスト表示から除外されます。 @@ -3469,8 +4033,8 @@ const response: Response = await client.send(new UpdateShop({ ```typescript const response: Response = await client.send(new ListUserAccounts({ user_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ユーザーID - page: 9606, // ページ番号 - per_page: 3576 // 1ページ分の取引数 + page: 7454, // ページ番号 + per_page: 225 // 1ページ分の取引数 })); ``` @@ -3515,8 +4079,8 @@ const response: Response = await client.send(new ListUs const response: Response = await client.send(new CreateUserAccount({ user_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ユーザーID private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - name: "zvGv5tXB9341AdQSvr2jD2CPBEg6qDXhSH8hafJy0sDT", // ウォレット名 - external_id: "MPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14xB891r", // 外部ID + name: "WPSNst44xBM1tMMoOy", // ウォレット名 + external_id: "oAqWcD5ADFBSPh7o2MC5sMNA", // 外部ID metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" // ウォレットに付加するメタデータ })); ``` @@ -3591,8 +4155,8 @@ const response: Response = await client.send(new GetPriv ```typescript const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - from: "2017-06-06T02:42:58.000000+09:00", // 開始日時(toと同時に指定する必要有) - to: "2025-02-19T19:53:50.000000+09:00", // 終了日時(fromと同時に指定する必要有) + from: "2024-01-05T10:05:05.000000Z", // 開始日時(toと同時に指定する必要有) + to: "2023-04-20T05:34:54.000000Z", // 終了日時(fromと同時に指定する必要有) page: 1, // ページ番号 per_page: 50 // 1ページ分の取引数 })); @@ -3605,8 +4169,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: "2022-06-20T16:52:59.000000+09:00", // 開始日時 - to: "2022-07-13T23:00:57.000000+09:00" // 終了日時 + from: "2022-09-03T19:55:42.000000Z", // 開始日時 + to: "2023-05-10T19:11:36.000000Z" // 終了日時 })); ``` 成功したときは[PrivateMoneySummary](#private-money-summary)オブジェクトを返します @@ -3616,10 +4180,10 @@ const response: Response = await client.send(new GetPrivate CSVファイルから一括取引をします。 ```typescript const response: Response = await client.send(new BulkCreateTransaction({ - name: "eB61v", // 一括取引タスク名 - content: "OZ1u", // 取引する情報のCSV - request_id: "NBAdr6lfzbfqKlnsG40wZo0RT90mTv9imeNi", // リクエストID - description: "Y62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois", // 一括取引の説明 + name: "F", // 一括取引タスク名 + content: "H", // 取引する情報のCSV + request_id: "Coj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSK", // リクエストID + description: "BR3LjzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBh", // 一括取引の説明 private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID })); ``` @@ -3647,7 +4211,9 @@ const response: Response = await client.send(new BulkCreateTran --- `content` ```json -{ "type": "string" } +{ + "type": "string" +} ``` 一括取引する情報を書いたCSVの文字列です。 1行目はヘッダ行で、2行目以降の各行にカンマ区切りの取引データを含みます。 @@ -3703,11 +4269,11 @@ const response: Response = await client.send(new BulkCreateTran ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。 ```typescript -const response: Response = await client.send(new CreateExternalTransaction({ +const response: Response = await client.send(new CreateExternalTransaction({ 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: 3852, // 取引額 + amount: 1610, // 取引額 description: "たい焼き(小倉)", // 取引説明文 metadata: "{\"key\":\"value\"}", // ポケペイ外部取引メタデータ products: [{"jan_code":"abc", @@ -3720,6 +4286,11 @@ const response: Response = await client.send(new CreateExte "unit_price":100, "price": 100, "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "is_discounted": false, "other":"{}"}], // 商品情報データ request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID })); @@ -3800,7 +4371,9 @@ const response: Response = await client.send(new CreateExte ```json { "type": "array", - "items": { "type": "object" } + "items": { + "type": "object" + } } ``` 一つの取引に含まれる商品情報データです。 @@ -3828,7 +4401,7 @@ const response: Response = await client.send(new CreateExte リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 --- -成功したときは[ExternalTransaction](#external-transaction)オブジェクトを返します +成功したときは[ExternalTransactionDetail](#external-transaction-detail)オブジェクトを返します #### ポケペイ外部取引をキャンセルする 取引IDを指定して取引をキャンセルします。 @@ -3838,12 +4411,12 @@ const response: Response = await client.send(new CreateExte 取引をキャンセルできるのは1回きりです。既にキャンセルされた取引を重ねてキャンセルしようとすると `transaction_already_refunded (422)` エラーが返ります。 ```typescript -const response: Response = await client.send(new RefundExternalTransaction({ +const response: Response = await client.send(new RefundExternalTransaction({ event_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID description: "返品対応のため" // 取引履歴に表示する返金事由 })); ``` -成功したときは[ExternalTransaction](#external-transaction)オブジェクトを返します +成功したときは[ExternalTransactionDetail](#external-transaction-detail)オブジェクトを返します ### Campaign #### ポイント付与キャンペーンを作る @@ -3851,17 +4424,17 @@ const response: Response = await client.send(new RefundExte ```typescript const response: Response = await client.send(new CreateCampaign({ - name: "hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbp", // キャンペーン名 + name: "Kn6T4UBYf7XzEp3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T", // キャンペーン名 private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - starts_at: "2023-09-24T23:26:18.000000+09:00", // キャンペーン開始日時 - ends_at: "2016-02-09T03:13:42.000000+09:00", // キャンペーン終了日時 - priority: 4660, // キャンペーンの適用優先度 - event: "external-transaction", // イベント種別 + starts_at: "2021-11-30T05:15:59.000000Z", // キャンペーン開始日時 + ends_at: "2020-10-17T00:37:07.000000Z", // キャンペーン終了日時 + priority: 3019, // キャンペーンの適用優先度 + event: "topup", // イベント種別 bear_point_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント負担先店舗ID - description: "mZQDB6u1kMJt8otXLMwi", // キャンペーンの説明文 - status: "disabled", // キャンペーン作成時の状態 - point_expires_at: "2019-02-11T15:46:26.000000+09:00", // ポイント有効期限(絶対日時指定) - point_expires_in_days: 4640, // ポイント有効期限(相対日数指定) + description: "kSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCD", // キャンペーンの説明文 + status: "enabled", // キャンペーン作成時の状態 + point_expires_at: "2023-11-22T03:25:23.000000Z", // ポイント有効期限(絶対日時指定) + point_expires_in_days: 6773, // ポイント有効期限(相対日数指定) is_exclusive: false, // キャンペーンの重複設定 subject: "all", // ポイント付与の対象金額の種別 amount_based_point_rules: [{ @@ -3869,6 +4442,11 @@ const response: Response = await client.send(new CreateCampaign({ "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, @@ -3877,21 +4455,22 @@ const response: Response = await client.send(new CreateCampaign({ "is_multiply_by_count": true, "required_count": 2 }], // 商品情報ベースのポイント付与ルール - applicable_days_of_week: [1], // キャンペーンを適用する曜日 (複数指定) + applicable_days_of_week: [2], // キャンペーンを適用する曜日 (複数指定) 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_for_combination_purchase: 5375, // 複数種類の商品を同時購入するときの商品種別数の下限 - exist_in_each_product_groups: true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - max_point_amount: 2714, // キャンペーンによって付与されるポイントの上限 - max_total_point_amount: 9297, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト + minimum_number_for_combination_purchase: 1451, // 複数種類の商品を同時購入するときの商品種別数の下限 + exist_in_each_product_groups: false, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + max_point_amount: 2770, // キャンペーンによって付与されるポイントの上限 + max_total_point_amount: 4968, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 dest_private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント付与先となるマネーID applicable_account_metadata: { "key": "sex", "value": "male" -} // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 +}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + budget_caps_amount: 1494199178 // キャンペーン予算上限 })); ``` @@ -3944,7 +4523,9 @@ const response: Response = await client.send(new CreateCampaign({ --- `priority` ```json -{ "type": "integer" } +{ + "type": "integer" +} ``` キャンペーンの適用優先度です。 @@ -3956,7 +4537,11 @@ const response: Response = await client.send(new CreateCampaign({ ```json { "type": "string", - "enum": [ "topup", "payment", "external-transaction" ] + "enum": [ + "topup", + "payment", + "external-transaction" + ] } ``` キャンペーンのトリガーとなるイベントの種類を指定します(必須項目)。 @@ -3996,7 +4581,10 @@ const response: Response = await client.send(new CreateCampaign({ ```json { "type": "string", - "enum": { "enabled": "disabled" } + "enum": [ + "enabled", + "disabled" + ] } ``` キャンペーン作成時の状態を指定します。デフォルトではenabledです。 @@ -4033,7 +4621,9 @@ const response: Response = await client.send(new CreateCampaign({ --- `is_exclusive` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` キャンペーンの重ね掛けを行うかどうかのフラグです。 @@ -4045,7 +4635,10 @@ falseを指定すると次の優先度の重ね掛け可能なキャンペーン ```json { "type": "string", - "enum": { "money": "all" } + "enum": [ + "money", + "all" + ] } ``` ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 @@ -4065,7 +4658,9 @@ all を指定すると決済額全体を対象にします (「ポイント」 ```json { "type": "array", - "items": { "type": "object" } + "items": { + "type": "object" + } } ``` 金額をベースとしてポイント付与を行うルールを指定します。 @@ -4096,7 +4691,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し ```json { "type": "array", - "items": { "type": "object" } + "items": { + "type": "object" + } } ``` 商品情報をベースとしてポイント付与を行うルールを指定します。 @@ -4228,7 +4825,9 @@ event が payment か external-transaction の時のみ有効です。 --- `exist_in_each_product_groups` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` 複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 @@ -4356,7 +4955,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 --- `applicable_account_metadata` ```json -{ "type": "object" } +{ + "type": "object" +} ``` ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 @@ -4384,6 +4985,20 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +--- +`budget_caps_amount` +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 10000000000 +} +``` +キャンペーンの予算上限を指定します。デフォルトは未指定です。 + +このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 +一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 + --- 成功したときは[Campaign](#campaign)オブジェクトを返します @@ -4394,9 +5009,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 ```typescript const response: Response = await client.send(new ListCampaigns({ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - is_ongoing: true, // 現在適用可能なキャンペーンかどうか - available_from: "2021-03-31T02:38:44.000000+09:00", // 指定された日時以降に適用可能期間が含まれているか - available_to: "2023-01-18T05:57:01.000000+09:00", // 指定された日時以前に適用可能期間が含まれているか + is_ongoing: false, // 現在適用可能なキャンペーンかどうか + available_from: "2021-09-12T16:32:28.000000Z", // 指定された日時以降に適用可能期間が含まれているか + available_to: "2021-03-11T20:37:06.000000Z", // 指定された日時以前に適用可能期間が含まれているか page: 1, // ページ番号 per_page: 20 // 1ページ分の取得数 })); @@ -4417,7 +5032,9 @@ const response: Response = await client.send(new ListCampaig --- `is_ongoing` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` 有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 @@ -4500,17 +5117,17 @@ 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: "nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO5Bp0TaBrmndiCNxXXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjj", // キャンペーン名 - starts_at: "2024-09-30T20:45:09.000000+09:00", // キャンペーン開始日時 - ends_at: "2017-09-06T00:16:21.000000+09:00", // キャンペーン終了日時 - priority: 5093, // キャンペーンの適用優先度 - event: "external-transaction", // イベント種別 - description: "dDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG76", // キャンペーンの説明文 - status: "enabled", // キャンペーン作成時の状態 - point_expires_at: "2016-02-28T10:07:16.000000+09:00", // ポイント有効期限(絶対日時指定) - point_expires_in_days: 2261, // ポイント有効期限(相対日数指定) + name: "CcszhfH09Y5OthVwPmvHXBFS5mnHJDaN", // キャンペーン名 + starts_at: "2020-12-01T03:01:47.000000Z", // キャンペーン開始日時 + ends_at: "2022-04-28T20:33:01.000000Z", // キャンペーン終了日時 + priority: 7548, // キャンペーンの適用優先度 + event: "payment", // イベント種別 + description: "qCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxVOS8aVOp", // キャンペーンの説明文 + status: "disabled", // キャンペーン作成時の状態 + point_expires_at: "2023-01-18T13:40:57.000000Z", // ポイント有効期限(絶対日時指定) + point_expires_in_days: 6830, // ポイント有効期限(相対日数指定) is_exclusive: false, // キャンペーンの重複設定 - subject: "money", // ポイント付与の対象金額の種別 + subject: "all", // ポイント付与の対象金額の種別 amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -4521,11 +5138,6 @@ const response: Response = await client.send(new UpdateCampaign({ "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, @@ -4533,8 +5145,14 @@ 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 }], // 商品情報ベースのポイント付与ルール - applicable_days_of_week: [3, 5, 1], // キャンペーンを適用する曜日 (複数指定) + applicable_days_of_week: [3, 5], // キャンペーンを適用する曜日 (複数指定) applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -4545,15 +5163,16 @@ const response: Response = await client.send(new UpdateCampaign({ "from": "12:00", "to": "23:59" }], // キャンペーンを適用する時間帯 (複数指定) - applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト - minimum_number_for_combination_purchase: 3146, // 複数種類の商品を同時購入するときの商品種別数の下限 - exist_in_each_product_groups: false, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - max_point_amount: 261, // キャンペーンによって付与されるポイントの上限 - max_total_point_amount: 8788, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト + minimum_number_for_combination_purchase: 4392, // 複数種類の商品を同時購入するときの商品種別数の下限 + exist_in_each_product_groups: true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + max_point_amount: 2031, // キャンペーンによって付与されるポイントの上限 + max_total_point_amount: 4215, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 applicable_account_metadata: { "key": "sex", "value": "male" -} // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 +}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + budget_caps_amount: 2034420397 // キャンペーン予算上限 })); ``` @@ -4608,7 +5227,9 @@ const response: Response = await client.send(new UpdateCampaign({ --- `priority` ```json -{ "type": "integer" } +{ + "type": "integer" +} ``` キャンペーンの適用優先度です。 @@ -4620,7 +5241,11 @@ const response: Response = await client.send(new UpdateCampaign({ ```json { "type": "string", - "enum": [ "topup", "payment", "external-transaction" ] + "enum": [ + "topup", + "payment", + "external-transaction" + ] } ``` キャンペーンのトリガーとなるイベントの種類を指定します。 @@ -4649,7 +5274,10 @@ const response: Response = await client.send(new UpdateCampaign({ ```json { "type": "string", - "enum": { "enabled": "disabled" } + "enum": [ + "enabled", + "disabled" + ] } ``` キャンペーン作成時の状態を指定します。デフォルトではenabledです。 @@ -4686,7 +5314,9 @@ const response: Response = await client.send(new UpdateCampaign({ --- `is_exclusive` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` キャンペーンの重ね掛けを行うかどうかのフラグです。 @@ -4698,7 +5328,10 @@ falseを指定すると次の優先度の重ね掛け可能なキャンペーン ```json { "type": "string", - "enum": { "money": "all" } + "enum": [ + "money", + "all" + ] } ``` ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 @@ -4718,7 +5351,9 @@ all を指定すると決済額全体を対象にします (「ポイント」 ```json { "type": "array", - "items": { "type": "object" } + "items": { + "type": "object" + } } ``` 金額をベースとしてポイント付与を行うルールを指定します。 @@ -4749,7 +5384,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し ```json { "type": "array", - "items": { "type": "object" } + "items": { + "type": "object" + } } ``` 商品情報をベースとしてポイント付与を行うルールを指定します。 @@ -4881,7 +5518,9 @@ event が payment か external-transaction の時のみ有効です。 --- `exist_in_each_product_groups` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` 複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 @@ -4991,7 +5630,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 --- `applicable_account_metadata` ```json -{ "type": "object" } +{ + "type": "object" +} ``` ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 @@ -5019,6 +5660,22 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +--- +`budget_caps_amount` +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 10000000000 +} +``` +キャンペーンの予算上限を指定します。 + +キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 +一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 +キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。 +キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。 + --- 成功したときは[Campaign](#campaign)オブジェクトを返します ### Webhook @@ -5033,8 +5690,8 @@ WebHookにはURLとタスク名、有効化されているかを設定するこ このとき、リクエストボディは `{"task": <タスク名>}` という値になります。 ```typescript const response: Response = await client.send(new CreateWebhook({ - task: "process_user_stats_operation", // タスク名 - url: "gi" // URL + task: "bulk_shops", // タスク名 + url: "9kW30yX" // URL })); ``` @@ -5043,7 +5700,10 @@ const response: Response = await client.send(new ```json { "type": "string", - "enum": { "bulk_shops": "process_user_stats_operation" } + "enum": [ + "bulk_shops", + "process_user_stats_operation" + ] } ``` ワーカータスク名を指定します @@ -5051,7 +5711,9 @@ const response: Response = await client.send(new --- `url` ```json -{ "type": "string" } +{ + "type": "string" +} ``` 通知先のURLを指定します @@ -5094,8 +5756,8 @@ const response: Response = await client. ```typescript const response: Response = await client.send(new UpdateWebhook({ webhook_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // Webhook ID - url: "jWRyxneekV", // URL - is_active: true, // 有効/無効 + url: "j5pEZQN", // URL + is_active: false, // 有効/無効 task: "bulk_shops" // タスク名 })); ``` @@ -5113,14 +5775,18 @@ const response: Response = await client.send(new --- `url` ```json -{ "type": "string" } +{ + "type": "string" +} ``` 変更するURLを指定します --- `is_active` ```json -{ "type": "boolean" } +{ + "type": "boolean" +} ``` trueならWebhookによる通知が有効になり、falseなら無効になります @@ -5129,11 +5795,35 @@ trueならWebhookによる通知が有効になり、falseなら無効になり ```json { "type": "string", - "enum": { "bulk_shops": "process_user_stats_operation" } + "enum": [ + "bulk_shops", + "process_user_stats_operation" + ] } ``` 指定したタスクが終了したときにWebhookによる通知がされます +--- +成功したときは[OrganizationWorkerTaskWebhook](#organization-worker-task-webhook)オブジェクトを返します + +#### Webhookの削除 +指定したWebhookを削除します +```typescript +const response: Response = await client.send(new DeleteWebhook({ + webhook_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Webhook ID +})); +``` + +--- +`webhook_id` +```json +{ + "type": "string", + "format": "uuid" +} +``` +削除するWebhookのIDです。 + --- 成功したときは[OrganizationWorkerTaskWebhook](#organization-worker-task-webhook)オブジェクトを返します ### Coupon @@ -5146,12 +5836,12 @@ Couponは特定店舗で利用できるものや利用可能期間、配信条 ```typescript const response: Response = await client.send(new ListCoupons({ private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 対象クーポンのマネーID - coupon_id: "cIDT0hnm8", // クーポンID - coupon_name: "8evW68NKp", // クーポン名 - issued_shop_name: "dkq0PM", // 発行店舗名 - available_shop_name: "o6iR", // 利用可能店舗名 - available_from: "2022-04-09T19:30:01.000000+09:00", // 利用可能期間 (開始日時) - available_to: "2024-04-07T13:25:13.000000+09:00", // 利用可能期間 (終了日時) + coupon_id: "wcrR2Tap7t", // クーポンID + coupon_name: "zfq7vVXcZ", // クーポン名 + issued_shop_name: "kAjYTEO65", // 発行店舗名 + available_shop_name: "NQtFJaRQv", // 利用可能店舗名 + available_from: "2023-06-06T10:12:20.000000Z", // 利用可能期間 (開始日時) + available_to: "2020-11-29T08:57:14.000000Z", // 利用可能期間 (終了日時) page: 1, // ページ番号 per_page: 50 // 1ページ分の取得数 })); @@ -5172,7 +5862,9 @@ const response: Response = await client.send(new ListCoupons({ --- `coupon_id` ```json -{ "type": "string" } +{ + "type": "string" +} ``` 指定されたクーポンIDで結果をフィルターします。 部分一致(前方一致)します。 @@ -5181,7 +5873,9 @@ const response: Response = await client.send(new ListCoupons({ --- `coupon_name` ```json -{ "type": "string" } +{ + "type": "string" +} ``` 指定されたクーポン名で結果をフィルターします。 @@ -5189,7 +5883,9 @@ const response: Response = await client.send(new ListCoupons({ --- `issued_shop_name` ```json -{ "type": "string" } +{ + "type": "string" +} ``` 指定された発行店舗で結果をフィルターします。 @@ -5197,7 +5893,9 @@ const response: Response = await client.send(new ListCoupons({ --- `available_shop_name` ```json -{ "type": "string" } +{ + "type": "string" +} ``` 指定された利用可能店舗で結果をフィルターします。 @@ -5246,6 +5944,59 @@ const response: Response = await client.send(new ListCoupons({ --- 成功したときは[PaginatedCoupons](#paginated-coupons)オブジェクトを返します + +#### クーポンの登録 +新しいクーポンを登録します +```typescript +const response: Response = await client.send(new CreateCoupon({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + name: "5yyqZjpM3EGDvxc2vHpfKAF", + starts_at: "2023-12-27T02:00:10.000000Z", + ends_at: "2020-12-24T15:11:19.000000Z", + issued_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行元の店舗ID + description: "MK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN6p0E72qWtOk3QUVbESEWPtcFyu37VMAkI2ylOPtFPfUfw5cNQlmY98v9Ekah2FpsKs0KWXhqcS1Ua3AE", + discount_amount: 7493, + discount_percentage: 1817.0, + discount_upper_limit: 6246, + display_starts_at: "2023-12-14T13:09:00.000000Z", // クーポンの掲載期間(開始日時) + display_ends_at: "2020-10-11T12:17:29.000000Z", // クーポンの掲載期間(終了日時) + is_disabled: true, // 無効化フラグ + is_hidden: false, // クーポン一覧に掲載されるかどうか + is_public: false, // アプリ配信なしで受け取れるかどうか + code: "Coy2", // クーポン受け取りコード + usage_limit: 2811, // ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount: 8036, // クーポン適用可能な最小取引額 + is_shop_specified: false, // 特定店舗限定のクーポンかどうか + available_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト + storage_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ストレージID +})); +``` +`is_shop_specified`と`available_shop_ids`は同時に指定する必要があります。 + + +--- +`is_hidden` +```json +{ + "type": "boolean" +} +``` +アプリに表示されるクーポン一覧に掲載されるかどうか。 +主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 + + +--- +`storage_id` +```json +{ + "type": "string", + "format": "uuid" +} +``` +Storage APIでアップロードしたクーポン画像のStorage IDを指定します + +--- +成功したときは[CouponDetail](#coupon-detail)オブジェクトを返します #### クーポンの取得 指定したIDを持つクーポンを取得します @@ -5256,7 +6007,7 @@ const response: Response = await client.send(new GetCoupon({ ``` --- -`coupon-id` +`coupon_id` ```json { "type": "string", @@ -5269,6 +6020,150 @@ UUIDv4フォーマットである必要があり、フォーマットが異な --- 成功したときは[CouponDetail](#coupon-detail)オブジェクトを返します + +#### クーポンの更新 +指定したクーポンを更新します +```typescript +const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // クーポンID + name: "tWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFrJK4NHPvl4VhqOdqyKHcIOPhbvogj2mEAT9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR", + description: "SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbRE9tWUhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGSkB9sMClBaFjZtZBNIprWMfHv0Adc0", + discount_amount: 9517, + discount_percentage: 7738.0, + discount_upper_limit: 2558, + starts_at: "2020-06-21T15:37:39.000000Z", + ends_at: "2021-11-26T03:58:42.000000Z", + display_starts_at: "2022-11-02T16:38:43.000000Z", // クーポンの掲載期間(開始日時) + display_ends_at: "2023-02-18T02:15:15.000000Z", // クーポンの掲載期間(終了日時) + is_disabled: false, // 無効化フラグ + is_hidden: false, // クーポン一覧に掲載されるかどうか + is_public: false, // アプリ配信なしで受け取れるかどうか + code: "JKZKHW", // クーポン受け取りコード + usage_limit: 4047, // ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount: 7303, // クーポン適用可能な最小取引額 + is_shop_specified: false, // 特定店舗限定のクーポンかどうか + available_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト + storage_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ストレージID +})); +``` +`discount_amount`と`discount_percentage`の少なくとも一方は指定する必要があります。 + + +--- +`is_hidden` +```json +{ + "type": "boolean" +} +``` +アプリに表示されるクーポン一覧に掲載されるかどうか。 +主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 + + +--- +`storage_id` +```json +{ + "type": "string", + "format": "uuid" +} +``` +Storage APIでアップロードしたクーポン画像のStorage IDを指定します + +--- +成功したときは[CouponDetail](#coupon-detail)オブジェクトを返します +### UserDevice +UserDeviceはユーザー毎のデバイスを管理します。 +あるユーザーが使っている端末を区別する必要がある場合に用いられます。 +これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。 + + +#### ユーザーのデバイス登録 +ユーザーのデバイスを新規に登録します +```typescript +const response: Response = await client.send(new CreateUserDevice({ + user_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ユーザーID + metadata: "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}" // ユーザーデバイスのメタデータ +})); +``` + +--- +`metadata` +```json +{ + "type": "string", + "format": "json" +} +``` +ユーザーのデバイス用の情報をメタデータを保持するために用います。 +例: 端末の固有情報やブラウザのUser-Agent + + +--- +成功したときは[UserDevice](#user-device)オブジェクトを返します + +#### ユーザーのデバイスを取得 +ユーザーのデバイスの情報を取得します +```typescript +const response: Response = await client.send(new GetUserDevice({ + user_device_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーデバイスID +})); +``` +成功したときは[UserDevice](#user-device)オブジェクトを返します + +#### デバイスの有効化 +指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。 + +```typescript +const response: Response = await client.send(new ActivateUserDevice({ + user_device_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーデバイスID +})); +``` +成功したときは[UserDevice](#user-device)オブジェクトを返します +### BankPay +BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + + +#### 銀行口座の登録 +銀行口座の登録を始めるAPIです。レスポンスに含まれるredirect_urlをユーザーの端末で開き銀行を登録します。 + +ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。 +アプリの場合はDeep Linkを使うことを想定しています。 + +```typescript +const response: Response = await client.send(new CreateBank({ + user_device_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + callback_url: "", // コールバックURL + kana: "ポケペイタロウ", // ユーザーの氏名 (片仮名で指定) + email: "y8Xa1naLbp@7yoC.com", // ユーザーのメールアドレス + birthdate: "19901142" // 生年月日 +})); +``` +成功したときは[BankRegisteringInfo](#bank-registering-info)オブジェクトを返します + +#### 登録した銀行の一覧 +登録した銀行を一覧します +```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" +})); +``` +成功したときは[Banks](#banks)オブジェクトを返します + +#### 銀行からのチャージ +指定のマネーのアカウントにbank_idの口座を用いてチャージを行います。 +```typescript +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: 3436, // チャージ金額 + bank_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 銀行ID + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +})); +``` +成功したときは[TransactionDetail](#transaction-detail)オブジェクトを返します ## Responses @@ -5331,6 +6226,7 @@ UUIDv4フォーマットである必要があり、フォーマットが異な * `is_onetime (boolean)`: 使用回数が一回限りかどうか * `is_disabled (boolean)`: 無効化されているかどうか * `expires_at (string)`: チャージQRコード自体の失効日時 +* `last_used_at (string)`: * `private_money (PrivateMoney)`: 対象マネー情報 * `usage_limit (number)`: 一回限りでない場合の最大読み取り回数 * `usage_count (number)`: 一回限りでない場合の現在までに読み取られた回数 @@ -5342,6 +6238,16 @@ UUIDv4フォーマットである必要があり、フォーマットが異な `private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + +## PaginatedChecks +* `rows (Check[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [Check](#check) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + ## CpmToken * `cpm_token (string)`: @@ -5394,6 +6300,11 @@ UUIDv4フォーマットである必要があり、フォーマットが異な * `name (string)`: ユーザー (または店舗) 名 * `is_merchant (boolean)`: 店舗ユーザーかどうか + +## Organization +* `code (string)`: 組織コード +* `name (string)`: 組織名 + ## TransactionDetail * `id (string)`: 取引ID @@ -5445,8 +6356,8 @@ UUIDv4フォーマットである必要があり、フォーマットが異な * `submitted_at (string)`: バルク取引が登録された日時 * `updated_at (string)`: バルク取引が更新された日時 - -## ExternalTransaction + +## ExternalTransactionDetail * `id (string)`: ポケペイ外部取引ID * `is_modified (boolean)`: 返金された取引かどうか * `sender (User)`: 送金者情報 @@ -5456,11 +6367,14 @@ UUIDv4フォーマットである必要があり、フォーマットが異な * `amount (number)`: 決済額 * `done_at (string)`: 取引日時 * `description (string)`: 取引説明文 +* `transaction (TransactionDetail)`: 関連ポケペイ取引詳細 `receiver`と`sender`は [User](#user) オブジェクトを返します。 `receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。 +`transaction`は [TransactionDetail](#transaction-detail) オブジェクトを返します。 + ## PaginatedPrivateMoneyOrganizationSummaries * `rows (PrivateMoneyOrganizationSummary[])`: @@ -5478,6 +6392,8 @@ UUIDv4フォーマットである必要があり、フォーマットが異な * `payment_amount (number)`: * `refunded_payment_amount (number)`: * `added_point_amount (number)`: +* `topup_point_amount (number)`: +* `campaign_point_amount (number)`: * `refunded_added_point_amount (number)`: * `exchange_inflow_amount (number)`: * `exchange_outflow_amount (number)`: @@ -5494,6 +6410,27 @@ UUIDv4フォーマットである必要があり、フォーマットが異な * `file_url (string)`: 集計結果のCSVのダウンロードURL * `requested_at (string)`: 集計リクエストを行った時刻 + +## UserDevice +* `id (string)`: デバイスID +* `user (User)`: デバイスを使用するユーザ +* `is_active (boolean)`: デバイスが有効か +* `metadata (string)`: デバイスのメタデータ + +`user`は [User](#user) オブジェクトを返します。 + + +## BankRegisteringInfo +* `redirect_url (string)`: +* `paytree_customer_number (string)`: + + +## Banks +* `rows (Bank[])`: +* `count (number)`: + +`rows`は [Bank](#bank) オブジェクトの配列を返します。 + ## PaginatedTransaction * `rows (Transaction[])`: @@ -5613,6 +6550,9 @@ UUIDv4フォーマットである必要があり、フォーマットが異な * `point_calculation_rule (string)`: ポイント計算ルール (banklisp表記) * `point_calculation_rule_object (string)`: ポイント計算ルール (JSON文字列による表記) * `status (string)`: キャンペーンの現在の状態 +* `budget_caps_amount (number)`: キャンペーンの予算上限額 +* `budget_current_amount (number)`: キャンペーンの付与合計額 +* `budget_current_time (string)`: キャンペーンの付与集計日時 `applicable-shops`は [User](#user) オブジェクトの配列を返します。 @@ -5696,6 +6636,16 @@ UUIDv4フォーマットである必要があり、フォーマットが異な `pagination`は [Pagination](#pagination) オブジェクトを返します。 + +## PaginatedOrganizations +* `rows (Organization[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [Organization](#organization) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + ## PrivateMoney * `id (string)`: マネーID @@ -5715,6 +6665,14 @@ UUIDv4フォーマットである必要があり、フォーマットが異な `organization`は [Organization](#organization) オブジェクトを返します。 + +## Pagination +* `current (number)`: +* `per_page (number)`: +* `max_page (number)`: +* `has_prev (boolean)`: +* `has_next (boolean)`: + ## Transaction * `id (string)`: 取引ID @@ -5736,6 +6694,22 @@ UUIDv4フォーマットである必要があり、フォーマットが異な `receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。 + +## ExternalTransaction +* `id (string)`: ポケペイ外部取引ID +* `is_modified (boolean)`: 返金された取引かどうか +* `sender (User)`: 送金者情報 +* `sender_account (Account)`: 送金ウォレット情報 +* `receiver (User)`: 受取者情報 +* `receiver_account (Account)`: 受取ウォレット情報 +* `amount (number)`: 決済額 +* `done_at (string)`: 取引日時 +* `description (string)`: 取引説明文 + +`receiver`と`sender`は [User](#user) オブジェクトを返します。 + +`receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。 + ## CashtrayAttempt * `account (AccountWithUser)`: エンドユーザーのウォレット @@ -5789,13 +6763,19 @@ UUIDv4フォーマットである必要があり、フォーマットが異な `payment`と`topup`は [OrganizationSummary](#organization-summary) オブジェクトを返します。 - -## Pagination -* `current (number)`: -* `per_page (number)`: -* `max_page (number)`: -* `has_prev (boolean)`: -* `has_next (boolean)`: + +## Bank +* `id (string)`: +* `private_money (PrivateMoney)`: +* `bank_name (string)`: +* `bank_code (string)`: +* `branch_number (string)`: +* `branch_name (string)`: +* `deposit_type (string)`: +* `masked_account_number (string)`: +* `account_name (string)`: + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 ## AccountBalance @@ -5846,11 +6826,6 @@ UUIDv4フォーマットである必要があり、フォーマットが異な `issued_shop`は [User](#user) オブジェクトを返します。 - -## Organization -* `code (string)`: 組織コード -* `name (string)`: 組織名 - ## AccountWithoutPrivateMoneyDetail * `id (string)`: @@ -5868,4 +6843,6 @@ UUIDv4フォーマットである必要があり、フォーマットが異な * `money_amount (number)`: * `money_count (number)`: * `point_amount (number)`: +* `raw_point_amount (number)`: +* `campaign_point_amount (number)`: * `point_count (number)`: diff --git a/package-lock.json b/package-lock.json index 8782286..5f02a81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@pokepay/pokepay-partner-sdk", - "version": "1.4.7", + "version": "1.4.8", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index d6536bd..fa84f7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pokepay/pokepay-partner-sdk", - "version": "1.4.7", + "version": "1.4.8", "description": "Pokepay Partner SDK for NodeJS", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/partner.yaml b/partner.yaml index 46c542d..12f622d 100644 --- a/partner.yaml +++ b/partner.yaml @@ -48,6 +48,14 @@ tags: description: | Couponは支払い時に指定し、支払い処理の前にCouponに指定の方法で値引き処理を行います。 Couponは特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 + - name: UserDevice + description: | + UserDeviceはユーザー毎のデバイスを管理します。 + あるユーザーが使っている端末を区別する必要がある場合に用いられます。 + これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。 + - name: BankPay + description: | + BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 components: schemas: @@ -55,6 +63,7 @@ components: x-pokepay-schema-type: "response" properties: pong: + x-pokepay-csharp-property-name: "Value" type: string pattern: '^ok$' Echo: @@ -287,6 +296,10 @@ components: type: string format: date-time title: チャージQRコード自体の失効日時 + last_used_at: + type: string + format: date-time + nullable: true private_money: $ref: '#/components/schemas/PrivateMoney' title: 対象マネー情報 @@ -312,11 +325,24 @@ components: token: type: string title: チャージQRコードを解析したときに出てくるURL + PaginatedChecks: + x-pokepay-schema-type: "response" + properties: + rows: + type: array + items: + $ref: '#/components/schemas/Check' + count: + type: integer + minimum: 0 + pagination: + $ref: '#/components/schemas/Pagination' CpmToken: x-pokepay-schema-type: "response" type: object properties: cpm_token: + x-pokepay-csharp-property-name: "Token" type: string minLength: 22 maxLength: 22 @@ -584,9 +610,11 @@ components: description: | 取引のポイント額です。 キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 + nullable: true campaign_point_amount: type: number title: 'キャンペーンによるポイント付与額' + nullable: true done_at: type: string format: date-time @@ -951,6 +979,47 @@ components: description: type: string title: 取引説明文 + ExternalTransactionDetail: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + title: ポケペイ外部取引ID + is_modified: + type: boolean + title: 返金された取引かどうか + sender: + $ref: '#/components/schemas/User' + title: 送金者情報 + sender_account: + $ref: '#/components/schemas/Account' + title: 送金ウォレット情報 + receiver: + $ref: '#/components/schemas/User' + title: 受取者情報 + receiver_account: + $ref: '#/components/schemas/Account' + title: 受取ウォレット情報 + amount: + type: number + title: 決済額 + done_at: + type: string + format: date-time + title: 取引日時 + description: + type: string + title: 取引説明文 + transaction: + $ref: '#/components/schemas/TransactionDetail' + nullable: true + title: 関連ポケペイ取引詳細 + description: | + ポケペイ外取引と連動して作られたポケペイ取引の取引詳細です。 + 例えば、キャンペーンによるポイント付与取引やキャンセル状況などの情報が含まれます。 + ポケペイ取引が存在しない場合はnullが設定されます。 + Product: x-pokepay-schema-type: "response" properties: @@ -987,6 +1056,14 @@ components: type: number format: decimal minimum: 0 + raw_point_amount: + type: number + format: decimal + minimum: 0 + campaign_point_amount: + type: number + format: decimal + minimum: 0 point_count: type: integer PrivateMoneyOrganizationSummary: @@ -1030,6 +1107,12 @@ components: added_point_amount: type: number format: decimal + topup_point_amount: + type: number + format: decimal + campaign_point_amount: + type: number + format: decimal refunded_added_point_amount: type: number format: decimal @@ -1081,6 +1164,67 @@ components: type: string format: date-time + UserDevice: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + title: 'デバイスID' + user: + $ref: '#/components/schemas/User' + title: 'デバイスを使用するユーザ' + is_active: + type: boolean + title: 'デバイスが有効か' + metadata: + type: string + format: json + title: 'デバイスのメタデータ' + + BankRegisteringInfo: + x-pokepay-schema-type: "response" + properties: + redirect_url: + type: string + paytree_customer_number: + type: string + nullable: true + + Bank: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + private_money: + $ref: '#/components/schemas/PrivateMoney' + bank_name: + type: string + bank_code: + type: string + branch_number: + type: string + branch_name: + type: string + deposit_type: + type: string + masked_account_number: + type: string + account_name: + type: string + + Banks: + x-pokepay-schema-type: "response" + properties: + rows: + type: array + items: + $ref: '#/components/schemas/Bank' + count: + type: integer + minimum: 0 + PaginatedTransaction: x-pokepay-schema-type: "response" properties: @@ -1315,6 +1459,20 @@ components: type: string enum: [enabled, disabled] title: 'キャンペーンの現在の状態' + budget_caps_amount: + title: 'キャンペーンの予算上限額' + type: integer + nullable: true + budget_current_amount: + title: 'キャンペーンの付与合計額' + type: integer + nullable: true + budget_current_time: + title: 'キャンペーンの付与集計日時' + type: string + format: date-time + nullable: true + PaginatedCampaigns: x-pokepay-schema-type: "response" properties: @@ -1549,6 +1707,18 @@ components: minimum: 0 pagination: $ref: '#/components/schemas/Pagination' + PaginatedOrganizations: + x-pokepay-schema-type: "response" + properties: + rows: + type: array + items: + $ref: '#/components/schemas/Organization' + count: + type: integer + minimum: 0 + pagination: + $ref: '#/components/schemas/Pagination' BadRequest: x-pokepay-schema-type: "response" @@ -2732,11 +2902,17 @@ paths: minimum: 0 format: decimal title: '付与マネー額' + description: | + チャージQRコードによって付与されるマネー額です。 + `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 point_amount: type: number minimum: 0 format: decimal title: '付与ポイント額' + description: | + チャージQRコードによって付与されるポイント額です。 + `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 account_id: type: string format: uuid @@ -2748,35 +2924,52 @@ paths: example: 'test check' is_onetime: type: boolean - title: 'ワンタイムかどうか。真の場合1度読み込まれた時点でそのチャージQRは失効する(デフォルト値は真)' + title: 'ワンタイムかどうかのフラグ' description: | チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 - `false`の場合、そのチャージQRコードは1ユーザについては1回きりですが、複数ユーザによって読み取り可能なQRコードになります。 + `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 + ただし、その場合も1ユーザにつき1回のみしか読み取れません。 usage_limit: type: integer nullable: true - title: 'ワンタイムでない場合、複数ユーザから読み取られ得る。その場合の最大読み取り回数' + title: 'ワンタイムでない場合の最大読み取り回数' description: | - 複数ユーザによって読み取り可能なチャージQRコードの読み取り回数に制限をつけるために指定します。 - 省略すると無制限に読み取り可能なチャージQRコードになります。 - チャージQRコードは管理画面からいつでも無効化(有効化)することができます。 + 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 + NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 + デフォルト値はNULLです。 + ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 expires_at: type: string format: date-time - title: 'チャージQR自体の失効日時' + title: 'チャージQRコード自体の失効日時' + description: | + チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 + + チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 point_expires_at: type: string format: date-time - title: 'チャージQRによって付与されるポイントの失効日時' + title: 'チャージQRコードによって付与されるポイント残高の有効期限' + description: | + チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 + + チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 point_expires_in_days: type: integer minimum: 1 - title: 'チャージQRによって付与されるポイントの有効期限(相対指定、単位は日)' + title: 'チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)' + description: | + チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 + 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 + `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 example: 60 bear_point_account: type: string format: uuid - title: 'ポイント額を負担する店舗アカウントのID' + title: 'ポイント額を負担する店舗のウォレットID' + description: | + ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 + デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 responses: '200': description: OK @@ -2787,47 +2980,14 @@ paths: '400': $ref: '#/components/responses/InvalidParameters' '403': - $ref: '#/components/responses/Forbidden' - '422': - $ref: '#/components/responses/UnprocessableEntity' - /cpm/{cpm_token}: - get: - tags: - - Transaction - summary: 'CPMトークンの状態取得' - description: CPMトークンの現在の状態を取得します。CPMトークンの有効期限やCPM取引の状態を返します。 - x-pokepay-operator-name: "GetCpmToken" - x-pokepay-allow-server-side: true - parameters: - - in: path - name: cpm_token - required: true - schema: - type: string - minLength: 22 - maxLength: 22 - title: CPMトークン - description: CPM取引時にエンドユーザーが店舗に提示するバーコードを解析して得られる22桁の文字列です。 - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/CpmToken' - '400': - $ref: '#/components/responses/BadRequest' - '403': - $ref: '#/components/responses/Forbidden' + $ref: '#/components/responses/UnpermittedAdminUser' '422': $ref: '#/components/responses/UnprocessableEntity' - /transactions: get: tags: - - Transaction - summary: '【廃止】取引履歴を取得する' - description: 取引一覧を返します。 - x-pokepay-operator-name: "ListTransactions" + - Check + summary: 'チャージQRコード一覧の取得' + x-pokepay-operator-name: "ListChecks" x-pokepay-allow-server-side: true requestBody: required: true @@ -2835,88 +2995,375 @@ paths: application/json: schema: properties: - from: - type: string - format: date-time - title: '開始日時' - description: |- - 抽出期間の開始日時です。 - - フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 - to: - type: string - format: date-time - title: '終了日時' - description: |- - 抽出期間の終了日時です。 - - フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 page: type: integer minimum: 1 title: 'ページ番号' - description: 取得したいページ番号です。 - example: 1 per_page: type: integer minimum: 1 - title: '1ページ分の取引数' - description: 1ページ分の取引数です。 + title: '1ページの表示数' + description: 1ページ当たり表示数です。デフォルト値は50です。 example: 50 - shop_id: + private_money_id: type: string format: uuid - title: '店舗ID' - description: |- - 店舗IDです。 - - フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 - customer_id: + title: 'マネーID' + description: | + チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 + organization_code: type: string - format: uuid - title: 'エンドユーザーID' + maxLength: 32 + title: '組織コード' description: |- - エンドユーザーIDです。 - - フィルターとして使われ、指定されたエンドユーザーでの取引のみ一覧に表示されます。 - customer_name: + チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 + デフォルトでは未指定です。 + expires_from: type: string - maxLength: 256 - title: 'エンドユーザー名' - description: |- - エンドユーザー名です。 - - フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 - example: 太郎 - terminal_id: + format: date-time + title: '有効期限の期間によるフィルター(開始時点)' + description: | + 有効期限の期間によるフィルターの開始時点のタイムスタンプです。 + デフォルトでは未指定です。 + expires_to: type: string - format: uuid - title: '端末ID' - description: |- - 端末IDです。 - - フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 - transaction_id: + format: date-time + title: '有効期限の期間によるフィルター(終了時点)' + description: | + 有効期限の期間によるフィルターの終了時点のタイムスタンプです。 + デフォルトでは未指定です。 + created_from: type: string - title: '取引ID' - description: |- - 取引IDです。 - - フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 - organization_code: + format: date-time + title: '作成日時の期間によるフィルター(開始時点)' + description: | + 作成日時の期間によるフィルターの開始時点のタイムスタンプです。 + デフォルトでは未指定です。 + created_to: type: string - pattern: '^[a-zA-Z0-9-]*$' - maxLength: 32 - title: '組織コード' - description: |- - 組織コードです。 - - フィルターとして使われ、指定された組織での取引のみ一覧に表示されます。 - example: 'pocketchange' - private_money_id: + format: date-time + title: '作成日時の期間によるフィルター(終了時点)' + description: | + 作成日時の期間によるフィルターの終了時点のタイムスタンプです。 + デフォルトでは未指定です。 + issuer_shop_id: type: string format: uuid - title: 'マネーID' + title: '発行店舗ID' + description: | + チャージQRコードを発行した店舗IDによってフィルターします。 + デフォルトでは未指定です。 + description: + type: string + title: 'チャージQRコードの説明文' + description: | + チャージQRコードの説明文(description)によってフィルターします。 + 部分一致(前方一致)したものを表示します。 + デフォルトでは未指定です。 + is_onetime: + type: boolean + title: 'ワンタイムのチャージQRコードかどうか' + description: | + チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 + `true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 + 未指定の場合はフィルターしません。 + デフォルトでは未指定です。 + is_disabled: + type: boolean + title: '無効化されたチャージQRコードかどうか' + description: | + チャージQRコードが無効化されているかどうかでフィルターします。 + `true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 + 未指定の場合はフィルターしません。 + デフォルトでは未指定です。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedChecks' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /checks/{check_id}: + get: + tags: + - Check + summary: 'チャージQRコードの表示' + x-pokepay-operator-name: "GetCheck" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: check_id + required: true + schema: + type: string + format: uuid + title: 'チャージQRコードのID' + description: |- + 表示対象のチャージQRコードのIDです。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Check' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + patch: + tags: + - Check + summary: 'チャージQRコードの更新' + x-pokepay-operator-name: "UpdateCheck" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: check_id + required: true + schema: + type: string + format: uuid + title: 'チャージQRコードのID' + description: |- + 更新対象のチャージQRコードのIDです。 + requestBody: + required: true + content: + application/json: + schema: + properties: + money_amount: + type: number + minimum: 0 + format: decimal + title: '付与マネー額' + description: | + チャージQRコードによって付与されるマネー額です。 + `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 + point_amount: + type: number + minimum: 0 + format: decimal + title: '付与ポイント額' + description: | + チャージQRコードによって付与されるポイント額です。 + `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 + description: + type: string + maxLength: 200 + title: 'チャージQRコードの説明文' + description: | + チャージQRコードの説明文です。 + チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 + example: 'test check' + is_onetime: + type: boolean + title: 'ワンタイムかどうかのフラグ' + description: | + チャージQRコードが一度の読み取りで失効するときに`true`にします。 + `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 + ただし、その場合も1ユーザにつき1回のみしか読み取れません。 + usage_limit: + type: integer + nullable: true + title: 'ワンタイムでない場合の最大読み取り回数' + description: | + 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 + NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 + ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 + expires_at: + type: string + format: date-time + title: 'チャージQRコード自体の失効日時' + description: | + チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。 + + チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 + point_expires_at: + type: string + format: date-time + nullable: true + title: 'チャージQRコードによって付与されるポイント残高の有効期限' + description: | + チャージQRコードによって付与されるポイント残高の有効起源を指定します。 + + チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 + point_expires_in_days: + type: integer + minimum: 1 + nullable: true + title: 'チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)' + description: | + チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 + 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 + `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 + `point_expires_at`と`point_expires_in_days`が両方NULLに設定されている場合は、マネーに設定されている残高の有効期限と同じになります。 + example: 60 + bear_point_account: + type: string + format: uuid + title: 'ポイント額を負担する店舗のウォレットID' + description: | + ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 + is_disabled: + type: boolean + title: '無効化されているかどうかのフラグ' + description: | + チャージQRコードを無効化するときに`true`にします。 + `false`の場合は無効化されているチャージQRコードを再有効化します。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Check' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '404': + $ref: '#/components/responses/NotFound' + /cpm/{cpm_token}: + get: + tags: + - Transaction + summary: 'CPMトークンの状態取得' + description: CPMトークンの現在の状態を取得します。CPMトークンの有効期限やCPM取引の状態を返します。 + x-pokepay-operator-name: "GetCpmToken" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: cpm_token + required: true + schema: + type: string + minLength: 22 + maxLength: 22 + title: CPMトークン + description: CPM取引時にエンドユーザーが店舗に提示するバーコードを解析して得られる22桁の文字列です。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CpmToken' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /transactions: + get: + tags: + - Transaction + summary: '【廃止】取引履歴を取得する' + description: 取引一覧を返します。 + x-pokepay-operator-name: "ListTransactions" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + properties: + from: + type: string + format: date-time + title: '開始日時' + description: |- + 抽出期間の開始日時です。 + + フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + to: + type: string + format: date-time + title: '終了日時' + description: |- + 抽出期間の終了日時です。 + + フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + page: + type: integer + minimum: 1 + title: 'ページ番号' + description: 取得したいページ番号です。 + example: 1 + per_page: + type: integer + minimum: 1 + title: '1ページ分の取引数' + description: 1ページ分の取引数です。 + example: 50 + shop_id: + type: string + format: uuid + title: '店舗ID' + description: |- + 店舗IDです。 + + フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + customer_id: + type: string + format: uuid + title: 'エンドユーザーID' + description: |- + エンドユーザーIDです。 + + フィルターとして使われ、指定されたエンドユーザーでの取引のみ一覧に表示されます。 + customer_name: + type: string + maxLength: 256 + title: 'エンドユーザー名' + description: |- + エンドユーザー名です。 + + フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + example: 太郎 + terminal_id: + type: string + format: uuid + title: '端末ID' + description: |- + 端末IDです。 + + フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 + transaction_id: + type: string + title: '取引ID' + description: |- + 取引IDです。 + + フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + organization_code: + type: string + pattern: '^[a-zA-Z0-9-]*$' + maxLength: 32 + title: '組織コード' + description: |- + 組織コードです。 + + フィルターとして使われ、指定された組織での取引のみ一覧に表示されます。 + example: 'pocketchange' + private_money_id: + type: string + format: uuid + title: 'マネーID' description: |- マネーIDです。 @@ -3801,6 +4248,7 @@ paths: tags: - Transaction x-pokepay-allow-server-side: true + x-pokepay-operator-name: "CreateExchangeTransaction" requestBody: required: true content: @@ -3818,7 +4266,7 @@ paths: type: string format: uuid amount: - type: number + type: integer minimum: 1 description: type: string @@ -4174,7 +4622,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExternalTransaction' + $ref: '#/components/schemas/ExternalTransactionDetail' '400': $ref: '#/components/responses/BadRequest' '403': @@ -4220,7 +4668,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExternalTransaction' + $ref: '#/components/schemas/ExternalTransactionDetail' '403': $ref: '#/components/responses/Forbidden' '422': @@ -4524,6 +4972,66 @@ paths: $ref: '#/components/responses/UnprocessableEntity' /organizations: + get: + tags: + - Organization + summary: '加盟店組織の一覧を取得する' + x-pokepay-allow-server-side: true + x-pokepay-operator-name: "ListOrganizations" + requestBody: + required: true + content: + application/json: + schema: + required: ["private_money_id"] + properties: + private_money_id: + type: string + format: uuid + title: 'マネーID' + description: |- + マネーIDです。 + このマネーに加盟している加盟組織がフィルターされます。 + page: + type: integer + minimum: 1 + title: 'ページ番号' + description: 取得したいページ番号です。 + example: 1 + per_page: + type: integer + minimum: 1 + title: '1ページ分の取引数' + description: 1ページ分の取引数です。 + example: 50 + name: + type: string + title: '組織名' + code: + type: string + title: '組織コード' + #これらのパラメータは管理画面のユースケースに特化してそうなので一旦コメントアウトしておく + #with_issuer_org: + # type: boolean + #with_details: + # type: boolean + #with_disabled_member_orgs: + # type: boolean + #with_all_members: + # type: boolean + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedOrganizations' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' post: tags: - Organization @@ -6246,6 +6754,17 @@ paths: "value": "male" } + budget_caps_amount: + title: 'キャンペーン予算上限' + type: integer + minimum: 1 + maximum: 10000000000 + description: |- + キャンペーンの予算上限を指定します。デフォルトは未指定です。 + + このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 + 一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 + responses: '200': description: OK @@ -7010,6 +7529,20 @@ paths: "value": "male" } + budget_caps_amount: + title: 'キャンペーン予算上限' + type: integer + minimum: 1 + maximum: 10000000000 + nullable: true + description: |- + キャンペーンの予算上限を指定します。 + + キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 + 一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 + キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。 + キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。 + responses: '200': description: OK @@ -7055,6 +7588,7 @@ paths: application/json: schema: required: ["from", "to"] + x-pokepay-conditional-parameters: {<: [from, to]} properties: from: title: '集計期間の開始時刻' @@ -7063,6 +7597,7 @@ paths: description: |- 集計する期間の開始時刻をISO8601形式で指定します。 時刻は現在時刻、及び `to` で指定する時刻以前である必要があります。 + example: '2022-05-20T17:56:49.000000+09:00' to: title: '集計期間の終了時刻' type: string @@ -7070,6 +7605,7 @@ paths: description: |- 集計する期間の終了時刻をISO8601形式で指定します。 時刻は現在時刻、及び `from` で指定する時刻の間である必要があります。 + example: '2023-12-10T01:16:11.000000+09:00' responses: '200': description: OK @@ -7215,6 +7751,308 @@ paths: '409': $ref: '#/components/responses/Conflict' + delete: + x-pokepay-operator-name: "DeleteWebhook" + x-pokepay-allow-server-side: true + tags: + - Webhook + summary: Webhookの削除 + description: 指定したWebhookを削除します + parameters: + - in: path + name: webhook_id + required: true + schema: + type: string + format: uuid + title: 'Webhook ID' + description: |- + 削除するWebhookのIDです。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationWorkerTaskWebhook' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + + /user-devices: + post: + x-pokepay-operator-name: "CreateUserDevice" + x-pokepay-allow-server-side: true + tags: + - UserDevice + summary: ユーザーのデバイス登録 + description: ユーザーのデバイスを新規に登録します + requestBody: + required: true + content: + application/json: + schema: + required: [user_id] + properties: + user_id: + type: string + format: uuid + title: 'ユーザーID' + metadata: + type: string + format: json + title: ユーザーデバイスのメタデータ + description: | + ユーザーのデバイス用の情報をメタデータを保持するために用います。 + 例: 端末の固有情報やブラウザのUser-Agent + example: '{"user_agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"}' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/UserDevice' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + + /user-devices/{user_device_id}: + get: + x-pokepay-operator-name: "GetUserDevice" + x-pokepay-allow-server-side: true + tags: + - UserDevice + summary: ユーザーのデバイスを取得 + description: ユーザーのデバイスの情報を取得します + parameters: + - in: path + name: user_device_id + required: true + schema: + type: string + format: uuid + title: ユーザーデバイスID + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/UserDevice' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + + /user-devices/{user_device_id}/activate: + post: + x-pokepay-operator-name: "ActivateUserDevice" + x-pokepay-allow-server-side: true + tags: + - UserDevice + summary: デバイスの有効化 + description: | + 指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。 + parameters: + - in: path + name: user_device_id + required: true + schema: + type: string + format: uuid + title: "ユーザーデバイスID" + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/UserDevice' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/UserStatsOperationServiceUnavailable' + + /user-devices/{user_device_id}/banks: + post: + x-pokepay-operator-name: "CreateBank" + x-pokepay-allow-server-side: true + tags: + - BankPay + summary: 銀行口座の登録 + description: | + 銀行口座の登録を始めるAPIです。レスポンスに含まれるredirect_urlをユーザーの端末で開き銀行を登録します。 + + ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。 + アプリの場合はDeep Linkを使うことを想定しています。 + parameters: + - in: path + name: user_device_id + required: true + schema: + type: string + format: uuid + title: "デバイスID" + requestBody: + required: true + content: + application/json: + schema: + required: ["private_money_id", "callback_url", "kana"] + properties: + private_money_id: + type: string + format: uuid + title: 'マネーID' + callback_url: + type: string + maxLength: 256 + example: '' + title: 'コールバックURL' + kana: + type: string + maxLength: 30 + example: 'ポケペイタロウ' + title: 'ユーザーの氏名 (片仮名で指定)' + email: + type: string + format: email + maxLength: 300 + title: 'ユーザーのメールアドレス' + birthdate: + type: string + maxLength: 8 + title: '生年月日' + example: '19901142' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/BankRegisteringInfo' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/UserStatsOperationServiceUnavailable' + get: + x-pokepay-operator-name: "ListBanks" + x-pokepay-allow-server-side: true + tags: + - BankPay + summary: 登録した銀行の一覧 + description: 登録した銀行を一覧します + parameters: + - in: path + name: user_device_id + required: true + schema: + type: string + format: uuid + title: "デバイスID" + requestBody: + required: true + content: + application/json: + schema: + properties: + private_money_id: + type: string + format: uuid + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Banks' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + + /user-devices/{user_device_id}/banks/topup: + post: + x-pokepay-operator-name: "CreateBankTopupTransaction" + x-pokepay-allow-server-side: true + tags: + - BankPay + summary: 銀行からのチャージ + description: 指定のマネーのアカウントにbank_idの口座を用いてチャージを行います。 + parameters: + - in: path + name: user_device_id + required: true + schema: + type: string + format: uuid + title: "デバイスID" + requestBody: + required: true + content: + application/json: + schema: + required: ["private_money_id", "amount", "bank_id", "request_id"] + properties: + private_money_id: + type: string + format: uuid + title: 'マネーID' + amount: + type: integer + minimum: 1 + title: 'チャージ金額' + bank_id: + type: string + format: uuid + title: '銀行ID' + request_id: + type: string + format: uuid + title: 'リクエストID' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionDetail' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /coupons: get: x-pokepay-operator-name: "ListCoupons" @@ -7297,6 +8135,111 @@ paths: $ref: '#/components/responses/UnpermittedAdminUser' '422': $ref: '#/components/responses/UnprocessableEntity' + post: + x-pokepay-operator-name: "CreateCoupon" + x-pokepay-allow-server-side: true + tags: + - Coupon + summary: クーポンの登録 + description: 新しいクーポンを登録します + requestBody: + required: true + content: + application/json: + schema: + required: ["private_money_id", "name", "starts_at", "ends_at", "issued_shop_id"] + x-pokepay-conditional-parameters: + xor: [discount_amount, discount_percentage] + xnor: [is_shop_specified, available_shop_ids] + properties: + private_money_id: + type: string + format: uuid + name: + type: string + maxLength: 128 + description: + type: string + maxLength: 256 + discount_amount: + type: integer + minimum: 0 + discount_percentage: + type: number + minimum: 0 + discount_upper_limit: + type: integer + minimum: 0 + starts_at: + type: string + format: date-time + ends_at: + type: string + format: date-time + display_starts_at: + type: string + format: date-time + title: 'クーポンの掲載期間(開始日時)' + display_ends_at: + type: string + format: date-time + title: 'クーポンの掲載期間(終了日時)' + is_disabled: + type: boolean + title: '無効化フラグ' + is_hidden: + type: boolean + title: 'クーポン一覧に掲載されるかどうか' + description: | + アプリに表示されるクーポン一覧に掲載されるかどうか。 + 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 + is_public: + type: boolean + title: 'アプリ配信なしで受け取れるかどうか' + code: + type: string + title: 'クーポン受け取りコード' + usage_limit: + type: integer + title: 'ユーザごとの利用可能回数(NULLの場合は無制限)' + default: 1 + min_amount: + type: integer + title: 'クーポン適用可能な最小取引額' + issued_shop_id: + type: string + format: uuid + title: '発行元の店舗ID' + is_shop_specified: + type: boolean + title: '特定店舗限定のクーポンかどうか' + available_shop_ids: + type: array + items: + type: string + format: uuid + title: '利用可能店舗リスト' + storage_id: + type: string + format: uuid + title: "ストレージID" + description: "Storage APIでアップロードしたクーポン画像のStorage IDを指定します" + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CouponDetail' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /coupons/{coupon_id}: get: x-pokepay-operator-name: "GetCoupon" @@ -7330,3 +8273,112 @@ paths: $ref: '#/components/responses/UnpermittedAdminUser' '422': $ref: '#/components/responses/UnprocessableEntity' + patch: + x-pokepay-operator-name: "UpdateCoupon" + x-pokepay-allow-server-side: true + tags: + - Coupon + summary: クーポンの更新 + description: 指定したクーポンを更新します + parameters: + - in: path + name: coupon_id + required: true + schema: + type: string + format: uuid + title: 'クーポンID' + requestBody: + required: true + content: + application/json: + schema: + x-pokepay-conditional-parameters: {or: [discount_amount, discount_percentage]} + properties: + name: + type: string + maxLength: 128 + description: + type: string + maxLength: 256 + discount_amount: + type: integer + nullable: true + minimum: 0 + discount_percentage: + type: number + nullable: true + minimum: 0 + discount_upper_limit: + type: integer + nullable: true + minimum: 0 + starts_at: + type: string + format: date-time + ends_at: + type: string + format: date-time + display_starts_at: + type: string + format: date-time + nullable: true + title: 'クーポンの掲載期間(開始日時)' + display_ends_at: + type: string + format: date-time + nullable: true + title: 'クーポンの掲載期間(終了日時)' + is_disabled: + type: boolean + title: '無効化フラグ' + is_hidden: + type: boolean + title: 'クーポン一覧に掲載されるかどうか' + description: | + アプリに表示されるクーポン一覧に掲載されるかどうか。 + 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 + is_public: + type: boolean + title: 'アプリ配信なしで受け取れるかどうか' + code: + type: string + nullable: true + title: 'クーポン受け取りコード' + usage_limit: + type: integer + nullable: true + title: 'ユーザごとの利用可能回数(NULLの場合は無制限)' + min_amount: + type: integer + nullable: true + title: 'クーポン適用可能な最小取引額' + is_shop_specified: + type: boolean + title: '特定店舗限定のクーポンかどうか' + available_shop_ids: + type: array + items: + type: string + format: uuid + title: '利用可能店舗リスト' + storage_id: + type: string + format: uuid + title: "ストレージID" + description: "Storage APIでアップロードしたクーポン画像のStorage IDを指定します" + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CouponDetail' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' diff --git a/src/index.test.ts b/src/index.test.ts index ca5a1c3..9ab0f30 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, PaginatedCoupons, CouponDetail, Coupon, PaginatedOrganizationWorkerTaskWebhook, OrganizationWorkerTaskWebhook, AccountTransferSummary, AccountTransferSummaryElement, PaginatedCampaigns, Campaign, PaginatedPrivateMoneys, PaginatedBills, PaginatedShops, PaginatedAccountBalance, PaginatedAccountDetails, PaginatedAccountWithUsers, PaginatedAccounts, PaginatedTransfersV2, PaginatedTransfers, PaginatedTransactionV2, PaginatedTransaction, UserStatsOperation, PrivateMoneySummary, PaginatedPrivateMoneyOrganizationSummaries, PrivateMoneyOrganizationSummary, OrganizationSummary, Product, ExternalTransaction, Transfer, AccountWithoutPrivateMoneyDetail, PaginatedBulkTransactionJob, BulkTransactionJob, BulkTransaction, ShopWithAccounts, ShopWithMetadata, TransactionDetail, Transaction, Organization, PrivateMoney, User, CashtrayAttempt, CashtrayWithResult, Cashtray, CpmToken, Check, Bill, AccountBalance, AccountDeleted, ShopAccount, AccountDetail, AccountWithUser, Account, AdminUserWithShopsAndPrivateMoneys, Pagination, Echo, Pong, GetCoupon, ListCoupons, UpdateWebhook, ListWebhooks, CreateWebhook, RequestUserStats, UpdateCampaign, GetCampaign, ListCampaigns, CreateCampaign, UpdateCashtray, CancelCashtray, GetCashtray, CreateCashtray, ListBulkTransactionJobs, GetBulkTransaction, ListCustomerTransactions, GetPrivateMoneySummary, GetPrivateMoneyOrganizationSummaries, GetPrivateMoneys, UpdateShop, GetShop, CreateShopV2, CreateShop, ListShops, CreateOrganization, ListTransfersV2, ListTransfers, RefundExternalTransaction, CreateExternalTransaction, GetTransactionByRequestId, RefundTransaction, GetTransaction, BulkCreateTransaction, CreateExchangeTransaction, CreateTransferTransaction, CreateCpmTransaction, CreatePaymentTransaction, CreateTopupTransactionWithCheck, CreateTopupTransaction, ListTransactionsV2, CreateTransaction, ListTransactions, GetCpmToken, 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, 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"; const client = new Client("~/.pokepay/test-config.ini"); @@ -29,7 +29,7 @@ test('Check SendEcho | 0', async () => { let status = 400; try { const response: Response = await client.send(new SendEcho({ - message: "acDgdY" + message: "DgdY" })); status = response.code; } catch (e) { @@ -337,8 +337,8 @@ test('Check ListAccountBalances | 2', async () => { try { const response: Response = await client.send(new ListAccountBalances({ account_id: "124a3fe8-1e88-4803-9195-15bbd1722f1a", - expires_at_to: "2021-05-19T16:07:19.000000+09:00", - direction: "desc" + expires_at_to: "2020-09-07T21:25:03.000000Z", + direction: "asc" })); status = response.code; } catch (e) { @@ -355,8 +355,8 @@ test('Check ListAccountBalances | 3', async () => { try { const response: Response = await client.send(new ListAccountBalances({ account_id: "124a3fe8-1e88-4803-9195-15bbd1722f1a", - expires_at_from: "2018-05-08T14:00:21.000000+09:00", - expires_at_to: "2019-08-29T14:43:17.000000+09:00", + expires_at_from: "2020-07-02T09:51:09.000000Z", + expires_at_to: "2022-05-06T04:41:55.000000Z", direction: "desc" })); status = response.code; @@ -374,9 +374,9 @@ test('Check ListAccountBalances | 4', async () => { try { const response: Response = await client.send(new ListAccountBalances({ account_id: "124a3fe8-1e88-4803-9195-15bbd1722f1a", - per_page: 9044, - expires_at_from: "2015-11-13T07:54:24.000000+09:00", - expires_at_to: "2023-12-17T09:40:00.000000+09:00", + per_page: 3844, + expires_at_from: "2020-06-15T18:58:37.000000Z", + expires_at_to: "2022-03-04T19:01:47.000000Z", direction: "desc" })); status = response.code; @@ -394,11 +394,11 @@ test('Check ListAccountBalances | 5', async () => { try { const response: Response = await client.send(new ListAccountBalances({ account_id: "124a3fe8-1e88-4803-9195-15bbd1722f1a", - page: 5673, - per_page: 5586, - expires_at_from: "2022-06-09T18:09:43.000000+09:00", - expires_at_to: "2017-11-03T08:44:37.000000+09:00", - direction: "desc" + 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" })); 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: "1395c3b0-3227-4847-b485-d25fcda949fd" + account_id: "cce276f9-f936-4628-91b6-bb60d347c3df" })); status = response.code; } catch (e) { @@ -430,7 +430,7 @@ test('Check ListAccountExpiredBalances | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountExpiredBalances({ - account_id: "1395c3b0-3227-4847-b485-d25fcda949fd", + account_id: "cce276f9-f936-4628-91b6-bb60d347c3df", direction: "asc" })); status = response.code; @@ -447,9 +447,9 @@ test('Check ListAccountExpiredBalances | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountExpiredBalances({ - account_id: "1395c3b0-3227-4847-b485-d25fcda949fd", - expires_at_to: "2016-12-05T14:11:55.000000+09:00", - direction: "asc" + account_id: "cce276f9-f936-4628-91b6-bb60d347c3df", + expires_at_to: "2022-11-08T09:57:39.000000Z", + direction: "desc" })); status = response.code; } catch (e) { @@ -465,9 +465,9 @@ test('Check ListAccountExpiredBalances | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountExpiredBalances({ - account_id: "1395c3b0-3227-4847-b485-d25fcda949fd", - expires_at_from: "2024-05-08T18:48:53.000000+09:00", - expires_at_to: "2025-01-11T13:02:08.000000+09:00", + 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", direction: "desc" })); status = response.code; @@ -484,10 +484,10 @@ test('Check ListAccountExpiredBalances | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountExpiredBalances({ - account_id: "1395c3b0-3227-4847-b485-d25fcda949fd", - per_page: 6193, - expires_at_from: "2019-01-16T17:00:54.000000+09:00", - expires_at_to: "2022-10-20T15:33:42.000000+09:00", + 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" })); status = response.code; @@ -504,12 +504,12 @@ test('Check ListAccountExpiredBalances | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListAccountExpiredBalances({ - account_id: "1395c3b0-3227-4847-b485-d25fcda949fd", - page: 3229, - per_page: 3545, - expires_at_from: "2019-04-01T22:27:42.000000+09:00", - expires_at_to: "2018-06-03T18:12:31.000000+09:00", - direction: "desc" + 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", + direction: "asc" })); status = response.code; } catch (e) { @@ -525,7 +525,7 @@ test('Check UpdateCustomerAccount | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCustomerAccount({ - account_id: "f39e0dc7-ebbf-4161-a34e-e312bce444b9" + account_id: "86e1558d-113e-4ea6-8a48-226ea0c2dcab" })); 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: "f39e0dc7-ebbf-4161-a34e-e312bce444b9", + account_id: "86e1558d-113e-4ea6-8a48-226ea0c2dcab", 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: "f39e0dc7-ebbf-4161-a34e-e312bce444b9", - external_id: "eZjSIQORsTn19Lt83IRfp6apsZzw", + account_id: "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + external_id: "hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qq", 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: "f39e0dc7-ebbf-4161-a34e-e312bce444b9", - account_name: "Ugb2qqrLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6", - external_id: "i2f3OojTDEk0fitYgK", + account_id: "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + account_name: "rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfd", + external_id: "KJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCb", 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: "f39e0dc7-ebbf-4161-a34e-e312bce444b9", - status: "suspended", - account_name: "zfXu0N7ZPQ6Ey6Tu3B", - external_id: "U56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyND", + account_id: "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + status: "pre-closed", + account_name: "nT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fc", + external_id: "KmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUj", 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: "5a434e63-82f5-4d3b-9357-6d0bf3dd402a" + account_id: "d79ada44-2554-41d3-a753-5725590e9c63" })); 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: "5a434e63-82f5-4d3b-9357-6d0bf3dd402a", - transfer_types: ["exchange-inflow", "exchange-outflow", "payment"] + 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"] })); 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: "5a434e63-82f5-4d3b-9357-6d0bf3dd402a", - to: "2021-02-01T18:13:24.000000+09:00", - transfer_types: ["refund-topup", "refund-coupon", "topup", "use-coupon", "refund-exchange-inflow", "exchange-outflow", "payment", "refund-exchange-outflow", "exchange-inflow", "refund-payment", "campaign-topup"] + 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"] })); 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: "5a434e63-82f5-4d3b-9357-6d0bf3dd402a", - from: "2017-09-07T02:34:38.000000+09:00", - to: "2024-10-28T04:46:27.000000+09:00", - transfer_types: ["refund-payment", "campaign-topup", "refund-topup", "use-coupon", "refund-campaign", "refund-coupon", "exchange-inflow", "refund-exchange-inflow"] + 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"] })); 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: "431bf48b-10c1-47e8-8470-dceb3e272e6c" + private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9" })); 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: "431bf48b-10c1-47e8-8470-dceb3e272e6c", - email: "txfpGBgKzL@BWMC.com" + private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", + email: "Icm0Sp2Rlu@FOAx.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: "431bf48b-10c1-47e8-8470-dceb3e272e6c", - tel: "092-6804-592", - email: "PCbHnT3R8f@Cd81.com" + private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", + tel: "047-0551-2657", + email: "TcJlnsa7zu@y1tu.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: "431bf48b-10c1-47e8-8470-dceb3e272e6c", - external_id: "5VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd", - tel: "0555-779-0623", - email: "cKmGRUw7sM@hCFW.com" + private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", + external_id: "dw", + tel: "071-69745487", + email: "fKkMLwrBpO@RQ9L.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: "431bf48b-10c1-47e8-8470-dceb3e272e6c", - status: "active", - external_id: "DbHkZSUPXBsmObvn", - tel: "06-443-5397", - email: "3PX7IImkvl@5vCA.com" + private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", + status: "suspended", + external_id: "lnKRmCd4n", + tel: "045-981479", + email: "qpn3W7S36l@34SS.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: "431bf48b-10c1-47e8-8470-dceb3e272e6c", - is_suspended: true, + private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", + is_suspended: false, status: "active", - external_id: "7QD95u0YIcm0Sp2RluFOAxJTKKlkJp5ENq52OLTcJ", - tel: "0927751914", - email: "usdwen7Z1w@rrgd.com" + external_id: "W72gqSjd8QPzbjt0rt7UmerReZGbvGgvA", + tel: "09215911045", + email: "P1AnQALadF@sAzg.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: "431bf48b-10c1-47e8-8470-dceb3e272e6c", - created_at_to: "2018-03-19T12:22:35.000000+09:00", + private_money_id: "55543535-882b-44f5-9f30-80a440a9c1d9", + created_at_to: "2022-07-27T22:59:50.000000Z", is_suspended: true, - status: "active", - external_id: "fKkMLwrBpORQ9LHlnKRmCd4n", - tel: "045-981479", - email: "qpn3W7S36l@34SS.com" + status: "pre-closed", + external_id: "tuXgZDedIJqTHGgnOhGiwZBj5AvHdO2Atfc", + tel: "0129-664-818", + email: "3sP8V6IT9V@FC5b.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: "431bf48b-10c1-47e8-8470-dceb3e272e6c", - created_at_from: "2018-08-12T08:35:01.000000+09:00", - created_at_to: "2016-07-17T17:07:52.000000+09:00", - is_suspended: false, - status: "active", - external_id: "gqSjd8QPzbjt0", - tel: "0475282-467", - email: "bvGgvAZbyL@J1Le.com" + 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", + is_suspended: true, + status: "pre-closed", + external_id: "XfPASw8jPQ0h", + tel: "062-07305693", + email: "xkUSOX0vTg@yFK1.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: "431bf48b-10c1-47e8-8470-dceb3e272e6c", - per_page: 4106, - created_at_from: "2018-04-10T23:30:04.000000+09:00", - created_at_to: "2025-06-26T02:16:09.000000+09:00", + 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", is_suspended: true, - status: "active", - external_id: "P1AnQALadFsAzgfKjbtuXg", - tel: "04-469814", - email: "HGgnOhGiwZ@Bj5A.com" + status: "pre-closed", + external_id: "7pl9MWii2exAarzlUllr", + tel: "01-1105-7098", + email: "bZQuPYAKNL@vTyM.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: "431bf48b-10c1-47e8-8470-dceb3e272e6c", - page: 5313, - per_page: 1889, - created_at_from: "2016-10-15T14:02:21.000000+09:00", - created_at_to: "2023-05-04T22:39:47.000000+09:00", - is_suspended: true, - status: "pre-closed", - external_id: "AtfcLabY2vDzXzQx3sP8V6", - tel: "01493521-386", - email: "PASw8jPQ0h@MJ4n.com" + 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, + status: "suspended", + external_id: "LoYSz5jRHNPv9LO3MtPyt1wTnktL8AYkBvD7caRgncONv", + tel: "085-5471-045", + email: "87oiAkJDB6@ZsUU.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: "6408fbd0-9be7-4ece-8acf-9c83d085ada0" + private_money_id: "19fe1ff3-9f6b-4e97-91df-6f0f805413b6" })); 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: "6408fbd0-9be7-4ece-8acf-9c83d085ada0", - external_id: "uVI3xkUSOX0vTgyFK1FOp7" + private_money_id: "19fe1ff3-9f6b-4e97-91df-6f0f805413b6", + external_id: "umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e" })); 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: "6408fbd0-9be7-4ece-8acf-9c83d085ada0", - account_name: "pl9M", - external_id: "ii2exAarzlUllrgsQZQAnUYe" + private_money_id: "19fe1ff3-9f6b-4e97-91df-6f0f805413b6", + account_name: "e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5IbgTWsj7Mi", + external_id: "Gr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBC" })); 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: "6408fbd0-9be7-4ece-8acf-9c83d085ada0", - user_name: "KIbZQuPYAKNLvTyMcIYlLoYSz5jRHNPv9LO3MtPyt1wTnktL8AYkBvD7caRgncONv8Kje2pUTWzADNDe87oiAkJDB6ZsUUsk6umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGo", - account_name: "wg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5IbgTWsj7MinGr0IGEeLzU5ms0Hjw", - external_id: "VmUqLVvuFmzvx3MioePO7gkO" + private_money_id: "19fe1ff3-9f6b-4e97-91df-6f0f805413b6", + user_name: "Ym4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH9e", + account_name: "mhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Z", + external_id: "po5LBba7yo5q8iS" })); 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: "4f102904-fe97-4e4e-9c9b-72ce4faa4393" + private_money_id: "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" })); 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: "4f102904-fe97-4e4e-9c9b-72ce4faa4393", + private_money_id: "ca2616e9-5ed4-477c-bcc2-cc53b62f225a", 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: "4f102904-fe97-4e4e-9c9b-72ce4faa4393", - created_at_to: "2017-08-08T09:04:07.000000+09:00", - is_suspended: true + private_money_id: "ca2616e9-5ed4-477c-bcc2-cc53b62f225a", + created_at_to: "2023-10-10T07:01:36.000000Z", + is_suspended: false })); 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: "4f102904-fe97-4e4e-9c9b-72ce4faa4393", - created_at_from: "2017-05-07T10:41:33.000000+09:00", - created_at_to: "2021-09-29T05:15:13.000000+09:00", - is_suspended: true + 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 })); status = response.code; } catch (e) { @@ -1030,10 +1030,10 @@ test('Check GetShopAccounts | 4', async () => { let status = 400; try { const response: Response = await client.send(new GetShopAccounts({ - private_money_id: "4f102904-fe97-4e4e-9c9b-72ce4faa4393", - per_page: 1042, - created_at_from: "2018-03-27T10:08:27.000000+09:00", - created_at_to: "2016-01-22T08:59:00.000000+09:00", + 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 })); status = response.code; @@ -1050,12 +1050,12 @@ test('Check GetShopAccounts | 5', async () => { let status = 400; try { const response: Response = await client.send(new GetShopAccounts({ - private_money_id: "4f102904-fe97-4e4e-9c9b-72ce4faa4393", - page: 2118, - per_page: 5233, - created_at_from: "2023-09-03T10:36:59.000000+09:00", - created_at_to: "2017-08-11T17:08:52.000000+09:00", - is_suspended: true + 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 })); status = response.code; } catch (e) { @@ -1101,7 +1101,7 @@ test('Check ListBills | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - upper_limit_amount: 5727, + upper_limit_amount: 8374, is_disabled: true })); status = response.code; @@ -1118,8 +1118,8 @@ test('Check ListBills | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - lower_limit_amount: 701, - upper_limit_amount: 8926, + lower_limit_amount: 414, + upper_limit_amount: 3796, is_disabled: false })); status = response.code; @@ -1136,10 +1136,10 @@ test('Check ListBills | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - shop_id: "ecd4fb7c-6007-464b-b880-711162e6d76a", - lower_limit_amount: 1481, - upper_limit_amount: 2516, - is_disabled: false + shop_id: "db454cdb-2563-4ac8-b0e7-d118290fa6e1", + lower_limit_amount: 937, + upper_limit_amount: 3109, + is_disabled: true })); status = response.code; } catch (e) { @@ -1155,10 +1155,10 @@ test('Check ListBills | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - shop_name: "CVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH9emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvT", - shop_id: "f5149481-b92a-4c95-a1ab-3f812c2fcf04", - lower_limit_amount: 7968, - upper_limit_amount: 7451, + shop_name: "j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuIVqRIEU93kljq1Q8TjukgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYY", + shop_id: "94cc5713-2995-4c41-89a2-4575114060c5", + lower_limit_amount: 3553, + upper_limit_amount: 5130, is_disabled: true })); status = response.code; @@ -1175,11 +1175,11 @@ test('Check ListBills | 6', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - created_to: "2025-03-27T07:40:24.000000+09:00", - shop_name: "TZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuIVqRIEU93kljq1Q8TjukgNdosrcsbqXkWqVhxkWkS", - shop_id: "7dc95f88-1490-46e2-832b-602cb2e60fe3", - lower_limit_amount: 8585, - upper_limit_amount: 3601, + 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 })); status = response.code; @@ -1196,13 +1196,13 @@ test('Check ListBills | 7', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - created_from: "2016-06-07T14:46:46.000000+09:00", - created_to: "2024-03-25T17:05:06.000000+09:00", - shop_name: "WKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4mpTY", - shop_id: "9a1b5897-6b3f-4887-a013-fbafedf2b1de", - lower_limit_amount: 8975, - upper_limit_amount: 8398, - is_disabled: true + 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, + is_disabled: false })); status = response.code; } catch (e) { @@ -1218,14 +1218,14 @@ test('Check ListBills | 8', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - description: "FPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRA", - created_from: "2018-12-22T14:19:53.000000+09:00", - created_to: "2019-03-02T04:44:01.000000+09:00", - shop_name: "Fr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25uvrmGGKjRYVWTh4n3trK0b", - shop_id: "45553696-5076-4d7a-98df-e31cd45e298e", - lower_limit_amount: 2946, - upper_limit_amount: 2120, - is_disabled: false + 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 })); status = response.code; } catch (e) { @@ -1241,15 +1241,15 @@ test('Check ListBills | 9', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - organization_code: "9-8ydJ---N1JuoMXo82-QI94Y-7", - description: "2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6", - created_from: "2020-08-08T03:05:10.000000+09:00", - created_to: "2024-05-03T16:55:45.000000+09:00", - shop_name: "j5A2pjVon4uuDqic8AnsoXtmv8LerXQe8LjF", - shop_id: "e3147238-e118-41d1-8a36-dbf1bcb0cb29", - lower_limit_amount: 9328, - upper_limit_amount: 452, - is_disabled: false + 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, + is_disabled: true })); status = response.code; } catch (e) { @@ -1265,16 +1265,16 @@ test('Check ListBills | 10', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - private_money_id: "807cbe19-951c-4c35-805a-4562db13ddc2", - organization_code: "o7-23-WI5", - description: "RecAjobCopZKVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX", - created_from: "2024-09-24T13:43:00.000000+09:00", - created_to: "2015-12-15T19:33:10.000000+09:00", - shop_name: "5dozKzovfXQ3PHUhjHLVEtSIaxZ8O9N2SLzG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4VkAmGgvgI7YgVKC9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWGuj", - shop_id: "11ee4fe3-df1a-4b9a-9478-2c4603a99d46", - lower_limit_amount: 1010, - upper_limit_amount: 5874, - is_disabled: true + 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 })); 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: "yLyMOsteV", - private_money_id: "8b99b348-5f1b-4538-99cc-a5aa31f6a2a8", - organization_code: "H54G51-a8p-jCN6-31-Uf", - description: "73v60y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7QM", - created_from: "2019-12-15T14:53:45.000000+09:00", - created_to: "2017-11-12T11:18:01.000000+09:00", - shop_name: "bzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZfjz7mGpF3omDB92rueqlmfnAfu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7L", - shop_id: "930204d6-f095-4c93-8734-ab3cb3e864f6", - lower_limit_amount: 9781, - upper_limit_amount: 170, - is_disabled: false + 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 })); 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: 6778, - bill_id: "PxhlR", - private_money_id: "bebe2128-213f-48ea-bf32-615cb7f28f18", - organization_code: "L581m-q--4s8Omc8L08V3--9-U-9", - description: "o0L4evFZLjpsodOQD43fZ5T5bk20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9", - created_from: "2024-12-11T20:53:34.000000+09:00", - created_to: "2018-03-11T07:36:59.000000+09:00", - shop_name: "9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisL", - shop_id: "87f7e875-d359-4405-bcdf-cd6f6785b340", - lower_limit_amount: 3900, - upper_limit_amount: 4276, + 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, is_disabled: false })); status = response.code; @@ -1343,18 +1343,18 @@ test('Check ListBills | 13', async () => { let status = 400; try { const response: Response = await client.send(new ListBills({ - page: 2600, - per_page: 1136, - bill_id: "OwF", - private_money_id: "949fe4af-8b82-4c72-a86d-041db98e1c62", - organization_code: "h9A-B04pr7qE03-8ErShQ--14--5L", - description: "PugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8", - created_from: "2018-06-21T22:13:06.000000+09:00", - created_to: "2016-12-22T12:38:13.000000+09:00", - shop_name: "d6nFdHza9f0TF30iljDxgSpyfoekUtY", - shop_id: "d68fb13c-c62d-4dd8-ae51-06b64d84c7e4", - lower_limit_amount: 3922, - upper_limit_amount: 6924, + 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 })); status = response.code; @@ -1371,8 +1371,8 @@ test('Check CreateBill | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateBill({ - private_money_id: "519c48c4-325b-4858-a298-c6ef9a292715", - shop_id: "c317b308-9f92-4e83-aaea-ae8d43085871" + private_money_id: "0c713354-c78c-4e7c-9a93-bcdc32aa3bd5", + shop_id: "460688ba-b35d-4d0f-af63-7640929518b5" })); 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: "519c48c4-325b-4858-a298-c6ef9a292715", - shop_id: "c317b308-9f92-4e83-aaea-ae8d43085871", - description: "lSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1" + private_money_id: "0c713354-c78c-4e7c-9a93-bcdc32aa3bd5", + shop_id: "460688ba-b35d-4d0f-af63-7640929518b5", + description: "HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLnAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgS" })); 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: "519c48c4-325b-4858-a298-c6ef9a292715", - shop_id: "c317b308-9f92-4e83-aaea-ae8d43085871", - amount: 5162.0, - description: "iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55WYfHfvN0QEBe9OUm" + private_money_id: "0c713354-c78c-4e7c-9a93-bcdc32aa3bd5", + shop_id: "460688ba-b35d-4d0f-af63-7640929518b5", + amount: 8640.0, + description: "pyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55W" })); 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: "e23c9bf5-7751-4b89-a17e-4bef457df04e" + bill_id: "7b13563f-52a4-4ad9-a683-55c84cee1a90" })); status = response.code; } catch (e) { @@ -1441,8 +1441,8 @@ test('Check UpdateBill | 1', async () => { let status = 400; try { const response: Response = await client.send(new UpdateBill({ - bill_id: "e23c9bf5-7751-4b89-a17e-4bef457df04e", - is_disabled: false + bill_id: "7b13563f-52a4-4ad9-a683-55c84cee1a90", + is_disabled: true })); status = response.code; } catch (e) { @@ -1458,8 +1458,8 @@ test('Check UpdateBill | 2', async () => { let status = 400; try { const response: Response = await client.send(new UpdateBill({ - bill_id: "e23c9bf5-7751-4b89-a17e-4bef457df04e", - description: "xdhT65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2pLnur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2", + bill_id: "7b13563f-52a4-4ad9-a683-55c84cee1a90", + description: "vN0QEBe9OUmuQoNyAxdhT65YfaNVM2xjqlPxxy8RqwFW", is_disabled: true })); status = response.code; @@ -1476,10 +1476,10 @@ test('Check UpdateBill | 3', async () => { let status = 400; try { const response: Response = await client.send(new UpdateBill({ - bill_id: "e23c9bf5-7751-4b89-a17e-4bef457df04e", - amount: 7673.0, - description: "Y5rxBRsFTyEvnewbYd4rNZJsCq7m7ar", - is_disabled: false + bill_id: "7b13563f-52a4-4ad9-a683-55c84cee1a90", + amount: 4820.0, + description: "1hvVt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2p", + is_disabled: true })); status = response.code; } catch (e) { @@ -1495,8 +1495,8 @@ test('Check CreateCheck | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 416.0 + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + money_amount: 8380.0 })); status = response.code; } catch (e) { @@ -1512,9 +1512,9 @@ test('Check CreateCheck | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 9778.0, - description: "xHXaAOFq" + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + money_amount: 6406.0, + description: "36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2HyY5rxBRsFTyEvnewbYd4rNZJsCq7m7arw2NKYH12xHXaAOFqIwxrvxkxwVYBDQiRCyVT" })); status = response.code; } catch (e) { @@ -1530,10 +1530,10 @@ test('Check CreateCheck | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 713.0, - is_onetime: false, - description: "xrvxkxwVYBDQiRCyVTR3" + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + money_amount: 8734.0, + is_onetime: true, + description: "3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1" })); status = response.code; } catch (e) { @@ -1549,11 +1549,11 @@ test('Check CreateCheck | 3', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 7214.0, - usage_limit: 9481, + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + money_amount: 7574.0, + usage_limit: 138, is_onetime: true, - description: "czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVU" + description: "jZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO" })); status = response.code; } catch (e) { @@ -1569,12 +1569,12 @@ test('Check CreateCheck | 4', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 1099.0, - expires_at: "2021-04-26T12:47:04.000000+09:00", - usage_limit: 7621, + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + money_amount: 7859.0, + expires_at: "2023-05-07T23:01:35.000000Z", + usage_limit: 3057, is_onetime: true, - description: "GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxt" + description: "SQ0YVNC6SfrLsEgbwDrafzykU4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJf" })); status = response.code; } catch (e) { @@ -1590,13 +1590,13 @@ test('Check CreateCheck | 5', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 2442.0, - point_expires_at: "2019-06-16T14:31:33.000000+09:00", - expires_at: "2016-01-06T03:35:40.000000+09:00", - usage_limit: 9843, + 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, is_onetime: true, - description: "4enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj" + description: "v94bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8" })); status = response.code; } catch (e) { @@ -1612,14 +1612,14 @@ test('Check CreateCheck | 6', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 3754.0, - point_expires_in_days: 746, - point_expires_at: "2019-12-28T02:43:24.000000+09:00", - expires_at: "2023-04-06T22:27:07.000000+09:00", - usage_limit: 1836, + 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: "SURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOB" + description: "ZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgUm73I2kFchNQksZB6By" })); status = response.code; } catch (e) { @@ -1635,15 +1635,15 @@ test('Check CreateCheck | 7', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 2980.0, - bear_point_account: "743d4d48-dd6f-41cc-88da-43351f400f17", - point_expires_in_days: 5961, - point_expires_at: "2017-01-04T19:09:37.000000+09:00", - expires_at: "2016-03-27T07:01:31.000000+09:00", - usage_limit: 1907, + 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-01-16T03:09:56.000000Z", + expires_at: "2022-08-04T04:38:22.000000Z", + usage_limit: 8911, is_onetime: true, - description: "5u9Osjia9h3ovwp1QqOYhJfTJv94bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcT" + description: "23WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6X" })); status = response.code; } catch (e) { @@ -1659,9 +1659,9 @@ test('Check CreateCheck | 8', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 2455.0, - point_amount: 5435.0 + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + money_amount: 2943.0, + point_amount: 6616.0 })); status = response.code; } catch (e) { @@ -1677,10 +1677,10 @@ test('Check CreateCheck | 9', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 8617.0, - point_amount: 1905.0, - description: "fZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjF" + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + money_amount: 4440.0, + point_amount: 2094.0, + description: "3Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNC" })); status = response.code; } catch (e) { @@ -1696,11 +1696,11 @@ test('Check CreateCheck | 10', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 454.0, - point_amount: 3677.0, - is_onetime: true, - description: "tovIA3w7if4YoZJ6x" + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + money_amount: 1341.0, + point_amount: 3944.0, + is_onetime: false, + description: "ERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOE" })); status = response.code; } catch (e) { @@ -1716,12 +1716,12 @@ test('Check CreateCheck | 11', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 7968.0, - point_amount: 5070.0, - usage_limit: 6715, - is_onetime: true, - description: "uCNZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgUm73I2kFchNQksZB6ByT3l" + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + money_amount: 1020.0, + point_amount: 7368.0, + usage_limit: 6710, + is_onetime: false, + description: "NdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzN" })); status = response.code; } catch (e) { @@ -1737,13 +1737,13 @@ test('Check CreateCheck | 12', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 9599.0, - point_amount: 86.0, - expires_at: "2025-05-01T12:22:48.000000+09:00", - usage_limit: 2385, + 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: "7O823WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXX" + description: "oAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZ" })); status = response.code; } catch (e) { @@ -1759,14 +1759,14 @@ test('Check CreateCheck | 13', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 2094.0, - point_amount: 6416.0, - point_expires_at: "2018-03-28T00:35:25.000000+09:00", - expires_at: "2019-11-24T11:35:29.000000+09:00", - usage_limit: 7861, + 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: "PxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcI" + description: "tgwRL" })); status = response.code; } catch (e) { @@ -1782,15 +1782,15 @@ test('Check CreateCheck | 14', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 1670.0, - point_amount: 7371.0, - point_expires_in_days: 9730, - point_expires_at: "2019-10-09T03:37:48.000000+09:00", - expires_at: "2015-11-12T06:55:05.000000+09:00", - usage_limit: 6615, - is_onetime: false, - description: "eNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlO" + 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" })); status = response.code; } catch (e) { @@ -1806,16 +1806,16 @@ test('Check CreateCheck | 15', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - money_amount: 2054.0, - point_amount: 9726.0, - bear_point_account: "bd8c8721-6dd2-47a4-abc6-aaaa7767a05d", - point_expires_in_days: 5639, - point_expires_at: "2020-07-25T12:39:57.000000+09:00", - expires_at: "2021-07-17T11:19:59.000000+09:00", - usage_limit: 9190, - is_onetime: false, - description: "fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0" + 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" })); status = response.code; } catch (e) { @@ -1831,8 +1831,8 @@ test('Check CreateCheck | 16', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - point_amount: 3019.0 + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + point_amount: 4728.0 })); status = response.code; } catch (e) { @@ -1848,9 +1848,9 @@ test('Check CreateCheck | 17', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - point_amount: 3576.0, - description: "TClCMK7WZ9OzNLNkjfoAuPSksHUu" + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + point_amount: 4232.0, + description: "1kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApoltrzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvR" })); status = response.code; } catch (e) { @@ -1866,10 +1866,10 @@ test('Check CreateCheck | 18', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - point_amount: 2203.0, + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + point_amount: 5863.0, is_onetime: true, - description: "Am0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKt" + description: "fjTir1eeHpnGAvFN5uVHKI7mM3plgJR5" })); status = response.code; } catch (e) { @@ -1885,11 +1885,11 @@ test('Check CreateCheck | 19', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - point_amount: 3746.0, - usage_limit: 9676, + account_id: "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", + point_amount: 8844.0, + usage_limit: 6043, is_onetime: false, - description: "z4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHsxk71kIOi" + description: "wzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0" })); status = response.code; } catch (e) { @@ -1905,12 +1905,12 @@ test('Check CreateCheck | 20', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - point_amount: 1032.0, - expires_at: "2024-11-10T08:47:10.000000+09:00", - usage_limit: 995, + 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: "Z37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApolt" + description: "KDvZ2PuoFKU33PYYZTEIyRn" })); status = response.code; } catch (e) { @@ -1926,13 +1926,13 @@ test('Check CreateCheck | 21', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - point_amount: 8865.0, - point_expires_at: "2020-12-29T18:29:14.000000+09:00", - expires_at: "2020-11-26T17:17:23.000000+09:00", - usage_limit: 8381, - is_onetime: true, - description: "jGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsC" + 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" })); status = response.code; } catch (e) { @@ -1948,14 +1948,14 @@ test('Check CreateCheck | 22', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - point_amount: 9255.0, - point_expires_in_days: 632, - point_expires_at: "2024-02-28T10:57:05.000000+09:00", - expires_at: "2018-10-10T12:50:44.000000+09:00", - usage_limit: 6325, + 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: "EeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZ" + description: "TQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvg" })); status = response.code; } catch (e) { @@ -1971,15 +1971,15 @@ test('Check CreateCheck | 23', async () => { let status = 400; try { const response: Response = await client.send(new CreateCheck({ - account_id: "11078018-1fb2-45ce-8b59-40c8c5742431", - point_amount: 5701.0, - bear_point_account: "9b7c3450-2a8e-4d1c-85ce-d0a0072a9190", - point_expires_in_days: 3472, - point_expires_at: "2021-04-14T14:37:51.000000+09:00", - expires_at: "2022-02-12T21:55:37.000000+09:00", - usage_limit: 6017, + 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, is_onetime: false, - description: "mFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s" + description: "gPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnf" })); status = response.code; } catch (e) { @@ -1991,12 +1991,10 @@ test('Check CreateCheck | 23', async () => { expect(status).not.toBe(400); }) -test('Check GetCpmToken | 0', async () => { +test('Check ListChecks | 0', async () => { let status = 400; try { - const response: Response = await client.send(new GetCpmToken({ - cpm_token: "09s2D07ZJtROtnJyz65lsP" - })); + const response: Response = await client.send(new ListChecks()); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -2007,10 +2005,12 @@ test('Check GetCpmToken | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 0', async () => { +test('Check ListChecks | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions()); + const response: Response = await client.send(new ListChecks({ + is_disabled: false + })); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -2021,11 +2021,12 @@ test('Check ListTransactions | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 1', async () => { +test('Check ListChecks | 2', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - description: "pU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFB" + const response: Response = await client.send(new ListChecks({ + is_onetime: true, + is_disabled: false })); status = response.code; } catch (e) { @@ -2037,12 +2038,13 @@ test('Check ListTransactions | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 2', async () => { +test('Check ListChecks | 3', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - types: ["exchange_inflow", "expire", "topup", "exchange_outflow", "payment"], - description: "JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQYSSoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQr" + const response: Response = await client.send(new ListChecks({ + description: "HR", + is_onetime: false, + is_disabled: false })); status = response.code; } catch (e) { @@ -2054,13 +2056,14 @@ test('Check ListTransactions | 2', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 3', async () => { +test('Check ListChecks | 4', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - is_modified: true, - types: ["exchange_inflow", "topup"], - description: "nk17KWAio" + const response: Response = await client.send(new ListChecks({ + issuer_shop_id: "c09173a9-38c4-47ae-a6cd-1dbf767be412", + description: "3LCAS", + is_onetime: true, + is_disabled: false })); status = response.code; } catch (e) { @@ -2072,14 +2075,15 @@ test('Check ListTransactions | 3', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 4', async () => { +test('Check ListChecks | 5', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - private_money_id: "40911c0e-5329-44e9-86c9-5e8e34fa8a47", - is_modified: true, - types: [], - description: "xz5S2r82nr4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzX" + 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 })); status = response.code; } catch (e) { @@ -2091,15 +2095,16 @@ test('Check ListTransactions | 4', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 5', async () => { +test('Check ListChecks | 6', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - organization_code: "e5", - private_money_id: "d5982ee3-3830-4fea-9333-055c8b2e27b9", - is_modified: false, - types: ["topup", "payment", "expire", "cashback"], - description: "FwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ" + 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 })); status = response.code; } catch (e) { @@ -2111,16 +2116,17 @@ test('Check ListTransactions | 5', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 6', async () => { +test('Check ListChecks | 7', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - transaction_id: "c8", - organization_code: "e83m-6eBI05", - private_money_id: "78897277-c349-4394-bc27-f4d051efd7e2", - is_modified: false, - types: ["cashback", "exchange_outflow", "exchange_inflow"], - description: "hYlMMXruKsOetb8P3w3wpAlq46MRF" + 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 })); status = response.code; } catch (e) { @@ -2132,17 +2138,18 @@ test('Check ListTransactions | 6', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 7', async () => { +test('Check ListChecks | 8', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - terminal_id: "268c45e8-9d42-4885-981d-e9611bdd582f", - transaction_id: "1KSFCI", - organization_code: "bhtDRbU7-a--Qv4rj-2-18EjuPj-iLW", - private_money_id: "09d64e1b-74f5-4130-b3c3-4de35c3e21c8", - is_modified: true, - types: ["expire", "exchange_outflow", "payment", "exchange_inflow"], - description: "EOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3" + 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 })); status = response.code; } catch (e) { @@ -2154,18 +2161,19 @@ test('Check ListTransactions | 7', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 8', async () => { +test('Check ListChecks | 9', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - customer_name: "xaXPio5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRa", - terminal_id: "120cd1dc-82f1-40db-b4e3-d8738f704eaf", - transaction_id: "eT3", - organization_code: "---28o8K-q", - private_money_id: "4ad45008-de6b-4238-9a2d-df1db7d01334", - is_modified: false, - types: ["payment", "exchange_inflow", "exchange_outflow"], - description: "B9mfs2NjGqIbT9OwqnkaPpwID0eLyZpFNZ79bus52pNLLPoSL" + 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 })); status = response.code; } catch (e) { @@ -2177,19 +2185,20 @@ test('Check ListTransactions | 8', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 9', async () => { +test('Check ListChecks | 10', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - customer_id: "d4e25038-9eb4-4e13-9453-2a922f7b431d", - customer_name: "GwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGh", - terminal_id: "806a9e14-6918-466b-a718-96a1c4514fba", - transaction_id: "16I7iXig", - organization_code: "YnUAHI1a", - private_money_id: "290b4c1b-411e-4d83-bd73-9d13437e2202", - is_modified: true, - types: ["topup", "payment"], - description: "ahWwt0KCw4FDQO05qLTqGD" + 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", + is_onetime: true, + is_disabled: false })); status = response.code; } catch (e) { @@ -2201,20 +2210,21 @@ test('Check ListTransactions | 9', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 10', async () => { +test('Check ListChecks | 11', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - shop_id: "24873215-c062-4581-ba1f-47d11e7f6e04", - customer_id: "d08b52c4-0875-4061-86f6-d63426154156", - customer_name: "aDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqybT3XFSWXNEvBDebROkI568yn3vAdg2WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BT", - terminal_id: "d4f41d2f-41ea-4cd9-a9d6-ed9543f0b474", - transaction_id: "GDmgs", - organization_code: "8-sG---7KiosX3L-FY--", - private_money_id: "c32ad231-9f8e-443a-a830-60e1b89f3de3", - is_modified: false, - types: ["payment", "cashback", "expire", "exchange_inflow"], - description: "mABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgs" + 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", + is_onetime: true, + is_disabled: true })); status = response.code; } catch (e) { @@ -2226,21 +2236,22 @@ test('Check ListTransactions | 10', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 11', async () => { +test('Check ListChecks | 12', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - per_page: 8707, - shop_id: "3881c78c-c226-4da4-a495-0aebaa5f348f", - customer_id: "adc5fef7-75b6-4179-9ce6-c485fd90fe1e", - customer_name: "QPcXHRn98CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwa", - terminal_id: "7088258d-f319-4dda-b5f8-d4e6f5129f7a", - transaction_id: "mz05DA", - organization_code: "Lu-4s9aY825YEG", - private_money_id: "13405826-69aa-49d4-82d9-1bcc96880c1b", - is_modified: true, - types: ["cashback", "exchange_inflow", "expire"], - description: "AVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mhVFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfw" + 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 })); status = response.code; } catch (e) { @@ -2252,22 +2263,11 @@ test('Check ListTransactions | 11', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 12', async () => { +test('Check GetCheck | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - page: 3283, - per_page: 7330, - shop_id: "cb55afef-5ceb-4d51-a669-569201701a4f", - customer_id: "bb7fefbd-e432-4694-a7ca-7f82507a0cbe", - customer_name: "LOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIP", - terminal_id: "ee283a66-481d-4701-b7a7-cf8d3c03556c", - transaction_id: "xpBEwO", - organization_code: "HLH", - private_money_id: "3ed91754-72ea-4528-88a1-73dcd2996c68", - is_modified: true, - types: ["exchange_outflow"], - description: "IG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixLpvflY8MFYZJvlfPZ9XRs2DjUex8FZcru468uiy2IBQsKNbECUonyUv3nTPZ7" + const response: Response = await client.send(new GetCheck({ + check_id: "8893f8dc-e441-4a3d-bdc9-d19c00308720" })); status = response.code; } catch (e) { @@ -2279,23 +2279,11 @@ test('Check ListTransactions | 12', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 13', async () => { +test('Check UpdateCheck | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - to: "2018-12-06T06:44:40.000000+09:00", - page: 4402, - per_page: 1197, - shop_id: "d856d797-347f-4ab3-a294-d2232a2494d6", - customer_id: "bf985d7f-4435-4ad1-84f9-7ef787621213", - customer_name: "2pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXDkJqy1UyPaGHVkyMSdmemZcovbEUc9TiM3DTSa7pJlo8JS6mIVfCl8O", - terminal_id: "d6078836-9e1c-42d8-949b-b8f003f460a5", - transaction_id: "UPEJOaNn", - organization_code: "sWNR-R41m-81cRE-a-4Y7rs8D6-O-5t", - private_money_id: "493788d6-7cde-417e-87a2-a3f53eaa32a6", - is_modified: false, - types: ["topup", "exchange_outflow", "exchange_inflow", "expire", "payment"], - description: "xLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLIZnC6rDyYuuG1XnlSIVaCTCoBzc3Po" + const response: Response = await client.send(new UpdateCheck({ + check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29" })); status = response.code; } catch (e) { @@ -2307,24 +2295,12 @@ test('Check ListTransactions | 13', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactions | 14', async () => { +test('Check UpdateCheck | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactions({ - from: "2022-06-09T09:40:04.000000+09:00", - to: "2024-01-21T10:13:05.000000+09:00", - page: 7796, - per_page: 2661, - shop_id: "32d4c003-a3e2-487b-b217-018aecfa7812", - customer_id: "1b984778-0255-4354-a2fe-f113e9606a70", - customer_name: "kQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigdBYvKVDdotV", - terminal_id: "9a784064-d673-47ae-88c4-6c21bce9089c", - transaction_id: "1Har", - organization_code: "IaQ-xN80f0DTB0za8tu8TiZH341O--Cq", - private_money_id: "b6d3fb16-c1d1-45fa-8cdc-25dbdcfb20d0", - is_modified: false, - types: [], - description: "mp7HiQajpl09d6QIiaL5c40GPi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqU" + const response: Response = await client.send(new UpdateCheck({ + check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", + is_disabled: false })); status = response.code; } catch (e) { @@ -2336,13 +2312,13 @@ test('Check ListTransactions | 14', async () => { expect(status).not.toBe(400); }) -test('Check CreateTransaction | 0', async () => { +test('Check UpdateCheck | 2', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTransaction({ - shop_id: "7cf53ea2-5611-43be-a45b-f2524622eb9f", - customer_id: "a13eacaf-9b61-4eb9-a843-da3b1f966744", - private_money_id: "6f1360c7-2d38-4dfa-9131-e9dd9d489d72" + const response: Response = await client.send(new UpdateCheck({ + check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", + bear_point_account: "877b6ac5-dc4f-457a-9802-506ec699da52", + is_disabled: false })); status = response.code; } catch (e) { @@ -2354,14 +2330,14 @@ test('Check CreateTransaction | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateTransaction | 1', async () => { +test('Check UpdateCheck | 3', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTransaction({ - shop_id: "7cf53ea2-5611-43be-a45b-f2524622eb9f", - customer_id: "a13eacaf-9b61-4eb9-a843-da3b1f966744", - private_money_id: "6f1360c7-2d38-4dfa-9131-e9dd9d489d72", - description: "2NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFO" + 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 })); status = response.code; } catch (e) { @@ -2373,15 +2349,15 @@ test('Check CreateTransaction | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateTransaction | 2', async () => { +test('Check UpdateCheck | 4', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTransaction({ - shop_id: "7cf53ea2-5611-43be-a45b-f2524622eb9f", - customer_id: "a13eacaf-9b61-4eb9-a843-da3b1f966744", - private_money_id: "6f1360c7-2d38-4dfa-9131-e9dd9d489d72", - point_expires_at: "2016-03-11T13:57:10.000000+09:00", - description: "CKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRl" + 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", + is_disabled: false })); status = response.code; } catch (e) { @@ -2393,16 +2369,16 @@ test('Check CreateTransaction | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateTransaction | 3', async () => { +test('Check UpdateCheck | 5', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTransaction({ - shop_id: "7cf53ea2-5611-43be-a45b-f2524622eb9f", - customer_id: "a13eacaf-9b61-4eb9-a843-da3b1f966744", - private_money_id: "6f1360c7-2d38-4dfa-9131-e9dd9d489d72", - point_amount: 2289, - point_expires_at: "2025-05-01T13:45:09.000000+09:00", - description: "VbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8ZrqfNGAkbzm" + 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 })); status = response.code; } catch (e) { @@ -2414,17 +2390,17 @@ test('Check CreateTransaction | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateTransaction | 4', async () => { +test('Check UpdateCheck | 6', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTransaction({ - shop_id: "7cf53ea2-5611-43be-a45b-f2524622eb9f", - customer_id: "a13eacaf-9b61-4eb9-a843-da3b1f966744", - private_money_id: "6f1360c7-2d38-4dfa-9131-e9dd9d489d72", - money_amount: 9793, - point_amount: 7753, - point_expires_at: "2020-12-04T05:10:51.000000+09:00", - description: "fq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08aWAgYKgMRg4eij" + 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", + is_disabled: false })); status = response.code; } catch (e) { @@ -2436,10 +2412,19 @@ test('Check CreateTransaction | 4', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 0', async () => { +test('Check UpdateCheck | 7', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2()); + 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 + })); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -2450,11 +2435,19 @@ test('Check ListTransactionsV2 | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 1', async () => { +test('Check UpdateCheck | 8', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - per_page: 758 + const response: Response = await client.send(new UpdateCheck({ + check_id: "7d79a965-78ad-4583-8e8a-7d887f966b29", + description: "FwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ", + 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", + is_disabled: true })); status = response.code; } catch (e) { @@ -2466,12 +2459,20 @@ test('Check ListTransactionsV2 | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 2', async () => { +test('Check UpdateCheck | 9', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - prev_page_cursor_id: "cb228d19-1b7b-4ce9-b027-5df83ced129d", - per_page: 776 + 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 })); status = response.code; } catch (e) { @@ -2483,13 +2484,21 @@ test('Check ListTransactionsV2 | 2', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 3', async () => { +test('Check UpdateCheck | 10', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - next_page_cursor_id: "3153c786-7f34-45aa-8119-bba332240adf", - prev_page_cursor_id: "bd26907a-4df5-4995-8afb-7c6bde1647a2", - per_page: 626 + 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 })); status = response.code; } catch (e) { @@ -2501,14 +2510,11 @@ test('Check ListTransactionsV2 | 3', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 4', async () => { +test('Check GetCpmToken | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - to: "2020-01-05T03:16:47.000000+09:00", - next_page_cursor_id: "da55c4b0-1b92-40af-b61f-66290492e377", - prev_page_cursor_id: "a5687afa-8215-4eba-a28f-a4855d86882a", - per_page: 669 + const response: Response = await client.send(new GetCpmToken({ + cpm_token: "jRtKJ3Y50yRgOZb7LyYKRM" })); status = response.code; } catch (e) { @@ -2520,16 +2526,10 @@ test('Check ListTransactionsV2 | 4', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 5', async () => { +test('Check ListTransactions | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - from: "2024-06-02T14:27:13.000000+09:00", - to: "2024-05-30T08:40:12.000000+09:00", - next_page_cursor_id: "af0b6ca7-696e-42e1-8624-c9f03676c188", - prev_page_cursor_id: "5e4c85ab-f6b0-4ee4-9d7b-97b85f1e3897", - per_page: 463 - })); + const response: Response = await client.send(new ListTransactions()); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -2540,16 +2540,11 @@ test('Check ListTransactionsV2 | 5', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 6', async () => { +test('Check ListTransactions | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - types: ["payment"], - from: "2025-07-18T14:49:04.000000+09:00", - to: "2016-06-13T11:27:45.000000+09:00", - next_page_cursor_id: "5edb11f7-b077-4850-950f-74e6fe240dbb", - prev_page_cursor_id: "5f5ab50f-dc6d-4fd9-8724-1f95e8d009c5", - per_page: 855 + const response: Response = await client.send(new ListTransactions({ + description: "PV8lVcOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7Ry" })); status = response.code; } catch (e) { @@ -2561,17 +2556,12 @@ test('Check ListTransactionsV2 | 6', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 7', async () => { +test('Check ListTransactions | 2', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - is_modified: true, - types: ["exchange_outflow", "cashback", "expire", "payment"], - from: "2017-11-25T15:28:30.000000+09:00", - to: "2020-09-07T06:52:26.000000+09:00", - next_page_cursor_id: "ae12f44d-c487-4847-a25c-bfaa79f3471f", - prev_page_cursor_id: "53dcb283-ba84-4aaa-a42f-bb80d4d90d78", - per_page: 406 + const response: Response = await client.send(new ListTransactions({ + types: ["payment", "exchange_outflow", "cashback", "exchange_inflow"], + description: "IVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0" })); status = response.code; } catch (e) { @@ -2583,18 +2573,13 @@ test('Check ListTransactionsV2 | 7', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 8', async () => { +test('Check ListTransactions | 3', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - transaction_id: "kBMFBNKh", + const response: Response = await client.send(new ListTransactions({ is_modified: true, - types: ["cashback", "exchange_inflow", "topup"], - from: "2019-02-16T18:07:36.000000+09:00", - to: "2017-04-06T18:15:53.000000+09:00", - next_page_cursor_id: "9f2630a0-5ad6-4a8f-9dee-f5907ad188fa", - prev_page_cursor_id: "1ec23bb7-fce4-4257-b1cc-651c0ff3fbde", - per_page: 422 + types: ["expire", "exchange_outflow", "topup", "exchange_inflow", "cashback", "payment"], + description: "ZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qL" })); status = response.code; } catch (e) { @@ -2606,19 +2591,14 @@ test('Check ListTransactionsV2 | 8', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 9', async () => { +test('Check ListTransactions | 4', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - description: "5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn", - transaction_id: "Ii", + const response: Response = await client.send(new ListTransactions({ + private_money_id: "62c302d4-35f1-4e7e-87c4-3215645cc062", is_modified: false, - types: ["cashback", "exchange_outflow"], - from: "2021-09-22T00:03:53.000000+09:00", - to: "2017-03-18T14:03:10.000000+09:00", - next_page_cursor_id: "25a1b673-3f5f-40a3-914a-98fc7e5cba0a", - prev_page_cursor_id: "e3566da9-311c-4e37-916b-d3b6fa03dae4", - per_page: 921 + types: ["exchange_outflow", "topup"], + description: "v4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPy" })); status = response.code; } catch (e) { @@ -2630,20 +2610,15 @@ test('Check ListTransactionsV2 | 9', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 10', async () => { +test('Check ListTransactions | 5', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - customer_name: "6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR88F7Ubd6", - description: "EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK775FUjJKUwWsCFULHC5xu9xwKzEEFrv0p5VC2XFSxIKMXYPxeKc6v3uyZaCEMZ2Ju8UbXHSU9E0Qlg3gebvAwjzG8", - transaction_id: "YapgA4", - is_modified: true, - types: ["topup", "expire", "cashback", "exchange_outflow", "payment", "exchange_inflow"], - from: "2025-07-15T23:02:39.000000+09:00", - to: "2018-10-07T14:01:48.000000+09:00", - next_page_cursor_id: "7596ce51-70eb-4d58-b1d9-8a9c66e5df50", - prev_page_cursor_id: "1080f69c-2c29-4b0c-be11-f56e49232d5c", - per_page: 530 + const response: Response = await client.send(new ListTransactions({ + organization_code: "k1SSX-r", + private_money_id: "311bd1b2-821b-4fe2-94e0-f5a4694a8a3d", + is_modified: false, + types: ["payment", "exchange_inflow", "expire", "topup", "exchange_outflow", "cashback"], + description: "FSWXNEvBDebROkI568yn3vAdg2WzE6cQfJbdKVhY" })); status = response.code; } catch (e) { @@ -2655,21 +2630,16 @@ test('Check ListTransactionsV2 | 10', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 11', async () => { +test('Check ListTransactions | 6', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - customer_id: "898d437c-7f2d-4ead-b426-cea8d001e164", - customer_name: "GIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5qYfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua2WPHw1UTjf1quigD2l2JnK33Y2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWng", - description: "PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuKlnfNVTWFTkh4YZxFDhr8QjYlB42oGAhylpmFOwCdKPABZdrgh98RslDBuoJS", - transaction_id: "FUrTRne91u", + 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", is_modified: true, - types: ["topup", "exchange_inflow"], - from: "2016-02-02T18:59:59.000000+09:00", - to: "2022-12-17T05:15:12.000000+09:00", - next_page_cursor_id: "939e6b43-ad01-4ee3-8a7b-280565fd4ee5", - prev_page_cursor_id: "421b1160-f6b6-4323-8e3b-0d2e937e73ad", - per_page: 526 + types: ["expire", "topup", "cashback", "payment", "exchange_outflow", "exchange_inflow"], + description: "BR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8S" })); status = response.code; } catch (e) { @@ -2681,22 +2651,17 @@ test('Check ListTransactionsV2 | 11', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 12', async () => { +test('Check ListTransactions | 7', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - terminal_id: "c74b9f3d-b526-4167-a558-06ed3832f04d", - customer_id: "bebbeb36-6053-4355-b83f-f12df0237c6d", - customer_name: "T9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0", - description: "ZYNIFrYHkTuOzrywGRNkA", - transaction_id: "SHinr7", - is_modified: false, - types: ["topup", "payment", "exchange_inflow"], - from: "2020-09-28T23:30:25.000000+09:00", - to: "2021-12-21T07:52:33.000000+09:00", - next_page_cursor_id: "d69b0d5c-11a6-40f9-a9fd-71a9e896b3a7", - prev_page_cursor_id: "06107b38-2d98-47cb-9fbd-3eb64a221eac", - per_page: 819 + 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", + is_modified: true, + types: ["cashback"], + description: "S5KI84n4B4JwtxMbsrynF" })); status = response.code; } catch (e) { @@ -2708,23 +2673,18 @@ test('Check ListTransactionsV2 | 12', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 13', async () => { +test('Check ListTransactions | 8', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - shop_id: "b3ba35ad-141d-4718-b65a-f8640ba2ce60", - terminal_id: "9d49a197-218f-4d0b-8963-53802a07b03d", - customer_id: "7840701e-897a-43f8-a87a-d47b58e5897f", - customer_name: "DF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj", - description: "7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti", - transaction_id: "0SO07EXHC", - is_modified: false, - types: ["topup", "exchange_outflow", "payment"], - from: "2019-01-27T20:33:09.000000+09:00", - to: "2024-05-26T14:26:29.000000+09:00", - next_page_cursor_id: "31d47a8c-a518-4f31-b09e-2ba61aea8623", - prev_page_cursor_id: "0d0a0bbd-b012-4023-9717-643f7e053dc4", - per_page: 100 + 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", + is_modified: true, + types: ["expire"], + description: "VFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVj" })); status = response.code; } catch (e) { @@ -2736,24 +2696,19 @@ test('Check ListTransactionsV2 | 13', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 14', async () => { +test('Check ListTransactions | 9', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - organization_code: "mdx7gh3-8weWi35i8kx92q", - shop_id: "acd12850-5c10-4c02-8abf-087f75eba043", - terminal_id: "7296cf5f-9e2a-41c7-857a-a594c2153456", - customer_id: "5d688559-3de4-43ef-a88b-e0a210ed2d44", - customer_name: "xcepsSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU", - description: "5vigXX7Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5", - transaction_id: "7CpKj", - is_modified: false, - types: ["expire", "payment", "topup", "cashback", "exchange_inflow", "exchange_outflow"], - from: "2024-04-16T03:28:32.000000+09:00", - to: "2019-08-02T05:28:41.000000+09:00", - next_page_cursor_id: "f558e5a2-3f61-495c-acbb-8e68013fd794", - prev_page_cursor_id: "1bbc5b7d-4e10-4adf-b760-31af5eaa6735", - per_page: 518 + 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" })); status = response.code; } catch (e) { @@ -2765,25 +2720,20 @@ test('Check ListTransactionsV2 | 14', async () => { expect(status).not.toBe(400); }) -test('Check ListTransactionsV2 | 15', async () => { +test('Check ListTransactions | 10', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransactionsV2({ - private_money_id: "5205678c-6d65-46f5-b04f-cb2bd7595353", - organization_code: "8-Du-yXHSj-i---Z-4-8", - shop_id: "923612f1-8ce8-4a5d-9fa4-994d4451164c", - terminal_id: "941a419c-cb79-4fb1-a69f-ab2798fbf624", - customer_id: "7f9332de-6453-40a0-b2cf-2e8343ba613b", - customer_name: "ZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7WZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9oA142xL", - description: "kpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNr", - transaction_id: "VXI1wRTqw", + 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", "exchange_inflow", "cashback", "expire"], - from: "2021-05-27T05:25:23.000000+09:00", - to: "2016-03-09T03:56:48.000000+09:00", - next_page_cursor_id: "204c58e1-d520-4168-8247-89bd8ff5d0a8", - prev_page_cursor_id: "4b44060f-1a8a-4bd7-b7f0-1df33143db33", - per_page: 129 + types: ["topup", "cashback", "expire"], + description: "PEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLI" })); status = response.code; } catch (e) { @@ -2795,13 +2745,21 @@ test('Check ListTransactionsV2 | 15', async () => { expect(status).not.toBe(400); }) -test('Check CreateTopupTransaction | 0', async () => { +test('Check ListTransactions | 11', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "5ce9f3e9-8ac1-4ad2-a344-484afe90b3e0", - customer_id: "d12132d4-f487-431c-ab7c-5c521e36d1da", - private_money_id: "cc1506a9-0f9a-4d2e-bcab-6995d32b835d" + 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", + is_modified: true, + types: ["exchange_outflow", "cashback", "topup", "exchange_inflow"], + description: "Pi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1" })); status = response.code; } catch (e) { @@ -2813,14 +2771,22 @@ test('Check CreateTopupTransaction | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateTopupTransaction | 1', async () => { +test('Check ListTransactions | 12', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "5ce9f3e9-8ac1-4ad2-a344-484afe90b3e0", - customer_id: "d12132d4-f487-431c-ab7c-5c521e36d1da", - private_money_id: "cc1506a9-0f9a-4d2e-bcab-6995d32b835d", - request_id: "dd046f8b-f86b-4da9-8f84-5e923cf3651a" + 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", + is_modified: false, + types: ["exchange_outflow", "exchange_inflow", "payment", "expire", "cashback"], + description: "AIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08aWAgYKgMRg4eijui0x4A" })); status = response.code; } catch (e) { @@ -2832,15 +2798,23 @@ test('Check CreateTopupTransaction | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateTopupTransaction | 2', async () => { +test('Check ListTransactions | 13', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "5ce9f3e9-8ac1-4ad2-a344-484afe90b3e0", - customer_id: "d12132d4-f487-431c-ab7c-5c521e36d1da", - private_money_id: "cc1506a9-0f9a-4d2e-bcab-6995d32b835d", - metadata: "{\"key\":\"value\"}", - request_id: "ccc4567c-f19c-474f-ae90-89c5cc365ed1" + 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" })); status = response.code; } catch (e) { @@ -2852,16 +2826,24 @@ test('Check CreateTopupTransaction | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateTopupTransaction | 3', async () => { +test('Check ListTransactions | 14', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "5ce9f3e9-8ac1-4ad2-a344-484afe90b3e0", - customer_id: "d12132d4-f487-431c-ab7c-5c521e36d1da", - private_money_id: "cc1506a9-0f9a-4d2e-bcab-6995d32b835d", - description: "FC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFE", - metadata: "{\"key\":\"value\"}", - request_id: "c616b05f-b049-471f-8953-798ef5f450bb" + 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", + is_modified: false, + types: ["exchange_outflow", "payment", "expire"], + description: "u8UbXHSU9E0Qlg3gebv" })); status = response.code; } catch (e) { @@ -2873,17 +2855,13 @@ test('Check CreateTopupTransaction | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateTopupTransaction | 4', async () => { +test('Check CreateTransaction | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "5ce9f3e9-8ac1-4ad2-a344-484afe90b3e0", - customer_id: "d12132d4-f487-431c-ab7c-5c521e36d1da", - private_money_id: "cc1506a9-0f9a-4d2e-bcab-6995d32b835d", - point_expires_at: "2018-04-01T17:51:18.000000+09:00", - description: "cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT0", - metadata: "{\"key\":\"value\"}", - request_id: "9a3600a5-9232-444a-b668-49bca79330e0" + 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" })); status = response.code; } catch (e) { @@ -2895,18 +2873,14 @@ test('Check CreateTopupTransaction | 4', async () => { expect(status).not.toBe(400); }) -test('Check CreateTopupTransaction | 5', async () => { +test('Check CreateTransaction | 1', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "5ce9f3e9-8ac1-4ad2-a344-484afe90b3e0", - customer_id: "d12132d4-f487-431c-ab7c-5c521e36d1da", - private_money_id: "cc1506a9-0f9a-4d2e-bcab-6995d32b835d", - point_amount: 3834, - point_expires_at: "2019-11-13T00:59:25.000000+09:00", - description: "AvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90ILh1FnEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI", - metadata: "{\"key\":\"value\"}", - request_id: "df87b1b1-52ad-490c-a94e-fb97f9f23903" + 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" })); status = response.code; } catch (e) { @@ -2918,19 +2892,15 @@ test('Check CreateTopupTransaction | 5', async () => { expect(status).not.toBe(400); }) -test('Check CreateTopupTransaction | 6', async () => { +test('Check CreateTransaction | 2', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "5ce9f3e9-8ac1-4ad2-a344-484afe90b3e0", - customer_id: "d12132d4-f487-431c-ab7c-5c521e36d1da", - private_money_id: "cc1506a9-0f9a-4d2e-bcab-6995d32b835d", - money_amount: 1821, - point_amount: 4150, - point_expires_at: "2023-12-17T21:32:10.000000+09:00", - description: "MY7t0u9TuR54ZsbCHGDImjW34z4jE8W9hhkpYWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx", - metadata: "{\"key\":\"value\"}", - request_id: "af9fab8c-da10-4232-96bc-2adbca638d74" + 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" })); status = response.code; } catch (e) { @@ -2942,20 +2912,16 @@ test('Check CreateTopupTransaction | 6', async () => { expect(status).not.toBe(400); }) -test('Check CreateTopupTransaction | 7', async () => { +test('Check CreateTransaction | 3', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTopupTransaction({ - shop_id: "5ce9f3e9-8ac1-4ad2-a344-484afe90b3e0", - customer_id: "d12132d4-f487-431c-ab7c-5c521e36d1da", - private_money_id: "cc1506a9-0f9a-4d2e-bcab-6995d32b835d", - bear_point_shop_id: "908e14ef-ecc5-4b9f-a4fa-977d9d93abf7", - money_amount: 6839, - point_amount: 5535, - point_expires_at: "2019-11-28T07:43:42.000000+09:00", - description: "M6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4UwDxtqXzHNdytk1inQrWiktMK0FHLyL", - metadata: "{\"key\":\"value\"}", - request_id: "ee78db99-4b6e-4d1e-b6dc-5dfae699e054" + 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" })); status = response.code; } catch (e) { @@ -2967,12 +2933,17 @@ test('Check CreateTopupTransaction | 7', async () => { expect(status).not.toBe(400); }) -test('Check CreateTopupTransactionWithCheck | 0', async () => { +test('Check CreateTransaction | 4', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTopupTransactionWithCheck({ - check_id: "ed2904e4-23df-4046-a63d-39b000bd405e", - customer_id: "95f56e59-fb8a-4731-9bca-2b167cad46cf" + 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" })); status = response.code; } catch (e) { @@ -2984,13 +2955,25 @@ test('Check CreateTopupTransactionWithCheck | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateTopupTransactionWithCheck | 1', async () => { +test('Check ListTransactionsV2 | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTopupTransactionWithCheck({ - check_id: "ed2904e4-23df-4046-a63d-39b000bd405e", - customer_id: "95f56e59-fb8a-4731-9bca-2b167cad46cf", - request_id: "1d21542d-b288-4810-846f-27427e0ef468" + const response: Response = await client.send(new ListTransactionsV2()); + 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 ListTransactionsV2 | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListTransactionsV2({ + per_page: 136 })); status = response.code; } catch (e) { @@ -3002,14 +2985,12 @@ test('Check CreateTopupTransactionWithCheck | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreatePaymentTransaction | 0', async () => { +test('Check ListTransactionsV2 | 2', async () => { let status = 400; try { - const response: Response = await client.send(new CreatePaymentTransaction({ - shop_id: "e0111ac5-08fd-4245-8a46-30f306051dbc", - customer_id: "547ba588-da25-4d37-92d5-6cd2f29aeafe", - private_money_id: "d66598e9-1e4a-4a48-a617-dd8e9f798236", - amount: 109 + const response: Response = await client.send(new ListTransactionsV2({ + prev_page_cursor_id: "fc527984-a5e8-44f2-a31f-4c7f0cdfdd95", + per_page: 313 })); status = response.code; } catch (e) { @@ -3021,15 +3002,13 @@ test('Check CreatePaymentTransaction | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreatePaymentTransaction | 1', async () => { +test('Check ListTransactionsV2 | 3', async () => { let status = 400; try { - const response: Response = await client.send(new CreatePaymentTransaction({ - shop_id: "e0111ac5-08fd-4245-8a46-30f306051dbc", - customer_id: "547ba588-da25-4d37-92d5-6cd2f29aeafe", - private_money_id: "d66598e9-1e4a-4a48-a617-dd8e9f798236", - amount: 109, - request_id: "f420be6e-d6a6-4d67-ab23-35bf6995b305" + 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 })); status = response.code; } catch (e) { @@ -3041,66 +3020,14 @@ test('Check CreatePaymentTransaction | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreatePaymentTransaction | 2', async () => { +test('Check ListTransactionsV2 | 4', async () => { let status = 400; try { - const response: Response = await client.send(new CreatePaymentTransaction({ - shop_id: "e0111ac5-08fd-4245-8a46-30f306051dbc", - customer_id: "547ba588-da25-4d37-92d5-6cd2f29aeafe", - private_money_id: "d66598e9-1e4a-4a48-a617-dd8e9f798236", - amount: 109, - 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, - "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, - "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":"{}"}], - request_id: "1c9e2f9b-a46c-4707-9216-9fbbe086e1e7" + 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 })); status = response.code; } catch (e) { @@ -3112,22 +3039,15 @@ test('Check CreatePaymentTransaction | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreatePaymentTransaction | 3', async () => { +test('Check ListTransactionsV2 | 5', async () => { let status = 400; try { - const response: Response = await client.send(new CreatePaymentTransaction({ - shop_id: "e0111ac5-08fd-4245-8a46-30f306051dbc", - customer_id: "547ba588-da25-4d37-92d5-6cd2f29aeafe", - private_money_id: "d66598e9-1e4a-4a48-a617-dd8e9f798236", - amount: 109, - metadata: "{\"key\":\"value\"}", - products: [{"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"}], - request_id: "566b69b3-b424-4f74-9db5-ea1e3a5e6227" + 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 })); status = response.code; } catch (e) { @@ -3139,63 +3059,16 @@ test('Check CreatePaymentTransaction | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreatePaymentTransaction | 4', async () => { +test('Check ListTransactionsV2 | 6', async () => { let status = 400; try { - const response: Response = await client.send(new CreatePaymentTransaction({ - shop_id: "e0111ac5-08fd-4245-8a46-30f306051dbc", - customer_id: "547ba588-da25-4d37-92d5-6cd2f29aeafe", - private_money_id: "d66598e9-1e4a-4a48-a617-dd8e9f798236", - amount: 109, - description: "51AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41d", - 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, - "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, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"}], - request_id: "9e91eb88-ff9d-4f59-8855-183ad2871d6e" + 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 })); status = response.code; } catch (e) { @@ -3207,13 +3080,17 @@ test('Check CreatePaymentTransaction | 4', async () => { expect(status).not.toBe(400); }) -test('Check CreateCpmTransaction | 0', async () => { +test('Check ListTransactionsV2 | 7', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "emzRdROKbGph7rDrumGN6t", - shop_id: "453a840a-8fd1-4ba3-9098-25b3cc476976", - amount: 858.0 + 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 })); status = response.code; } catch (e) { @@ -3225,14 +3102,18 @@ test('Check CreateCpmTransaction | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateCpmTransaction | 1', async () => { +test('Check ListTransactionsV2 | 8', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "emzRdROKbGph7rDrumGN6t", - shop_id: "453a840a-8fd1-4ba3-9098-25b3cc476976", - amount: 858.0, - request_id: "b3dd5bf7-4246-404b-92c6-6d3b0a212fb7" + 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 })); status = response.code; } catch (e) { @@ -3244,50 +3125,19 @@ test('Check CreateCpmTransaction | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateCpmTransaction | 2', async () => { +test('Check ListTransactionsV2 | 9', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "emzRdROKbGph7rDrumGN6t", - shop_id: "453a840a-8fd1-4ba3-9098-25b3cc476976", - amount: 858.0, - 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, - "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":"{}"}], - request_id: "6b740637-dcf0-4b1e-806c-eb63658089af" + const response: Response = await client.send(new ListTransactionsV2({ + description: "ce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzry", + transaction_id: "GRNkAeSH", + 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 })); status = response.code; } catch (e) { @@ -3299,41 +3149,20 @@ test('Check CreateCpmTransaction | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateCpmTransaction | 3', async () => { +test('Check ListTransactionsV2 | 10', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "emzRdROKbGph7rDrumGN6t", - shop_id: "453a840a-8fd1-4ba3-9098-25b3cc476976", - amount: 858.0, - 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, - "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":"{}"}], - request_id: "d91f0963-c93d-4357-9e42-203fcff11539" + const response: Response = await client.send(new ListTransactionsV2({ + customer_name: "8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsdecspEcH6zAIM8ju98", + description: "f3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRt", + transaction_id: "mknLVk7hQO", + 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 })); status = response.code; } catch (e) { @@ -3345,52 +3174,21 @@ test('Check CreateCpmTransaction | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateCpmTransaction | 4', async () => { +test('Check ListTransactionsV2 | 11', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "emzRdROKbGph7rDrumGN6t", - shop_id: "453a840a-8fd1-4ba3-9098-25b3cc476976", - amount: 858.0, - description: "R", - 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, - "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":"{}"}], - request_id: "b803dd51-b486-4285-9530-ab9195c289a8" + const response: Response = await client.send(new ListTransactionsV2({ + customer_id: "9d99c341-5555-4bb2-894c-ad6eb8ec2dca", + customer_name: "GL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpK", + description: "eG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG", + transaction_id: "9bLFf", + 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 })); status = response.code; } catch (e) { @@ -3402,14 +3200,22 @@ test('Check CreateCpmTransaction | 4', async () => { expect(status).not.toBe(400); }) -test('Check CreateTransferTransaction | 0', async () => { +test('Check ListTransactionsV2 | 12', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTransferTransaction({ - sender_id: "52f8252d-f94c-4fc1-82ab-f98fc7c85bbe", - receiver_id: "50cc933e-1efa-488e-94cc-cc031b84ad53", - private_money_id: "f5e2edb5-db1c-46c1-bebf-d6a4e02c5fe7", - amount: 5548.0 + 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", + 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 })); status = response.code; } catch (e) { @@ -3421,15 +3227,23 @@ test('Check CreateTransferTransaction | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateTransferTransaction | 1', async () => { +test('Check ListTransactionsV2 | 13', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTransferTransaction({ - sender_id: "52f8252d-f94c-4fc1-82ab-f98fc7c85bbe", - receiver_id: "50cc933e-1efa-488e-94cc-cc031b84ad53", - private_money_id: "f5e2edb5-db1c-46c1-bebf-d6a4e02c5fe7", - amount: 5548.0, - request_id: "fd39a31b-ed3e-4f2d-a9ee-bdec301a1fbb" + 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", + 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 })); status = response.code; } catch (e) { @@ -3441,16 +3255,24 @@ test('Check CreateTransferTransaction | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateTransferTransaction | 2', async () => { +test('Check ListTransactionsV2 | 14', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTransferTransaction({ - sender_id: "52f8252d-f94c-4fc1-82ab-f98fc7c85bbe", - receiver_id: "50cc933e-1efa-488e-94cc-cc031b84ad53", - private_money_id: "f5e2edb5-db1c-46c1-bebf-d6a4e02c5fe7", - amount: 5548.0, - description: "SJbgCOpN21EzYv53e8C68gL6nh3hboA1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXUyJ1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09", - request_id: "a4fed5c2-6304-495b-a996-e74ff9277b02" + 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 })); status = response.code; } catch (e) { @@ -3462,17 +3284,25 @@ test('Check CreateTransferTransaction | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateTransferTransaction | 3', async () => { +test('Check ListTransactionsV2 | 15', async () => { let status = 400; try { - const response: Response = await client.send(new CreateTransferTransaction({ - sender_id: "52f8252d-f94c-4fc1-82ab-f98fc7c85bbe", - receiver_id: "50cc933e-1efa-488e-94cc-cc031b84ad53", - private_money_id: "f5e2edb5-db1c-46c1-bebf-d6a4e02c5fe7", - amount: 5548.0, - metadata: "{\"key\":\"value\"}", - description: "TrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4d", - request_id: "5287b28d-fe04-4e01-82cc-77bf308ad1e4" + 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", + 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 })); status = response.code; } catch (e) { @@ -3484,14 +3314,13 @@ test('Check CreateTransferTransaction | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateExchangeTransaction | 0', async () => { +test('Check CreateTopupTransaction | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateExchangeTransaction({ - user_id: "a3a3a397-2b0a-4fdf-962b-b65524f446a7", - sender_private_money_id: "451fb425-d1a1-4343-93da-4b8d5acb45a3", - receiver_private_money_id: "aba0c4bc-8956-4382-a45f-5434bc75ede3", - amount: 3570.0 + 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" })); status = response.code; } catch (e) { @@ -3503,15 +3332,14 @@ test('Check CreateExchangeTransaction | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateExchangeTransaction | 1', async () => { +test('Check CreateTopupTransaction | 1', async () => { let status = 400; try { - const response: Response = await client.send(new CreateExchangeTransaction({ - user_id: "a3a3a397-2b0a-4fdf-962b-b65524f446a7", - sender_private_money_id: "451fb425-d1a1-4343-93da-4b8d5acb45a3", - receiver_private_money_id: "aba0c4bc-8956-4382-a45f-5434bc75ede3", - amount: 3570.0, - request_id: "4d70948e-0eee-4106-8e8d-bc6649c47b53" + 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" })); status = response.code; } catch (e) { @@ -3523,16 +3351,15 @@ test('Check CreateExchangeTransaction | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateExchangeTransaction | 2', async () => { +test('Check CreateTopupTransaction | 2', async () => { let status = 400; try { - const response: Response = await client.send(new CreateExchangeTransaction({ - user_id: "a3a3a397-2b0a-4fdf-962b-b65524f446a7", - sender_private_money_id: "451fb425-d1a1-4343-93da-4b8d5acb45a3", - receiver_private_money_id: "aba0c4bc-8956-4382-a45f-5434bc75ede3", - amount: 3570.0, - description: "RiXLw6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0", - request_id: "2b803869-f1aa-4ebc-b0f5-daad85ca0acc" + 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", + metadata: "{\"key\":\"value\"}", + request_id: "030cd959-7ae9-433d-907b-8d0018d356a9" })); status = response.code; } catch (e) { @@ -3544,13 +3371,16 @@ test('Check CreateExchangeTransaction | 2', async () => { expect(status).not.toBe(400); }) -test('Check BulkCreateTransaction | 0', async () => { +test('Check CreateTopupTransaction | 3', async () => { let status = 400; try { - const response: Response = await client.send(new BulkCreateTransaction({ - name: "3IQKQQHb6fikVg8U3XBig", - content: "3jy", - request_id: "a01cL7edhmrVi5NIsblUeDquiQL8YRreNoLA" + 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", + metadata: "{\"key\":\"value\"}", + request_id: "7061914c-07b7-4315-a564-a305d539bee8" })); status = response.code; } catch (e) { @@ -3562,14 +3392,17 @@ test('Check BulkCreateTransaction | 0', async () => { expect(status).not.toBe(400); }) -test('Check BulkCreateTransaction | 1', async () => { +test('Check CreateTopupTransaction | 4', async () => { let status = 400; try { - const response: Response = await client.send(new BulkCreateTransaction({ - name: "3IQKQQHb6fikVg8U3XBig", - content: "3jy", - request_id: "a01cL7edhmrVi5NIsblUeDquiQL8YRreNoLA", - private_money_id: "3f9c8b57-5a04-4720-8dca-b43bfd63efab" + 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", + metadata: "{\"key\":\"value\"}", + request_id: "3859c46b-1a83-4a4c-b64b-2e24d6c94e1d" })); status = response.code; } catch (e) { @@ -3581,15 +3414,18 @@ test('Check BulkCreateTransaction | 1', async () => { expect(status).not.toBe(400); }) -test('Check BulkCreateTransaction | 2', async () => { +test('Check CreateTopupTransaction | 5', async () => { let status = 400; try { - const response: Response = await client.send(new BulkCreateTransaction({ - name: "3IQKQQHb6fikVg8U3XBig", - content: "3jy", - request_id: "a01cL7edhmrVi5NIsblUeDquiQL8YRreNoLA", - description: "ywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1oo", - private_money_id: "3f9435bc-90a5-4fc8-8d63-5caf42ee6cf1" + 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", + metadata: "{\"key\":\"value\"}", + request_id: "b17cfe53-f624-4d0a-a77d-66734f88b581" })); status = response.code; } catch (e) { @@ -3601,11 +3437,19 @@ test('Check BulkCreateTransaction | 2', async () => { expect(status).not.toBe(400); }) -test('Check GetTransaction | 0', async () => { +test('Check CreateTopupTransaction | 6', async () => { let status = 400; try { - const response: Response = await client.send(new GetTransaction({ - transaction_id: "350f8125-1cad-47fa-bbca-69465dbbae5f" + 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", + metadata: "{\"key\":\"value\"}", + request_id: "8c138815-f8eb-46c2-8330-e7b84bbc97ed" })); status = response.code; } catch (e) { @@ -3617,11 +3461,20 @@ test('Check GetTransaction | 0', async () => { expect(status).not.toBe(400); }) -test('Check RefundTransaction | 0', async () => { +test('Check CreateTopupTransaction | 7', async () => { let status = 400; try { - const response: Response = await client.send(new RefundTransaction({ - transaction_id: "0872be14-d7bc-4da7-b080-b61946532afa" + 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", + metadata: "{\"key\":\"value\"}", + request_id: "51ebc46a-bd9a-49dd-8bd7-5914be8dc5d0" })); status = response.code; } catch (e) { @@ -3633,12 +3486,12 @@ test('Check RefundTransaction | 0', async () => { expect(status).not.toBe(400); }) -test('Check RefundTransaction | 1', async () => { +test('Check CreateTopupTransactionWithCheck | 0', async () => { let status = 400; try { - const response: Response = await client.send(new RefundTransaction({ - transaction_id: "0872be14-d7bc-4da7-b080-b61946532afa", - returning_point_expires_at: "2022-08-27T13:17:10.000000+09:00" + const response: Response = await client.send(new CreateTopupTransactionWithCheck({ + check_id: "868e5c11-4cc4-49bc-85fa-63810b85da65", + customer_id: "3918ac9a-e7ee-40b9-9e25-c17d02968c56" })); status = response.code; } catch (e) { @@ -3650,13 +3503,13 @@ test('Check RefundTransaction | 1', async () => { expect(status).not.toBe(400); }) -test('Check RefundTransaction | 2', async () => { +test('Check CreateTopupTransactionWithCheck | 1', async () => { let status = 400; try { - const response: Response = await client.send(new RefundTransaction({ - transaction_id: "0872be14-d7bc-4da7-b080-b61946532afa", - description: "8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhv", - returning_point_expires_at: "2016-01-13T12:15:33.000000+09:00" + 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" })); status = response.code; } catch (e) { @@ -3668,11 +3521,14 @@ test('Check RefundTransaction | 2', async () => { expect(status).not.toBe(400); }) -test('Check GetTransactionByRequestId | 0', async () => { +test('Check CreatePaymentTransaction | 0', async () => { let status = 400; try { - const response: Response = await client.send(new GetTransactionByRequestId({ - request_id: "47821942-0474-4d1b-b991-6e32cfb01dd9" + 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 })); status = response.code; } catch (e) { @@ -3684,14 +3540,15 @@ test('Check GetTransactionByRequestId | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateExternalTransaction | 0', async () => { +test('Check CreatePaymentTransaction | 1', async () => { let status = 400; try { - const response: Response = await client.send(new CreateExternalTransaction({ - shop_id: "73a82581-8b6a-498e-a58b-8da7d438be1e", - customer_id: "f5552e10-b0be-480e-8ec7-586b6ee31d5d", - private_money_id: "5f469105-5e65-4dbc-9fd2-1979ca04045a", - amount: 4803 + 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" })); status = response.code; } catch (e) { @@ -3703,15 +3560,41 @@ test('Check CreateExternalTransaction | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateExternalTransaction | 1', async () => { +test('Check CreatePaymentTransaction | 2', async () => { let status = 400; try { - const response: Response = await client.send(new CreateExternalTransaction({ - shop_id: "73a82581-8b6a-498e-a58b-8da7d438be1e", - customer_id: "f5552e10-b0be-480e-8ec7-586b6ee31d5d", - private_money_id: "5f469105-5e65-4dbc-9fd2-1979ca04045a", - amount: 4803, - request_id: "bf3e3878-8744-4ff7-aef9-538af7aa1175" + 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, + 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, + "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":"{}"}], + request_id: "7d67f75a-5c8b-4264-ba4d-a220bf88c88e" })); status = response.code; } catch (e) { @@ -3723,21 +3606,47 @@ test('Check CreateExternalTransaction | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateExternalTransaction | 2', async () => { +test('Check CreatePaymentTransaction | 3', async () => { let status = 400; try { - const response: Response = await client.send(new CreateExternalTransaction({ - shop_id: "73a82581-8b6a-498e-a58b-8da7d438be1e", - customer_id: "f5552e10-b0be-480e-8ec7-586b6ee31d5d", - private_money_id: "5f469105-5e65-4dbc-9fd2-1979ca04045a", - amount: 4803, + 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, + 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, + "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":"{}"}], - request_id: "fb52827a-0050-4ae4-9792-6d5e056ab966" + request_id: "42165fc1-ad2b-422c-9ad4-7a2b06f5a10f" })); status = response.code; } catch (e) { @@ -3749,14 +3658,15 @@ test('Check CreateExternalTransaction | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateExternalTransaction | 3', async () => { +test('Check CreatePaymentTransaction | 4', async () => { let status = 400; try { - const response: Response = await client.send(new CreateExternalTransaction({ - shop_id: "73a82581-8b6a-498e-a58b-8da7d438be1e", - customer_id: "f5552e10-b0be-480e-8ec7-586b6ee31d5d", - private_money_id: "5f469105-5e65-4dbc-9fd2-1979ca04045a", - amount: 4803, + 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", metadata: "{\"key\":\"value\"}", products: [{"jan_code":"abc", "name":"name1", @@ -3803,8 +3713,13 @@ test('Check CreateExternalTransaction | 3', async () => { "unit_price":100, "price": 100, "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "is_discounted": false, "other":"{}"}], - request_id: "54113df7-4134-43b8-b253-b11f12d37d0c" + request_id: "6ad79f33-4be6-4e00-99b9-eca699fa8e64" })); status = response.code; } catch (e) { @@ -3816,18 +3731,13 @@ test('Check CreateExternalTransaction | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateExternalTransaction | 4', async () => { +test('Check CreateCpmTransaction | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateExternalTransaction({ - shop_id: "73a82581-8b6a-498e-a58b-8da7d438be1e", - customer_id: "f5552e10-b0be-480e-8ec7-586b6ee31d5d", - private_money_id: "5f469105-5e65-4dbc-9fd2-1979ca04045a", - amount: 4803, - description: "6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2iLhkB08mWoSEw4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAg", - metadata: "{\"key\":\"value\"}", - products: [], - request_id: "f88bd397-0d00-4a14-9392-c1ce23272b4a" + const response: Response = await client.send(new CreateCpmTransaction({ + cpm_token: "jMgk8QSZwJ1udEIb7zDJ6K", + shop_id: "18bed4da-27d4-4c23-91db-b3c5b1944e6b", + amount: 4884.0 })); status = response.code; } catch (e) { @@ -3839,11 +3749,14 @@ test('Check CreateExternalTransaction | 4', async () => { expect(status).not.toBe(400); }) -test('Check RefundExternalTransaction | 0', async () => { +test('Check CreateCpmTransaction | 1', async () => { let status = 400; try { - const response: Response = await client.send(new RefundExternalTransaction({ - event_id: "51ab617e-b1cb-4a80-bb2e-9109284e621e" + 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" })); status = response.code; } catch (e) { @@ -3855,12 +3768,30 @@ test('Check RefundExternalTransaction | 0', async () => { expect(status).not.toBe(400); }) -test('Check RefundExternalTransaction | 1', async () => { +test('Check CreateCpmTransaction | 2', async () => { let status = 400; try { - const response: Response = await client.send(new RefundExternalTransaction({ - event_id: "51ab617e-b1cb-4a80-bb2e-9109284e621e", - description: "DEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04aLs4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZma6CRo8nyJO9Y3f9djMgk8QSZwJ" + const response: Response = await client.send(new CreateCpmTransaction({ + cpm_token: "jMgk8QSZwJ1udEIb7zDJ6K", + shop_id: "18bed4da-27d4-4c23-91db-b3c5b1944e6b", + amount: 4884.0, + 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, + "is_discounted": false, + "other":"{}"}], + request_id: "23667b47-a8f1-46bf-a438-206a38759b97" })); status = response.code; } catch (e) { @@ -3872,10 +3803,22 @@ test('Check RefundExternalTransaction | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 0', async () => { +test('Check CreateCpmTransaction | 3', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers()); + const response: Response = await client.send(new CreateCpmTransaction({ + cpm_token: "jMgk8QSZwJ1udEIb7zDJ6K", + shop_id: "18bed4da-27d4-4c23-91db-b3c5b1944e6b", + amount: 4884.0, + metadata: "{\"key\":\"value\"}", + products: [{"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "is_discounted": false, + "other":"{}"}], + request_id: "d06e9347-04e9-4b68-8632-23298ca3f192" + })); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -3886,11 +3829,37 @@ test('Check ListTransfers | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 1', async () => { +test('Check CreateCpmTransaction | 4', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - description: "udEIb7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZ" + const response: Response = await client.send(new CreateCpmTransaction({ + cpm_token: "jMgk8QSZwJ1udEIb7zDJ6K", + shop_id: "18bed4da-27d4-4c23-91db-b3c5b1944e6b", + amount: 4884.0, + description: "zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pP", + 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, + "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "is_discounted": false, + "other":"{}"}], + request_id: "338ac73d-0ec8-4345-b5b7-80b49109483c" })); status = response.code; } catch (e) { @@ -3902,12 +3871,14 @@ test('Check ListTransfers | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 2', async () => { +test('Check CreateTransferTransaction | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - transfer_types: ["coupon", "transfer", "expire", "campaign", "payment", "exchange", "cashback"], - description: "luHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE" + 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 })); status = response.code; } catch (e) { @@ -3919,13 +3890,15 @@ test('Check ListTransfers | 2', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 3', async () => { +test('Check CreateTransferTransaction | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - transaction_types: ["expire", "topup", "transfer", "cashback"], - transfer_types: ["coupon", "cashback", "exchange"], - description: "R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQl4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxc" + 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" })); status = response.code; } catch (e) { @@ -3937,14 +3910,16 @@ test('Check ListTransfers | 3', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 4', async () => { +test('Check CreateTransferTransaction | 2', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - is_modified: false, - transaction_types: ["cashback", "transfer"], - transfer_types: ["cashback", "topup", "payment", "exchange", "coupon", "expire"], - description: "P20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4T" + 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" })); status = response.code; } catch (e) { @@ -3956,15 +3931,17 @@ test('Check ListTransfers | 4', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 5', async () => { +test('Check CreateTransferTransaction | 3', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - private_money_id: "eebe2714-ac3b-4710-9b4c-0ac0b6af2b39", - is_modified: false, - transaction_types: ["exchange", "payment"], - transfer_types: ["payment", "cashback", "topup", "campaign", "expire", "transfer"], - description: "jGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7e1DJ" + 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, + metadata: "{\"key\":\"value\"}", + description: "6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdz", + request_id: "d7a5de29-8fda-47c0-ba8e-5e36d9e5fbff" })); status = response.code; } catch (e) { @@ -3976,16 +3953,14 @@ test('Check ListTransfers | 5', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 6', async () => { +test('Check CreateExchangeTransaction | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - transaction_id: "bd4ecbbf-6a8e-4f06-92ed-2e3d3d957857", - private_money_id: "ab7ef1c3-e088-445d-b626-062c3721cb7b", - is_modified: false, - transaction_types: ["topup", "transfer", "cashback"], - transfer_types: ["expire", "campaign", "coupon", "transfer", "exchange", "topup", "cashback", "payment"], - description: "TTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6tzaZ" + 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 })); status = response.code; } catch (e) { @@ -3997,17 +3972,15 @@ test('Check ListTransfers | 6', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 7', async () => { +test('Check CreateExchangeTransaction | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - customer_name: "sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM2D", - transaction_id: "12d3dc8a-4aab-45f6-bcd1-828bc24caba8", - private_money_id: "9a665627-9c18-4e05-9375-102d7c8ec127", - is_modified: false, - transaction_types: [], - transfer_types: ["cashback", "payment", "transfer", "exchange", "topup", "campaign", "expire"], - description: "uzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB" + 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" })); status = response.code; } catch (e) { @@ -4019,18 +3992,16 @@ test('Check ListTransfers | 7', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 8', async () => { +test('Check CreateExchangeTransaction | 2', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - customer_id: "c1943892-da34-4650-a602-2d6e13fccb94", - customer_name: "9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLx", - transaction_id: "9272f5d0-ba8e-4c1a-9955-001721605911", - private_money_id: "65c80131-2f23-43a3-9ec7-331c81233886", - is_modified: true, - transaction_types: [], - transfer_types: ["cashback", "transfer", "exchange", "expire", "coupon", "payment", "campaign"], - description: "BgmDSuxOmphkziTG6p4HsLeIcNrFvlQBIX1JBgnrD1yLFlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9YuKsTG" + 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" })); status = response.code; } catch (e) { @@ -4042,19 +4013,13 @@ test('Check ListTransfers | 8', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 9', async () => { +test('Check BulkCreateTransaction | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - shop_name: "ECVvJsAnqjel2la3rWWdK2ybDtX", - customer_id: "6e809cca-0969-4be9-af7b-4f9dd8b0cd5e", - customer_name: "ZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6Pszk", - transaction_id: "ef7eb08c-4e4e-4b9a-86bc-db8730a560b3", - private_money_id: "27487f33-f1b5-46a9-953e-e73cf3c04731", - is_modified: true, - transaction_types: ["topup"], - transfer_types: ["exchange", "cashback", "topup", "coupon", "expire"], - description: "E88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5" + const response: Response = await client.send(new BulkCreateTransaction({ + name: "XKPSRM", + content: "YMVxniA", + request_id: "NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH" })); status = response.code; } catch (e) { @@ -4066,20 +4031,14 @@ test('Check ListTransfers | 9', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 10', async () => { +test('Check BulkCreateTransaction | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - shop_id: "9d98c068-9457-4a0d-92ef-fd8a5cb7a58b", - shop_name: "q8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02E", - customer_id: "cc8dfb2c-d6d4-447f-9c95-3cf4ba108bcd", - customer_name: "3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ9ssluYJ", - transaction_id: "cd5bac21-b648-4703-be20-a72cc72e4213", - private_money_id: "28b295dd-94bb-46c1-ac09-7f79237f08ec", - is_modified: true, - transaction_types: ["topup", "payment", "expire", "exchange"], - transfer_types: ["expire", "coupon"], - description: "Flgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLvJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7nFXURkjCcagg1x0DCy4shXKR7nTWCyIt3" + const response: Response = await client.send(new BulkCreateTransaction({ + name: "XKPSRM", + content: "YMVxniA", + request_id: "NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH", + private_money_id: "19a91c59-b734-4147-80d0-a82a1224a44d" })); status = response.code; } catch (e) { @@ -4091,21 +4050,15 @@ test('Check ListTransfers | 10', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 11', async () => { +test('Check BulkCreateTransaction | 2', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - per_page: 5192, - shop_id: "83056e8b-b3f2-42b6-b587-a0622fb143d5", - shop_name: "QRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGV", - customer_id: "61d36a8f-86e8-4cbd-b3fc-0c4c09340d4a", - customer_name: "iqbQ3MQR9CltXlG6ahNcft", - transaction_id: "a8b0c5b2-de32-4150-abf2-1890b5134305", - private_money_id: "ed0c6b29-3240-4aa5-acec-2dfc18ac4573", - is_modified: false, - transaction_types: [], - transfer_types: ["expire", "cashback", "payment", "coupon", "transfer", "topup", "exchange", "campaign"], - description: "mQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI" + 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" })); status = response.code; } catch (e) { @@ -4117,22 +4070,11 @@ test('Check ListTransfers | 11', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 12', async () => { +test('Check GetTransaction | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - page: 910, - per_page: 3712, - shop_id: "7a9b4c1f-a8b1-43de-a5c4-ed1aac1e0bb4", - shop_name: "xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpN", - customer_id: "bba87dd0-beee-40cf-b3a7-7eb917805157", - customer_name: "WvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNHBAUn0qZzCUW", - transaction_id: "0e5e3040-f1c9-415a-ac0f-5ef5c040ff28", - private_money_id: "88ab7ba0-d2b3-43ee-96c3-26d0e19d3855", - is_modified: true, - transaction_types: ["topup", "cashback"], - transfer_types: ["expire", "topup", "coupon", "cashback", "transfer", "payment", "campaign"], - description: "lGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN" + const response: Response = await client.send(new GetTransaction({ + transaction_id: "3c306e03-fc9f-4742-819e-76eb7dc7271d" })); status = response.code; } catch (e) { @@ -4144,23 +4086,11 @@ test('Check ListTransfers | 12', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 13', async () => { +test('Check RefundTransaction | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - to: "2021-11-10T05:05:09.000000+09:00", - page: 6208, - per_page: 606, - shop_id: "0446b494-cc11-4ab6-9cfb-bc083196d46b", - shop_name: "EZNJtfvLzUTMMVxGv3INa5f5", - customer_id: "63a8a7b4-39bb-4259-89b1-e2ab2db53250", - customer_name: "h3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9H", - transaction_id: "74f4636d-6830-4c00-9311-6d0670f49748", - private_money_id: "9b73eaa7-59a6-42c2-953c-7dcbde01f6c3", - is_modified: true, - transaction_types: ["expire", "topup", "transfer", "payment", "cashback"], - transfer_types: ["exchange", "cashback", "topup"], - description: "1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5rX0rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh0" + const response: Response = await client.send(new RefundTransaction({ + transaction_id: "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1" })); status = response.code; } catch (e) { @@ -4172,24 +4102,12 @@ test('Check ListTransfers | 13', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfers | 14', async () => { +test('Check RefundTransaction | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfers({ - from: "2022-10-12T00:16:00.000000+09:00", - to: "2018-07-27T23:11:18.000000+09:00", - page: 8966, - per_page: 9686, - shop_id: "70cdc20d-e86d-4023-a70a-3854d96a594a", - shop_name: "gltXUvopMAE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiat", - customer_id: "53f73dab-b7e0-4a98-8b52-55edfd6001cc", - customer_name: "7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLiOm0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDC", - transaction_id: "9c9b36bf-3d27-42d1-80d2-95673c957a07", - private_money_id: "82864cac-7d7d-46e2-a2be-6eaa4048c268", - is_modified: false, - transaction_types: [], - transfer_types: ["payment"], - description: "FvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwy" + 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" })); status = response.code; } catch (e) { @@ -4201,10 +4119,14 @@ test('Check ListTransfers | 14', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 0', async () => { +test('Check RefundTransaction | 2', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2()); + 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" + })); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -4215,11 +4137,11 @@ test('Check ListTransfersV2 | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 1', async () => { +test('Check GetTransactionByRequestId | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - to: "2021-06-26T02:33:13.000000+09:00" + const response: Response = await client.send(new GetTransactionByRequestId({ + request_id: "0ed68ecd-85d3-4714-bcd1-033669dd0e2b" })); status = response.code; } catch (e) { @@ -4231,12 +4153,14 @@ test('Check ListTransfersV2 | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 2', async () => { +test('Check CreateExternalTransaction | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - from: "2025-06-25T03:10:21.000000+09:00", - to: "2024-03-02T21:29:08.000000+09:00" + 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 })); status = response.code; } catch (e) { @@ -4248,13 +4172,15 @@ test('Check ListTransfersV2 | 2', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 3', async () => { +test('Check CreateExternalTransaction | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - description: "sb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3", - from: "2023-07-01T05:10:09.000000+09:00", - to: "2018-12-06T18:27:45.000000+09:00" + 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" })); status = response.code; } catch (e) { @@ -4266,14 +4192,31 @@ test('Check ListTransfersV2 | 3', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 4', async () => { +test('Check CreateExternalTransaction | 2', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - transfer_types: ["transfer", "campaign", "coupon", "expire", "topup"], - description: "dPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZds", - from: "2020-09-30T15:19:44.000000+09:00", - to: "2016-04-12T01:32:51.000000+09:00" + 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, + 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, + "is_discounted": false, + "other":"{}"}], + request_id: "ce67ec62-5417-4af1-9aee-5c30fdbb3e95" })); status = response.code; } catch (e) { @@ -4285,15 +4228,67 @@ test('Check ListTransfersV2 | 4', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 5', async () => { +test('Check CreateExternalTransaction | 3', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - per_page: 888, - transfer_types: ["campaign", "expire"], - description: "lf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO5", - from: "2019-01-30T00:51:25.000000+09:00", - to: "2016-12-17T05:26:15.000000+09:00" + 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, + 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, + "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, + "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":"{}"}], + request_id: "e8a6fd63-0375-4a18-818a-9fc9e853672a" })); status = response.code; } catch (e) { @@ -4305,16 +4300,58 @@ test('Check ListTransfersV2 | 5', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 6', async () => { +test('Check CreateExternalTransaction | 4', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - prev_page_cursor_id: "5482be37-2c7e-47a1-8453-cabdea672c66", - per_page: 390, - transfer_types: ["payment", "coupon", "cashback", "campaign", "expire"], - description: "2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZz", - from: "2022-04-04T15:52:42.000000+09:00", - to: "2022-10-16T22:52:28.000000+09:00" + 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", + 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, + "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, + "is_discounted": false, + "other":"{}"}], + request_id: "750722eb-dd49-47f6-949b-24da4059d2ee" })); status = response.code; } catch (e) { @@ -4326,17 +4363,11 @@ test('Check ListTransfersV2 | 6', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 7', async () => { +test('Check RefundExternalTransaction | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - next_page_cursor_id: "2a1ae21e-88da-4509-b8f4-5a1e5e3dc17e", - prev_page_cursor_id: "ee77b0ea-fcba-4373-a800-273ee0e69d36", - per_page: 313, - transfer_types: ["transfer", "coupon", "expire", "exchange", "cashback", "campaign", "payment"], - description: "aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsF", - from: "2021-12-29T06:07:50.000000+09:00", - to: "2019-05-24T22:49:49.000000+09:00" + const response: Response = await client.send(new RefundExternalTransaction({ + event_id: "7141b1d2-93ce-4ba0-8ec1-1cf697f2e9b7" })); status = response.code; } catch (e) { @@ -4348,18 +4379,12 @@ test('Check ListTransfersV2 | 7', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 8', async () => { +test('Check RefundExternalTransaction | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - transaction_types: ["topup", "payment", "exchange"], - next_page_cursor_id: "5c791657-eaf2-44fa-9de9-0912f0e284eb", - prev_page_cursor_id: "b99e73c8-dbb0-4fbf-84f2-9ea7d33a6b54", - per_page: 420, - transfer_types: ["topup", "campaign", "transfer"], - description: "RX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGG", - from: "2016-03-04T20:09:00.000000+09:00", - to: "2019-10-16T21:14:59.000000+09:00" + const response: Response = await client.send(new RefundExternalTransaction({ + event_id: "7141b1d2-93ce-4ba0-8ec1-1cf697f2e9b7", + description: "oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4h" })); status = response.code; } catch (e) { @@ -4371,20 +4396,10 @@ test('Check ListTransfersV2 | 8', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 9', async () => { +test('Check ListTransfers | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - is_modified: true, - transaction_types: [], - next_page_cursor_id: "ae58e6a4-b375-47e3-a2bd-835a779d29a4", - prev_page_cursor_id: "a8f39328-c324-4cb4-a765-43bc4dcb55b0", - per_page: 927, - transfer_types: [], - description: "2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS", - from: "2020-08-13T16:41:58.000000+09:00", - to: "2021-01-10T03:58:27.000000+09:00" - })); + const response: Response = await client.send(new ListTransfers()); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -4395,20 +4410,11 @@ test('Check ListTransfersV2 | 9', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 10', async () => { +test('Check ListTransfers | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - private_money_id: "66256eea-8326-4400-a1ab-1a378fac0e9c", - is_modified: true, - transaction_types: ["expire", "exchange", "topup", "transfer"], - next_page_cursor_id: "c8060e57-82e2-4fa1-966a-2ca8a315f509", - prev_page_cursor_id: "b8e908d8-4fc7-4866-ba25-d643a0a2e7ed", - per_page: 129, - transfer_types: ["exchange", "cashback", "coupon", "expire", "transfer", "topup"], - description: "rCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GI", - from: "2016-11-23T12:14:41.000000+09:00", - to: "2018-12-04T12:29:01.000000+09:00" + const response: Response = await client.send(new ListTransfers({ + description: "G6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV" })); status = response.code; } catch (e) { @@ -4420,21 +4426,12 @@ test('Check ListTransfersV2 | 10', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 11', async () => { +test('Check ListTransfers | 2', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - transaction_id: "911dc1b0-02d0-4c09-88bc-5d92f62e92c7", - private_money_id: "323413ad-cfd5-4eb4-b59f-26247c28b0f5", - is_modified: true, - transaction_types: ["expire", "payment"], - next_page_cursor_id: "5301ba98-1230-42e4-830f-34cafde925a2", - prev_page_cursor_id: "10a14565-72ce-4e99-8e80-3094f99e8676", - per_page: 470, - transfer_types: ["transfer", "expire", "exchange"], - description: "hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57", - from: "2024-01-26T06:49:51.000000+09:00", - to: "2017-06-07T12:33:42.000000+09:00" + const response: Response = await client.send(new ListTransfers({ + transfer_types: ["campaign", "transfer", "coupon", "cashback", "payment"], + description: "z14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A8" })); status = response.code; } catch (e) { @@ -4446,22 +4443,13 @@ test('Check ListTransfersV2 | 11', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 12', async () => { +test('Check ListTransfers | 3', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - customer_name: "AikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL", - transaction_id: "79249bad-dffb-44b9-8b3c-04891141ee9e", - private_money_id: "0d3b28f8-fcbc-45b0-aa91-8ad989bc2e6b", - is_modified: false, - transaction_types: ["exchange"], - next_page_cursor_id: "99603510-8d7b-4ce3-9fcf-2bbe1c61fdd4", - prev_page_cursor_id: "ad293d7b-72bd-4500-a75f-22b2d4302c88", - per_page: 436, - transfer_types: ["expire", "coupon", "transfer", "topup", "campaign", "cashback", "exchange", "payment"], - description: "rX6ozTzm0HG0TosxKz4jitwH", - from: "2024-07-29T22:19:40.000000+09:00", - to: "2020-06-30T12:00:14.000000+09:00" + 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" })); status = response.code; } catch (e) { @@ -4473,23 +4461,14 @@ test('Check ListTransfersV2 | 12', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 13', async () => { +test('Check ListTransfers | 4', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - customer_id: "924d87ea-e97f-410b-8b68-a63b60e8110b", - customer_name: "wCFGwiyv4vlRBRxfHZeKBVf4jVt", - transaction_id: "b844b3e5-6706-4763-bed1-d7ce53ef1575", - private_money_id: "c87837e2-8f49-46e4-8804-97e5e55ff29d", + const response: Response = await client.send(new ListTransfers({ is_modified: true, - transaction_types: ["payment", "exchange", "transfer", "topup", "cashback"], - next_page_cursor_id: "645d5f93-703f-4572-adf6-5cf084b5ae65", - prev_page_cursor_id: "6f9f190a-22ce-48fd-b836-0907df44af1a", - per_page: 999, - transfer_types: ["cashback", "expire", "topup", "payment"], - description: "gyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWC", - from: "2019-09-22T01:48:11.000000+09:00", - to: "2017-11-01T01:12:49.000000+09:00" + transaction_types: ["cashback", "transfer", "payment", "topup"], + transfer_types: ["topup", "payment", "cashback"], + description: "hZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5" })); status = response.code; } catch (e) { @@ -4501,24 +4480,15 @@ test('Check ListTransfersV2 | 13', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 14', async () => { +test('Check ListTransfers | 5', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - shop_name: "6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6NsjU", - customer_id: "3e379615-3622-40e1-a9ab-5ac4da3f4b3a", - customer_name: "roY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7ea", - transaction_id: "45d69e46-5ec7-4a9f-9e6f-5d69c554f789", - private_money_id: "57c2154f-35d0-4a13-a9cb-788bc6db59d2", + const response: Response = await client.send(new ListTransfers({ + private_money_id: "756e8b6f-d54a-4a6e-8836-7b9aa432b39e", is_modified: true, - transaction_types: [], - next_page_cursor_id: "c6fe6e39-fe3e-481a-8755-b73a1fa46d96", - prev_page_cursor_id: "80ecd67b-a8bb-4d3a-be60-7dd48bbc81e0", - per_page: 228, - transfer_types: ["cashback", "coupon", "topup", "exchange"], - description: "sZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7C", - from: "2018-03-01T07:41:41.000000+09:00", - to: "2017-02-01T20:47:42.000000+09:00" + transaction_types: ["cashback", "payment"], + transfer_types: ["expire", "topup", "exchange", "coupon", "cashback", "payment", "campaign", "transfer"], + description: "mDSuxOmphkziTG6p4H" })); status = response.code; } catch (e) { @@ -4530,25 +4500,16 @@ test('Check ListTransfersV2 | 14', async () => { expect(status).not.toBe(400); }) -test('Check ListTransfersV2 | 15', async () => { +test('Check ListTransfers | 6', async () => { let status = 400; try { - const response: Response = await client.send(new ListTransfersV2({ - shop_id: "62a0dac4-fdfb-407d-86e0-2ecb13727a13", - shop_name: "Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tO", - customer_id: "3a0c4440-b178-405b-b1dd-3dfed24f3975", - customer_name: "eNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2", - transaction_id: "7b710a91-7d0c-4feb-aa93-efa8a9a2f239", - private_money_id: "b8368dc9-3490-4e44-8490-6d93394d4095", + 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: ["transfer", "expire", "topup", "cashback", "payment"], - next_page_cursor_id: "26479cb5-77b3-4e48-8b9b-d5a98d88ae14", - prev_page_cursor_id: "b47f9a34-63a2-4763-9404-1d25db9162c3", - per_page: 354, - transfer_types: ["cashback", "topup", "campaign", "transfer", "payment"], - description: "6J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspd", - from: "2015-10-21T15:08:57.000000+09:00", - to: "2025-03-08T23:28:16.000000+09:00" + transaction_types: ["topup", "cashback"], + transfer_types: ["exchange", "expire"], + description: "JBgnrD1yLFlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9Yu" })); status = response.code; } catch (e) { @@ -4560,15 +4521,17 @@ test('Check ListTransfersV2 | 15', async () => { expect(status).not.toBe(400); }) -test('Check CreateOrganization | 0', async () => { +test('Check ListTransfers | 7', async () => { let status = 400; try { - const response: Response = await client.send(new CreateOrganization({ - code: "cDGU85LATApz", - name: "Q2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sl", - private_money_ids: ["a90703b8-10b8-4b01-9673-1b0a6f58a9ec", "13246a37-41f2-40d3-9240-d5ae28938dd7", "ae0d5b9a-ca9c-41cb-8e5d-e40e3ceae04e", "0523fa39-0213-406f-90fd-7f5139553d01", "c369776a-0dc8-4e89-8d2e-41f31a3bf73e", "1f484c94-d8bf-4c4e-9834-41b89cc1c5d6"], - issuer_admin_user_email: "kSyiuzE1L2@wv36.com", - member_admin_user_email: "YuE4jwp0Ii@R44I.com" + 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", + is_modified: false, + transaction_types: ["exchange", "expire", "payment", "cashback", "transfer"], + transfer_types: ["topup", "exchange", "coupon", "expire", "cashback", "campaign", "payment"], + description: "1wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Ho" })); status = response.code; } catch (e) { @@ -4580,16 +4543,18 @@ test('Check CreateOrganization | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateOrganization | 1', async () => { +test('Check ListTransfers | 8', async () => { let status = 400; try { - const response: Response = await client.send(new CreateOrganization({ - code: "cDGU85LATApz", - name: "Q2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sl", - private_money_ids: ["a90703b8-10b8-4b01-9673-1b0a6f58a9ec", "13246a37-41f2-40d3-9240-d5ae28938dd7", "ae0d5b9a-ca9c-41cb-8e5d-e40e3ceae04e", "0523fa39-0213-406f-90fd-7f5139553d01", "c369776a-0dc8-4e89-8d2e-41f31a3bf73e", "1f484c94-d8bf-4c4e-9834-41b89cc1c5d6"], - issuer_admin_user_email: "kSyiuzE1L2@wv36.com", - member_admin_user_email: "YuE4jwp0Ii@R44I.com", - contact_name: "KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd3" + 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" })); status = response.code; } catch (e) { @@ -4601,17 +4566,19 @@ test('Check CreateOrganization | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateOrganization | 2', async () => { +test('Check ListTransfers | 9', async () => { let status = 400; try { - const response: Response = await client.send(new CreateOrganization({ - code: "cDGU85LATApz", - name: "Q2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sl", - private_money_ids: ["a90703b8-10b8-4b01-9673-1b0a6f58a9ec", "13246a37-41f2-40d3-9240-d5ae28938dd7", "ae0d5b9a-ca9c-41cb-8e5d-e40e3ceae04e", "0523fa39-0213-406f-90fd-7f5139553d01", "c369776a-0dc8-4e89-8d2e-41f31a3bf73e", "1f484c94-d8bf-4c4e-9834-41b89cc1c5d6"], - issuer_admin_user_email: "kSyiuzE1L2@wv36.com", - member_admin_user_email: "YuE4jwp0Ii@R44I.com", - bank_account_holder_name: "」", - contact_name: "5gyuBKlwozbM8BIp6WWFtoNM3mKKWyb" + 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" })); status = response.code; } catch (e) { @@ -4623,18 +4590,20 @@ test('Check CreateOrganization | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateOrganization | 3', async () => { +test('Check ListTransfers | 10', async () => { let status = 400; try { - const response: Response = await client.send(new CreateOrganization({ - code: "cDGU85LATApz", - name: "Q2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sl", - private_money_ids: ["a90703b8-10b8-4b01-9673-1b0a6f58a9ec", "13246a37-41f2-40d3-9240-d5ae28938dd7", "ae0d5b9a-ca9c-41cb-8e5d-e40e3ceae04e", "0523fa39-0213-406f-90fd-7f5139553d01", "c369776a-0dc8-4e89-8d2e-41f31a3bf73e", "1f484c94-d8bf-4c4e-9834-41b89cc1c5d6"], - issuer_admin_user_email: "kSyiuzE1L2@wv36.com", - member_admin_user_email: "YuE4jwp0Ii@R44I.com", - bank_account: "2393", - bank_account_holder_name: ",", - contact_name: "EDw10SY48ZoA8oj9alrEKYDjBWPKC" + 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" })); status = response.code; } catch (e) { @@ -4646,19 +4615,21 @@ test('Check CreateOrganization | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateOrganization | 4', async () => { +test('Check ListTransfers | 11', async () => { let status = 400; try { - const response: Response = await client.send(new CreateOrganization({ - code: "cDGU85LATApz", - name: "Q2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sl", - private_money_ids: ["a90703b8-10b8-4b01-9673-1b0a6f58a9ec", "13246a37-41f2-40d3-9240-d5ae28938dd7", "ae0d5b9a-ca9c-41cb-8e5d-e40e3ceae04e", "0523fa39-0213-406f-90fd-7f5139553d01", "c369776a-0dc8-4e89-8d2e-41f31a3bf73e", "1f484c94-d8bf-4c4e-9834-41b89cc1c5d6"], - issuer_admin_user_email: "kSyiuzE1L2@wv36.com", - member_admin_user_email: "YuE4jwp0Ii@R44I.com", - bank_account_type: "other", - bank_account: "366350", - bank_account_holder_name: ".", - contact_name: "qVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869" + 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", + is_modified: true, + transaction_types: ["expire", "payment", "exchange", "transfer", "topup"], + transfer_types: ["payment", "cashback", "coupon", "transfer", "expire", "campaign", "topup", "exchange"], + description: "28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S" })); status = response.code; } catch (e) { @@ -4670,20 +4641,22 @@ test('Check CreateOrganization | 4', async () => { expect(status).not.toBe(400); }) -test('Check CreateOrganization | 5', async () => { +test('Check ListTransfers | 12', async () => { let status = 400; try { - const response: Response = await client.send(new CreateOrganization({ - code: "cDGU85LATApz", - name: "Q2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sl", - private_money_ids: ["a90703b8-10b8-4b01-9673-1b0a6f58a9ec", "13246a37-41f2-40d3-9240-d5ae28938dd7", "ae0d5b9a-ca9c-41cb-8e5d-e40e3ceae04e", "0523fa39-0213-406f-90fd-7f5139553d01", "c369776a-0dc8-4e89-8d2e-41f31a3bf73e", "1f484c94-d8bf-4c4e-9834-41b89cc1c5d6"], - issuer_admin_user_email: "kSyiuzE1L2@wv36.com", - member_admin_user_email: "YuE4jwp0Ii@R44I.com", - bank_branch_code: "", - bank_account_type: "other", - bank_account: "6197413", - bank_account_holder_name: "ヲ", - contact_name: "GH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryP" + 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", + is_modified: false, + transaction_types: ["cashback", "payment", "expire", "topup", "transfer"], + transfer_types: ["exchange", "payment", "expire", "campaign"], + description: "ShoExxXDz" })); status = response.code; } catch (e) { @@ -4695,21 +4668,23 @@ test('Check CreateOrganization | 5', async () => { expect(status).not.toBe(400); }) -test('Check CreateOrganization | 6', async () => { +test('Check ListTransfers | 13', async () => { let status = 400; try { - const response: Response = await client.send(new CreateOrganization({ - code: "cDGU85LATApz", - name: "Q2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sl", - private_money_ids: ["a90703b8-10b8-4b01-9673-1b0a6f58a9ec", "13246a37-41f2-40d3-9240-d5ae28938dd7", "ae0d5b9a-ca9c-41cb-8e5d-e40e3ceae04e", "0523fa39-0213-406f-90fd-7f5139553d01", "c369776a-0dc8-4e89-8d2e-41f31a3bf73e", "1f484c94-d8bf-4c4e-9834-41b89cc1c5d6"], - issuer_admin_user_email: "kSyiuzE1L2@wv36.com", - member_admin_user_email: "YuE4jwp0Ii@R44I.com", - bank_branch_name: "P6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZ", - bank_branch_code: "577", - bank_account_type: "other", - bank_account: "0122", - bank_account_holder_name: "ヲ", - contact_name: "8QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB" + 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" })); status = response.code; } catch (e) { @@ -4721,22 +4696,24 @@ test('Check CreateOrganization | 6', async () => { expect(status).not.toBe(400); }) -test('Check CreateOrganization | 7', async () => { +test('Check ListTransfers | 14', async () => { let status = 400; try { - const response: Response = await client.send(new CreateOrganization({ - code: "cDGU85LATApz", - name: "Q2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sl", - private_money_ids: ["a90703b8-10b8-4b01-9673-1b0a6f58a9ec", "13246a37-41f2-40d3-9240-d5ae28938dd7", "ae0d5b9a-ca9c-41cb-8e5d-e40e3ceae04e", "0523fa39-0213-406f-90fd-7f5139553d01", "c369776a-0dc8-4e89-8d2e-41f31a3bf73e", "1f484c94-d8bf-4c4e-9834-41b89cc1c5d6"], - issuer_admin_user_email: "kSyiuzE1L2@wv36.com", - member_admin_user_email: "YuE4jwp0Ii@R44I.com", - bank_code: "4559", - bank_branch_name: "YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbH", - bank_branch_code: "082", - bank_account_type: "other", - bank_account: "195579", - bank_account_holder_name: "「", - contact_name: "4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh" + const response: Response = await client.send(new ListTransfers({ + from: "2021-06-05T17:48:04.000000Z", + to: "2020-12-26T02:42:27.000000Z", + page: 218, + per_page: 6793, + shop_id: "66729419-18d7-478c-8d83-149b011f45e1", + shop_name: "6BMdHbor9Bi8VjYj", + customer_id: "ed0ac265-39c1-40c6-9eb8-7fe0ee0b134e", + customer_name: "8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU", + transaction_id: "d59e9431-15a1-4f54-944e-4e02a1dc8d30", + private_money_id: "d8651879-e2d8-4d24-b687-def752387178", + is_modified: false, + transaction_types: ["cashback"], + transfer_types: ["expire", "payment", "topup"], + description: "klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCId" })); status = response.code; } catch (e) { @@ -4748,24 +4725,10 @@ test('Check CreateOrganization | 7', async () => { expect(status).not.toBe(400); }) -test('Check CreateOrganization | 8', async () => { +test('Check ListTransfersV2 | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateOrganization({ - code: "cDGU85LATApz", - name: "Q2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sl", - private_money_ids: ["a90703b8-10b8-4b01-9673-1b0a6f58a9ec", "13246a37-41f2-40d3-9240-d5ae28938dd7", "ae0d5b9a-ca9c-41cb-8e5d-e40e3ceae04e", "0523fa39-0213-406f-90fd-7f5139553d01", "c369776a-0dc8-4e89-8d2e-41f31a3bf73e", "1f484c94-d8bf-4c4e-9834-41b89cc1c5d6"], - issuer_admin_user_email: "kSyiuzE1L2@wv36.com", - member_admin_user_email: "YuE4jwp0Ii@R44I.com", - bank_name: "03BvqB7CzLjYHoO28zEE65UlKtMCe12", - bank_code: "", - bank_branch_name: "UV2dxrA2428zEW", - bank_branch_code: "", - bank_account_type: "other", - bank_account: "68", - bank_account_holder_name: "\\", - contact_name: "qtedPzV8NdiYCurcmVOPZzwMWHgQ0" - })); + const response: Response = await client.send(new ListTransfersV2()); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -4776,10 +4739,12 @@ test('Check CreateOrganization | 8', async () => { expect(status).not.toBe(400); }) -test('Check ListShops | 0', async () => { +test('Check ListTransfersV2 | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListShops()); + const response: Response = await client.send(new ListTransfersV2({ + to: "2021-08-19T09:40:54.000000Z" + })); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -4790,11 +4755,12 @@ test('Check ListShops | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListShops | 1', async () => { +test('Check ListTransfersV2 | 2', async () => { let status = 400; try { - const response: Response = await client.send(new ListShops({ - per_page: 8532 + const response: Response = await client.send(new ListTransfersV2({ + from: "2021-06-29T12:37:03.000000Z", + to: "2021-12-08T00:35:28.000000Z" })); status = response.code; } catch (e) { @@ -4806,12 +4772,13 @@ test('Check ListShops | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListShops | 2', async () => { +test('Check ListTransfersV2 | 3', async () => { let status = 400; try { - const response: Response = await client.send(new ListShops({ - page: 9481, - per_page: 9063 + const response: Response = await client.send(new ListTransfersV2({ + description: "yGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1Uy", + from: "2023-05-04T18:11:47.000000Z", + to: "2021-03-13T04:02:07.000000Z" })); status = response.code; } catch (e) { @@ -4823,13 +4790,14 @@ test('Check ListShops | 2', async () => { expect(status).not.toBe(400); }) -test('Check ListShops | 3', async () => { +test('Check ListTransfersV2 | 4', async () => { let status = 400; try { - const response: Response = await client.send(new ListShops({ - with_disabled: false, - page: 2036, - per_page: 9073 + const response: Response = await client.send(new ListTransfersV2({ + transfer_types: ["exchange"], + description: "e7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4", + from: "2020-06-04T08:56:37.000000Z", + to: "2020-09-02T23:21:56.000000Z" })); status = response.code; } catch (e) { @@ -4841,14 +4809,15 @@ test('Check ListShops | 3', async () => { expect(status).not.toBe(400); }) -test('Check ListShops | 4', async () => { +test('Check ListTransfersV2 | 5', async () => { let status = 400; try { - const response: Response = await client.send(new ListShops({ - external_id: "9b9NBdczTSynCfTiWLEN2pEb", - with_disabled: false, - page: 8888, - per_page: 9062 + const response: Response = await client.send(new ListTransfersV2({ + per_page: 297, + transfer_types: ["payment", "topup", "transfer", "exchange"], + description: "jBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSs", + from: "2022-06-21T00:34:38.000000Z", + to: "2023-01-26T05:28:13.000000Z" })); status = response.code; } catch (e) { @@ -4860,15 +4829,16 @@ test('Check ListShops | 4', async () => { expect(status).not.toBe(400); }) -test('Check ListShops | 5', async () => { +test('Check ListTransfersV2 | 6', async () => { let status = 400; try { - const response: Response = await client.send(new ListShops({ - email: "B8PVJkE9Nz@aeTp.com", - external_id: "5kX9rLpagdWQnEnTlLyubwibc5u", - with_disabled: true, - page: 2248, - per_page: 6970 + const response: Response = await client.send(new ListTransfersV2({ + prev_page_cursor_id: "65886f64-2c16-4b5e-99fb-6b8d8458ed96", + per_page: 177, + transfer_types: ["campaign", "coupon"], + description: "UMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3", + from: "2022-01-05T07:30:06.000000Z", + to: "2022-09-20T11:11:38.000000Z" })); status = response.code; } catch (e) { @@ -4880,16 +4850,17 @@ test('Check ListShops | 5', async () => { expect(status).not.toBe(400); }) -test('Check ListShops | 6', async () => { +test('Check ListTransfersV2 | 7', async () => { let status = 400; try { - const response: Response = await client.send(new ListShops({ - tel: "09366-8434", - email: "pRZ5NX6gFb@5nuO.com", - external_id: "lmm9r", - with_disabled: false, - page: 9969, - per_page: 5615 + const response: Response = await client.send(new ListTransfersV2({ + next_page_cursor_id: "672d3cd6-b0a8-4d1c-99e8-a6e2786c5ce8", + prev_page_cursor_id: "d2e01834-8f52-4a8d-ac00-450c88ec6fd7", + per_page: 677, + transfer_types: ["coupon", "topup", "payment", "campaign"], + description: "Hu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBp", + from: "2021-12-11T01:14:52.000000Z", + to: "2023-07-19T13:57:18.000000Z" })); status = response.code; } catch (e) { @@ -4901,17 +4872,18 @@ test('Check ListShops | 6', async () => { expect(status).not.toBe(400); }) -test('Check ListShops | 7', async () => { +test('Check ListTransfersV2 | 8', async () => { let status = 400; try { - const response: Response = await client.send(new ListShops({ - address: "22H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3", - tel: "0075037", - email: "e5IIfEbaRl@pdhT.com", - external_id: "TQpQoSRT6b0IY83jSy9CLjq8yjjxIn", - with_disabled: false, - page: 2686, - per_page: 1712 + const response: Response = await client.send(new ListTransfersV2({ + transaction_types: ["cashback", "transfer", "topup"], + next_page_cursor_id: "71a10e9c-187a-4707-b33a-b446ff587ac8", + prev_page_cursor_id: "627187ae-eb4c-4e7b-b9d0-62683691a03d", + per_page: 496, + transfer_types: ["transfer", "exchange", "coupon", "cashback", "expire", "payment"], + description: "kH0DrThI9ndCARX9iZh", + from: "2023-04-15T01:18:56.000000Z", + to: "2020-06-27T04:09:49.000000Z" })); status = response.code; } catch (e) { @@ -4923,18 +4895,19 @@ test('Check ListShops | 7', async () => { expect(status).not.toBe(400); }) -test('Check ListShops | 8', async () => { +test('Check ListTransfersV2 | 9', async () => { let status = 400; try { - const response: Response = await client.send(new ListShops({ - postal_code: "326-5581", - address: "HP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYk", - tel: "0290743-740", - email: "1enxAKZBD2@FhNo.com", - external_id: "ZKIbAgS", - with_disabled: true, - page: 9840, - per_page: 3228 + const response: Response = await client.send(new ListTransfersV2({ + is_modified: false, + transaction_types: ["payment"], + next_page_cursor_id: "edffb40e-1a9b-43bb-9db8-cf55d7d5c222", + prev_page_cursor_id: "c89b84e9-ec6a-4f1f-850f-3693c4fe4126", + per_page: 351, + transfer_types: ["expire", "cashback"], + description: "iBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUA", + from: "2022-06-10T13:23:32.000000Z", + to: "2022-04-23T08:03:19.000000Z" })); status = response.code; } catch (e) { @@ -4946,19 +4919,20 @@ test('Check ListShops | 8', async () => { expect(status).not.toBe(400); }) -test('Check ListShops | 9', async () => { +test('Check ListTransfersV2 | 10', async () => { let status = 400; try { - const response: Response = await client.send(new ListShops({ - name: "RCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9", - postal_code: "4221762", - address: "4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGH", - tel: "03-452-017", - email: "5Jr7zEeO7n@UDqx.com", - external_id: "j74j643AIOVakyq8QHWKNric3", - with_disabled: true, - page: 334, - per_page: 3861 + const response: Response = await client.send(new ListTransfersV2({ + private_money_id: "e56cdcc7-1bfc-447a-bb2c-7e9111b2eb35", + is_modified: false, + transaction_types: ["topup", "expire", "transfer", "exchange", "cashback"], + next_page_cursor_id: "5d38423f-2fe8-46a4-b5e3-6fa2e3178dbd", + prev_page_cursor_id: "cc78835a-29a4-4328-a4b4-2aa7de9c2765", + per_page: 957, + transfer_types: ["topup", "expire"], + description: "0f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJ", + from: "2023-02-21T18:00:02.000000Z", + to: "2020-05-02T07:51:01.000000Z" })); status = response.code; } catch (e) { @@ -4970,20 +4944,21 @@ test('Check ListShops | 9', async () => { expect(status).not.toBe(400); }) -test('Check ListShops | 10', async () => { +test('Check ListTransfersV2 | 11', async () => { let status = 400; try { - const response: Response = await client.send(new ListShops({ - private_money_id: "98829d42-795e-4d7f-9fd1-afd942de89a8", - name: "WsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j8noWbhryHKQAP", - postal_code: "226-6256", - address: "kmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qku", - tel: "08932040-3753", - email: "esxkTgeUlI@AlQv.com", - external_id: "L5t780R8L5VrLxzRQlVu0ZdkmHWdP", - with_disabled: false, - page: 3050, - per_page: 139 + const response: Response = await client.send(new ListTransfersV2({ + transaction_id: "9c7e72ce-9e99-46ce-8094-8676f95241d5", + private_money_id: "7e366dc3-7d1e-4b30-a271-44099d6dc000", + is_modified: false, + transaction_types: ["exchange"], + next_page_cursor_id: "16cc8c94-13f6-42df-9219-346dde3ce47e", + prev_page_cursor_id: "0f6eaf64-0989-4e35-80c9-d304590cdca9", + per_page: 185, + transfer_types: ["coupon", "cashback"], + description: "GpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwi", + from: "2021-12-13T09:20:57.000000Z", + to: "2022-07-11T16:53:15.000000Z" })); status = response.code; } catch (e) { @@ -4995,21 +4970,22 @@ test('Check ListShops | 10', async () => { expect(status).not.toBe(400); }) -test('Check ListShops | 11', async () => { +test('Check ListTransfersV2 | 12', async () => { let status = 400; try { - const response: Response = await client.send(new ListShops({ - organization_code: "-tYy--i-270V9---wPfLj5", - private_money_id: "fd2b0ae9-ceaa-4e67-89a7-d39041cbf0b7", - name: "4Fkbtbb0SlK2K", - postal_code: "2485187", - address: "xGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9d", - tel: "08-79-5003", - email: "HIJ7mbc5qb@OnYC.com", - external_id: "xA4AjI47p6qtIsaCpt80GzH1FR", - with_disabled: false, - page: 2206, - per_page: 2022 + const response: Response = await client.send(new ListTransfersV2({ + customer_name: "v4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRW", + transaction_id: "bc1e782c-abc3-4059-ad73-53f73a4ea6df", + private_money_id: "da553f85-d736-4a56-92c2-0f95e9bc6266", + is_modified: true, + transaction_types: ["topup"], + next_page_cursor_id: "28058465-86ae-48ef-a0d4-aca810e6a992", + prev_page_cursor_id: "75d6bb30-4079-4e2f-ad0f-4bb6f0b251ae", + per_page: 109, + transfer_types: ["cashback", "topup", "payment", "expire", "exchange", "campaign"], + description: "yMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vUL", + from: "2020-04-15T05:25:39.000000Z", + to: "2023-08-01T18:44:38.000000Z" })); status = response.code; } catch (e) { @@ -5021,11 +4997,23 @@ test('Check ListShops | 11', async () => { expect(status).not.toBe(400); }) -test('Check CreateShop | 0', async () => { +test('Check ListTransfersV2 | 13', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShop({ - shop_name: "6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAn" + const response: Response = await client.send(new ListTransfersV2({ + customer_id: "f9e3f1bf-b679-4331-8689-01cb37ded2e4", + customer_name: "Ttu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6Amswd", + transaction_id: "7c9090c0-2b41-4ecd-a81c-611f42162e33", + private_money_id: "8d8c83c9-134a-42f2-af77-70d6ac0fd2e2", + is_modified: false, + transaction_types: ["payment", "topup"], + next_page_cursor_id: "886f57cd-b8c3-4574-bf68-1c8c6d131169", + prev_page_cursor_id: "b3d7d3fd-6bf6-44bb-b124-78e1020de332", + per_page: 838, + transfer_types: ["cashback", "topup", "exchange", "payment", "campaign"], + description: "mJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5o", + from: "2023-02-06T21:30:34.000000Z", + to: "2021-07-10T19:40:56.000000Z" })); status = response.code; } catch (e) { @@ -5037,12 +5025,24 @@ test('Check CreateShop | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateShop | 1', async () => { +test('Check ListTransfersV2 | 14', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShop({ - shop_name: "6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAn", - organization_code: "-pA9wU" + const response: Response = await client.send(new ListTransfersV2({ + shop_name: "n0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THno", + customer_id: "e39440a4-a963-49e9-baeb-a2423dd79910", + customer_name: "JOk", + transaction_id: "852fd018-fd23-481b-9cc4-a333ad15e046", + private_money_id: "1589b225-610f-4e5b-b677-e4abeeaa079e", + is_modified: true, + transaction_types: ["payment", "transfer", "topup", "cashback", "expire"], + next_page_cursor_id: "39868594-5690-4157-a312-0714d16fcf5b", + prev_page_cursor_id: "523ae08d-4892-443c-8a10-e7edffe29c6d", + per_page: 681, + transfer_types: ["coupon", "cashback"], + description: "he3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNa", + from: "2021-09-22T02:26:26.000000Z", + to: "2023-06-20T15:39:02.000000Z" })); status = response.code; } catch (e) { @@ -5054,13 +5054,25 @@ test('Check CreateShop | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateShop | 2', async () => { +test('Check ListTransfersV2 | 15', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShop({ - shop_name: "6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAn", - shop_external_id: "gPVT4AzeoZEOYuu1RyqlWwyCN", - organization_code: "1-i9ytrP--0---Em5E-d28" + const response: Response = await client.send(new ListTransfersV2({ + shop_id: "9e72d8c4-4848-4989-b378-16e1c362db35", + shop_name: "ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyK", + customer_id: "03721c8e-3199-4ccc-9e08-7f5b43c17edf", + customer_name: "nZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU", + transaction_id: "1adae630-42ec-4a6e-8a93-fabd82af7659", + private_money_id: "5b332c25-6f7f-43d7-b7db-2bcd67e65e57", + is_modified: true, + transaction_types: ["expire", "topup"], + next_page_cursor_id: "8b5b9e65-d196-4f6a-bc45-6407db70a31d", + prev_page_cursor_id: "f7242d6f-92ad-43ac-98e9-548625533f65", + per_page: 921, + transfer_types: ["campaign", "cashback", "coupon"], + description: "TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6K", + from: "2023-04-01T18:42:52.000000Z", + to: "2022-12-31T00:33:54.000000Z" })); status = response.code; } catch (e) { @@ -5072,14 +5084,11 @@ test('Check CreateShop | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateShop | 3', async () => { +test('Check ListOrganizations | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShop({ - shop_name: "6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAn", - shop_email: "BIUBy90lbf@xByy.com", - shop_external_id: "gJllatyS0exoV", - organization_code: "3Sj-IJLL-r6DL-r--Q92i-3lb2" + const response: Response = await client.send(new ListOrganizations({ + private_money_id: "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f" })); status = response.code; } catch (e) { @@ -5091,15 +5100,12 @@ test('Check CreateShop | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateShop | 4', async () => { +test('Check ListOrganizations | 1', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShop({ - shop_name: "6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAn", - shop_tel: "06-406-605", - shop_email: "xUcIrb43g0@nK7t.com", - shop_external_id: "3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj", - organization_code: "z3-48o-gVrg65t-Sug6tTQ-P83" + const response: Response = await client.send(new ListOrganizations({ + private_money_id: "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f", + code: "jwDm" })); status = response.code; } catch (e) { @@ -5111,16 +5117,13 @@ test('Check CreateShop | 4', async () => { expect(status).not.toBe(400); }) -test('Check CreateShop | 5', async () => { +test('Check ListOrganizations | 2', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShop({ - shop_name: "6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAn", - shop_address: "6DnnO4ty38IkhtTfaQWLqh", - shop_tel: "0624342738", - shop_email: "CtzrrQIFeK@35Z3.com", - shop_external_id: "F7SWnL", - organization_code: "Ou2-6---xg0AfZW-220Q88-wa51t" + const response: Response = await client.send(new ListOrganizations({ + private_money_id: "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f", + name: "dL", + code: "IlDiaOh78" })); status = response.code; } catch (e) { @@ -5132,17 +5135,14 @@ test('Check CreateShop | 5', async () => { expect(status).not.toBe(400); }) -test('Check CreateShop | 6', async () => { +test('Check ListOrganizations | 3', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShop({ - shop_name: "6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAn", - shop_postal_code: "0981399", - shop_address: "g03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MIK7GdyM50XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBW", - shop_tel: "0790495903", - shop_email: "5n0FjmTFvO@6PZj.com", - shop_external_id: "X87PLzR29oTCv16fPXjhVlL", - organization_code: "73-H6-l--0qM--" + const response: Response = await client.send(new ListOrganizations({ + private_money_id: "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f", + per_page: 1885, + name: "fh", + code: "bZ3YfG" })); status = response.code; } catch (e) { @@ -5154,11 +5154,15 @@ test('Check CreateShop | 6', async () => { expect(status).not.toBe(400); }) -test('Check CreateShopV2 | 0', async () => { +test('Check ListOrganizations | 4', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShopV2({ - name: "TYjYgPlxnzpf9XcHDiw8sq" + const response: Response = await client.send(new ListOrganizations({ + private_money_id: "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f", + page: 6140, + per_page: 6311, + name: "hlbqaOE", + code: "lvScjtjkG1" })); status = response.code; } catch (e) { @@ -5170,12 +5174,15 @@ test('Check CreateShopV2 | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateShopV2 | 1', async () => { +test('Check CreateOrganization | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShopV2({ - name: "TYjYgPlxnzpf9XcHDiw8sq", - can_topup_private_money_ids: ["bc7c37ff-4260-4416-8d8a-4d206ee9fb54", "3b770c77-cb9b-488b-b99c-f74379b3749d", "9c84f92f-745d-4fc7-8dab-6a8591f41407", "592df606-af94-40f2-b01d-3775aaa47a70", "55ec353e-986e-495a-a617-8950e96a7640", "8b8bd733-202e-4174-aebb-64581243af4c", "e4becac7-1f0c-48a3-ad1f-d0e4a4528820", "57442ac9-20e0-42b4-829e-fb2c93c3b9a4", "eb12c751-1365-44cd-8b4e-a0ea03817d06"] + const response: Response = await client.send(new CreateOrganization({ + code: "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + name: "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + private_money_ids: ["f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"], + issuer_admin_user_email: "WoqdLq3QmH@RbZp.com", + member_admin_user_email: "wbPRidVG7B@6haj.com" })); status = response.code; } catch (e) { @@ -5187,13 +5194,16 @@ test('Check CreateShopV2 | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateShopV2 | 2', async () => { +test('Check CreateOrganization | 1', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShopV2({ - name: "TYjYgPlxnzpf9XcHDiw8sq", - private_money_ids: ["e621fb90-6b08-412f-8943-2f9fca50ad36", "9d6a1ae0-69ae-4a76-9a11-3d3f592030a7", "37b89034-aa7f-451f-8c7f-79e452cfd04a", "86793a39-a890-44f1-afdd-c43021b8e25c", "bf8751ee-9ae9-4189-a689-2241f76f3b55"], - can_topup_private_money_ids: ["22643c75-6147-46a6-9d82-9fc8f2758088", "37b8b755-c76e-42c3-950e-33f6904e2de3", "ddbb0889-9234-4414-81a9-3d3548c879c8"] + const response: Response = await client.send(new CreateOrganization({ + code: "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + name: "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + private_money_ids: ["f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"], + issuer_admin_user_email: "WoqdLq3QmH@RbZp.com", + member_admin_user_email: "wbPRidVG7B@6haj.com", + contact_name: "GJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O" })); status = response.code; } catch (e) { @@ -5205,14 +5215,17 @@ test('Check CreateShopV2 | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateShopV2 | 3', async () => { +test('Check CreateOrganization | 2', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShopV2({ - name: "TYjYgPlxnzpf9XcHDiw8sq", - organization_code: "zrA-toIp-W--", - private_money_ids: ["007bef7f-19d4-452e-bbb3-db6402392698", "9d0705b8-0aae-4a2f-b82a-d29007958295"], - can_topup_private_money_ids: ["03dbd498-940b-4158-be44-cf47fa302b65", "c01fd31b-4893-4b33-9831-1ef75eab939d", "afb4ffe9-8aaf-4cea-a7af-ea63ef32f819"] + const response: Response = await client.send(new CreateOrganization({ + code: "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + name: "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + private_money_ids: ["f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"], + issuer_admin_user_email: "WoqdLq3QmH@RbZp.com", + member_admin_user_email: "wbPRidVG7B@6haj.com", + bank_account_holder_name: "\\", + contact_name: "lAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeK" })); status = response.code; } catch (e) { @@ -5224,15 +5237,18 @@ test('Check CreateShopV2 | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateShopV2 | 4', async () => { +test('Check CreateOrganization | 3', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShopV2({ - name: "TYjYgPlxnzpf9XcHDiw8sq", - external_id: "SuuP7qXIDVYzNjNiLWADYEWx", - organization_code: "-W65k1", - private_money_ids: ["d5b3edbb-efc8-42f7-889f-44409c7333ce", "4ffc285d-cf4c-4267-b58b-b13d0972b838", "4255b87e-0f4e-4182-9ceb-d179d177a129"], - can_topup_private_money_ids: [] + const response: Response = await client.send(new CreateOrganization({ + code: "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + name: "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + private_money_ids: ["f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"], + issuer_admin_user_email: "WoqdLq3QmH@RbZp.com", + member_admin_user_email: "wbPRidVG7B@6haj.com", + bank_account: "15538", + bank_account_holder_name: ")", + contact_name: "22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5pa" })); status = response.code; } catch (e) { @@ -5244,16 +5260,19 @@ test('Check CreateShopV2 | 4', async () => { expect(status).not.toBe(400); }) -test('Check CreateShopV2 | 5', async () => { +test('Check CreateOrganization | 4', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShopV2({ - name: "TYjYgPlxnzpf9XcHDiw8sq", - email: "9WURMByjAK@TzdQ.com", - external_id: "2llGcXl5Cw", - organization_code: "90RK-7-5Q-ke---2-13-y4wk17Ft", - private_money_ids: ["f8d2a1b3-a055-49a6-97e5-75d33a9d36fa", "c9126a86-22ad-45db-8b43-fedaa288ba77", "96b48d76-fd9a-4095-b450-c6f7bb2a569d", "ccf3f61b-7a92-4f85-8a4f-2019440050be", "86731e92-d079-4208-89dc-20bd6e16a563", "0da0d7d5-d8cc-4bd7-ba80-b09ac7e9cef2"], - can_topup_private_money_ids: ["495c9427-e7cd-4541-92c3-2b49620d3c74", "df29feed-40bf-4a4f-abd9-23841ebad81e", "70d1ce86-93a7-420b-b110-9f5fdf163f70", "316dabd5-57cf-474e-822b-97e60992895a", "7577918b-31fd-4d23-a38b-319dbb0358d5"] + const response: Response = await client.send(new CreateOrganization({ + code: "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + name: "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + private_money_ids: ["f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"], + issuer_admin_user_email: "WoqdLq3QmH@RbZp.com", + member_admin_user_email: "wbPRidVG7B@6haj.com", + bank_account_type: "saving", + bank_account: "843", + bank_account_holder_name: ".", + contact_name: "yMo26iqol80j1t4n3lpn" })); status = response.code; } catch (e) { @@ -5265,17 +5284,20 @@ test('Check CreateShopV2 | 5', async () => { expect(status).not.toBe(400); }) -test('Check CreateShopV2 | 6', async () => { +test('Check CreateOrganization | 5', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShopV2({ - name: "TYjYgPlxnzpf9XcHDiw8sq", - tel: "0843-640", - email: "wk2g7DYhFu@XWta.com", - external_id: "gH7mosTYAgSjd1", - organization_code: "9---M-3GO-zk9G2r-F-RiV-tm-", - private_money_ids: ["5cffebc7-8282-4c2c-90df-37559c271335", "43d4bdef-a153-40ff-bc72-bf88056bedf3", "576a4fc4-7e43-4997-81a8-ddeeaab8490e", "a41f31a4-59ba-4233-99be-d1898402dc12", "a98ecab6-e26e-4cdd-9f3d-9b247110fb39", "9bbf3e32-b7cc-4d4a-acef-29940fa6e242", "b608296e-395d-445e-b856-5957d24ca541", "090f35b0-4c3b-4ec2-adf8-d330ff2d7cd0"], - can_topup_private_money_ids: ["c23c3473-9653-48e8-89b5-c732ddef8a3f", "b438e564-366a-4fab-8478-12b213000ec5", "0a1332a9-b4b8-4371-b22a-ce83dcaaf254"] + const response: Response = await client.send(new CreateOrganization({ + code: "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + name: "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + private_money_ids: ["f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"], + issuer_admin_user_email: "WoqdLq3QmH@RbZp.com", + member_admin_user_email: "wbPRidVG7B@6haj.com", + bank_branch_code: "", + bank_account_type: "current", + bank_account: "843486", + bank_account_holder_name: ".", + contact_name: "eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperY" })); status = response.code; } catch (e) { @@ -5287,18 +5309,21 @@ test('Check CreateShopV2 | 6', async () => { expect(status).not.toBe(400); }) -test('Check CreateShopV2 | 7', async () => { +test('Check CreateOrganization | 6', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShopV2({ - name: "TYjYgPlxnzpf9XcHDiw8sq", - address: "06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDam", - tel: "0196166-731", - email: "js1Uxv98uo@xa9c.com", - external_id: "qdBZBSSyuPsLg", - organization_code: "--NMW-w-4-", - private_money_ids: ["58c2a009-f755-4153-a75f-94d82d640bc9", "f4b5d190-0e47-4fe6-843b-225045d53d7b", "3137b045-5ed0-4726-98f7-40488457530d"], - can_topup_private_money_ids: ["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"] + const response: Response = await client.send(new CreateOrganization({ + code: "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + name: "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + private_money_ids: ["f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"], + issuer_admin_user_email: "WoqdLq3QmH@RbZp.com", + member_admin_user_email: "wbPRidVG7B@6haj.com", + bank_branch_name: "hU5vbLxW8", + bank_branch_code: "", + bank_account_type: "current", + bank_account: "580", + bank_account_holder_name: "ヲ", + contact_name: "u89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMl" })); status = response.code; } catch (e) { @@ -5310,19 +5335,22 @@ test('Check CreateShopV2 | 7', async () => { expect(status).not.toBe(400); }) -test('Check CreateShopV2 | 8', async () => { +test('Check CreateOrganization | 7', async () => { let status = 400; try { - const response: Response = await client.send(new CreateShopV2({ - name: "TYjYgPlxnzpf9XcHDiw8sq", - postal_code: "3035995", - address: "7UKhxLe1F", - tel: "08330574", - email: "iTGNYlDyRk@3aGM.com", - external_id: "ps1HN2Oi8GzWre6yIHCge3KvTMWtvAO", - organization_code: "K-Gr-1", - private_money_ids: ["f46ae5ec-000b-44a0-8f41-49d5e93f3b4e", "70c7b80b-429e-4fc6-b04b-50fca66aca5d", "d4f7ac01-e9f2-467f-b665-0f6ba31c66e4", "1cf672c2-aafe-4615-b796-4a06c15ab057", "f58b729c-2a91-488c-9347-d68a1da92e6c", "86af219d-4ef3-4454-9c32-84b459470e98", "214db82b-2f05-490b-adfa-438113f76a7a", "e0938322-a19e-4f05-b666-4e302a02e219", "b15dccf5-e069-47f8-9666-2f7a8dede8e7"], - can_topup_private_money_ids: ["c6dc0737-f793-4395-9ec4-cd4173cec118", "2e51f60f-1112-4778-92d6-649afc612f19", "ffc5ce7d-0498-4758-aa81-ad811fd2d61c"] + const response: Response = await client.send(new CreateOrganization({ + code: "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + name: "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + private_money_ids: ["f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"], + issuer_admin_user_email: "WoqdLq3QmH@RbZp.com", + member_admin_user_email: "wbPRidVG7B@6haj.com", + bank_code: "9677", + bank_branch_name: "oPmNQWU6zl3h", + bank_branch_code: "", + bank_account_type: "saving", + bank_account: "37", + bank_account_holder_name: ")", + contact_name: "IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KR" })); status = response.code; } catch (e) { @@ -5334,11 +5362,23 @@ test('Check CreateShopV2 | 8', async () => { expect(status).not.toBe(400); }) -test('Check GetShop | 0', async () => { +test('Check CreateOrganization | 8', async () => { let status = 400; try { - const response: Response = await client.send(new GetShop({ - shop_id: "4dee57f0-b2af-4d6f-994f-1ceba06f8986" + const response: Response = await client.send(new CreateOrganization({ + code: "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + name: "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + private_money_ids: ["f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"], + issuer_admin_user_email: "WoqdLq3QmH@RbZp.com", + member_admin_user_email: "wbPRidVG7B@6haj.com", + bank_name: "DxSSppVORQLy6PO73cHGKqjz0v27dHE8", + bank_code: "", + bank_branch_name: "eh9b3v7zqeYS2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2F", + bank_branch_code: "", + bank_account_type: "other", + bank_account: "9652717", + bank_account_holder_name: "ム", + contact_name: "RCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VU" })); status = response.code; } catch (e) { @@ -5350,12 +5390,10 @@ test('Check GetShop | 0', async () => { expect(status).not.toBe(400); }) -test('Check UpdateShop | 0', async () => { +test('Check ListShops | 0', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateShop({ - shop_id: "254dad4c-c959-4c89-a25d-784a6bc800cd" - })); + const response: Response = await client.send(new ListShops()); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -5366,12 +5404,11 @@ test('Check UpdateShop | 0', async () => { expect(status).not.toBe(400); }) -test('Check UpdateShop | 1', async () => { +test('Check ListShops | 1', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateShop({ - shop_id: "254dad4c-c959-4c89-a25d-784a6bc800cd", - status: "active" + const response: Response = await client.send(new ListShops({ + per_page: 2642 })); status = response.code; } catch (e) { @@ -5383,13 +5420,12 @@ test('Check UpdateShop | 1', async () => { expect(status).not.toBe(400); }) -test('Check UpdateShop | 2', async () => { +test('Check ListShops | 2', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateShop({ - shop_id: "254dad4c-c959-4c89-a25d-784a6bc800cd", - can_topup_private_money_ids: ["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"], - status: "disabled" + const response: Response = await client.send(new ListShops({ + page: 7164, + per_page: 807 })); status = response.code; } catch (e) { @@ -5401,14 +5437,13 @@ test('Check UpdateShop | 2', async () => { expect(status).not.toBe(400); }) -test('Check UpdateShop | 3', async () => { +test('Check ListShops | 3', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateShop({ - shop_id: "254dad4c-c959-4c89-a25d-784a6bc800cd", - private_money_ids: ["9cf2ba12-00c3-42a6-8813-f5644e91d35a", "c6cbf95f-1747-46bd-ab45-ed17f93abace", "16c5e809-883f-4012-8481-89d3670635eb", "718836a4-e952-4479-a6d7-9099a4f89b60", "f974f14b-ae41-4378-aa8c-5424c36d46fc", "52cf11d1-4c88-4fd7-aa8e-324368ec2842", "315ab0b8-6492-439a-9f40-73eeaf9522c6", "88b2e63f-4c2f-4090-bc63-4c823b5350f1", "c5915912-28ed-4045-86a6-ce98fe5e564e"], - can_topup_private_money_ids: ["37f0b966-7ec4-486f-bb95-5cbf014cddf2", "1bef7931-a6fa-45ac-a721-c0f74887ae3f", "03c9299f-979a-41c6-b978-a2339f045878", "facbf582-7122-458b-9a5a-bd7330811d20", "9e2b9040-e2d2-4335-a24c-6c4a859d712b"], - status: "active" + const response: Response = await client.send(new ListShops({ + with_disabled: true, + page: 659, + per_page: 3135 })); status = response.code; } catch (e) { @@ -5420,15 +5455,14 @@ test('Check UpdateShop | 3', async () => { expect(status).not.toBe(400); }) -test('Check UpdateShop | 4', async () => { +test('Check ListShops | 4', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateShop({ - shop_id: "254dad4c-c959-4c89-a25d-784a6bc800cd", - external_id: "hH3FEHzbfU4cD6smAeq", - private_money_ids: ["c685e3db-1fe9-4de6-aa4e-3e69166b1398", "8fffe46b-d52c-4271-847e-3fab9f76bb45", "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"], - can_topup_private_money_ids: [], - status: "active" + const response: Response = await client.send(new ListShops({ + external_id: "r7fsBnFuG56tOVY8vi9Z9lrbTG", + with_disabled: false, + page: 2467, + per_page: 1897 })); status = response.code; } catch (e) { @@ -5440,16 +5474,15 @@ test('Check UpdateShop | 4', async () => { expect(status).not.toBe(400); }) -test('Check UpdateShop | 5', async () => { +test('Check ListShops | 5', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateShop({ - shop_id: "254dad4c-c959-4c89-a25d-784a6bc800cd", - email: "YNQbEnbMVd@bi9G.com", - external_id: "aE3q4gTN93gHJA1FfneXYRV1FBu9Vq", - private_money_ids: ["6cd856ed-cbcb-4985-b2db-309e3cda7088", "5c02ae21-9f51-4805-97fb-3b27a51afa27", "eb306a2b-94c5-40aa-abe1-51c92d0bda7f", "f3054a90-3127-45eb-9c12-d0b3309c04ce", "27a82966-2b33-45b0-b49f-4f1fdb579a17", "6213d6c1-a265-4452-af4d-97dff9b445c2", "f4cebca1-347f-4dee-be19-7f8753c62859"], - can_topup_private_money_ids: ["f7e65da6-7da5-400d-b208-a196153029e0", "65230afe-d5c3-4fa3-b429-3e63aa2c1158"], - status: "active" + const response: Response = await client.send(new ListShops({ + email: "4QbdPS2DfL@ew9j.com", + external_id: "cXjFRqAsdyU0E", + with_disabled: true, + page: 6790, + per_page: 8997 })); status = response.code; } catch (e) { @@ -5461,17 +5494,16 @@ test('Check UpdateShop | 5', async () => { expect(status).not.toBe(400); }) -test('Check UpdateShop | 6', async () => { +test('Check ListShops | 6', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateShop({ - shop_id: "254dad4c-c959-4c89-a25d-784a6bc800cd", - tel: "000-11881", - email: "Prt2tro65R@M4SY.com", - external_id: "yWPQ4b5EvFhF0JaiWpiphXqNgz", - private_money_ids: ["817d9f35-c9e0-475b-a496-1082b0b98058", "05a532aa-6946-4954-8ed9-4b416a97343d", "8c0efbc8-02a7-4e4a-a4de-68c6a04181e5", "13d45a0d-f1c7-45da-9069-7f20ed4b6fb1", "2363258e-6aca-4a13-89e1-f2dba4f16939", "d1b5e5ce-732f-4b2f-ad9b-3e40e3c86f54"], - can_topup_private_money_ids: ["f6311583-8772-486b-994d-a3656df5765d", "1ce71041-60ac-4da6-a005-6acb77275b98", "3e1c99ce-8b18-4f55-ac16-c7fb385254de", "dde26117-bc07-4425-b27c-448349a8c40b", "a730935f-008f-498e-9591-ad7c8075fba1", "47f5b620-238f-4801-b1ce-be0d8bef45af", "f2fb1617-619c-404d-b21d-2c10b3a7f0f7", "32906334-624a-4fdc-a1f9-24099b7ab6de"], - status: "active" + const response: Response = await client.send(new ListShops({ + tel: "0896-96-5661", + email: "09yrlyTlHc@xkp2.com", + external_id: "d", + with_disabled: false, + page: 3659, + per_page: 5040 })); status = response.code; } catch (e) { @@ -5483,18 +5515,17 @@ test('Check UpdateShop | 6', async () => { expect(status).not.toBe(400); }) -test('Check UpdateShop | 7', async () => { +test('Check ListShops | 7', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateShop({ - shop_id: "254dad4c-c959-4c89-a25d-784a6bc800cd", - address: "YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDc", - tel: "0126-05665598", - email: "rBGsdWvnLs@paw0.com", - external_id: "1BOuUcrgAIrlVAxUxxoJ3m2cO", - private_money_ids: ["2b48fe46-0609-447c-a34e-36b3ef6be866", "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", "f4ba4938-fb9c-4f40-a3d5-68bf3aae9a34", "52155e4c-38ef-4795-879c-3c45a71af190"], - can_topup_private_money_ids: ["23fcab46-b119-460f-ba98-5dcd9268dba5", "dcd17b60-6b3a-4188-8c99-7456b9614651", "9d187f34-87ec-4ea9-99b9-d6d7f8a80de4", "1e49acde-42e6-4877-a09b-59ce28a82ec0", "1dbd11b1-7494-4611-872c-1a1420b9df3c"], - status: "active" + const response: Response = await client.send(new ListShops({ + address: "s83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM", + tel: "091-03463", + email: "yAShBlCJPj@tVj6.com", + external_id: "A58jW2j8noWbhryHKQA", + with_disabled: true, + page: 9827, + per_page: 1799 })); status = response.code; } catch (e) { @@ -5506,19 +5537,18 @@ test('Check UpdateShop | 7', async () => { expect(status).not.toBe(400); }) -test('Check UpdateShop | 8', async () => { +test('Check ListShops | 8', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateShop({ - shop_id: "254dad4c-c959-4c89-a25d-784a6bc800cd", - postal_code: "782-4823", - address: "DIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmfQbT09Lp665rg0d7eGITtIklkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nen", - tel: "0196-848066", - email: "MGevwVMeZt@8EqI.com", - external_id: "vyxvlj5KalqxA7HuqvdSNveWzWI5", - private_money_ids: ["b702e380-a697-488d-b6f3-30f4d42f12af", "fbbbc515-9d1c-45ff-bdfe-59ff48fdd43e", "0e60ee16-fcd1-4076-9b90-36da693cf0f6"], - can_topup_private_money_ids: ["808ded3a-2a06-475b-a416-bfd277033d5b", "68080c82-b24a-4ccc-acee-0b90777e0b87", "64f2cc08-8333-4a89-836d-b8d63bb12dfe", "a6aa3ced-09d0-491a-9d8c-62faa5b58b2c", "abae25b2-99e2-4aa4-a3c8-5027a86f5dad", "96487232-9e13-4f9d-9778-88d647f387c2", "95e54048-f27c-46d4-a280-eee9f7ec771e", "a6b60bcf-7ac8-4ba7-a212-0c598724bc8d", "db72bc14-c35c-4262-ba5f-92a9307f775e", "ce7a0bd7-d720-4e06-b745-c59db2791b2b"], - status: "disabled" + const response: Response = await client.send(new ListShops({ + postal_code: "362-6999", + address: "h2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtix", + tel: "006203-8111", + email: "0tz4EzkuhU@CHWp.com", + external_id: "5qyAYWUJWst1yIlHOt0", + with_disabled: false, + page: 4700, + per_page: 6417 })); status = response.code; } catch (e) { @@ -5530,20 +5560,19 @@ test('Check UpdateShop | 8', async () => { expect(status).not.toBe(400); }) -test('Check UpdateShop | 9', async () => { +test('Check ListShops | 9', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateShop({ - shop_id: "254dad4c-c959-4c89-a25d-784a6bc800cd", - name: "Cf76ToHcl8dtzcqD", - postal_code: "6210776", - address: "VRdojGjigHpZl8InHQBhMIrdZJT9MnQgGfElkSct56tB3QvYjy8mUgDyXQYOSshpGMCke", - tel: "06153-924", - email: "BHnAmdlKiU@j9Jq.com", - external_id: "anI8FqIXqzelGZDONUAJfl2", - private_money_ids: ["ac345ecd-10f4-45db-a01f-756f0bc4ceb7", "777ab079-f261-418c-9301-5a57e5916930", "1ea06047-daeb-46f4-86b1-3970ddcfbe8f", "7e85e68f-01cf-4593-8cc2-9da4168c7a5a", "399d3c81-38fb-4d17-9efb-70bae03a6f81", "7785ce08-d1ef-4bfe-b3f8-b96381658f55", "e308a894-e9df-4eb6-bbd7-bf311836ad5e", "2563113d-6f76-4128-bbc6-b89be1307722"], - can_topup_private_money_ids: ["99ef0b4e-db39-4ca8-8035-a3aa9afa5497", "df32ea32-e4bf-4f56-af55-6a6424bf17d1", "d2de9c33-f25f-4e7c-be06-043c38df0a8b", "da44ad74-38b6-4b08-b33f-a20975566c9c", "6d7a8dd7-0f70-4b7f-b9f3-1ee75369d55e", "4b891b07-6b1c-4aa0-b298-1ba2f5b44b30", "1af29e24-63a1-4a3e-bd3e-f6287e45921a"], - status: "active" + const response: Response = await client.send(new ListShops({ + name: "XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxG", + postal_code: "0488969", + address: "0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB", + tel: "089081-725", + email: "VYsbDyysRi@sRQ9.com", + external_id: "ectqoj4yKOsEPCrpQPvSjUDltH57", + with_disabled: true, + page: 4251, + per_page: 1967 })); status = response.code; } catch (e) { @@ -5555,10 +5584,21 @@ test('Check UpdateShop | 9', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneys | 0', async () => { +test('Check ListShops | 10', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneys()); + const response: Response = await client.send(new ListShops({ + private_money_id: "0f619cdb-6882-4a79-b39c-6ac4d59ea4bf", + name: "pO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI", + postal_code: "470-8763", + address: "tIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJ", + tel: "0962274594", + email: "rH7Ml90Eeu@ZgaP.com", + external_id: "20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq", + with_disabled: false, + page: 3137, + per_page: 6059 + })); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -5569,11 +5609,21 @@ test('Check GetPrivateMoneys | 0', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneys | 1', async () => { +test('Check ListShops | 11', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneys({ - per_page: 7304 + const response: Response = await client.send(new ListShops({ + organization_code: "-325e-", + private_money_id: "1246ac4e-2bb0-4a00-9438-e8822439b330", + name: "aLvrKoRyTXgPVT4AzeoZEOYu", + postal_code: "5179201", + address: "lWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcNHBIUBy90", + tel: "092612595", + email: "yLgJllatyS@0exo.com", + external_id: "ZwnX2Y3MjJVkSKFu78PD8Ns", + with_disabled: true, + page: 177, + per_page: 5901 })); status = response.code; } catch (e) { @@ -5585,12 +5635,11 @@ test('Check GetPrivateMoneys | 1', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneys | 2', async () => { +test('Check CreateShop | 0', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneys({ - page: 8271, - per_page: 3342 + const response: Response = await client.send(new CreateShop({ + shop_name: "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" })); status = response.code; } catch (e) { @@ -5602,13 +5651,12 @@ test('Check GetPrivateMoneys | 2', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneys | 3', async () => { +test('Check CreateShop | 1', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneys({ - organization_code: "Ql16-2VJig-h-2e-", - page: 9618, - per_page: 4349 + const response: Response = await client.send(new CreateShop({ + shop_name: "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh", + organization_code: "8GKA8B--Yx--7Lw-HR09g---0--6" })); status = response.code; } catch (e) { @@ -5620,11 +5668,13 @@ test('Check GetPrivateMoneys | 3', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneyOrganizationSummaries | 0', async () => { +test('Check CreateShop | 2', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "8e06885f-39ba-4523-bab0-7afd6cf47968" + const response: Response = await client.send(new CreateShop({ + shop_name: "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh", + shop_external_id: "DH6cAdyVZn4o55A5DS", + organization_code: "M---aZN9aTZ-MACo-8Dz" })); status = response.code; } catch (e) { @@ -5636,12 +5686,14 @@ test('Check GetPrivateMoneyOrganizationSummaries | 0', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneyOrganizationSummaries | 1', async () => { +test('Check CreateShop | 3', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "8e06885f-39ba-4523-bab0-7afd6cf47968", - page: 7369 + const response: Response = await client.send(new CreateShop({ + shop_name: "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh", + shop_email: "R94JgHtiXr@fi45.com", + shop_external_id: "gdORj3Jla3Pfb8OgNhhqnfBQjV", + organization_code: "-l4" })); status = response.code; } catch (e) { @@ -5653,13 +5705,15 @@ test('Check GetPrivateMoneyOrganizationSummaries | 1', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneyOrganizationSummaries | 2', async () => { +test('Check CreateShop | 4', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "8e06885f-39ba-4523-bab0-7afd6cf47968", - per_page: 3061, - page: 9937 + const response: Response = await client.send(new CreateShop({ + shop_name: "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh", + shop_tel: "03069596-8709", + shop_email: "eVkLQLhc7h@buv3.com", + shop_external_id: "B8S8pH3eqOx8cOR3TFR9a8hM", + organization_code: "-8l--M2-R-1f--Bayj6cu" })); status = response.code; } catch (e) { @@ -5671,13 +5725,16 @@ test('Check GetPrivateMoneyOrganizationSummaries | 2', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneyOrganizationSummaries | 3', async () => { +test('Check CreateShop | 5', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "8e06885f-39ba-4523-bab0-7afd6cf47968", - from: "2025-05-04T04:25:39.000000+09:00", - to: "2015-11-08T17:49:55.000000+09:00" + const response: Response = await client.send(new CreateShop({ + shop_name: "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh", + shop_address: "ryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4L", + shop_tel: "090991535", + shop_email: "GHUnCvc4A5@HlCo.com", + shop_external_id: "2a7OllUlOCGYapVIyu0", + organization_code: "-J-7--VX-Vq-xE" })); status = response.code; } catch (e) { @@ -5689,14 +5746,17 @@ test('Check GetPrivateMoneyOrganizationSummaries | 3', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneyOrganizationSummaries | 4', async () => { +test('Check CreateShop | 6', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "8e06885f-39ba-4523-bab0-7afd6cf47968", - from: "2016-09-01T17:36:27.000000+09:00", - to: "2015-11-30T01:37:50.000000+09:00", - page: 9415 + const response: Response = await client.send(new CreateShop({ + shop_name: "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh", + shop_postal_code: "640-8980", + shop_address: "VYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2g", + shop_tel: "07-3343-3491", + shop_email: "gSjd1Lu4N1@G4Dl.com", + shop_external_id: "fWLsx2", + organization_code: "-RiV-tm-7-0-" })); status = response.code; } catch (e) { @@ -5708,15 +5768,11 @@ test('Check GetPrivateMoneyOrganizationSummaries | 4', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneyOrganizationSummaries | 5', async () => { +test('Check CreateShopV2 | 0', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "8e06885f-39ba-4523-bab0-7afd6cf47968", - from: "2025-04-22T18:29:23.000000+09:00", - to: "2015-12-30T14:07:11.000000+09:00", - per_page: 2662, - page: 4658 + const response: Response = await client.send(new CreateShopV2({ + name: "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" })); status = response.code; } catch (e) { @@ -5728,11 +5784,12 @@ test('Check GetPrivateMoneyOrganizationSummaries | 5', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneySummary | 0', async () => { +test('Check CreateShopV2 | 1', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneySummary({ - private_money_id: "bd0531bd-47b0-4b84-b34d-73ee35853f8c" + const response: Response = await client.send(new CreateShopV2({ + name: "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA", + can_topup_private_money_ids: [] })); status = response.code; } catch (e) { @@ -5744,12 +5801,13 @@ test('Check GetPrivateMoneySummary | 0', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneySummary | 1', async () => { +test('Check CreateShopV2 | 2', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneySummary({ - private_money_id: "bd0531bd-47b0-4b84-b34d-73ee35853f8c", - to: "2021-10-06T11:52:16.000000+09:00" + const response: Response = await client.send(new CreateShopV2({ + name: "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA", + private_money_ids: ["021a463d-0616-440a-b26d-2fbeb9ac8b3d", "aa2644fd-d013-4976-8f4f-3611110f19ed", "14a00056-65f1-47c0-b9b7-d0e0a5c529cc", "9cb66f3a-45a3-4ac8-8c49-52ad2c40b85b", "e21b0a54-be90-47f0-aa43-c3538d100963", "57ac104d-1d3c-4335-b084-42db48ed679e", "d2f1506f-ed1c-4c8a-b69e-3e26cd9b2b7a", "03a015d1-99f2-4f5b-a0d5-3fbac3180492"], + can_topup_private_money_ids: ["34fbea0b-c607-47b5-8df9-4a89a9816cbf", "e27477c8-cdf4-4e6f-80fc-d9df74d46d47"] })); status = response.code; } catch (e) { @@ -5761,13 +5819,14 @@ test('Check GetPrivateMoneySummary | 1', async () => { expect(status).not.toBe(400); }) -test('Check GetPrivateMoneySummary | 2', async () => { +test('Check CreateShopV2 | 3', async () => { let status = 400; try { - const response: Response = await client.send(new GetPrivateMoneySummary({ - private_money_id: "bd0531bd-47b0-4b84-b34d-73ee35853f8c", - from: "2024-04-27T14:00:25.000000+09:00", - to: "2018-03-11T03:52:08.000000+09:00" + const response: Response = await client.send(new CreateShopV2({ + name: "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA", + organization_code: "l----D-ctVbMJ61W9htR-3Va0Ay", + private_money_ids: ["05596275-2289-4aa4-af88-88a7b98cd11f", "2d8d01fe-4087-48f8-9e61-57abac7207a3", "e334e339-321f-4163-a6a6-962c429b088c", "a3219471-ab64-44c2-ba8a-7cdab8b6dc5e", "ceca6d8d-4f42-457e-933b-435370383001", "aeeeb279-bda5-4df5-bb15-88d055e6c840", "85284173-8d4c-4867-a3b1-b9b48004810a", "472b45ea-322f-4852-a9c8-e43148ba70dd", "e19cf3e4-f461-4e83-81ca-9757b16f2c6b"], + 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"] })); status = response.code; } catch (e) { @@ -5779,11 +5838,15 @@ test('Check GetPrivateMoneySummary | 2', async () => { expect(status).not.toBe(400); }) -test('Check ListCustomerTransactions | 0', async () => { +test('Check CreateShopV2 | 4', async () => { let status = 400; try { - const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "9aeda297-0da1-408d-a7da-43b4395e855b" + const response: Response = await client.send(new CreateShopV2({ + name: "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA", + external_id: "PwHED0", + organization_code: "I-LjBmQNU-8", + private_money_ids: ["54a3bfb3-4c30-4334-b1e3-77e03818377a", "2abe7376-5b55-4937-b47c-2a69ec5e4ad4", "b56f1029-3e14-4e47-abce-7895c7242b83", "13a9ed59-c901-4484-977e-24eceb302044", "bb113279-533b-4152-ab33-4761d6ff3a7e", "0475f147-e14d-409e-b0f3-6205b5da1331", "10689348-129e-41ce-b2cf-12acaa1d6e3b", "44b4a686-1c17-4169-b828-c70092b5ceae", "3e86457b-340c-4ec7-9d16-dc7a7e2e6b82"], + can_topup_private_money_ids: ["949746a3-a10f-43c0-977b-787e78f7cc17", "76f38c14-3c57-4812-b2e5-2ab6dcabbb26", "c0344cf9-5b49-4f93-9fc8-abc3e700300a"] })); status = response.code; } catch (e) { @@ -5795,12 +5858,16 @@ test('Check ListCustomerTransactions | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListCustomerTransactions | 1', async () => { +test('Check CreateShopV2 | 5', async () => { let status = 400; try { - const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "9aeda297-0da1-408d-a7da-43b4395e855b", - per_page: 9126 + const response: Response = await client.send(new CreateShopV2({ + name: "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA", + email: "ge3KvTMWtv@AOdq.com", + external_id: "c6t46b4EgFIpDVk2sqQhlA", + organization_code: "56zJw7T--EY-869YkBq--", + private_money_ids: ["788b6c4f-1ceb-4986-8c59-0c89644070e2", "3b67865d-784a-40cd-b49c-04b630ebe918", "179039d9-8a47-4eae-92a0-58ddc0c20b4b", "50fd0944-b7ca-4021-a517-511a538cf11e", "6fbd232a-fe56-4151-819d-87ce091c0808", "876d1ef4-8d66-4926-9bd5-3a64cacfacc8", "be42bfa8-f5d6-4c63-b36f-807563e177fc", "fef022f8-5a96-4258-b386-07781431df49", "de6731b9-ba12-40c3-a6c8-981305bcf564", "4e91d35a-f95f-4747-bd6b-7f45ee2eed17"], + can_topup_private_money_ids: ["6107883f-9012-4fc4-81d3-35eb718836a4", "b776e952-f479-4466-9799-9b60f974f14b", "033eae41-2378-406a-8c24-46fc52cf11d1", "b5934c88-afd7-43ea-8e43-2842315ab0b8", "0c506492-f39a-461f-80ee-22c688b2e63f", "3f574c2f-d090-4c7c-a382-50f1c5915912", "622c28ed-d045-4886-a698-564eda5c0c05", "37f0b966-7ec4-486f-bb95-5cbf014cddf2", "1bef7931-a6fa-45ac-a721-c0f74887ae3f"] })); status = response.code; } catch (e) { @@ -5812,13 +5879,17 @@ test('Check ListCustomerTransactions | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListCustomerTransactions | 2', async () => { +test('Check CreateShopV2 | 6', async () => { let status = 400; try { - const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "9aeda297-0da1-408d-a7da-43b4395e855b", - page: 1038, - per_page: 2713 + const response: Response = await client.send(new CreateShopV2({ + name: "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA", + tel: "09833002-082", + email: "hH3FEHzbfU@4cD6.com", + external_id: "smAeqngifjNikqD", + organization_code: "1-CO7", + private_money_ids: ["83f7244d-b0af-4356-9311-78e427eca4e2"], + can_topup_private_money_ids: ["79717c39-c511-4680-8e3a-e9477cc25c35", "2b09a25d-1b61-4bc5-9b2a-dd33bd04f271", "fc8dcc34-a8a4-47e7-94ce-213913029686", "e1c79326-2633-4023-a748-32cacb75dca2", "f0654427-e741-40aa-bc3b-bf31e5ede99a", "0b3b8099-3dc6-422c-a6ab-be063fd4446e", "b3fd0b21-3582-452b-a558-901f38a834fe", "eefa4c86-9ed9-45d2-968d-20a2e96d2bb1", "65148f46-26a5-4bc2-b539-7bdbaaf636d6"] })); status = response.code; } catch (e) { @@ -5830,14 +5901,18 @@ test('Check ListCustomerTransactions | 2', async () => { expect(status).not.toBe(400); }) -test('Check ListCustomerTransactions | 3', async () => { +test('Check CreateShopV2 | 7', async () => { let status = 400; try { - const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "9aeda297-0da1-408d-a7da-43b4395e855b", - to: "2025-01-06T23:21:15.000000+09:00", - page: 2285, - per_page: 5996 + const response: Response = await client.send(new CreateShopV2({ + name: "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA", + address: "wmK2QWEkaIk3Nf304AeRoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJx", + tel: "00557643485", + email: "b1QYmVCtk7@8Jxd.com", + external_id: "gtNZkgpDcQrvPvYu9rBG", + organization_code: "RSvLJo", + private_money_ids: ["5eafa213-c341-428b-9f0d-e57be53ebae0", "3586a578-aa08-48d5-b87e-889150ee8278", "f1a4cbab-596f-454a-b3ed-4fb2f361cc63", "fe57dc18-4d00-497e-9c4f-e4d92b48fe46", "af610609-147c-43a3-8eb3-e86622b1d44a", "3272d559-2305-4b5d-b75d-db16ef1990a6", "56d06feb-4f8f-484c-82db-45695f2d360e"], + can_topup_private_money_ids: ["70ea7ac0-0661-4f96-9e04-510fe3e1533f", "b309dec0-6ca8-4b0b-810b-fcf30660fa4e", "e9468349-c018-4733-94d1-df347268d855", "70783ee2-e5e2-4424-9f14-493813bdfb9c", "3cab1f40-b123-49d5-bf34-5e4cc80b38ef"] })); status = response.code; } catch (e) { @@ -5849,15 +5924,19 @@ test('Check ListCustomerTransactions | 3', async () => { expect(status).not.toBe(400); }) -test('Check ListCustomerTransactions | 4', async () => { +test('Check CreateShopV2 | 8', async () => { let status = 400; try { - const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "9aeda297-0da1-408d-a7da-43b4395e855b", - from: "2023-08-13T08:09:24.000000+09:00", - to: "2023-12-21T03:21:30.000000+09:00", - page: 1643, - per_page: 402 + const response: Response = await client.send(new CreateShopV2({ + name: "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA", + postal_code: "5755698", + address: "VQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmfQbT09Lp665rg0d7eGITtIklkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFM", + tel: "055048-196", + email: "yxvlj5Kalq@xA7H.com", + external_id: "qvdSNveWz", + organization_code: "24-hS-Xw8u0Ph2Nc97g-LP-", + private_money_ids: ["1ce90ba7-0bb7-4ab6-add4-f66f8482615c", "544ea624-91c8-4c2e-a3e3-5f7cda8dcba1", "5e046b89-5708-498d-ac00-36b877ee30e4", "94dfeef4-9522-4a2a-ba3f-e615a2685b63", "3449b0f1-882d-4fc4-b6f2-9a713770462e", "e37dbe40-107f-45f7-8726-29448a57f2fd", "f7623a88-6a56-46d2-a46f-c5a019ca9cea"], + can_topup_private_money_ids: ["34361b47-5a6a-447b-a967-6648a560cc70", "dd98a114-451f-46da-bb04-a36cbf8a121b", "99048d9d-8392-4838-896e-c315c506f9a5", "7c3481a6-a82d-46c8-a213-c6d1731a8542", "b9625ee8-fecd-403b-897b-428eea6f2172"] })); status = response.code; } catch (e) { @@ -5869,16 +5948,11 @@ test('Check ListCustomerTransactions | 4', async () => { expect(status).not.toBe(400); }) -test('Check ListCustomerTransactions | 5', async () => { +test('Check GetShop | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "9aeda297-0da1-408d-a7da-43b4395e855b", - is_modified: true, - from: "2021-12-14T02:01:22.000000+09:00", - to: "2020-05-11T17:28:34.000000+09:00", - page: 1318, - per_page: 3519 + const response: Response = await client.send(new GetShop({ + shop_id: "638ae364-4dda-474a-8c54-0198b0d9e027" })); status = response.code; } catch (e) { @@ -5890,17 +5964,11 @@ test('Check ListCustomerTransactions | 5', async () => { expect(status).not.toBe(400); }) -test('Check ListCustomerTransactions | 6', async () => { +test('Check UpdateShop | 0', async () => { let status = 400; try { - const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "9aeda297-0da1-408d-a7da-43b4395e855b", - type: "exchange", - is_modified: true, - from: "2024-12-02T20:58:36.000000+09:00", - to: "2016-11-07T11:19:15.000000+09:00", - page: 8620, - per_page: 1983 + const response: Response = await client.send(new UpdateShop({ + shop_id: "f955ad39-a505-4cae-bcab-3898474d3cff" })); status = response.code; } catch (e) { @@ -5912,18 +5980,12 @@ test('Check ListCustomerTransactions | 6', async () => { expect(status).not.toBe(400); }) -test('Check ListCustomerTransactions | 7', async () => { +test('Check UpdateShop | 1', async () => { let status = 400; try { - const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "9aeda297-0da1-408d-a7da-43b4395e855b", - receiver_customer_id: "825cb285-ed59-4d79-9c99-71d588823b92", - type: "expire", - is_modified: false, - from: "2015-11-30T10:43:39.000000+09:00", - to: "2019-07-05T23:30:23.000000+09:00", - page: 5913, - per_page: 9914 + const response: Response = await client.send(new UpdateShop({ + shop_id: "f955ad39-a505-4cae-bcab-3898474d3cff", + status: "disabled" })); status = response.code; } catch (e) { @@ -5935,19 +5997,13 @@ test('Check ListCustomerTransactions | 7', async () => { expect(status).not.toBe(400); }) -test('Check ListCustomerTransactions | 8', async () => { +test('Check UpdateShop | 2', async () => { let status = 400; try { - const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "9aeda297-0da1-408d-a7da-43b4395e855b", - sender_customer_id: "180e68c2-ec35-4a0d-a87d-9bbb6ae12140", - receiver_customer_id: "5404cc2a-38f4-49e7-8e26-d8c92c3622c4", - type: "topup", - is_modified: false, - from: "2020-09-11T12:12:34.000000+09:00", - to: "2017-07-29T03:27:10.000000+09:00", - page: 5391, - per_page: 7594 + const response: Response = await client.send(new UpdateShop({ + shop_id: "f955ad39-a505-4cae-bcab-3898474d3cff", + can_topup_private_money_ids: ["5fa90a67-3047-4dfe-878a-eee672a5e923"], + status: "active" })); status = response.code; } catch (e) { @@ -5959,11 +6015,14 @@ test('Check ListCustomerTransactions | 8', async () => { expect(status).not.toBe(400); }) -test('Check GetBulkTransaction | 0', async () => { +test('Check UpdateShop | 3', async () => { let status = 400; try { - const response: Response = await client.send(new GetBulkTransaction({ - bulk_transaction_id: "3bc1ff09-4879-44ea-bb33-454222aabdc5" + const response: Response = await client.send(new UpdateShop({ + shop_id: "f955ad39-a505-4cae-bcab-3898474d3cff", + private_money_ids: ["29fb46c5-b0ec-48aa-abd3-7c63c52755f4", "3d0263b5-85ab-4040-b6f4-d34283f789b3", "3eb85d40-a0d1-4c76-9b40-60d90f7262ea", "69c91f11-9ef9-4138-adfb-1f556ce4fe92"], + can_topup_private_money_ids: ["5051c900-a3e7-4fc4-b995-18d8133f5e2e", "2aa5f88e-fc51-4f3a-a314-3c59ffd68307", "2484e9cf-4d8e-45aa-9801-0fd37fd97073", "bca5ddae-a968-4818-99f0-8bbddafef847", "b75cabcd-3a43-4e6b-a5b1-d8b082e4543c", "95fb439b-4fe6-47c1-a0f0-760b37469215", "d15d3b23-df99-41a0-8b8b-f9a98e80cf6a", "74f519ad-bc22-4f14-82a5-4dc81236f1fc", "1ab9e96e-582c-4dc1-ad64-546c230b35cb", "c071107f-4991-4a69-9c8b-51d59157551d"], + status: "active" })); status = response.code; } catch (e) { @@ -5975,11 +6034,15 @@ test('Check GetBulkTransaction | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListBulkTransactionJobs | 0', async () => { +test('Check UpdateShop | 4', async () => { let status = 400; try { - const response: Response = await client.send(new ListBulkTransactionJobs({ - bulk_transaction_id: "370e4c3f-9576-4059-be3e-40f0c8aff2bf" + const response: Response = await client.send(new UpdateShop({ + shop_id: "f955ad39-a505-4cae-bcab-3898474d3cff", + external_id: "9Jq", + private_money_ids: ["c68e4efb-1f16-49fc-8222-1f61bb680fa0", "c74a61ee-3a0c-4cc9-94aa-775ca1bc5a7e", "1c5cc500-ba0c-43bc-85b8-ce255910bbc6", "7b24ba89-06f1-4dc9-98f1-dafa999c5565", "cb769e89-7619-47a1-ac82-5bc7d0a85d7e", "aafdc9be-a129-40da-bbc4-3c4f5d81e904", "7492fb87-0ace-4855-9f25-3f2c6bb56041", "a230f8bd-092d-45a6-8a20-31e6d3d9be5e", "ce8674ec-f832-47c8-8df4-b5dbffb072a0"], + can_topup_private_money_ids: ["777ab079-f261-418c-9301-5a57e5916930", "1ea06047-daeb-46f4-86b1-3970ddcfbe8f", "7e85e68f-01cf-4593-8cc2-9da4168c7a5a", "399d3c81-38fb-4d17-9efb-70bae03a6f81", "7785ce08-d1ef-4bfe-b3f8-b96381658f55", "e308a894-e9df-4eb6-bbd7-bf311836ad5e", "2563113d-6f76-4128-bbc6-b89be1307722"], + status: "disabled" })); status = response.code; } catch (e) { @@ -5991,12 +6054,16 @@ test('Check ListBulkTransactionJobs | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListBulkTransactionJobs | 1', async () => { +test('Check UpdateShop | 5', async () => { let status = 400; try { - const response: Response = await client.send(new ListBulkTransactionJobs({ - bulk_transaction_id: "370e4c3f-9576-4059-be3e-40f0c8aff2bf", - per_page: 1216 + const response: Response = await client.send(new UpdateShop({ + shop_id: "f955ad39-a505-4cae-bcab-3898474d3cff", + email: "KN952VUdQ3@t63W.com", + external_id: "20fNhPhFK8mUwq4sfxVOVqIgogobrlT", + private_money_ids: ["9823cf2b-f381-44ae-b60b-d5f20e5219cb", "55a1f4f2-b119-4bf5-a9fb-b769884cf7fc"], + can_topup_private_money_ids: ["636c1820-9a26-4773-907b-90477b34d0e3", "007be46a-5552-4278-a4bb-e5914e4db0cb", "5493bc2b-50fc-485f-ba23-a77a6d468db0", "019d7afd-7968-4dee-8821-680672124bf4", "4813a6d0-78bb-4722-853d-0c6ddd1fa49f", "cff5a1a7-2a10-45cf-951a-700da84524c6", "38ad6c7b-5b7a-4e79-a565-9231bd0531bd", "12ff47b0-6b84-44f3-8dee-3f8ccf24f131"], + status: "active" })); status = response.code; } catch (e) { @@ -6008,13 +6075,17 @@ test('Check ListBulkTransactionJobs | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListBulkTransactionJobs | 2', async () => { +test('Check UpdateShop | 6', async () => { let status = 400; try { - const response: Response = await client.send(new ListBulkTransactionJobs({ - bulk_transaction_id: "370e4c3f-9576-4059-be3e-40f0c8aff2bf", - page: 5407, - per_page: 2866 + const response: Response = await client.send(new UpdateShop({ + shop_id: "f955ad39-a505-4cae-bcab-3898474d3cff", + tel: "00-745-336", + email: "lk2JdjznjO@ojFz.com", + external_id: "yYyUwwyS9B5htgNIDpUpzK", + private_money_ids: ["3bc1ff09-4879-44ea-bb33-454222aabdc5", "370e4c3f-9576-4059-be3e-40f0c8aff2bf", "202a04bf-151e-4b31-ada7-673efe94eadc", "1ac3a6d4-78e2-401e-b5f9-e1531fd257c9", "81047840-cfa6-4018-b901-717decbe0290", "935a3139-1bf6-424d-a8e0-a3bd759a830f", "0bd62426-11e6-416a-9201-127dd63638f3", "407b3139-7a52-4d53-9b56-c01791224d49", "eff36d7c-af75-4621-92db-74cca06ff8ca"], + can_topup_private_money_ids: ["06c38321-09ed-49d5-a76f-19e4592a9639"], + status: "active" })); status = response.code; } catch (e) { @@ -6026,13 +6097,18 @@ test('Check ListBulkTransactionJobs | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateCashtray | 0', async () => { +test('Check UpdateShop | 7', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCashtray({ - private_money_id: "c2d9df2d-94a7-473e-9cd4-78e2e8a7301e", - shop_id: "9baa4f75-edf9-4153-8940-cfa69c0fe018", - amount: 3449.0 + const response: Response = await client.send(new UpdateShop({ + shop_id: "f955ad39-a505-4cae-bcab-3898474d3cff", + address: "RMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L7gW6p", + tel: "08746216-4489", + email: "oBOihdHvej@Lf7H.com", + external_id: "UNUhMpEnczy", + private_money_ids: ["7588d1e0-d04d-4d0a-97c1-9f7e33de2401", "719dfe50-f1af-4ee2-88d8-e003f62f85f9", "67b7fd3a-8ef4-4613-a483-feea17e06d5b", "826a47d5-8154-42b8-8619-e66be8fb3345", "bc3ff43d-ba36-4857-985c-934454f230e5", "9eaeeded-d2b2-4606-b267-afd321cbf6fa", "8b51258a-8c1d-4883-befc-3bfaa98cd7b3", "884f68b5-bbe1-48dd-bb22-24252c015f51"], + can_topup_private_money_ids: ["4a941bb4-f044-498e-b912-e3b4e1884c6b", "1aa98052-8615-42b9-9330-a4d8e967e62f", "0d630554-b82e-4de4-a4ed-a54817458563", "80181943-76b0-4263-87fe-0c4612f3d73c", "98aeea40-c484-481e-9541-c88fe92b5693"], + status: "active" })); status = response.code; } catch (e) { @@ -6044,14 +6120,19 @@ test('Check CreateCashtray | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateCashtray | 1', async () => { +test('Check UpdateShop | 8', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCashtray({ - private_money_id: "c2d9df2d-94a7-473e-9cd4-78e2e8a7301e", - shop_id: "9baa4f75-edf9-4153-8940-cfa69c0fe018", - amount: 3449.0, - expires_in: 2 + const response: Response = await client.send(new UpdateShop({ + shop_id: "f955ad39-a505-4cae-bcab-3898474d3cff", + postal_code: "2576971", + address: "FofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBW", + tel: "01-6918789", + email: "KNgsodWT1k@P64c.com", + external_id: "hZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5", + private_money_ids: ["ab36d9f0-1794-4c21-99e9-521cc876a0ab", "adda7660-557a-491a-a56c-9888103f5578", "fe3a9b7f-aa36-418e-bdda-d6f780992ab3", "ead5fdc1-eace-405d-ab24-f9a7ec283ddf"], + can_topup_private_money_ids: ["c8dd41ae-0a04-4ce5-8e4d-d25356c9c581", "1dea5adb-bc3a-4b7f-ad3d-e0ee5be50599"], + status: "disabled" })); status = response.code; } catch (e) { @@ -6063,15 +6144,20 @@ test('Check CreateCashtray | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateCashtray | 2', async () => { +test('Check UpdateShop | 9', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCashtray({ - private_money_id: "c2d9df2d-94a7-473e-9cd4-78e2e8a7301e", - shop_id: "9baa4f75-edf9-4153-8940-cfa69c0fe018", - amount: 3449.0, - description: "9vMfjs9RSVIuRLJamUgod9vJRMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L7gW6pVOxZ4jRFNa6hoBOihdHvejLf7HU", - expires_in: 4943 + const response: Response = await client.send(new UpdateShop({ + shop_id: "f955ad39-a505-4cae-bcab-3898474d3cff", + name: "igb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3hyN", + postal_code: "0717105", + address: "fSJX1OiNUbqHXuSEWeM8VLmM8qznKIn9uBoqN3XKkwmXFnLL0vhZmz7rucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34hD1uxIbudPgKcAH4LqtvnYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46DL0EY9Dfg2K2KSBJ32yceHkpeJS53", + tel: "0196952029", + email: "uNlhP5RwfR@sdmS.com", + external_id: "nsKFojcLOuuurZaaP5z", + private_money_ids: ["f79d17f5-c6e9-4074-8ac1-0c57e8a7a542", "923d5e6e-f9cd-4954-9108-2183bf1ddb07", "da32a409-5072-49f1-914c-fd6240e5be18", "964449b4-4a0a-4186-a786-a54641f375b2", "5b20ebff-7414-4925-b75f-ab9215b0fa39", "50788947-c563-4e05-8773-ef64881eb210"], + can_topup_private_money_ids: ["cf9981f4-70bc-46a6-834d-d1b3c74ccdac", "c5c87499-e6f5-432c-97c0-408bc5a6a98c", "9eb27d88-aa5e-4c53-a11d-87c540654e59", "c1060862-d4f5-4d98-a17e-eeba284b644f"], + status: "active" })); status = response.code; } catch (e) { @@ -6083,12 +6169,10 @@ test('Check CreateCashtray | 2', async () => { expect(status).not.toBe(400); }) -test('Check GetCashtray | 0', async () => { +test('Check GetPrivateMoneys | 0', async () => { let status = 400; try { - const response: Response = await client.send(new GetCashtray({ - cashtray_id: "8cc3a555-89ae-400f-a868-4105ad42950d" - })); + const response: Response = await client.send(new GetPrivateMoneys()); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -6099,11 +6183,11 @@ test('Check GetCashtray | 0', async () => { expect(status).not.toBe(400); }) -test('Check CancelCashtray | 0', async () => { +test('Check GetPrivateMoneys | 1', async () => { let status = 400; try { - const response: Response = await client.send(new CancelCashtray({ - cashtray_id: "19086e28-d892-4421-8df0-ce2bdda0fe8a" + const response: Response = await client.send(new GetPrivateMoneys({ + per_page: 8186 })); status = response.code; } catch (e) { @@ -6115,11 +6199,12 @@ test('Check CancelCashtray | 0', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCashtray | 0', async () => { +test('Check GetPrivateMoneys | 2', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCashtray({ - cashtray_id: "18813a8a-6d45-41ba-ae96-7b2e782ea488" + const response: Response = await client.send(new GetPrivateMoneys({ + page: 5810, + per_page: 4290 })); status = response.code; } catch (e) { @@ -6131,12 +6216,13 @@ test('Check UpdateCashtray | 0', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCashtray | 1', async () => { +test('Check GetPrivateMoneys | 3', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCashtray({ - cashtray_id: "18813a8a-6d45-41ba-ae96-7b2e782ea488", - expires_in: 8932 + const response: Response = await client.send(new GetPrivateMoneys({ + organization_code: "3----MH-9o-yfn-lICQwSF6", + page: 1459, + per_page: 8245 })); status = response.code; } catch (e) { @@ -6148,13 +6234,11 @@ test('Check UpdateCashtray | 1', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCashtray | 2', async () => { +test('Check GetPrivateMoneyOrganizationSummaries | 0', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCashtray({ - cashtray_id: "18813a8a-6d45-41ba-ae96-7b2e782ea488", - description: "OhMWAPbHXytdjUT8FkE6WXDem2rgSzz35aQ4D94kR9S0XT", - expires_in: 3557 + const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ + private_money_id: "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" })); status = response.code; } catch (e) { @@ -6166,14 +6250,12 @@ test('Check UpdateCashtray | 2', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCashtray | 3', async () => { +test('Check GetPrivateMoneyOrganizationSummaries | 1', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCashtray({ - cashtray_id: "18813a8a-6d45-41ba-ae96-7b2e782ea488", - amount: 6125.0, - description: "cC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXi", - expires_in: 3665 + const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ + private_money_id: "d8b99c9b-157c-4c26-b8cb-a653d242dd9c", + page: 3171 })); status = response.code; } catch (e) { @@ -6185,16 +6267,13 @@ test('Check UpdateCashtray | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 0', async () => { +test('Check GetPrivateMoneyOrganizationSummaries | 2', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment" + const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ + private_money_id: "d8b99c9b-157c-4c26-b8cb-a653d242dd9c", + per_page: 3815, + page: 8720 })); status = response.code; } catch (e) { @@ -6206,20 +6285,13 @@ test('Check CreateCampaign | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 1', async () => { +test('Check GetPrivateMoneyOrganizationSummaries | 3', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ + private_money_id: "d8b99c9b-157c-4c26-b8cb-a653d242dd9c", + from: "2022-05-07T10:50:17.000000Z", + to: "2020-06-21T04:11:02.000000Z" })); status = response.code; } catch (e) { @@ -6231,21 +6303,14 @@ test('Check CreateCampaign | 1', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 2', async () => { +test('Check GetPrivateMoneyOrganizationSummaries | 4', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - dest_private_money_id: "1dea5adb-bc3a-4b7f-ad3d-e0ee5be50599", - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ + private_money_id: "d8b99c9b-157c-4c26-b8cb-a653d242dd9c", + from: "2021-11-09T07:50:51.000000Z", + to: "2020-02-07T11:49:14.000000Z", + page: 9542 })); status = response.code; } catch (e) { @@ -6257,22 +6322,15 @@ test('Check CreateCampaign | 2', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 3', async () => { +test('Check GetPrivateMoneyOrganizationSummaries | 5', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - max_total_point_amount: 1428, - dest_private_money_id: "f8dd329d-9569-4967-8e62-07340df948d9", - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ + private_money_id: "d8b99c9b-157c-4c26-b8cb-a653d242dd9c", + from: "2023-03-29T21:09:55.000000Z", + to: "2023-12-24T11:05:04.000000Z", + per_page: 8558, + page: 4876 })); status = response.code; } catch (e) { @@ -6284,23 +6342,11 @@ test('Check CreateCampaign | 3', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 4', async () => { +test('Check GetPrivateMoneySummary | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - max_point_amount: 4148, - max_total_point_amount: 6711, - dest_private_money_id: "5e4771eb-586d-4e76-b98f-4868a39e287c", - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new GetPrivateMoneySummary({ + private_money_id: "f3db3178-c932-44fa-939a-ee7eab246f13" })); status = response.code; } catch (e) { @@ -6312,24 +6358,12 @@ test('Check CreateCampaign | 4', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 5', async () => { +test('Check GetPrivateMoneySummary | 1', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - exist_in_each_product_groups: true, - max_point_amount: 3453, - max_total_point_amount: 783, - dest_private_money_id: "a56da60f-7103-41ea-a2c4-1637bd8577a2", - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new GetPrivateMoneySummary({ + private_money_id: "f3db3178-c932-44fa-939a-ee7eab246f13", + to: "2023-03-31T23:23:39.000000Z" })); status = response.code; } catch (e) { @@ -6341,25 +6375,13 @@ test('Check CreateCampaign | 5', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 6', async () => { +test('Check GetPrivateMoneySummary | 2', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - minimum_number_for_combination_purchase: 4362, - exist_in_each_product_groups: false, - max_point_amount: 802, - max_total_point_amount: 6279, - dest_private_money_id: "754162fe-6f2d-4631-8abb-bfec97ecff16", - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new GetPrivateMoneySummary({ + private_money_id: "f3db3178-c932-44fa-939a-ee7eab246f13", + from: "2020-05-17T23:35:35.000000Z", + to: "2021-05-12T16:59:00.000000Z" })); status = response.code; } catch (e) { @@ -6371,26 +6393,11 @@ test('Check CreateCampaign | 6', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 7', async () => { +test('Check ListCustomerTransactions | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - applicable_shop_ids: [], - minimum_number_for_combination_purchase: 6333, - exist_in_each_product_groups: true, - max_point_amount: 7202, - max_total_point_amount: 7803, - dest_private_money_id: "28ae01f1-8649-4582-a8b5-544dd8b0f3cc", - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new ListCustomerTransactions({ + private_money_id: "fbf34e5c-b131-4778-8208-3d289e0d477c" })); status = response.code; } catch (e) { @@ -6402,36 +6409,30 @@ test('Check CreateCampaign | 7', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 8', async () => { +test('Check ListCustomerTransactions | 1', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: [], - minimum_number_for_combination_purchase: 4977, - exist_in_each_product_groups: false, - max_point_amount: 870, - max_total_point_amount: 3830, - dest_private_money_id: "9241e390-c952-4f98-ae4a-9a216a6d5b18", - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new ListCustomerTransactions({ + private_money_id: "fbf34e5c-b131-4778-8208-3d289e0d477c", + per_page: 1705 + })); + 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 ListCustomerTransactions | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCustomerTransactions({ + private_money_id: "fbf34e5c-b131-4778-8208-3d289e0d477c", + page: 3943, + per_page: 2309 })); status = response.code; } catch (e) { @@ -6443,28 +6444,34 @@ test('Check CreateCampaign | 8', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 9', async () => { +test('Check ListCustomerTransactions | 3', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - applicable_days_of_week: [6], - applicable_time_ranges: [], - applicable_shop_ids: ["70427f6c-ec04-433b-ad54-cc8922c6b99b", "a2654995-8f50-450d-81b3-b42cae4d5190", "f04958c2-a24e-405b-ae1d-a4d03ea8e6ca", "4abee260-7baf-40ef-a39d-b8b0e8ac60fc", "b6157943-91fc-4204-8860-b1b1ec97272b", "428d1015-1d30-4cc7-9162-7a39a2f2b297", "27e4015f-c036-48ca-ba63-155e05f34ee5", "fa2a767d-da16-41e6-b726-3c6611905dff"], - minimum_number_for_combination_purchase: 673, - exist_in_each_product_groups: false, - max_point_amount: 1481, - max_total_point_amount: 1063, - dest_private_money_id: "06c8253e-0065-45de-a8be-65fc3befde31", - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new ListCustomerTransactions({ + private_money_id: "fbf34e5c-b131-4778-8208-3d289e0d477c", + to: "2022-02-22T06:42:36.000000Z", + page: 4910, + per_page: 3622 + })); + 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 ListCustomerTransactions | 4', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCustomerTransactions({ + private_money_id: "fbf34e5c-b131-4778-8208-3d289e0d477c", + from: "2020-09-17T07:45:03.000000Z", + to: "2021-02-15T21:51:48.000000Z", + page: 5516, + per_page: 2876 })); status = response.code; } catch (e) { @@ -6476,68 +6483,38 @@ test('Check CreateCampaign | 9', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 10', async () => { +test('Check ListCustomerTransactions | 5', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - 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 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }], - applicable_days_of_week: [], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: ["30ff643a-52dc-4c5f-85eb-a667fc717aca", "5f4372ee-4a63-4633-a969-9b1fce17d085", "9d6bd800-1893-495d-ae40-9eca2ef5db0f", "990bfd22-5b33-424e-8044-789b05efd423", "b0f546db-a0d6-450f-861f-436bb20f903a", "df415e02-369b-444e-a0e9-f0a7ee306427", "ccf95d7a-c8ff-4fd3-bbe6-6cebff0ddd32", "28ebdac8-25c5-4462-87d8-2e78a7092e61", "05338c7b-5c79-4d7f-b83d-d63d78f66afa"], - minimum_number_for_combination_purchase: 9678, - exist_in_each_product_groups: true, - max_point_amount: 2698, - max_total_point_amount: 3584, - dest_private_money_id: "aae1a663-fbe7-4903-a864-a65f71aea906", - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new ListCustomerTransactions({ + private_money_id: "fbf34e5c-b131-4778-8208-3d289e0d477c", + is_modified: false, + from: "2021-05-27T16:30:20.000000Z", + to: "2022-05-15T11:26:21.000000Z", + page: 5666, + per_page: 5023 + })); + 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 ListCustomerTransactions | 6', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCustomerTransactions({ + private_money_id: "fbf34e5c-b131-4778-8208-3d289e0d477c", + type: "transfer", + is_modified: true, + from: "2022-07-15T16:04:22.000000Z", + to: "2020-10-11T01:56:26.000000Z", + page: 1575, + per_page: 5242 })); status = response.code; } catch (e) { @@ -6549,87 +6526,42 @@ test('Check CreateCampaign | 10', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 11', async () => { +test('Check ListCustomerTransactions | 7', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - 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 - }], - 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 - }], - applicable_days_of_week: [], - 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: [], - minimum_number_for_combination_purchase: 1634, - exist_in_each_product_groups: true, - max_point_amount: 4413, - max_total_point_amount: 5139, - dest_private_money_id: "1836060c-c8ea-490a-b27d-92c77145ab73", - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new ListCustomerTransactions({ + private_money_id: "fbf34e5c-b131-4778-8208-3d289e0d477c", + receiver_customer_id: "5ff1fa3b-b242-4f49-9085-9d71f75a9164", + type: "transfer", + is_modified: false, + from: "2021-06-14T09:43:26.000000Z", + to: "2021-11-27T10:53:29.000000Z", + page: 5317, + per_page: 119 + })); + 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 ListCustomerTransactions | 8', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCustomerTransactions({ + private_money_id: "fbf34e5c-b131-4778-8208-3d289e0d477c", + sender_customer_id: "18859557-4c3d-4189-a76e-8cd4f6340d52", + receiver_customer_id: "93051b76-fff2-4c8b-a9be-caa0c3ca72cd", + type: "cashback", + is_modified: false, + from: "2020-01-13T01:47:09.000000Z", + to: "2020-01-16T02:05:37.000000Z", + page: 7306, + per_page: 7712 })); status = response.code; } catch (e) { @@ -6641,122 +6573,27 @@ test('Check CreateCampaign | 11', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 12', async () => { +test('Check GetBulkTransaction | 0', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - 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 - }, { - "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", - "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 - }, { - "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 - }], - applicable_days_of_week: [6, 6, 5, 1, 5, 3, 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" - }], - applicable_shop_ids: ["b625c6b2-7aed-4511-b817-9f179432a86e", "beada427-5be0-46a1-a85c-8d5d7a840909", "e21d636d-dd68-4357-ad96-906c7693a4c4", "b4a13703-72b5-48df-a681-fa2a8a01203f", "0f78089d-dd41-4d27-a73f-e5dd847e66ae", "60297bca-f434-4f03-8008-6c04ac185264", "b88b8484-5cae-454f-b813-e0bb189b4556", "0f7cd745-05a1-4e60-a999-113c9087f23e", "5098f2a7-c41c-4d74-b314-40e8486187f9", "2796544e-c030-4127-8b5e-3eb1285fd8f8"], - minimum_number_for_combination_purchase: 5489, - exist_in_each_product_groups: false, - max_point_amount: 6906, - max_total_point_amount: 7932, - dest_private_money_id: "739815fd-cd9a-41d3-84df-25caeca1a2d8", - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new GetBulkTransaction({ + bulk_transaction_id: "3ed176a1-e054-42ad-80a1-789f9f6323fd" + })); + 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 ListBulkTransactionJobs | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListBulkTransactionJobs({ + bulk_transaction_id: "396b57b8-9918-46a2-9917-1332bb970e27" })); status = response.code; } catch (e) { @@ -6768,126 +6605,517 @@ test('Check CreateCampaign | 12', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 13', async () => { +test('Check ListBulkTransactionJobs | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListBulkTransactionJobs({ + bulk_transaction_id: "396b57b8-9918-46a2-9917-1332bb970e27", + per_page: 9248 + })); + 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 ListBulkTransactionJobs | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListBulkTransactionJobs({ + bulk_transaction_id: "396b57b8-9918-46a2-9917-1332bb970e27", + page: 8273, + per_page: 8353 + })); + 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 CreateCashtray | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCashtray({ + private_money_id: "cb8e4c57-ab89-428f-97fd-9f1c3735d27b", + shop_id: "7737c810-8958-4792-8583-c0078d66fb8b", + amount: 3669.0 + })); + 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 CreateCashtray | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCashtray({ + private_money_id: "cb8e4c57-ab89-428f-97fd-9f1c3735d27b", + shop_id: "7737c810-8958-4792-8583-c0078d66fb8b", + amount: 3669.0, + expires_in: 3075 + })); + 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 CreateCashtray | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCashtray({ + private_money_id: "cb8e4c57-ab89-428f-97fd-9f1c3735d27b", + shop_id: "7737c810-8958-4792-8583-c0078d66fb8b", + amount: 3669.0, + description: "qg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQr", + expires_in: 4950 + })); + 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 GetCashtray | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new GetCashtray({ + cashtray_id: "930b0fbd-881e-47e9-8e12-d168522fcd4e" + })); + 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 CancelCashtray | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new CancelCashtray({ + cashtray_id: "2adffaf5-1a32-40e6-bf0b-34a5f5f586b4" + })); + 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 UpdateCashtray | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCashtray({ + cashtray_id: "a93d4ebb-a68b-4428-bc36-21b0137be536" + })); + 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 UpdateCashtray | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCashtray({ + cashtray_id: "a93d4ebb-a68b-4428-bc36-21b0137be536", + expires_in: 4781 + })); + 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 UpdateCashtray | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCashtray({ + cashtray_id: "a93d4ebb-a68b-4428-bc36-21b0137be536", + description: "w3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o5Rc96wfmVrWrKd8ZckndPnp3nLoMele3p", + expires_in: 4465 + })); + 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 UpdateCashtray | 3', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCashtray({ + cashtray_id: "a93d4ebb-a68b-4428-bc36-21b0137be536", + amount: 4047.0, + description: "b8vOALeCaVZzJ21Wkjwh096vY0YkfqArkVOxtHaQbqrekxj6KVFbsIqYgBl99xXSIGv3Ovn3SH7ljqEdpqCcPOpWjivoOnvdw0Yvld3IeJyhTlRgTT2NxSiphZRlLoLjMmLSHQhe4tHPdlvKxC8QojNKN0zqICt7BPEIsHw9i", + expires_in: 2530 + })); + 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 | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - 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 - }, { - "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", - "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 + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction" + })); + 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 | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + budget_caps_amount: 997496788 + })); + 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 | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 517336317 + })); + 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 | 3', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + dest_private_money_id: "0f960c70-0f8a-42c4-afe5-32c718d50ec0", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 256536435 + })); + 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 | 4', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + max_total_point_amount: 9860, + dest_private_money_id: "f77d6349-4909-4519-9ebd-d035b2b78d5d", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1024891600 + })); + 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 | 5', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + max_point_amount: 9115, + max_total_point_amount: 9682, + dest_private_money_id: "73aa2839-2c25-4fc7-826f-fa85c994ba9f", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 906820179 + })); + 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 | 6', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + exist_in_each_product_groups: false, + max_point_amount: 7529, + max_total_point_amount: 9233, + dest_private_money_id: "7fd2d2e1-9b1d-4900-8999-f9d312b6fb2b", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 651192846 + })); + 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 | 7', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + minimum_number_for_combination_purchase: 2896, + exist_in_each_product_groups: true, + max_point_amount: 1437, + max_total_point_amount: 5405, + dest_private_money_id: "0efa2b2f-9401-4e21-8809-96a6b2ba4994", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1415330254 + })); + 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 | 8', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + applicable_shop_ids: ["608581e6-b873-4ddb-abe0-e18a66505671", "0fd11a58-03b8-42d7-973e-33e24d0606eb", "466b4978-315f-475d-8a62-70d757e2bf54", "d811acf0-4786-42b6-b6af-94694604075b"], + minimum_number_for_combination_purchase: 3400, + exist_in_each_product_groups: true, + max_point_amount: 7346, + max_total_point_amount: 2968, + dest_private_money_id: "ded3fe86-756c-48d2-927c-702fb445fa90", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 735107258 + })); + 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 | 9', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" }, { - "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 + "from": "12:00", + "to": "23:59" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "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_days_of_week: [5, 5, 3, 5, 5, 5, 2], + applicable_shop_ids: ["ce2d24a8-c4f5-407b-8d56-502cdec1c4fb"], + minimum_number_for_combination_purchase: 9060, + exist_in_each_product_groups: false, + max_point_amount: 3475, + max_total_point_amount: 5299, + dest_private_money_id: "f67f27bf-977a-458b-a585-48d1448d6705", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 980505426 + })); + 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 | 10', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + applicable_days_of_week: [1, 4, 2], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -6897,17 +7125,3908 @@ test('Check CreateCampaign | 13', 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: ["f8702f99-ec71-48c8-883a-572c4d3899dd", "a6a1e7d8-8d11-4ff5-93c5-1fd7de5b9485", "4cb6a465-f1cd-428a-b802-f6d6a97b7615", "37499e29-284c-4b6d-8db8-b33eb828485f", "d160e90b-175d-4684-9771-f9947f761ffa", "5d017726-5c99-43dc-ba9e-ceee02cb1c0b", "3c745dcb-2649-4c6e-a4b9-68409a5e24f5", "c3b2a242-bb5e-4b2e-af71-0e8df270cd4e", "42de9b33-a3ba-4adc-9887-6b0aef7f6d9a", "bd7d2b7c-0c4b-4ba9-ab77-d46d454b3858"], - minimum_number_for_combination_purchase: 8874, + applicable_shop_ids: ["0749b4bb-df35-45b1-a5ba-651bcda6d07a", "76c31155-8544-4cea-8166-48f9ae7c1721", "41c3ee2a-0ec7-4f02-b09f-13801c897513"], + minimum_number_for_combination_purchase: 2511, exist_in_each_product_groups: true, - max_point_amount: 4622, - max_total_point_amount: 4463, - dest_private_money_id: "e9d47702-b188-4f4c-ae4c-64302f55c5f6", + max_point_amount: 3807, + max_total_point_amount: 9324, + dest_private_money_id: "c0796849-742b-47e9-8255-d0445ca8f75b", applicable_account_metadata: { "key": "sex", "value": "male" + }, + budget_caps_amount: 1009515673 + })); + 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 | 11', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + 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 + }, { + "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 + }], + applicable_days_of_week: [3, 2, 3, 4], + 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: ["39ca6037-abbd-454c-a982-fb338e158dc7"], + minimum_number_for_combination_purchase: 6650, + exist_in_each_product_groups: true, + max_point_amount: 2478, + max_total_point_amount: 6791, + dest_private_money_id: "bddc371e-a492-47a2-9245-5de40a36cb74", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1280522020 + })); + 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 | 12', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + 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 + }, { + "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", + "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 + }], + applicable_days_of_week: [1, 2, 1, 2, 0, 5, 0, 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: ["e3e99e50-f684-4da2-adab-009fe5c47a00", "4236f606-6a10-4c26-a9c6-cf2d1294d7ca", "65fc13aa-45f5-451a-be53-b4e3d7272172", "de9ae145-20c7-41e3-99b5-f049f608d7b6", "4d44599d-1176-4923-bebb-27593510b3a1", "2a143e7c-e44a-48aa-9428-3e7ff069bf7c"], + minimum_number_for_combination_purchase: 3398, + exist_in_each_product_groups: false, + max_point_amount: 8802, + max_total_point_amount: 2676, + dest_private_money_id: "55c88853-db73-4fd0-b263-2aa3e9cf0887", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 216425752 + })); + 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: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + 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", + "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 + }, { + "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 + }], + applicable_days_of_week: [3, 3, 5, 0, 1, 3, 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" + }, { + "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_for_combination_purchase: 6652, + exist_in_each_product_groups: true, + max_point_amount: 9776, + max_total_point_amount: 112, + dest_private_money_id: "0e45d18f-75ea-4cd6-8f5a-0defac9e50c1", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1753818353 + })); + 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 | 14', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + 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 + }, { + "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", + "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 + }], + applicable_days_of_week: [6, 1, 0, 2, 2, 6, 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" + }, { + "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: ["429113fd-da05-438a-9b04-db9c2bcb1895", "7b87f493-5001-49ce-9020-12b83332cf27", "60a4fcb1-c009-4ccc-87c9-aefb536ecf8b", "37e0b234-92af-4cb4-b8a4-c68d0b751e27", "c2cc8abb-c67f-424c-b36d-782dda1c5723", "ace724a1-1ce6-4b28-b2c0-1bc63082dc0a", "609b06d0-549c-4110-b582-e0c5058bd53c", "ba2d2f9f-ddcf-4fd6-94fd-f74b8be2cbfe"], + minimum_number_for_combination_purchase: 6641, + exist_in_each_product_groups: true, + max_point_amount: 2860, + max_total_point_amount: 3579, + dest_private_money_id: "3fa00044-f543-407e-9979-7afb342178d5", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 523938115 + })); + 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 | 15', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + point_expires_in_days: 1573, + 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 + }, { + "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", + "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 + }], + applicable_days_of_week: [6, 1, 2], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["8791d856-4a85-4d67-a9b5-75ec73e71291", "d63abb80-ac13-4051-a64b-2e7f61ed6d13", "471e978d-1f13-439d-bee9-e83b7c940772", "eb44a8a4-3268-4ef2-bec2-349f7f1711a0"], + minimum_number_for_combination_purchase: 8510, + exist_in_each_product_groups: false, + max_point_amount: 1006, + max_total_point_amount: 6339, + dest_private_money_id: "91a6ede2-3981-4326-bda9-e91e4e9c0bc6", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1215529429 + })); + 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 | 16', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + point_expires_at: "2021-01-03T09:38:27.000000Z", + point_expires_in_days: 5805, + 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 + }, { + "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", + "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 + }], + applicable_days_of_week: [4, 6, 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" + }], + applicable_shop_ids: ["072bd62c-3552-435b-ae5e-c230546d8d21", "920f1f56-382f-4ffb-b1cb-0ded173cc53f", "8cb6134b-bc16-4dbc-b1dd-0989392e23bb", "aad4bb4e-eee8-47f0-a00b-2df582587e44", "96ee0c86-85b1-4741-9334-3e90515aa6c9", "9206b282-f318-4e78-b670-805bbb1a2822", "ebe5c546-5801-439b-907c-e5a87c0f9847", "a78ce3ae-6082-4a61-a4e0-73546428d187", "10b3e8a0-661a-49c6-983d-55366b330ba7"], + minimum_number_for_combination_purchase: 4200, + exist_in_each_product_groups: false, + max_point_amount: 89, + max_total_point_amount: 3292, + dest_private_money_id: "bf9b3264-1533-4398-920b-d2ee2e26dfbd", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1439450059 + })); + 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 | 17', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + status: "disabled", + point_expires_at: "2021-12-19T02:03:37.000000Z", + point_expires_in_days: 2321, + 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 + }, { + "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 + }, { + "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", + "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 + }], + applicable_days_of_week: [4, 5], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["5b4da297-9c18-4afb-9000-51e2c8b08476", "5f4ac0a3-dcba-4785-a6de-e946919ea774", "99eed397-6ee0-4fc4-af81-bd6bc48a3601"], + minimum_number_for_combination_purchase: 9647, + exist_in_each_product_groups: false, + max_point_amount: 3878, + max_total_point_amount: 8549, + dest_private_money_id: "eac7ba0c-adfa-4994-9007-c85f7a46f6d3", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1397504130 + })); + 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: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + description: "PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE1hEG2EkkP2VIPy7HW7Ee7skB9BB1YNClE0n87A30l6vspNWH9u8x4Yq2mxjIub5W9d4fa79SnOHSfjKkp3QkI11", + status: "disabled", + point_expires_at: "2022-01-26T18:07:39.000000Z", + point_expires_in_days: 5544, + 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 + }, { + "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", + "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 + }], + applicable_days_of_week: [2, 1, 6, 2, 6, 3, 3, 0], + 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: ["b68a9639-b5d8-42be-923c-7460a3d67d9b", "602b3e58-dfd3-4a06-8f60-d6ebbf04e0bd", "0d36dcfd-ad8b-499b-9bd7-f284721f8614", "d9a7709f-86ab-4810-8da2-0f0bb30c8576", "8933d367-45f7-424d-a4fd-7f43eff5a336", "6b5fd159-daf3-441a-a585-941b989bba51", "90841a56-382a-4506-8206-964dff036406", "6f11e2b6-6a82-4331-85b5-b842aa70dd53", "35a63682-cacc-4e52-9442-2fb41a57449c", "4beb9ef0-e49c-4d68-b06a-ff626ca0b6de"], + minimum_number_for_combination_purchase: 5749, + exist_in_each_product_groups: true, + max_point_amount: 9986, + max_total_point_amount: 4535, + dest_private_money_id: "6cbe9517-329d-4dab-9dd1-3afdea31d584", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 531149341 + })); + 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 | 19', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCampaign({ + name: "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + private_money_id: "291366db-519c-429e-bf63-0e23dc6061b5", + starts_at: "2022-10-05T11:24:43.000000Z", + ends_at: "2021-06-19T15:02:13.000000Z", + priority: 5525, + event: "external-transaction", + bear_point_shop_id: "440b88ff-2ba0-4dc8-970e-6365cf4ab4af", + description: "KxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8c", + status: "disabled", + point_expires_at: "2020-11-20T21:21:50.000000Z", + point_expires_in_days: 5811, + 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 + }, { + "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", + "is_multiply_by_count": true, + "required_count": 2 + }], + applicable_days_of_week: [6, 3], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["a51d3260-0821-456a-9967-c3788176e191", "f93312b3-a62d-4823-93e7-ab548bb88620", "b0dd32ca-35cb-462c-88f9-9a0daf1b7736", "d6883e8c-9b19-4664-908b-1dfef0b7e49c", "421d07c2-5abf-4e0e-87fc-e721a064a981", "c6b446e2-0f33-4df9-ab9e-9b075b5dda7b", "b0caef1d-d9ad-4659-89d9-8356833c55d2", "d3b8cc5a-9194-43b4-aa87-4d646e25439c"], + minimum_number_for_combination_purchase: 3244, + exist_in_each_product_groups: false, + max_point_amount: 4231, + max_total_point_amount: 2580, + dest_private_money_id: "c881f9fd-d447-4459-9161-c9a1f6dc1a3d", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 749440476 + })); + 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: "1029f3a2-29b0-4851-9740-e009da5deadf" + })); + 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: "1029f3a2-29b0-4851-9740-e009da5deadf", + per_page: 17 + })); + 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: "1029f3a2-29b0-4851-9740-e009da5deadf", + page: 6468, + per_page: 35 + })); + 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: "1029f3a2-29b0-4851-9740-e009da5deadf", + available_to: "2023-10-26T19:25:16.000000Z", + page: 3633, + 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 | 4', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCampaigns({ + private_money_id: "1029f3a2-29b0-4851-9740-e009da5deadf", + available_from: "2023-02-14T10:16:52.000000Z", + available_to: "2020-06-07T11:35:32.000000Z", + page: 6089, + per_page: 21 + })); + 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: "1029f3a2-29b0-4851-9740-e009da5deadf", + is_ongoing: true, + available_from: "2022-03-30T07:03:15.000000Z", + available_to: "2023-05-29T03:53:29.000000Z", + page: 2268, + per_page: 1 + })); + 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 GetCampaign | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new GetCampaign({ + campaign_id: "271b4b7b-4908-4820-81af-8b927793bea2" + })); + 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 | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + })); + 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 | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + budget_caps_amount: 1827247006 + })); + 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 | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1019556332 + })); + 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 | 3', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + max_total_point_amount: 8352, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 712591019 + })); + 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 | 4', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + max_point_amount: 5025, + max_total_point_amount: 3969, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 981138288 + })); + 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 | 5', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + exist_in_each_product_groups: true, + max_point_amount: 9684, + max_total_point_amount: 9375, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1031147602 + })); + 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 | 6', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + minimum_number_for_combination_purchase: 2340, + exist_in_each_product_groups: true, + max_point_amount: 1626, + max_total_point_amount: 5953, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 384433878 + })); + 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 | 7', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + applicable_shop_ids: ["f934281f-712c-470b-8810-edf5defae4c7"], + minimum_number_for_combination_purchase: 1075, + exist_in_each_product_groups: false, + max_point_amount: 1754, + max_total_point_amount: 997, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 586908290 + })); + 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 | 8', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["c07475ff-69d1-4d9f-a59a-b4c3fb061e0f", "8287ffb3-d8dd-40b9-8160-fda2aedeae97", "dfd8438c-4abb-4f6e-9a84-c942c72bd255", "0a12ce76-c634-4e15-8746-702cf4e47138", "8aa40edf-eede-4003-8bca-0ddd6539b922", "85395937-f655-46af-97fa-ccf96ccd7806"], + minimum_number_for_combination_purchase: 4499, + exist_in_each_product_groups: true, + max_point_amount: 3600, + max_total_point_amount: 7071, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 2667324 + })); + 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 | 9', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + applicable_days_of_week: [3, 1, 5, 6, 4, 1, 2, 3], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["dddd63af-fde3-486d-90c9-4571c3cdcfe4", "c95b2ba7-3998-43ed-8076-001fc0eaa9a0", "67fa75ba-82d4-473c-9638-899ef669e4d2", "ffbbc042-f8fa-4aa3-991a-425ffa6bdd70", "25556a15-a6de-4e08-b080-46e7eb6c87aa"], + minimum_number_for_combination_purchase: 618, + exist_in_each_product_groups: true, + max_point_amount: 8579, + max_total_point_amount: 2970, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 945599052 + })); + 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 | 10', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + applicable_days_of_week: [5, 3, 3, 5, 2, 2, 4, 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" + }], + 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"], + minimum_number_for_combination_purchase: 641, + exist_in_each_product_groups: true, + max_point_amount: 8666, + max_total_point_amount: 3771, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1970190781 + })); + 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 | 11', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + 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", + "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 + }, { + "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 + }], + applicable_days_of_week: [5, 3, 1, 2, 5, 0], + 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: ["9472aaef-7889-4004-b503-169ce226f420", "442ccffc-fa52-4cb8-a594-2c92aef5f4c8", "bded2d5b-1c2b-49c4-a521-1549582c3172", "09208be7-cd33-4a08-b83b-df143b10c829", "a7cbdf55-307b-4944-9c69-60f828163ca1", "2011ccde-7f52-47fb-825e-7ed14b48fd20", "98228a9f-6d1f-4f95-93a1-d14fb04b8819"], + minimum_number_for_combination_purchase: 6753, + exist_in_each_product_groups: false, + max_point_amount: 3616, + max_total_point_amount: 8953, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 2007692491 + })); + 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 | 12', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + 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 + }, { + "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", + "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 + }, { + "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 + }], + applicable_days_of_week: [2, 1, 1, 6, 4, 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" + }], + applicable_shop_ids: ["3ca2b36f-445f-4388-9206-17a809bf05f3"], + minimum_number_for_combination_purchase: 4360, + exist_in_each_product_groups: false, + max_point_amount: 205, + max_total_point_amount: 1554, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1273944928 + })); + 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 | 13', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + 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 + }, { + "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", + "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 + }, { + "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 + }], + applicable_days_of_week: [2, 6, 6, 4, 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" + }], + applicable_shop_ids: ["944f2b9a-63a3-4bce-af22-1b7f000d4946", "79e8a56c-c102-4cfd-8d84-85a9dc1fcc47", "ffd9c668-871b-4acf-8037-b0cdc78f776a", "57527f0a-d005-4fef-8d9f-45ae768bb684", "cc5754a9-a046-48e9-884c-6ca252efadf4", "0a61a44e-620d-4739-99bb-43f1a5f9db79", "fbc3dfb7-0fa0-418d-92de-2ab5ad53f953"], + minimum_number_for_combination_purchase: 7142, + exist_in_each_product_groups: true, + max_point_amount: 1583, + max_total_point_amount: 380, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 758756205 + })); + 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 | 14', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + point_expires_in_days: 4021, + 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 + }, { + "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", + "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 + }], + applicable_days_of_week: [4, 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" + }], + applicable_shop_ids: ["9d8eff32-0a67-46be-aba9-107ac7504cab", "61133e28-ac19-4e28-b046-45c994583ee4", "fa490dce-6453-4da9-80e2-f47c7ebc6e9d"], + minimum_number_for_combination_purchase: 2461, + exist_in_each_product_groups: false, + max_point_amount: 2718, + max_total_point_amount: 6131, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1008028717 + })); + 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 | 15', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + point_expires_at: "2023-04-13T09:18:16.000000Z", + point_expires_in_days: 7711, + 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 + }, { + "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", + "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 + }, { + "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 + }], + applicable_days_of_week: [3, 0, 0, 0, 2, 2, 6, 4, 4, 0], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["bfc5f093-73b5-4d99-b675-3f55f4a83851", "a630f16c-daff-46c8-88d7-61bde20bf32c", "a181a801-e19d-4c28-88e4-ef8b901c577b", "66bc007e-3ce6-44ca-877c-e54ba04921ca", "8b280d0c-f61f-4247-8acf-e45bf951b312"], + minimum_number_for_combination_purchase: 4454, + exist_in_each_product_groups: true, + max_point_amount: 1008, + max_total_point_amount: 948, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1535860290 + })); + 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: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + status: "disabled", + point_expires_at: "2021-07-26T18:15:19.000000Z", + point_expires_in_days: 1584, + 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 + }], + 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 + }, { + "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 + }], + applicable_days_of_week: [6, 6, 2, 0, 3, 3, 5, 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" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["a9d5b496-d67c-46f7-8a7d-122105f13f99", "9eec184d-c5d1-4662-9ef0-4903b4deb376", "cc61a1d7-3f64-4b8c-9218-e0db50c9a915", "109928c9-01be-4ee6-b0ea-619488a621b2", "c6ff9025-3d2d-414e-a347-9789832241f0", "74610764-1bb9-4e3a-abd4-6b3c53261b99"], + minimum_number_for_combination_purchase: 9576, + exist_in_each_product_groups: false, + max_point_amount: 8807, + max_total_point_amount: 5129, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1983410747 + })); + 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 | 17', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + description: "bzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEW", + status: "enabled", + point_expires_at: "2024-01-15T11:19:12.000000Z", + point_expires_in_days: 8185, + 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 + }, { + "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", + "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 + }], + applicable_days_of_week: [3, 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" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["be4482f2-19a8-4bbf-b4d8-21e429fa81df", "ff911128-3feb-456a-830b-3c5a614a3ab6", "29cb2e06-054b-46de-8f94-8e15e0a7ed10", "03f1cb58-9114-46ad-abe9-3e4db23386f8", "db6524b1-25eb-437f-bd48-f496da81ff14"], + minimum_number_for_combination_purchase: 2005, + exist_in_each_product_groups: true, + max_point_amount: 3646, + max_total_point_amount: 7047, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1013151459 + })); + 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 | 18', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + event: "topup", + description: "Rx79qoFTViWGk7rsKgu2ihoMxDsfU3TC1A", + status: "enabled", + point_expires_at: "2023-07-09T08:30:48.000000Z", + point_expires_in_days: 9175, + 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 + }, { + "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", + "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 + }], + applicable_days_of_week: [1, 5, 4, 6, 4, 0, 0, 6, 3, 6], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["4209664d-71f4-4131-8e17-970797eeb9ce", "b4debd2e-9988-44de-bca4-ebfbdf4dde86", "366f3ad4-f330-4692-97cc-595bfb320709", "65140396-a9d3-45ee-979b-28f984eaa320", "b57a6fcc-cc43-4549-a9e1-10531e325c6d", "e449f5f8-c302-4da1-8f19-28e959b4c261", "86f68ee2-d2f9-4f81-832c-b146b6aec9bd"], + minimum_number_for_combination_purchase: 8359, + exist_in_each_product_groups: false, + max_point_amount: 1987, + max_total_point_amount: 7704, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1377059414 + })); + 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 | 19', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + priority: 3198, + event: "payment", + description: "wMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z", + status: "enabled", + point_expires_at: "2021-09-09T22:47:13.000000Z", + point_expires_in_days: 8459, + 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 + }, { + "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 + }, { + "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", + "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 + }], + applicable_days_of_week: [2, 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: ["5b0a0651-0022-4737-b75b-702fbcc88cc2", "167e148a-f60d-4028-b971-afe9e382d27b", "ac0c702a-f3fa-4bab-8656-cfd1e7757485", "c6ef7a6f-5b16-4007-a53e-d10e90a9d33a", "f1fdb986-0a32-4cdc-a006-f6d824e8e2bd"], + minimum_number_for_combination_purchase: 8762, + exist_in_each_product_groups: true, + max_point_amount: 3842, + max_total_point_amount: 2335, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1928834827 + })); + 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 | 20', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + ends_at: "2023-09-01T15:24:58.000000Z", + priority: 105, + event: "payment", + description: "LVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTH", + status: "enabled", + point_expires_at: "2023-07-17T21:45:47.000000Z", + point_expires_in_days: 9056, + 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", + "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 + }], + 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" + }, { + "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: ["98824c24-130e-49f3-bed7-bfe264b39175", "1aac2b3b-f01e-4795-a807-7c6e8a28f4e2", "fe882e92-953f-4649-9546-57bbd3e5dc6c", "784790ff-bb28-4966-8076-ca6ffc993de2", "f10e83a4-adcf-4220-9f9b-0b94919b3ce3", "0321583a-4e5d-44ec-86d8-244b2aca5de6"], + minimum_number_for_combination_purchase: 4727, + exist_in_each_product_groups: false, + max_point_amount: 4370, + max_total_point_amount: 6752, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 853454565 + })); + 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 | 21', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + starts_at: "2022-02-08T07:54:57.000000Z", + ends_at: "2020-09-07T11:07:21.000000Z", + priority: 6831, + event: "topup", + description: "3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si7WktomTSIs3sss0bSZ1cR5rMDg0iBD", + status: "enabled", + point_expires_at: "2023-04-07T15:17:38.000000Z", + point_expires_in_days: 9523, + 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 + }, { + "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", + "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 + }], + applicable_days_of_week: [4, 5, 1, 2, 0, 1, 6], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["3d504807-f481-4765-a859-1e493ffa0d5a", "11327ae2-dcbf-427c-8d68-ee363a41cf25", "1e3e25cd-b710-462f-a6bf-f1a5becf2803"], + minimum_number_for_combination_purchase: 956, + exist_in_each_product_groups: false, + max_point_amount: 1195, + max_total_point_amount: 5716, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1065507945 + })); + 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 | 22', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + name: "8D4Ev7O7TGT70LQ2epxhXvfJrqwCwzvGv5tXB9341AdQSvr2jD2CPBEg6qDXhSH8ha", + starts_at: "2020-08-30T01:31:18.000000Z", + ends_at: "2023-01-24T22:16:42.000000Z", + priority: 132, + event: "payment", + description: "0sDTnM", + status: "enabled", + point_expires_at: "2023-09-05T03:26:52.000000Z", + point_expires_in_days: 5501, + 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 + }, { + "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", + "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 + }], + applicable_days_of_week: [4, 0, 2, 5, 3, 4, 5], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["038ae224-1e11-4ec3-a480-679b5f9bb9b8", "3ff61aca-7aa0-405a-a31b-9df1690d0316", "87a1b3c9-e163-4b19-b15a-d62993f765c2", "fe70eb32-1f6e-4c7b-ab3e-941e87943882", "4492bd68-41ad-4777-b5d6-c2f5a680676e", "91621e6e-e6a4-4ee8-b239-6b1ac96133ac"], + minimum_number_for_combination_purchase: 6654, + exist_in_each_product_groups: false, + max_point_amount: 7890, + max_total_point_amount: 3579, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 286258961 + })); + 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 RequestUserStats | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new RequestUserStats({ + from: "2023-11-17T15:01:05.000000Z", + to: "2024-01-10T09:29:09.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 CreateWebhook | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateWebhook({ + task: "process_user_stats_operation", + url: "B891rPV7F" + })); + 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 ListWebhooks | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListWebhooks()); + 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 ListWebhooks | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListWebhooks({ + per_page: 1599 + })); + 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 ListWebhooks | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListWebhooks({ + page: 8293, + per_page: 6946 + })); + 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 UpdateWebhook | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateWebhook({ + webhook_id: "1357dd08-2644-4a80-a512-1e10d9b922de" + })); + 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 UpdateWebhook | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateWebhook({ + webhook_id: "1357dd08-2644-4a80-a512-1e10d9b922de", + task: "process_user_stats_operation" + })); + 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 UpdateWebhook | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateWebhook({ + webhook_id: "1357dd08-2644-4a80-a512-1e10d9b922de", + is_active: true, + task: "bulk_shops" + })); + 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 UpdateWebhook | 3', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateWebhook({ + webhook_id: "1357dd08-2644-4a80-a512-1e10d9b922de", + url: "vc", + is_active: false, + task: "bulk_shops" + })); + 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 DeleteWebhook | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new DeleteWebhook({ + webhook_id: "f09ba024-80a2-44cf-9a60-7e9d56f684b1" + })); + 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 CreateUserDevice | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateUserDevice({ + user_id: "1ab73dbc-530a-4a75-bfce-3f20a4f4f41c" + })); + 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 CreateUserDevice | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateUserDevice({ + user_id: "1ab73dbc-530a-4a75-bfce-3f20a4f4f41c", + metadata: "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}" + })); + 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 GetUserDevice | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new GetUserDevice({ + user_device_id: "c7d6be88-e502-4c42-94a1-cd410a9c1064" + })); + 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 ActivateUserDevice | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new ActivateUserDevice({ + user_device_id: "011a7372-0000-449b-ba7c-775f7235b236" + })); + 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 CreateBank | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateBank({ + user_device_id: "e313491a-dd0b-41fe-acbc-31ffc78608e6", + private_money_id: "1d24ee19-477a-4162-a6f1-389da60ac0cb", + callback_url: "nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP", + kana: "WVf0nkI2cpiZrwht02dhTsSxNXBuh" + })); + 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 CreateBank | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateBank({ + user_device_id: "e313491a-dd0b-41fe-acbc-31ffc78608e6", + private_money_id: "1d24ee19-477a-4162-a6f1-389da60ac0cb", + callback_url: "nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP", + kana: "WVf0nkI2cpiZrwht02dhTsSxNXBuh", + birthdate: "AxPxL" + })); + 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 CreateBank | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateBank({ + user_device_id: "e313491a-dd0b-41fe-acbc-31ffc78608e6", + private_money_id: "1d24ee19-477a-4162-a6f1-389da60ac0cb", + callback_url: "nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP", + kana: "WVf0nkI2cpiZrwht02dhTsSxNXBuh", + email: "gPF7PH9jsP@o3qR.com", + birthdate: "XC0" + })); + 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 ListBanks | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListBanks({ + user_device_id: "0399760e-177b-4721-abb6-9da85b2a76e8" + })); + 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 ListBanks | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListBanks({ + user_device_id: "0399760e-177b-4721-abb6-9da85b2a76e8", + private_money_id: "602e3bc8-a0b5-4ff1-abb5-6710ad5b63db" + })); + 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 CreateBankTopupTransaction | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateBankTopupTransaction({ + user_device_id: "ee2bc702-0f1f-4fce-b60a-aeacea985e3d", + private_money_id: "074b32f2-5c20-461f-9c53-d4149d475e71", + amount: 1544, + bank_id: "60df8aaf-23fd-4fec-90db-d611c05931e8", + request_id: "fb148318-6fe3-47bc-81a7-c36c55ce455d" + })); + 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 ListCoupons | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCoupons({ + private_money_id: "ce18681e-5c83-427d-b862-0de280711893" + })); + 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 ListCoupons | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCoupons({ + private_money_id: "ce18681e-5c83-427d-b862-0de280711893", + per_page: 8608 + })); + 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 ListCoupons | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCoupons({ + private_money_id: "ce18681e-5c83-427d-b862-0de280711893", + page: 8394, + per_page: 9522 + })); + 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 ListCoupons | 3', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCoupons({ + private_money_id: "ce18681e-5c83-427d-b862-0de280711893", + available_to: "2023-12-24T18:42:20.000000Z", + page: 369, + per_page: 1597 + })); + 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 ListCoupons | 4', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCoupons({ + private_money_id: "ce18681e-5c83-427d-b862-0de280711893", + available_from: "2023-12-02T09:22:37.000000Z", + available_to: "2021-07-05T19:20:23.000000Z", + page: 804, + per_page: 537 + })); + 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 ListCoupons | 5', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCoupons({ + private_money_id: "ce18681e-5c83-427d-b862-0de280711893", + available_shop_name: "NkX1wbt", + available_from: "2020-05-03T12:17:12.000000Z", + available_to: "2021-09-16T20:37:30.000000Z", + page: 7209, + per_page: 8097 + })); + 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 ListCoupons | 6', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCoupons({ + private_money_id: "ce18681e-5c83-427d-b862-0de280711893", + issued_shop_name: "h4XHkBbx", + available_shop_name: "0Rn", + available_from: "2021-05-10T03:01:31.000000Z", + available_to: "2020-05-26T09:28:44.000000Z", + page: 117, + per_page: 1374 + })); + 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 ListCoupons | 7', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCoupons({ + private_money_id: "ce18681e-5c83-427d-b862-0de280711893", + coupon_name: "rGJS2N5S6E", + issued_shop_name: "EO5Bp0T", + available_shop_name: "aBrmndiCNx", + available_from: "2023-10-31T02:15:52.000000Z", + available_to: "2022-11-25T09:52:24.000000Z", + page: 5377, + per_page: 9080 + })); + 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 ListCoupons | 8', async () => { + let status = 400; + try { + const response: Response = await client.send(new ListCoupons({ + private_money_id: "ce18681e-5c83-427d-b862-0de280711893", + coupon_id: "aRAeTxf", + coupon_name: "0YQCHz", + issued_shop_name: "OG8zcqkOx", + available_shop_name: "GcWZjjM6j3", + available_from: "2022-02-02T14:30:51.000000Z", + available_to: "2022-08-14T20:03:11.000000Z", + page: 5094, + per_page: 2991 + })); + 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 CreateCoupon | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 5887 + })); + 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 CreateCoupon | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 2355, + storage_id: "be475e1f-f3f9-44b8-9749-b7f478fe0ac3" + })); + 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 CreateCoupon | 2', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 5177, + min_amount: 8066, + storage_id: "8e954ed6-a859-4b94-a280-5310e78a1060" + })); + 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 CreateCoupon | 3', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 615, + usage_limit: 6537, + min_amount: 1811, + storage_id: "ad351f28-6079-42e4-85e1-256c69d8c247" + })); + 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 CreateCoupon | 4', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 8507, + code: "6qE4T1vO", + usage_limit: 6603, + min_amount: 6541, + storage_id: "5854cf41-fa1e-4834-8977-7aa5242f0104" + })); + 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 CreateCoupon | 5', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 8787, + is_public: false, + code: "gi", + usage_limit: 2057, + min_amount: 2858, + storage_id: "d6c4b46a-25d7-4d08-9279-2ca9b40588f8" + })); + 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 CreateCoupon | 6', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 3608, + is_hidden: false, + is_public: false, + code: "ekV8cI", + usage_limit: 477, + min_amount: 5316, + storage_id: "e2cb1bdb-265b-452f-9430-c9a029af4c5e" + })); + 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 CreateCoupon | 7', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 4762, + is_disabled: true, + is_hidden: true, + is_public: false, + code: "8h8evW68NK", + usage_limit: 1776, + min_amount: 3221, + storage_id: "a2ee087f-c55e-4c64-ab0b-9471fa211a30" + })); + 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 CreateCoupon | 8', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 6224, + display_ends_at: "2021-09-15T04:42:53.000000Z", + is_disabled: false, + is_hidden: false, + is_public: true, + code: "o6iR", + usage_limit: 6922, + min_amount: 8020, + storage_id: "634603de-a741-450b-88f0-e1237598b70b" + })); + 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 CreateCoupon | 9', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 1797, + display_starts_at: "2021-04-05T13:18:21.000000Z", + display_ends_at: "2022-04-02T23:15:26.000000Z", + is_disabled: true, + is_hidden: false, + is_public: true, + code: "TXOxFwqhkp", + usage_limit: 7770, + min_amount: 6358, + storage_id: "194600a2-bb96-4c61-8468-100a21e1c3f0" + })); + 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 CreateCoupon | 10', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 7750, + discount_upper_limit: 3100, + display_starts_at: "2020-07-12T09:55:31.000000Z", + display_ends_at: "2020-06-18T03:03:23.000000Z", + is_disabled: true, + is_hidden: false, + is_public: true, + code: "p5bfKVt9D", + usage_limit: 1488, + min_amount: 2085, + storage_id: "9ad990d6-defa-4f56-80b6-6c9db1029295" + })); + 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 CreateCoupon | 11', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 374, + description: "yI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYu", + discount_upper_limit: 3253, + display_starts_at: "2022-01-17T11:30:12.000000Z", + display_ends_at: "2020-02-02T19:16:06.000000Z", + is_disabled: true, + is_hidden: false, + is_public: true, + code: "n8lh", + usage_limit: 1339, + min_amount: 1865, + storage_id: "ab264084-1055-49a0-a30d-307e9ab05a67" + })); + 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 CreateCoupon | 12', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 7369, + is_shop_specified: true, + available_shop_ids: ["aeb859b0-cfae-446f-8e60-a0885720cc84", "b6f0068a-70a8-4555-9234-0e082de60bfd", "4797d3bb-6924-4512-80a4-b11bfffb57da", "054c1ef4-990e-48da-91da-d6cf389cc0e2", "657156c8-059d-43a6-ad64-a97275646730", "ce24fd00-247b-4fce-8207-2836adcfaf94", "5b631576-4ff9-41ec-a009-7e1c53d3927d", "28cb5c94-0c0c-4aee-ac5e-fada8c446052", "398df768-72c7-43a1-a4c4-014d8dabcd02", "f3c9e73b-74f8-4703-82aa-86f54c8abfea"] + })); + 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 CreateCoupon | 13', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 9231, + is_shop_specified: false, + available_shop_ids: ["14352341-1522-45b7-ad65-32a2a431bd92", "4311e0a5-8cc4-452b-9b2a-09a65d3eac3d", "af629f84-ffcf-4403-81ab-d003c5759a98", "f25ab157-7cab-4a11-a5af-7aef734c8015", "ccbbf4c4-eaf0-4465-93c6-3bdf84ce1ee0", "2152fa0b-1036-4803-b6e3-f453400bb3f9", "319ef67b-b41b-40e7-9c31-4cce8fac1e39", "146e7b91-e870-4d94-ac78-ca37bd64587c", "7f97ce2f-3dea-4019-9c6a-6cc8f65646cb"], + storage_id: "40b2b7a0-1531-4545-96fb-2631261b8750" + })); + 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 CreateCoupon | 14', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 8533, + is_shop_specified: false, + available_shop_ids: ["6a264609-5e2b-4175-967f-0ffab378b03a", "8d34de8f-67fc-4792-a40d-62542ca59b80", "03573026-6816-445b-a0a1-15b2ee307e06", "15eb5690-31be-4a59-9656-7c3b8047dbce", "1613d2a1-d667-420b-9d5d-a96b141ed168", "7843dec7-5c5b-423e-897e-f8e9b28173cf", "221091e1-d024-494a-966b-b5b8597d6512", "69be73a4-3023-4d27-8857-255713274b9f", "66188be2-f3d8-4c4f-9e92-5c4df788de73", "a4e113f9-bc1a-44cd-8cde-f2d6d2fa8a90"], + min_amount: 5122, + storage_id: "e2a1890b-32a3-4a91-a81b-e89171f35dcc" + })); + 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 CreateCoupon | 15', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 4401, + is_shop_specified: true, + available_shop_ids: ["e8daf159-ac0f-4830-a85f-639b908a2646", "83f0ff3e-8f13-4a26-897a-b78d46c24eaa", "4f431e0b-782f-4ed6-87e0-1504196c1490", "dc60e31b-0eab-4af1-8fcb-e5c657e5156f", "d7a3fe55-3833-4217-b893-84ca3202aace", "b7533690-eb4b-4360-ad75-4d7fae2206e1", "19b6bf44-f4f2-43a2-9e34-cd3f8836d5e3", "7b41a313-9d80-4b2a-bd7e-222c471f01a0", "d8b394cd-8153-40ab-8108-a400d7d95667", "c7be4dc8-42c4-4a14-8140-586cec7d39cc"], + usage_limit: 6034, + min_amount: 2830, + storage_id: "1d001a50-ea36-42cc-af1a-6b11f68f5d07" + })); + 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 CreateCoupon | 16', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 7861, + is_shop_specified: true, + available_shop_ids: ["a93a3179-012f-4b53-832a-f7b12d940d94", "30d98b10-d7f6-4237-8804-414c71377bb6", "3ef65e3d-e46c-4a43-8d34-5ef996b2c940", "1a5a5186-589a-4812-b271-00bbeb417ab4"], + code: "3mHyvfAo1Z", + usage_limit: 7065, + min_amount: 631, + storage_id: "e96c086b-5918-4064-a4b2-3001a1f872c1" + })); + 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 CreateCoupon | 17', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 6167, + is_shop_specified: true, + available_shop_ids: ["f732fd8b-ff79-444e-b132-85a0883470bc", "d101cbd0-8ad7-439d-b9e5-aed0364c695a", "988b178f-7c48-4687-9f5c-3eb192de26d6"], + is_public: false, + code: "DlcE5mr", + usage_limit: 9908, + min_amount: 8344, + storage_id: "edd9e114-4d49-4aad-bbb9-532d06880809" + })); + 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 CreateCoupon | 18', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 3582, + is_shop_specified: false, + available_shop_ids: ["e175cad0-74dd-45f1-bf86-e0317118449a", "72ac22eb-356c-4bfe-a58e-987dc5facb29", "e970cad0-7a1a-480f-86d9-e1c9a735bb85", "03a74be9-f7b4-4d7e-a61c-1367a873a25a"], + is_hidden: true, + is_public: true, + code: "F", + usage_limit: 9607, + min_amount: 4994, + storage_id: "0e275e39-db99-4f76-bb5d-ac844cb86720" + })); + 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 CreateCoupon | 19', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 6226, + is_shop_specified: true, + available_shop_ids: ["e3e4242c-9d8d-4c94-84a5-c75584cdb638", "a3dcb9ca-3bb5-4539-9e4f-305bb01b001c", "f84498f4-d4e3-41ef-9feb-243c4bc11f86", "9feb237f-4e1d-4b2b-bea8-b5c5a6cda5df", "27d27a84-f216-42a8-8d4d-38d601024e5e", "23140d9b-985d-4389-a86d-cacb6a3ee0db", "4cef74fa-54b2-4a8b-a97b-6cdb22b0c82c"], + is_disabled: false, + is_hidden: false, + is_public: true, + code: "oGU", + usage_limit: 5553, + min_amount: 4303, + storage_id: "f4657b8d-1103-44f8-9f81-4a55e26667c0" + })); + 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 CreateCoupon | 20', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 2849, + is_shop_specified: false, + available_shop_ids: ["0357376c-163a-4406-81b7-6a094660d76a", "08f6d53d-1502-456c-9cd7-6e787359ddc0", "9b1fbd99-d9f2-4c66-8394-6a10c8674f45", "5d77d74b-d84d-475f-9182-6738bf14bec6", "7c0274a7-d99e-4643-b3b0-cba871f0518f", "1e17f736-87b2-4b50-8c62-083500584439", "3096f979-ad2d-4366-ba6e-e769b9f4e0f7", "a6286e1a-a71a-4a38-ae5a-0b60ac43cdae", "ba336eaa-c8b7-4c54-b2af-81eafd716822", "3e4557d7-d900-4d68-935e-8fb0ff54fc91"], + display_ends_at: "2020-06-20T00:24:34.000000Z", + is_disabled: true, + is_hidden: false, + is_public: false, + code: "rr7bO", + usage_limit: 1572, + min_amount: 6485, + storage_id: "86034266-1a4a-4417-9bee-f97d70258996" })); status = response.code; } catch (e) { @@ -6919,107 +11038,60 @@ test('Check CreateCampaign | 13', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 14', async () => { +test('Check CreateCoupon | 21', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - point_expires_in_days: 8489, - 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 - }, { - "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 - }, { - "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: [], - applicable_days_of_week: [1, 2, 6, 2, 4, 5, 3, 5, 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" - }], - applicable_shop_ids: ["3cd1c838-0bd6-489d-86ee-5eeaaa745ac6"], - minimum_number_for_combination_purchase: 7314, - exist_in_each_product_groups: false, - max_point_amount: 3270, - max_total_point_amount: 3510, - dest_private_money_id: "c4e163e6-5eab-43bf-879e-cd3652d0d908", - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 730, + is_shop_specified: true, + available_shop_ids: ["2e16e56f-0267-4878-9365-c143ee94cb9e", "b408127e-a90e-4357-b81f-ad8e80ccf0e2", "d1c4b363-53b4-48a8-b75d-f8eccac7f85d", "92bc7786-5c3d-4fbd-b050-e7b2b796cbc4"], + display_starts_at: "2020-05-21T00:45:30.000000Z", + display_ends_at: "2023-09-27T14:09:03.000000Z", + is_disabled: true, + is_hidden: false, + is_public: true, + code: "DSK2", + usage_limit: 1971, + min_amount: 6605, + storage_id: "a4e76683-6980-4edd-ab3f-2b38ff753a16" + })); + 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 CreateCoupon | 22', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 9092, + is_shop_specified: false, + available_shop_ids: ["757b9ac3-4bec-4dee-9d28-c030ff79b96e", "4d4efb8a-00e5-4293-b878-50352b484c8d", "caa77ac3-8045-49f7-b57e-a404750c1c12", "9e3df9b8-7633-403c-8a32-72d770a2385f", "ce5efc45-1f42-4069-a9dc-dacf175cd196", "7f542ac6-327b-4c10-b577-7d6e034b0e80", "7c52413f-4187-461b-ad65-ee3b097df35b"], + discount_upper_limit: 1288, + display_starts_at: "2024-02-01T23:55:52.000000Z", + display_ends_at: "2022-06-16T23:20:52.000000Z", + is_disabled: false, + is_hidden: false, + is_public: true, + code: "H1pqqlIh", + usage_limit: 7688, + min_amount: 2304, + storage_id: "eff9f69d-34cb-4beb-924f-b6ee68c7b650" })); status = response.code; } catch (e) { @@ -7031,92 +11103,197 @@ test('Check CreateCampaign | 14', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 15', async () => { +test('Check CreateCoupon | 23', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - point_expires_at: "2021-10-15T04:59:08.000000+09:00", - point_expires_in_days: 2058, - 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 - }, { - "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", - "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 - }], - applicable_days_of_week: [0, 1, 1], - applicable_time_ranges: [], - applicable_shop_ids: ["2245ef08-f713-4cd9-8472-3ca279001dcf", "33e448ed-ffa8-4866-8318-80da58e1548e", "8efcfc76-c663-49e6-8043-13215b4f0b25", "23e86c7b-62e4-4d26-9445-425b704073d3", "642d2db8-dca1-4b48-884a-85ad4f15f960", "94ec44a3-d9dc-441d-88be-ad66b7a9c4bc", "7a989435-a4a4-4eb0-9495-8d824b8872df", "747d59c3-4a92-47b5-b95c-ba90e09f37b2", "6d46d548-4e09-46a2-93ce-31812882ae1e", "8e0837f2-e296-48d0-bda7-d3b36b0fa034"], - minimum_number_for_combination_purchase: 8076, - exist_in_each_product_groups: true, - max_point_amount: 2217, - max_total_point_amount: 4156, - dest_private_money_id: "ee49f0b1-f1f5-4d78-af49-cbe26410ef5f", - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_amount: 3739, + is_shop_specified: true, + available_shop_ids: ["a21ed365-d0b3-4967-88b3-5c4f5a1751f1", "44314f59-c120-4fcd-bc86-367fbd47aa44", "77a55c36-d540-40d9-a737-f91ccd8b502f", "49b3b702-c566-4f1d-aa10-e189b772e76c", "d3e3cbba-506f-4770-8a70-96dcdc5c834c", "68b87730-ef03-4d9f-b684-a8f73e0c8d52", "a71836cf-e7d1-4496-bf5a-1d2b6acfd233", "d8e3a817-4d8e-4e33-a41c-5453a0a2a88a"], + description: "51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magR", + discount_upper_limit: 4440, + display_starts_at: "2021-11-29T02:34:42.000000Z", + display_ends_at: "2022-05-31T06:28:06.000000Z", + is_disabled: true, + is_hidden: false, + is_public: true, + code: "N1", + usage_limit: 2481, + min_amount: 421, + storage_id: "6e51bde4-f77f-4069-a454-254921597d50" + })); + 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 CreateCoupon | 24', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 7961.0 + })); + 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 CreateCoupon | 25', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 9549.0, + storage_id: "fda064a7-5e79-4bfc-a326-231c5edf658a" + })); + 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 CreateCoupon | 26', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 2284.0, + min_amount: 2735, + storage_id: "af42ed24-b7d0-4937-b8d8-214a5287d249" + })); + 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 CreateCoupon | 27', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 3890.0, + usage_limit: 9952, + min_amount: 4966, + storage_id: "35149deb-f3ef-418b-998d-7611adbaff07" + })); + 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 CreateCoupon | 28', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 7060.0, + code: "uaeWPZ9", + usage_limit: 5663, + min_amount: 5409, + storage_id: "eb89a999-202d-4332-9d12-27cb488fccb6" + })); + 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 CreateCoupon | 29', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 8794.0, + is_public: true, + code: "1zTkBm", + usage_limit: 8190, + min_amount: 3281, + storage_id: "b0d3005b-4ffb-4409-bff3-e055d340694a" + })); + 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 CreateCoupon | 30', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 3167.0, + is_hidden: false, + is_public: true, + code: "79pUjuQLW", + usage_limit: 6154, + min_amount: 4554, + storage_id: "0fa512d1-9515-4ac1-88ec-fce3225aea29" })); status = response.code; } catch (e) { @@ -7128,115 +11305,52 @@ test('Check CreateCampaign | 15', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 16', async () => { +test('Check CreateCoupon | 31', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - status: "disabled", - point_expires_at: "2020-12-11T07:26:32.000000+09:00", - point_expires_in_days: 5096, - 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 - }], - 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 - }, { - "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 - }], - applicable_days_of_week: [4, 6, 1, 5], - 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: ["e8abf576-808e-4787-826e-32590064c313", "abef69e4-d902-490f-8505-fcfc06844a92", "0405268c-07ca-497f-abf2-717343c249e7", "ed0c28dd-d156-4a9b-b8d7-a7875f5105bb"], - minimum_number_for_combination_purchase: 5498, - exist_in_each_product_groups: false, - max_point_amount: 7985, - max_total_point_amount: 2492, - dest_private_money_id: "ee727a0a-a318-4850-bb69-64941a9318f2", - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 2224.0, + is_disabled: false, + is_hidden: true, + is_public: false, + code: "fIBEGWMOe", + usage_limit: 6539, + min_amount: 8342, + storage_id: "5bde6687-5f8c-4efb-96fe-907a56916a8a" + })); + 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 CreateCoupon | 32', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 7542.0, + display_ends_at: "2021-11-04T16:20:23.000000Z", + is_disabled: false, + is_hidden: false, + is_public: false, + code: "f46VZC1gRO", + usage_limit: 8119, + min_amount: 7551, + storage_id: "b431fa85-9887-43f9-bcdb-8bc4de099877" })); status = response.code; } catch (e) { @@ -7248,134 +11362,111 @@ test('Check CreateCampaign | 16', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 17', async () => { +test('Check CreateCoupon | 33', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - description: "B5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCz", - status: "disabled", - point_expires_at: "2023-06-29T15:24:38.000000+09:00", - point_expires_in_days: 5313, - 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 - }, { - "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 - }, { - "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", - "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 - }], - applicable_days_of_week: [6, 4, 4], - 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" - }], - applicable_shop_ids: ["90aed68b-f59a-41e8-87da-949c3f345ead", "3d235c4e-01cc-4736-a376-59ffe1d266e3", "904eec3b-0c89-4b3a-b1c2-656e2f941c68", "e86447ac-6bc7-4fee-a725-45793daf15d2", "6cb8fb12-1ea2-4073-a4b1-95daf3408162", "125001e7-0288-4f8d-8596-545859621634", "951995b6-ae44-4424-8cb0-e65ff87c0f45"], - minimum_number_for_combination_purchase: 9894, - exist_in_each_product_groups: false, - max_point_amount: 4668, - max_total_point_amount: 5306, - dest_private_money_id: "1732a786-8814-4b44-a667-b9b253e5b2cb", - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 6135.0, + display_starts_at: "2022-02-14T00:49:50.000000Z", + display_ends_at: "2021-05-19T14:59:28.000000Z", + is_disabled: false, + is_hidden: false, + is_public: false, + code: "r", + usage_limit: 326, + min_amount: 2796, + storage_id: "3e5abddd-282f-4612-9b28-1bb05661efbe" + })); + 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 CreateCoupon | 34', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 4408.0, + discount_upper_limit: 7777, + display_starts_at: "2022-12-18T11:53:07.000000Z", + display_ends_at: "2023-12-27T21:12:28.000000Z", + is_disabled: true, + is_hidden: true, + is_public: true, + code: "qydMn", + usage_limit: 3684, + min_amount: 3115, + storage_id: "c761280a-09a5-4489-a7a8-ae3cee2dc6e0" + })); + 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 CreateCoupon | 35', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 2106.0, + description: "sD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEe", + discount_upper_limit: 1336, + display_starts_at: "2020-09-14T07:21:18.000000Z", + display_ends_at: "2023-06-01T20:38:59.000000Z", + is_disabled: false, + is_hidden: true, + is_public: false, + code: "oSB", + usage_limit: 5890, + min_amount: 7047, + storage_id: "49dab42c-3348-492d-bc93-adbcdd2caee5" + })); + 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 CreateCoupon | 36', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 8998.0, + is_shop_specified: true, + available_shop_ids: ["e926cede-9074-4e3d-be47-88e831f7ba96", "1ec55f27-dcc6-4b67-bb85-ff4a3a5d3c22", "76bb3bad-e5e4-49f8-88dd-c26c12486a73", "c22019eb-c167-4967-b64c-b3a645c3184d", "1969a8b7-d089-4b7f-8489-ae4833196868", "8880ff57-fd49-47d1-b286-b261e8e8645c"] })); status = response.code; } catch (e) { @@ -7387,122 +11478,44 @@ test('Check CreateCampaign | 17', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 18', async () => { +test('Check CreateCoupon | 37', async () => { let status = 400; try { - const response: Response = await client.send(new CreateCampaign({ - name: "iW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - private_money_id: "ead5fdc1-eace-405d-ab24-f9a7ec283ddf", - starts_at: "2025-05-29T01:15:34.000000+09:00", - ends_at: "2024-10-31T15:21:17.000000+09:00", - priority: 4691, - event: "payment", - bear_point_shop_id: "8eaa849a-9e32-4b4b-93c2-683b77c80f4a", - description: "32yceHkpeJS53rQYrIERvl0KriuNlh", - status: "disabled", - point_expires_at: "2017-07-05T19:22:01.000000+09:00", - point_expires_in_days: 2552, - 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 - }, { - "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", - "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 - }], - applicable_days_of_week: [4, 5, 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" - }, { - "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: ["e5aff9ae-efee-4a84-8273-614bf51dd646", "dc9a9c6f-61a5-4fea-a303-62cc0c6e76cf"], - minimum_number_for_combination_purchase: 3649, - exist_in_each_product_groups: false, - max_point_amount: 1910, - max_total_point_amount: 1214, - dest_private_money_id: "917be9ff-1f75-4918-b2da-85e10d9e14fe", - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 2070.0, + is_shop_specified: true, + available_shop_ids: ["a6c160b7-4515-4070-97bc-4d9e04b70235", "5b3b93a6-0bf4-4f88-8cbd-84c43d001682", "21b46bd3-82cc-4733-9c3e-20fe32359a98", "32829cae-a545-477c-907f-dd59b53c32fb", "1e68af05-3a58-4376-98dc-e84d0fc9be2b", "ec37eb8f-15d8-4364-acfc-b74970ad2558", "33814ddc-7d06-4ff8-9fc7-14c1e72f9b7b", "011c5838-a93c-4c65-bb4f-dd11b8312089"], + storage_id: "49b22993-7d74-43be-9d64-f5c436dbbe67" + })); + 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 CreateCoupon | 38', async () => { + let status = 400; + try { + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 2824.0, + is_shop_specified: false, + available_shop_ids: ["69ac7627-42dd-48de-9a3d-3c143aa0ec1c"], + min_amount: 6518, + storage_id: "6ea37fbe-d076-400e-b360-fc5525a9ae7a" })); status = response.code; } catch (e) { @@ -7514,11 +11527,21 @@ test('Check CreateCampaign | 18', async () => { expect(status).not.toBe(400); }) -test('Check ListCampaigns | 0', async () => { +test('Check CreateCoupon | 39', async () => { let status = 400; try { - const response: Response = await client.send(new ListCampaigns({ - private_money_id: "e6344f05-84e1-4e0f-9035-4e96e13460a4" + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 8057.0, + is_shop_specified: true, + available_shop_ids: ["f2619f98-688a-447d-aaeb-325027b300d0", "9dbdfee5-7bcc-4a33-91df-e25386354a22", "44ff5ae5-4248-42a2-ac73-b43eda88e901", "10bb385e-0b3d-4c0b-a0fa-2d4b7a84ce61", "d2d55b9c-dbec-45b8-954a-b32bfc8c4337", "6704b400-a16d-4e5f-b6ea-9b89404b4554", "d44effc6-43bb-4755-b077-6ad72abb12fc", "ace5ccc1-8dcd-4505-bff5-66a86e5b1db8", "8be34139-750a-496d-84b0-acbfd026f388"], + usage_limit: 7764, + min_amount: 8458, + storage_id: "754736bd-c6f8-4e5c-ae25-d3d7a05bbfa2" })); status = response.code; } catch (e) { @@ -7530,12 +11553,22 @@ test('Check ListCampaigns | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListCampaigns | 1', async () => { +test('Check CreateCoupon | 40', async () => { let status = 400; try { - const response: Response = await client.send(new ListCampaigns({ - private_money_id: "e6344f05-84e1-4e0f-9035-4e96e13460a4", - per_page: 10 + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 1795.0, + is_shop_specified: false, + available_shop_ids: ["9be7f5d1-fc80-4d55-9379-6c98cb700fd7", "f9549461-e256-4ae7-820b-f0612d119b4c"], + code: "MWptjgf0", + usage_limit: 966, + min_amount: 8041, + storage_id: "d9aea15a-31da-4b03-8493-0c601fa20991" })); status = response.code; } catch (e) { @@ -7547,13 +11580,23 @@ test('Check ListCampaigns | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListCampaigns | 2', async () => { +test('Check CreateCoupon | 41', async () => { let status = 400; try { - const response: Response = await client.send(new ListCampaigns({ - private_money_id: "e6344f05-84e1-4e0f-9035-4e96e13460a4", - page: 8059, - per_page: 23 + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 1243.0, + is_shop_specified: false, + available_shop_ids: ["73f83ac5-c04f-45b2-bcfb-7050cc7526da", "0bdca3ad-03dc-40c1-a0b9-68e29a6de9e9", "18d9c289-baef-4484-912b-6e5fc1e4d7cd", "22906b88-0350-4247-9331-9f2b24ffac94", "450483c5-83b8-4bb1-ae6a-ce96e9939a2c", "1b9d918b-cac3-41c1-a0d2-29fd77437129", "45ab5b60-a95c-46d8-bce2-716b36a133b7"], + is_public: false, + code: "17C", + usage_limit: 5458, + min_amount: 1500, + storage_id: "b28af5af-9a46-42b6-8c79-980cc6cd1f4d" })); status = response.code; } catch (e) { @@ -7565,14 +11608,24 @@ test('Check ListCampaigns | 2', async () => { expect(status).not.toBe(400); }) -test('Check ListCampaigns | 3', async () => { +test('Check CreateCoupon | 42', async () => { let status = 400; try { - const response: Response = await client.send(new ListCampaigns({ - private_money_id: "e6344f05-84e1-4e0f-9035-4e96e13460a4", - available_to: "2016-08-24T08:32:19.000000+09:00", - page: 3160, - per_page: 3 + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 4600.0, + is_shop_specified: false, + available_shop_ids: ["606192c2-c841-470f-9aa6-fff8ece17406", "c7a869af-9010-442c-8e3b-1d83cdaea6f2", "992a2241-8d9e-49d3-846a-2ddbfd0255b9", "41531856-02c7-4d7b-b2b6-d9f28a0ac851", "4f216c15-1ebe-4ed7-852b-a766361f40ac", "2150c145-bd28-42d0-bb01-eb37dc2a7773", "2afcef97-e396-47b2-a619-e9b75626559d", "fe828b66-42b5-45f2-8a54-91a03c604534"], + is_hidden: false, + is_public: false, + code: "2Cz81XNouc", + usage_limit: 1665, + min_amount: 9615, + storage_id: "939209e2-1c45-48a9-88f0-db8fd62e7f87" })); status = response.code; } catch (e) { @@ -7584,15 +11637,25 @@ test('Check ListCampaigns | 3', async () => { expect(status).not.toBe(400); }) -test('Check ListCampaigns | 4', async () => { +test('Check CreateCoupon | 43', async () => { let status = 400; try { - const response: Response = await client.send(new ListCampaigns({ - private_money_id: "e6344f05-84e1-4e0f-9035-4e96e13460a4", - available_from: "2019-07-03T20:50:34.000000+09:00", - available_to: "2019-04-26T09:07:00.000000+09:00", - page: 9, - per_page: 4 + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 3832.0, + is_shop_specified: true, + available_shop_ids: ["1c3722c6-fa2f-4a5c-afd8-5f23c60a500f", "4c56c0b7-012d-44d0-88af-dd440b482109", "82a7e1e7-4d98-4b2d-a772-eafa695c876e", "72cc23ce-0757-4f8a-8256-02097379a4b0"], + is_disabled: false, + is_hidden: false, + is_public: true, + code: "BBTTp6AGpM", + usage_limit: 4878, + min_amount: 5581, + storage_id: "35039622-eaa3-4ae0-8f9d-0e3e8a4c09cf" })); status = response.code; } catch (e) { @@ -7604,16 +11667,26 @@ test('Check ListCampaigns | 4', async () => { expect(status).not.toBe(400); }) -test('Check ListCampaigns | 5', async () => { +test('Check CreateCoupon | 44', async () => { let status = 400; try { - const response: Response = await client.send(new ListCampaigns({ - private_money_id: "e6344f05-84e1-4e0f-9035-4e96e13460a4", - is_ongoing: false, - available_from: "2019-12-31T10:29:42.000000+09:00", - available_to: "2023-05-12T11:15:32.000000+09:00", - page: 2485, - per_page: 11 + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 4254.0, + is_shop_specified: true, + available_shop_ids: ["b0fe2133-5ce2-4774-8048-daad4fb5bf59", "eb4bfca3-6f9c-4617-87e9-f5aa038b2dc2"], + display_ends_at: "2021-08-10T20:48:40.000000Z", + is_disabled: true, + is_hidden: true, + is_public: true, + code: "al", + usage_limit: 8194, + min_amount: 7029, + storage_id: "1662b1b6-af03-429c-8012-789e3c0c4263" })); status = response.code; } catch (e) { @@ -7625,11 +11698,27 @@ test('Check ListCampaigns | 5', async () => { expect(status).not.toBe(400); }) -test('Check GetCampaign | 0', async () => { +test('Check CreateCoupon | 45', async () => { let status = 400; try { - const response: Response = await client.send(new GetCampaign({ - campaign_id: "a937e186-7127-4086-86b2-ebffae347414" + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 360.0, + is_shop_specified: false, + available_shop_ids: ["a369adc4-0317-4bd6-b220-18d0eb4a55e3", "08abf01a-b1ea-4a0d-940c-8bdca1423ca4", "bdc0f29e-7601-43b2-a3f4-76913c8e20f6"], + display_starts_at: "2022-05-03T00:48:45.000000Z", + display_ends_at: "2022-07-29T04:38:50.000000Z", + is_disabled: true, + is_hidden: true, + is_public: false, + code: "uG53qZW", + usage_limit: 3328, + min_amount: 1658, + storage_id: "8d68c302-5210-4ea0-8721-b113b98f6eef" })); status = response.code; } catch (e) { @@ -7641,11 +11730,28 @@ test('Check GetCampaign | 0', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 0', async () => { +test('Check CreateCoupon | 46', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563" + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 6944.0, + is_shop_specified: false, + available_shop_ids: ["36a6f82a-b023-4175-8075-f54278575cdd", "e63fda58-b3b6-41a1-8cfd-e2dc465eedd5", "7d744ad5-4b5f-4f8c-a0d5-b3c2f4507fc5", "fdd6f8ce-d1fa-48bf-b952-caa6838cc431", "c997380a-2538-409c-b2ce-b60f3f1618d1", "d1727302-c76a-4c54-81bb-fbd259de9f78", "c4714663-ddcb-475f-89bf-acd7c943f0e3", "c3451d24-92e2-4208-8920-4a31932f18ee", "811b8379-4fcc-4dcc-9688-30c9160693ad"], + discount_upper_limit: 5799, + display_starts_at: "2020-08-15T06:31:23.000000Z", + display_ends_at: "2023-05-22T07:07:16.000000Z", + is_disabled: true, + is_hidden: false, + is_public: true, + code: "PKIYR", + usage_limit: 7361, + min_amount: 4972, + storage_id: "c4afa331-685d-4955-8375-0ddc9ccdf993" })); status = response.code; } catch (e) { @@ -7657,15 +11763,45 @@ test('Check UpdateCampaign | 0', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 1', async () => { +test('Check CreateCoupon | 47', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new CreateCoupon({ + private_money_id: "901ca15e-13ad-4082-bb64-8a93ee34f22c", + name: "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + starts_at: "2021-01-02T06:39:44.000000Z", + ends_at: "2021-06-09T15:15:05.000000Z", + issued_shop_id: "a2034002-634b-4989-9a5b-9213447539bd", + discount_percentage: 9681.0, + is_shop_specified: false, + available_shop_ids: ["700af5e3-ddd7-4b67-9846-2f6ca99c995b", "ee279551-dcf2-4b94-9ec7-8a2f3e83bc2d", "23746f5b-a15c-4de4-9bd2-6e8f6939c371", "ee21a37f-b22d-4856-a433-42c386afe982", "c7c944fd-9649-4996-acc5-f8b359a968a0", "9127d928-3be0-46ab-a4a5-c24ffbe3d5ac", "55a1cbb8-c8c8-4e92-a47d-eae9453d1f81", "be39fdaf-5840-482f-a8b7-7c2b4efba1d0", "87c07719-7129-4f83-8ae1-27ff5b05fb28", "c642fe5d-b701-4579-82d4-8ab567c9ee3e"], + description: "IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8utokX", + discount_upper_limit: 4816, + display_starts_at: "2022-03-02T22:41:12.000000Z", + display_ends_at: "2022-06-01T20:56:17.000000Z", + is_disabled: true, + is_hidden: false, + is_public: true, + code: "coqfiAU", + usage_limit: 3590, + min_amount: 6951, + storage_id: "f10f2ad8-6c78-4e91-a346-d59dc58fd3df" + })); + 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 GetCoupon | 0', async () => { + let status = 400; + try { + const response: Response = await client.send(new GetCoupon({ + coupon_id: "b8a9e22b-b9d2-427a-a40f-9b3c5ce58991" })); status = response.code; } catch (e) { @@ -7677,16 +11813,30 @@ test('Check UpdateCampaign | 1', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 2', async () => { +test('Check UpdateCoupon | 0', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - max_total_point_amount: 3590, - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 4008 + })); + 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 UpdateCoupon | 1', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 1135, + name: "uqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzm" })); status = response.code; } catch (e) { @@ -7698,17 +11848,34 @@ test('Check UpdateCampaign | 2', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 3', async () => { +test('Check UpdateCoupon | 2', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - max_point_amount: 2824, - max_total_point_amount: 2420, - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 7874, + description: "IXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROF", + name: "3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57ns" + })); + 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 UpdateCoupon | 3', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 6739, + discount_upper_limit: 3768, + description: "T7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRsc", + name: "SaTD" })); status = response.code; } catch (e) { @@ -7720,18 +11887,38 @@ test('Check UpdateCampaign | 3', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 4', async () => { +test('Check UpdateCoupon | 4', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - exist_in_each_product_groups: true, - max_point_amount: 4677, - max_total_point_amount: 501, - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 7708, + starts_at: "2022-08-05T00:50:13.000000Z", + discount_upper_limit: 895, + description: "UxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc", + name: "wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPS" + })); + 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 UpdateCoupon | 5', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 9379, + ends_at: "2021-12-12T06:52:59.000000Z", + starts_at: "2023-05-03T02:56:24.000000Z", + discount_upper_limit: 207, + description: "z8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHd", + name: "hvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHL" })); status = response.code; } catch (e) { @@ -7743,19 +11930,67 @@ test('Check UpdateCampaign | 4', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 5', async () => { +test('Check UpdateCoupon | 6', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - minimum_number_for_combination_purchase: 1703, - exist_in_each_product_groups: false, - max_point_amount: 2894, - max_total_point_amount: 4532, - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 7503, + display_starts_at: "2023-03-18T23:40:54.000000Z", + ends_at: "2023-05-25T04:41:06.000000Z", + starts_at: "2023-01-02T01:11:18.000000Z", + discount_upper_limit: 5761, + description: "c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxl", + name: "E1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLm" + })); + 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 UpdateCoupon | 7', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 958, + display_ends_at: "2023-02-24T03:06:35.000000Z", + display_starts_at: "2020-05-07T20:47:00.000000Z", + ends_at: "2022-09-30T23:08:11.000000Z", + starts_at: "2020-12-27T04:31:53.000000Z", + discount_upper_limit: 8069, + description: "cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6", + name: "zjKIEdqTZCuDots6oOpUnX5paeprWtPSGZr" + })); + 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 UpdateCoupon | 8', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 1595, + is_disabled: false, + display_ends_at: "2022-07-31T04:45:49.000000Z", + display_starts_at: "2021-06-01T04:13:09.000000Z", + ends_at: "2023-11-16T22:56:36.000000Z", + starts_at: "2022-09-30T10:26:58.000000Z", + discount_upper_limit: 5229, + description: "NU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN", + name: "AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZn" })); status = response.code; } catch (e) { @@ -7767,20 +12002,48 @@ test('Check UpdateCampaign | 5', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 6', async () => { +test('Check UpdateCoupon | 9', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - applicable_shop_ids: ["e7aae6f5-132c-4d17-808b-a98c9eb27d88", "0953aa5e-9c53-4621-9dc5-4e59c1060862", "b0dcd4f5-9d98-4fe1-beba-644f3286cee0", "d0a6dff9-b2a7-46b1-8197-16f43532624a", "16d29219-9014-45aa-9ca0-3062b9c14ea6", "5ca9c410-3c7b-41da-a08c-9999113a20dc", "47f4bac6-40f6-4985-988c-e63440782044", "0d9d74dc-5ed4-45f2-a5db-d2807b407e6e", "bd9d470d-f19b-4b59-bcac-89ea1922f35b"], - minimum_number_for_combination_purchase: 6656, - exist_in_each_product_groups: true, - max_point_amount: 5559, - max_total_point_amount: 4540, - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 4441, + is_hidden: false, + is_disabled: false, + display_ends_at: "2021-10-13T10:15:58.000000Z", + display_starts_at: "2023-10-05T04:37:14.000000Z", + ends_at: "2020-06-23T13:16:45.000000Z", + starts_at: "2022-10-30T00:24:12.000000Z", + discount_upper_limit: 6683, + description: "zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5L", + name: "wfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O" + })); + 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 UpdateCoupon | 10', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 6583, + is_public: false, + is_hidden: false, + is_disabled: false, + display_ends_at: "2021-05-26T05:29:54.000000Z", + display_starts_at: "2021-04-09T21:59:10.000000Z", + ends_at: "2024-01-28T22:17:32.000000Z", + starts_at: "2022-06-04T00:21:11.000000Z", + discount_upper_limit: 8981, + description: "RgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs", + name: "5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc4uS" })); status = response.code; } catch (e) { @@ -7792,27 +12055,23 @@ test('Check UpdateCampaign | 6', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 7', async () => { +test('Check UpdateCoupon | 11', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: ["a3efa5b9-d4e0-4348-b55e-1c93e807f32b", "3ebca7d7-9c3f-41c7-ad2c-ba350fb6eb07", "a4f82afb-2a16-4409-9c8e-ff1f7926b6a4", "0cfbe978-a504-49a5-a06d-b67fd6166618", "359a6e7b-030b-4d91-a889-ef5db06b03c2"], - minimum_number_for_combination_purchase: 8785, - exist_in_each_product_groups: true, - max_point_amount: 6935, - max_total_point_amount: 1370, - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 1259, + code: "6uS", + is_public: true, + is_hidden: true, + is_disabled: false, + display_ends_at: "2021-12-07T18:56:24.000000Z", + display_starts_at: "2022-12-01T12:21:10.000000Z", + ends_at: "2021-04-13T17:22:08.000000Z", + starts_at: "2023-12-10T04:38:42.000000Z", + discount_upper_limit: 4190, + description: "x7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12", + name: "UeT7ThuLLgJ9PT2" })); status = response.code; } catch (e) { @@ -7824,40 +12083,24 @@ test('Check UpdateCampaign | 7', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 8', async () => { +test('Check UpdateCoupon | 12', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - applicable_days_of_week: [2, 6, 2, 4, 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" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: ["1787b8cb-a653-4d9c-a2e6-f9da30b0620f", "ec6a6de9-fcd6-475b-baa2-7e466b66e545", "ce18c823-2f60-4831-ad0b-31781537c932", "ea55a4fa-b093-429a-be13-8a7b18b5e947", "72902854-4e5c-4131-b882-a208fe413d28", "9e0d477c-7e3f-46a8-9d66-09048408a4dc", "bbbc132d-78d5-42e6-a5f4-958b81e90b3b", "186699c9-e81c-425d-a19e-0d3319a24fb0"], - minimum_number_for_combination_purchase: 1355, - exist_in_each_product_groups: true, - max_point_amount: 5242, - max_total_point_amount: 8010, - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 8843, + usage_limit: 6677, + code: "kxOOzhTp", + is_public: true, + is_hidden: true, + is_disabled: true, + display_ends_at: "2021-08-11T18:49:09.000000Z", + display_starts_at: "2022-05-10T06:49:18.000000Z", + ends_at: "2023-07-24T01:52:21.000000Z", + starts_at: "2020-02-14T14:38:53.000000Z", + discount_upper_limit: 4031, + description: "QXea3eTBlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4XfUae14Wbt93t26", + name: "LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWm" })); status = response.code; } catch (e) { @@ -7869,50 +12112,25 @@ test('Check UpdateCampaign | 8', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 9', async () => { +test('Check UpdateCoupon | 13', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - product_based_point_rules: [], - applicable_days_of_week: [1, 4, 3, 3, 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: ["8265c076-9557-4c3d-8927-4f6eda568cd4", "f6340d52-1b76-4ff2-8b69-4dbe2d8ecaa0", "c3ca72cd-c6a4-4e4d-9df1-5c899ead9e1f", "3ed176a1-e054-42ad-80a1-789f9f6323fd"], - minimum_number_for_combination_purchase: 6073, - exist_in_each_product_groups: true, - max_point_amount: 5795, - max_total_point_amount: 9690, - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 6224, + min_amount: 6137, + usage_limit: 9527, + code: "E", + is_public: true, + is_hidden: false, + is_disabled: false, + display_ends_at: "2020-10-22T16:12:16.000000Z", + display_starts_at: "2022-03-14T00:38:05.000000Z", + ends_at: "2020-03-22T09:11:10.000000Z", + starts_at: "2020-05-06T07:45:07.000000Z", + discount_upper_limit: 138, + description: "WruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz3", + name: "7PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oN" })); status = response.code; } catch (e) { @@ -7924,71 +12142,26 @@ test('Check UpdateCampaign | 9', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 10', async () => { +test('Check UpdateCoupon | 14', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - 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 - }, { - "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", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }], - applicable_days_of_week: [0, 6, 0, 0, 1, 5, 4], - applicable_time_ranges: [], - applicable_shop_ids: ["5e5ab792-3c45-4883-878b-4e552ec078ef", "8b118c02-c1af-4671-bc2c-0f671490fea1", "43d4ff8e-b6b0-4d94-a59a-d67ab71cd480", "1e7bebd8-4bf3-4edd-b5a1-72f6cac0a111", "8201aa63-69b8-4acc-8601-b8b40efc1225", "48abd7a3-c4ed-46e2-90a7-b231e8adce23", "ac9d9b68-6379-49bd-9b2b-830662f6f59d", "c6b3b5d0-e582-46c4-af2b-7ce22ae8bbce"], - minimum_number_for_combination_purchase: 2689, - exist_in_each_product_groups: true, - max_point_amount: 8171, - max_total_point_amount: 4795, - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 6126, + is_shop_specified: true, + min_amount: 4663, + usage_limit: 1724, + code: "uTKN6", + is_public: false, + is_hidden: false, + is_disabled: false, + display_ends_at: "2022-07-06T08:44:01.000000Z", + display_starts_at: "2022-03-18T15:54:29.000000Z", + ends_at: "2021-11-19T12:04:56.000000Z", + starts_at: "2022-11-23T13:55:03.000000Z", + discount_upper_limit: 9195, + description: "N0paU2HC64wcGrUcdcRO2Sa3zE9qA6Jl", + name: "qvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyh" })); status = response.code; } catch (e) { @@ -8000,73 +12173,27 @@ test('Check UpdateCampaign | 10', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 11', async () => { +test('Check UpdateCoupon | 15', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - 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 - }, { - "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: [], - applicable_days_of_week: [4, 5, 1], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: ["7e63ed01-d0ce-4a1c-8029-cfe0a79b9da3", "7efd6119-48ea-4356-9bee-42bffce41d9c", "92faf87d-2dc0-4733-a392-9c35b6793772", "aab32ac4-508d-4ee8-9607-3ab062861bb4", "323e7ea4-cc89-43ac-a0b0-378a30319fc0", "d0c6ee20-ebf6-4fe8-9b92-be3f18c82e11", "a85a12d1-5f07-4817-a659-f577451a29fe"], - minimum_number_for_combination_purchase: 481, - exist_in_each_product_groups: true, - max_point_amount: 1149, - max_total_point_amount: 4311, - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 768, + available_shop_ids: ["8cbd798b-b6f2-4acb-897a-fa8c6e0d0b0c", "1790102e-90e7-456c-8a8f-158ba23481c5"], + is_shop_specified: false, + min_amount: 6717, + usage_limit: 676, + code: "hNrgMO", + is_public: false, + is_hidden: false, + is_disabled: false, + display_ends_at: "2021-10-28T22:30:43.000000Z", + display_starts_at: "2021-11-09T17:41:59.000000Z", + ends_at: "2023-09-27T15:53:22.000000Z", + starts_at: "2023-11-14T18:53:05.000000Z", + discount_upper_limit: 8247, + description: "ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqq", + name: "ow4qG8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz" })); status = response.code; } catch (e) { @@ -8078,79 +12205,46 @@ test('Check UpdateCampaign | 11', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 12', async () => { - let status = 400; - try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - 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 - }], - 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 - }], - applicable_days_of_week: [5, 4, 0, 4], - 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: ["3f880420-656f-4669-bdc6-c028e6b14226", "d8273312-0ca2-4e06-b5ba-f86812bbf9e8"], - minimum_number_for_combination_purchase: 5033, - exist_in_each_product_groups: true, - max_point_amount: 2769, - max_total_point_amount: 3870, - applicable_account_metadata: { - "key": "sex", - "value": "male" +test('Check UpdateCoupon | 16', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 8248, + storage_id: "be758937-d390-446b-a45e-77c961c6259b", + available_shop_ids: ["9179cf1e-5003-489d-adcf-a8cc361157d7", "47cc4ce0-7110-4a3a-b96e-291bd9d094da", "4f9fd637-e62e-4c20-b39c-d354a19fdf27", "77a2b0a4-331b-467f-80f1-6c9c9cecbaa3", "af4389fb-eb3b-4753-8ca0-486b2476e04f", "d460c0d7-7701-4d8f-97c4-824cb158285f", "5b6cfd1f-1eda-4f6d-a9a4-060511452d79", "bc7eed84-2fd9-493b-9934-0497211073f1", "85263c2a-4d53-4344-8363-64e5de6c85b1"], + is_shop_specified: true, + min_amount: 1448, + usage_limit: 7713, + code: "GC4wPtL", + is_public: false, + is_hidden: true, + is_disabled: true, + display_ends_at: "2022-12-14T09:31:57.000000Z", + display_starts_at: "2021-04-01T23:30:59.000000Z", + ends_at: "2020-04-05T00:04:54.000000Z", + starts_at: "2023-06-17T02:45:47.000000Z", + discount_upper_limit: 9583, + description: "4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4X", + name: "u22Okprhq" + })); + 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 UpdateCoupon | 17', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 1256, + discount_percentage: 8182.0 })); status = response.code; } catch (e) { @@ -8162,107 +12256,34 @@ test('Check UpdateCampaign | 12', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 13', async () => { +test('Check UpdateCoupon | 18', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - point_expires_in_days: 2048, - 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 - }, { - "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 - }, { - "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", - "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 - }], - applicable_days_of_week: [4, 4, 1, 2, 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" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: ["b2e34449-469e-4a42-b15e-c04a66175077", "adc2cf40-33c9-44df-b4c8-d074ca118d8c", "3a94efc8-7550-436c-88bf-774671a59ba7", "9aab1fc5-4075-4150-87bb-ea9a97236e9f"], - minimum_number_for_combination_purchase: 5064, - exist_in_each_product_groups: false, - max_point_amount: 1550, - max_total_point_amount: 3173, - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 2447, + discount_percentage: 3329.0, + name: "MEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n" + })); + 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 UpdateCoupon | 19', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 941, + discount_percentage: 9649.0, + description: "m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99", + name: "ROsTZK65zQOhilbvDcAlCpIpPo9knGn" })); status = response.code; } catch (e) { @@ -8274,79 +12295,38 @@ test('Check UpdateCampaign | 13', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 14', async () => { +test('Check UpdateCoupon | 20', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - point_expires_at: "2016-08-18T04:58:08.000000+09:00", - point_expires_in_days: 4863, - 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", - "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 - }], - applicable_days_of_week: [1, 4, 6, 2], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: [], - minimum_number_for_combination_purchase: 5789, - exist_in_each_product_groups: false, - max_point_amount: 449, - max_total_point_amount: 5094, - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 3169, + discount_percentage: 4018.0, + discount_upper_limit: 497, + description: "U0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2", + name: "YA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDW" + })); + 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 UpdateCoupon | 21', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 1258, + discount_percentage: 9313.0, + starts_at: "2023-09-18T08:13:54.000000Z", + discount_upper_limit: 2543, + description: "z7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4Af", + name: "uwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6" })); status = response.code; } catch (e) { @@ -8358,74 +12338,42 @@ test('Check UpdateCampaign | 14', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 15', async () => { +test('Check UpdateCoupon | 22', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - status: "enabled", - point_expires_at: "2017-09-17T15:58:08.000000+09:00", - point_expires_in_days: 5443, - 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 - }, { - "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", - "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 - }], - applicable_days_of_week: [2, 4, 3, 3, 4, 2, 5], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: [], - minimum_number_for_combination_purchase: 1827, - exist_in_each_product_groups: true, - max_point_amount: 5372, - max_total_point_amount: 6178, - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 5867, + discount_percentage: 8761.0, + ends_at: "2023-03-09T03:28:35.000000Z", + starts_at: "2023-07-12T16:09:38.000000Z", + discount_upper_limit: 1992, + description: "dXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9D", + name: "PsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMra" + })); + 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 UpdateCoupon | 23', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 258, + discount_percentage: 8455.0, + display_starts_at: "2021-05-03T01:55:17.000000Z", + ends_at: "2021-12-05T03:40:10.000000Z", + starts_at: "2020-03-07T23:33:30.000000Z", + discount_upper_limit: 736, + description: "iLHRNzuSt", + name: "ZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biu" })); status = response.code; } catch (e) { @@ -8437,60 +12385,20 @@ test('Check UpdateCampaign | 15', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 16', async () => { +test('Check UpdateCoupon | 24', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - description: "3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o5Rc96wfmVrWr", - status: "disabled", - point_expires_at: "2021-03-04T02:50:16.000000+09:00", - point_expires_in_days: 7832, - is_exclusive: true, - subject: "money", - amount_based_point_rules: [], - 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 - }], - applicable_days_of_week: [5, 2, 2, 3, 3, 1, 4, 4], - 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: ["099843e5-94af-4002-ace5-e48ef262e4b3"], - minimum_number_for_combination_purchase: 4465, - exist_in_each_product_groups: false, - max_point_amount: 3241, - max_total_point_amount: 4131, - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 2927, + discount_percentage: 3704.0, + display_ends_at: "2022-07-20T19:37:37.000000Z", + display_starts_at: "2021-07-14T19:17:22.000000Z", + ends_at: "2022-01-11T20:44:45.000000Z", + starts_at: "2020-08-06T01:38:14.000000Z", + discount_upper_limit: 1499, + description: "aoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a", + name: "rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcU" })); status = response.code; } catch (e) { @@ -8502,133 +12410,48 @@ test('Check UpdateCampaign | 16', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 17', async () => { +test('Check UpdateCoupon | 25', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - event: "payment", - description: "LeCaVZzJ21Wkjwh096vY0YkfqArkVOxtHaQbqrekxj6", - status: "enabled", - point_expires_at: "2023-07-10T06:44:35.000000+09:00", - point_expires_in_days: 599, - 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 - }, { - "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", - "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 - }, { - "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 - }], - applicable_days_of_week: [4, 5, 6, 1, 1, 2, 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" - }], - applicable_shop_ids: ["3f6ece25-8858-49d3-a949-b0470f13d08f", "e6f307a5-9ca0-45fe-b6b3-429227846dcf", "01f374f6-c81c-4b6e-b353-f42521eb4c7e", "657a77c8-1ab7-4216-8b6c-85ea25687620", "93b1c829-410c-4771-87c5-af643fddc470", "64ccf4ba-2107-40aa-aa71-a743856c2297", "94b8e2e3-89d0-422c-8fbd-c0053d03cf70", "cdb65b57-2c26-4225-aa2c-d12fa8985f69"], - minimum_number_for_combination_purchase: 503, - exist_in_each_product_groups: true, - max_point_amount: 2730, - max_total_point_amount: 6896, - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 8821, + discount_percentage: 1990.0, + is_disabled: false, + display_ends_at: "2020-02-28T03:47:20.000000Z", + display_starts_at: "2023-08-07T02:47:43.000000Z", + ends_at: "2021-01-22T02:10:35.000000Z", + starts_at: "2022-09-22T22:47:56.000000Z", + discount_upper_limit: 8028, + description: "gIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9Qotexnhe", + name: "cBro7jHBJHSTWFK0aJRYTf" + })); + 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 UpdateCoupon | 26', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 3205, + discount_percentage: 3175.0, + is_hidden: false, + is_disabled: true, + display_ends_at: "2022-03-04T23:59:14.000000Z", + display_starts_at: "2020-07-29T22:26:48.000000Z", + ends_at: "2020-07-31T21:06:41.000000Z", + starts_at: "2020-11-29T09:17:03.000000Z", + discount_upper_limit: 2026, + description: "M6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdN", + name: "Gv9QaNMmxX2S2fPh6fy135I5" })); status = response.code; } catch (e) { @@ -8640,92 +12463,52 @@ test('Check UpdateCampaign | 17', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 18', async () => { +test('Check UpdateCoupon | 27', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - priority: 5614, - event: "payment", - description: "vdw0Yvld3IeJyhTlRgTT2NxSiphZRlLoLjMmLSHQhe4t", - status: "enabled", - point_expires_at: "2021-02-27T00:44:59.000000+09:00", - point_expires_in_days: 5385, - is_exclusive: true, - subject: "money", - amount_based_point_rules: [], - 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 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }], - applicable_days_of_week: [], - 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" - }], - applicable_shop_ids: ["a41e6b19-febf-4c38-9e10-690c1985f651", "ce88840f-d1aa-497b-9594-014021ac83ef", "b29c9e02-a16a-4508-8ea9-c3cbe6e0277b"], - minimum_number_for_combination_purchase: 207, - exist_in_each_product_groups: false, - max_point_amount: 3970, - max_total_point_amount: 8187, - applicable_account_metadata: { - "key": "sex", - "value": "male" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 452, + discount_percentage: 5642.0, + is_public: false, + is_hidden: false, + is_disabled: true, + display_ends_at: "2024-01-12T08:43:51.000000Z", + display_starts_at: "2022-04-28T20:20:36.000000Z", + ends_at: "2023-10-08T03:05:33.000000Z", + starts_at: "2021-05-12T19:30:15.000000Z", + discount_upper_limit: 4327, + description: "nvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00I", + name: "CXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HA" + })); + 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 UpdateCoupon | 28', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 8954, + discount_percentage: 8168.0, + code: "t", + is_public: true, + is_hidden: false, + is_disabled: false, + display_ends_at: "2023-03-04T05:42:16.000000Z", + display_starts_at: "2023-10-11T08:06:13.000000Z", + ends_at: "2020-01-07T12:18:39.000000Z", + starts_at: "2020-10-10T16:37:18.000000Z", + discount_upper_limit: 9006, + description: "7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFh", + name: "LPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5i" })); status = response.code; } catch (e) { @@ -8737,102 +12520,25 @@ test('Check UpdateCampaign | 18', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 19', async () => { +test('Check UpdateCoupon | 29', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - ends_at: "2020-07-23T01:14:26.000000+09:00", - priority: 4163, - event: "external-transaction", - description: "t7BPEI", - status: "disabled", - point_expires_at: "2025-06-14T06:18:22.000000+09:00", - point_expires_in_days: 6798, - 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 - }, { - "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", - "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 - }], - applicable_days_of_week: [], - 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" - }], - applicable_shop_ids: ["b6737377-b239-4e2f-8cac-53e9591c09e1", "a56f2fa8-54df-4a2d-8888-21788c278461", "20d36aad-b093-412c-907a-99fc4395981a", "4bbdd7ef-ec21-4d61-bb44-079c0eb9b376", "c747c736-f203-40d5-9f36-19d3603ff958", "ef5d16cc-a06b-4198-bb8d-431135028b1f", "476067c0-5180-472f-9748-fbe19e693314", "fff80864-3a8e-4bb9-a34f-3590b776a90e", "769bd2ae-222f-4b53-a240-413cf52e9b23"], - minimum_number_for_combination_purchase: 1254, - exist_in_each_product_groups: false, - max_point_amount: 6194, - max_total_point_amount: 3285, - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 7953, + discount_percentage: 7721.0, + usage_limit: 1600, + code: "t4HXxpMz5", + is_public: true, + is_hidden: true, + is_disabled: false, + display_ends_at: "2020-08-30T01:35:35.000000Z", + display_starts_at: "2020-07-06T20:29:39.000000Z", + ends_at: "2021-09-28T07:48:36.000000Z", + starts_at: "2021-02-26T04:02:14.000000Z", + discount_upper_limit: 3530, + description: "OMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNYBzQF", + name: "6RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YL" })); status = response.code; } catch (e) { @@ -8844,95 +12550,26 @@ test('Check UpdateCampaign | 19', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 20', async () => { +test('Check UpdateCoupon | 30', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - starts_at: "2025-06-29T09:27:06.000000+09:00", - ends_at: "2020-09-22T23:42:50.000000+09:00", - priority: 5097, - event: "topup", - description: "LSyhoqY6", - status: "enabled", - point_expires_at: "2017-04-12T21:16:10.000000+09:00", - point_expires_in_days: 9688, - 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 - }, { - "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", - "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 - }], - applicable_days_of_week: [4, 3, 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" - }], - applicable_shop_ids: ["169df80d-dba4-41e0-901a-0a8716b52a0a"], - minimum_number_for_combination_purchase: 141, - exist_in_each_product_groups: true, - max_point_amount: 3818, - max_total_point_amount: 9863, - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 2430, + discount_percentage: 8124.0, + min_amount: 3838, + usage_limit: 1877, + code: "ZY6", + is_public: true, + is_hidden: false, + is_disabled: false, + display_ends_at: "2021-05-02T06:05:58.000000Z", + display_starts_at: "2020-11-14T02:18:02.000000Z", + ends_at: "2020-09-02T12:17:39.000000Z", + starts_at: "2023-11-15T17:09:17.000000Z", + discount_upper_limit: 8317, + description: "6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNOD", + name: "a3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXg" })); status = response.code; } catch (e) { @@ -8944,72 +12581,27 @@ test('Check UpdateCampaign | 20', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 21', async () => { +test('Check UpdateCoupon | 31', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "24843925-ee37-495f-9239-8947fc9ec563", - name: "B2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8WbkxbWTp66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6GGJ1GXo5UPiFJuScrEGcY5I6vYJqEcansSsP2ceIvKP9b", - starts_at: "2018-12-25T21:10:01.000000+09:00", - ends_at: "2022-12-03T09:37:51.000000+09:00", - priority: 7905, - event: "external-transaction", - description: "nQbVQM9Z6RG0kCsPdz", - status: "disabled", - point_expires_at: "2017-01-07T22:08:56.000000+09:00", - point_expires_in_days: 5619, - 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 - }], - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }], - applicable_days_of_week: [0, 0, 3, 6, 1, 2, 5, 4], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: ["53d9c527-dad7-4833-866b-9cd79641807f", "3added3e-959a-4469-8d39-acdaf1094468", "386e4949-19fb-4f3a-af6f-d18f52fd75ea", "246c5cd6-700f-4e5a-afc1-24f02d046b65", "21623f30-970f-4256-a306-840e7b90fcc1"], - minimum_number_for_combination_purchase: 857, - exist_in_each_product_groups: true, - max_point_amount: 259, - max_total_point_amount: 6442, - applicable_account_metadata: { - "key": "sex", - "value": "male" - } + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 5165, + discount_percentage: 8219.0, + is_shop_specified: false, + min_amount: 5037, + usage_limit: 3520, + code: "g4CYuzS", + is_public: false, + is_hidden: true, + is_disabled: true, + display_ends_at: "2021-09-18T18:13:43.000000Z", + display_starts_at: "2022-03-01T00:57:56.000000Z", + ends_at: "2020-03-04T07:03:16.000000Z", + starts_at: "2022-10-12T08:21:07.000000Z", + discount_upper_limit: 8846, + description: "tkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0", + name: "TvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1Prn" })); status = response.code; } catch (e) { @@ -9021,12 +12613,28 @@ test('Check UpdateCampaign | 21', async () => { expect(status).not.toBe(400); }) -test('Check RequestUserStats | 0', async () => { +test('Check UpdateCoupon | 32', async () => { let status = 400; try { - const response: Response = await client.send(new RequestUserStats({ - from: "2019-04-01T08:57:47.000000+09:00", - to: "2019-05-10T07:14:52.000000+09:00" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 8295, + discount_percentage: 7425.0, + available_shop_ids: ["9f5df334-20c0-4725-9a5f-8daeb737ecf1", "780583b6-fef2-46ea-a160-9046d15644cb", "5e3cd67e-178b-4ace-94c8-ae933b155491", "dd704355-efd0-446a-9f38-61cfe7e5c261"], + is_shop_specified: true, + min_amount: 2605, + usage_limit: 9676, + code: "D3inc4", + is_public: true, + is_hidden: false, + is_disabled: false, + display_ends_at: "2021-08-18T05:01:39.000000Z", + display_starts_at: "2020-06-19T09:03:27.000000Z", + ends_at: "2020-02-11T14:16:51.000000Z", + starts_at: "2023-08-09T09:22:31.000000Z", + discount_upper_limit: 508, + description: "p4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5Ml", + name: "LDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjA" })); status = response.code; } catch (e) { @@ -9038,12 +12646,29 @@ test('Check RequestUserStats | 0', async () => { expect(status).not.toBe(400); }) -test('Check CreateWebhook | 0', async () => { +test('Check UpdateCoupon | 33', async () => { let status = 400; try { - const response: Response = await client.send(new CreateWebhook({ - task: "process_user_stats_operation", - url: "N8" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_amount: 1664, + discount_percentage: 7168.0, + storage_id: "41377912-9f99-4b83-aea8-dedcb4645ace", + available_shop_ids: ["548de50d-4dd0-481b-b954-6a98ef7f3761", "414931f3-20a7-4cf1-b149-cc2caa3f61c6", "e94e7191-01e5-4e78-8af8-9919c1e50648", "aa68976f-2da4-46cf-bd73-a7147a409559", "5ab17d17-8533-4ad8-932f-a7ed13f41ce6", "8b3fff53-088f-412b-834d-e0cddb9a8ddb", "33cdbec0-a8c9-4d07-b0dc-35059caf39e8", "6a024150-328a-49fb-bc49-f9cf0c989163"], + is_shop_specified: true, + min_amount: 1904, + usage_limit: 6823, + code: "kBjff", + is_public: true, + is_hidden: true, + is_disabled: false, + display_ends_at: "2021-01-16T23:01:45.000000Z", + display_starts_at: "2023-09-13T23:58:06.000000Z", + ends_at: "2021-08-22T22:44:37.000000Z", + starts_at: "2022-02-13T19:16:31.000000Z", + discount_upper_limit: 7621, + description: "4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE", + name: "8r" })); status = response.code; } catch (e) { @@ -9055,10 +12680,13 @@ test('Check CreateWebhook | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListWebhooks | 0', async () => { +test('Check UpdateCoupon | 34', async () => { let status = 400; try { - const response: Response = await client.send(new ListWebhooks()); + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 6177.0 + })); status = response.code; } catch (e) { if (axios.isAxiosError(e) && e.response) { @@ -9069,11 +12697,13 @@ test('Check ListWebhooks | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListWebhooks | 1', async () => { +test('Check UpdateCoupon | 35', async () => { let status = 400; try { - const response: Response = await client.send(new ListWebhooks({ - per_page: 3880 + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 4453.0, + name: "7vFyo7eM4dNHW25nKJYDvzM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38" })); status = response.code; } catch (e) { @@ -9085,12 +12715,14 @@ test('Check ListWebhooks | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListWebhooks | 2', async () => { +test('Check UpdateCoupon | 36', async () => { let status = 400; try { - const response: Response = await client.send(new ListWebhooks({ - page: 10, - per_page: 7373 + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 7286.0, + description: "iglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4n", + name: "16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJp" })); status = response.code; } catch (e) { @@ -9102,11 +12734,15 @@ test('Check ListWebhooks | 2', async () => { expect(status).not.toBe(400); }) -test('Check UpdateWebhook | 0', async () => { +test('Check UpdateCoupon | 37', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateWebhook({ - webhook_id: "97edf707-c7c9-4efb-8b34-92af407b3cb4" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 2261.0, + discount_upper_limit: 5314, + description: "S7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzso", + name: "IqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6" })); status = response.code; } catch (e) { @@ -9118,12 +12754,16 @@ test('Check UpdateWebhook | 0', async () => { expect(status).not.toBe(400); }) -test('Check UpdateWebhook | 1', async () => { +test('Check UpdateCoupon | 38', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateWebhook({ - webhook_id: "97edf707-c7c9-4efb-8b34-92af407b3cb4", - task: "bulk_shops" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 3822.0, + starts_at: "2023-10-27T14:23:58.000000Z", + discount_upper_limit: 9568, + description: "DnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4", + name: "hE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0uj" })); status = response.code; } catch (e) { @@ -9135,13 +12775,17 @@ test('Check UpdateWebhook | 1', async () => { expect(status).not.toBe(400); }) -test('Check UpdateWebhook | 2', async () => { +test('Check UpdateCoupon | 39', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateWebhook({ - webhook_id: "97edf707-c7c9-4efb-8b34-92af407b3cb4", - is_active: true, - task: "process_user_stats_operation" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 4838.0, + ends_at: "2021-10-29T01:08:59.000000Z", + starts_at: "2022-05-26T05:56:27.000000Z", + discount_upper_limit: 7508, + description: "EebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBE", + name: "aWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoY" })); status = response.code; } catch (e) { @@ -9153,14 +12797,18 @@ test('Check UpdateWebhook | 2', async () => { expect(status).not.toBe(400); }) -test('Check UpdateWebhook | 3', async () => { +test('Check UpdateCoupon | 40', async () => { let status = 400; try { - const response: Response = await client.send(new UpdateWebhook({ - webhook_id: "97edf707-c7c9-4efb-8b34-92af407b3cb4", - url: "L3mfrFPu", - is_active: true, - task: "process_user_stats_operation" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 6233.0, + display_starts_at: "2021-08-19T13:32:54.000000Z", + ends_at: "2021-02-17T07:03:04.000000Z", + starts_at: "2022-04-21T23:18:59.000000Z", + discount_upper_limit: 5351, + description: "PK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWml", + name: "55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRi" })); status = response.code; } catch (e) { @@ -9172,11 +12820,19 @@ test('Check UpdateWebhook | 3', async () => { expect(status).not.toBe(400); }) -test('Check ListCoupons | 0', async () => { +test('Check UpdateCoupon | 41', async () => { let status = 400; try { - const response: Response = await client.send(new ListCoupons({ - private_money_id: "058bd53c-2f9f-4dcf-9614-04fd1b70f74b" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 2204.0, + display_ends_at: "2022-02-20T22:32:39.000000Z", + display_starts_at: "2021-10-01T23:48:24.000000Z", + ends_at: "2023-06-06T08:40:02.000000Z", + starts_at: "2023-07-15T08:29:26.000000Z", + discount_upper_limit: 924, + description: "tN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP", + name: "7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzw" })); status = response.code; } catch (e) { @@ -9188,12 +12844,20 @@ test('Check ListCoupons | 0', async () => { expect(status).not.toBe(400); }) -test('Check ListCoupons | 1', async () => { +test('Check UpdateCoupon | 42', async () => { let status = 400; try { - const response: Response = await client.send(new ListCoupons({ - private_money_id: "058bd53c-2f9f-4dcf-9614-04fd1b70f74b", - per_page: 3071 + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 9497.0, + is_disabled: true, + display_ends_at: "2022-05-26T11:53:50.000000Z", + display_starts_at: "2023-03-05T10:35:52.000000Z", + ends_at: "2021-10-31T13:19:42.000000Z", + starts_at: "2021-05-09T08:15:36.000000Z", + discount_upper_limit: 3285, + description: "Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mG", + name: "U9YeDH" })); status = response.code; } catch (e) { @@ -9205,13 +12869,21 @@ test('Check ListCoupons | 1', async () => { expect(status).not.toBe(400); }) -test('Check ListCoupons | 2', async () => { +test('Check UpdateCoupon | 43', async () => { let status = 400; try { - const response: Response = await client.send(new ListCoupons({ - private_money_id: "058bd53c-2f9f-4dcf-9614-04fd1b70f74b", - page: 6641, - per_page: 4305 + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 9141.0, + is_hidden: true, + is_disabled: true, + display_ends_at: "2022-02-08T23:04:25.000000Z", + display_starts_at: "2023-07-04T15:47:08.000000Z", + ends_at: "2021-05-02T16:53:33.000000Z", + starts_at: "2021-10-30T23:58:56.000000Z", + discount_upper_limit: 6974, + description: "jz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtj", + name: "qA6blCNXCxB23NKDv" })); status = response.code; } catch (e) { @@ -9223,14 +12895,22 @@ test('Check ListCoupons | 2', async () => { expect(status).not.toBe(400); }) -test('Check ListCoupons | 3', async () => { +test('Check UpdateCoupon | 44', async () => { let status = 400; try { - const response: Response = await client.send(new ListCoupons({ - private_money_id: "058bd53c-2f9f-4dcf-9614-04fd1b70f74b", - available_to: "2020-08-12T10:28:28.000000+09:00", - page: 3579, - per_page: 69 + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 8485.0, + is_public: false, + is_hidden: false, + is_disabled: true, + display_ends_at: "2021-12-01T04:54:19.000000Z", + display_starts_at: "2023-08-26T06:04:20.000000Z", + ends_at: "2023-11-01T17:05:06.000000Z", + starts_at: "2021-12-03T18:52:53.000000Z", + discount_upper_limit: 4843, + description: "6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFm", + name: "4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc" })); status = response.code; } catch (e) { @@ -9242,15 +12922,23 @@ test('Check ListCoupons | 3', async () => { expect(status).not.toBe(400); }) -test('Check ListCoupons | 4', async () => { +test('Check UpdateCoupon | 45', async () => { let status = 400; try { - const response: Response = await client.send(new ListCoupons({ - private_money_id: "058bd53c-2f9f-4dcf-9614-04fd1b70f74b", - available_from: "2016-05-09T05:41:30.000000+09:00", - available_to: "2018-05-20T04:24:45.000000+09:00", - page: 1573, - per_page: 1311 + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 9898.0, + code: "DF85U", + is_public: true, + is_hidden: false, + is_disabled: false, + display_ends_at: "2020-10-30T12:50:32.000000Z", + display_starts_at: "2022-07-04T05:18:43.000000Z", + ends_at: "2020-02-02T16:47:45.000000Z", + starts_at: "2022-01-04T12:45:48.000000Z", + discount_upper_limit: 1671, + description: "RLtjhMxgRT9FEddBtVan5HyW6Uan9MoY", + name: "beeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lg" })); status = response.code; } catch (e) { @@ -9262,16 +12950,24 @@ test('Check ListCoupons | 4', async () => { expect(status).not.toBe(400); }) -test('Check ListCoupons | 5', async () => { +test('Check UpdateCoupon | 46', async () => { let status = 400; try { - const response: Response = await client.send(new ListCoupons({ - private_money_id: "058bd53c-2f9f-4dcf-9614-04fd1b70f74b", - available_shop_name: "3VaVg5lQ", - available_from: "2020-09-03T10:24:34.000000+09:00", - available_to: "2017-08-26T09:53:13.000000+09:00", - page: 6030, - per_page: 7956 + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 1949.0, + usage_limit: 3853, + code: "ERnFdcWh", + is_public: true, + is_hidden: false, + is_disabled: true, + display_ends_at: "2021-03-14T08:37:16.000000Z", + display_starts_at: "2022-07-02T22:09:21.000000Z", + ends_at: "2022-08-04T10:08:23.000000Z", + starts_at: "2023-01-15T22:21:48.000000Z", + discount_upper_limit: 4193, + description: "fJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtU", + name: "oiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FL" })); status = response.code; } catch (e) { @@ -9283,17 +12979,25 @@ test('Check ListCoupons | 5', async () => { expect(status).not.toBe(400); }) -test('Check ListCoupons | 6', async () => { +test('Check UpdateCoupon | 47', async () => { let status = 400; try { - const response: Response = await client.send(new ListCoupons({ - private_money_id: "058bd53c-2f9f-4dcf-9614-04fd1b70f74b", - issued_shop_name: "rhrBQImBbF", - available_shop_name: "Gr24v", - available_from: "2024-07-04T07:05:24.000000+09:00", - available_to: "2023-06-02T18:37:23.000000+09:00", - page: 561, - per_page: 3362 + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 6047.0, + min_amount: 1601, + usage_limit: 7881, + code: "iGK", + is_public: true, + is_hidden: false, + is_disabled: false, + display_ends_at: "2021-09-03T11:23:53.000000Z", + display_starts_at: "2021-10-05T09:36:56.000000Z", + ends_at: "2022-12-25T05:12:59.000000Z", + starts_at: "2020-09-24T20:30:53.000000Z", + discount_upper_limit: 419, + description: "NBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9TezTj3A085y5hWQ3gd", + name: "DOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l" })); status = response.code; } catch (e) { @@ -9305,18 +13009,26 @@ test('Check ListCoupons | 6', async () => { expect(status).not.toBe(400); }) -test('Check ListCoupons | 7', async () => { +test('Check UpdateCoupon | 48', async () => { let status = 400; try { - const response: Response = await client.send(new ListCoupons({ - private_money_id: "058bd53c-2f9f-4dcf-9614-04fd1b70f74b", - coupon_name: "1KmKqNh", - issued_shop_name: "u", - available_shop_name: "1AS4I", - available_from: "2021-10-09T05:18:02.000000+09:00", - available_to: "2022-03-08T02:40:00.000000+09:00", - page: 92, - per_page: 1351 + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 1021.0, + is_shop_specified: true, + min_amount: 2838, + usage_limit: 5561, + code: "4bPM", + is_public: true, + is_hidden: false, + is_disabled: true, + display_ends_at: "2020-12-20T15:37:32.000000Z", + display_starts_at: "2022-08-15T22:41:05.000000Z", + ends_at: "2020-06-18T05:25:37.000000Z", + starts_at: "2020-05-03T09:41:11.000000Z", + discount_upper_limit: 9668, + description: "wFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rU", + name: "oCJ5iHqorIswPc2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cG" })); status = response.code; } catch (e) { @@ -9328,19 +13040,27 @@ test('Check ListCoupons | 7', async () => { expect(status).not.toBe(400); }) -test('Check ListCoupons | 8', async () => { +test('Check UpdateCoupon | 49', async () => { let status = 400; try { - const response: Response = await client.send(new ListCoupons({ - private_money_id: "058bd53c-2f9f-4dcf-9614-04fd1b70f74b", - coupon_id: "PG", - coupon_name: "aTF", - issued_shop_name: "6gXtd3nJy", - available_shop_name: "Ne74Q2bvFt", - available_from: "2016-04-05T19:29:11.000000+09:00", - available_to: "2023-02-09T08:06:33.000000+09:00", - page: 3878, - per_page: 8549 + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 4130.0, + available_shop_ids: ["1a89a5c9-2ce8-49bc-be06-50fde05e2fec", "83bb16d0-bd89-4c74-88b5-253b718fe387", "8006550f-e0b2-417a-9037-2c59101d3453", "bfb8ba32-12c4-4e28-91a1-12d71c5c5f14", "24b4821a-fd75-4ff3-a4d7-3acc8085c863", "e2b6cfbc-efcb-4d7b-a5f0-63e43c32a532", "044b272d-318f-4ca5-9d50-b8332afa748c", "547fc533-38b5-4ace-b6b6-ae923d41adea"], + is_shop_specified: true, + min_amount: 9456, + usage_limit: 1827, + code: "C", + is_public: true, + is_hidden: false, + is_disabled: true, + display_ends_at: "2022-10-26T23:25:08.000000Z", + display_starts_at: "2023-03-14T20:11:39.000000Z", + ends_at: "2021-04-24T00:56:28.000000Z", + starts_at: "2022-06-27T03:47:51.000000Z", + discount_upper_limit: 6153, + description: "cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2y", + name: "eAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2" })); status = response.code; } catch (e) { @@ -9352,11 +13072,28 @@ test('Check ListCoupons | 8', async () => { expect(status).not.toBe(400); }) -test('Check GetCoupon | 0', async () => { +test('Check UpdateCoupon | 50', async () => { let status = 400; try { - const response: Response = await client.send(new GetCoupon({ - coupon_id: "eac7ba0c-adfa-4994-9007-c85f7a46f6d3" + const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", + discount_percentage: 4510.0, + storage_id: "52c58453-1db1-43ba-b19c-e2df93cfb180", + available_shop_ids: ["d1134c1b-6a00-4792-af17-1a44a9e3192e", "78c7af69-c6ce-4a91-83b2-975f1be5b054", "7fa396b6-4725-41da-b1fb-f303582c5208", "4a666b85-f7ce-4fd2-9ec6-2f261f6a5bbe", "62360857-9d69-45b9-b8ce-f5caf1e8f6fc", "0bd2112d-fff1-4ac8-a976-44908cec9b35", "56bd44dd-0854-490e-8983-1c0388d6bc2b", "b17913c7-6134-4baf-9d71-1921a14b472d", "e21b8593-ef88-4528-9e94-4f41783cef48"], + is_shop_specified: true, + min_amount: 3075, + usage_limit: 356, + code: "ob31", + is_public: true, + is_hidden: false, + is_disabled: true, + display_ends_at: "2021-05-02T11:04:15.000000Z", + display_starts_at: "2020-06-01T05:11:51.000000Z", + ends_at: "2020-06-12T12:23:35.000000Z", + starts_at: "2021-10-30T18:42:50.000000Z", + discount_upper_limit: 7710, + description: "cTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LW", + name: "lkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8MuhwDyk" })); status = response.code; } catch (e) { diff --git a/src/index.ts b/src/index.ts index 572f5c9..37de059 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,6 +13,7 @@ import { PartnerRequestExpired } from "./response/PartnerRequestExpired"; import { PartnerDecryptionFailed } from "./response/PartnerDecryptionFailed"; import { PartnerClientNotFound } from "./response/PartnerClientNotFound"; import { BadRequest } from "./response/BadRequest"; +import { PaginatedOrganizations } from "./response/PaginatedOrganizations"; import { PaginatedCoupons } from "./response/PaginatedCoupons"; import { CouponDetail } from "./response/CouponDetail"; import { Coupon } from "./response/Coupon"; @@ -33,12 +34,17 @@ import { PaginatedTransfersV2 } from "./response/PaginatedTransfersV2"; import { PaginatedTransfers } from "./response/PaginatedTransfers"; import { PaginatedTransactionV2 } from "./response/PaginatedTransactionV2"; import { PaginatedTransaction } from "./response/PaginatedTransaction"; +import { Banks } from "./response/Banks"; +import { Bank } from "./response/Bank"; +import { BankRegisteringInfo } from "./response/BankRegisteringInfo"; +import { UserDevice } from "./response/UserDevice"; import { UserStatsOperation } from "./response/UserStatsOperation"; import { PrivateMoneySummary } from "./response/PrivateMoneySummary"; import { PaginatedPrivateMoneyOrganizationSummaries } from "./response/PaginatedPrivateMoneyOrganizationSummaries"; import { PrivateMoneyOrganizationSummary } from "./response/PrivateMoneyOrganizationSummary"; import { OrganizationSummary } from "./response/OrganizationSummary"; import { Product } from "./response/Product"; +import { ExternalTransactionDetail } from "./response/ExternalTransactionDetail"; import { ExternalTransaction } from "./response/ExternalTransaction"; import { Transfer } from "./response/Transfer"; import { AccountWithoutPrivateMoneyDetail } from "./response/AccountWithoutPrivateMoneyDetail"; @@ -56,6 +62,7 @@ import { CashtrayAttempt } from "./response/CashtrayAttempt"; import { CashtrayWithResult } from "./response/CashtrayWithResult"; import { Cashtray } from "./response/Cashtray"; import { CpmToken } from "./response/CpmToken"; +import { PaginatedChecks } from "./response/PaginatedChecks"; import { Check } from "./response/Check"; import { Bill } from "./response/Bill"; import { AccountBalance } from "./response/AccountBalance"; @@ -68,8 +75,17 @@ import { AdminUserWithShopsAndPrivateMoneys } from "./response/AdminUserWithShop import { Pagination } from "./response/Pagination"; import { Echo } from "./response/Echo"; import { Pong } from "./response/Pong"; +import { UpdateCoupon } from "./request/UpdateCoupon"; 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 { 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 { CreateWebhook } from "./request/CreateWebhook"; @@ -94,6 +110,7 @@ import { CreateShopV2 } from "./request/CreateShopV2"; import { CreateShop } from "./request/CreateShop"; import { ListShops } from "./request/ListShops"; import { CreateOrganization } from "./request/CreateOrganization"; +import { ListOrganizations } from "./request/ListOrganizations"; import { ListTransfersV2 } from "./request/ListTransfersV2"; import { ListTransfers } from "./request/ListTransfers"; import { RefundExternalTransaction } from "./request/RefundExternalTransaction"; @@ -112,6 +129,9 @@ import { ListTransactionsV2 } from "./request/ListTransactionsV2"; import { CreateTransaction } from "./request/CreateTransaction"; 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 { UpdateBill } from "./request/UpdateBill"; import { CreateBill } from "./request/CreateBill"; @@ -132,7 +152,7 @@ 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, PaginatedCoupons, CouponDetail, Coupon, PaginatedOrganizationWorkerTaskWebhook, OrganizationWorkerTaskWebhook, AccountTransferSummary, AccountTransferSummaryElement, PaginatedCampaigns, Campaign, PaginatedPrivateMoneys, PaginatedBills, PaginatedShops, PaginatedAccountBalance, PaginatedAccountDetails, PaginatedAccountWithUsers, PaginatedAccounts, PaginatedTransfersV2, PaginatedTransfers, PaginatedTransactionV2, PaginatedTransaction, UserStatsOperation, PrivateMoneySummary, PaginatedPrivateMoneyOrganizationSummaries, PrivateMoneyOrganizationSummary, OrganizationSummary, Product, ExternalTransaction, Transfer, AccountWithoutPrivateMoneyDetail, PaginatedBulkTransactionJob, BulkTransactionJob, BulkTransaction, ShopWithAccounts, ShopWithMetadata, TransactionDetail, Transaction, Organization, PrivateMoney, User, CashtrayAttempt, CashtrayWithResult, Cashtray, CpmToken, Check, Bill, AccountBalance, AccountDeleted, ShopAccount, AccountDetail, AccountWithUser, Account, AdminUserWithShopsAndPrivateMoneys, Pagination, Echo, Pong, GetCoupon, ListCoupons, UpdateWebhook, ListWebhooks, CreateWebhook, RequestUserStats, UpdateCampaign, GetCampaign, ListCampaigns, CreateCampaign, UpdateCashtray, CancelCashtray, GetCashtray, CreateCashtray, ListBulkTransactionJobs, GetBulkTransaction, ListCustomerTransactions, GetPrivateMoneySummary, GetPrivateMoneyOrganizationSummaries, GetPrivateMoneys, UpdateShop, GetShop, CreateShopV2, CreateShop, ListShops, CreateOrganization, ListTransfersV2, ListTransfers, RefundExternalTransaction, CreateExternalTransaction, GetTransactionByRequestId, RefundTransaction, GetTransaction, BulkCreateTransaction, CreateExchangeTransaction, CreateTransferTransaction, CreateCpmTransaction, CreatePaymentTransaction, CreateTopupTransactionWithCheck, CreateTopupTransaction, ListTransactionsV2, CreateTransaction, ListTransactions, GetCpmToken, 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, 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 }; async function example(): Promise { console.log(`Pokepay partner SDK ${VERSION} example.`); diff --git a/src/request/ActivateUserDevice.ts b/src/request/ActivateUserDevice.ts new file mode 100644 index 0000000..6646833 --- /dev/null +++ b/src/request/ActivateUserDevice.ts @@ -0,0 +1,20 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { UserDevice } from "../response/UserDevice"; + +class ActivateUserDevice implements Request { + public readonly __r: UserDevice | undefined; + public readonly method: Method = "POST"; + public readonly path: string; + public readonly bodyParams: {}; + public constructor(params: { + user_device_id: string + }) { + if (params.user_device_id === void 0) throw new Error('"user_device_id" is required'); + this.path = "/user-devices" + "/" + params.user_device_id + "/activate"; + this.bodyParams = {}; + } +} + +export { ActivateUserDevice }; diff --git a/src/request/CreateBank.ts b/src/request/CreateBank.ts new file mode 100644 index 0000000..83ffa83 --- /dev/null +++ b/src/request/CreateBank.ts @@ -0,0 +1,40 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { BankRegisteringInfo } from "../response/BankRegisteringInfo"; + +class CreateBank implements Request { + public readonly __r: BankRegisteringInfo | undefined; + public readonly method: Method = "POST"; + public readonly path: string; + public readonly bodyParams: { + private_money_id: string, + callback_url: string, + kana: string, + email?: string, + birthdate?: string + }; + public constructor(params: { + user_device_id: string, + private_money_id: string, + callback_url: string, + kana: string, + email?: string, + birthdate?: string + }) { + if (params.user_device_id === void 0) throw new Error('"user_device_id" is required'); + if (params.private_money_id === void 0) throw new Error('"private_money_id" is required'); + if (params.callback_url === void 0) throw new Error('"callback_url" is required'); + if (params.kana === void 0) throw new Error('"kana" is required'); + this.path = "/user-devices" + "/" + params.user_device_id + "/banks"; + this.bodyParams = { + private_money_id: params.private_money_id, + callback_url: params.callback_url, + kana: params.kana, + }; + if (params.email !== void 0) this.bodyParams.email = params.email; + if (params.birthdate !== void 0) this.bodyParams.birthdate = params.birthdate; + } +} + +export { CreateBank }; diff --git a/src/request/CreateBankTopupTransaction.ts b/src/request/CreateBankTopupTransaction.ts new file mode 100644 index 0000000..826e5bc --- /dev/null +++ b/src/request/CreateBankTopupTransaction.ts @@ -0,0 +1,38 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { TransactionDetail } from "../response/TransactionDetail"; + +class CreateBankTopupTransaction implements Request { + public readonly __r: TransactionDetail | undefined; + public readonly method: Method = "POST"; + public readonly path: string; + public readonly bodyParams: { + private_money_id: string, + amount: number, + bank_id: string, + request_id: string + }; + public constructor(params: { + user_device_id: string, + private_money_id: string, + amount: number, + bank_id: string, + request_id: string + }) { + if (params.user_device_id === void 0) throw new Error('"user_device_id" is required'); + if (params.private_money_id === void 0) throw new Error('"private_money_id" is required'); + if (params.amount === void 0) throw new Error('"amount" is required'); + if (params.bank_id === void 0) throw new Error('"bank_id" is required'); + if (params.request_id === void 0) throw new Error('"request_id" is required'); + this.path = "/user-devices" + "/" + params.user_device_id + "/banks" + "/topup"; + this.bodyParams = { + private_money_id: params.private_money_id, + amount: params.amount, + bank_id: params.bank_id, + request_id: params.request_id, + }; + } +} + +export { CreateBankTopupTransaction }; diff --git a/src/request/CreateCampaign.ts b/src/request/CreateCampaign.ts index 69dc40b..374e6ff 100644 --- a/src/request/CreateCampaign.ts +++ b/src/request/CreateCampaign.ts @@ -31,7 +31,8 @@ class CreateCampaign implements Request { max_point_amount?: number, max_total_point_amount?: number, dest_private_money_id?: string, - applicable_account_metadata?: Object + applicable_account_metadata?: Object, + budget_caps_amount?: number }; public constructor(params: { name: string, @@ -57,7 +58,8 @@ class CreateCampaign implements Request { max_point_amount?: number, max_total_point_amount?: number, dest_private_money_id?: string, - applicable_account_metadata?: Object + applicable_account_metadata?: Object, + budget_caps_amount?: number }) { if (params.name === void 0) throw new Error('"name" is required'); if (params.private_money_id === void 0) throw new Error('"private_money_id" is required'); @@ -92,6 +94,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.budget_caps_amount !== void 0) this.bodyParams.budget_caps_amount = params.budget_caps_amount; } } diff --git a/src/request/CreateCoupon.ts b/src/request/CreateCoupon.ts new file mode 100644 index 0000000..057f8bc --- /dev/null +++ b/src/request/CreateCoupon.ts @@ -0,0 +1,85 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { CouponDetail } from "../response/CouponDetail"; + +class CreateCoupon implements Request { + public readonly __r: CouponDetail | undefined; + public readonly method: Method = "POST"; + public readonly path: string; + public readonly bodyParams: { + private_money_id: string, + name: string, + description?: string, + discount_amount?: number, + discount_percentage?: number, + discount_upper_limit?: number, + starts_at: string, + ends_at: string, + display_starts_at?: string, + display_ends_at?: string, + is_disabled?: boolean, + is_hidden?: boolean, + is_public?: boolean, + code?: string, + usage_limit?: number, + min_amount?: number, + issued_shop_id: string, + is_shop_specified?: boolean, + available_shop_ids?: string[], + storage_id?: string + }; + public constructor(params: { + private_money_id: string, + name: string, + description?: string, + discount_amount?: number, + discount_percentage?: number, + discount_upper_limit?: number, + starts_at: string, + ends_at: string, + display_starts_at?: string, + display_ends_at?: string, + is_disabled?: boolean, + is_hidden?: boolean, + is_public?: boolean, + code?: string, + usage_limit?: number, + min_amount?: number, + issued_shop_id: string, + is_shop_specified?: boolean, + available_shop_ids?: string[], + storage_id?: string + }) { + if (params.private_money_id === void 0) throw new Error('"private_money_id" is required'); + if (params.name === void 0) throw new Error('"name" is required'); + if (params.starts_at === void 0) throw new Error('"starts_at" is required'); + if (params.ends_at === void 0) throw new Error('"ends_at" is required'); + if (params.issued_shop_id === void 0) throw new Error('"issued_shop_id" is required'); + this.path = "/coupons"; + this.bodyParams = { + private_money_id: params.private_money_id, + name: params.name, + starts_at: params.starts_at, + ends_at: params.ends_at, + issued_shop_id: params.issued_shop_id, + }; + if (params.description !== void 0) this.bodyParams.description = params.description; + if (params.discount_amount !== void 0) this.bodyParams.discount_amount = params.discount_amount; + if (params.discount_percentage !== void 0) this.bodyParams.discount_percentage = params.discount_percentage; + if (params.discount_upper_limit !== void 0) this.bodyParams.discount_upper_limit = params.discount_upper_limit; + if (params.display_starts_at !== void 0) this.bodyParams.display_starts_at = params.display_starts_at; + if (params.display_ends_at !== void 0) this.bodyParams.display_ends_at = params.display_ends_at; + if (params.is_disabled !== void 0) this.bodyParams.is_disabled = params.is_disabled; + if (params.is_hidden !== void 0) this.bodyParams.is_hidden = params.is_hidden; + if (params.is_public !== void 0) this.bodyParams.is_public = params.is_public; + if (params.code !== void 0) this.bodyParams.code = params.code; + if (params.usage_limit !== void 0) this.bodyParams.usage_limit = params.usage_limit; + if (params.min_amount !== void 0) this.bodyParams.min_amount = params.min_amount; + if (params.is_shop_specified !== void 0) this.bodyParams.is_shop_specified = params.is_shop_specified; + if (params.available_shop_ids !== void 0) this.bodyParams.available_shop_ids = params.available_shop_ids; + if (params.storage_id !== void 0) this.bodyParams.storage_id = params.storage_id; + } +} + +export { CreateCoupon }; diff --git a/src/request/CreateExternalTransaction.ts b/src/request/CreateExternalTransaction.ts index b3c6a58..7e0f706 100644 --- a/src/request/CreateExternalTransaction.ts +++ b/src/request/CreateExternalTransaction.ts @@ -1,10 +1,10 @@ // DO NOT EDIT: File is generated by code generator. import { Request, Method } from "./Request"; -import { ExternalTransaction } from "../response/ExternalTransaction"; +import { ExternalTransactionDetail } from "../response/ExternalTransactionDetail"; -class CreateExternalTransaction implements Request { - public readonly __r: ExternalTransaction | undefined; +class CreateExternalTransaction implements Request { + public readonly __r: ExternalTransactionDetail | undefined; public readonly method: Method = "POST"; public readonly path: string; public readonly bodyParams: { diff --git a/src/request/CreateUserDevice.ts b/src/request/CreateUserDevice.ts new file mode 100644 index 0000000..0abea90 --- /dev/null +++ b/src/request/CreateUserDevice.ts @@ -0,0 +1,27 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { UserDevice } from "../response/UserDevice"; + +class CreateUserDevice implements Request { + public readonly __r: UserDevice | undefined; + public readonly method: Method = "POST"; + public readonly path: string; + public readonly bodyParams: { + user_id: string, + metadata?: string + }; + public constructor(params: { + user_id: string, + metadata?: string + }) { + if (params.user_id === void 0) throw new Error('"user_id" is required'); + this.path = "/user-devices"; + this.bodyParams = { + user_id: params.user_id, + }; + if (params.metadata !== void 0) this.bodyParams.metadata = params.metadata; + } +} + +export { CreateUserDevice }; diff --git a/src/request/DeleteWebhook.ts b/src/request/DeleteWebhook.ts new file mode 100644 index 0000000..139e867 --- /dev/null +++ b/src/request/DeleteWebhook.ts @@ -0,0 +1,20 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { OrganizationWorkerTaskWebhook } from "../response/OrganizationWorkerTaskWebhook"; + +class DeleteWebhook implements Request { + public readonly __r: OrganizationWorkerTaskWebhook | undefined; + public readonly method: Method = "DELETE"; + public readonly path: string; + public readonly bodyParams: {}; + public constructor(params: { + webhook_id: string + }) { + if (params.webhook_id === void 0) throw new Error('"webhook_id" is required'); + this.path = "/webhooks" + "/" + params.webhook_id; + this.bodyParams = {}; + } +} + +export { DeleteWebhook }; diff --git a/src/request/GetCheck.ts b/src/request/GetCheck.ts new file mode 100644 index 0000000..937b882 --- /dev/null +++ b/src/request/GetCheck.ts @@ -0,0 +1,20 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { Check } from "../response/Check"; + +class GetCheck implements Request { + public readonly __r: Check | undefined; + public readonly method: Method = "GET"; + public readonly path: string; + public readonly bodyParams: {}; + public constructor(params: { + check_id: string + }) { + if (params.check_id === void 0) throw new Error('"check_id" is required'); + this.path = "/checks" + "/" + params.check_id; + this.bodyParams = {}; + } +} + +export { GetCheck }; diff --git a/src/request/GetUserDevice.ts b/src/request/GetUserDevice.ts new file mode 100644 index 0000000..d02ad0c --- /dev/null +++ b/src/request/GetUserDevice.ts @@ -0,0 +1,20 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { UserDevice } from "../response/UserDevice"; + +class GetUserDevice implements Request { + public readonly __r: UserDevice | undefined; + public readonly method: Method = "GET"; + public readonly path: string; + public readonly bodyParams: {}; + public constructor(params: { + user_device_id: string + }) { + if (params.user_device_id === void 0) throw new Error('"user_device_id" is required'); + this.path = "/user-devices" + "/" + params.user_device_id; + this.bodyParams = {}; + } +} + +export { GetUserDevice }; diff --git a/src/request/ListBanks.ts b/src/request/ListBanks.ts new file mode 100644 index 0000000..9ec94a7 --- /dev/null +++ b/src/request/ListBanks.ts @@ -0,0 +1,24 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { Banks } from "../response/Banks"; + +class ListBanks implements Request { + public readonly __r: Banks | undefined; + public readonly method: Method = "GET"; + public readonly path: string; + public readonly bodyParams: { + private_money_id?: string + }; + public constructor(params: { + user_device_id: string, + private_money_id?: string + }) { + if (params.user_device_id === void 0) throw new Error('"user_device_id" is required'); + this.path = "/user-devices" + "/" + params.user_device_id + "/banks"; + this.bodyParams = {}; + if (params.private_money_id !== void 0) this.bodyParams.private_money_id = params.private_money_id; + } +} + +export { ListBanks }; diff --git a/src/request/ListChecks.ts b/src/request/ListChecks.ts new file mode 100644 index 0000000..09ade03 --- /dev/null +++ b/src/request/ListChecks.ts @@ -0,0 +1,56 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { PaginatedChecks } from "../response/PaginatedChecks"; + +class ListChecks implements Request { + public readonly __r: PaginatedChecks | undefined; + public readonly method: Method = "GET"; + public readonly path: string; + public readonly bodyParams: { + page?: number, + per_page?: number, + private_money_id?: string, + organization_code?: string, + expires_from?: string, + expires_to?: string, + created_from?: string, + created_to?: string, + issuer_shop_id?: string, + description?: string, + is_onetime?: boolean, + is_disabled?: boolean + }; + public constructor(params?: { + page?: number, + per_page?: number, + private_money_id?: string, + organization_code?: string, + expires_from?: string, + expires_to?: string, + created_from?: string, + created_to?: string, + issuer_shop_id?: string, + description?: string, + is_onetime?: boolean, + is_disabled?: boolean + }) { + this.path = "/checks"; + this.bodyParams = {}; + if (params === void 0) return; + if (params.page !== void 0) this.bodyParams.page = params.page; + if (params.per_page !== void 0) this.bodyParams.per_page = params.per_page; + if (params.private_money_id !== void 0) this.bodyParams.private_money_id = params.private_money_id; + if (params.organization_code !== void 0) this.bodyParams.organization_code = params.organization_code; + if (params.expires_from !== void 0) this.bodyParams.expires_from = params.expires_from; + if (params.expires_to !== void 0) this.bodyParams.expires_to = params.expires_to; + if (params.created_from !== void 0) this.bodyParams.created_from = params.created_from; + if (params.created_to !== void 0) this.bodyParams.created_to = params.created_to; + if (params.issuer_shop_id !== void 0) this.bodyParams.issuer_shop_id = params.issuer_shop_id; + if (params.description !== void 0) this.bodyParams.description = params.description; + if (params.is_onetime !== void 0) this.bodyParams.is_onetime = params.is_onetime; + if (params.is_disabled !== void 0) this.bodyParams.is_disabled = params.is_disabled; + } +} + +export { ListChecks }; diff --git a/src/request/ListOrganizations.ts b/src/request/ListOrganizations.ts new file mode 100644 index 0000000..d552f6d --- /dev/null +++ b/src/request/ListOrganizations.ts @@ -0,0 +1,36 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { PaginatedOrganizations } from "../response/PaginatedOrganizations"; + +class ListOrganizations implements Request { + public readonly __r: PaginatedOrganizations | undefined; + public readonly method: Method = "GET"; + public readonly path: string; + public readonly bodyParams: { + private_money_id: string, + page?: number, + per_page?: number, + name?: string, + code?: string + }; + public constructor(params: { + private_money_id: string, + page?: number, + per_page?: number, + name?: string, + code?: string + }) { + if (params.private_money_id === void 0) throw new Error('"private_money_id" is required'); + this.path = "/organizations"; + this.bodyParams = { + private_money_id: params.private_money_id, + }; + if (params.page !== void 0) this.bodyParams.page = params.page; + if (params.per_page !== void 0) this.bodyParams.per_page = params.per_page; + if (params.name !== void 0) this.bodyParams.name = params.name; + if (params.code !== void 0) this.bodyParams.code = params.code; + } +} + +export { ListOrganizations }; diff --git a/src/request/RefundExternalTransaction.ts b/src/request/RefundExternalTransaction.ts index 80fe477..09b0008 100644 --- a/src/request/RefundExternalTransaction.ts +++ b/src/request/RefundExternalTransaction.ts @@ -1,10 +1,10 @@ // DO NOT EDIT: File is generated by code generator. import { Request, Method } from "./Request"; -import { ExternalTransaction } from "../response/ExternalTransaction"; +import { ExternalTransactionDetail } from "../response/ExternalTransactionDetail"; -class RefundExternalTransaction implements Request { - public readonly __r: ExternalTransaction | undefined; +class RefundExternalTransaction implements Request { + public readonly __r: ExternalTransactionDetail | undefined; public readonly method: Method = "POST"; public readonly path: string; public readonly bodyParams: { diff --git a/src/request/UpdateCampaign.ts b/src/request/UpdateCampaign.ts index 808469f..67f5858 100644 --- a/src/request/UpdateCampaign.ts +++ b/src/request/UpdateCampaign.ts @@ -28,7 +28,8 @@ class UpdateCampaign implements Request { exist_in_each_product_groups?: boolean, max_point_amount?: number, max_total_point_amount?: number, - applicable_account_metadata?: Object + applicable_account_metadata?: Object, + budget_caps_amount?: number }; public constructor(params: { campaign_id: string, @@ -52,7 +53,8 @@ class UpdateCampaign implements Request { exist_in_each_product_groups?: boolean, max_point_amount?: number, max_total_point_amount?: number, - applicable_account_metadata?: Object + applicable_account_metadata?: Object, + budget_caps_amount?: number }) { if (params.campaign_id === void 0) throw new Error('"campaign_id" is required'); this.path = "/campaigns" + "/" + params.campaign_id; @@ -78,6 +80,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.budget_caps_amount !== void 0) this.bodyParams.budget_caps_amount = params.budget_caps_amount; } } diff --git a/src/request/UpdateCheck.ts b/src/request/UpdateCheck.ts new file mode 100644 index 0000000..8e55240 --- /dev/null +++ b/src/request/UpdateCheck.ts @@ -0,0 +1,51 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { Check } from "../response/Check"; + +class UpdateCheck implements Request { + public readonly __r: Check | undefined; + public readonly method: Method = "PATCH"; + public readonly path: string; + public readonly bodyParams: { + money_amount?: number, + point_amount?: number, + description?: string, + is_onetime?: boolean, + usage_limit?: number, + expires_at?: string, + point_expires_at?: string, + point_expires_in_days?: number, + bear_point_account?: string, + is_disabled?: boolean + }; + public constructor(params: { + check_id: string, + money_amount?: number, + point_amount?: number, + description?: string, + is_onetime?: boolean, + usage_limit?: number, + expires_at?: string, + point_expires_at?: string, + point_expires_in_days?: number, + bear_point_account?: string, + is_disabled?: boolean + }) { + if (params.check_id === void 0) throw new Error('"check_id" is required'); + this.path = "/checks" + "/" + params.check_id; + this.bodyParams = {}; + if (params.money_amount !== void 0) this.bodyParams.money_amount = params.money_amount; + if (params.point_amount !== void 0) this.bodyParams.point_amount = params.point_amount; + if (params.description !== void 0) this.bodyParams.description = params.description; + if (params.is_onetime !== void 0) this.bodyParams.is_onetime = params.is_onetime; + if (params.usage_limit !== void 0) this.bodyParams.usage_limit = params.usage_limit; + if (params.expires_at !== void 0) this.bodyParams.expires_at = params.expires_at; + if (params.point_expires_at !== void 0) this.bodyParams.point_expires_at = params.point_expires_at; + if (params.point_expires_in_days !== void 0) this.bodyParams.point_expires_in_days = params.point_expires_in_days; + if (params.bear_point_account !== void 0) this.bodyParams.bear_point_account = params.bear_point_account; + if (params.is_disabled !== void 0) this.bodyParams.is_disabled = params.is_disabled; + } +} + +export { UpdateCheck }; diff --git a/src/request/UpdateCoupon.ts b/src/request/UpdateCoupon.ts new file mode 100644 index 0000000..0f0e37c --- /dev/null +++ b/src/request/UpdateCoupon.ts @@ -0,0 +1,75 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Request, Method } from "./Request"; +import { CouponDetail } from "../response/CouponDetail"; + +class UpdateCoupon implements Request { + public readonly __r: CouponDetail | undefined; + public readonly method: Method = "PATCH"; + public readonly path: string; + public readonly bodyParams: { + name?: string, + description?: string, + discount_amount?: number, + discount_percentage?: number, + discount_upper_limit?: number, + starts_at?: string, + ends_at?: string, + display_starts_at?: string, + display_ends_at?: string, + is_disabled?: boolean, + is_hidden?: boolean, + is_public?: boolean, + code?: string, + usage_limit?: number, + min_amount?: number, + is_shop_specified?: boolean, + available_shop_ids?: string[], + storage_id?: string + }; + public constructor(params: { + coupon_id: string, + name?: string, + description?: string, + discount_amount?: number, + discount_percentage?: number, + discount_upper_limit?: number, + starts_at?: string, + ends_at?: string, + display_starts_at?: string, + display_ends_at?: string, + is_disabled?: boolean, + is_hidden?: boolean, + is_public?: boolean, + code?: string, + usage_limit?: number, + min_amount?: number, + is_shop_specified?: boolean, + available_shop_ids?: string[], + storage_id?: string + }) { + if (params.coupon_id === void 0) throw new Error('"coupon_id" is required'); + this.path = "/coupons" + "/" + params.coupon_id; + this.bodyParams = {}; + if (params.name !== void 0) this.bodyParams.name = params.name; + if (params.description !== void 0) this.bodyParams.description = params.description; + if (params.discount_amount !== void 0) this.bodyParams.discount_amount = params.discount_amount; + if (params.discount_percentage !== void 0) this.bodyParams.discount_percentage = params.discount_percentage; + if (params.discount_upper_limit !== void 0) this.bodyParams.discount_upper_limit = params.discount_upper_limit; + if (params.starts_at !== void 0) this.bodyParams.starts_at = params.starts_at; + if (params.ends_at !== void 0) this.bodyParams.ends_at = params.ends_at; + if (params.display_starts_at !== void 0) this.bodyParams.display_starts_at = params.display_starts_at; + if (params.display_ends_at !== void 0) this.bodyParams.display_ends_at = params.display_ends_at; + if (params.is_disabled !== void 0) this.bodyParams.is_disabled = params.is_disabled; + if (params.is_hidden !== void 0) this.bodyParams.is_hidden = params.is_hidden; + if (params.is_public !== void 0) this.bodyParams.is_public = params.is_public; + if (params.code !== void 0) this.bodyParams.code = params.code; + if (params.usage_limit !== void 0) this.bodyParams.usage_limit = params.usage_limit; + if (params.min_amount !== void 0) this.bodyParams.min_amount = params.min_amount; + if (params.is_shop_specified !== void 0) this.bodyParams.is_shop_specified = params.is_shop_specified; + if (params.available_shop_ids !== void 0) this.bodyParams.available_shop_ids = params.available_shop_ids; + if (params.storage_id !== void 0) this.bodyParams.storage_id = params.storage_id; + } +} + +export { UpdateCoupon }; diff --git a/src/response/Bank.ts b/src/response/Bank.ts new file mode 100644 index 0000000..b05dacf --- /dev/null +++ b/src/response/Bank.ts @@ -0,0 +1,17 @@ +// DO NOT EDIT: File is generated by code generator. + +import { PrivateMoney } from "./PrivateMoney"; + +interface Bank { + readonly id: string; + readonly private_money: PrivateMoney; + readonly bank_name: string; + readonly bank_code: string; + readonly branch_number: string; + readonly branch_name: string; + readonly deposit_type: string; + readonly masked_account_number: string; + readonly account_name: string; +} + +export { Bank }; diff --git a/src/response/BankRegisteringInfo.ts b/src/response/BankRegisteringInfo.ts new file mode 100644 index 0000000..e956a44 --- /dev/null +++ b/src/response/BankRegisteringInfo.ts @@ -0,0 +1,8 @@ +// DO NOT EDIT: File is generated by code generator. + +interface BankRegisteringInfo { + readonly redirect_url: string; + readonly paytree_customer_number?: string; +} + +export { BankRegisteringInfo }; diff --git a/src/response/Banks.ts b/src/response/Banks.ts new file mode 100644 index 0000000..67b7afa --- /dev/null +++ b/src/response/Banks.ts @@ -0,0 +1,10 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Bank } from "./Bank"; + +interface Banks { + readonly rows: Bank[]; + readonly count: number; +} + +export { Banks }; diff --git a/src/response/Campaign.ts b/src/response/Campaign.ts index 2755894..e98fc9d 100644 --- a/src/response/Campaign.ts +++ b/src/response/Campaign.ts @@ -1,5 +1,6 @@ // DO NOT EDIT: File is generated by code generator. +import { User } from "./User"; import { User } from "./User"; import { PrivateMoney } from "./PrivateMoney"; @@ -21,6 +22,9 @@ interface Campaign { readonly point_calculation_rule: string; readonly point_calculation_rule_object: string; readonly status: string; + readonly budget_caps_amount?: number; + readonly budget_current_amount?: number; + readonly budget_current_time?: string; } export { Campaign }; diff --git a/src/response/Check.ts b/src/response/Check.ts index d7351b2..46e078c 100644 --- a/src/response/Check.ts +++ b/src/response/Check.ts @@ -14,6 +14,7 @@ interface Check { readonly is_onetime: boolean; readonly is_disabled: boolean; readonly expires_at: string; + readonly last_used_at?: string; readonly private_money: PrivateMoney; readonly usage_limit?: number; readonly usage_count?: number; diff --git a/src/response/CouponDetail.ts b/src/response/CouponDetail.ts index d65d08f..32b4dc3 100644 --- a/src/response/CouponDetail.ts +++ b/src/response/CouponDetail.ts @@ -1,5 +1,6 @@ // DO NOT EDIT: File is generated by code generator. +import { User } from "./User"; import { User } from "./User"; import { PrivateMoney } from "./PrivateMoney"; diff --git a/src/response/ExternalTransactionDetail.ts b/src/response/ExternalTransactionDetail.ts new file mode 100644 index 0000000..6fe87e6 --- /dev/null +++ b/src/response/ExternalTransactionDetail.ts @@ -0,0 +1,20 @@ +// DO NOT EDIT: File is generated by code generator. + +import { User } from "./User"; +import { Account } from "./Account"; +import { TransactionDetail } from "./TransactionDetail"; + +interface ExternalTransactionDetail { + readonly id: string; + readonly is_modified: boolean; + readonly sender: User; + readonly sender_account: Account; + readonly receiver: User; + readonly receiver_account: Account; + readonly amount: number; + readonly done_at: string; + readonly description: string; + readonly transaction?: TransactionDetail; +} + +export { ExternalTransactionDetail }; diff --git a/src/response/OrganizationSummary.ts b/src/response/OrganizationSummary.ts index f1b786c..dd04582 100644 --- a/src/response/OrganizationSummary.ts +++ b/src/response/OrganizationSummary.ts @@ -5,6 +5,8 @@ interface OrganizationSummary { readonly money_amount: number; readonly money_count: number; readonly point_amount: number; + readonly raw_point_amount: number; + readonly campaign_point_amount: number; readonly point_count: number; } diff --git a/src/response/PaginatedChecks.ts b/src/response/PaginatedChecks.ts new file mode 100644 index 0000000..5e3e165 --- /dev/null +++ b/src/response/PaginatedChecks.ts @@ -0,0 +1,12 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Check } from "./Check"; +import { Pagination } from "./Pagination"; + +interface PaginatedChecks { + readonly rows: Check[]; + readonly count: number; + readonly pagination: Pagination; +} + +export { PaginatedChecks }; diff --git a/src/response/PaginatedOrganizations.ts b/src/response/PaginatedOrganizations.ts new file mode 100644 index 0000000..b77c9c7 --- /dev/null +++ b/src/response/PaginatedOrganizations.ts @@ -0,0 +1,12 @@ +// DO NOT EDIT: File is generated by code generator. + +import { Organization } from "./Organization"; +import { Pagination } from "./Pagination"; + +interface PaginatedOrganizations { + readonly rows: Organization[]; + readonly count: number; + readonly pagination: Pagination; +} + +export { PaginatedOrganizations }; diff --git a/src/response/PrivateMoneySummary.ts b/src/response/PrivateMoneySummary.ts index 2e1d505..82374d9 100644 --- a/src/response/PrivateMoneySummary.ts +++ b/src/response/PrivateMoneySummary.ts @@ -6,6 +6,8 @@ interface PrivateMoneySummary { readonly payment_amount: number; readonly refunded_payment_amount: number; readonly added_point_amount: number; + readonly topup_point_amount: number; + readonly campaign_point_amount: number; readonly refunded_added_point_amount: number; readonly exchange_inflow_amount: number; readonly exchange_outflow_amount: number; diff --git a/src/response/Transaction.ts b/src/response/Transaction.ts index 3744a8b..ad4daeb 100644 --- a/src/response/Transaction.ts +++ b/src/response/Transaction.ts @@ -14,8 +14,8 @@ interface Transaction { readonly amount: number; readonly money_amount: number; readonly point_amount: number; - readonly raw_point_amount: number; - readonly campaign_point_amount: number; + readonly raw_point_amount?: number; + readonly campaign_point_amount?: number; readonly done_at: string; readonly description: string; } diff --git a/src/response/UserDevice.ts b/src/response/UserDevice.ts new file mode 100644 index 0000000..0891f02 --- /dev/null +++ b/src/response/UserDevice.ts @@ -0,0 +1,12 @@ +// DO NOT EDIT: File is generated by code generator. + +import { User } from "./User"; + +interface UserDevice { + readonly id: string; + readonly user: User; + readonly is_active: boolean; + readonly metadata: string; +} + +export { UserDevice }; diff --git a/src/test/create_organization_test.test.ts b/src/test/create_organization_test.test.ts new file mode 100644 index 0000000..57b8ab9 --- /dev/null +++ b/src/test/create_organization_test.test.ts @@ -0,0 +1,70 @@ +// DO NOT EDIT: File is generated by code generator. + +import { + Client, + VERSION, + Request, + Method, + Response, + CreateOrganization, + Organization, + UpdateWebhook, + CreateWebhook, + OrganizationWorkerTaskWebhook, + DeleteWebhook, + ListWebhooks, + PaginatedOrganizationWorkerTaskWebhook, +} from '../index'; + +import * as util from './util'; + +const client = new Client("~/.pokepay/test-config.ini"); + +test('testCreateOrganization', async () => { + const code: string = "test-org" + util.randomString(6); + const name: string = "テスト組織" + util.randomString(4); + const private_money_ids: string[] = ["4b138a4c-8944-4f98-a5c4-96d3c1c415eb"]; + const issuer_admin_user_email: string = util.randomString(6) + "@pokepay-tests.jp"; + const member_admin_user_email: string = util.randomString(6) + "@pokepay-tests.jp"; + const response: Organization = (await client.send(new CreateOrganization({ + code: code, + name: name, + private_money_ids: private_money_ids, + issuer_admin_user_email: issuer_admin_user_email, + member_admin_user_email: member_admin_user_email, + }))).object; + expect(code).toBe(response.code); + expect(name).toBe(response.name); +}) +test('testCreateOrganizationWithMetadata', async () => { + const code: string = "test-org" + util.randomString(6); + const name: string = "テスト組織" + util.randomString(4); + const private_money_ids: string[] = ["4b138a4c-8944-4f98-a5c4-96d3c1c415eb"]; + const issuer_admin_user_email: string = util.randomString(6) + "@pokepay-tests.jp"; + const member_admin_user_email: string = util.randomString(6) + "@pokepay-tests.jp"; + const bank_code: string = "1234"; + const bank_name: string = util.randomString(4) + "銀行"; + const bank_branch_code: string = "123"; + const bank_branch_name: string = util.randomString(4) + "支店"; + const bank_account_type: string = "saving"; + const bank_account: string = "1234567"; + const bank_account_holder_name: string = "フクザワユキチ"; + const contact_name: string = "佐藤清"; + const response: Organization = (await client.send(new CreateOrganization({ + code: code, + name: name, + private_money_ids: private_money_ids, + issuer_admin_user_email: issuer_admin_user_email, + member_admin_user_email: member_admin_user_email, + + "bank_code": bank_code, + "bank_name": bank_name, + "bank_branch_code": bank_branch_code, + "bank_branch_name": bank_branch_name, + "bank_account_type": bank_account_type, + "bank_account": bank_account, + "bank_account_holder_name": bank_account_holder_name, + "contact_name": contact_name,}))).object; + expect(code).toBe(response.code); + expect(name).toBe(response.name); +}) diff --git a/src/test/list_organizations.test.ts b/src/test/list_organizations.test.ts new file mode 100644 index 0000000..b5e20e8 --- /dev/null +++ b/src/test/list_organizations.test.ts @@ -0,0 +1,39 @@ +// DO NOT EDIT: File is generated by code generator. + +import { + Client, + VERSION, + Request, + Method, + Response, + ListOrganizations, + PaginatedOrganizations, + SendEcho, + Echo, + CreateOrganization, + Organization, + UpdateWebhook, + CreateWebhook, + OrganizationWorkerTaskWebhook, + DeleteWebhook, + ListWebhooks, + PaginatedOrganizationWorkerTaskWebhook, +} from '../index'; + +import * as util from './util'; + +const client = new Client("~/.pokepay/test-config.ini"); + +test('simple', async () => { + const response: PaginatedOrganizations = (await client.send(new ListOrganizations({ + private_money_id: "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + }))).object; + console.log(response); +}) +test('paging', async () => { + const response: PaginatedOrganizations = (await client.send(new ListOrganizations({ + private_money_id: "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + + "per_page": 3,}))).object; + expect(3).toBe(response.pagination.per_page); +}) diff --git a/src/test/send_echo_test.test.ts b/src/test/send_echo_test.test.ts new file mode 100644 index 0000000..7cd7cf3 --- /dev/null +++ b/src/test/send_echo_test.test.ts @@ -0,0 +1,31 @@ +// DO NOT EDIT: File is generated by code generator. + +import { + Client, + VERSION, + Request, + Method, + Response, + SendEcho, + Echo, + CreateOrganization, + Organization, + UpdateWebhook, + CreateWebhook, + OrganizationWorkerTaskWebhook, + DeleteWebhook, + ListWebhooks, + PaginatedOrganizationWorkerTaskWebhook, +} from '../index'; + +import * as util from './util'; + +const client = new Client("~/.pokepay/test-config.ini"); + +test('simpleTest', async () => { + const response: Echo = (await client.send(new SendEcho({ + message: "Hello", + }))).object; + expect("ok").toBe(response.status); + expect("Hello").toBe(response.message); +}) diff --git a/src/test/webhook_tests.test.ts b/src/test/webhook_tests.test.ts new file mode 100644 index 0000000..16d8434 --- /dev/null +++ b/src/test/webhook_tests.test.ts @@ -0,0 +1,60 @@ +// DO NOT EDIT: File is generated by code generator. + +import { + Client, + VERSION, + Request, + Method, + Response, + UpdateWebhook, + CreateWebhook, + OrganizationWorkerTaskWebhook, + DeleteWebhook, + ListWebhooks, + PaginatedOrganizationWorkerTaskWebhook, +} from '../index'; + +import * as util from './util'; + +const client = new Client("~/.pokepay/test-config.ini"); + +test('test0', async () => { + const list: PaginatedOrganizationWorkerTaskWebhook = (await client.send(new ListWebhooks())).object; + for (let row of list.rows) { + (await client.send(new DeleteWebhook({ + webhook_id: row.id, + }))).object; + } + const webhook1: OrganizationWorkerTaskWebhook = (await client.send(new CreateWebhook({ + task: "bulk_shops", + url: "http://localhost/bulk_shops", + }))).object; + expect("coilinc").toBe(webhook1.organization_code); + expect("bulk_shops").toBe(webhook1.task); + expect("http://localhost/bulk_shops").toBe(webhook1.url); + expect(true).toBe(webhook1.is_active); + expect("application/json").toBe(webhook1.content_type); + const webhook2: OrganizationWorkerTaskWebhook = (await client.send(new CreateWebhook({ + task: "process_user_stats_operation", + url: "http://localhost/process_user_stats_operation", + }))).object; + expect("coilinc").toBe(webhook2.organization_code); + expect("process_user_stats_operation").toBe(webhook2.task); + expect("http://localhost/process_user_stats_operation").toBe(webhook2.url); + expect(true).toBe(webhook2.is_active); + expect("application/json").toBe(webhook2.content_type); + const list2: PaginatedOrganizationWorkerTaskWebhook = (await client.send(new ListWebhooks())).object; + expect(2).toBe(list2.count); + expect(webhook2.id).toBe(list2.rows[0].id); + expect(webhook1.id).toBe(list2.rows[1].id); + const update_response: OrganizationWorkerTaskWebhook = (await client.send(new UpdateWebhook({ + webhook_id: webhook1.id, + + "is_active": false,}))).object; + expect(webhook1.id).toBe(update_response.id); + expect(webhook1.organization_code).toBe(update_response.organization_code); + expect(webhook1.task).toBe(update_response.task); + expect(webhook1.url).toBe(update_response.url); + expect(webhook1.content_type).toBe(update_response.content_type); + expect(false).toBe(update_response.is_active); +})