From 0cc98301bc1f9bf4798cf57d0527995f37978549 Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Thu, 7 Mar 2024 12:40:07 +0000 Subject: [PATCH 1/3] generate --- docs/README.md | 285 ++ docs/account.md | 157 + docs/bank_pay.md | 232 ++ docs/bill.md | 346 ++ docs/bulk.md | 111 + docs/campaign.md | 1579 ++++++++ docs/cashtray.md | 307 ++ docs/check.md | 675 ++++ docs/coupon.md | 703 ++++ docs/customer.md | 1001 +++++ docs/event.md | 222 + docs/organization.md | 273 ++ docs/private_money.md | 204 + docs/responses.md | 728 ++++ docs/shop.md | 645 +++ docs/transaction.md | 1707 ++++++++ docs/transfer.md | 673 ++++ docs/user.md | 23 + docs/user_device.md | 125 + docs/webhook.md | 216 + partner.yaml | 107 + src/index.test.ts | 5803 +++++++++++++++------------ src/request/CreateCampaign.ts | 9 + src/request/UpdateCampaign.ts | 9 + src/test/list_organizations.test.ts | 2 - src/test/send_echo_test.test.ts | 2 + 26 files changed, 13587 insertions(+), 2557 deletions(-) create mode 100644 docs/README.md create mode 100644 docs/account.md create mode 100644 docs/bank_pay.md create mode 100644 docs/bill.md create mode 100644 docs/bulk.md create mode 100644 docs/campaign.md create mode 100644 docs/cashtray.md create mode 100644 docs/check.md create mode 100644 docs/coupon.md create mode 100644 docs/customer.md create mode 100644 docs/event.md create mode 100644 docs/organization.md create mode 100644 docs/private_money.md create mode 100644 docs/responses.md create mode 100644 docs/shop.md create mode 100644 docs/transaction.md create mode 100644 docs/transfer.md create mode 100644 docs/user.md create mode 100644 docs/user_device.md create mode 100644 docs/webhook.md diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..34a9930 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,285 @@ +# Partner API SDK for NodeJS +## Installation + +npmからインストールすることができます。 +``` +$ npm install --save pokepay-partner-sdk +``` + +プロジェクトにて、以下のようにロードできます。 + +```typescript +import ppsdk from "pokepay-partner-sdk"; +// もしくは +import { Client, SendEcho } from "pokepay-partner-sdk"; +``` + +## Getting started + +基本的な使い方は次のようになります。 + +- ライブラリをロード +- 設定ファイル(後述)から `Client` オブジェクトを作る +- リクエストオブジェクトを作り、`Client` オブジェクトの `send` メソッドに対して渡す +- レスポンスオブジェクトを得る + +```typescript +import { Client, SendEcho } from "pokepay-partner-sdk"; +const client = new Client("/path/to/config.ini"); +const request = new SendEcho({ message: 'hello' }); +const response = await client.send(request); +``` + +レスポンスオブジェクト内にステータスコード、JSONをパースしたハッシュマップ、さらにレスポンス内容のオブジェクトが含まれています。 + +## Settings + +設定はINIファイルに記述し、`Client` のコンストラクタにファイルパスを指定します。 + +SDKプロジェクトルートに `config.ini.sample` というファイルがありますのでそれを元に必要な情報を記述してください。特に以下の情報は通信の安全性のため必要な項目です。これらはパートナー契約時にお渡ししているものです。 + +- `CLIENT_ID`: パートナーAPI クライアントID +- `CLIENT_SECRET`: パートナーAPI クライアント秘密鍵 +- `SSL_KEY_FILE`: SSL秘密鍵ファイルパス +- `SSL_CERT_FILE`: SSL証明書ファイルパス + +この他に接続先のサーバURL情報が必要です。 + +- `API_BASE_URL`: パートナーAPI サーバURL + +また、この設定ファイルには認証に必要な情報が含まれるため、ファイルの管理・取り扱いに十分注意してください。 + +設定ファイル記述例(`config.ini.sample`) + +``` +CLIENT_ID = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx +CLIENT_SECRET = yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy +API_BASE_URL = https://partnerapi-sandbox.pokepay.jp +SSL_KEY_FILE = /path/to/key.pem +SSL_CERT_FILE = /path/to/cert.pem +``` + +## Overview + +### APIリクエスト + +Partner APIへの通信はリクエストオブジェクトを作り、`Client.send` メソッドに渡すことで行われます。 +また `Client.send` は `async function` で `Promise` を返します。`await` することができます。 +たとえば `SendEcho` は送信した内容をそのまま返す処理です。 + +```typescript +const request = new SendEcho({ message: 'hello' }); +const response = await client.send(request); +# => Response 200 OK +``` + +通信の結果として、レスポンスオブジェクトが得られます。 +これはステータスコードとレスポンスボディ、各レスポンスクラスのオブジェクトをインスタンス変数に持つオブジェクトです。 + +```typescript +response.code +# => 200 + +response.body +# => { + response_data: 'T7hZYdaXYRC0oC8oRrowte89690bYL3Ly05V-IiSzTCslQG-TH0e1i9QYNTySwVS9hiTD6u2---xojelG-66rA', + timestamp: '2021-07-20T02:03:07.835Z', + partner_call_id: '7cd52e4a-b9a2-48e4-b921-80dcbc6b7f4c' +} + +response.object +# => { status: 'ok', message: 'hello' } + +response.object.message +# => 'hello' +``` + +利用可能なAPI操作については [API Operations](#api-operations) で紹介します。 + + +### ページング + +API操作によっては、大量のデータがある場合に備えてページング処理があります。 +その処理では以下のようなプロパティを持つレスポンスオブジェクトを返します。 + +- rows : 列挙するレスポンスクラスのオブジェクトの配列 +- count : 全体の要素数 +- pagination : 以下のインスタンス変数を持つオブジェクト + - current : 現在のページ位置(1からスタート) + - per_page : 1ページ当たりの要素数 + - max_page : 最後のページ番号 + - has_prev : 前ページを持つかどうかの真理値 + - has_next : 次ページを持つかどうかの真理値 + +ページングクラスは `Pagination` で定義されています。 + +以下にコード例を示します。 + +```typescript +const request = new ListTransactions({ "page": 1, "per_page": 50 }); +const response = await client.send(request); + +if (response.object.pagination.has_next) { + const next_page = response.object.pagination.current + 1; + const request = new ListTransactions({ "page": next_page, "per_page": 50 }); + const response = await client.send(request); +} +``` + +### エラーハンドリング + +JavaScript をご使用の場合、必須パラメーターがチェックされます。 +TypeScript は型通りにお使いいただけます。 + +```javascript +const request = new SendEcho({}); +=> Error: "message" is required; +``` + +API呼び出し時のエラーの場合は `axios` ライブラリのエラーが `throw` されます。 +エラーレスポンスもステータスコードとレスポンスボディを持ちます。 +参考: [axios handling errors](https://github.com/axios/axios#handling-errors) + +```typescript +const axios = require('axios'); + +const request = SendEcho.new({ message: "hello" }); + +try { + const response = await client.send(request); +} catch (error) { + if (axios.isAxiosError(error)) { + if (error.response) { + // The request was made and the server responded with a status code + // that falls out of the range of 2xx + // APIサーバーがエラーレスポンス (2xx 以外) を返した場合 + console.log(error.response.data); + console.log(error.response.status); + console.log(error.response.headers); + } else if (error.request) { + // The request was made but no response was received + // `error.request` is an instance of http.ClientRequest + // リクエストは作られたが、レスポンスが受け取れなかった場合 + // `error.request` に `http.ClientRequest` が入ります + console.log(error.request); + } else { + // Something happened in setting up the request that triggered an Error + // リクエストを作る際に何かが起こった場合 + console.log('Error', error.message); + } + } +} +``` + +## API Operations + +### Transaction +- [GetCpmToken](./transaction.md#get-cpm-token): CPMトークンの状態取得 +- [ListTransactions](./transaction.md#list-transactions): 【廃止】取引履歴を取得する +- [CreateTransaction](./transaction.md#create-transaction): 【廃止】チャージする +- [ListTransactionsV2](./transaction.md#list-transactions-v2): 取引履歴を取得する +- [CreateTopupTransaction](./transaction.md#create-topup-transaction): チャージする +- [CreatePaymentTransaction](./transaction.md#create-payment-transaction): 支払いする +- [CreateCpmTransaction](./transaction.md#create-cpm-transaction): CPMトークンによる取引作成 +- [CreateTransferTransaction](./transaction.md#create-transfer-transaction): 個人間送金 +- [CreateExchangeTransaction](./transaction.md#create-exchange-transaction): +- [GetTransaction](./transaction.md#get-transaction): 取引情報を取得する +- [RefundTransaction](./transaction.md#refund-transaction): 取引をキャンセルする +- [GetTransactionByRequestId](./transaction.md#get-transaction-by-request-id): リクエストIDから取引情報を取得する +- [GetBulkTransaction](./transaction.md#get-bulk-transaction): バルク取引ジョブの実行状況を取得する +- [ListBulkTransactionJobs](./transaction.md#list-bulk-transaction-jobs): バルク取引ジョブの詳細情報一覧を取得する +- [RequestUserStats](./transaction.md#request-user-stats): 指定期間内の顧客が行った取引の統計情報をCSVでダウンロードする + +### Transfer +- [GetAccountTransferSummary](./transfer.md#get-account-transfer-summary): +- [ListTransfers](./transfer.md#list-transfers): +- [ListTransfersV2](./transfer.md#list-transfers-v2): + +### Check +- [CreateCheck](./check.md#create-check): チャージQRコードの発行 +- [ListChecks](./check.md#list-checks): チャージQRコード一覧の取得 +- [GetCheck](./check.md#get-check): チャージQRコードの表示 +- [UpdateCheck](./check.md#update-check): チャージQRコードの更新 +- [CreateTopupTransactionWithCheck](./check.md#create-topup-transaction-with-check): チャージQRコードを読み取ることでチャージする + +### Bill +- [ListBills](./bill.md#list-bills): 支払いQRコード一覧を表示する +- [CreateBill](./bill.md#create-bill): 支払いQRコードの発行 +- [UpdateBill](./bill.md#update-bill): 支払いQRコードの更新 + +### Cashtray +- [CreateCashtray](./cashtray.md#create-cashtray): Cashtrayを作る +- [GetCashtray](./cashtray.md#get-cashtray): Cashtrayの情報を取得する +- [CancelCashtray](./cashtray.md#cancel-cashtray): Cashtrayを無効化する +- [UpdateCashtray](./cashtray.md#update-cashtray): Cashtrayの情報を更新する + +### Customer +- [GetAccount](./customer.md#get-account): ウォレット情報を表示する +- [UpdateAccount](./customer.md#update-account): ウォレット情報を更新する +- [DeleteAccount](./customer.md#delete-account): ウォレットを退会する +- [ListAccountBalances](./customer.md#list-account-balances): エンドユーザーの残高内訳を表示する +- [ListAccountExpiredBalances](./customer.md#list-account-expired-balances): エンドユーザーの失効済みの残高内訳を表示する +- [UpdateCustomerAccount](./customer.md#update-customer-account): エンドユーザーのウォレット情報を更新する +- [GetCustomerAccounts](./customer.md#get-customer-accounts): エンドユーザーのウォレット一覧を表示する +- [CreateCustomerAccount](./customer.md#create-customer-account): 新規エンドユーザーをウォレットと共に追加する +- [GetShopAccounts](./customer.md#get-shop-accounts): 店舗ユーザーのウォレット一覧を表示する +- [ListCustomerTransactions](./customer.md#list-customer-transactions): 取引履歴を取得する + +### Organization +- [ListOrganizations](./organization.md#list-organizations): 加盟店組織の一覧を取得する +- [CreateOrganization](./organization.md#create-organization): 新規加盟店組織を追加する + +### Shop +- [ListShops](./shop.md#list-shops): 店舗一覧を取得する +- [CreateShop](./shop.md#create-shop): 【廃止】新規店舗を追加する +- [CreateShopV2](./shop.md#create-shop-v2): 新規店舗を追加する +- [GetShop](./shop.md#get-shop): 店舗情報を表示する +- [UpdateShop](./shop.md#update-shop): 店舗情報を更新する + +### User +- [GetUser](./user.md#get-user): + +### Account +- [ListUserAccounts](./account.md#list-user-accounts): エンドユーザー、店舗ユーザーのウォレット一覧を表示する +- [CreateUserAccount](./account.md#create-user-account): エンドユーザーのウォレットを作成する + +### Private Money +- [GetPrivateMoneys](./private_money.md#get-private-moneys): マネー一覧を取得する +- [GetPrivateMoneyOrganizationSummaries](./private_money.md#get-private-money-organization-summaries): 決済加盟店の取引サマリを取得する +- [GetPrivateMoneySummary](./private_money.md#get-private-money-summary): 取引サマリを取得する + +### Bulk +- [BulkCreateTransaction](./bulk.md#bulk-create-transaction): CSVファイル一括取引 + +### Event +- [CreateExternalTransaction](./event.md#create-external-transaction): ポケペイ外部取引を作成する +- [RefundExternalTransaction](./event.md#refund-external-transaction): ポケペイ外部取引をキャンセルする + +### Campaign +- [CreateCampaign](./campaign.md#create-campaign): ポイント付与キャンペーンを作る +- [ListCampaigns](./campaign.md#list-campaigns): キャンペーン一覧を取得する +- [GetCampaign](./campaign.md#get-campaign): キャンペーンを取得する +- [UpdateCampaign](./campaign.md#update-campaign): ポイント付与キャンペーンを更新する + +### Webhook +- [CreateWebhook](./webhook.md#create-webhook): webhookの作成 +- [ListWebhooks](./webhook.md#list-webhooks): 作成したWebhookの一覧を返す +- [UpdateWebhook](./webhook.md#update-webhook): Webhookの更新 +- [DeleteWebhook](./webhook.md#delete-webhook): Webhookの削除 + +### Coupon +- [ListCoupons](./coupon.md#list-coupons): クーポン一覧の取得 +- [CreateCoupon](./coupon.md#create-coupon): クーポンの登録 +- [GetCoupon](./coupon.md#get-coupon): クーポンの取得 +- [UpdateCoupon](./coupon.md#update-coupon): クーポンの更新 + +### UserDevice +- [CreateUserDevice](./user_device.md#create-user-device): ユーザーのデバイス登録 +- [GetUserDevice](./user_device.md#get-user-device): ユーザーのデバイスを取得 +- [ActivateUserDevice](./user_device.md#activate-user-device): デバイスの有効化 + +### BankPay +- [CreateBank](./bank_pay.md#create-bank): 銀行口座の登録 +- [ListBanks](./bank_pay.md#list-banks): 登録した銀行の一覧 +- [CreateBankTopupTransaction](./bank_pay.md#create-bank-topup-transaction): 銀行からのチャージ + diff --git a/docs/account.md b/docs/account.md new file mode 100644 index 0000000..f90f17c --- /dev/null +++ b/docs/account.md @@ -0,0 +1,157 @@ +# Account + + +## ListUserAccounts: エンドユーザー、店舗ユーザーのウォレット一覧を表示する +ユーザーIDを指定してそのユーザーのウォレット一覧を取得します。 + +```typescript +const response: Response = await client.send(new ListUserAccounts({ + user_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ユーザーID + page: 9970, // ページ番号 + per_page: 7800 // 1ページ分の取引数 +})); +``` + + + +### Parameters +**`user_id`** + + +ユーザーIDです。 + +指定したユーザーIDのウォレット一覧を取得します。パートナーキーと紐づく組織が発行しているマネーのウォレットのみが表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。デフォルト値は1です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ当たりのウォレット数です。デフォルト値は50です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedAccountDetails](./responses.md#paginated-account-details) +を返します + + +--- + + + +## CreateUserAccount: エンドユーザーのウォレットを作成する +既存のエンドユーザーに対して、指定したマネーのウォレットを新規作成します + +```typescript +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: "musaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqor", // ウォレット名 + external_id: "IswPc2cB", // 外部ID + metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" // ウォレットに付加するメタデータ +})); +``` + + + +### Parameters +**`user_id`** + + +ユーザーIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +作成するウォレットのマネーを指定します。このパラメータは必須です。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`external_id`** + + + +```json +{ + "type": "string", + "maxLength": 50 +} +``` + +**`metadata`** + + +ウォレットに付加するメタデータをJSON文字列で指定します。 +指定できるJSON文字列には以下のような制約があります。 +- フラットな構造のJSONを文字列化したものであること。 +- keyは最大32文字の文字列(同じkeyを複数指定することはできません) +- valueには128文字以下の文字列が指定できます + +```json +{ + "type": "string", + "format": "json" +} +``` + + + +成功したときは +[AccountDetail](./responses.md#account-detail) +を返します + + +--- + + + diff --git a/docs/bank_pay.md b/docs/bank_pay.md new file mode 100644 index 0000000..19f30e1 --- /dev/null +++ b/docs/bank_pay.md @@ -0,0 +1,232 @@ +# BankPay +BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + + + +## CreateBank: 銀行口座の登録 +銀行口座の登録を始める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: "qC15yVJZpc@8KVp.com", // ユーザーのメールアドレス + birthdate: "19901142" // 生年月日 +})); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`callback_url`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`kana`** + + + +```json +{ + "type": "string", + "maxLength": 30 +} +``` + +**`email`** + + + +```json +{ + "type": "string", + "format": "email", + "maxLength": 300 +} +``` + +**`birthdate`** + + + +```json +{ + "type": "string", + "maxLength": 8 +} +``` + + + +成功したときは +[BankRegisteringInfo](./responses.md#bank-registering-info) +を返します + + +--- + + + +## ListBanks: 登録した銀行の一覧 +登録した銀行を一覧します + +```typescript +const response: Response = await client.send(new ListBanks({ + user_device_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +})); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Banks](./responses.md#banks) +を返します + + +--- + + + +## CreateBankTopupTransaction: 銀行からのチャージ +指定のマネーのアカウントに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: 7742, // チャージ金額 + bank_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 銀行ID + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +})); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`bank_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`request_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + diff --git a/docs/bill.md b/docs/bill.md new file mode 100644 index 0000000..0746733 --- /dev/null +++ b/docs/bill.md @@ -0,0 +1,346 @@ +# Bill +支払いQRコード + + +## ListBills: 支払いQRコード一覧を表示する +支払いQRコード一覧を表示します。 + +```typescript +const response: Response = await client.send(new ListBills({ + page: 8308, // ページ番号 + per_page: 5622, // 1ページの表示数 + bill_id: "laKx", // 支払いQRコードのID + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + organization_code: "CMf-9Tbr-uA-3dv2K1u-t2aU848H--", // 組織コード + description: "test bill", // 取引説明文 + created_from: "2020-01-14T03:21:13.000000Z", // 作成日時(起点) + created_to: "2020-09-03T11:53:51.000000Z", // 作成日時(終点) + shop_name: "bill test shop1", // 店舗名 + shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + lower_limit_amount: 3745, // 金額の範囲によるフィルタ(下限) + upper_limit_amount: 6172, // 金額の範囲によるフィルタ(上限) + is_disabled: true // 支払いQRコードが無効化されているかどうか +})); +``` + + + +### Parameters +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページに表示する支払いQRコードの数です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`bill_id`** + + +支払いQRコードのIDを指定して検索します。IDは前方一致で検索されます。 + +```json +{ + "type": "string" +} +``` + +**`private_money_id`** + + +支払いQRコードの送金元ウォレットのマネーIDでフィルターします。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`organization_code`** + + +支払いQRコードの送金元店舗が所属する組織の組織コードでフィルターします。 + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`description`** + + +支払いQRコードを読み取ることで作られた取引の説明文としてアプリなどに表示されます。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`created_from`** + + +支払いQRコードの作成日時でフィルターします。 + +これ以降に作成された支払いQRコードのみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`created_to`** + + +支払いQRコードの作成日時でフィルターします。 + +これ以前に作成された支払いQRコードのみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`shop_name`** + + +支払いQRコードを作成した店舗名でフィルターします。店舗名は部分一致で検索されます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`shop_id`** + + +支払いQRコードを作成した店舗IDでフィルターします。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`lower_limit_amount`** + + +支払いQRコードの金額の下限を指定してフィルターします。 + +```json +{ + "type": "integer", + "format": "decimal", + "minimum": 0 +} +``` + +**`upper_limit_amount`** + + +支払いQRコードの金額の上限を指定してフィルターします。 + +```json +{ + "type": "integer", + "format": "decimal", + "minimum": 0 +} +``` + +**`is_disabled`** + + +支払いQRコードが無効化されているかどうかを表します。デフォルト値は偽(有効)です。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[PaginatedBills](./responses.md#paginated-bills) +を返します + + +--- + + + +## CreateBill: 支払いQRコードの発行 +支払いQRコードの内容を更新します。支払い先の店舗ユーザーは指定したマネーのウォレットを持っている必要があります。 + +```typescript +const response: Response = await client.send(new CreateBill({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払いマネーのマネーID + shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払い先(受け取り人)の店舗ID + amount: 6991.0, // 支払い額 + description: "test bill" // 説明文(アプリ上で取引の説明文として表示される) +})); +``` + + + +### Parameters +**`amount`** + + +支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`shop_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + + + +成功したときは +[Bill](./responses.md#bill) +を返します + + +--- + + + +## UpdateBill: 支払いQRコードの更新 +支払いQRコードの内容を更新します。パラメータは全て省略可能で、指定したもののみ更新されます。 + +```typescript +const response: Response = await client.send(new UpdateBill({ + bill_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払いQRコードのID + amount: 3919.0, // 支払い額 + description: "test bill", // 説明文 + is_disabled: true // 無効化されているかどうか +})); +``` + + + +### Parameters +**`bill_id`** + + +更新対象の支払いQRコードのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`description`** + + +支払いQRコードの詳細説明文です。アプリ上で取引の説明文として表示されます。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`is_disabled`** + + +支払いQRコードが無効化されているかどうかを指定します。真にすると無効化され、偽にすると有効化します。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[Bill](./responses.md#bill) +を返します + + +--- + + + diff --git a/docs/bulk.md b/docs/bulk.md new file mode 100644 index 0000000..2d4787c --- /dev/null +++ b/docs/bulk.md @@ -0,0 +1,111 @@ +# Bulk + + +## BulkCreateTransaction: CSVファイル一括取引 +CSVファイルから一括取引をします。 + +```typescript +const response: Response = await client.send(new BulkCreateTransaction({ + name: "skU0m8hSr1melepO9LnwIsUc", // 一括取引タスク名 + content: "mvb4", // 取引する情報のCSV + request_id: "GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P3", // リクエストID + description: "35Nv6jpCTg7cI", // 一括取引の説明 + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID +})); +``` + + + +### Parameters +**`name`** + + +一括取引タスクの管理用の名前です。 + +```json +{ + "type": "string", + "maxLength": 32 +} +``` + +**`description`** + + +一括取引タスクの管理用の説明文です。 + +```json +{ + "type": "string", + "maxLength": 128 +} +``` + +**`content`** + + +一括取引する情報を書いたCSVの文字列です。 +1行目はヘッダ行で、2行目以降の各行にカンマ区切りの取引データを含みます。 +カラムは以下の7つです。任意のカラムには空文字を指定します。 + +- `type`: 取引種別 + - 必須。'topup' または 'payment' +- `sender_id`: 送金ユーザーID + - 必須。UUID +- `receiver_id`: 受取ユーザーID + - 必須。UUID +- `private_money_id`: マネーID + - 必須。UUID +- `money_amount`: マネー額 + - 任意。ただし `point_amount` といずれかが必須。0以上の数字 +- `point_amount`: ポイント額 + - 任意。ただし `money_amount` といずれかが必須。0以上の数字 +- `description`: 取引の説明文 + - 任意。200文字以内。取引履歴に表示される文章 +- `bear_account_id`: ポイント負担ウォレットID + - `point_amount` があるときは必須。UUID +- `point_expires_at`: ポイントの有効期限 + - 任意。指定がないときはマネーに設定された有効期限を適用 + +```json +{ + "type": "string" +} +``` + +**`request_id`** + + +重複したリクエストを判断するためのユニークID。ランダムな36字の文字列を生成して渡してください。 + +```json +{ + "type": "string", + "minLength": 36, + "maxLength": 36 +} +``` + +**`private_money_id`** + + +マネーIDです。 マネーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[BulkTransaction](./responses.md#bulk-transaction) +を返します + + +--- + + + diff --git a/docs/campaign.md b/docs/campaign.md new file mode 100644 index 0000000..30a79dc --- /dev/null +++ b/docs/campaign.md @@ -0,0 +1,1579 @@ +# Campaign + + +## CreateCampaign: ポイント付与キャンペーンを作る +ポイント付与キャンペーンを作成します。 + + +```typescript +const response: Response = await client.send(new CreateCampaign({ + name: "jgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31R", // キャンペーン名 + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + starts_at: "2020-01-23T17:23:33.000000Z", // キャンペーン開始日時 + ends_at: "2023-11-29T10:51:14.000000Z", // キャンペーン終了日時 + priority: 9775, // キャンペーンの適用優先度 + event: "external-transaction", // イベント種別 + bear_point_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント負担先店舗ID + description: "FcTjCHIRk6EOKDYDfh7IyYBf", // キャンペーンの説明文 + status: "disabled", // キャンペーン作成時の状態 + point_expires_at: "2022-05-31T13:43:18.000000Z", // ポイント有効期限(絶対日時指定) + point_expires_in_days: 1075, // ポイント有効期限(相対日数指定) + is_exclusive: false, // キャンペーンの重複設定 + subject: "money", // ポイント付与の対象金額の種別 + amount_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 +}, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 +}], // 取引金額ベースのポイント付与ルール + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 +}], // 商品情報ベースのポイント付与ルール + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" +}, { + "product_code": "4912345678904", + "classification_code": "c123" +}], // 商品情報ベースのキャンペーンで除外対象にする商品リスト + applicable_days_of_week: [4, 5, 2], // キャンペーンを適用する曜日 (複数指定) + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" +}], // キャンペーンを適用する時間帯 (複数指定) + applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト + minimum_number_of_products: 3677, // キャンペーンを適用する1会計内の商品個数の下限 + minimum_number_of_amount: 9333, // キャンペーンを適用する1会計内の商品総額の下限 + minimum_number_for_combination_purchase: 1069, // 複数種類の商品を同時購入するときの商品種別数の下限 + exist_in_each_product_groups: true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + max_point_amount: 7906, // キャンペーンによって付与されるポイントの上限 + max_total_point_amount: 1642, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + dest_private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント付与先となるマネーID + applicable_account_metadata: { + "key": "sex", + "value": "male" +}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + budget_caps_amount: 1315895000 // キャンペーン予算上限 +})); +``` + + + +### Parameters +**`name`** + + +キャンペーン名です(必須項目)。 + +ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`private_money_id`** + + +キャンペーン対象のマネーのIDです(必須項目)。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`starts_at`** + + +キャンペーン開始日時です(必須項目)。 +キャンペーン期間中のみポイントが付与されます。 +開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`ends_at`** + + +キャンペーン終了日時です(必須項目)。 +キャンペーン期間中のみポイントが付与されます。 +開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`priority`** + + +キャンペーンの適用優先度です。 + +優先度が大きいものから順に適用判定されていきます。 +キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 + +```json +{ + "type": "integer" +} +``` + +**`event`** + + +キャンペーンのトリガーとなるイベントの種類を指定します(必須項目)。 + +以下のいずれかを指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) +2. payment + エンドユーザーから店舗への送金取引(支払い) +3. external-transaction + ポケペイ外の取引(現金決済など) + +```json +{ + "type": "string", + "enum": [ + "topup", + "payment", + "external-transaction" + ] +} +``` + +**`bear_point_shop_id`** + + +ポイントを負担する店舗のIDです。デフォルトではマネー発行体の本店が設定されます。 +ポイント負担先店舗は後から更新することはできません。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + +キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`status`** + + +キャンペーン作成時の状態を指定します。デフォルトではenabledです。 + +以下のいずれかを指定できます。 + +1. enabled + 有効 +2. disabled + 無効 + +```json +{ + "type": "string", + "enum": [ + "enabled", + "disabled" + ] +} +``` + +**`point_expires_at`** + + +キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 +省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_in_days`** + + +キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 +省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`is_exclusive`** + + +キャンペーンの重ね掛けを行うかどうかのフラグです。 + +これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。 +falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。 + +```json +{ + "type": "boolean" +} +``` + +**`subject`** + + +ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 +eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。 + +以下のいずれかを指定できます。 + +1. money +moneyを指定すると決済額の中で「マネー」を使って支払った額を対象にします + +2. all +all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) +注意: event を topup にしたときはポイントの付与に対しても適用されます + +```json +{ + "type": "string", + "enum": [ + "money", + "all" + ] +} +``` + +**`amount_based_point_rules`** + + +金額をベースとしてポイント付与を行うルールを指定します。 +amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 +各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 + +例: +```javascript +[ + // 1000円以上、5000円未満の決済には 5% + { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, + // 5000円以上の決済には 10% + { + "point_amount": 10, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 5000 + }, +] +``` + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`product_based_point_rules`** + + +商品情報をベースとしてポイント付与を行うルールを指定します。 +ルールは商品ごとに設定可能で、ルールの配列として指定します。 +amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 +event が payment か external-transaction の時のみ有効です。 +各ルールの順序は問わず、適用可能なものは全て適用されます。 +一つの決済の中で複数の商品がキャンペーン適用可能な場合はそれぞれの商品についてのルールが適用され、ポイント付与額はその合算になります。 + +例: +```javascript +[ + // 対象商品の購入額から5%ポイント付与。複数購入時は単価の5%が付与される。 + { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + }, + // 対象商品の購入額から5%ポイント付与。複数購入時は購入総額の5%が付与される。 + { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + }, + // 対象商品を2つ以上購入したら500ポイント付与(固定額付与) + { + "point_amount": 500, + "point_amount_unit": "absolute", + "product_code": "4912345678904", + "required_count": 2 + }, + // 書籍は10%ポイント付与 + // ※ISBNの形式はレジがポケペイに送信する形式に準じます + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "978-%", + }, + // 一部の出版社の書籍は10%ポイント付与 + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "978-4-01-%", // 旺文社 + } +] +``` + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`blacklisted_product_rules`** + + +商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 +除外対象の商品コード、または分類コードのパターンの配列として指定します。 +取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`applicable_days_of_week`** + + + +```json +{ + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 6 + } +} +``` + +**`applicable_time_ranges`** + + + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`applicable_shop_ids`** + + + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`minimum_number_of_products`** + + +このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`minimum_number_of_amount`** + + +このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`minimum_number_for_combination_purchase`** + + +複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。デフォルトでは未指定で、指定する場合は1以上の整数を指定します。 + +このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 +例えば、A商品とB商品とC商品のうち、キャンペーンの発火のために2商品以上が同時購入される必要があるときは 2 を指定します。 + +例1: 商品A, Bが同時購入されたときに固定ポイント額(200ポイント)付与 +```javascript +{ + minimum_number_for_combination_purchase: 2, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Aの商品コード" + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Bの商品コード" + } + ] +} +``` + +例2: 商品A, Bが3個ずつ以上同時購入されたときに固定ポイント額(200ポイント)付与 +```javascript +{ + minimum_number_for_combination_purchase: 2, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Aの商品コード", + "required_count": 3 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Bの商品コード", + "required_count": 3 + } + ] +} +``` + +例2: 商品A, B, Cのうち2商品以上が同時購入されたときに総額の10%ポイントが付与 +```javascript +{ + minimum_number_for_combination_purchase: 2, + product_based_point_rules: [ + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "商品Aの商品コード", + "is_multiply_by_count": true, + }, + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "商品Bの商品コード", + "is_multiply_by_count": true, + }, + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "商品Cの商品コード", + "is_multiply_by_count": true, + } + ] +} +``` + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`exist_in_each_product_groups`** + + +複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 + +このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 +exist_in_each_product_groupsが指定されているにも関わらず商品毎のルールでgroup_idが指定されていないものが含まれている場合はinvalid_parametersエラー(missing group_id, エラーコード400)が返ります。 + +例えば、商品グループA(商品コードa1, a2)、商品グループB(商品コードb1, b2)の2つの商品グループがあるとします。 +このとき、各商品グループからそれぞれ少なくとも1種類以上の商品が購入されることにより発火するキャンペーンに対するリクエストパラメータは以下のようなものになります。 + +```javascript +{ + exist_in_each_product_groups: true, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a1", + "group_id": 1 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a2", + "group_id": 1 + }, + { + "point_amount": 200, + "point_amount_unit": "absolute", + "product_code": "b1", + "group_id": 2 + }, + { + "point_amount": 200, + "point_amount_unit": "absolute", + "product_code": "b2", + "group_id": 2 + } + ] +} +``` + +このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になります。つまり100 + 200=300がポイント付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 + +ポイント付与値を各商品毎のルールの総和ではなく固定値にしたい場合には、max_point_amountを指定します。 +例えば以下のようなリクエストパラメータ指定の場合を考えます。 + +```javascript +{ + max_point_amount: 100, + exist_in_each_product_groups: true, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a1", + "group_id": 1 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a2", + "group_id": 1 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "b1", + "group_id": 2 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "b2", + "group_id": 2 + } + ] +} +``` + +このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になりますが、付与値の上限が100ポイントになります。つまり100 + 200=300と計算されますが上限額の100ポイントが実際の付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600ですが上限額の100がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 + +```json +{ + "type": "boolean" +} +``` + +**`max_point_amount`** + + +キャンペーンによって付与されるポイントの上限を指定します。デフォルトは未指定です。 + +このパラメータが指定されている場合、amount_based_point_rules や product_based_point_rules によって計算されるポイント付与値がmax_point_amountを越えている場合、max_point_amountの値がポイント付与値となり、越えていない場合はその値がポイント付与値となります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`max_total_point_amount`** + + +キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 + +このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 +累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`dest_private_money_id`** + + +キャンペーンを駆動するイベントのマネーとは「別のマネー」に対してポイントを付けたいときに、そのマネーIDを指定します。 + +ポイント付与先のマネーはキャンペーンを駆動するイベントのマネーと同一発行体が発行しているものに限ります。その他のマネーIDが指定された場合は private_money_not_found (422) が返ります。 +エンドユーザー、店舗、ポイント負担先店舗はポイント付与先マネーのウォレットを持っている必要があります。持っていない場合はポイントは付きません。 +元のイベントのマネーと異なる複数のマネーに対して同時にポイントを付与することはできません。重複可能に設定されている複数のキャンペーンで別々のポイント付与先マネーを指定した場合は最も優先度の高いものが処理され、残りは無視されます。 +キャンペーンのポイント付与先マネーは後から更新することはできません。 +デフォルトではポイント付与先はキャンペーンを駆動するイベントのマネー(private_money_idで指定したマネー)になります。 + +別マネーに対するポイント付与は別のtransactionとなります。 RefundTransaction で元のイベントをキャンセルしたときはポイント付与のtransactionもキャンセルされ、逆にポイント付与のtransactionをキャンセルしたときは連動して元のイベントがキャンセルされます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`applicable_account_metadata`** + + +ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 +メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 +ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 + +オプショナルパラメータtestによって比較方法を指定することができます。 +デフォルトは equal で、その他に not-equalを指定可能です。 + +例1: 取引が行なわれたウォレットのメタデータに住所として東京が指定されているときのみ発火 + +```javascript +{ + "key": "prefecture", + "value": "tokyo" +} +``` + +例2: 取引が行なわれたウォレットのメタデータに住所として東京以外が指定されているときのみ発火 + +```javascript +{ + "key": "prefecture", + "value": "tokyo", + "test": "not-equal" +} +``` + +```json +{ + "type": "object" +} +``` + +**`budget_caps_amount`** + + +キャンペーンの予算上限を指定します。デフォルトは未指定です。 + +このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 +一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 10000000000 +} +``` + + + +成功したときは +[Campaign](./responses.md#campaign) +を返します + + +--- + + + +## ListCampaigns: キャンペーン一覧を取得する +マネーIDを指定してキャンペーンを取得します。 +発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 +閲覧権限がない場合は unpermitted_admin_user エラー(422)が返ります。 + +```typescript +const response: Response = await client.send(new ListCampaigns({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + is_ongoing: true, // 現在適用可能なキャンペーンかどうか + available_from: "2021-02-12T14:30:23.000000Z", // 指定された日時以降に適用可能期間が含まれているか + available_to: "2021-11-23T20:11:23.000000Z", // 指定された日時以前に適用可能期間が含まれているか + page: 1, // ページ番号 + per_page: 20 // 1ページ分の取得数 +})); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_ongoing`** + + +有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 +真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "boolean" +} +``` + +**`available_from`** + + +キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`available_to`** + + +キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 20 になっています。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 50 +} +``` + + + +成功したときは +[PaginatedCampaigns](./responses.md#paginated-campaigns) +を返します + + +--- + + + +## GetCampaign: キャンペーンを取得する +IDを指定してキャンペーンを取得します。 +発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 +閲覧権限がない場合は unpermitted_admin_user エラー(422)が返ります。 + +```typescript +const response: Response = await client.send(new GetCampaign({ + campaign_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // キャンペーンID +})); +``` + + + +### Parameters +**`campaign_id`** + + +キャンペーンIDです。 + +指定したIDのキャンペーンを取得します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Campaign](./responses.md#campaign) +を返します + + +--- + + + +## UpdateCampaign: ポイント付与キャンペーンを更新する +ポイント付与キャンペーンを更新します。 + + +```typescript +const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // キャンペーンID + name: "eLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTz", // キャンペーン名 + starts_at: "2022-04-04T12:36:17.000000Z", // キャンペーン開始日時 + ends_at: "2020-11-10T23:55:36.000000Z", // キャンペーン終了日時 + priority: 4845, // キャンペーンの適用優先度 + event: "external-transaction", // イベント種別 + description: "uCtm4tM4rQ7TMWwQQegAiqW5G", // キャンペーンの説明文 + status: "enabled", // キャンペーン作成時の状態 + point_expires_at: "2023-01-16T12:50:59.000000Z", // ポイント有効期限(絶対日時指定) + point_expires_in_days: 1695, // ポイント有効期限(相対日数指定) + 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 +}], // 商品情報ベースのポイント付与ルール + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" +}, { + "product_code": "4912345678904", + "classification_code": "c123" +}], // 商品情報ベースのキャンペーンで除外対象にする商品リスト + applicable_days_of_week: [3, 5, 3], // キャンペーンを適用する曜日 (複数指定) + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" +}], // キャンペーンを適用する時間帯 (複数指定) + applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト + minimum_number_of_products: 3650, // キャンペーンを適用する1会計内の商品個数の下限 + minimum_number_of_amount: 7375, // キャンペーンを適用する1会計内の商品総額の下限 + minimum_number_for_combination_purchase: 3509, // 複数種類の商品を同時購入するときの商品種別数の下限 + exist_in_each_product_groups: true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + max_point_amount: 3498, // キャンペーンによって付与されるポイントの上限 + max_total_point_amount: 6455, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + applicable_account_metadata: { + "key": "sex", + "value": "male" +}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + budget_caps_amount: 976430174 // キャンペーン予算上限 +})); +``` + + + +### Parameters +**`campaign_id`** + + +キャンペーンIDです。 + +指定したIDのキャンペーンを更新します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + +キャンペーン名です。 + +ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`starts_at`** + + +キャンペーン開始日時です。 +キャンペーン期間中のみポイントが付与されます。 +開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`ends_at`** + + +キャンペーン終了日時です。 +キャンペーン期間中のみポイントが付与されます。 +開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`priority`** + + +キャンペーンの適用優先度です。 + +優先度が大きいものから順に適用判定されていきます。 +キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 + +```json +{ + "type": "integer" +} +``` + +**`event`** + + +キャンペーンのトリガーとなるイベントの種類を指定します。 + +以下のいずれかを指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) +2. payment + エンドユーザーから店舗への送金取引(支払い) +3. external-transaction + ポケペイ外の取引(現金決済など) + +```json +{ + "type": "string", + "enum": [ + "topup", + "payment", + "external-transaction" + ] +} +``` + +**`description`** + + +キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`status`** + + +キャンペーン作成時の状態を指定します。デフォルトではenabledです。 + +以下のいずれかを指定できます。 + +1. enabled + 有効 +2. disabled + 無効 + +```json +{ + "type": "string", + "enum": [ + "enabled", + "disabled" + ] +} +``` + +**`point_expires_at`** + + +キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 +省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_in_days`** + + +キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 +省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`is_exclusive`** + + +キャンペーンの重ね掛けを行うかどうかのフラグです。 + +これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。 +falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。 + +```json +{ + "type": "boolean" +} +``` + +**`subject`** + + +ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 +eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。 + +以下のいずれかを指定できます。 + +1. money +moneyを指定すると決済額の中で「マネー」を使って支払った額を対象にします + +2. all +all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) +注意: event を topup にしたときはポイントの付与に対しても適用されます + +```json +{ + "type": "string", + "enum": [ + "money", + "all" + ] +} +``` + +**`amount_based_point_rules`** + + +金額をベースとしてポイント付与を行うルールを指定します。 +amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 +各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 + +例: +```javascript +[ + // 1000円以上、5000円未満の決済には 5% + { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, + // 5000円以上の決済には 10% + { + "point_amount": 10, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 5000 + }, +] +``` + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`product_based_point_rules`** + + +商品情報をベースとしてポイント付与を行うルールを指定します。 +ルールは商品ごとに設定可能で、ルールの配列として指定します。 +amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 +event が payment か external-transaction の時のみ有効です。 +各ルールの順序は問わず、適用可能なものは全て適用されます。 +一つの決済の中で複数の商品がキャンペーン適用可能な場合はそれぞれの商品についてのルールが適用され、ポイント付与額はその合算になります。 + +例: +```javascript +[ + // 対象商品の購入額から5%ポイント付与。複数購入時は単価の5%が付与される。 + { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + }, + // 対象商品の購入額から5%ポイント付与。複数購入時は購入総額の5%が付与される。 + { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + }, + // 対象商品を2つ以上購入したら500ポイント付与(固定額付与) + { + "point_amount": 500, + "point_amount_unit": "absolute", + "product_code": "4912345678904", + "required_count": 2 + }, + // 書籍は10%ポイント付与 + // ※ISBNの形式はレジがポケペイに送信する形式に準じます + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "978-%", + }, + // 一部の出版社の書籍は10%ポイント付与 + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "978-4-01-%", // 旺文社 + } +] +``` + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`blacklisted_product_rules`** + + +商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 +除外対象の商品コード、または分類コードのパターンの配列として指定します。 +取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`applicable_days_of_week`** + + + +```json +{ + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 6 + } +} +``` + +**`applicable_time_ranges`** + + + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`applicable_shop_ids`** + + + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`minimum_number_of_products`** + + +このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`minimum_number_of_amount`** + + +このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`minimum_number_for_combination_purchase`** + + +複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。 + +このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 +例えば、A商品とB商品とC商品のうち、キャンペーンの発火のために2商品以上が同時購入される必要があるときは 2 を指定します。 + +例1: 商品A, Bが同時購入されたときに固定ポイント額(200ポイント)付与 +```javascript +{ + minimum_number_for_combination_purchase: 2, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Aの商品コード" + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Bの商品コード" + } + ] +} +``` + +例2: 商品A, Bが3個ずつ以上同時購入されたときに固定ポイント額(200ポイント)付与 +```javascript +{ + minimum_number_for_combination_purchase: 2, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Aの商品コード", + "required_count": 3 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Bの商品コード", + "required_count": 3 + } + ] +} +``` + +例2: 商品A, B, Cのうち2商品以上が同時購入されたときに総額の10%ポイントが付与 +```javascript +{ + minimum_number_for_combination_purchase: 2, + product_based_point_rules: [ + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "商品Aの商品コード", + "is_multiply_by_count": true, + }, + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "商品Bの商品コード", + "is_multiply_by_count": true, + }, + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "商品Cの商品コード", + "is_multiply_by_count": true, + } + ] +} +``` + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`exist_in_each_product_groups`** + + +複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 + +このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 +exist_in_each_product_groupsが指定されているにも関わらず商品毎のルールでgroup_idが指定されていないものが含まれている場合はinvalid_parametersエラー(missing group_id, エラーコード400)が返ります。 + +例えば、商品グループA(商品コードa1, a2)、商品グループB(商品コードb1, b2)の2つの商品グループがあるとします。 +このとき、各商品グループからそれぞれ少なくとも1種類以上の商品が購入されることにより発火するキャンペーンに対するリクエストパラメータは以下のようなものになります。 + +```javascript +{ + exist_in_each_product_groups: true, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a1", + "group_id": 1 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a2", + "group_id": 1 + }, + { + "point_amount": 200, + "point_amount_unit": "absolute", + "product_code": "b1", + "group_id": 2 + }, + { + "point_amount": 200, + "point_amount_unit": "absolute", + "product_code": "b2", + "group_id": 2 + } + ] +} +``` + +このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になります。つまり100 + 200=300がポイント付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 + +ポイント付与値を各商品毎のルールの総和ではなく固定値にしたい場合には、max_point_amountを指定します。 +例えば以下のようなリクエストパラメータ指定の場合を考えます。 + +```javascript +{ + max_point_amount: 100, + exist_in_each_product_groups: true, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a1", + "group_id": 1 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a2", + "group_id": 1 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "b1", + "group_id": 2 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "b2", + "group_id": 2 + } + ] +} +``` + +このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になりますが、付与値の上限が100ポイントになります。つまり100 + 200=300と計算されますが上限額の100ポイントが実際の付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600ですが上限額の100がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 + +```json +{ + "type": "boolean" +} +``` + +**`max_point_amount`** + + +キャンペーンによって付与される1取引当たりのポイント数の上限を指定します。デフォルトは未指定です。 + +このパラメータが指定されている場合、amount_based_point_rules や product_based_point_rules によって計算されるポイント付与値がmax_point_amountを越えている場合、max_point_amountの値がポイント付与値となり、越えていない場合はその値がポイント付与値となります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`max_total_point_amount`** + + +キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 + +このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 +累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`applicable_account_metadata`** + + +ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 +メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 +ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 + +オプショナルパラメータtestによって比較方法を指定することができます。 +デフォルトは equal で、その他に not-equalを指定可能です。 + +例1: 取引が行なわれたウォレットのメタデータに住所として東京が指定されているときのみ発火 + +```javascript +{ + "key": "prefecture", + "value": "tokyo" +} +``` + +例2: 取引が行なわれたウォレットのメタデータに住所として東京以外が指定されているときのみ発火 + +```javascript +{ + "key": "prefecture", + "value": "tokyo", + "test": "not-equal" +} +``` + +```json +{ + "type": "object" +} +``` + +**`budget_caps_amount`** + + +キャンペーンの予算上限を指定します。 + +キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 +一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 +キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。 +キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 10000000000 +} +``` + + + +成功したときは +[Campaign](./responses.md#campaign) +を返します + + +--- + + + diff --git a/docs/cashtray.md b/docs/cashtray.md new file mode 100644 index 0000000..32cd0b7 --- /dev/null +++ b/docs/cashtray.md @@ -0,0 +1,307 @@ +# Cashtray +Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。 +Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。 +Cashtrayはワンタイムで、一度読み取りに成功するか、取引エラーになると失効します。 +また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 + + + +## CreateCashtray: Cashtrayを作る +Cashtrayを作成します。 + +エンドユーザーに対して支払いまたはチャージを行う店舗の情報(店舗ユーザーIDとマネーID)と、取引金額が必須項目です。 +店舗ユーザーIDとマネーIDから店舗ウォレットを特定します。 + +その他に、Cashtrayから作られる取引に対する説明文や失効時間を指定できます。 + + +```typescript +const response: Response = await client.send(new CreateCashtray({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ユーザーID + amount: 1704.0, // 金額 + description: "たい焼き(小倉)", // 取引履歴に表示する説明文 + expires_in: 9821 // 失効時間(秒) +})); +``` + + + +### Parameters +**`private_money_id`** + + +取引対象のマネーのIDです(必須項目)。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`shop_id`** + + +店舗のユーザーIDです(必須項目)。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +マネー額です(必須項目)。 +正の値を与えるとチャージになり、負の値を与えると支払いとなります。 + +```json +{ + "type": "number" +} +``` + +**`description`** + + +Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。 +アプリや管理画面などの取引履歴に表示されます。デフォルトでは空文字になります。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`expires_in`** + + +Cashtrayが失効するまでの時間を秒単位で指定します(任意項目、デフォルト値は1800秒(30分))。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[Cashtray](./responses.md#cashtray) +を返します + + +--- + + + +## GetCashtray: Cashtrayの情報を取得する +Cashtrayの情報を取得します。 + +Cashtrayの現在の状態に加え、エンドユーザーのCashtray読み取りの試行結果、Cashtray読み取りによって作られた取引情報が取得できます。 + +レスポンス中の `attempt` には、このCashtrayをエンドユーザーが読み取った試行結果が入ります。 +`account` はエンドユーザーのウォレット情報です。 +成功時には `attempt` 内の `status_code` に200が入ります。 + +まだCashtrayが読み取られていない場合は `attempt` の内容は `NULL` になります。 +エンドユーザーのCashtray読み取りの際には、様々なエラーが起き得ます。 +エラーの詳細は `attempt` 中の `error_type` と `error_message` にあります。主なエラー型と対応するステータスコードを以下に列挙します。 + +- `cashtray_already_proceed (422)` + - 既に処理済みのCashtrayをエンドユーザーが再び読み取ったときに返されます +- `cashtray_expired (422)` + - 読み取り時点でCashtray自体の有効期限が切れているときに返されます。Cashtrayが失効する時刻はレスポンス中の `expires_at` にあります +- `cashtray_already_canceled (422)` + - 読み取り時点でCashtrayが無効化されているときに返されます +- `account_balance_not_enough (422)` + - 支払い時に、エンドユーザーの残高が不足していて取引が完了できなかったときに返されます +- `account_balance_exceeded` + - チャージ時に、エンドユーザーのウォレット上限を超えて取引が完了できなかったときに返されます +- `account_transfer_limit_exceeded (422)` + - マネーに設定されている一度の取引金額の上限を超えたため、取引が完了できなかったときに返されます +- `account_money_topup_transfer_limit_exceeded (422)` + - マネーに設定されている一度のマネーチャージ金額の上限を超えたため、取引が完了できなかったときに返されます +- `account_not_found (422)` + - Cashtrayに設定されたマネーのウォレットをエンドユーザーが持っていなかったときに返されます + + +レスポンス中の `transaction` には、このCashtrayをエンドユーザーが読み取ることによって作られる取引データが入ります。まだCashtrayが読み取られていない場合は `NULL` になります。 + +以上をまとめると、Cashtrayの状態は以下のようになります。 + +- エンドユーザーのCashtray読み取りによって取引が成功した場合 + - レスポンス中の `attempt` と `transaction` にそれぞれ値が入ります +- 何らかの理由で取引が失敗した場合 + - レスポンス中の `attempt` にエラー内容が入り、 `transaction` には `NULL` が入ります +- まだCashtrayが読み取られていない場合 + - レスポンス中の `attempt` と `transaction` にそれぞれ `NULL` が入ります。Cashtrayの `expires_at` が現在時刻より前の場合は有効期限切れ状態です。 + +Cashtrayの取り得る全ての状態を擬似コードで記述すると以下のようになります。 +``` +if (attempt == null) { + // 状態は未確定 + if (canceled_at != null) { + // 無効化済み + } else if (expires_at < now) { + // 失効済み + } else { + // まだ有効で読み取られていない + } +} else if (transaction != null) { + // 取引成功確定。attempt で読み取ったユーザなどが分かる +} else { + // 取引失敗確定。attempt で失敗理由などが分かる +} +``` + +```typescript +const response: Response = await client.send(new GetCashtray({ + cashtray_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID +})); +``` + + + +### Parameters +**`cashtray_id`** + + +情報を取得するCashtrayのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[CashtrayWithResult](./responses.md#cashtray-with-result) +を返します + + +--- + + + +## CancelCashtray: Cashtrayを無効化する +Cashtrayを無効化します。 + +これにより、 `GetCashtray` のレスポンス中の `canceled_at` に無効化時点での現在時刻が入るようになります。 +エンドユーザーが無効化されたQRコードを読み取ると `cashtray_already_canceled` エラーとなり、取引は失敗します。 + +```typescript +const response: Response = await client.send(new CancelCashtray({ + cashtray_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID +})); +``` + + + +### Parameters +**`cashtray_id`** + + +無効化するCashtrayのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Cashtray](./responses.md#cashtray) +を返します + + +--- + + + +## UpdateCashtray: Cashtrayの情報を更新する +Cashtrayの内容を更新します。bodyパラメーターは全て省略可能で、指定したもののみ更新されます。 + +```typescript +const response: Response = await client.send(new UpdateCashtray({ + cashtray_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // CashtrayのID + amount: 3126.0, // 金額 + description: "たい焼き(小倉)", // 取引履歴に表示する説明文 + expires_in: 5432 // 失効時間(秒) +})); +``` + + + +### Parameters +**`cashtray_id`** + + +更新対象のCashtrayのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +マネー額です(任意項目)。 +正の値を与えるとチャージになり、負の値を与えると支払いとなります。 + +```json +{ + "type": "number" +} +``` + +**`description`** + + +Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。 +アプリや管理画面などの取引履歴に表示されます。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`expires_in`** + + +Cashtrayが失効するまでの時間を秒で指定します(任意項目、デフォルト値は1800秒(30分))。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[Cashtray](./responses.md#cashtray) +を返します + + +--- + + + diff --git a/docs/check.md b/docs/check.md new file mode 100644 index 0000000..d43ce7e --- /dev/null +++ b/docs/check.md @@ -0,0 +1,675 @@ +# Check +店舗ユーザが発行し、エンドユーザーがポケペイアプリから読み取ることでチャージ取引が発生するQRコードです。 + +チャージQRコードを解析すると次のようなURLになります(URLは環境によって異なります)。 + +`https://www-sandbox.pokepay.jp/checks/xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` + +QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注意: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 + + + +## CreateCheck: チャージQRコードの発行 + +```typescript +const response: Response = await client.send(new CreateCheck({ + account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金元の店舗アカウントID + money_amount: 5226.0, // 付与マネー額 + point_amount: 465.0, // 付与ポイント額 + description: "test check", // 説明文(アプリ上で取引の説明文として表示される) + is_onetime: false, // ワンタイムかどうかのフラグ + usage_limit: 8334, // ワンタイムでない場合の最大読み取り回数 + expires_at: "2020-10-23T06:09:39.000000Z", // チャージQRコード自体の失効日時 + point_expires_at: "2023-06-27T19:49:26.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + point_expires_in_days: 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ポイント額を負担する店舗のウォレットID +})); +``` + + +`money_amount`と`point_amount`の少なくとも一方は指定する必要があります。 + + + +### Parameters +**`money_amount`** + + +チャージQRコードによって付与されるマネー額です。 +`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`point_amount`** + + +チャージQRコードによって付与されるポイント額です。 +`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`is_onetime`** + + +チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 +`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 +ただし、その場合も1ユーザにつき1回のみしか読み取れません。 + + +```json +{ + "type": "boolean" +} +``` + +**`usage_limit`** + + +複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 +NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 +デフォルト値はNULLです。 +ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 + + +```json +{ + "type": "integer" +} +``` + +**`expires_at`** + + +チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 + +チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_at`** + + +チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 + +チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_in_days`** + + +チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 +1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 +`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`bear_point_account`** + + +ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 +デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Check](./responses.md#check) +を返します + + +--- + + + +## ListChecks: チャージQRコード一覧の取得 + +```typescript +const response: Response = await client.send(new ListChecks({ + page: 4590, // ページ番号 + per_page: 50, // 1ページの表示数 + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + organization_code: "4vZ", // 組織コード + expires_from: "2022-07-06T19:27:10.000000Z", // 有効期限の期間によるフィルター(開始時点) + expires_to: "2023-12-18T20:25:22.000000Z", // 有効期限の期間によるフィルター(終了時点) + created_from: "2022-01-02T00:20:43.000000Z", // 作成日時の期間によるフィルター(開始時点) + created_to: "2022-02-12T08:10:50.000000Z", // 作成日時の期間によるフィルター(終了時点) + issuer_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行店舗ID + description: "HzNm8wd", // チャージQRコードの説明文 + is_onetime: false, // ワンタイムのチャージQRコードかどうか + is_disabled: true // 無効化されたチャージQRコードかどうか +})); +``` + + + +### Parameters +**`page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ当たり表示数です。デフォルト値は50です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`private_money_id`** + + +チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`organization_code`** + + +チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 +デフォルトでは未指定です。 + +```json +{ + "type": "string", + "maxLength": 32 +} +``` + +**`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`** + + +チャージQRコードを発行した店舗IDによってフィルターします。 +デフォルトでは未指定です。 + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + +チャージQRコードの説明文(description)によってフィルターします。 +部分一致(前方一致)したものを表示します。 +デフォルトでは未指定です。 + + +```json +{ + "type": "string" +} +``` + +**`is_onetime`** + + +チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 +`true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 +未指定の場合はフィルターしません。 +デフォルトでは未指定です。 + + +```json +{ + "type": "boolean" +} +``` + +**`is_disabled`** + + +チャージQRコードが無効化されているかどうかでフィルターします。 +`true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 +未指定の場合はフィルターしません。 +デフォルトでは未指定です。 + + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[PaginatedChecks](./responses.md#paginated-checks) +を返します + + +--- + + + +## GetCheck: チャージQRコードの表示 + +```typescript +const response: Response = await client.send(new GetCheck({ + check_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // チャージQRコードのID +})); +``` + + + +### Parameters +**`check_id`** + + +表示対象のチャージQRコードのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Check](./responses.md#check) +を返します + + +--- + + + +## UpdateCheck: チャージQRコードの更新 + +```typescript +const response: Response = await client.send(new UpdateCheck({ + check_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // チャージQRコードのID + money_amount: 2931.0, // 付与マネー額 + point_amount: 9794.0, // 付与ポイント額 + description: "test check", // チャージQRコードの説明文 + is_onetime: false, // ワンタイムかどうかのフラグ + usage_limit: 783, // ワンタイムでない場合の最大読み取り回数 + expires_at: "2021-04-18T03:44:15.000000Z", // チャージQRコード自体の失効日時 + point_expires_at: "2020-12-06T19:49:13.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + point_expires_in_days: 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID + is_disabled: true // 無効化されているかどうかのフラグ +})); +``` + + + +### Parameters +**`check_id`** + + +更新対象のチャージQRコードのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`money_amount`** + + +チャージQRコードによって付与されるマネー額です。 +`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`point_amount`** + + +チャージQRコードによって付与されるポイント額です。 +`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`description`** + + +チャージQRコードの説明文です。 +チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`is_onetime`** + + +チャージQRコードが一度の読み取りで失効するときに`true`にします。 +`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 +ただし、その場合も1ユーザにつき1回のみしか読み取れません。 + + +```json +{ + "type": "boolean" +} +``` + +**`usage_limit`** + + +複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 +NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 +ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 + + +```json +{ + "type": "integer" +} +``` + +**`expires_at`** + + +チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。 + +チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_at`** + + +チャージQRコードによって付与されるポイント残高の有効起源を指定します。 + +チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_in_days`** + + +チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 +1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 +`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 +`point_expires_at`と`point_expires_in_days`が両方NULLに設定されている場合は、マネーに設定されている残高の有効期限と同じになります。 + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`bear_point_account`** + + +ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_disabled`** + + +チャージQRコードを無効化するときに`true`にします。 +`false`の場合は無効化されているチャージQRコードを再有効化します。 + + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[Check](./responses.md#check) +を返します + + +--- + + + +## CreateTopupTransactionWithCheck: チャージQRコードを読み取ることでチャージする +通常チャージQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがチャージQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 + +エンドユーザーから受け取ったチャージ用QRコードのIDをエンドユーザーIDと共に渡すことでチャージ取引が作られます。 + + +```typescript +const response: Response = await client.send(new CreateTopupTransactionWithCheck({ + check_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // チャージ用QRコードのID + customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーのID + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +})); +``` + + + +### Parameters +**`check_id`** + + +チャージ用QRコードのIDです。 + +QRコード生成時に送金元店舗のウォレット情報や、送金額などが登録されています。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +送金先のエンドユーザーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + diff --git a/docs/coupon.md b/docs/coupon.md new file mode 100644 index 0000000..ada5c5f --- /dev/null +++ b/docs/coupon.md @@ -0,0 +1,703 @@ +# Coupon +Couponは支払い時に指定し、支払い処理の前にCouponに指定の方法で値引き処理を行います。 +Couponは特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 + + + +## ListCoupons: クーポン一覧の取得 +指定したマネーのクーポン一覧を取得します + +```typescript +const response: Response = await client.send(new ListCoupons({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 対象クーポンのマネーID + coupon_id: "bkQVRY8Muh", // クーポンID + coupon_name: "wDy", // クーポン名 + issued_shop_name: "lFo5mD", // 発行店舗名 + available_shop_name: "Jw8V3XaTOk", // 利用可能店舗名 + available_from: "2022-05-02T17:52:06.000000Z", // 利用可能期間 (開始日時) + available_to: "2023-06-21T19:23:15.000000Z", // 利用可能期間 (終了日時) + page: 1, // ページ番号 + per_page: 50 // 1ページ分の取得数 +})); +``` + + + +### Parameters +**`private_money_id`** + + +対象クーポンのマネーIDです(必須項目)。 +存在しないマネーIDを指定した場合はprivate_money_not_foundエラー(422)が返ります。 + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`coupon_id`** + + +指定されたクーポンIDで結果をフィルターします。 +部分一致(前方一致)します。 + + +```json +{ + "type": "string" +} +``` + +**`coupon_name`** + + +指定されたクーポン名で結果をフィルターします。 + + +```json +{ + "type": "string" +} +``` + +**`issued_shop_name`** + + +指定された発行店舗で結果をフィルターします。 + + +```json +{ + "type": "string" +} +``` + +**`available_shop_name`** + + +指定された利用可能店舗で結果をフィルターします。 + + +```json +{ + "type": "string" +} +``` + +**`available_from`** + + +利用可能期間でフィルターします。フィルターの開始日時をISO8601形式で指定します。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`available_to`** + + +利用可能期間でフィルターします。フィルターの終了日時をISO8601形式で指定します。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 50 になっています。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedCoupons](./responses.md#paginated-coupons) +を返します + + +--- + + + +## CreateCoupon: クーポンの登録 +新しいクーポンを登録します + +```typescript +const response: Response = await client.send(new CreateCoupon({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + name: "DFDXkJRYuzmNrD0IPFMYcPpoEq", + starts_at: "2023-02-03T19:51:10.000000Z", + ends_at: "2021-11-27T11:49:55.000000Z", + issued_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行元の店舗ID + description: "qYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxd", + discount_amount: 8182, + discount_percentage: 1010.0, + discount_upper_limit: 4673, + display_starts_at: "2022-12-25T05:08:47.000000Z", // クーポンの掲載期間(開始日時) + display_ends_at: "2021-10-02T17:22:12.000000Z", // クーポンの掲載期間(終了日時) + is_disabled: false, // 無効化フラグ + is_hidden: true, // クーポン一覧に掲載されるかどうか + is_public: true, // アプリ配信なしで受け取れるかどうか + code: "n", // クーポン受け取りコード + usage_limit: 1090, // ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount: 3250, // クーポン適用可能な最小取引額 + is_shop_specified: true, // 特定店舗限定のクーポンかどうか + available_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト + storage_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ストレージID +})); +``` + +`is_shop_specified`と`available_shop_ids`は同時に指定する必要があります。 + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + + +```json +{ + "type": "string", + "maxLength": 128 +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`discount_amount`** + + + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`discount_percentage`** + + + +```json +{ + "type": "number", + "minimum": 0 +} +``` + +**`discount_upper_limit`** + + + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`starts_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`ends_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`display_starts_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`display_ends_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`is_disabled`** + + + +```json +{ + "type": "boolean" +} +``` + +**`is_hidden`** + + +アプリに表示されるクーポン一覧に掲載されるかどうか。 +主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 + + +```json +{ + "type": "boolean" +} +``` + +**`is_public`** + + + +```json +{ + "type": "boolean" +} +``` + +**`code`** + + + +```json +{ + "type": "string" +} +``` + +**`usage_limit`** + + + +```json +{ + "type": "integer" +} +``` + +**`min_amount`** + + + +```json +{ + "type": "integer" +} +``` + +**`issued_shop_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_shop_specified`** + + + +```json +{ + "type": "boolean" +} +``` + +**`available_shop_ids`** + + + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`storage_id`** + + +Storage APIでアップロードしたクーポン画像のStorage IDを指定します + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[CouponDetail](./responses.md#coupon-detail) +を返します + + +--- + + + +## GetCoupon: クーポンの取得 +指定したIDを持つクーポンを取得します + +```typescript +const response: Response = await client.send(new GetCoupon({ + coupon_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // クーポンID +})); +``` + + + +### Parameters +**`coupon_id`** + + +取得するクーポンのIDです。 +UUIDv4フォーマットである必要があり、フォーマットが異なる場合は InvalidParametersエラー(400)が返ります。 +指定したIDのクーポンが存在しない場合はCouponNotFoundエラー(422)が返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[CouponDetail](./responses.md#coupon-detail) +を返します + + +--- + + + +## UpdateCoupon: クーポンの更新 +指定したクーポンを更新します + +```typescript +const response: Response = await client.send(new UpdateCoupon({ + coupon_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // クーポンID + name: "JrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0u", + description: "guDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P", + discount_amount: 1159, + discount_percentage: 1312.0, + discount_upper_limit: 1476, + starts_at: "2023-04-10T09:31:34.000000Z", + ends_at: "2023-02-12T20:04:21.000000Z", + display_starts_at: "2024-01-04T08:26:32.000000Z", // クーポンの掲載期間(開始日時) + display_ends_at: "2023-07-30T04:28:05.000000Z", // クーポンの掲載期間(終了日時) + is_disabled: true, // 無効化フラグ + is_hidden: true, // クーポン一覧に掲載されるかどうか + is_public: false, // アプリ配信なしで受け取れるかどうか + code: "j", // クーポン受け取りコード + usage_limit: 9892, // ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount: 8114, // クーポン適用可能な最小取引額 + is_shop_specified: true, // 特定店舗限定のクーポンかどうか + available_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト + storage_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ストレージID +})); +``` + + +`discount_amount`と`discount_percentage`の少なくとも一方は指定する必要があります。 + + + +### Parameters +**`coupon_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + + +```json +{ + "type": "string", + "maxLength": 128 +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`discount_amount`** + + + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`discount_percentage`** + + + +```json +{ + "type": "number", + "minimum": 0 +} +``` + +**`discount_upper_limit`** + + + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`starts_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`ends_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`display_starts_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`display_ends_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`is_disabled`** + + + +```json +{ + "type": "boolean" +} +``` + +**`is_hidden`** + + +アプリに表示されるクーポン一覧に掲載されるかどうか。 +主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 + + +```json +{ + "type": "boolean" +} +``` + +**`is_public`** + + + +```json +{ + "type": "boolean" +} +``` + +**`code`** + + + +```json +{ + "type": "string" +} +``` + +**`usage_limit`** + + + +```json +{ + "type": "integer" +} +``` + +**`min_amount`** + + + +```json +{ + "type": "integer" +} +``` + +**`is_shop_specified`** + + + +```json +{ + "type": "boolean" +} +``` + +**`available_shop_ids`** + + + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`storage_id`** + + +Storage APIでアップロードしたクーポン画像のStorage IDを指定します + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[CouponDetail](./responses.md#coupon-detail) +を返します + + +--- + + + diff --git a/docs/customer.md b/docs/customer.md new file mode 100644 index 0000000..e2984f6 --- /dev/null +++ b/docs/customer.md @@ -0,0 +1,1001 @@ +# Customer + + +## GetAccount: ウォレット情報を表示する +ウォレットを取得します。 + +```typescript +const response: Response = await client.send(new GetAccount({ + account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID +})); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +フィルターとして使われ、指定したウォレットIDのウォレットを取得します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[AccountDetail](./responses.md#account-detail) +を返します + + +--- + + + +## UpdateAccount: ウォレット情報を更新する +ウォレットの状態を更新します。 +以下の項目が変更できます。 + +- ウォレットの凍結/凍結解除の切り替え(エンドユーザー、店舗ユーザー共通) +- 店舗でチャージ可能かどうか(店舗ユーザのみ) + +エンドユーザーのウォレット情報更新には UpdateCustomerAccount が使用できます。 + +```typescript +const response: Response = await client.send(new UpdateAccount({ + account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID + is_suspended: true, // ウォレットが凍結されているかどうか + status: "active", // ウォレット状態 + can_transfer_topup: true // チャージ可能かどうか +})); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +指定したウォレットIDのウォレットの状態を更新します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_suspended`** + + +ウォレットの凍結状態です。真にするとウォレットが凍結され、そのウォレットでは新規取引ができなくなります。偽にすると凍結解除されます。 + +```json +{ + "type": "boolean" +} +``` + +**`status`** + + +ウォレットの状態です。 + +```json +{ + "type": "string", + "enum": [ + "active", + "suspended", + "pre-closed" + ] +} +``` + +**`can_transfer_topup`** + + +店舗ユーザーがエンドユーザーにチャージ可能かどうかです。真にするとチャージ可能となり、偽にするとチャージ不可能となります。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[AccountDetail](./responses.md#account-detail) +を返します + + +--- + + + +## DeleteAccount: ウォレットを退会する +ウォレットを退会します。一度ウォレットを退会した後は、そのウォレットを再び利用可能な状態に戻すことは出来ません。 + +```typescript +const response: Response = await client.send(new DeleteAccount({ + account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID + cashback: false // 返金有無 +})); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +指定したウォレットIDのウォレットを退会します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`cashback`** + + +退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[AccountDeleted](./responses.md#account-deleted) +を返します + + +--- + + + +## ListAccountBalances: エンドユーザーの残高内訳を表示する +エンドユーザーのウォレット毎の残高を有効期限別のリストとして取得します。 + +```typescript +const response: Response = await client.send(new ListAccountBalances({ + account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID + page: 4864, // ページ番号 + per_page: 2363, // 1ページ分の取引数 + expires_at_from: "2022-10-29T13:58:49.000000Z", // 有効期限の期間によるフィルター(開始時点) + expires_at_to: "2022-12-20T05:38:25.000000Z", // 有効期限の期間によるフィルター(終了時点) + direction: "desc" // 有効期限によるソート順序 +})); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。デフォルト値は1です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分のウォレット残高数です。デフォルト値は30です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`expires_at_from`** + + +有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`expires_at_to`** + + +有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`direction`** + + +有効期限によるソートの順序を指定します。デフォルト値はasc (昇順)です。 + +```json +{ + "type": "string", + "enum": [ + "asc", + "desc" + ] +} +``` + + + +成功したときは +[PaginatedAccountBalance](./responses.md#paginated-account-balance) +を返します + + +--- + + + +## ListAccountExpiredBalances: エンドユーザーの失効済みの残高内訳を表示する +エンドユーザーのウォレット毎の失効済みの残高を有効期限別のリストとして取得します。 + +```typescript +const response: Response = await client.send(new ListAccountExpiredBalances({ + account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID + page: 9610, // ページ番号 + per_page: 2603, // 1ページ分の取引数 + expires_at_from: "2020-05-11T07:12:37.000000Z", // 有効期限の期間によるフィルター(開始時点) + expires_at_to: "2022-01-18T11:04:15.000000Z", // 有効期限の期間によるフィルター(終了時点) + direction: "asc" // 有効期限によるソート順序 +})); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。デフォルト値は1です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分のウォレット残高数です。デフォルト値は30です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`expires_at_from`** + + +有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`expires_at_to`** + + +有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`direction`** + + +有効期限によるソートの順序を指定します。デフォルト値はdesc (降順)です。 + +```json +{ + "type": "string", + "enum": [ + "asc", + "desc" + ] +} +``` + + + +成功したときは +[PaginatedAccountBalance](./responses.md#paginated-account-balance) +を返します + + +--- + + + +## UpdateCustomerAccount: エンドユーザーのウォレット情報を更新する +エンドユーザーのウォレットの状態を更新します。 + +```typescript +const response: Response = await client.send(new UpdateCustomerAccount({ + account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID + status: "pre-closed", // ウォレット状態 + account_name: "kLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbee", // アカウント名 + external_id: "KUX", // 外部ID + metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" // ウォレットに付加するメタデータ +})); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +指定したウォレットIDのウォレットの状態を更新します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`status`** + + +ウォレットの状態です。 + +```json +{ + "type": "string", + "enum": [ + "active", + "suspended", + "pre-closed" + ] +} +``` + +**`account_name`** + + +変更するウォレット名です。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`external_id`** + + +変更する外部IDです。 + +```json +{ + "type": "string", + "maxLength": 50 +} +``` + +**`metadata`** + + +ウォレットに付加するメタデータをJSON文字列で指定します。 +指定できるJSON文字列には以下のような制約があります。 +- フラットな構造のJSONを文字列化したものであること。 +- keyは最大32文字の文字列(同じkeyを複数指定することはできません) +- valueには128文字以下の文字列が指定できます + +更新時に指定した内容でメタデータ全体が置き換えられることに注意してください。 +例えば、元々のメタデータが以下だったときに、 + +'{"key1":"foo","key2":"bar"}' + +更新APIで以下のように更新するとします。 + +'{"key1":"baz"}' + +このときkey1はfooからbazに更新され、key2に対するデータは消去されます。 + +```json +{ + "type": "string", + "format": "json" +} +``` + + + +成功したときは +[AccountWithUser](./responses.md#account-with-user) +を返します + + +--- + + + +## GetCustomerAccounts: エンドユーザーのウォレット一覧を表示する +マネーを指定してエンドユーザーのウォレット一覧を取得します。 + +```typescript +const response: Response = await client.send(new GetCustomerAccounts({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + page: 8901, // ページ番号 + per_page: 9982, // 1ページ分のウォレット数 + created_at_from: "2022-05-12T14:01:20.000000Z", // ウォレット作成日によるフィルター(開始時点) + created_at_to: "2021-08-01T07:54:25.000000Z", // ウォレット作成日によるフィルター(終了時点) + is_suspended: true, // ウォレットが凍結状態かどうかでフィルターする + status: "active", // ウォレット状態 + external_id: "vqgIch5W6XuTL0vlIdvd", // 外部ID + tel: "072777-896", // エンドユーザーの電話番号 + email: "BXoKUl0tR0@7369.com" // エンドユーザーのメールアドレス +})); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +一覧するウォレットのマネーを指定します。このパラメータは必須です。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。デフォルト値は1です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分のウォレット数です。デフォルト値は30です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`created_at_from`** + + +ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`created_at_to`** + + +ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`is_suspended`** + + +このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 + +```json +{ + "type": "boolean" +} +``` + +**`status`** + + +このパラメータが指定されている場合、ウォレットの状態で結果がフィルターされます。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "enum": [ + "active", + "suspended", + "pre-closed" + ] +} +``` + +**`external_id`** + + +外部IDでのフィルタリングです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "maxLength": 50 +} +``` + +**`tel`** + + +エンドユーザーの電話番号でのフィルタリングです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$" +} +``` + +**`email`** + + +エンドユーザーのメールアドレスでのフィルタリングです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "email" +} +``` + + + +成功したときは +[PaginatedAccountWithUsers](./responses.md#paginated-account-with-users) +を返します + + +--- + + + +## CreateCustomerAccount: 新規エンドユーザーをウォレットと共に追加する +指定したマネーのウォレットを作成し、同時にそのウォレットを保有するユーザも新規に作成します。 +このAPIにより作成されたユーザは認証情報を持たないため、モバイルSDKやポケペイ標準アプリからはログインすることはできません。 +Partner APIのみから操作可能な特殊なユーザになります。 +システム全体をPartner APIのみで構成する場合にのみ使用してください。 + +```typescript +const response: Response = await client.send(new CreateCustomerAccount({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + user_name: "ポケペイ太郎", // ユーザー名 + account_name: "ポケペイ太郎のアカウント", // アカウント名 + external_id: "BiPR32MXZafz3jf" // 外部ID +})); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +これによって作成するウォレットのマネーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`user_name`** + + +ウォレットと共に作成するユーザ名です。省略した場合は空文字となります。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`account_name`** + + +作成するウォレット名です。省略した場合は空文字となります。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`external_id`** + + +PAPIクライアントシステムから利用するPokepayユーザーのIDです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "maxLength": 50 +} +``` + + + +成功したときは +[AccountWithUser](./responses.md#account-with-user) +を返します + + +--- + + + +## GetShopAccounts: 店舗ユーザーのウォレット一覧を表示する +マネーを指定して店舗ユーザーのウォレット一覧を取得します。 + +```typescript +const response: Response = await client.send(new GetShopAccounts({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + page: 5375, // ページ番号 + per_page: 7186, // 1ページ分のウォレット数 + created_at_from: "2020-02-09T06:31:25.000000Z", // ウォレット作成日によるフィルター(開始時点) + created_at_to: "2020-04-03T10:25:10.000000Z", // ウォレット作成日によるフィルター(終了時点) + is_suspended: false // ウォレットが凍結状態かどうかでフィルターする +})); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +一覧するウォレットのマネーを指定します。このパラメータは必須です。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。デフォルト値は1です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分のウォレット数です。デフォルト値は30です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`created_at_from`** + + +ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`created_at_to`** + + +ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`is_suspended`** + + +このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[PaginatedAccountWithUsers](./responses.md#paginated-account-with-users) +を返します + + +--- + + + +## ListCustomerTransactions: 取引履歴を取得する +取引一覧を返します。 + +```typescript +const response: Response = await client.send(new ListCustomerTransactions({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + sender_customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金エンドユーザーID + receiver_customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受取エンドユーザーID + type: "topup", // 取引種別 + is_modified: false, // キャンセル済みかどうか + from: "2021-06-10T14:16:07.000000Z", // 開始日時 + to: "2022-04-02T20:02:52.000000Z", // 終了日時 + page: 1, // ページ番号 + per_page: 50 // 1ページ分の取引数 +})); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 +フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`sender_customer_id`** + + +送金ユーザーIDです。 + +フィルターとして使われ、指定された送金ユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`receiver_customer_id`** + + +受取ユーザーIDです。 + +フィルターとして使われ、指定された受取ユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`type`** + + +取引の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) +2. payment + エンドユーザーから店舗への送金取引(支払い) +3. exchange + 他マネーへの流出(outflow)/他マネーからの流入(inflow) +4. transfer + 個人間送金 +5. cashback + ウォレット退会時返金 +6. expire + ウォレット退会時失効 + +```json +{ + "type": "string", + "enum": [ + "topup", + "payment", + "exchange", + "transfer", + "cashback", + "expire" + ] +} +``` + +**`is_modified`** + + +キャンセル済みかどうかを判定するフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +falseを指定するとキャンセルされていない取引のみ一覧に表示されます +何も指定しなければキャンセルの有無にかかわらず一覧に表示されます。 + +```json +{ + "type": "boolean" +} +``` + +**`from`** + + +抽出期間の開始日時です。 + +フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + +抽出期間の終了日時です。 + +フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取引数です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedTransaction](./responses.md#paginated-transaction) +を返します + + +--- + + + diff --git a/docs/event.md b/docs/event.md new file mode 100644 index 0000000..32fc89e --- /dev/null +++ b/docs/event.md @@ -0,0 +1,222 @@ +# Event + + +## CreateExternalTransaction: ポケペイ外部取引を作成する +ポケペイ外部取引を作成します。 + +ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。 + + +```typescript +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: 9453, // 取引額 + description: "たい焼き(小倉)", // 取引説明文 + metadata: "{\"key\":\"value\"}", // ポケペイ外部取引メタデータ + products: [{"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "is_discounted": false, + "other":"{}"}], // 商品情報データ + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +})); +``` + + + +### Parameters +**`shop_id`** + + +店舗IDです。 + +ポケペイ外部取引が行なう店舗を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +エンドユーザーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +マネーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +取引金額です。 + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`description`** + + +取引説明文です。 + +任意入力で、取引履歴に表示される説明文です。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`metadata`** + + +ポケペイ外部取引作成時に指定され、取引と紐付けられるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSONで指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`products`** + + +一つの取引に含まれる商品情報データです。 +以下の内容からなるJSONオブジェクトの配列で指定します。 + +- `jan_code`: JANコード。64字以下の文字列 +- `name`: 商品名。256字以下の文字列 +- `unit_price`: 商品単価。0以上の数値 +- `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean +- `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[ExternalTransactionDetail](./responses.md#external-transaction-detail) +を返します + + +--- + + + +## RefundExternalTransaction: ポケペイ外部取引をキャンセルする +取引IDを指定して取引をキャンセルします。 + +発行体の管理者は自組織の直営店、または発行しているマネーの決済加盟店組織での取引をキャンセルできます。 +キャンセル対象のポケペイ外部取引に付随するポイント還元キャンペーンも取り消されます。 + +取引をキャンセルできるのは1回きりです。既にキャンセルされた取引を重ねてキャンセルしようとすると `transaction_already_refunded (422)` エラーが返ります。 + +```typescript +const response: Response = await client.send(new RefundExternalTransaction({ + event_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID + description: "返品対応のため" // 取引履歴に表示する返金事由 +})); +``` + + + +### Parameters +**`event_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + + + +成功したときは +[ExternalTransactionDetail](./responses.md#external-transaction-detail) +を返します + + +--- + + + diff --git a/docs/organization.md b/docs/organization.md new file mode 100644 index 0000000..5f98782 --- /dev/null +++ b/docs/organization.md @@ -0,0 +1,273 @@ +# Organization + + +## ListOrganizations: 加盟店組織の一覧を取得する + +```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: "GERnFdcW", // 組織名 + code: "SdaJfJ60D" // 組織コード +})); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 +このマネーに加盟している加盟組織がフィルターされます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取引数です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`name`** + + + +```json +{ + "type": "string" +} +``` + +**`code`** + + + +```json +{ + "type": "string" +} +``` + + + +成功したときは +[PaginatedOrganizations](./responses.md#paginated-organizations) +を返します + + +--- + + + +## CreateOrganization: 新規加盟店組織を追加する + +```typescript +const response: Response = await client.send(new CreateOrganization({ + code: "ox-supermarket", // 新規組織コード + name: "oxスーパー", // 新規組織名 + private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 加盟店組織で有効にするマネーIDの配列 + issuer_admin_user_email: "H2T0aKhnL3@FlnA.com", // 発行体担当者メールアドレス + member_admin_user_email: "D82QrpYaKu@slNr.com", // 新規組織担当者メールアドレス + bank_name: "XYZ銀行", // 銀行名 + bank_code: "1234", // 銀行金融機関コード + bank_branch_name: "ABC支店", // 銀行支店名 + bank_branch_code: "123", // 銀行支店コード + bank_account_type: "current", // 銀行口座種別 (普通=saving, 当座=current, その他=other) + bank_account: "1234567", // 銀行口座番号 + bank_account_holder_name: "フクザワユキチ", // 口座名義人名 + contact_name: "佐藤清" // 担当者名 +})); +``` + + + +### Parameters +**`code`** + + + +```json +{ + "type": "string", + "maxLength": 32 +} +``` + +**`name`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`private_money_ids`** + + + +```json +{ + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`issuer_admin_user_email`** + + + +```json +{ + "type": "string", + "format": "email" +} +``` + +**`member_admin_user_email`** + + + +```json +{ + "type": "string", + "format": "email" +} +``` + +**`bank_name`** + + + +```json +{ + "type": "string", + "maxLength": 64 +} +``` + +**`bank_code`** + + + +```json +{ + "type": "string", + "pattern": "^$|^[0-9]{4}$" +} +``` + +**`bank_branch_name`** + + + +```json +{ + "type": "string", + "maxLength": 64 +} +``` + +**`bank_branch_code`** + + + +```json +{ + "type": "string", + "pattern": "^(|[0-9]{3})$" +} +``` + +**`bank_account_type`** + + + +```json +{ + "type": "string", + "enum": [ + "saving", + "current", + "other" + ] +} +``` + +**`bank_account`** + + + +```json +{ + "type": "string", + "maxLength": 7, + "pattern": "[0-9]{0,7}" +} +``` + +**`bank_account_holder_name`** + + + +```json +{ + "type": "string", + "maxLength": 30, + "pattern": "^[0-9A-Zヲア-゚ (-),-/\\\\「-」]$" +} +``` + +**`contact_name`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + + + +成功したときは +[Organization](./responses.md#organization) +を返します + + +--- + + + diff --git a/docs/private_money.md b/docs/private_money.md new file mode 100644 index 0000000..8b5490d --- /dev/null +++ b/docs/private_money.md @@ -0,0 +1,204 @@ +# Private Money + + +## GetPrivateMoneys: マネー一覧を取得する +マネーの一覧を取得します。 +パートナーキーの管理者が発行体組織に属している場合、自組織が加盟または発行しているマネーの一覧を返します。また、`organization_code`として決済加盟店の組織コードを指定した場合、発行マネーのうち、その決済加盟店組織が加盟しているマネーの一覧を返します。 +パートナーキーの管理者が決済加盟店組織に属している場合は、自組織が加盟しているマネーの一覧を返します。 + +```typescript +const response: Response = await client.send(new GetPrivateMoneys({ + organization_code: "ox-supermarket", // 組織コード + page: 1, // ページ番号 + per_page: 50 // 1ページ分の取得数 +})); +``` + + + +### Parameters +**`organization_code`** + + +パートナーキーの管理者が発行体組織に属している場合、発行マネーのうち、この組織コードで指定した決済加盟店組織が加盟しているマネーの一覧を返します。決済加盟店組織の管理者は自組織以外を指定することはできません。 + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedPrivateMoneys](./responses.md#paginated-private-moneys) +を返します + + +--- + + + +## GetPrivateMoneyOrganizationSummaries: 決済加盟店の取引サマリを取得する + +```typescript +const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + from: "2020-03-27T12:54:11.000000Z", // 開始日時(toと同時に指定する必要有) + to: "2020-05-10T02:22:04.000000Z", // 終了日時(fromと同時に指定する必要有) + page: 1, // ページ番号 + per_page: 50 // 1ページ分の取引数 +})); +``` + +`from`と`to`は同時に指定する必要があります。 + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`from`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedPrivateMoneyOrganizationSummaries](./responses.md#paginated-private-money-organization-summaries) +を返します + + +--- + + + +## GetPrivateMoneySummary: 取引サマリを取得する + +```typescript +const response: Response = await client.send(new GetPrivateMoneySummary({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + from: "2020-04-17T04:38:29.000000Z", // 開始日時 + to: "2022-03-25T04:16:14.000000Z" // 終了日時 +})); +``` + + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`from`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + + + +成功したときは +[PrivateMoneySummary](./responses.md#private-money-summary) +を返します + + +--- + + + diff --git a/docs/responses.md b/docs/responses.md new file mode 100644 index 0000000..cfbdc9a --- /dev/null +++ b/docs/responses.md @@ -0,0 +1,728 @@ +# Responses + +## AdminUserWithShopsAndPrivateMoneys +* `id (string)`: +* `role (string)`: +* `email (string)`: +* `name (string)`: +* `is_active (boolean)`: +* `organization (Organization)`: +* `shops (User[])`: +* `private_moneys (PrivateMoney[])`: + +`organization`は [Organization](#organization) オブジェクトを返します。 + +`shops`は [User](#user) オブジェクトの配列を返します。 + +`private-moneys`は [PrivateMoney](#private-money) オブジェクトの配列を返します。 + + +## AccountWithUser +* `id (string)`: +* `name (string)`: +* `is_suspended (boolean)`: +* `status (string)`: +* `private_money (PrivateMoney)`: +* `user (User)`: + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + +`user`は [User](#user) オブジェクトを返します。 + + +## AccountDetail +* `id (string)`: +* `name (string)`: +* `is_suspended (boolean)`: +* `status (string)`: +* `balance (number)`: +* `money_balance (number)`: +* `point_balance (number)`: +* `point_debt (number)`: +* `private_money (PrivateMoney)`: +* `user (User)`: +* `external_id (string)`: + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + +`user`は [User](#user) オブジェクトを返します。 + + +## AccountDeleted + + +## Bill +* `id (string)`: 支払いQRコードのID +* `amount (number)`: 支払い額 +* `max_amount (number)`: 支払い額を範囲指定した場合の上限 +* `min_amount (number)`: 支払い額を範囲指定した場合の下限 +* `description (string)`: 支払いQRコードの説明文(アプリ上で取引の説明文として表示される) +* `account (AccountWithUser)`: 支払いQRコード発行ウォレット +* `is_disabled (boolean)`: 無効化されているかどうか +* `token (string)`: 支払いQRコードを解析したときに出てくるURL + +`account`は [AccountWithUser](#account-with-user) オブジェクトを返します。 + + +## Check +* `id (string)`: チャージQRコードのID +* `created_at (string)`: チャージQRコードの作成日時 +* `amount (number)`: チャージマネー額 (deprecated) +* `money_amount (number)`: チャージマネー額 +* `point_amount (number)`: チャージポイント額 +* `description (string)`: チャージQRコードの説明文(アプリ上で取引の説明文として表示される) +* `user (User)`: 送金元ユーザ情報 +* `is_onetime (boolean)`: 使用回数が一回限りかどうか +* `is_disabled (boolean)`: 無効化されているかどうか +* `expires_at (string)`: チャージQRコード自体の失効日時 +* `last_used_at (string)`: +* `private_money (PrivateMoney)`: 対象マネー情報 +* `usage_limit (number)`: 一回限りでない場合の最大読み取り回数 +* `usage_count (number)`: 一回限りでない場合の現在までに読み取られた回数 +* `point_expires_at (string)`: ポイント有効期限(絶対日数指定) +* `point_expires_in_days (number)`: ポイント有効期限(相対日数指定) +* `token (string)`: チャージQRコードを解析したときに出てくるURL + +`user`は [User](#user) オブジェクトを返します。 + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## PaginatedChecks +* `rows (Check[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [Check](#check) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## CpmToken +* `cpm_token (string)`: +* `account (AccountDetail)`: +* `transaction (Transaction)`: +* `event (ExternalTransaction)`: +* `scopes (string[])`: 許可された取引種別 +* `expires_at (string)`: CPMトークンの失効日時 +* `metadata (string)`: エンドユーザー側メタデータ + +`account`は [AccountDetail](#account-detail) オブジェクトを返します。 + +`transaction`は [Transaction](#transaction) オブジェクトを返します。 + +`event`は [ExternalTransaction](#external-transaction) オブジェクトを返します。 + + +## Cashtray +* `id (string)`: Cashtray自体のIDです。 +* `amount (number)`: 取引金額 +* `description (string)`: Cashtrayの説明文 +* `account (AccountWithUser)`: 発行店舗のウォレット +* `expires_at (string)`: Cashtrayの失効日時 +* `canceled_at (string)`: Cashtrayの無効化日時。NULLの場合は無効化されていません +* `token (string)`: CashtrayのQRコードを解析したときに出てくるURL + +`account`は [AccountWithUser](#account-with-user) オブジェクトを返します。 + + +## CashtrayWithResult +* `id (string)`: CashtrayのID +* `amount (number)`: 取引金額 +* `description (string)`: Cashtrayの説明文(アプリ上で取引の説明文として表示される) +* `account (AccountWithUser)`: 発行店舗のウォレット +* `expires_at (string)`: Cashtrayの失効日時 +* `canceled_at (string)`: Cashtrayの無効化日時。NULLの場合は無効化されていません +* `token (string)`: CashtrayのQRコードを解析したときに出てくるURL +* `attempt (CashtrayAttempt)`: Cashtray読み取り結果 +* `transaction (Transaction)`: 取引結果 + +`account`は [AccountWithUser](#account-with-user) オブジェクトを返します。 + +`attempt`は [CashtrayAttempt](#cashtray-attempt) オブジェクトを返します。 + +`transaction`は [Transaction](#transaction) オブジェクトを返します。 + + +## User +* `id (string)`: ユーザー (または店舗) ID +* `name (string)`: ユーザー (または店舗) 名 +* `is_merchant (boolean)`: 店舗ユーザーかどうか + + +## Organization +* `code (string)`: 組織コード +* `name (string)`: 組織名 + + +## TransactionDetail +* `id (string)`: 取引ID +* `type (string)`: 取引種別 +* `is_modified (boolean)`: 返金された取引かどうか +* `sender (User)`: 送金者情報 +* `sender_account (Account)`: 送金ウォレット情報 +* `receiver (User)`: 受取者情報 +* `receiver_account (Account)`: 受取ウォレット情報 +* `amount (number)`: 取引総額 (マネー額 + ポイント額) +* `money_amount (number)`: 取引マネー額 +* `point_amount (number)`: 取引ポイント額(キャンペーン付与ポイント合算) +* `raw_point_amount (number)`: 取引ポイント額 +* `campaign_point_amount (number)`: キャンペーンによるポイント付与額 +* `done_at (string)`: 取引日時 +* `description (string)`: 取引説明文 +* `transfers (Transfer[])`: + +`receiver`と`sender`は [User](#user) オブジェクトを返します。 + +`receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。 + +`transfers`は [Transfer](#transfer) オブジェクトの配列を返します。 + + +## ShopWithAccounts +* `id (string)`: 店舗ID +* `name (string)`: 店舗名 +* `organization_code (string)`: 組織コード +* `status (string)`: 店舗の状態 +* `postal_code (string)`: 店舗の郵便番号 +* `address (string)`: 店舗の住所 +* `tel (string)`: 店舗の電話番号 +* `email (string)`: 店舗のメールアドレス +* `external_id (string)`: 店舗の外部ID +* `accounts (ShopAccount[])`: + +`accounts`は [ShopAccount](#shop-account) オブジェクトの配列を返します。 + + +## BulkTransaction +* `id (string)`: +* `request_id (string)`: リクエストID +* `name (string)`: バルク取引管理用の名前 +* `description (string)`: バルク取引管理用の説明文 +* `status (string)`: バルク取引の状態 +* `error (string)`: バルク取引のエラー種別 +* `error_lineno (number)`: バルク取引のエラーが発生した行番号 +* `submitted_at (string)`: バルク取引が登録された日時 +* `updated_at (string)`: バルク取引が更新された日時 + + +## PaginatedBulkTransactionJob +* `rows (BulkTransactionJob[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [BulkTransactionJob](#bulk-transaction-job) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## ExternalTransactionDetail +* `id (string)`: ポケペイ外部取引ID +* `is_modified (boolean)`: 返金された取引かどうか +* `sender (User)`: 送金者情報 +* `sender_account (Account)`: 送金ウォレット情報 +* `receiver (User)`: 受取者情報 +* `receiver_account (Account)`: 受取ウォレット情報 +* `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[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [PrivateMoneyOrganizationSummary](#private-money-organization-summary) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PrivateMoneySummary +* `topup_amount (number)`: +* `refunded_topup_amount (number)`: +* `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)`: +* `transaction_count (number)`: + + +## UserStatsOperation +* `id (string)`: 集計処理ID +* `from (string)`: 集計期間の開始時刻 +* `to (string)`: 集計期間の終了時刻 +* `status (string)`: 集計処理の実行ステータス +* `error_reason (string)`: エラーとなった理由 +* `done_at (string)`: 集計処理の完了時刻 +* `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[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [Transaction](#transaction) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedTransactionV2 +* `rows (Transaction[])`: +* `per_page (number)`: +* `count (number)`: +* `next_page_cursor_id (string)`: +* `prev_page_cursor_id (string)`: + +`rows`は [Transaction](#transaction) オブジェクトの配列を返します。 + + +## PaginatedTransfers +* `rows (Transfer[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [Transfer](#transfer) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedTransfersV2 +* `rows (Transfer[])`: +* `per_page (number)`: +* `count (number)`: +* `next_page_cursor_id (string)`: +* `prev_page_cursor_id (string)`: + +`rows`は [Transfer](#transfer) オブジェクトの配列を返します。 + + +## PaginatedAccountWithUsers +* `rows (AccountWithUser[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [AccountWithUser](#account-with-user) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedAccountDetails +* `rows (AccountDetail[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [AccountDetail](#account-detail) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedAccountBalance +* `rows (AccountBalance[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [AccountBalance](#account-balance) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedShops +* `rows (ShopWithMetadata[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [ShopWithMetadata](#shop-with-metadata) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedBills +* `rows (Bill[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [Bill](#bill) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedPrivateMoneys +* `rows (PrivateMoney[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [PrivateMoney](#private-money) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## Campaign +* `id (string)`: キャンペーンID +* `name (string)`: キャペーン名 +* `applicable_shops (User[])`: キャンペーン適用対象の店舗リスト +* `is_exclusive (boolean)`: キャンペーンの重複を許すかどうかのフラグ +* `starts_at (string)`: キャンペーン開始日時 +* `ends_at (string)`: キャンペーン終了日時 +* `point_expires_at (string)`: キャンペーンによって付与されるポイントの失効日時 +* `point_expires_in_days (number)`: キャンペーンによって付与されるポイントの有効期限(相対指定、単位は日) +* `priority (number)`: キャンペーンの優先順位 +* `description (string)`: キャンペーン説明文 +* `bear_point_shop (User)`: ポイントを負担する店舗 +* `private_money (PrivateMoney)`: キャンペーンを適用するマネー +* `dest_private_money (PrivateMoney)`: ポイントを付与するマネー +* `max_total_point_amount (number)`: 一人当たりの累計ポイント上限 +* `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) オブジェクトの配列を返します。 + +`bear_point_shop`は [User](#user) オブジェクトを返します。 + +`dest_private_money`と`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## PaginatedCampaigns +* `rows (Campaign[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [Campaign](#campaign) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## AccountTransferSummary +* `summaries (AccountTransferSummaryElement[])`: + +`summaries`は [AccountTransferSummaryElement](#account-transfer-summary-element) オブジェクトの配列を返します。 + + +## OrganizationWorkerTaskWebhook +* `id (string)`: +* `organization_code (string)`: +* `task (string)`: +* `url (string)`: +* `content_type (string)`: +* `is_active (boolean)`: + + +## PaginatedOrganizationWorkerTaskWebhook +* `rows (OrganizationWorkerTaskWebhook[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [OrganizationWorkerTaskWebhook](#organization-worker-task-webhook) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## CouponDetail +* `id (string)`: クーポンID +* `name (string)`: クーポン名 +* `issued_shop (User)`: クーポン発行店舗 +* `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)`: クーポンの掲載期間(終了日時) +* `usage_limit (number)`: ユーザごとの利用可能回数(NULLの場合は無制限) +* `min_amount (number)`: クーポン適用可能な最小取引額 +* `is_shop_specified (boolean)`: 特定店舗限定のクーポンかどうか +* `is_hidden (boolean)`: クーポン一覧に掲載されるかどうか +* `is_public (boolean)`: アプリ配信なしで受け取れるかどうか +* `code (string)`: クーポン受け取りコード +* `is_disabled (boolean)`: 無効化フラグ +* `token (string)`: クーポンを特定するためのトークン +* `coupon_image (string)`: クーポン画像のURL +* `available_shops (User[])`: 利用可能店舗リスト +* `private_money (PrivateMoney)`: クーポンのマネー + +`issued_shop`は [User](#user) オブジェクトを返します。 + +`available-shops`は [User](#user) オブジェクトの配列を返します。 + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## PaginatedCoupons +* `rows (Coupon[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [Coupon](#coupon) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedOrganizations +* `rows (Organization[])`: +* `count (number)`: +* `pagination (Pagination)`: + +`rows`は [Organization](#organization) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PrivateMoney +* `id (string)`: マネーID +* `name (string)`: マネー名 +* `unit (string)`: マネー単位 (例: 円) +* `is_exclusive (boolean)`: 会員制のマネーかどうか +* `description (string)`: マネー説明文 +* `oneline_message (string)`: マネーの要約 +* `organization (Organization)`: マネーを発行した組織 +* `max_balance (number)`: ウォレットの上限金額 +* `transfer_limit (number)`: マネーの取引上限額 +* `money_topup_transfer_limit (number)`: マネーチャージ取引上限額 +* `type (string)`: マネー種別 (自家型=own, 第三者型=third-party) +* `expiration_type (string)`: 有効期限種別 (チャージ日起算=static, 最終利用日起算=last-update, 最終チャージ日起算=last-topup-update) +* `enable_topup_by_member (boolean)`: (deprecated) +* `display_money_and_point (string)`: + +`organization`は [Organization](#organization) オブジェクトを返します。 + + +## Pagination +* `current (number)`: +* `per_page (number)`: +* `max_page (number)`: +* `has_prev (boolean)`: +* `has_next (boolean)`: + + +## Transaction +* `id (string)`: 取引ID +* `type (string)`: 取引種別 +* `is_modified (boolean)`: 返金された取引かどうか +* `sender (User)`: 送金者情報 +* `sender_account (Account)`: 送金ウォレット情報 +* `receiver (User)`: 受取者情報 +* `receiver_account (Account)`: 受取ウォレット情報 +* `amount (number)`: 取引総額 (マネー額 + ポイント額) +* `money_amount (number)`: 取引マネー額 +* `point_amount (number)`: 取引ポイント額(キャンペーン付与ポイント合算) +* `raw_point_amount (number)`: 取引ポイント額 +* `campaign_point_amount (number)`: キャンペーンによるポイント付与額 +* `done_at (string)`: 取引日時 +* `description (string)`: 取引説明文 + +`receiver`と`sender`は [User](#user) オブジェクトを返します。 + +`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)`: エンドユーザーのウォレット +* `status_code (number)`: ステータスコード +* `error_type (string)`: エラー型 +* `error_message (string)`: エラーメッセージ +* `created_at (string)`: Cashtray読み取り記録の作成日時 + +`account`は [AccountWithUser](#account-with-user) オブジェクトを返します。 + + +## Account +* `id (string)`: ウォレットID +* `name (string)`: ウォレット名 +* `is_suspended (boolean)`: ウォレットが凍結されているかどうか +* `status (string)`: +* `private_money (PrivateMoney)`: 設定マネー情報 + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## Transfer +* `id (string)`: +* `sender_account (AccountWithoutPrivateMoneyDetail)`: +* `receiver_account (AccountWithoutPrivateMoneyDetail)`: +* `amount (number)`: +* `money_amount (number)`: +* `point_amount (number)`: +* `done_at (string)`: +* `type (string)`: +* `description (string)`: +* `transaction_id (string)`: + +`receiver_account`と`sender_account`は [AccountWithoutPrivateMoneyDetail](#account-without-private-money-detail) オブジェクトを返します。 + + +## ShopAccount +* `id (string)`: ウォレットID +* `name (string)`: ウォレット名 +* `is_suspended (boolean)`: ウォレットが凍結されているかどうか +* `can_transfer_topup (boolean)`: チャージ可能かどうか +* `private_money (PrivateMoney)`: 設定マネー情報 + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## BulkTransactionJob +* `id (number)`: +* `bulk_transaction (BulkTransaction)`: +* `type (string)`: 取引種別 +* `sender_account_id (string)`: +* `receiver_account_id (string)`: +* `money_amount (number)`: +* `point_amount (number)`: +* `description (string)`: バルク取引ジョブ管理用の説明文 +* `bear_point_account_id (string)`: +* `point_expires_at (string)`: ポイント有効期限 +* `status (string)`: バルク取引ジョブの状態 +* `error (string)`: バルク取引のエラー種別 +* `lineno (number)`: バルク取引のエラーが発生した行番号 +* `transaction_id (string)`: +* `created_at (string)`: バルク取引ジョブが登録された日時 +* `updated_at (string)`: バルク取引ジョブが更新された日時 + +`bulk_transaction`は [BulkTransaction](#bulk-transaction) オブジェクトを返します。 + + +## PrivateMoneyOrganizationSummary +* `organization_code (string)`: +* `topup (OrganizationSummary)`: +* `payment (OrganizationSummary)`: + +`payment`と`topup`は [OrganizationSummary](#organization-summary) オブジェクトを返します。 + + +## 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 +* `expires_at (string)`: +* `money_amount (number)`: +* `point_amount (number)`: + + +## ShopWithMetadata +* `id (string)`: 店舗ID +* `name (string)`: 店舗名 +* `organization_code (string)`: 組織コード +* `status (string)`: 店舗の状態 +* `postal_code (string)`: 店舗の郵便番号 +* `address (string)`: 店舗の住所 +* `tel (string)`: 店舗の電話番号 +* `email (string)`: 店舗のメールアドレス +* `external_id (string)`: 店舗の外部ID + + +## AccountTransferSummaryElement +* `transfer_type (string)`: +* `money_amount (number)`: +* `point_amount (number)`: +* `count (number)`: + + +## Coupon +* `id (string)`: クーポンID +* `name (string)`: クーポン名 +* `issued_shop (User)`: クーポン発行店舗 +* `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)`: クーポンの掲載期間(終了日時) +* `usage_limit (number)`: ユーザごとの利用可能回数(NULLの場合は無制限) +* `min_amount (number)`: クーポン適用可能な最小取引額 +* `is_shop_specified (boolean)`: 特定店舗限定のクーポンかどうか +* `is_hidden (boolean)`: クーポン一覧に掲載されるかどうか +* `is_public (boolean)`: アプリ配信なしで受け取れるかどうか +* `code (string)`: クーポン受け取りコード +* `is_disabled (boolean)`: 無効化フラグ +* `token (string)`: クーポンを特定するためのトークン + +`issued_shop`は [User](#user) オブジェクトを返します。 + + +## AccountWithoutPrivateMoneyDetail +* `id (string)`: +* `name (string)`: +* `is_suspended (boolean)`: +* `status (string)`: +* `private_money_id (string)`: +* `user (User)`: + +`user`は [User](#user) オブジェクトを返します。 + + +## OrganizationSummary +* `count (number)`: +* `money_amount (number)`: +* `money_count (number)`: +* `point_amount (number)`: +* `raw_point_amount (number)`: +* `campaign_point_amount (number)`: +* `point_count (number)`: diff --git a/docs/shop.md b/docs/shop.md new file mode 100644 index 0000000..6a18281 --- /dev/null +++ b/docs/shop.md @@ -0,0 +1,645 @@ +# Shop + + +## ListShops: 店舗一覧を取得する + +```typescript +const response: Response = await client.send(new ListShops({ + organization_code: "pocketchange", // 組織コード + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + name: "oxスーパー三田店", // 店舗名 + postal_code: "055-8439", // 店舗の郵便番号 + address: "東京都港区芝...", // 店舗の住所 + tel: "021-7099-1336", // 店舗の電話番号 + email: "3bs4OkWhHF@x3P6.com", // 店舗のメールアドレス + external_id: "yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5c", // 店舗の外部ID + with_disabled: true, // 無効な店舗を含める + page: 1, // ページ番号 + per_page: 50 // 1ページ分の取引数 +})); +``` + + + +### Parameters +**`organization_code`** + + +このパラメータを渡すとその組織の店舗のみが返され、省略すると加盟店も含む店舗が返されます。 + + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`private_money_id`** + + +このパラメータを渡すとそのマネーのウォレットを持つ店舗のみが返されます。 + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + +このパラメータを渡すとその名前の店舗のみが返されます。 + + +```json +{ + "type": "string", + "minLength": 1, + "maxLength": 256 +} +``` + +**`postal_code`** + + +このパラメータを渡すとその郵便番号が登録された店舗のみが返されます。 + + +```json +{ + "type": "string", + "pattern": "^[0-9]{3}-?[0-9]{4}$" +} +``` + +**`address`** + + +このパラメータを渡すとその住所が登録された店舗のみが返されます。 + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`tel`** + + +このパラメータを渡すとその電話番号が登録された店舗のみが返されます。 + + +```json +{ + "type": "string", + "pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$" +} +``` + +**`email`** + + +このパラメータを渡すとそのメールアドレスが登録された店舗のみが返されます。 + + +```json +{ + "type": "string", + "format": "email", + "maxLength": 256 +} +``` + +**`external_id`** + + +このパラメータを渡すとその外部IDが登録された店舗のみが返されます。 + + +```json +{ + "type": "string", + "maxLength": 36 +} +``` + +**`with_disabled`** + + +このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。 + + +```json +{ + "type": "boolean" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取引数です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedShops](./responses.md#paginated-shops) +を返します + + +--- + + + +## CreateShop: 【廃止】新規店舗を追加する +新規店舗を追加します。このAPIは廃止予定です。以降は `CreateShopV2` を使用してください。 + +```typescript +const response: Response = await client.send(new CreateShop({ + shop_name: "oxスーパー三田店", // 店舗名 + shop_postal_code: "795-2270", // 店舗の郵便番号 + shop_address: "東京都港区芝...", // 店舗の住所 + shop_tel: "097-9077320", // 店舗の電話番号 + shop_email: "8bfxMId7hF@KERG.com", // 店舗のメールアドレス + shop_external_id: "a7vbD1cIywVpXocQ5N98CAVKuK", // 店舗の外部ID + organization_code: "ox-supermarket" // 組織コード +})); +``` + + + +### Parameters +**`shop_name`** + + + +```json +{ + "type": "string", + "minLength": 1, + "maxLength": 256 +} +``` + +**`shop_postal_code`** + + + +```json +{ + "type": "string", + "pattern": "^[0-9]{3}-?[0-9]{4}$" +} +``` + +**`shop_address`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`shop_tel`** + + + +```json +{ + "type": "string", + "pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$" +} +``` + +**`shop_email`** + + + +```json +{ + "type": "string", + "format": "email", + "maxLength": 256 +} +``` + +**`shop_external_id`** + + + +```json +{ + "type": "string", + "maxLength": 36 +} +``` + +**`organization_code`** + + + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + + + +成功したときは +[User](./responses.md#user) +を返します + + +--- + + + +## CreateShopV2: 新規店舗を追加する + +```typescript +const response: Response = await client.send(new CreateShopV2({ + name: "oxスーパー三田店", // 店舗名 + postal_code: "2351924", // 店舗の郵便番号 + address: "東京都港区芝...", // 店舗の住所 + tel: "0245976-5965", // 店舗の電話番号 + email: "I8CNBTqLCZ@99Aj.com", // 店舗のメールアドレス + external_id: "bK3l31NeAICSoLJdEVZoJB0", // 店舗の外部ID + organization_code: "ox-supermarket", // 組織コード + private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 店舗で有効にするマネーIDの配列 + can_topup_private_money_ids: [] // 店舗でチャージ可能にするマネーIDの配列 +})); +``` + + + +### Parameters +**`name`** + + +店舗名です。 + +同一組織内に同名の店舗があった場合は`name_conflict`エラーが返ります。 + +```json +{ + "type": "string", + "minLength": 1, + "maxLength": 256 +} +``` + +**`postal_code`** + + + +```json +{ + "type": "string", + "pattern": "^[0-9]{3}-?[0-9]{4}$" +} +``` + +**`address`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`tel`** + + + +```json +{ + "type": "string", + "pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$" +} +``` + +**`email`** + + + +```json +{ + "type": "string", + "format": "email", + "maxLength": 256 +} +``` + +**`external_id`** + + + +```json +{ + "type": "string", + "maxLength": 36 +} +``` + +**`organization_code`** + + + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`private_money_ids`** + + +店舗で有効にするマネーIDの配列を指定します。 + +店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。 +このパラメータを省略したときは、店舗が所属する組織が発行または加盟している全てのマネーのウォレットができます。 + +```json +{ + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`can_topup_private_money_ids`** + + +店舗でチャージ可能にするマネーIDの配列を指定します。 + +このパラメータは発行体のみが指定でき、自身が発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。 +省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。 + +```json +{ + "type": "array", + "minItems": 0, + "items": { + "type": "string", + "format": "uuid" + } +} +``` + + + +成功したときは +[ShopWithAccounts](./responses.md#shop-with-accounts) +を返します + + +--- + + + +## GetShop: 店舗情報を表示する +店舗情報を表示します。 + +権限に関わらず自組織の店舗情報は表示可能です。それに加え、発行体は自組織の発行しているマネーの加盟店組織の店舗情報を表示できます。 + +```typescript +const response: Response = await client.send(new GetShop({ + shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 店舗ユーザーID +})); +``` + + + +### Parameters +**`shop_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[ShopWithAccounts](./responses.md#shop-with-accounts) +を返します + + +--- + + + +## UpdateShop: 店舗情報を更新する +店舗情報を更新します。bodyパラメーターは全て省略可能で、指定したもののみ更新されます。 + +```typescript +const response: Response = await client.send(new UpdateShop({ + shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ユーザーID + name: "oxスーパー三田店", // 店舗名 + postal_code: "5495125", // 店舗の郵便番号 + address: "東京都港区芝...", // 店舗の住所 + tel: "079238-9452", // 店舗の電話番号 + email: "zTj3A085y5@hWQ3.com", // 店舗のメールアドレス + external_id: "gdeDOWFExGORRYNLJdsZ6n3IGoF44i049", // 店舗の外部ID + private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 店舗で有効にするマネーIDの配列 + can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 店舗でチャージ可能にするマネーIDの配列 + status: "active" // 店舗の状態 +})); +``` + + + +### Parameters +**`shop_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + +店舗名です。 + +同一組織内に同名の店舗があった場合は`shop_name_conflict`エラーが返ります。 + +```json +{ + "type": "string", + "minLength": 1, + "maxLength": 256 +} +``` + +**`postal_code`** + + +店舗住所の郵便番号(7桁の数字)です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。 + +```json +{ + "type": "string", + "pattern": "^[0-9]{3}-?[0-9]{4}$" +} +``` + +**`address`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`tel`** + + +店舗の電話番号です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。 + +```json +{ + "type": "string", + "pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$" +} +``` + +**`email`** + + +店舗の連絡先メールアドレスです。明示的に空の値を設定するにはNULLを指定します。 + +```json +{ + "type": "string", + "format": "email", + "maxLength": 256 +} +``` + +**`external_id`** + + +店舗の外部IDです(最大36文字)。明示的に空の値を設定するにはNULLを指定します。 + +```json +{ + "type": "string", + "maxLength": 36 +} +``` + +**`private_money_ids`** + + +店舗で有効にするマネーIDの配列を指定します。 + +店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。 +店舗が既にウォレットを持っている場合に、ここでそのウォレットのマネーIDを指定しないで更新すると、そのマネーのウォレットは凍結(無効化)されます。 + +```json +{ + "type": "array", + "minItems": 0, + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`can_topup_private_money_ids`** + + +店舗でチャージ可能にするマネーIDの配列を指定します。 + +このパラメータは発行体のみが指定でき、発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。 +省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。 + +```json +{ + "type": "array", + "minItems": 0, + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`status`** + + +店舗の状態です。activeを指定すると有効となり、disabledを指定するとリスト表示から除外されます。 + +```json +{ + "type": "string", + "enum": [ + "active", + "disabled" + ] +} +``` + + + +成功したときは +[ShopWithAccounts](./responses.md#shop-with-accounts) +を返します + + +--- + + + diff --git a/docs/transaction.md b/docs/transaction.md new file mode 100644 index 0000000..db475a9 --- /dev/null +++ b/docs/transaction.md @@ -0,0 +1,1707 @@ +# Transaction + + +## GetCpmToken: CPMトークンの状態取得 +CPMトークンの現在の状態を取得します。CPMトークンの有効期限やCPM取引の状態を返します。 + +```typescript +const response: Response = await client.send(new GetCpmToken({ + cpm_token: "zroFJfg0zCih9qHu842U5S" // CPMトークン +})); +``` + + + +### Parameters +**`cpm_token`** + + +CPM取引時にエンドユーザーが店舗に提示するバーコードを解析して得られる22桁の文字列です。 + +```json +{ + "type": "string", + "minLength": 22, + "maxLength": 22 +} +``` + + + +成功したときは +[CpmToken](./responses.md#cpm-token) +を返します + + +--- + + + +## ListTransactions: 【廃止】取引履歴を取得する +取引一覧を返します。 + +```typescript +const response: Response = await client.send(new ListTransactions({ + from: "2021-06-05T21:00:30.000000Z", // 開始日時 + to: "2020-10-02T07:49:29.000000Z", // 終了日時 + page: 1, // ページ番号 + per_page: 50, // 1ページ分の取引数 + shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID + customer_name: "太郎", // エンドユーザー名 + terminal_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 端末ID + transaction_id: "NqipKVsII", // 取引ID + organization_code: "pocketchange", // 組織コード + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + is_modified: false, // キャンセルフラグ + types: ["topup", "payment"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + description: "店頭QRコードによる支払い" // 取引説明文 +})); +``` + + + +### Parameters +**`from`** + + +抽出期間の開始日時です。 + +フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + +抽出期間の終了日時です。 + +フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取引数です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`shop_id`** + + +店舗IDです。 + +フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +フィルターとして使われ、指定されたエンドユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_name`** + + +エンドユーザー名です。 + +フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`terminal_id`** + + +端末IDです。 + +フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`transaction_id`** + + +取引IDです。 + +フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +```json +{ + "type": "string" +} +``` + +**`organization_code`** + + +組織コードです。 + +フィルターとして使われ、指定された組織での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_modified`** + + +キャンセルフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + +```json +{ + "type": "boolean" +} +``` + +**`types`** + + +取引の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) + +2. payment + エンドユーザーから店舗への送金取引(支払い) + +3. exchange-outflow + 他マネーへの流出 + +4. exchange-inflow + 他マネーからの流入 + +5. cashback + 退会時返金取引 + +6. expire + 退会時失効取引 + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "exchange_outflow", + "exchange_inflow", + "cashback", + "expire" + ] + } +} +``` + +**`description`** + + +取引を指定の取引説明文でフィルターします。 + +取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + + + +成功したときは +[PaginatedTransaction](./responses.md#paginated-transaction) +を返します + + +--- + + + +## CreateTransaction: 【廃止】チャージする +チャージ取引を作成します。このAPIは廃止予定です。以降は `CreateTopupTransaction` を使用してください。 + +```typescript +const response: Response = await client.send(new CreateTransaction({ + shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + money_amount: 362, + point_amount: 3542, + point_expires_at: "2024-03-01T17:10:50.000000Z", // ポイント有効期限 + description: "x3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVR" +})); +``` + + + +### Parameters +**`shop_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`money_amount`** + + + +```json +{ + "type": "integer", + "format": "decimal", + "minimum": 0 +} +``` + +**`point_amount`** + + + +```json +{ + "type": "integer", + "format": "decimal", + "minimum": 0 +} +``` + +**`point_expires_at`** + + +ポイントをチャージした場合の、付与されるポイントの有効期限です。 +省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## ListTransactionsV2: 取引履歴を取得する +取引一覧を返します。 + +```typescript +const response: Response = await client.send(new ListTransactionsV2({ + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + organization_code: "pocketchange", // 組織コード + shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + terminal_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 端末ID + customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID + customer_name: "太郎", // エンドユーザー名 + description: "店頭QRコードによる支払い", // 取引説明文 + transaction_id: "1P", // 取引ID + is_modified: true, // キャンセルフラグ + types: ["topup", "payment"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + from: "2024-02-04T04:47:18.000000Z", // 開始日時 + to: "2020-03-06T03:10:42.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ページ分の取引数 +})); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +指定したマネーでの取引が一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`organization_code`** + + +組織コードです。 + +フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`shop_id`** + + +店舗IDです。 + +フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`terminal_id`** + + +端末IDです。 + +フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_name`** + + +エンドユーザー名です。 + +フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`description`** + + +取引を指定の取引説明文でフィルターします。 + +取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`transaction_id`** + + +取引IDです。 + +フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +```json +{ + "type": "string" +} +``` + +**`is_modified`** + + +キャンセルフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + +```json +{ + "type": "boolean" +} +``` + +**`types`** + + +取引の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) + +2. payment + エンドユーザーから店舗への送金取引(支払い) + +3. exchange-outflow + 他マネーへの流出 + private_money_idが指定されたとき、そのマネーから見て流出方向の交換取引が抽出されます。 + private_money_idを省略した場合は表示されません。 + +4. exchange-inflow + 他マネーからの流入 + private_money_idが指定されたとき、そのマネーから見て流入方向の交換取引が抽出されます。 + private_money_idを省略した場合は表示されません。 + +5. cashback + 退会時返金取引 + +6. expire + 退会時失効取引 + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "exchange_outflow", + "exchange_inflow", + "cashback", + "expire" + ] + } +} +``` + +**`from`** + + +抽出期間の開始日時です。 + +フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + +抽出期間の終了日時です。 + +フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`next_page_cursor_id`** + + +次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。 +本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 +UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 + +next_page_cursor_idのtransaction自体は次のページには含まれません。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`prev_page_cursor_id`** + + +前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 + +本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 +UUIDである場合は前のページが存在することを意味し、このprev_page_cursor_idをリクエストパラメータに含めることで前ページに遷移します。 + +prev_page_cursor_idのtransaction自体は前のページには含まれません。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`per_page`** + + +1ページ分の取引数です。 + +デフォルト値は50です。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 1000 +} +``` + + + +成功したときは +[PaginatedTransactionV2](./responses.md#paginated-transaction-v2) +を返します + + +--- + + + +## CreateTopupTransaction: チャージする +チャージ取引を作成します。 + +```typescript +const response: Response = await client.send(new CreateTopupTransaction({ + 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 + bear_point_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント支払時の負担店舗ID + money_amount: 4236, // マネー額 + point_amount: 5322, // ポイント額 + point_expires_at: "2021-02-02T23:32:54.000000Z", // ポイント有効期限 + description: "初夏のチャージキャンペーン", // 取引履歴に表示する説明文 + metadata: "{\"key\":\"value\"}", // 取引メタデータ + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +})); +``` + + + +### Parameters +**`shop_id`** + + +店舗IDです。 + +送金元の店舗を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +送金先のエンドユーザーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +マネーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`bear_point_shop_id`** + + +ポイント支払時の負担店舗IDです。 + +ポイント支払い時に実際お金を負担する店舗を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`money_amount`** + + +マネー額です。 + +送金するマネー額を指定します。 +デフォルト値は0で、money_amountとpoint_amountの両方が0のときにはinvalid_parameter_both_point_and_money_are_zero(エラーコード400)が返ります。 + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`point_amount`** + + +ポイント額です。 + +送金するポイント額を指定します。 +デフォルト値は0で、money_amountとpoint_amountの両方が0のときにはinvalid_parameter_both_point_and_money_are_zero(エラーコード400)が返ります。 + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`point_expires_at`** + + +ポイントをチャージした場合の、付与されるポイントの有効期限です。 +省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`description`** + + +取引説明文です。 + +任意入力で、取引履歴に表示される説明文です。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`metadata`** + + +取引作成時に指定されるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## CreatePaymentTransaction: 支払いする +支払取引を作成します。 +支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 + + +```typescript +const response: Response = await client.send(new CreatePaymentTransaction({ + shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + amount: 8608, // 支払い額 + description: "たい焼き(小倉)", // 取引履歴に表示する説明文 + metadata: "{\"key\":\"value\"}", // 取引メタデータ + products: [{"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "is_discounted": false, + "other":"{}"}], // 商品情報データ + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +})); +``` + + + +### Parameters +**`shop_id`** + + +店舗IDです。 + +送金先の店舗を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +送金元のエンドユーザーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +マネーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +マネー額です。 + +送金するマネー額を指定します。 + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`description`** + + +取引説明文です。 + +任意入力で、取引履歴に表示される説明文です。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`metadata`** + + +取引作成時に指定されるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`products`** + + +一つの取引に含まれる商品情報データです。 +以下の内容からなるJSONオブジェクトの配列で指定します。 + +- `jan_code`: JANコード。64字以下の文字列 +- `name`: 商品名。256字以下の文字列 +- `unit_price`: 商品単価。0以上の数値 +- `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean +- `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## CreateCpmTransaction: CPMトークンによる取引作成 +CPMトークンにより取引を作成します。 +CPMトークンに設定されたスコープの取引を作ることができます。 + + +```typescript +const response: Response = await client.send(new CreateCpmTransaction({ + cpm_token: "5SjzUvS2Jlq6P89tC2Mi1P", // CPMトークン + shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + amount: 7208.0, // 取引金額 + description: "たい焼き(小倉)", // 取引説明文 + metadata: "{\"key\":\"value\"}", // 店舗側メタデータ + products: [{"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "is_discounted": false, + "other":"{}"}], // 商品情報データ + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +})); +``` + + + +### Parameters +**`cpm_token`** + + +エンドユーザーによって作られ、アプリなどに表示され、店舗に対して提示される22桁の文字列です。 + +エンドユーザーによって許可された取引のスコープを持っています。 + +```json +{ + "type": "string", + "minLength": 22, + "maxLength": 22 +} +``` + +**`shop_id`** + + +店舗IDです。 + +支払いやチャージを行う店舗を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +取引金額を指定します。 + +正の値を与えるとチャージになり、負の値を与えると支払いとなります。 + +```json +{ + "type": "number" +} +``` + +**`description`** + + +取引説明文です。 + +エンドユーザーアプリの取引履歴などに表示されます。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`metadata`** + + +取引作成時に店舗側から指定されるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`products`** + + +一つの取引に含まれる商品情報データです。 +以下の内容からなるJSONオブジェクトの配列で指定します。 + +- `jan_code`: JANコード。64字以下の文字列 +- `name`: 商品名。256字以下の文字列 +- `unit_price`: 商品単価。0以上の数値 +- `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean +- `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## CreateTransferTransaction: 個人間送金 +エンドユーザー間での送金取引(個人間送金)を作成します。 +個人間送金で送れるのはマネーのみで、ポイントを送ることはできません。送金元のマネー残高のうち、有効期限が最も遠いものから順に送金されます。 + + +```typescript +const response: Response = await client.send(new CreateTransferTransaction({ + sender_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金元ユーザーID + receiver_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受取ユーザーID + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + amount: 686.0, // 送金額 + metadata: "{\"key\":\"value\"}", // 取引メタデータ + description: "たい焼き(小倉)", // 取引履歴に表示する説明文 + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +})); +``` + + + +### Parameters +**`sender_id`** + + +エンドユーザーIDです。 + +送金元のエンドユーザー(送り主)を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`receiver_id`** + + +エンドユーザーIDです。 + +送金先のエンドユーザー(受け取り人)を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +マネーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +マネー額です。 + +送金するマネー額を指定します。 + +```json +{ + "type": "number", + "minimum": 0 +} +``` + +**`metadata`** + + +取引作成時に指定されるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`description`** + + +取引説明文です。 + +任意入力で、取引履歴に表示される説明文です。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## CreateExchangeTransaction + +```typescript +const response: Response = await client.send(new CreateExchangeTransaction({ + user_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + sender_private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + receiver_private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + amount: 5541, + description: "Re6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ9", + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +})); +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`sender_private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`receiver_private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## GetTransaction: 取引情報を取得する +取引を取得します。 + +```typescript +const response: Response = await client.send(new GetTransaction({ + transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 取引ID +})); +``` + + + +### Parameters +**`transaction_id`** + + +取引IDです。 + +フィルターとして使われ、指定した取引IDの取引を取得します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## RefundTransaction: 取引をキャンセルする +取引IDを指定して取引をキャンセルします。 + +発行体の管理者は自組織の直営店、または発行しているマネーの決済加盟店組織での取引をキャンセルできます。 +キャンセル対象の取引に付随するポイント還元キャンペーンやクーポン適用も取り消されます。 + +チャージ取引のキャンセル時に返金すべき残高が足りないときは `account_balance_not_enough (422)` エラーが返ります。 +取引をキャンセルできるのは1回きりです。既にキャンセルされた取引を重ねてキャンセルしようとすると `transaction_already_refunded (422)` エラーが返ります。 + +```typescript +const response: Response = await client.send(new RefundTransaction({ + transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID + description: "返品対応のため", // 取引履歴に表示する返金事由 + returning_point_expires_at: "2023-04-11T16:40:53.000000Z" // 返却ポイントの有効期限 +})); +``` + + + +### Parameters +**`transaction_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`returning_point_expires_at`** + + +ポイント支払いを含む支払い取引をキャンセルする際にユーザへ返却されるポイントの有効期限です。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## GetTransactionByRequestId: リクエストIDから取引情報を取得する +取引を取得します。 + +```typescript +const response: Response = await client.send(new GetTransactionByRequestId({ + request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +})); +``` + + + +### Parameters +**`request_id`** + + +取引作成時にクライアントが生成し指定するリクエストIDです。 + +リクエストIDに対応する取引が存在すればその取引を返し、無ければNotFound(404)を返します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## GetBulkTransaction: バルク取引ジョブの実行状況を取得する + +```typescript +const response: Response = await client.send(new GetBulkTransaction({ + bulk_transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // バルク取引ジョブID +})); +``` + + + +### Parameters +**`bulk_transaction_id`** + + +バルク取引ジョブIDです。 +バルク取引ジョブ登録時にレスポンスに含まれます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[BulkTransaction](./responses.md#bulk-transaction) +を返します + + +--- + + + +## ListBulkTransactionJobs: バルク取引ジョブの詳細情報一覧を取得する + +```typescript +const response: Response = await client.send(new ListBulkTransactionJobs({ + bulk_transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // バルク取引ジョブID + page: 1, // ページ番号 + per_page: 50 // 1ページ分の取得数 +})); +``` + + + +### Parameters +**`bulk_transaction_id`** + + +バルク取引ジョブIDです。 +バルク取引ジョブ登録時にレスポンスに含まれます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 50 になっています。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedBulkTransactionJob](./responses.md#paginated-bulk-transaction-job) +を返します + + +--- + + + +## RequestUserStats: 指定期間内の顧客が行った取引の統計情報をCSVでダウンロードする +期間を指定して、期間内に発行マネーの全顧客が行った取引の総額・回数などをCSVでダウンロードする機能です。 +CSVの作成は非同期で行われるため完了まで少しの間待つ必要がありますが、完了時にダウンロードできるURLをレスポンスとして返します。 +このURLの有効期限はリクエスト日時から7日間です。 + +ダウンロードできるCSVのデータは以下のものです。 + +* organization_code: 取引を行った組織コード +* private_money_id: 取引されたマネーのID +* private_money_name: 取引されたマネーの名前 +* user_id: 決済したユーザーID +* user_external_id: 決済したユーザーの外部ID +* payment_money_amount: 指定期間内に決済に使ったマネーの総額 +* payment_point_amount: 指定期間内に決済に使ったポイントの総額 +* payment_transaction_count: 指定期間内に決済した回数。キャンセルされた取引は含まない + +また、指定期間より前の決済を時間をおいてキャンセルした場合などには payment_money_amount, payment_point_amount, payment_transaction_count が負の値になることもあることに留意してください。 + +```typescript +const response: Response = await client.send(new RequestUserStats({ + from: "2022-05-20T17:56:49.000000+09:00", // 集計期間の開始時刻 + to: "2023-12-10T01:16:11.000000+09:00" // 集計期間の終了時刻 +})); +``` + + + +### Parameters +**`from`** + + +集計する期間の開始時刻をISO8601形式で指定します。 +時刻は現在時刻、及び `to` で指定する時刻以前である必要があります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + +集計する期間の終了時刻をISO8601形式で指定します。 +時刻は現在時刻、及び `from` で指定する時刻の間である必要があります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + + + +成功したときは +[UserStatsOperation](./responses.md#user-stats-operation) +を返します + + +--- + + + diff --git a/docs/transfer.md b/docs/transfer.md new file mode 100644 index 0000000..1673ac8 --- /dev/null +++ b/docs/transfer.md @@ -0,0 +1,673 @@ +# Transfer + + +## GetAccountTransferSummary: +ウォレットを指定して取引明細種別毎の集計を返す + +```typescript +const response: Response = await client.send(new GetAccountTransferSummary({ + account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID + from: "2020-05-19T10:22:23.000000Z", // 集計期間の開始時刻 + to: "2022-09-30T14:05:52.000000Z", // 集計期間の終了時刻 + transfer_types: ["topup", "payment"] // 取引明細種別 (複数指定可) +})); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +ここで指定したウォレットIDの取引明細レベルでの集計を取得します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`from`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`transfer_types`** + + +取引明細の種別でフィルターします。 +以下の種別を指定できます。 + +- payment + エンドユーザーから店舗への送金取引(支払い取引) +- topup + 店舗からエンドユーザーへの送金取引(チャージ取引) +- campaign-topup + キャンペーンによるエンドユーザーへのポイント付与取引(ポイントチャージ) +- use-coupon + 支払い時のクーポン使用による値引き取引 +- refund-payment + 支払い取引に対するキャンセル取引 +- refund-topup + チャージ取引に対するキャンセル取引 +- refund-campaign + キャンペーンによるポイント付与取引に対するキャンセル取引 +- refund-coupon + クーポン使用による値引き取引に対するキャンセル取引 +- exchange-inflow + 交換による他マネーからの流入取引 +- exchange-outflow + 交換による他マネーへの流出取引 +- refund-exchange-inflow + 交換による他マネーからの流入取引に対するキャンセル取引 +- refund-exchange-outflow + 交換による他マネーへの流出取引に対するキャンセル取引 + +```json +{ + "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" + ] + } +} +``` + + + +成功したときは +[AccountTransferSummary](./responses.md#account-transfer-summary) +を返します + + +--- + + + +## ListTransfers + +```typescript +const response: Response = await client.send(new ListTransfers({ + from: "2023-09-04T06:29:07.000000Z", + to: "2024-01-13T03:24:09.000000Z", + page: 4884, + per_page: 6195, + shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + shop_name: "C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7k", + customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + customer_name: "VTYLZtj", + transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + is_modified: true, + transaction_types: ["payment", "topup", "cashback"], + transfer_types: ["coupon", "cashback", "campaign", "payment", "topup", "transfer", "expire", "exchange"], // 取引明細の種類でフィルターします。 + description: "店頭QRコードによる支払い" // 取引詳細説明文 +})); +``` + + + +### Parameters +**`from`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`shop_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`shop_name`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`customer_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_name`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`transaction_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_modified`** + + + +```json +{ + "type": "boolean" +} +``` + +**`transaction_types`** + + + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "transfer", + "exchange", + "cashback", + "expire" + ] + } +} +``` + +**`transfer_types`** + + +取引明細の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup +店舗からエンドユーザーへの送金取引(チャージ)、またはそのキャンセル取引 + +2. payment +エンドユーザーから店舗への送金取引(支払い)、またはそのキャンセル取引 + +3. exchange +他マネーへの流出/流入 + +4. campaign +取引に対するポイント還元キャンペーンによるポイント付与、またはそのキャンセル取引 + +5. coupon +クーポンによる値引き処理、またはそのキャンセル取引 + +6. cashback +退会時の返金取引 + +7. expire +退会時失効取引 + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "exchange", + "transfer", + "coupon", + "campaign", + "cashback", + "expire" + ] + } +} +``` + +**`description`** + + +取引詳細を指定の取引詳細説明文でフィルターします。 + +取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + + + +成功したときは +[PaginatedTransfers](./responses.md#paginated-transfers) +を返します + + +--- + + + +## ListTransfersV2 + +```typescript +const response: Response = await client.send(new ListTransfersV2({ + shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + shop_name: "xB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaT", // 店舗名 + customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID + customer_name: "lLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EK", // エンドユーザー名 + transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + is_modified: false, // キャンセルフラグ + transaction_types: ["cashback"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + next_page_cursor_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 次ページへ遷移する際に起点となるtransferのID + prev_page_cursor_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 前ページへ遷移する際に起点となるtransferのID + per_page: 50, // 1ページ分の取引数 + transfer_types: ["transfer", "exchange"], // 取引明細種別 (複数指定可) + description: "店頭QRコードによる支払い", // 取引詳細説明文 + from: "2020-07-02T11:27:30.000000Z", // 開始日時 + to: "2020-07-24T15:07:42.000000Z" // 終了日時 +})); +``` + + + +### Parameters +**`shop_id`** + + +店舗IDです。 + +フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`shop_name`** + + +店舗名です。 + +フィルターとして使われ、入力された名前に部分一致する店舗での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_name`** + + +エンドユーザー名です。 + +フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`transaction_id`** + + +取引IDです。 + +フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +指定したマネーでの取引が一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_modified`** + + +キャンセルフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + +```json +{ + "type": "boolean" +} +``` + +**`transaction_types`** + + +取引の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) + +2. payment + エンドユーザーから店舗への送金取引(支払い) + +3. exchange-outflow + 他マネーへの流出 + private_money_idが指定されたとき、そのマネーから見て流出方向の交換取引が抽出されます。 + private_money_idを省略した場合は表示されません。 + +4. exchange-inflow + 他マネーからの流入 + private_money_idが指定されたとき、そのマネーから見て流入方向の交換取引が抽出されます。 + private_money_idを省略した場合は表示されません。 + +5. cashback + 退会時返金取引 + +6. expire + 退会時失効取引 + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "transfer", + "exchange", + "cashback", + "expire" + ] + } +} +``` + +**`next_page_cursor_id`** + + +次ページへ遷移する際に起点となるtransferのID(前ページの末尾要素のID)です。 +本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 +UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 + +next_page_cursor_idのtransfer自体は次のページには含まれません。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`prev_page_cursor_id`** + + +前ページへ遷移する際に起点となるtransferのID(次ページの先頭要素のID)です。 + +本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 +UUIDである場合は前のページが存在することを意味し、このprev_page_cursor_idをリクエストパラメータに含めることで前ページに遷移します。 + +prev_page_cursor_idのtransfer自体は前のページには含まれません。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`per_page`** + + +1ページ分の取引数です。 + +デフォルト値は50です。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 1000 +} +``` + +**`transfer_types`** + + +取引明細の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup +店舗からエンドユーザーへの送金取引(チャージ)、またはそのキャンセル取引 + +2. payment +エンドユーザーから店舗への送金取引(支払い)、またはそのキャンセル取引 + +3. exchange +他マネーへの流出/流入 + +4. campaign +取引に対するポイント還元キャンペーンによるポイント付与、またはそのキャンセル取引 + +5. coupon +クーポンによる値引き処理、またはそのキャンセル取引 + +6. cashback +退会時の返金取引 + +7. expire +退会時失効取引 + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "exchange", + "transfer", + "coupon", + "campaign", + "cashback", + "expire" + ] + } +} +``` + +**`description`** + + +取引詳細を指定の取引詳細説明文でフィルターします。 + +取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`from`** + + +抽出期間の開始日時です。 + +フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + +抽出期間の終了日時です。 + +フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + + + +成功したときは +[PaginatedTransfersV2](./responses.md#paginated-transfers-v2) +を返します + + +--- + + + diff --git a/docs/user.md b/docs/user.md new file mode 100644 index 0000000..bffa6f6 --- /dev/null +++ b/docs/user.md @@ -0,0 +1,23 @@ +# User + + +## GetUser + +```typescript +const response: Response = await client.send(new GetUser()); +``` + + + + + + +成功したときは +[AdminUserWithShopsAndPrivateMoneys](./responses.md#admin-user-with-shops-and-private-moneys) +を返します + + +--- + + + diff --git a/docs/user_device.md b/docs/user_device.md new file mode 100644 index 0000000..b3081e1 --- /dev/null +++ b/docs/user_device.md @@ -0,0 +1,125 @@ +# UserDevice +UserDeviceはユーザー毎のデバイスを管理します。 +あるユーザーが使っている端末を区別する必要がある場合に用いられます。 +これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。 + + + +## CreateUserDevice: ユーザーのデバイス登録 +ユーザーのデバイスを新規に登録します + +```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\"}" // ユーザーデバイスのメタデータ +})); +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`metadata`** + + +ユーザーのデバイス用の情報をメタデータを保持するために用います。 +例: 端末の固有情報やブラウザのUser-Agent + + +```json +{ + "type": "string", + "format": "json" +} +``` + + + +成功したときは +[UserDevice](./responses.md#user-device) +を返します + + +--- + + + +## GetUserDevice: ユーザーのデバイスを取得 +ユーザーのデバイスの情報を取得します + +```typescript +const response: Response = await client.send(new GetUserDevice({ + user_device_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーデバイスID +})); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserDevice](./responses.md#user-device) +を返します + + +--- + + + +## ActivateUserDevice: デバイスの有効化 +指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。 + + +```typescript +const response: Response = await client.send(new ActivateUserDevice({ + user_device_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーデバイスID +})); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserDevice](./responses.md#user-device) +を返します + + +--- + + + diff --git a/docs/webhook.md b/docs/webhook.md new file mode 100644 index 0000000..9a9e999 --- /dev/null +++ b/docs/webhook.md @@ -0,0 +1,216 @@ +# Webhook +Webhookは特定のワーカータスクでの処理が完了した事を通知します。 +WebHookにはURLとタスク名、有効化されているかを設定することが出来ます。 +通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。 + + + +## CreateWebhook: webhookの作成 +ワーカータスクの処理が終了したことを通知するためのWebhookを登録します +このAPIにより指定したタスクの終了時に、指定したURLにPOSTリクエストを送信します。 +このとき、リクエストボディは `{"task": <タスク名>}` という値になります。 + +```typescript +const response: Response = await client.send(new CreateWebhook({ + task: "bulk_shops", // タスク名 + url: "Bgm1" // URL +})); +``` + + + +### Parameters +**`task`** + + +ワーカータスク名を指定します + +```json +{ + "type": "string", + "enum": [ + "bulk_shops", + "process_user_stats_operation" + ] +} +``` + +**`url`** + + +通知先のURLを指定します + +```json +{ + "type": "string" +} +``` + + + +成功したときは +[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) +を返します + + +--- + + + +## ListWebhooks: 作成したWebhookの一覧を返す + +```typescript +const response: Response = await client.send(new ListWebhooks({ + page: 1, // ページ番号 + per_page: 50 // 1ページ分の取得数 +})); +``` + + + +### Parameters +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 50 になっています。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedOrganizationWorkerTaskWebhook](./responses.md#paginated-organization-worker-task-webhook) +を返します + + +--- + + + +## UpdateWebhook: Webhookの更新 +指定したWebhookの内容を更新します + +```typescript +const response: Response = await client.send(new UpdateWebhook({ + webhook_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // Webhook ID + url: "b", // URL + is_active: false, // 有効/無効 + task: "bulk_shops" // タスク名 +})); +``` + + + +### Parameters +**`webhook_id`** + + +更新するWebhookのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`url`** + + +変更するURLを指定します + +```json +{ + "type": "string" +} +``` + +**`is_active`** + + +trueならWebhookによる通知が有効になり、falseなら無効になります + +```json +{ + "type": "boolean" +} +``` + +**`task`** + + +指定したタスクが終了したときにWebhookによる通知がされます + +```json +{ + "type": "string", + "enum": [ + "bulk_shops", + "process_user_stats_operation" + ] +} +``` + + + +成功したときは +[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) +を返します + + +--- + + + +## DeleteWebhook: Webhookの削除 +指定したWebhookを削除します + +```typescript +const response: Response = await client.send(new DeleteWebhook({ + webhook_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Webhook ID +})); +``` + + + +### Parameters +**`webhook_id`** + + +削除するWebhookのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) +を返します + + +--- + + + diff --git a/partner.yaml b/partner.yaml index 12f622d..4619f57 100644 --- a/partner.yaml +++ b/partner.yaml @@ -34,6 +34,7 @@ tags: - name: Customer - name: Organization - name: Shop + - name: User - name: Account - name: Private Money - name: Bulk @@ -1938,6 +1939,8 @@ paths: $ref: '#/components/responses/BadRequest' /user: get: + tags: + - User responses: '200': description: OK @@ -5778,6 +5781,8 @@ paths: $ref: '#/components/responses/UnprocessableEntity' /bulk-transactions/{bulk_transaction_id}: get: + tags: + - Transaction summary: バルク取引ジョブの実行状況を取得する x-pokepay-operator-name: "GetBulkTransaction" x-pokepay-allow-server-side: true @@ -5805,6 +5810,8 @@ paths: $ref: '#/components/responses/NotFound' /bulk-transactions/{bulk_transaction_id}/jobs: get: + tags: + - Transaction summary: バルク取引ジョブの詳細情報一覧を取得する x-pokepay-operator-name: "ListBulkTransactionJobs" x-pokepay-allow-server-side: true @@ -6471,6 +6478,43 @@ paths: ] ``` + blacklisted_product_rules: + type: array + items: + type: object + properties: + product_code: + type: string + maxLength: 64 + title: '対象の製品コード' + description: |- + 対象の製品コード (JANコードやISBNコードなど) を指定します。(必須項目) + + SQLのLIKE文のようにワイルドカードを使った製品コードのパターンを指定することもできます (_ で任意の1文字にマッチし、 % で任意文字列にマッチします。 例: 978-% でISBNコード) + items: + type: string + classification_code: + type: string + maxLength: 64 + title: '対象の商品分類コード' + description: |- + 対象の商品分類コード (書籍のCコードなど) を指定します。(任意項目) + + SQLのLIKE文のようにワイルドカードを使った製品コードのパターンを指定することもできます (_ で任意の1文字にマッチし、 % で任意文字列にマッチします。 例: 978-% でISBNコード) + items: + type: string + example: |- + { + "product_code": "4912345678904", + "classification_code": "c123" + } + + title: '商品情報ベースのキャンペーンで除外対象にする商品リスト' + description: |- + 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 + 除外対象の商品コード、または分類コードのパターンの配列として指定します。 + 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 + applicable_days_of_week: type: array items: @@ -6515,6 +6559,18 @@ paths: describe: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 + minimum_number_of_products: + type: integer + minimum: 1 + title: 'キャンペーンを適用する1会計内の商品個数の下限' + description: |- + このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 + minimum_number_of_amount: + type: integer + minimum: 1 + title: 'キャンペーンを適用する1会計内の商品総額の下限' + description: |- + このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 minimum_number_for_combination_purchase: type: integer minimum: 1 @@ -7253,6 +7309,43 @@ paths: ] ``` + blacklisted_product_rules: + type: array + items: + type: object + properties: + product_code: + type: string + maxLength: 64 + title: '対象の製品コード' + description: |- + 対象の製品コード (JANコードやISBNコードなど) を指定します。(必須項目) + + SQLのLIKE文のようにワイルドカードを使った製品コードのパターンを指定することもできます (_ で任意の1文字にマッチし、 % で任意文字列にマッチします。 例: 978-% でISBNコード) + items: + type: string + classification_code: + type: string + maxLength: 64 + title: '対象の商品分類コード' + description: |- + 対象の商品分類コード (書籍のCコードなど) を指定します。(任意項目) + + SQLのLIKE文のようにワイルドカードを使った製品コードのパターンを指定することもできます (_ で任意の1文字にマッチし、 % で任意文字列にマッチします。 例: 978-% でISBNコード) + items: + type: string + example: |- + { + "product_code": "4912345678904", + "classification_code": "c123" + } + + title: '商品情報ベースのキャンペーンで除外対象にする商品リスト' + description: |- + 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 + 除外対象の商品コード、または分類コードのパターンの配列として指定します。 + 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 + applicable_days_of_week: type: array items: @@ -7300,6 +7393,20 @@ paths: describe: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 + minimum_number_of_products: + type: integer + minimum: 1 + nullable: true + title: 'キャンペーンを適用する1会計内の商品個数の下限' + description: |- + このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 + minimum_number_of_amount: + type: integer + minimum: 1 + nullable: true + title: 'キャンペーンを適用する1会計内の商品総額の下限' + description: |- + このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 minimum_number_for_combination_purchase: type: integer minimum: 1 diff --git a/src/index.test.ts b/src/index.test.ts index 35caf1d..1baa02c 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -1639,8 +1639,8 @@ test('Check CreateCheck | 7', async () => { 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", + point_expires_at: "2024-03-06T17:39:29.000000Z", + expires_at: "2024-01-16T03:09:56.000000Z", usage_limit: 8911, is_onetime: true, description: "23WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6X" @@ -4701,19 +4701,19 @@ test('Check ListTransfers | 14', async () => { try { 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", + to: "2024-02-27T08:22:21.000000Z", + page: 532, + per_page: 218, + shop_id: "51a32931-1a88-4419-978c-b74df4025183", + shop_name: "a6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYH", + customer_id: "97e5ea88-c68d-491f-bca8-f848de508515", + customer_name: "Or63hjnglJCcSZdRjCOwy", + transaction_id: "1e9be219-1b86-4e61-be70-00be2900f515", + private_money_id: "8a7d7a30-269c-476c-8ef3-9ae2daaeea9e", is_modified: false, - transaction_types: ["cashback"], - transfer_types: ["expire", "payment", "topup"], - description: "klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCId" + transaction_types: ["topup", "expire", "transfer", "exchange", "cashback"], + transfer_types: ["transfer", "exchange", "coupon"], + description: "U1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqI" })); status = response.code; } catch (e) { @@ -4743,7 +4743,7 @@ test('Check ListTransfersV2 | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - to: "2021-08-19T09:40:54.000000Z" + to: "2023-04-24T11:52:04.000000Z" })); status = response.code; } catch (e) { @@ -4759,8 +4759,8 @@ test('Check ListTransfersV2 | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - from: "2021-06-29T12:37:03.000000Z", - to: "2021-12-08T00:35:28.000000Z" + from: "2021-02-28T21:44:07.000000Z", + to: "2020-06-20T16:05:34.000000Z" })); status = response.code; } catch (e) { @@ -4776,9 +4776,9 @@ test('Check ListTransfersV2 | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - description: "yGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1Uy", - from: "2023-05-04T18:11:47.000000Z", - to: "2021-03-13T04:02:07.000000Z" + description: "L8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcL", + from: "2022-05-07T07:33:39.000000Z", + to: "2021-02-26T05:13:40.000000Z" })); status = response.code; } catch (e) { @@ -4794,10 +4794,10 @@ test('Check ListTransfersV2 | 4', async () => { let status = 400; try { 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" + transfer_types: ["expire", "cashback", "transfer", "campaign", "coupon"], + description: "IrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRf", + from: "2023-07-21T11:26:44.000000Z", + to: "2022-11-23T03:12:25.000000Z" })); status = response.code; } catch (e) { @@ -4813,11 +4813,11 @@ test('Check ListTransfersV2 | 5', async () => { let status = 400; try { 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" + per_page: 717, + transfer_types: ["transfer"], + description: "Ds9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98", + from: "2020-02-11T04:00:02.000000Z", + to: "2022-05-07T17:02:15.000000Z" })); status = response.code; } catch (e) { @@ -4833,12 +4833,12 @@ test('Check ListTransfersV2 | 6', async () => { let status = 400; try { 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" + prev_page_cursor_id: "1e74191c-0e2d-4e1e-895f-03afddabfe94", + per_page: 181, + transfer_types: ["exchange", "campaign", "cashback", "expire", "payment", "transfer", "topup", "coupon"], + description: "5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVY", + from: "2023-09-25T07:38:16.000000Z", + to: "2021-08-28T00:48:34.000000Z" })); status = response.code; } catch (e) { @@ -4854,13 +4854,13 @@ test('Check ListTransfersV2 | 7', async () => { let status = 400; try { 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" + next_page_cursor_id: "786c5ce8-1834-4f52-8dac-dc000b29450c", + prev_page_cursor_id: "88ec6fd7-f6a4-46b4-936a-840a0cb35793", + per_page: 654, + transfer_types: ["coupon"], + description: "u2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCb", + from: "2021-10-04T22:51:31.000000Z", + to: "2021-07-25T03:11:47.000000Z" })); status = response.code; } catch (e) { @@ -4876,14 +4876,14 @@ test('Check ListTransfersV2 | 8', async () => { let status = 400; try { 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" + transaction_types: ["cashback", "topup", "exchange"], + next_page_cursor_id: "49e56398-02f9-498f-8bd5-da82a90641a4", + prev_page_cursor_id: "a07d9779-cbfd-47c2-b08c-0abeb39dde94", + per_page: 136, + transfer_types: ["payment", "transfer", "cashback", "campaign"], + description: "FHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhq", + from: "2023-01-09T23:52:41.000000Z", + to: "2022-09-23T13:00:01.000000Z" })); status = response.code; } catch (e) { @@ -4900,14 +4900,14 @@ test('Check ListTransfersV2 | 9', async () => { try { 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" + transaction_types: ["payment", "expire", "cashback", "transfer"], + next_page_cursor_id: "0f0a9aca-721a-493c-a8d7-34c6b7765b7c", + prev_page_cursor_id: "3b9d9ff7-83a3-413b-8106-37d301940baa", + per_page: 604, + transfer_types: ["expire", "campaign", "cashback", "payment", "coupon", "transfer", "exchange", "topup"], + description: "Ezja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQ", + from: "2022-05-16T21:50:12.000000Z", + to: "2021-03-30T17:45:55.000000Z" })); status = response.code; } catch (e) { @@ -4923,16 +4923,16 @@ test('Check ListTransfersV2 | 10', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - private_money_id: "e56cdcc7-1bfc-447a-bb2c-7e9111b2eb35", + private_money_id: "8325ccc8-e2f9-4169-862b-4f22fde3c66f", 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" + transaction_types: ["expire", "topup", "payment", "cashback", "transfer", "exchange"], + next_page_cursor_id: "cc574e88-c45d-4bc8-a0f1-e2fb9e931459", + prev_page_cursor_id: "48e8f195-8779-4825-9f4b-dc1509dc54b8", + per_page: 200, + transfer_types: ["transfer", "exchange"], + description: "GU45uzPdd", + from: "2024-01-01T18:14:23.000000Z", + to: "2023-10-07T02:12:34.000000Z" })); status = response.code; } catch (e) { @@ -4948,17 +4948,17 @@ test('Check ListTransfersV2 | 11', async () => { let status = 400; try { const response: Response = await client.send(new ListTransfersV2({ - transaction_id: "9c7e72ce-9e99-46ce-8094-8676f95241d5", - private_money_id: "7e366dc3-7d1e-4b30-a271-44099d6dc000", + transaction_id: "5301ba98-1230-42e4-830f-34cafde925a2", + private_money_id: "10a14565-72ce-4e99-8e80-3094f99e8676", is_modified: false, transaction_types: ["exchange"], - next_page_cursor_id: "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" + next_page_cursor_id: "786b5f8f-7973-4931-a896-fb3fcb85de98", + prev_page_cursor_id: "16cc8c94-13f6-42df-9219-346dde3ce47e", + per_page: 869, + transfer_types: ["payment", "cashback", "exchange", "coupon", "transfer"], + description: "brAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0", + from: "2022-07-17T06:33:19.000000Z", + to: "2024-01-06T19:53:08.000000Z" })); status = response.code; } catch (e) { @@ -4974,18 +4974,18 @@ test('Check ListTransfersV2 | 12', async () => { let status = 400; try { 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", + customer_name: "G0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvT", + transaction_id: "67f248ff-d3ed-4517-a61d-d1eb3ef959d3", + private_money_id: "39bd4c70-3764-4ee3-bf9d-7a9147de42cc", 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" + transaction_types: ["payment", "cashback", "topup", "expire"], + next_page_cursor_id: "d66771ca-a929-4b51-891c-68523389333e", + prev_page_cursor_id: "ded5f4e9-a29c-4ffc-b55f-47f6f497bed7", + per_page: 222, + transfer_types: ["transfer", "payment", "coupon", "cashback", "exchange", "campaign", "topup"], + description: "qbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EE", + from: "2022-12-30T12:00:08.000000Z", + to: "2022-09-01T12:57:42.000000Z" })); status = response.code; } catch (e) { @@ -5001,19 +5001,19 @@ test('Check ListTransfersV2 | 13', async () => { let status = 400; try { 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" + customer_id: "9e4cd36d-0aae-429b-9dd1-a677220fb134", + customer_name: "mJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5o", + transaction_id: "d5d5907a-16c8-4c44-aea2-a38ae2e9b1b0", + private_money_id: "0ce2db90-10e9-4892-bc8f-099326e0609a", + is_modified: true, + transaction_types: ["expire", "transfer", "cashback", "topup", "exchange"], + next_page_cursor_id: "9859849b-0e1b-438a-b9d2-cfaa3919a430", + prev_page_cursor_id: "1e4c8d6e-961c-411b-81aa-20a7606e9f51", + per_page: 236, + transfer_types: ["topup", "exchange", "payment"], + description: "z7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvf", + from: "2022-03-09T22:13:49.000000Z", + to: "2024-01-10T05:02:11.000000Z" })); status = response.code; } catch (e) { @@ -5029,20 +5029,20 @@ test('Check ListTransfersV2 | 14', async () => { let status = 400; try { 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" + shop_name: "Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8", + customer_id: "f84c0fae-8671-4045-92fb-a25e36318b3e", + customer_name: "1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9", + transaction_id: "b8368dc9-3490-4e44-8490-6d93394d4095", + private_money_id: "2934a934-e0c6-4d1a-bccc-945b27afb95d", + is_modified: false, + transaction_types: ["expire", "cashback", "transfer", "payment", "exchange"], + next_page_cursor_id: "ce4f63a2-a763-4e54-8425-62c3458bbd61", + prev_page_cursor_id: "577317e6-a2f5-4b06-a30d-6e0764523ce0", + per_page: 591, + transfer_types: ["topup", "campaign", "expire"], + description: "50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MW", + from: "2021-05-31T10:22:22.000000Z", + to: "2022-11-13T18:05:41.000000Z" })); status = response.code; } catch (e) { @@ -5058,21 +5058,21 @@ test('Check ListTransfersV2 | 15', async () => { let status = 400; try { 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" + shop_id: "dd34396c-10f8-414a-8d71-9e655904d196", + shop_name: "EoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4", + customer_id: "930a0e29-6b6a-428f-b718-6f7099d5e3fb", + customer_name: "0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPM", + transaction_id: "30175c7a-6f58-456e-8164-bbc4f6b1b872", + private_money_id: "7af290dc-8205-40d9-b95b-59828e008db6", + is_modified: false, + transaction_types: ["expire", "payment", "topup"], + next_page_cursor_id: "478f9181-11d1-4fb9-b8bd-80fb6c039586", + prev_page_cursor_id: "ae842453-150a-42ce-9830-a07a3220169b", + per_page: 153, + transfer_types: ["cashback", "coupon", "exchange", "expire", "transfer", "topup", "campaign"], + description: "ix", + from: "2022-05-30T00:08:09.000000Z", + to: "2023-12-14T02:17:58.000000Z" })); status = response.code; } catch (e) { @@ -5088,7 +5088,7 @@ test('Check ListOrganizations | 0', async () => { let status = 400; try { const response: Response = await client.send(new ListOrganizations({ - private_money_id: "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f" + private_money_id: "fd11d67f-90f1-4aea-bfe7-8524bf4859f6" })); status = response.code; } catch (e) { @@ -5104,8 +5104,8 @@ test('Check ListOrganizations | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListOrganizations({ - private_money_id: "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f", - code: "jwDm" + private_money_id: "fd11d67f-90f1-4aea-bfe7-8524bf4859f6", + code: "Ncs" })); status = response.code; } catch (e) { @@ -5121,9 +5121,9 @@ test('Check ListOrganizations | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListOrganizations({ - private_money_id: "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f", - name: "dL", - code: "IlDiaOh78" + private_money_id: "fd11d67f-90f1-4aea-bfe7-8524bf4859f6", + name: "QLQxA", + code: "tJmVTcXWtK" })); status = response.code; } catch (e) { @@ -5139,10 +5139,10 @@ test('Check ListOrganizations | 3', async () => { let status = 400; try { const response: Response = await client.send(new ListOrganizations({ - private_money_id: "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f", - per_page: 1885, - name: "fh", - code: "bZ3YfG" + private_money_id: "fd11d67f-90f1-4aea-bfe7-8524bf4859f6", + per_page: 5974, + name: "kN", + code: "d35" })); status = response.code; } catch (e) { @@ -5158,11 +5158,11 @@ test('Check ListOrganizations | 4', async () => { let status = 400; try { 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" + private_money_id: "fd11d67f-90f1-4aea-bfe7-8524bf4859f6", + page: 4321, + per_page: 9262, + name: "uBKlwozbM8", + code: "BIp6WWFto" })); status = response.code; } catch (e) { @@ -5178,11 +5178,11 @@ test('Check CreateOrganization | 0', async () => { let status = 400; try { 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" + code: "M3mKKWyblmmAHRS", + name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], + issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", + member_admin_user_email: "MAKSZHQ2Tj@ahc0.com" })); status = response.code; } catch (e) { @@ -5198,12 +5198,12 @@ test('Check CreateOrganization | 1', async () => { let status = 400; try { 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" + code: "M3mKKWyblmmAHRS", + name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], + issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", + member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", + contact_name: "ASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5" })); status = response.code; } catch (e) { @@ -5219,13 +5219,13 @@ test('Check CreateOrganization | 2', async () => { let status = 400; try { 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" + code: "M3mKKWyblmmAHRS", + name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], + issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", + member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", + bank_account_holder_name: "7", + contact_name: "WZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4" })); status = response.code; } catch (e) { @@ -5241,14 +5241,14 @@ test('Check CreateOrganization | 3', async () => { let status = 400; try { 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" + code: "M3mKKWyblmmAHRS", + name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], + issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", + member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", + bank_account: "", + bank_account_holder_name: "X", + contact_name: "453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh" })); status = response.code; } catch (e) { @@ -5264,15 +5264,15 @@ test('Check CreateOrganization | 4', async () => { let status = 400; try { 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" + code: "M3mKKWyblmmAHRS", + name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], + issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", + member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", + bank_account_type: "other", + bank_account: "5", + bank_account_holder_name: "/", + contact_name: "Adcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsX" })); status = response.code; } catch (e) { @@ -5288,16 +5288,16 @@ test('Check CreateOrganization | 5', async () => { let status = 400; try { 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" + code: "M3mKKWyblmmAHRS", + name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], + issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", + member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", + bank_branch_code: "280", + bank_account_type: "saving", + bank_account: "4217", + bank_account_holder_name: "ル", + contact_name: "pIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8" })); status = response.code; } catch (e) { @@ -5313,17 +5313,17 @@ test('Check CreateOrganization | 6', async () => { let status = 400; try { 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" + code: "M3mKKWyblmmAHRS", + name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], + issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", + member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", + bank_branch_name: "diYCurcmVOPZzwM", + bank_branch_code: "871", + bank_account_type: "saving", + bank_account: "", + bank_account_holder_name: "キ", + contact_name: "pW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8" })); status = response.code; } catch (e) { @@ -5339,18 +5339,18 @@ test('Check CreateOrganization | 7', async () => { let status = 400; try { 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" + code: "M3mKKWyblmmAHRS", + name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], + issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", + member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", + bank_code: "", + bank_branch_name: "q15XpRuu89q3NykiRPYO2oQiAY", + bank_branch_code: "382", + bank_account_type: "other", + bank_account: "589", + bank_account_holder_name: "「", + contact_name: "SjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV" })); status = response.code; } catch (e) { @@ -5366,19 +5366,19 @@ test('Check CreateOrganization | 8', async () => { let status = 400; try { 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", + code: "M3mKKWyblmmAHRS", + name: "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + private_money_ids: ["c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"], + issuer_admin_user_email: "9CjYdhYyR9@ZtWh.com", + member_admin_user_email: "MAKSZHQ2Tj@ahc0.com", + bank_name: "uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSp", + bank_code: "0682", + bank_branch_name: "QLy6PO73cHGKqjz0v27dHE8reh", bank_branch_code: "", - bank_account_type: "other", - bank_account: "9652717", - bank_account_holder_name: "ム", - contact_name: "RCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VU" + bank_account_type: "current", + bank_account: "09", + bank_account_holder_name: "テ", + contact_name: "2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJ" })); status = response.code; } catch (e) { @@ -5408,7 +5408,7 @@ test('Check ListShops | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - per_page: 2642 + per_page: 7130 })); status = response.code; } catch (e) { @@ -5424,8 +5424,8 @@ test('Check ListShops | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - page: 7164, - per_page: 807 + page: 7961, + per_page: 6131 })); status = response.code; } catch (e) { @@ -5442,8 +5442,8 @@ test('Check ListShops | 3', async () => { try { const response: Response = await client.send(new ListShops({ with_disabled: true, - page: 659, - per_page: 3135 + page: 3741, + per_page: 4684 })); status = response.code; } catch (e) { @@ -5459,10 +5459,10 @@ test('Check ListShops | 4', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - external_id: "r7fsBnFuG56tOVY8vi9Z9lrbTG", - with_disabled: false, - page: 2467, - per_page: 1897 + external_id: "48UyLazcda", + with_disabled: true, + page: 4543, + per_page: 8830 })); status = response.code; } catch (e) { @@ -5478,11 +5478,11 @@ test('Check ListShops | 5', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - email: "4QbdPS2DfL@ew9j.com", - external_id: "cXjFRqAsdyU0E", - with_disabled: true, - page: 6790, - per_page: 8997 + email: "g9M9b56VUQ@zIG7.com", + external_id: "r7fsBnFuG56tOVY8vi9Z9lrbTG", + with_disabled: false, + page: 2467, + per_page: 1897 })); status = response.code; } catch (e) { @@ -5498,12 +5498,12 @@ test('Check ListShops | 6', async () => { let status = 400; try { 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 + tel: "03-19-6229", + email: "dPS2DfLew9@jsvL.com", + external_id: "XjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp", + with_disabled: true, + page: 5759, + per_page: 8627 })); status = response.code; } catch (e) { @@ -5519,13 +5519,13 @@ test('Check ListShops | 7', async () => { let status = 400; try { const response: Response = await client.send(new ListShops({ - address: "s83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM", - tel: "091-03463", - email: "yAShBlCJPj@tVj6.com", - external_id: "A58jW2j8noWbhryHKQA", + address: "diJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAS", + tel: "028204669152", + email: "8jW2j8noWb@hryH.com", + external_id: "KQAP2bBeZkmIh2UeN7", with_disabled: true, - page: 9827, - per_page: 1799 + page: 4607, + per_page: 4277 })); status = response.code; } catch (e) { @@ -5541,14 +5541,14 @@ test('Check ListShops | 8', async () => { let status = 400; try { 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 + postal_code: "7747550", + address: "MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0S", + tel: "02-2481879", + email: "xGHxi6f0cu@W1Zh.com", + external_id: "tCHCm7yUfJm7F", + with_disabled: true, + page: 9576, + per_page: 403 })); status = response.code; } catch (e) { @@ -5564,15 +5564,15 @@ test('Check ListShops | 9', async () => { let status = 400; try { 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 + name: "8YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5N", + postal_code: "0389723", + address: "qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9", + tel: "0728819628", + email: "VF2gH7EAnl@FEgM.com", + external_id: "mBN0T80aLvrKoRyTXgPVT4AzeoZ", + with_disabled: false, + page: 9020, + per_page: 9500 })); status = response.code; } catch (e) { @@ -5588,16 +5588,16 @@ test('Check ListShops | 10', async () => { let status = 400; try { 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", + private_money_id: "ee4d51fd-5a4f-4a59-be75-cef5577dd231", + name: "RyqlWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcN", + postal_code: "282-5219", + address: "0lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuw", + tel: "013981-0924", + email: "HLBFs4pFpu@xUcI.com", + external_id: "rb43g0nK7tb3btHVGJJQejQb3sdWf", with_disabled: false, - page: 3137, - per_page: 6059 + page: 344, + per_page: 9090 })); status = response.code; } catch (e) { @@ -5613,17 +5613,17 @@ test('Check ListShops | 11', async () => { let status = 400; try { 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 + organization_code: "RfZph94--4G--48o-gVrg65t-Su", + private_money_id: "f6bd24bc-8d9a-4506-8eed-2dac62e4700e", + name: "p3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", + postal_code: "6777462", + address: "eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKi", + tel: "060673665", + email: "qDH6cAdyVZ@n4o5.com", + external_id: "A5DSTN7FZ8Y8t8MIK7", + with_disabled: false, + page: 1530, + per_page: 78 })); status = response.code; } catch (e) { @@ -5639,7 +5639,7 @@ test('Check CreateShop | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateShop({ - shop_name: "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" + shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh" })); status = response.code; } catch (e) { @@ -5655,8 +5655,8 @@ test('Check CreateShop | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateShop({ - shop_name: "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh", - organization_code: "8GKA8B--Yx--7Lw-HR09g---0--6" + shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", + organization_code: "5f--P--" })); status = response.code; } catch (e) { @@ -5672,9 +5672,9 @@ test('Check CreateShop | 2', async () => { let status = 400; try { const response: Response = await client.send(new CreateShop({ - shop_name: "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh", - shop_external_id: "DH6cAdyVZn4o55A5DS", - organization_code: "M---aZN9aTZ-MACo-8Dz" + shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", + shop_external_id: "wwlNZ", + organization_code: "cv3786tt-8b-tR--" })); status = response.code; } catch (e) { @@ -5690,10 +5690,10 @@ test('Check CreateShop | 3', async () => { let status = 400; try { const response: Response = await client.send(new CreateShop({ - shop_name: "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh", - shop_email: "R94JgHtiXr@fi45.com", - shop_external_id: "gdORj3Jla3Pfb8OgNhhqnfBQjV", - organization_code: "-l4" + shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", + shop_email: "x8cOR3TFR9@a8hM.com", + shop_external_id: "Mtt7RdIKeKSciqwdkkgvqZ", + organization_code: "Z0-50-gK-d-ZQh66q" })); status = response.code; } catch (e) { @@ -5709,11 +5709,11 @@ test('Check CreateShop | 4', async () => { let status = 400; try { 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" + shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", + shop_tel: "0268705290", + shop_email: "29oTCv16fP@XjhV.com", + shop_external_id: "pKgtr0aXml0I8", + organization_code: "KYD6-Qy-02Yp----iy-A0" })); status = response.code; } catch (e) { @@ -5729,12 +5729,12 @@ test('Check CreateShop | 5', async () => { let status = 400; try { 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" + shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", + shop_address: "8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNj", + shop_tel: "0109-309718", + shop_email: "ADYEWxDRpy@5o7r.com", + shop_external_id: "N4eiDq", + organization_code: "Y2lJz-JS2K-H-k4Jp2m---" })); status = response.code; } catch (e) { @@ -5750,13 +5750,13 @@ test('Check CreateShop | 6', async () => { let status = 400; try { 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-" + shop_name: "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", + shop_postal_code: "850-7917", + shop_address: "tSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9", + shop_tel: "0848-097", + shop_email: "3fT2ekfbMy@pSoZ.com", + shop_external_id: "rm", + organization_code: "k610S7NJ-u-h9D0B79-" })); status = response.code; } catch (e) { @@ -5772,7 +5772,7 @@ test('Check CreateShopV2 | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateShopV2({ - name: "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" + name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk" })); status = response.code; } catch (e) { @@ -5788,8 +5788,8 @@ test('Check CreateShopV2 | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateShopV2({ - name: "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA", - can_topup_private_money_ids: [] + name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", + can_topup_private_money_ids: ["a97e4d57-f3f0-40db-bc7b-690dac7645e5", "dc252447-0dd6-4ba1-95f4-41ad2f0d6d37", "0fffc042-3507-4d1a-a3d4-ba3a7d64a460", "93d3b47f-349f-4e74-a7cb-933395ef0809", "aa7b09ad-7f5d-42ac-a116-923b71619f9c", "f28dcdd6-c177-49be-bb24-810bc594df8b", "136d8162-a009-4755-9367-dc5f76c294d8", "2d640bc9-d190-4e47-a6c4-003b3b7d2250"] })); status = response.code; } catch (e) { @@ -5805,9 +5805,9 @@ test('Check CreateShopV2 | 2', async () => { let status = 400; try { 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"] + name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", + private_money_ids: ["f88b5ed0-6726-4f18-b748-530dd7a66cc5", "72710844-5a5f-422e-9d30-bd4b7a49c5be", "0ede1a74-0d28-4195-adad-fb44a3d4eb5e", "26378601-c10a-4efa-b8cc-f1d5ab6d912c", "d1e5462f-0962-49d5-9c24-b08dd6e27765", "1a6f71e7-8bb7-4ef7-a138-9c08250f055b"], + can_topup_private_money_ids: ["9aaf2bc0-b87d-4a13-9695-36fb7866477d", "dc24ec29-5e49-40d5-8837-2e5502fe084b", "7a298ce8-2189-4b9d-bc21-2bf88f125b4c"] })); status = response.code; } catch (e) { @@ -5823,10 +5823,10 @@ test('Check CreateShopV2 | 3', async () => { let status = 400; try { 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"] + name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", + organization_code: "-HQ-Ro6-Ya7W2---", + private_money_ids: ["9ead6d97-097b-487e-9714-3c57c7d00812"], + can_topup_private_money_ids: ["3fad58e5-2ab6-4b26-b949-2f938743bbdf", "d9346ac8-abc3-400a-a790-66840a64a5ab"] })); status = response.code; } catch (e) { @@ -5842,11 +5842,11 @@ test('Check CreateShopV2 | 4', async () => { let status = 400; try { 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"] + name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", + external_id: "e3KvTMWtvAOdqc6t46b4EgFIpDVk", + organization_code: "X6-rt-3sy-LB256zJw7T--EY-869Y", + private_money_ids: ["5f64556a-c481-4d81-9cf0-b2afb61ffd6f", "8bc071d9-6c4f-4ceb-864c-c959c3730c89", "644070e2-865d-484a-8d34-fe9c46da04b6", "30ebe918-39d9-4a47-ae12-a5a0762b58dd", "c0c20b4b-0944-47ca-a125-051757bd511a", "538cf11e-232a-4e56-91c1-599da68087ce", "091c0808-1ef4-4d66-a69b-08d5355c3a64", "cacfacc8-bfa8-45d6-a3f3-1e6fd1018075", "63e177fc-22f8-4a96-9833-b986e1080778"], + can_topup_private_money_ids: ["de6731b9-ba12-40c3-a6c8-981305bcf564", "4e91d35a-f95f-4747-bd6b-7f45ee2eed17", "f93abace-e809-483f-92c4-d88173ca89d3", "670635eb-36a4-4952-b966-a9d7e78f9099", "a4f89b60-f14b-4e41-b86a-c98c69dc5424", "c36d46fc-11d1-4c88-97ea-798e105e3243", "68ec2842-b0b8-4492-9a1f-3140097e73ee", "af9522c6-e63f-4c2f-907c-1563c21e4c82", "3b5350f1-5912-48ed-8586-bca6c60bce98"] })); status = response.code; } catch (e) { @@ -5862,12 +5862,12 @@ test('Check CreateShopV2 | 5', async () => { let status = 400; try { 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"] + name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", + email: "NfDor1zgwF@9x3x.com", + external_id: "ZsR", + organization_code: "3BAr-7-G9lrl", + private_money_ids: ["7eaa259f-ef33-4a4f-90ab-d8a1ef2b2df5", "29f04be4-3593-4ad8-b095-67048a140784", "82633b59-d0e8-4e2f-8ef7-7446a7bdf8d7", "c2628355-1841-45cb-8f3c-f0ee2f5845d7", "f670a0ec-b0e8-49ee-8cfc-1ce1a0a044a9", "5c482a30-01ec-4911-9e59-3703918782ce"], + can_topup_private_money_ids: ["3bbff11f-d80d-453c-a2c5-f87d98f4575e"] })); status = response.code; } catch (e) { @@ -5883,13 +5883,13 @@ test('Check CreateShopV2 | 6', async () => { let status = 400; try { 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"] + name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", + tel: "0706-299-751", + email: "E3q4gTN93g@HJA1.com", + external_id: "FfneXYRV1FBu9VqwmK2QWEkaIk3", + organization_code: "-aH1U8-oB0RsBu", + private_money_ids: ["ae82df74-2702-4972-afa7-f8369df0cddf", "02b4209f-80b5-47d2-bacd-ae3c00e4c100", "46361234-8f53-43d9-9979-c8d7848404d0"], + can_topup_private_money_ids: ["14b223a4-54b4-4804-a2b5-e24506be7ef6"] })); status = response.code; } catch (e) { @@ -5905,14 +5905,14 @@ test('Check CreateShopV2 | 7', async () => { let status = 400; try { 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"] + name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", + address: "FhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWy", + tel: "0258643-2381", + email: "fyfPvqbgkb@gVyE.com", + external_id: "xJx", + organization_code: "z2xJYke----Du6670x3", + private_money_ids: ["cafc81d1-aef2-4076-833e-7e999db852fb"], + can_topup_private_money_ids: [] })); status = response.code; } catch (e) { @@ -5928,15 +5928,15 @@ test('Check CreateShopV2 | 8', async () => { let status = 400; try { 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"] + name: "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", + postal_code: "5669559", + address: "rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClW", + tel: "09370795-600", + email: "6qorRSF9NZ@ATmh.com", + external_id: "oWmfQbT09Lp665rg0d7eG", + organization_code: "toK78LG2-", + private_money_ids: ["3722fedb-fcc9-4e09-9167-d75d534492f7", "53930cf8-7113-4e23-b86f-3deff057915d", "1043c491-d7fc-4cf3-8acc-fecbb246bab5"], + can_topup_private_money_ids: ["3bad8971-45b6-40a8-beb7-1e2a4bd1a5a9", "70984756-99ac-4c18-984d-a9057f5454f0"] })); status = response.code; } catch (e) { @@ -5952,7 +5952,7 @@ test('Check GetShop | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetShop({ - shop_id: "638ae364-4dda-474a-8c54-0198b0d9e027" + shop_id: "fc39bb18-ffda-4647-a8cd-4553857aa692" })); status = response.code; } catch (e) { @@ -5968,7 +5968,7 @@ test('Check UpdateShop | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateShop({ - shop_id: "f955ad39-a505-4cae-bcab-3898474d3cff" + shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6" })); status = response.code; } catch (e) { @@ -5984,7 +5984,7 @@ test('Check UpdateShop | 1', async () => { let status = 400; try { const response: Response = await client.send(new UpdateShop({ - shop_id: "f955ad39-a505-4cae-bcab-3898474d3cff", + shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", status: "disabled" })); status = response.code; @@ -6001,9 +6001,9 @@ test('Check UpdateShop | 2', async () => { let status = 400; try { 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" + shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", + can_topup_private_money_ids: ["b641d85b-3ca4-4710-88d9-85d21e42d16a", "2f93d07a-3629-4c41-92da-738c009370de", "b11d6899-71f7-4630-857c-5b35524dabd4", "d67ba291-9cf9-4c30-801f-52fe8a8d0707", "be9d8702-b5ee-4ee5-aef7-5c2394fb0f7a", "20f018c8-664f-4b7f-a1c9-64d649d982f7", "055db824-ca0d-4aa8-8e0b-c14d74005b0e", "443a0c54-749a-4b91-88ea-5d9f33b2bdd0"], + status: "disabled" })); status = response.code; } catch (e) { @@ -6019,10 +6019,10 @@ test('Check UpdateShop | 3', async () => { let status = 400; try { 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" + shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", + private_money_ids: ["4b7d345e-13c6-4e94-9f4d-7f04f85d3647", "1c45aa1a-91e5-4376-a713-c0f714edd5d6", "9295abcd-c59f-4365-80da-781df7cf65df", "aaee20fb-f7ab-490a-8ff4-c03888f3fac5", "b1806aa8-1f71-409b-9faf-227ee7d8abc9", "326fac9b-1e76-453e-898e-fa09cb96c892"], + can_topup_private_money_ids: ["695a3ff8-327c-48f6-81fe-80ecbca5126a", "3a30c4b5-c24b-4be1-ac8b-91f1220b3dbc", "5b5eaff8-e42c-4b0c-a418-1a034c73bb41", "33f65219-2a29-49fe-b748-56f526e1472a", "dd005588-4e1e-435c-9f91-a03f8a4b4492", "0f15b3fd-5c7b-4171-a3f6-f4293fcaaf9f", "cc2df764-af18-4b91-934e-0d1ceeb25c5b", "c05683f6-9ee5-48d7-bad7-6ec908a01f2e", "ac6a7a35-f5cc-4a93-8097-b88d36f43bb6"], + status: "disabled" })); status = response.code; } catch (e) { @@ -6038,11 +6038,11 @@ test('Check UpdateShop | 4', async () => { let status = 400; try { 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" + shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", + external_id: "QvZvRJLln3CmVmPz2bcH2x", + private_money_ids: ["47f387c2-4048-427c-94e2-6980a843eee9", "f7ec771e-0bcf-4ac8-a7a2-ca1268fe0c59", "8724bc8d-bc14-435c-a2fa-b25f6dc092a9", "307f775e-0bd7-4720-86b7-9445bb04c59d", "b2791b2b-74d9-4b0f-83ae-30661ce90ba7", "0f4e0bb7-bab6-45ad-946f-615c544ea624"], + can_topup_private_money_ids: ["451b0c2e-dea3-47e3-bca1-6b896ea55708", "4744398d-0eec-4100-b8e4-eef4c9589522", "abd40a2a-d67a-443f-9563-b0f13639882d", "edc5efc4-95b6-41f2-b12e-be405b3f107f", "933685f7-b147-4426-84fd-3a88da476a56", "dd9456d2-19e4-4c6f-a0ea-328534361b47", "556f5a6a-947b-46e9-a748-cc70dd98a114", "70b6451f-96da-4ebb-846c-121b99048d9d"], + status: "active" })); status = response.code; } catch (e) { @@ -6058,11 +6058,11 @@ test('Check UpdateShop | 5', async () => { let status = 400; try { 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"], + shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", + email: "8InHQBhMIr@dZJT.com", + external_id: "9MnQgGfElkSct56tB3QvYjy8m", + private_money_ids: ["6ce4fe92-b0aa-4900-a7c4-5679cd343c95", "0b0218d8-5e2e-488e-913a-62a382675314", "d48a3c59-8307-49cf-8eaa-ce182f38af01", "3bf70fd3-7073-4dae-a818-c1199f4aa6f0", "27138bbd-f847-4bcd-836b-6fe5a7c4cdb1"], + can_topup_private_money_ids: [], status: "active" })); status = response.code; @@ -6079,12 +6079,12 @@ test('Check UpdateShop | 6', async () => { let status = 400; try { 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"], + shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", + tel: "0005-9248141", + email: "iUj9JqianI@8FqI.com", + external_id: "qzelGZDONUAJfl2HMto7yaW0G", + private_money_ids: ["38efd286-ccb1-4970-8f8f-01cf76094593", "14b8b70c-2bc2-4da4-9a81-38fb67363d17", "6608ae1e-43fb-40ba-8108-d1efdbb8fbfe", "6ee8ecf3-d0f8-4963-9594-e9dff17a2eb6"], + can_topup_private_money_ids: ["f873bf31-ad5e-413d-b628-9abb4f324bc6", "652db89b-7722-4f4d-8b27-0b4e5c64db39", "44f54ca8-c540-4a35-aa97-ea322987e4bf", "a250df56-3a2f-45ff-9564-17d1d2de9c33", "a3baf25f-8e7c-497e-863c-0a8bda44ad74", "80b438b6-bb08-4e33-bf09-6c9c6d7a8dd7", "54220f70-fb7f-4b79-b3e7-d55e4b891b07"], status: "active" })); status = response.code; @@ -6101,14 +6101,14 @@ test('Check UpdateShop | 7', async () => { let status = 400; try { 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" + shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", + address: "20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKruisPGcjRxKz0hnHtPEmOFzye10sMn1hLqgZ4Scflk2JdjznjOojFztUyYyUwwyS9B5htgNIDpUpzKyj3BEvYp1TbuySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7", + tel: "037409056", + email: "BC2Sel2Qni@qdOC.com", + external_id: "9my1YOO8Cj", + private_money_ids: ["40a9195b-e812-449b-8c30-80fbd0f9ae59", "4787c17c-e346-4bed-b6b4-07308a3c7e5f"], + can_topup_private_money_ids: ["61851016-24d5-4e2e-afcd-6635e2edb077", "80343906-659b-4c85-94a6-44011287311e", "471eac5a-a4e7-4001-b5e5-069aa4784324", "dcb5e80a-8b0d-45b6-95b7-56e5c9b3c515"], + status: "disabled" })); status = response.code; } catch (e) { @@ -6124,14 +6124,14 @@ test('Check UpdateShop | 8', async () => { let status = 400; try { 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"], + shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", + postal_code: "8609258", + address: "E3L7gW6pVOxZ4jRFNa6hoBOihdHvejLf7HUNUhMpEnczyOhMWAPbHXytdjUT8FkE6WXDem2rgSzz35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ", + tel: "09-16923", + email: "YZY4p9bZgs@cBV3.com", + external_id: "pXiPPiW2qUm4F", + private_money_ids: ["427fc08c-0851-4c85-b5e3-ab2d687ff6f3", "1a4e61fc-15ac-43ed-bab0-77c75a672c59"], + can_topup_private_money_ids: ["056a8ddb-0ef7-40d9-847f-2c38b86fd813"], status: "disabled" })); status = response.code; @@ -6148,16 +6148,16 @@ test('Check UpdateShop | 9', async () => { let status = 400; try { 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" + shop_id: "375fa126-c77a-44bf-b786-a86bc10796f6", + name: "K8kF9CcO2FCZ7wQECuE", + postal_code: "987-8945", + address: "4l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", + tel: "047-4531-939", + email: "gb4Yb3t6km@vyhj.com", + external_id: "D7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJ", + private_money_ids: [], + can_topup_private_money_ids: ["13e59d9d-b8b0-40fc-83fc-c2046b3661c8", "d2330960-b1b1-472b-9530-bcc74e9936d1", "c9e06b62-7a39-4297-9f36-18cae73755fa"], + status: "disabled" })); status = response.code; } catch (e) { @@ -6187,7 +6187,7 @@ test('Check GetPrivateMoneys | 1', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneys({ - per_page: 8186 + per_page: 5471 })); status = response.code; } catch (e) { @@ -6203,8 +6203,8 @@ test('Check GetPrivateMoneys | 2', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneys({ - page: 5810, - per_page: 4290 + page: 3814, + per_page: 6679 })); status = response.code; } catch (e) { @@ -6220,9 +6220,9 @@ test('Check GetPrivateMoneys | 3', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneys({ - organization_code: "3----MH-9o-yfn-lICQwSF6", - page: 1459, - per_page: 8245 + organization_code: "2-0H-3-2f7yZ-n9----e-30kbsk2H-5J", + page: 9536, + per_page: 6615 })); status = response.code; } catch (e) { @@ -6238,7 +6238,7 @@ test('Check GetPrivateMoneyOrganizationSummaries | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" + private_money_id: "d131a915-2939-44d5-b344-449adb4679be" })); status = response.code; } catch (e) { @@ -6254,8 +6254,8 @@ test('Check GetPrivateMoneyOrganizationSummaries | 1', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "d8b99c9b-157c-4c26-b8cb-a653d242dd9c", - page: 3171 + private_money_id: "d131a915-2939-44d5-b344-449adb4679be", + page: 6767 })); status = response.code; } catch (e) { @@ -6271,9 +6271,9 @@ test('Check GetPrivateMoneyOrganizationSummaries | 2', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "d8b99c9b-157c-4c26-b8cb-a653d242dd9c", - per_page: 3815, - page: 8720 + private_money_id: "d131a915-2939-44d5-b344-449adb4679be", + per_page: 8597, + page: 1535 })); status = response.code; } catch (e) { @@ -6289,9 +6289,9 @@ test('Check GetPrivateMoneyOrganizationSummaries | 3', async () => { let status = 400; try { 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" + private_money_id: "d131a915-2939-44d5-b344-449adb4679be", + from: "2023-04-08T17:43:14.000000Z", + to: "2020-02-26T11:52:13.000000Z" })); status = response.code; } catch (e) { @@ -6307,10 +6307,10 @@ test('Check GetPrivateMoneyOrganizationSummaries | 4', async () => { let status = 400; try { 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 + private_money_id: "d131a915-2939-44d5-b344-449adb4679be", + from: "2021-08-23T00:04:33.000000Z", + to: "2021-05-06T17:07:04.000000Z", + page: 7960 })); status = response.code; } catch (e) { @@ -6326,11 +6326,11 @@ test('Check GetPrivateMoneyOrganizationSummaries | 5', async () => { let status = 400; try { 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 + private_money_id: "d131a915-2939-44d5-b344-449adb4679be", + from: "2021-08-12T01:57:43.000000Z", + to: "2022-03-26T03:33:02.000000Z", + per_page: 9256, + page: 7137 })); status = response.code; } catch (e) { @@ -6346,7 +6346,7 @@ test('Check GetPrivateMoneySummary | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneySummary({ - private_money_id: "f3db3178-c932-44fa-939a-ee7eab246f13" + private_money_id: "e7cd26a1-9168-425c-9d09-636dbe75dd68" })); status = response.code; } catch (e) { @@ -6362,8 +6362,8 @@ test('Check GetPrivateMoneySummary | 1', async () => { let status = 400; try { const response: Response = await client.send(new GetPrivateMoneySummary({ - private_money_id: "f3db3178-c932-44fa-939a-ee7eab246f13", - to: "2023-03-31T23:23:39.000000Z" + private_money_id: "e7cd26a1-9168-425c-9d09-636dbe75dd68", + to: "2021-11-10T15:25:11.000000Z" })); status = response.code; } catch (e) { @@ -6379,9 +6379,9 @@ test('Check GetPrivateMoneySummary | 2', async () => { let status = 400; try { 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" + private_money_id: "e7cd26a1-9168-425c-9d09-636dbe75dd68", + from: "2022-12-25T19:43:41.000000Z", + to: "2020-08-05T15:13:26.000000Z" })); status = response.code; } catch (e) { @@ -6397,7 +6397,7 @@ test('Check ListCustomerTransactions | 0', async () => { let status = 400; try { const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "fbf34e5c-b131-4778-8208-3d289e0d477c" + private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481" })); status = response.code; } catch (e) { @@ -6413,8 +6413,8 @@ test('Check ListCustomerTransactions | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListCustomerTransactions({ - private_money_id: "fbf34e5c-b131-4778-8208-3d289e0d477c", - per_page: 1705 + private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", + per_page: 8256 })); status = response.code; } catch (e) { @@ -6430,9 +6430,9 @@ 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 + private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", + page: 2206, + per_page: 7490 })); status = response.code; } catch (e) { @@ -6448,10 +6448,10 @@ test('Check ListCustomerTransactions | 3', async () => { let status = 400; try { 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 + private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", + to: "2020-01-20T01:11:03.000000Z", + page: 9694, + per_page: 9903 })); status = response.code; } catch (e) { @@ -6467,11 +6467,11 @@ 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 + private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", + from: "2020-02-01T11:11:06.000000Z", + to: "2020-11-08T11:23:32.000000Z", + page: 5385, + per_page: 4709 })); status = response.code; } catch (e) { @@ -6487,12 +6487,12 @@ test('Check ListCustomerTransactions | 5', async () => { let status = 400; try { 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 + private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", + is_modified: true, + from: "2022-10-29T14:50:22.000000Z", + to: "2021-04-30T22:35:59.000000Z", + page: 7609, + per_page: 8380 })); status = response.code; } catch (e) { @@ -6508,13 +6508,13 @@ 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 + private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", + type: "expire", + is_modified: false, + from: "2021-08-04T03:54:08.000000Z", + to: "2022-10-12T21:59:05.000000Z", + page: 8858, + per_page: 4413 })); status = response.code; } catch (e) { @@ -6530,14 +6530,14 @@ test('Check ListCustomerTransactions | 7', async () => { let status = 400; try { 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 + private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", + receiver_customer_id: "9087f23e-f2a7-441c-b433-8d14b39040e8", + type: "payment", + is_modified: true, + from: "2020-10-31T17:38:56.000000Z", + to: "2020-10-11T05:03:35.000000Z", + page: 5983, + per_page: 6393 })); status = response.code; } catch (e) { @@ -6553,15 +6553,15 @@ 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", + private_money_id: "ec30906c-a4c4-4703-b5df-0ca652008481", + sender_customer_id: "1e6c77d7-74a1-40cb-b0a5-1af95b4f3dbc", + receiver_customer_id: "81f23c66-355d-4806-bbfd-cd9a8c0411d3", type: "cashback", is_modified: false, - from: "2020-01-13T01:47:09.000000Z", - to: "2020-01-16T02:05:37.000000Z", - page: 7306, - per_page: 7712 + from: "2021-06-10T12:34:18.000000Z", + to: "2022-06-18T07:50:48.000000Z", + page: 6706, + per_page: 1232 })); status = response.code; } catch (e) { @@ -6577,7 +6577,7 @@ test('Check GetBulkTransaction | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetBulkTransaction({ - bulk_transaction_id: "3ed176a1-e054-42ad-80a1-789f9f6323fd" + bulk_transaction_id: "9ad02669-f2ce-43aa-878d-0615fd1d73ab" })); status = response.code; } catch (e) { @@ -6593,7 +6593,7 @@ 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" + bulk_transaction_id: "8d19d42d-8c55-410d-a223-f18af8702f99" })); status = response.code; } catch (e) { @@ -6609,8 +6609,8 @@ 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 + bulk_transaction_id: "8d19d42d-8c55-410d-a223-f18af8702f99", + per_page: 5933 })); status = response.code; } catch (e) { @@ -6626,9 +6626,9 @@ 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 + bulk_transaction_id: "8d19d42d-8c55-410d-a223-f18af8702f99", + page: 6622, + per_page: 3346 })); status = response.code; } catch (e) { @@ -6644,9 +6644,9 @@ 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 + private_money_id: "e30abff5-65d3-40c5-9785-a465e9b3f1cd", + shop_id: "c04a228a-5738-4402-9615-9e297f57284c", + amount: 2925.0 })); status = response.code; } catch (e) { @@ -6662,10 +6662,10 @@ 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 + private_money_id: "e30abff5-65d3-40c5-9785-a465e9b3f1cd", + shop_id: "c04a228a-5738-4402-9615-9e297f57284c", + amount: 2925.0, + expires_in: 2144 })); status = response.code; } catch (e) { @@ -6681,11 +6681,11 @@ 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 + private_money_id: "e30abff5-65d3-40c5-9785-a465e9b3f1cd", + shop_id: "c04a228a-5738-4402-9615-9e297f57284c", + amount: 2925.0, + description: "qznKIn9uBoqN", + expires_in: 6964 })); status = response.code; } catch (e) { @@ -6701,7 +6701,7 @@ test('Check GetCashtray | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetCashtray({ - cashtray_id: "930b0fbd-881e-47e9-8e12-d168522fcd4e" + cashtray_id: "5512a3ba-aadc-4358-870a-6d9abd7d2b7c" })); status = response.code; } catch (e) { @@ -6717,7 +6717,7 @@ test('Check CancelCashtray | 0', async () => { let status = 400; try { const response: Response = await client.send(new CancelCashtray({ - cashtray_id: "2adffaf5-1a32-40e6-bf0b-34a5f5f586b4" + cashtray_id: "f7a80c4b-aba9-43eb-b76d-38580067e846" })); status = response.code; } catch (e) { @@ -6733,7 +6733,7 @@ test('Check UpdateCashtray | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCashtray({ - cashtray_id: "a93d4ebb-a68b-4428-bc36-21b0137be536" + cashtray_id: "20ece2a9-ff06-420d-9b6e-77022062b188" })); status = response.code; } catch (e) { @@ -6749,8 +6749,8 @@ 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 + cashtray_id: "20ece2a9-ff06-420d-9b6e-77022062b188", + expires_in: 3917 })); status = response.code; } catch (e) { @@ -6766,9 +6766,9 @@ 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 + cashtray_id: "20ece2a9-ff06-420d-9b6e-77022062b188", + description: "L0vhZmz7rucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34hD1uxIbudPgKcAH4LqtvnYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46D", + expires_in: 1061 })); status = response.code; } catch (e) { @@ -6784,10 +6784,10 @@ 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 + cashtray_id: "20ece2a9-ff06-420d-9b6e-77022062b188", + amount: 1484.0, + description: "EY9Dfg2K2KSBJ32yceHkpeJS53rQYrIERvl0KriuNlhP5RwfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F279GcsdDtM3uSEYbuaOy1AtJbZFvX4DTrnYj6rE9HuWGm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30J", + expires_in: 1575 })); status = response.code; } catch (e) { @@ -6803,11 +6803,11 @@ test('Check CreateCampaign | 0', 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction" })); status = response.code; @@ -6824,13 +6824,13 @@ 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", - budget_caps_amount: 997496788 + budget_caps_amount: 826378708 })); status = response.code; } catch (e) { @@ -6846,17 +6846,17 @@ 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 517336317 + budget_caps_amount: 619822229 })); status = response.code; } catch (e) { @@ -6872,18 +6872,18 @@ 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", - dest_private_money_id: "0f960c70-0f8a-42c4-afe5-32c718d50ec0", + dest_private_money_id: "874b3279-0484-4c86-ba2f-13d129ee3dc0", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 256536435 + budget_caps_amount: 1933776541 })); status = response.code; } catch (e) { @@ -6899,19 +6899,19 @@ 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", - max_total_point_amount: 9860, - dest_private_money_id: "f77d6349-4909-4519-9ebd-d035b2b78d5d", + max_total_point_amount: 449, + dest_private_money_id: "7d082cbd-93e5-4654-b823-7e8a24141542", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1024891600 + budget_caps_amount: 1764941427 })); status = response.code; } catch (e) { @@ -6927,20 +6927,20 @@ 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", - max_point_amount: 9115, - max_total_point_amount: 9682, - dest_private_money_id: "73aa2839-2c25-4fc7-826f-fa85c994ba9f", + max_point_amount: 6740, + max_total_point_amount: 6373, + dest_private_money_id: "c4793847-f9c2-4eff-b4db-68db0b40ce74", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 906820179 + budget_caps_amount: 1046979123 })); status = response.code; } catch (e) { @@ -6956,21 +6956,21 @@ 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", exist_in_each_product_groups: false, - max_point_amount: 7529, - max_total_point_amount: 9233, - dest_private_money_id: "7fd2d2e1-9b1d-4900-8999-f9d312b6fb2b", + max_point_amount: 3313, + max_total_point_amount: 1827, + dest_private_money_id: "cc729950-54fb-4d0f-a18b-ab8113d363b3", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 651192846 + budget_caps_amount: 204619724 })); status = response.code; } catch (e) { @@ -6986,22 +6986,22 @@ 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", - minimum_number_for_combination_purchase: 2896, + minimum_number_for_combination_purchase: 7792, exist_in_each_product_groups: true, - max_point_amount: 1437, - max_total_point_amount: 5405, - dest_private_money_id: "0efa2b2f-9401-4e21-8809-96a6b2ba4994", + max_point_amount: 720, + max_total_point_amount: 8923, + dest_private_money_id: "300d0313-4c73-4d25-ad41-9627b85011b8", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1415330254 + budget_caps_amount: 1187813134 })); status = response.code; } catch (e) { @@ -7017,23 +7017,23 @@ 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", - applicable_shop_ids: ["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, + minimum_number_of_amount: 7580, + minimum_number_for_combination_purchase: 6246, exist_in_each_product_groups: true, - max_point_amount: 7346, - max_total_point_amount: 2968, - dest_private_money_id: "ded3fe86-756c-48d2-927c-702fb445fa90", + max_point_amount: 3682, + max_total_point_amount: 4593, + dest_private_money_id: "aec63e50-12e2-4040-81e2-b9ebf071400f", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 735107258 + budget_caps_amount: 127213637 })); status = response.code; } catch (e) { @@ -7049,11 +7049,78 @@ 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, + event: "external-transaction", + minimum_number_of_products: 5810, + minimum_number_of_amount: 666, + minimum_number_for_combination_purchase: 18, + exist_in_each_product_groups: true, + max_point_amount: 1706, + max_total_point_amount: 208, + dest_private_money_id: "9840cdab-d0c2-4c8d-a166-1013dd582994", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1283939849 + })); + 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: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, + event: "external-transaction", + applicable_shop_ids: ["d89c76fa-454e-41d4-8291-5cbddb249f87", "c6697a11-6b58-4349-967f-4d915b7302b1", "e48ef5f7-443d-4283-9b18-b7ac761ce9c7", "ed07dcfd-c909-4bf0-8ab1-390c81cf733b", "af6135d2-1886-44ee-b355-4f08d319d194", "404a7398-1c3d-4c09-a1b4-1416fe5dc4cb"], + minimum_number_of_products: 3903, + minimum_number_of_amount: 9760, + minimum_number_for_combination_purchase: 7088, + exist_in_each_product_groups: false, + max_point_amount: 4034, + max_total_point_amount: 6638, + dest_private_money_id: "cb22f064-4ed6-4327-8918-3813bd641c2a", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1101544356 + })); + 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: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", applicable_time_ranges: [{ "from": "12:00", @@ -7061,7 +7128,43 @@ test('Check CreateCampaign | 9', async () => { }, { "from": "12:00", "to": "23:59" - }, { + }], + applicable_shop_ids: ["af1c4822-11a4-413f-9072-310d5945d355", "930b0fbd-881e-47e9-8e12-d168522fcd4e"], + minimum_number_of_products: 6707, + minimum_number_of_amount: 8423, + minimum_number_for_combination_purchase: 5760, + exist_in_each_product_groups: false, + max_point_amount: 1717, + max_total_point_amount: 3772, + dest_private_money_id: "6694a68b-b428-403c-b6b0-e536ec92f73d", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 1994554518 + })); + 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: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, + event: "external-transaction", + applicable_days_of_week: [2, 5, 3, 0, 4, 3, 6, 2], + applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { @@ -7083,17 +7186,19 @@ test('Check CreateCampaign | 9', async () => { "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["ce2d24a8-c4f5-407b-8d56-502cdec1c4fb"], - minimum_number_for_combination_purchase: 9060, + applicable_shop_ids: ["03a49247-b289-4ebd-8cba-6a7166e3e4d1", "9689cfe9-af82-482b-a3a3-ca9228274a71"], + minimum_number_of_products: 8418, + minimum_number_of_amount: 3644, + minimum_number_for_combination_purchase: 5803, exist_in_each_product_groups: false, - max_point_amount: 3475, - max_total_point_amount: 5299, - dest_private_money_id: "f67f27bf-977a-458b-a585-48d1448d6705", + max_point_amount: 2483, + max_total_point_amount: 4209, + dest_private_money_id: "1da33c39-b581-44e9-8072-64d60b01a80e", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 980505426 + budget_caps_amount: 435207887 })); status = response.code; } catch (e) { @@ -7105,17 +7210,27 @@ test('Check CreateCampaign | 9', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 10', async () => { +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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", - applicable_days_of_week: [1, 4, 2], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [3, 2, 1, 0, 5, 5, 5, 4], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -7125,6 +7240,59 @@ test('Check CreateCampaign | 10', async () => { }, { "from": "12:00", "to": "23:59" + }], + applicable_shop_ids: ["cbed6dde-5e8b-47c5-b905-9f70d15bd0e6", "ac327f02-05a8-4b81-b2a5-14f30e19f29d", "e22d4b9f-c162-4a05-be4d-3dfa40fa8a06", "f70d1735-35f3-4a5c-a2c7-46b19e1cac0f", "fbf0a4a6-f38e-4f80-8700-5e67590958ff", "460f0ba1-9979-4272-8fb7-1a7d502d6f95", "0d328b2c-4923-44ef-a1fc-6b9130675d92"], + minimum_number_of_products: 4426, + minimum_number_of_amount: 1489, + minimum_number_for_combination_purchase: 2070, + exist_in_each_product_groups: true, + max_point_amount: 6059, + max_total_point_amount: 840, + dest_private_money_id: "39408316-624a-4437-8a47-0c42c6b1db7e", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 413072068 + })); + 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: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, + event: "external-transaction", + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [1, 5, 4, 2, 5, 0, 4, 6], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" }, { "from": "12:00", "to": "23:59" @@ -7141,17 +7309,19 @@ test('Check CreateCampaign | 10', async () => { "from": "12:00", "to": "23:59" }], - 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: 3807, - max_total_point_amount: 9324, - dest_private_money_id: "c0796849-742b-47e9-8255-d0445ca8f75b", + applicable_shop_ids: ["08ae7609-c839-463e-b677-edbb9446e466", "ef4f316d-778a-40d6-b2d7-22f266970e4b", "99a0b664-64b8-4920-9ae3-9a6b5bb7156e", "80e5d760-c7e4-4796-9750-6e6e386caa1c"], + minimum_number_of_products: 6769, + minimum_number_of_amount: 8351, + minimum_number_for_combination_purchase: 32, + exist_in_each_product_groups: false, + max_point_amount: 2287, + max_total_point_amount: 297, + dest_private_money_id: "fdccb7a5-4c12-4f12-9b13-bb914f6d6ffc", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1009515673 + budget_caps_amount: 405791693 })); status = response.code; } catch (e) { @@ -7163,47 +7333,43 @@ test('Check CreateCampaign | 10', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 11', async () => { +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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", - product_based_point_rules: [{ + amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -7216,14 +7382,27 @@ test('Check CreateCampaign | 11', async () => { "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" + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [4, 5, 6], + applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { @@ -7236,17 +7415,19 @@ test('Check CreateCampaign | 11', async () => { "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_shop_ids: ["c127b51b-9170-4fcf-a862-b238afbab276"], + minimum_number_of_products: 4131, + minimum_number_of_amount: 7296, + minimum_number_for_combination_purchase: 7888, + exist_in_each_product_groups: false, + max_point_amount: 7211, + max_total_point_amount: 2765, + dest_private_money_id: "46343905-42e5-487d-8361-b49b5355045f", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1280522020 + budget_caps_amount: 601600727 })); status = response.code; } catch (e) { @@ -7258,16 +7439,17 @@ test('Check CreateCampaign | 11', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 12', async () => { +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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -7303,6 +7485,16 @@ test('Check CreateCampaign | 12', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -7346,14 +7538,18 @@ test('Check CreateCampaign | 12', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_days_of_week: [1, 2, 1, 2, 0, 5, 0, 6], + applicable_days_of_week: [1, 3, 3], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -7381,18 +7577,23 @@ test('Check CreateCampaign | 12', async () => { }, { "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_shop_ids: ["7c85eb77-a868-495f-b0b9-d6045bb2c13e", "b78bf37f-ce7d-433c-b627-a9aa6a0d51df", "d8317293-b676-4508-9929-cd40c097e006"], + minimum_number_of_products: 3930, + minimum_number_of_amount: 4844, + minimum_number_for_combination_purchase: 3303, + exist_in_each_product_groups: true, + max_point_amount: 2802, + max_total_point_amount: 6850, + dest_private_money_id: "c0850b72-6beb-4156-864f-57919bff2c2c", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 216425752 + budget_caps_amount: 949953665 })); status = response.code; } catch (e) { @@ -7404,16 +7605,17 @@ test('Check CreateCampaign | 12', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 13', async () => { +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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", + is_exclusive: false, subject: "all", amount_based_point_rules: [{ "point_amount": 5, @@ -7445,14 +7647,23 @@ test('Check CreateCampaign | 13', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }], - product_based_point_rules: [{ + }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { + "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", @@ -7507,7 +7718,23 @@ test('Check CreateCampaign | 13', async () => { "is_multiply_by_count": true, "required_count": 2 }], - applicable_days_of_week: [3, 3, 5, 0, 1, 3, 2], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [6, 1, 1, 0, 4, 2, 1, 2, 5], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -7532,18 +7759,23 @@ test('Check CreateCampaign | 13', async () => { }, { "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, + applicable_shop_ids: ["1bd8f4b6-a1de-454b-a056-004689f84ee2"], + minimum_number_of_products: 3230, + minimum_number_of_amount: 7451, + minimum_number_for_combination_purchase: 4554, exist_in_each_product_groups: true, - max_point_amount: 9776, - max_total_point_amount: 112, - dest_private_money_id: "0e45d18f-75ea-4cd6-8f5a-0defac9e50c1", + max_point_amount: 7742, + max_total_point_amount: 9479, + dest_private_money_id: "11e29df1-b359-4fe7-826c-6a1b02142139", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1753818353 + budget_caps_amount: 1048575674 })); status = response.code; } catch (e) { @@ -7555,16 +7787,17 @@ test('Check CreateCampaign | 13', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 14', async () => { +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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", + point_expires_in_days: 9721, is_exclusive: false, subject: "money", amount_based_point_rules: [{ @@ -7587,23 +7820,44 @@ test('Check CreateCampaign | 14', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "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", @@ -7628,26 +7882,39 @@ test('Check CreateCampaign | 14', async () => { "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" + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [5, 0, 6, 6, 3, 2, 6, 4], + applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { @@ -7660,17 +7927,19 @@ test('Check CreateCampaign | 14', async () => { "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, + applicable_shop_ids: ["af29f425-4c7e-47c8-b716-1d8be8f18f6c", "ce4285ea-7620-4829-8c71-28076bf5b6c5", "f08aaf64-c470-44ba-87aa-fd2a00b03b71", "5ec7a743-2297-42e3-902c-5ccfdaf98fbd"], + minimum_number_of_products: 6, + minimum_number_of_amount: 3953, + minimum_number_for_combination_purchase: 7000, exist_in_each_product_groups: true, - max_point_amount: 2860, - max_total_point_amount: 3579, - dest_private_money_id: "3fa00044-f543-407e-9979-7afb342178d5", + max_point_amount: 8742, + max_total_point_amount: 619, + dest_private_money_id: "cfc5f52c-d12f-4f69-b602-fcaaac59caa9", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 523938115 + budget_caps_amount: 818977520 })); status = response.code; } catch (e) { @@ -7682,18 +7951,19 @@ test('Check CreateCampaign | 14', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 15', async () => { +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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", - point_expires_in_days: 1573, - is_exclusive: true, + point_expires_at: "2022-01-04T18:02:55.000000Z", + point_expires_in_days: 5615, + is_exclusive: false, subject: "all", amount_based_point_rules: [{ "point_amount": 5, @@ -7715,6 +7985,26 @@ test('Check CreateCampaign | 15', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -7728,26 +8018,86 @@ test('Check CreateCampaign | 15', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "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" + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [6, 4, 5, 4, 5, 6, 4], + applicable_time_ranges: [{ "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, + applicable_shop_ids: ["521515bb-9086-4a17-b67d-7aecabf86ce4", "26b04c3b-bab3-403c-8965-1eca8f7c7517", "e35c7111-77f9-4de8-bf2d-6412bb8900af", "73bfd454-da7d-426c-9222-9167c61c77a3", "65018b54-aad4-4fdd-a2bd-c5329d539fba", "7fa3464e-d15e-4178-9369-24f0ad5c1868", "aa30e614-77da-46a4-921c-28ec383fbccc", "9519c782-5f2f-45dc-9910-576fad00152c", "7e9ffe22-b0ab-4b06-8c22-3bfdf1b1243f", "995a029b-d088-421d-aa4d-1514a8e73ded"], + minimum_number_of_products: 4799, + minimum_number_of_amount: 3234, + minimum_number_for_combination_purchase: 6996, exist_in_each_product_groups: false, - max_point_amount: 1006, - max_total_point_amount: 6339, - dest_private_money_id: "91a6ede2-3981-4326-bda9-e91e4e9c0bc6", + max_point_amount: 7422, + max_total_point_amount: 3913, + dest_private_money_id: "ec7e1215-88d1-4216-bf19-230d0eb4d484", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1215529429 + budget_caps_amount: 1686759322 })); status = response.code; } catch (e) { @@ -7759,19 +8109,20 @@ test('Check CreateCampaign | 15', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 16', async () => { +test('Check CreateCampaign | 20', 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", - point_expires_at: "2021-01-03T09:38:27.000000Z", - point_expires_in_days: 5805, - is_exclusive: false, + status: "enabled", + point_expires_at: "2023-08-09T04:23:09.000000Z", + point_expires_in_days: 6024, + is_exclusive: true, subject: "money", amount_based_point_rules: [{ "point_amount": 5, @@ -7793,6 +8144,31 @@ test('Check CreateCampaign | 16', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -7812,8 +8188,33 @@ test('Check CreateCampaign | 16', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_days_of_week: [4, 6, 1], + applicable_days_of_week: [4, 0, 3, 0, 6], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -7835,18 +8236,26 @@ test('Check CreateCampaign | 16', async () => { }, { "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, + applicable_shop_ids: ["5fccadec-02c0-4c76-8b60-de7852784c8d", "2703a543-6b19-4ebf-b85e-4e10ba37690c", "1985f651-840f-41aa-bb95-9194ab8c0140", "21ac83ef-9e02-416a-88ce-aca9b2e8c3cb", "e6e0277b-00ce-438f-8130-7bae71779ffa"], + minimum_number_of_products: 9110, + minimum_number_of_amount: 1010, + minimum_number_for_combination_purchase: 3863, exist_in_each_product_groups: false, - max_point_amount: 89, - max_total_point_amount: 3292, - dest_private_money_id: "bf9b3264-1533-4398-920b-d2ee2e26dfbd", + max_point_amount: 4164, + max_total_point_amount: 1671, + dest_private_money_id: "85ecf905-d23b-4c90-9274-9fc06bc89d13", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1439450059 + budget_caps_amount: 2086510520 })); status = response.code; } catch (e) { @@ -7858,21 +8267,22 @@ test('Check CreateCampaign | 16', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 17', async () => { +test('Check CreateCampaign | 21', 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", + description: "PEIsHw9iaxaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3Ttk", status: "disabled", - point_expires_at: "2021-12-19T02:03:37.000000Z", - point_expires_in_days: 2321, + point_expires_at: "2023-07-08T21:45:49.000000Z", + point_expires_in_days: 7077, is_exclusive: true, - subject: "all", + subject: "money", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -7944,101 +8354,42 @@ test('Check CreateCampaign | 17', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }], - 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 + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "classification_code": "c123" }, { - "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 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }], - applicable_days_of_week: [2, 1, 6, 2, 6, 3, 3, 0], + applicable_days_of_week: [6, 1, 4, 2, 6, 4, 3, 2, 2, 0], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -8051,27 +8402,20 @@ test('Check CreateCampaign | 18', async () => { }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["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_shop_ids: ["19760078-71e1-44d3-92f5-00aa990d70bb", "74899646-7783-4423-a501-fe7667f81c87", "b02d11e3-257c-47ea-b373-c02b8874d80c", "77441aaf-bc1f-41af-95b2-3ad1672e8fee", "cb77e988-6303-4e5e-b833-dee7beb678db", "95ece3be-7ed7-4916-86c8-257f34d20737", "78c9a768-24bc-46bd-8630-aaa689c4450f", "6cee271f-ecd4-4902-8438-ce2742d3e903", "2fa4d94e-c768-4c37-a5ef-3e1f8999785b", "0c6c4b4f-c0a9-4810-97a8-c13a67601118"], + minimum_number_of_products: 695, + minimum_number_of_amount: 3627, + minimum_number_for_combination_purchase: 5402, + exist_in_each_product_groups: false, + max_point_amount: 8829, + max_total_point_amount: 4980, + dest_private_money_id: "760504bc-ab2e-43ea-9dcf-838067b7f47b", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 531149341 + budget_caps_amount: 983324416 })); status = response.code; } catch (e) { @@ -8083,23 +8427,23 @@ test('Check CreateCampaign | 18', async () => { expect(status).not.toBe(400); }) -test('Check CreateCampaign | 19', async () => { +test('Check CreateCampaign | 22', 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, + name: "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + private_money_id: "787a93c7-7ceb-460d-a428-a1f98945efe7", + starts_at: "2020-02-28T15:38:38.000000Z", + ends_at: "2021-01-29T22:29:35.000000Z", + priority: 5711, event: "external-transaction", - bear_point_shop_id: "440b88ff-2ba0-4dc8-970e-6365cf4ab4af", - description: "KxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8c", + bear_point_shop_id: "11f10eef-2e78-4cb0-9206-8dd2ef518714", + description: "gJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8Jtqof", status: "disabled", - point_expires_at: "2020-11-20T21:21:50.000000Z", - point_expires_in_days: 5811, - is_exclusive: false, - subject: "money", + point_expires_at: "2020-03-23T11:05:38.000000Z", + point_expires_in_days: 5114, + is_exclusive: true, + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -8120,6 +8464,26 @@ test('Check CreateCampaign | 19', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -8128,7 +8492,11 @@ test('Check CreateCampaign | 19', async () => { "is_multiply_by_count": true, "required_count": 2 }], - applicable_days_of_week: [6, 3], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [5, 3, 4, 6, 3, 3], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -8138,18 +8506,29 @@ test('Check CreateCampaign | 19', async () => { }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["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_shop_ids: ["1485bae7-bc91-4b7e-9532-97d31ed5ecfc", "0f960c70-0f8a-42c4-afe5-32c718d50ec0", "8f4a6f72-b920-4379-8abb-2683f77d6349", "fc204909-3519-4d1e-bd35-8d5d3d169acf", "159ee39a-ee51-45d1-b925-4fc7dbd3f582", "1365dc6f-fa85-4a9f-92e5-2926fd531d68"], + minimum_number_of_products: 9233, + minimum_number_of_amount: 4834, + minimum_number_for_combination_purchase: 6942, + exist_in_each_product_groups: true, + max_point_amount: 2896, + max_total_point_amount: 7167, + dest_private_money_id: "8eac67b2-059c-451c-af01-3e21d210b388", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 749440476 + budget_caps_amount: 1835558922 })); status = response.code; } catch (e) { @@ -8165,7 +8544,7 @@ 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" + private_money_id: "e97d96a6-4994-49cd-9ab3-81e6fe93b873" })); status = response.code; } catch (e) { @@ -8181,8 +8560,8 @@ 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 + private_money_id: "e97d96a6-4994-49cd-9ab3-81e6fe93b873", + per_page: 28 })); status = response.code; } catch (e) { @@ -8198,9 +8577,9 @@ 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 + private_money_id: "e97d96a6-4994-49cd-9ab3-81e6fe93b873", + page: 8812, + per_page: 33 })); status = response.code; } catch (e) { @@ -8216,10 +8595,10 @@ 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 + private_money_id: "e97d96a6-4994-49cd-9ab3-81e6fe93b873", + available_to: "2020-07-14T14:34:50.000000Z", + page: 5746, + per_page: 25 })); status = response.code; } catch (e) { @@ -8235,11 +8614,11 @@ 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 + private_money_id: "e97d96a6-4994-49cd-9ab3-81e6fe93b873", + available_from: "2022-02-21T01:02:48.000000Z", + available_to: "2022-04-09T08:29:11.000000Z", + page: 408, + per_page: 35 })); status = response.code; } catch (e) { @@ -8255,12 +8634,12 @@ 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 + private_money_id: "e97d96a6-4994-49cd-9ab3-81e6fe93b873", + is_ongoing: false, + available_from: "2023-05-31T11:07:36.000000Z", + available_to: "2022-07-22T02:58:39.000000Z", + page: 3467, + per_page: 35 })); status = response.code; } catch (e) { @@ -8276,7 +8655,7 @@ test('Check GetCampaign | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetCampaign({ - campaign_id: "271b4b7b-4908-4820-81af-8b927793bea2" + campaign_id: "663770d7-bf54-4cf0-86b6-9fb6e0dc55af" })); status = response.code; } catch (e) { @@ -8292,7 +8671,7 @@ test('Check UpdateCampaign | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86" })); status = response.code; } catch (e) { @@ -8308,8 +8687,8 @@ 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 + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + budget_caps_amount: 1846048109 })); status = response.code; } catch (e) { @@ -8325,12 +8704,12 @@ test('Check UpdateCampaign | 2', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1019556332 + budget_caps_amount: 1161308371 })); status = response.code; } catch (e) { @@ -8346,13 +8725,13 @@ 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, + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + max_total_point_amount: 5715, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 712591019 + budget_caps_amount: 1062068093 })); status = response.code; } catch (e) { @@ -8368,14 +8747,14 @@ 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, + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + max_point_amount: 6330, + max_total_point_amount: 8831, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 981138288 + budget_caps_amount: 769812961 })); status = response.code; } catch (e) { @@ -8391,15 +8770,15 @@ test('Check UpdateCampaign | 5', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", exist_in_each_product_groups: true, - max_point_amount: 9684, - max_total_point_amount: 9375, + max_point_amount: 1270, + max_total_point_amount: 124, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1031147602 + budget_caps_amount: 173694542 })); status = response.code; } catch (e) { @@ -8415,16 +8794,16 @@ 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, + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + minimum_number_for_combination_purchase: 2135, exist_in_each_product_groups: true, - max_point_amount: 1626, - max_total_point_amount: 5953, + max_point_amount: 1276, + max_total_point_amount: 9060, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 384433878 + budget_caps_amount: 1165020838 })); status = response.code; } catch (e) { @@ -8440,17 +8819,17 @@ 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, + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + minimum_number_of_amount: 3475, + minimum_number_for_combination_purchase: 5299, exist_in_each_product_groups: false, - max_point_amount: 1754, - max_total_point_amount: 997, + max_point_amount: 6011, + max_total_point_amount: 5516, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 586908290 + budget_caps_amount: 1777436902 })); status = response.code; } catch (e) { @@ -8466,27 +8845,18 @@ 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, + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + minimum_number_of_products: 2258, + minimum_number_of_amount: 9990, + minimum_number_for_combination_purchase: 4946, exist_in_each_product_groups: true, - max_point_amount: 3600, - max_total_point_amount: 7071, + max_point_amount: 3456, + max_total_point_amount: 7634, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 2667324 + budget_caps_amount: 1301092573 })); status = response.code; } catch (e) { @@ -8502,22 +8872,54 @@ 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], + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + applicable_shop_ids: ["4bbd3162-b4bb-4f35-b1a5-46ba6148651b", "cda6d07a-1155-4544-aa81-b166dcba48f9", "ae7c1721-ee2a-4ec7-8270-e69fcc091380", "1c897513-09ce-47a6-9e6b-68493eed742b", "ac9ee7e9-c302-4e55-845b-fc98e531b5ae", "1e361976-63f3-4583-baab-1764889ba0a5", "b57c3e30-6037-4bbd-8c69-5b82ea40fb33", "8e158dc7-99f9-4fbc-99ad-1a86bddc371e"], + minimum_number_of_products: 9363, + minimum_number_of_amount: 1299, + minimum_number_for_combination_purchase: 4422, + exist_in_each_product_groups: true, + max_point_amount: 2933, + max_total_point_amount: 6728, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 233495880 + })); + 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: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", applicable_time_ranges: [{ "from": "12:00", "to": "23:59" + }, { + "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, + applicable_shop_ids: ["1ed1f2c7-d3a2-4058-af35-53e03c81bd2e", "f3b70088-e1ba-4a0f-9550-f6843e6f4da2"], + minimum_number_of_products: 1838, + minimum_number_of_amount: 5548, + minimum_number_for_combination_purchase: 160, exist_in_each_product_groups: true, - max_point_amount: 8579, - max_total_point_amount: 2970, + max_point_amount: 7207, + max_total_point_amount: 2538, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 945599052 + budget_caps_amount: 39477703 })); status = response.code; } catch (e) { @@ -8529,19 +8931,12 @@ test('Check UpdateCampaign | 9', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 10', async () => { +test('Check UpdateCampaign | 11', 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], + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + applicable_days_of_week: [2, 6, 3, 3, 2, 5], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -8557,17 +8952,28 @@ test('Check UpdateCampaign | 10', async () => { }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["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, + applicable_shop_ids: ["4632bf59-dcb5-4049-b69d-11762472c923", "11cf33fe-56bb-4759-a17c-e44a9d4338aa", "5f77f094-7128-4e7f-bc71-8d454c8014e3", "0cafe261-eeee-4a73-9373-1fd0940982b2"], + minimum_number_of_products: 2184, + minimum_number_of_amount: 9496, + minimum_number_for_combination_purchase: 5902, exist_in_each_product_groups: true, - max_point_amount: 8666, - max_total_point_amount: 3771, + max_point_amount: 8382, + max_total_point_amount: 230, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1970190781 + budget_caps_amount: 144380158 })); status = response.code; } catch (e) { @@ -8579,104 +8985,43 @@ test('Check UpdateCampaign | 10', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 11', async () => { +test('Check UpdateCampaign | 12', 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", + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + blacklisted_product_rules: [{ "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }], - applicable_days_of_week: [5, 3, 1, 2, 5, 0], + applicable_days_of_week: [3, 3, 5, 0, 1, 3, 2], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -8695,17 +9040,25 @@ test('Check UpdateCampaign | 11', async () => { }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["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, + applicable_shop_ids: ["2845dee1-e5ae-4111-ae0f-01514eafcce2", "aaea48d6-893a-4494-91cd-07398f70a35a", "2b95aab6-6c86-4dd2-87b0-49ebf6138ebc", "0cd7e98f-d043-4418-9873-3f1470955c26", "cbebc1d0-9be4-4922-baf7-0c90e3471f45", "912395f2-bc1d-4e7d-acb5-da116b009b6d", "29590a58-3988-4708-abbe-68296e105dc7", "3333f13f-cbfa-46f5-8c02-e58553d9c527", "4530dad7-5833-4546-abd7-807f3added3e", "83e6959a-1469-448d-b9da-4468386e4949"], + minimum_number_of_products: 6652, + minimum_number_of_amount: 3899, + minimum_number_for_combination_purchase: 9776, exist_in_each_product_groups: false, - max_point_amount: 3616, - max_total_point_amount: 8953, + max_point_amount: 4496, + max_total_point_amount: 7383, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 2007692491 + budget_caps_amount: 1025667088 })); status = response.code; } catch (e) { @@ -8717,18 +9070,86 @@ test('Check UpdateCampaign | 11', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 12', async () => { +test('Check UpdateCampaign | 13', 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: [{ + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [0, 6, 3, 6, 6, 1], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "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: ["0e2aad56-794a-4929-8ea7-13fd509cda05", "6aae338a-e89b-4004-9c95-f4936f465001", "92c529ce-c410-4920-b827-fcb108e1c009"], + minimum_number_of_products: 7373, + minimum_number_of_amount: 1994, + minimum_number_for_combination_purchase: 3980, + exist_in_each_product_groups: true, + max_point_amount: 4784, + max_total_point_amount: 889, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 148336805 + })); + 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: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, @@ -8793,44 +9214,21 @@ test('Check UpdateCampaign | 12', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", + }], + blacklisted_product_rules: [{ "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }], - applicable_days_of_week: [2, 1, 1, 6, 4, 3], + applicable_days_of_week: [6, 0], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -8840,23 +9238,19 @@ test('Check UpdateCampaign | 12', async () => { }, { "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_shop_ids: ["f0621bc6-dc0a-46d0-9c10-7175df743982"], + minimum_number_of_products: 8390, + minimum_number_of_amount: 5437, + minimum_number_for_combination_purchase: 7632, + exist_in_each_product_groups: true, + max_point_amount: 1278, + max_total_point_amount: 3071, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1273944928 + budget_caps_amount: 1972410865 })); status = response.code; } catch (e) { @@ -8868,13 +9262,12 @@ test('Check UpdateCampaign | 12', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 13', async () => { +test('Check UpdateCampaign | 15', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", - is_exclusive: true, - subject: "all", + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + subject: "money", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -8885,31 +9278,6 @@ test('Check UpdateCampaign | 13', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -8923,50 +9291,24 @@ test('Check UpdateCampaign | 13', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", + }], + blacklisted_product_rules: [{ "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }], - applicable_days_of_week: [2, 6, 6, 4, 1], + applicable_days_of_week: [6, 1, 1, 3], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -8985,23 +9327,19 @@ test('Check UpdateCampaign | 13', async () => { }, { "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_shop_ids: ["60548624-851e-43e7-b391-1a02842e45d6", "4b08f189-379a-49e1-a356-4a858f1f9d67", "776b0929-65b5-45ec-9180-ac134a935051"], + minimum_number_of_products: 3660, + minimum_number_of_amount: 6030, + minimum_number_for_combination_purchase: 7956, + exist_in_each_product_groups: false, + max_point_amount: 3775, + max_total_point_amount: 1907, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 758756205 + budget_caps_amount: 1799661733 })); status = response.code; } catch (e) { @@ -9013,12 +9351,11 @@ test('Check UpdateCampaign | 13', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 14', async () => { +test('Check UpdateCampaign | 16', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", - point_expires_in_days: 4021, + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", is_exclusive: true, subject: "money", amount_based_point_rules: [{ @@ -9043,14 +9380,15 @@ test('Check UpdateCampaign | 14', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }], - applicable_days_of_week: [4, 6], + applicable_days_of_week: [5, 2, 2, 1, 6, 5, 1, 6, 6, 4], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9063,20 +9401,19 @@ test('Check UpdateCampaign | 14', async () => { }, { "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_shop_ids: ["cf34b680-c8a3-4b72-9b32-14b45c721506", "aefa6b11-0f76-40a8-ac52-c35b24629dee", "d6b7305e-c230-4d21-962f-dffbde8af631", "438843cb-0ded-453f-8b16-edbcf104e971", "7292d4dd-0989-43bb-8ee8-17f0d817fba0", "e6b55b0b-2df5-4e44-86b1-d741c0791253", "3fcab134-3e90-46c9-8218-4e789c6709f6", "44b73670-805b-4822-8601-f39ba5f626d0"], + minimum_number_of_products: 9641, + minimum_number_of_amount: 6216, + minimum_number_for_combination_purchase: 9135, + exist_in_each_product_groups: true, + max_point_amount: 2658, + max_total_point_amount: 4133, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1008028717 + budget_caps_amount: 1540138721 })); status = response.code; } catch (e) { @@ -9088,15 +9425,14 @@ test('Check UpdateCampaign | 14', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 15', async () => { +test('Check UpdateCampaign | 17', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "60426a39-a2a2-46ce-81b8-2ba4c472a9e8", - point_expires_at: "2023-04-13T09:18:16.000000Z", - point_expires_in_days: 7711, + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + point_expires_in_days: 4488, is_exclusive: true, - subject: "all", + subject: "money", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -9107,6 +9443,31 @@ test('Check UpdateCampaign | 15', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -9162,14 +9523,30 @@ test('Check UpdateCampaign | 15', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_days_of_week: [3, 0, 0, 0, 2, 2, 6, 4, 4, 0], + applicable_days_of_week: [1, 5, 0, 0, 4, 3, 4, 3], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9179,17 +9556,37 @@ test('Check UpdateCampaign | 15', 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" + }, { + "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, + applicable_shop_ids: ["665e330b-d2ee-4fbd-8af9-b1f972c70910", "ad5607ce-f065-40b7-9fbe-17b45591cf51", "ebc4bf5c-c5a7-4215-80b2-a29760739c18"], + minimum_number_of_products: 1681, + minimum_number_of_amount: 1025, + minimum_number_for_combination_purchase: 4579, exist_in_each_product_groups: true, - max_point_amount: 1008, - max_total_point_amount: 948, + max_point_amount: 164, + max_total_point_amount: 7355, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1535860290 + budget_caps_amount: 963819398 })); status = response.code; } catch (e) { @@ -9201,16 +9598,15 @@ test('Check UpdateCampaign | 15', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 16', async () => { +test('Check UpdateCampaign | 18', 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", + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + point_expires_at: "2023-08-03T16:56:06.000000Z", + point_expires_in_days: 991, + is_exclusive: true, + subject: "money", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -9236,57 +9632,46 @@ test('Check UpdateCampaign | 16', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }], - product_based_point_rules: [{ + }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }], - applicable_days_of_week: [6, 6, 2, 0, 3, 3, 5, 3], + applicable_days_of_week: [3, 1], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9305,20 +9690,19 @@ test('Check UpdateCampaign | 16', async () => { }, { "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_shop_ids: ["d4babf2f-2164-4a0c-ba94-dfd0e22c3507", "814cc85f-f6d3-4881-b71e-95505508260e", "8d8b0a12-704a-4730-bd85-57b951e42c95", "e35a3a0b-3f99-4b77-a9e8-be1278e0f1ec", "9b21671b-11c6-4a36-948a-dcc31598c522", "c7fa359d-2e56-4f6c-8d2b-904b7b5a3cc6"], + minimum_number_of_products: 6191, + minimum_number_of_amount: 876, + minimum_number_for_combination_purchase: 853, + exist_in_each_product_groups: true, + max_point_amount: 4550, + max_total_point_amount: 2401, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1983410747 + budget_caps_amount: 1380771656 })); status = response.code; } catch (e) { @@ -9330,16 +9714,15 @@ test('Check UpdateCampaign | 16', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 17', async () => { +test('Check UpdateCampaign | 19', 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, + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + status: "disabled", + point_expires_at: "2022-11-11T20:49:22.000000Z", + point_expires_in_days: 2090, + is_exclusive: false, subject: "all", amount_based_point_rules: [{ "point_amount": 5, @@ -9356,11 +9739,6 @@ test('Check UpdateCampaign | 17', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -9374,24 +9752,31 @@ test('Check UpdateCampaign | 17', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "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" + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [2, 3, 1, 1, 3, 6], + applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { @@ -9401,16 +9786,18 @@ test('Check UpdateCampaign | 17', async () => { "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_shop_ids: ["1753db78-907a-461f-9f1a-014665548214", "b5afe7d5-30c6-42b6-82e9-c0683867ad2c"], + minimum_number_of_products: 109, + minimum_number_of_amount: 8590, + minimum_number_for_combination_purchase: 970, + exist_in_each_product_groups: false, + max_point_amount: 4732, + max_total_point_amount: 1589, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1013151459 + budget_caps_amount: 1833154823 })); status = response.code; } catch (e) { @@ -9422,18 +9809,17 @@ test('Check UpdateCampaign | 17', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 18', async () => { +test('Check UpdateCampaign | 20', 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", + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + description: "uoOEnKraNjpsN9SjDxtxrgs7e0dkiAA", + status: "disabled", + point_expires_at: "2023-04-14T04:35:38.000000Z", + point_expires_in_days: 5177, + is_exclusive: true, + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -9454,6 +9840,31 @@ test('Check UpdateCampaign | 18', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -9479,25 +9890,97 @@ test('Check UpdateCampaign | 18', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }], - applicable_days_of_week: [1, 5, 4, 6, 4, 0, 0, 6, 3, 6], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [1, 6, 4, 3, 2, 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: ["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_shop_ids: ["df324786-3dde-44dd-ac76-217ac2ccd605", "9d1e1b42-cd11-4461-babe-2e53af301fc3", "46fbbc45-b028-423d-bbba-fb9f27fbb731", "7661bbe8-a8bd-4360-850c-24479f5b5086", "340bfda0-a3bc-4bb2-a7c5-7c0633462791", "c59cf76b-5deb-42dd-9e0c-ebd05bd30532", "5678ba0d-93ae-4f56-a508-f31dad866a49", "78367916-efd0-41f9-823e-8b372ff08d7b", "8edb5d48-aa3e-4e89-8557-96b7c19cdb24"], + minimum_number_of_products: 7775, + minimum_number_of_amount: 6886, + minimum_number_for_combination_purchase: 4520, + exist_in_each_product_groups: true, + max_point_amount: 5876, + max_total_point_amount: 963, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1377059414 + budget_caps_amount: 1405008058 })); status = response.code; } catch (e) { @@ -9509,17 +9992,16 @@ test('Check UpdateCampaign | 18', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 19', async () => { +test('Check UpdateCampaign | 21', 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", + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + event: "external-transaction", + description: "BB1YNClE0n87A30l6vspNWH9u8x4Yq2mx", status: "enabled", - point_expires_at: "2021-09-09T22:47:13.000000Z", - point_expires_in_days: 8459, + point_expires_at: "2023-05-16T03:50:44.000000Z", + point_expires_in_days: 74, is_exclusive: false, subject: "money", amount_based_point_rules: [{ @@ -9552,28 +10034,20 @@ test('Check UpdateCampaign | 19', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -9610,7 +10084,38 @@ test('Check UpdateCampaign | 19', async () => { "is_multiply_by_count": true, "required_count": 2 }], - applicable_days_of_week: [2, 1], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [5, 4, 6, 1, 5], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9642,16 +10147,18 @@ test('Check UpdateCampaign | 19', async () => { "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, + applicable_shop_ids: ["f8574894-d553-4f6e-8f48-87d3ab29e466"], + minimum_number_of_products: 5099, + minimum_number_of_amount: 348, + minimum_number_for_combination_purchase: 180, exist_in_each_product_groups: true, - max_point_amount: 3842, - max_total_point_amount: 2335, + max_point_amount: 4204, + max_total_point_amount: 8618, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1928834827 + budget_caps_amount: 1222220490 })); status = response.code; } catch (e) { @@ -9663,25 +10170,29 @@ test('Check UpdateCampaign | 19', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 20', async () => { +test('Check UpdateCampaign | 22', 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, + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + priority: 7836, 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", + description: "11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfD", + status: "disabled", + point_expires_at: "2020-04-08T14:09:01.000000Z", + point_expires_in_days: 5192, + 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 }], product_based_point_rules: [{ "point_amount": 5, @@ -9695,20 +10206,18 @@ test('Check UpdateCampaign | 20', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }], - applicable_days_of_week: [2], + applicable_days_of_week: [1], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9733,20 +10242,19 @@ test('Check UpdateCampaign | 20', async () => { }, { "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_shop_ids: ["2749e009-eadf-4e50-8343-a022772edc1c"], + minimum_number_of_products: 3633, + minimum_number_of_amount: 933, + minimum_number_for_combination_purchase: 6089, + exist_in_each_product_groups: true, + max_point_amount: 2813, + max_total_point_amount: 8116, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 853454565 + budget_caps_amount: 1181237434 })); status = response.code; } catch (e) { @@ -9758,21 +10266,20 @@ test('Check UpdateCampaign | 20', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 21', async () => { +test('Check UpdateCampaign | 23', 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, + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + ends_at: "2021-09-25T13:53:31.000000Z", + priority: 4029, 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", + description: "9N8hkxoSQFYDUU0HuG332kYdREQC39nZBUv4F8J7UzyDYEv7bctcmIqdmvTV8RBzp0gixsKZWoUeORL98QDv9TW3tonru5DxxR1kiR4daTST401zYU9O5bmxo5R8", + status: "disabled", + point_expires_at: "2021-12-03T15:45:24.000000Z", + point_expires_in_days: 7212, + is_exclusive: true, + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -9783,23 +10290,50 @@ test('Check UpdateCampaign | 21', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "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", @@ -9811,8 +10345,24 @@ test('Check UpdateCampaign | 21', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_days_of_week: [4, 5, 1, 2, 0, 1, 6], + applicable_days_of_week: [3, 0, 0, 3, 4, 1, 5, 3], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9822,17 +10372,25 @@ test('Check UpdateCampaign | 21', async () => { }, { "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_shop_ids: ["aad860f8-3ca1-4cde-92fb-5d82b3eac05e", "757a7ed1-fd20-4a9f-9f95-1593d5af36a1", "458ad14f-8819-4a60-b31f-e882be0574cf", "b89422f8-f4ca-4679-8e28-a53a9bd28a69", "6b74bc75-730a-4491-a106-a774b08c8733", "bae993de-4f04-4ab0-af5f-338866e78052", "3f1dbc06-17a8-45f3-8753-40ccce9c2a23", "bf738611-db5f-4c60-a926-45a8c22edb34", "10b24f0a-0e46-4816-94c1-15d756dd79de", "fee124ea-6476-4b9a-a3ce-382feab35f22"], + minimum_number_of_products: 7040, + minimum_number_of_amount: 2375, + minimum_number_for_combination_purchase: 9581, + exist_in_each_product_groups: true, + max_point_amount: 8654, + max_total_point_amount: 8581, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1065507945 + budget_caps_amount: 1869645226 })); status = response.code; } catch (e) { @@ -9844,20 +10402,19 @@ test('Check UpdateCampaign | 21', async () => { expect(status).not.toBe(400); }) -test('Check UpdateCampaign | 22', async () => { +test('Check UpdateCampaign | 24', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "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, + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + starts_at: "2022-03-11T20:12:55.000000Z", + ends_at: "2024-03-04T10:50:16.000000Z", + priority: 1819, + event: "topup", + description: "MjoFiHLtN9Yqy7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuU", + status: "disabled", + point_expires_at: "2023-04-17T05:00:28.000000Z", + point_expires_in_days: 6912, is_exclusive: true, subject: "money", amount_based_point_rules: [{ @@ -9870,6 +10427,36 @@ test('Check UpdateCampaign | 22', async () => { "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "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, @@ -9883,44 +10470,136 @@ test('Check UpdateCampaign | 22', async () => { "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [4, 3, 3, 6, 6, 2, 4, 3, 2], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }, { + "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: ["bcea9165-c034-43ef-b341-bca1eaf31ab7", "407f462f-c7c1-49f3-b4b7-7dc71bce209e", "d4fac0de-4a5a-4460-8b03-cd7d9d4a64cb"], + minimum_number_of_products: 391, + minimum_number_of_amount: 2150, + minimum_number_for_combination_purchase: 5757, + exist_in_each_product_groups: false, + max_point_amount: 2699, + max_total_point_amount: 4642, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + budget_caps_amount: 99696538 + })); + 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 | 25', async () => { + let status = 400; + try { + const response: Response = await client.send(new UpdateCampaign({ + campaign_id: "b1dc9469-075b-4d47-aab1-8b97ded3fe86", + name: "QbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uY", + starts_at: "2021-04-23T02:58:38.000000Z", + ends_at: "2022-05-06T16:35:51.000000Z", + priority: 2645, + event: "external-transaction", + description: "2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6b", + status: "disabled", + point_expires_at: "2022-02-27T09:09:30.000000Z", + point_expires_in_days: 3006, + is_exclusive: true, + subject: "money", + amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + 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: [4, 0, 2, 5, 3, 4, 5], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [5, 3, 6, 5, 1], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -9930,17 +10609,31 @@ test('Check UpdateCampaign | 22', 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" }], - 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_shop_ids: ["5eed2a5a-33b0-4ff8-bc87-d7bd3bb16283", "7cc65c22-1a01-4e6b-af9b-97354412ef2c", "b20969ff-299f-47a4-b2a8-dbbf4edda3f4", "b36db3d8-21e4-41df-a8eb-756aa2aaba43", "619bcd0b-3c5a-4ab6-864b-c6de4440448f", "d2a73794-8e15-4d10-9814-66ada42426eb", "d47cf6e9-3e4d-46f8-b1eb-137f6d912f3d", "07e56a48-f496-4f14-9456-ce3d7c629b86"], + minimum_number_of_products: 9329, + minimum_number_of_amount: 2850, + minimum_number_for_combination_purchase: 531, + exist_in_each_product_groups: true, + max_point_amount: 3974, + max_total_point_amount: 393, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 286258961 + budget_caps_amount: 467110137 })); status = response.code; } catch (e) { @@ -9956,8 +10649,8 @@ 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" + from: "2020-09-24T12:21:11.000000Z", + to: "2021-08-29T03:04:32.000000Z" })); status = response.code; } catch (e) { @@ -9974,7 +10667,7 @@ test('Check CreateWebhook | 0', async () => { try { const response: Response = await client.send(new CreateWebhook({ task: "process_user_stats_operation", - url: "B891rPV7F" + url: "oF" })); status = response.code; } catch (e) { @@ -10004,7 +10697,7 @@ test('Check ListWebhooks | 1', async () => { let status = 400; try { const response: Response = await client.send(new ListWebhooks({ - per_page: 1599 + per_page: 6869 })); status = response.code; } catch (e) { @@ -10020,8 +10713,8 @@ test('Check ListWebhooks | 2', async () => { let status = 400; try { const response: Response = await client.send(new ListWebhooks({ - page: 8293, - per_page: 6946 + page: 7472, + per_page: 2731 })); status = response.code; } catch (e) { @@ -10037,7 +10730,7 @@ test('Check UpdateWebhook | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateWebhook({ - webhook_id: "1357dd08-2644-4a80-a512-1e10d9b922de" + webhook_id: "a7551e28-11d6-40e9-97de-ecc70a6d636b" })); status = response.code; } catch (e) { @@ -10053,7 +10746,7 @@ test('Check UpdateWebhook | 1', async () => { let status = 400; try { const response: Response = await client.send(new UpdateWebhook({ - webhook_id: "1357dd08-2644-4a80-a512-1e10d9b922de", + webhook_id: "a7551e28-11d6-40e9-97de-ecc70a6d636b", task: "process_user_stats_operation" })); status = response.code; @@ -10070,8 +10763,8 @@ 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, + webhook_id: "a7551e28-11d6-40e9-97de-ecc70a6d636b", + is_active: false, task: "bulk_shops" })); status = response.code; @@ -10088,10 +10781,10 @@ 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" + webhook_id: "a7551e28-11d6-40e9-97de-ecc70a6d636b", + url: "rsKgu2ih", + is_active: true, + task: "process_user_stats_operation" })); status = response.code; } catch (e) { @@ -10107,7 +10800,7 @@ test('Check DeleteWebhook | 0', async () => { let status = 400; try { const response: Response = await client.send(new DeleteWebhook({ - webhook_id: "f09ba024-80a2-44cf-9a60-7e9d56f684b1" + webhook_id: "757ac34d-0129-43a0-b828-78c4e69be2aa" })); status = response.code; } catch (e) { @@ -10123,7 +10816,7 @@ test('Check CreateUserDevice | 0', async () => { let status = 400; try { const response: Response = await client.send(new CreateUserDevice({ - user_id: "1ab73dbc-530a-4a75-bfce-3f20a4f4f41c" + user_id: "3ef0155b-df73-4fe6-95b3-029be84e5c80" })); status = response.code; } catch (e) { @@ -10139,7 +10832,7 @@ test('Check CreateUserDevice | 1', async () => { let status = 400; try { const response: Response = await client.send(new CreateUserDevice({ - user_id: "1ab73dbc-530a-4a75-bfce-3f20a4f4f41c", + user_id: "3ef0155b-df73-4fe6-95b3-029be84e5c80", metadata: "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}" })); status = response.code; @@ -10156,7 +10849,7 @@ 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" + user_device_id: "97103bd4-55aa-4e14-838c-d7b19e377bc1" })); status = response.code; } catch (e) { @@ -10172,7 +10865,7 @@ 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" + user_device_id: "6ae625fc-8f38-4b66-96b5-badc1584cc03" })); status = response.code; } catch (e) { @@ -10188,10 +10881,10 @@ 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" + user_device_id: "5ceabfee-19eb-4683-baf9-d5e1eacd3507", + private_money_id: "809e5b4d-316f-481c-b62c-d410f3bdb948", + callback_url: "FjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE", + kana: "WDor4IADTHdTPsjhUsWbu" })); status = response.code; } catch (e) { @@ -10207,11 +10900,11 @@ 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" + user_device_id: "5ceabfee-19eb-4683-baf9-d5e1eacd3507", + private_money_id: "809e5b4d-316f-481c-b62c-d410f3bdb948", + callback_url: "FjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE", + kana: "WDor4IADTHdTPsjhUsWbu", + birthdate: "hnbI" })); status = response.code; } catch (e) { @@ -10227,12 +10920,12 @@ 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" + user_device_id: "5ceabfee-19eb-4683-baf9-d5e1eacd3507", + private_money_id: "809e5b4d-316f-481c-b62c-d410f3bdb948", + callback_url: "FjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE", + kana: "WDor4IADTHdTPsjhUsWbu", + email: "UFlfvobOcl@FXKf.com", + birthdate: "dQivs3h" })); status = response.code; } catch (e) { @@ -10248,7 +10941,7 @@ 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" + user_device_id: "9e9585ea-3721-4a9d-b41f-db2253895544" })); status = response.code; } catch (e) { @@ -10264,8 +10957,8 @@ 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" + user_device_id: "9e9585ea-3721-4a9d-b41f-db2253895544", + private_money_id: "cec34104-64b1-4b8c-96a5-4f590e92a4fb" })); status = response.code; } catch (e) { @@ -10281,11 +10974,11 @@ 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" + user_device_id: "ca66f5fd-f8ff-406e-bad4-295d6e468868", + private_money_id: "7c2943c5-a1e0-4c8a-9dd1-78fecba543cf", + amount: 6861, + bank_id: "1cb975f4-046c-470a-abde-2f3addeec9dd", + request_id: "f09db652-b3d0-44c9-815e-14123e6a6665" })); status = response.code; } catch (e) { @@ -10301,7 +10994,7 @@ 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" + private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801" })); status = response.code; } catch (e) { @@ -10317,8 +11010,8 @@ 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 + private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", + per_page: 4036 })); status = response.code; } catch (e) { @@ -10334,9 +11027,9 @@ 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 + private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", + page: 2610, + per_page: 3564 })); status = response.code; } catch (e) { @@ -10352,10 +11045,10 @@ 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 + private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", + available_to: "2022-10-30T15:41:29.000000Z", + page: 1343, + per_page: 5852 })); status = response.code; } catch (e) { @@ -10371,11 +11064,11 @@ 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 + private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", + available_from: "2022-07-23T12:05:11.000000Z", + available_to: "2023-12-25T11:20:15.000000Z", + page: 4692, + per_page: 6987 })); status = response.code; } catch (e) { @@ -10391,12 +11084,12 @@ 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 + private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", + available_shop_name: "t", + available_from: "2022-09-20T11:42:56.000000Z", + available_to: "2020-10-04T03:55:03.000000Z", + page: 177, + per_page: 6137 })); status = response.code; } catch (e) { @@ -10412,13 +11105,13 @@ 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 + private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", + issued_shop_name: "zgZ3SAsj", + available_shop_name: "A", + available_from: "2022-11-23T12:41:58.000000Z", + available_to: "2021-11-05T17:31:33.000000Z", + page: 849, + per_page: 7307 })); status = response.code; } catch (e) { @@ -10434,14 +11127,14 @@ 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 + private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", + coupon_name: "wO", + issued_shop_name: "MEx", + available_shop_name: "C1w6", + available_from: "2023-07-14T05:00:25.000000Z", + available_to: "2021-01-18T09:29:10.000000Z", + page: 826, + per_page: 1755 })); status = response.code; } catch (e) { @@ -10457,15 +11150,15 @@ 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 + private_money_id: "b369ca49-cb16-4318-8c81-b9b3476e6801", + coupon_id: "stqj7j", + coupon_name: "J1Xazd0M0", + issued_shop_name: "E8", + available_shop_name: "si7", + available_from: "2021-03-21T03:47:10.000000Z", + available_to: "2022-02-22T01:50:15.000000Z", + page: 2183, + per_page: 7920 })); status = response.code; } catch (e) { @@ -10481,12 +11174,12 @@ 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 + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 7357 })); status = response.code; } catch (e) { @@ -10502,13 +11195,13 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 9216, + storage_id: "980727cd-c844-4e89-bd67-9a9679730e08" })); status = response.code; } catch (e) { @@ -10524,14 +11217,14 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 9392, + min_amount: 2436, + storage_id: "b7bc887c-58af-4907-98e9-25c22bc9b844" })); status = response.code; } catch (e) { @@ -10547,15 +11240,15 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 1044, + usage_limit: 4882, + min_amount: 9522, + storage_id: "f77d05e5-1718-4c74-9136-f78c9ca62105" })); status = response.code; } catch (e) { @@ -10571,16 +11264,16 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 1041, + code: "89v", + usage_limit: 2514, + min_amount: 4738, + storage_id: "3d504807-f481-4765-a859-1e493ffa0d5a" })); status = response.code; } catch (e) { @@ -10596,17 +11289,17 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 7359, + is_public: true, + code: "6MfShA8D4", + usage_limit: 6464, + min_amount: 9440, + storage_id: "175165c5-7cf6-42b7-8f1a-bf211aca37cf" })); status = response.code; } catch (e) { @@ -10622,18 +11315,18 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 4572, is_hidden: false, - is_public: false, - code: "ekV8cI", - usage_limit: 477, - min_amount: 5316, - storage_id: "e2cb1bdb-265b-452f-9430-c9a029af4c5e" + is_public: true, + code: "GT70L", + usage_limit: 815, + min_amount: 6848, + storage_id: "7a54ee90-750a-4151-9db2-3614f10c6465" })); status = response.code; } catch (e) { @@ -10649,19 +11342,19 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 2800, + is_disabled: false, is_hidden: true, - is_public: false, - code: "8h8evW68NK", - usage_limit: 1776, - min_amount: 3221, - storage_id: "a2ee087f-c55e-4c64-ab0b-9471fa211a30" + is_public: true, + code: "XvfJ", + usage_limit: 4594, + min_amount: 3039, + storage_id: "02be5ffe-2394-4b71-bf01-93186575231f" })); status = response.code; } catch (e) { @@ -10677,20 +11370,20 @@ 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", + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 6412, + display_ends_at: "2021-04-02T08:24:07.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" + is_hidden: true, + is_public: false, + code: "wzvGv5", + usage_limit: 4980, + min_amount: 1833, + storage_id: "69d87ffc-5b83-440e-9842-f9399c396eb3" })); status = response.code; } catch (e) { @@ -10706,21 +11399,21 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 2045, + display_starts_at: "2022-03-14T05:45:03.000000Z", + display_ends_at: "2021-12-28T19:08:36.000000Z", + is_disabled: false, is_hidden: false, is_public: true, - code: "TXOxFwqhkp", - usage_limit: 7770, - min_amount: 6358, - storage_id: "194600a2-bb96-4c61-8468-100a21e1c3f0" + code: "QSvr2", + usage_limit: 5053, + min_amount: 5610, + storage_id: "a46f64c4-3d32-4e00-9ec3-59d056f6235e" })); status = response.code; } catch (e) { @@ -10736,22 +11429,22 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 9488, + discount_upper_limit: 2828, + display_starts_at: "2021-07-09T22:20:53.000000Z", + display_ends_at: "2024-02-07T05:48:18.000000Z", + is_disabled: false, is_hidden: false, - is_public: true, - code: "p5bfKVt9D", - usage_limit: 1488, - min_amount: 2085, - storage_id: "9ad990d6-defa-4f56-80b6-6c9db1029295" + is_public: false, + code: "qDXhSH8", + usage_limit: 7272, + min_amount: 7265, + storage_id: "f7c3fa5b-2066-47ca-8984-82f9add52405" })); status = response.code; } catch (e) { @@ -10767,23 +11460,23 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 304, + description: "sDTnMPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14x", + discount_upper_limit: 8514, + display_starts_at: "2021-02-08T09:28:24.000000Z", + display_ends_at: "2021-08-09T03:36:25.000000Z", + is_disabled: false, + is_hidden: true, is_public: true, - code: "n8lh", - usage_limit: 1339, - min_amount: 1865, - storage_id: "ab264084-1055-49a0-a30d-307e9ab05a67" + code: "V", + usage_limit: 8759, + min_amount: 838, + storage_id: "fa1a063e-3263-4064-8721-dd08de992644" })); status = response.code; } catch (e) { @@ -10799,14 +11492,14 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 7013, 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"] + available_shop_ids: ["d9b922de-c15b-4ec2-b631-7676b9077163"] })); status = response.code; } catch (e) { @@ -10822,15 +11515,15 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 511, + is_shop_specified: true, + available_shop_ids: ["0fc680a2-e4cf-44da-a09d-84b11ab73dbc", "81d0530a-aa75-45bf-8e20-f41cc7d6be88", "1231e502-dc42-4394-a141-1064011a7372", "ab5c0000-949b-4dba-bc5f-b236e313491a", "dfcadd0b-81fe-45ec-bce6-ee193fe0477a"], + storage_id: "74124162-ace6-41f1-9dcb-06ec07ca066e" })); status = response.code; } catch (e) { @@ -10846,16 +11539,16 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 3071, 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" + available_shop_ids: ["6391deb4-e2bf-4c2e-b003-f3ac5dd2ecf7", "0f0145da-64ef-4182-b052-3e02814b8d80", "da94a5db-3e54-4304-b930-702d13e966ed", "4125cdd4-bd76-4e80-bc39-218c3bb01669", "9f641011-3c1f-407c-ad3f-0d6d7d0fe965", "5dffd7ce-f68a-42e9-a63e-8359d9772bb6", "0549d4b2-3a42-4063-b08f-2b6e0e655735", "ec7a2179-1178-435f-aea7-fba70106c378"], + min_amount: 1910, + storage_id: "50ad7ebb-354b-4006-a4df-2144aaba6be1" })); status = response.code; } catch (e) { @@ -10871,17 +11564,17 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 9002, 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" + available_shop_ids: ["704a7f0d-aa5f-4563-97b2-94760e99ed35"], + usage_limit: 1596, + min_amount: 1102, + storage_id: "dcaa7cf6-7bbe-4fc5-92d2-3c1b39de888f" })); status = response.code; } catch (e) { @@ -10897,18 +11590,18 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 7601, + is_shop_specified: false, + available_shop_ids: ["cae95ad5-2d3b-4a6f-9053-9a4debeaa614", "ce9f70f8-2289-4775-abf7-7414776b113c", "91eb071f-46ef-4569-b3b4-3f33614c8f0c", "6cb4933d-8886-4115-a8cb-b0cf4b56778e", "7836c574-d008-4741-af3f-462928db048d", "ce507f58-ca88-49a7-b727-306f1ce20970", "4cde362c-0814-4df5-a1e5-fb237a6c2c37"], + code: "O", + usage_limit: 6702, + min_amount: 2741, + storage_id: "e3c517ad-8e38-43c1-bd22-8a7cebf34ee5" })); status = response.code; } catch (e) { @@ -10924,19 +11617,19 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 8872, + is_shop_specified: false, + available_shop_ids: ["692e0554-bfee-48a1-bdf2-d029382227c6", "b17c6bd3-a36a-4f62-82fd-91bae229141c", "6380028e-9f97-4eb1-ad0e-99e8d8d0cd69", "93562b52-44ea-4493-9854-9597019950ce", "219a7cd3-5da7-4c15-9528-115516a36881", "b79d84b4-05a8-41dc-b6c4-02cb90f9a9d0", "e84c3aa2-7c07-4d0f-b62d-19f928a54c8b", "660c57ab-e119-450f-aba1-c2f4210b4a9b", "f627d5cb-a51d-4481-a163-c7192f4e9d18"], + is_public: true, + code: "CyKm4tG2", + usage_limit: 4038, + min_amount: 2789, + storage_id: "747a7c03-cdae-4adf-9758-597836eb65d0" })); status = response.code; } catch (e) { @@ -10952,20 +11645,20 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 2894, + is_shop_specified: true, + available_shop_ids: ["2529f2e9-0ecd-4256-a886-6fdab38969ed", "998e8a1f-9482-4990-ad47-baea293b505e", "d69f3130-d611-4354-8d4d-7c91bcb37a0e"], + is_hidden: false, is_public: true, code: "F", - usage_limit: 9607, - min_amount: 4994, - storage_id: "0e275e39-db99-4f76-bb5d-ac844cb86720" + usage_limit: 6408, + min_amount: 7960, + storage_id: "fe9a95cd-0b2b-4b1e-b05c-168f46148abe" })); status = response.code; } catch (e) { @@ -10981,21 +11674,21 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 8388, is_shop_specified: true, - available_shop_ids: ["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, + available_shop_ids: ["b433f764-07f7-42c0-9556-6fd87988f124", "09d015a2-2b31-45aa-a41f-923f2b2d4de0", "18cd3bee-e2bf-4866-905a-5b1e0b4dfef4", "24139a88-20fa-4747-b56e-fcd67d093088", "76f6d9ca-1ea8-4ce2-bc74-87c3abbac41f", "d13cc483-a8ee-4773-9a2f-b5e01ab7d7ff", "75bc6ffc-70e4-490d-a52c-924688e7ebbd", "9b0ce214-03d6-478f-addf-ff63443ca883", "27a71bdc-1aea-4fc6-b82e-a720bf8fbdf0"], + is_disabled: true, is_hidden: false, - is_public: true, - code: "oGU", - usage_limit: 5553, - min_amount: 4303, - storage_id: "f4657b8d-1103-44f8-9f81-4a55e26667c0" + is_public: false, + code: "7nB", + usage_limit: 5865, + min_amount: 6058, + storage_id: "dc9400ae-536a-49e1-a134-4e75f7f1491a" })); status = response.code; } catch (e) { @@ -11011,22 +11704,22 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 8154, is_shop_specified: false, - available_shop_ids: ["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" + available_shop_ids: ["66d53e70-5212-47c8-a2d1-a9c072aaedd4", "4be39234-68fe-4b13-ad8f-2fda5f237151", "8e51fe3b-d25e-4b9e-a728-d89b81dc7144"], + display_ends_at: "2021-06-06T14:05:51.000000Z", + is_disabled: false, + is_hidden: true, + is_public: true, + code: "1kMJt8", + usage_limit: 8180, + min_amount: 8024, + storage_id: "0e0ca2cc-d84d-468d-b7dd-54e0fa6e0c69" })); status = response.code; } catch (e) { @@ -11042,23 +11735,23 @@ test('Check CreateCoupon | 21', 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: 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 3402, + is_shop_specified: false, + available_shop_ids: ["f67037cd-d21f-4e69-b350-19a8573ccdd4", "0695de81-53d8-403b-b6fe-99ca5843f5b9", "013b0a99-f0c1-4450-bebc-59276a539257", "fb6937d6-44fd-4d2c-a6b0-16a592992ac0", "5991d5a1-f95c-4c8d-aeeb-5f4963c3c6b2", "eaf58ae3-5c70-45db-a9da-d2726b4fe55f", "f466ca77-d82f-4ce8-b4e0-198210a8cb90"], + display_starts_at: "2021-05-19T15:51:25.000000Z", + display_ends_at: "2022-03-07T03:21:20.000000Z", + is_disabled: false, + is_hidden: true, + is_public: false, + code: "dhT", + usage_limit: 6259, + min_amount: 4233, + storage_id: "0dd17f90-bf18-4753-bb3a-310cd42e4f78" })); status = response.code; } catch (e) { @@ -11074,24 +11767,24 @@ 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", + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 7055, + is_shop_specified: true, + available_shop_ids: ["275127d8-8784-4ea7-82f5-dcc0c1d07f89", "cd4bf5e8-c04c-491b-81f8-d403dc2586af", "c95875d0-e03b-4df8-824c-bfa677b05288"], + discount_upper_limit: 1426, + display_starts_at: "2023-01-10T01:53:40.000000Z", + display_ends_at: "2023-12-28T16:04:43.000000Z", is_disabled: false, is_hidden: false, - is_public: true, - code: "H1pqqlIh", - usage_limit: 7688, - min_amount: 2304, - storage_id: "eff9f69d-34cb-4beb-924f-b6ee68c7b650" + is_public: false, + code: "F", + usage_limit: 1079, + min_amount: 976, + storage_id: "f95a6c48-852d-4e39-9bbc-126a8cc8f50f" })); status = response.code; } catch (e) { @@ -11107,25 +11800,25 @@ test('Check CreateCoupon | 23', 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: 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_amount: 8307, + is_shop_specified: false, + available_shop_ids: ["1b26b3bd-f4ff-42ef-ab29-d7b3c9bab7f1"], + description: "bXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO5Bp0TaBrmndiCNxXXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMyd", + discount_upper_limit: 9580, + display_starts_at: "2020-12-24T14:18:47.000000Z", + display_ends_at: "2021-11-23T19:34:19.000000Z", + is_disabled: false, is_hidden: false, is_public: true, - code: "N1", - usage_limit: 2481, - min_amount: 421, - storage_id: "6e51bde4-f77f-4069-a454-254921597d50" + code: "qE4", + usage_limit: 1281, + min_amount: 2260, + storage_id: "347c6031-7ff6-414f-b20c-b482317519cb" })); status = response.code; } catch (e) { @@ -11141,12 +11834,12 @@ 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 + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 6541.0 })); status = response.code; } catch (e) { @@ -11162,13 +11855,13 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 3905.0, + storage_id: "2c2afa1e-4834-4c49-b7a5-01046f5627e7" })); status = response.code; } catch (e) { @@ -11184,14 +11877,14 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 8787.0, + min_amount: 4289, + storage_id: "4521aa01-0767-4121-a909-b38b24913d5b" })); status = response.code; } catch (e) { @@ -11207,15 +11900,15 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 2858.0, + usage_limit: 9687, + min_amount: 2296, + storage_id: "149d8e18-385b-439d-ae65-6f88745a3d65" })); status = response.code; } catch (e) { @@ -11231,16 +11924,16 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 2667.0, + code: "V8cI", + usage_limit: 477, + min_amount: 5316, + storage_id: "e2cb1bdb-265b-452f-9430-c9a029af4c5e" })); status = response.code; } catch (e) { @@ -11256,17 +11949,17 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 4762.0, is_public: true, - code: "1zTkBm", - usage_limit: 8190, - min_amount: 3281, - storage_id: "b0d3005b-4ffb-4409-bff3-e055d340694a" + code: "8h8evW68NK", + usage_limit: 1776, + min_amount: 3221, + storage_id: "a2ee087f-c55e-4c64-ab0b-9471fa211a30" })); status = response.code; } catch (e) { @@ -11282,18 +11975,18 @@ 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 6224.0, is_hidden: false, - is_public: true, - code: "79pUjuQLW", - usage_limit: 6154, - min_amount: 4554, - storage_id: "0fa512d1-9515-4ac1-88ec-fce3225aea29" + is_public: false, + code: "o6", + usage_limit: 5353, + min_amount: 3410, + storage_id: "72f76b31-5b0a-4b31-94de-a741089e050b" })); status = response.code; } catch (e) { @@ -11309,19 +12002,19 @@ test('Check CreateCoupon | 31', 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: 2224.0, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 7664.0, is_disabled: false, - is_hidden: true, + is_hidden: false, is_public: false, - code: "fIBEGWMOe", - usage_limit: 6539, - min_amount: 8342, - storage_id: "5bde6687-5f8c-4efb-96fe-907a56916a8a" + code: "gNTXOxF", + usage_limit: 8322, + min_amount: 2721, + storage_id: "f287c4bd-7526-4777-b193-d6273bae16e8" })); status = response.code; } catch (e) { @@ -11337,20 +12030,20 @@ 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", + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 5483.0, + display_ends_at: "2023-03-21T06:19:56.000000Z", is_disabled: false, is_hidden: false, - is_public: false, - code: "f46VZC1gRO", - usage_limit: 8119, - min_amount: 7551, - storage_id: "b431fa85-9887-43f9-bcdb-8bc4de099877" + is_public: true, + code: "pZV", + usage_limit: 162, + min_amount: 4106, + storage_id: "21e1c3f0-1e46-4c1c-937b-de026597e01b" })); status = response.code; } catch (e) { @@ -11366,21 +12059,21 @@ test('Check CreateCoupon | 33', 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: 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 9168.0, + display_starts_at: "2023-07-19T00:14:52.000000Z", + display_ends_at: "2022-03-27T10:37:51.000000Z", + is_disabled: true, + is_hidden: true, + is_public: true, + code: "p5bfKV", + usage_limit: 1158, + min_amount: 9785, + storage_id: "e2b3a15d-b52a-46c4-90d9-b1ca5326759d" })); status = response.code; } catch (e) { @@ -11396,22 +12089,22 @@ 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", + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 2085.0, + discount_upper_limit: 4310, + display_starts_at: "2021-04-29T14:17:30.000000Z", + display_ends_at: "2020-04-13T12:51:34.000000Z", is_disabled: true, is_hidden: true, - is_public: true, - code: "qydMn", - usage_limit: 3684, - min_amount: 3115, - storage_id: "c761280a-09a5-4489-a7a8-ae3cee2dc6e0" + is_public: false, + code: "vyI6yw", + usage_limit: 5391, + min_amount: 6057, + storage_id: "a2aa4979-3f4b-4c69-a723-36ec32ea14bd" })); status = response.code; } catch (e) { @@ -11427,23 +12120,23 @@ 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", + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 9194.0, + description: "5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac", + discount_upper_limit: 1593, + display_starts_at: "2022-09-20T16:39:04.000000Z", + display_ends_at: "2023-01-28T15:06:04.000000Z", is_disabled: false, is_hidden: true, is_public: false, - code: "oSB", - usage_limit: 5890, - min_amount: 7047, - storage_id: "49dab42c-3348-492d-bc93-adbcdd2caee5" + code: "Bqh0SVIl", + usage_limit: 7423, + min_amount: 9087, + storage_id: "0239f926-855b-49ba-aa9d-e9212eecd940" })); status = response.code; } catch (e) { @@ -11459,14 +12152,14 @@ 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"] + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 7220.0, + is_shop_specified: false, + available_shop_ids: ["3ed2b3cb-a4d8-4f55-bfb1-8b72a9ec6188", "d37b6756-03cc-459a-a636-6c55d3ade527", "8d89a530-ac4b-4934-87e0-b990bfcdeb5f", "2c6ff334-cfc2-40ef-a2f6-43112b12a4ab", "ad682780-8848-4a21-bf89-db2aa556904b"] })); status = response.code; } catch (e) { @@ -11482,15 +12175,15 @@ test('Check CreateCoupon | 37', 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: 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 2673.0, + is_shop_specified: false, + available_shop_ids: ["b0ef9f12-9460-4bbe-a922-37c750bbcd01", "26587642-7e83-4dad-857f-4a96db039b47", "65eec6ba-1a1f-4a26-bdb1-55c46de1cfa1", "176f785a-01fe-44fd-8bea-0eb276bf0274", "8c1fd087-cec2-4752-acc6-35e5242599a0", "ab108388-64a5-4016-a02f-7e72a5a4aee8", "ca541eff-d653-40f5-8cb2-3e9718582200", "c4acf214-7522-44b2-be21-c36792bb9347"], + storage_id: "4d1524bc-2fa2-4de7-bee1-b237640b19f0" })); status = response.code; } catch (e) { @@ -11506,16 +12199,16 @@ 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 2819.0, + is_shop_specified: true, + available_shop_ids: ["6b704930-82ee-4fed-8c4d-bd1a0e23a0e6", "73c81adc-16ee-4307-ab49-e3af6fae341c", "cde1e159-42d4-4710-bbd1-f7648f03267e", "3d66de1e-50ba-4c9b-b192-4c837014ccbc", "b58e551d-f0c8-4100-bf24-634a9fb397da", "1094b925-6ab8-45d7-896e-b6c0b19c0844", "abdd9b18-5d48-4a8f-85bc-abd6ff3a35be"], + min_amount: 102, + storage_id: "e68deb01-c827-45dc-b0c9-d628c02dc8be" })); status = response.code; } catch (e) { @@ -11531,17 +12224,17 @@ test('Check CreateCoupon | 39', 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: 8057.0, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 9282.0, 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" + available_shop_ids: ["0db33645-0aa1-4bcf-8dfb-19ad163ddad0", "f7b56332-2780-463b-81a6-03d526cebe92", "8f919827-e437-4f2a-896b-a6d99236eef9", "ab37e6dc-302b-489f-a0e7-d60f9c490d01", "dc28b76d-876b-4ea7-ab44-ec9f3a81ac87"], + usage_limit: 6156, + min_amount: 3629, + storage_id: "9b088bf8-5805-481e-9164-0984c5a23833" })); status = response.code; } catch (e) { @@ -11557,18 +12250,18 @@ test('Check CreateCoupon | 40', 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: 1795.0, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 832.0, 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" + available_shop_ids: ["cf2be07a-693b-42f0-ab7a-c5f6a39beb9e", "1215befc-0dbe-4650-ba3e-a9f3d0e94ad0", "3cf579ef-5eb2-42f6-abbf-6ce36c4fbcda", "02d413f6-534b-4484-a861-72bb0e196f9c", "4bfe0466-be34-4037-b00d-6c4459f40c77", "ec02ff91-ea86-43b5-99df-cb9e87d0edac"], + code: "I6", + usage_limit: 8677, + min_amount: 8325, + storage_id: "eb47ec15-ed41-4fa6-a2ad-9426485df6a4" })); status = response.code; } catch (e) { @@ -11584,19 +12277,19 @@ test('Check CreateCoupon | 41', 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: 1243.0, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 8399.0, is_shop_specified: false, - available_shop_ids: ["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" + available_shop_ids: ["4705f294-b0c4-4e2b-82e7-01525eb1c595", "1cca2b96-a6fc-4e14-9141-dc671d8693ed", "06f35eea-ef85-44de-b890-d640eb8954bf"], + is_public: true, + code: "GCqaBwJ9", + usage_limit: 8536, + min_amount: 5610, + storage_id: "c7307dd8-6abc-4c53-85e6-016284b2676b" })); status = response.code; } catch (e) { @@ -11612,20 +12305,20 @@ test('Check CreateCoupon | 42', 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: 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 5085.0, + is_shop_specified: true, + available_shop_ids: ["862a6910-cb88-4d92-b376-02ec46d1e9aa"], + is_hidden: true, + is_public: true, + code: "1NOUE", + usage_limit: 8157, + min_amount: 6669, + storage_id: "77a128ff-3da3-4c55-a6cf-7b9dc665c8c0" })); status = response.code; } catch (e) { @@ -11641,21 +12334,21 @@ test('Check CreateCoupon | 43', 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: 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"], + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 1412.0, + is_shop_specified: false, + available_shop_ids: ["85fe33d4-74e5-4f59-b5e1-ccb55bd97244", "902b3ef6-110c-48e5-8af3-a4ee7c4c6e38", "5e129fa7-74a6-4dec-a8c0-053bad574749", "ab264084-1055-49a0-a30d-307e9ab05a67", "29e3dcc9-3908-4f6b-99b0-cfae11f6946f", "6672ea4e-4360-4088-848a-70a8aaa40555", "426d5912-9a34-4e08-bdbb-69247c37a512", "d0480440-cca4-411b-9af4-990ecf02b8da"], is_disabled: false, - is_hidden: false, - is_public: true, - code: "BBTTp6AGpM", - usage_limit: 4878, - min_amount: 5581, - storage_id: "35039622-eaa3-4ae0-8f9d-0e3e8a4c09cf" + is_hidden: true, + is_public: false, + code: "Hmd", + usage_limit: 9339, + min_amount: 5494, + storage_id: "48064ff9-31ec-4aa0-891c-927d28cb5c94" })); status = response.code; } catch (e) { @@ -11671,22 +12364,22 @@ test('Check CreateCoupon | 44', 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: 4254.0, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 3084.0, 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" + available_shop_ids: ["398df768-72c7-43a1-a4c4-014d8dabcd02", "f3c9e73b-74f8-4703-82aa-86f54c8abfea", "40e3a40f-f417-462f-9c0f-02b814352341"], + display_ends_at: "2021-12-21T15:43:30.000000Z", + is_disabled: false, + is_hidden: false, + is_public: false, + code: "DOA", + usage_limit: 6315, + min_amount: 4099, + storage_id: "c5759a98-b157-4cab-91e5-abaff2a27aef" })); status = response.code; } catch (e) { @@ -11702,23 +12395,23 @@ test('Check CreateCoupon | 45', 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: 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, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 21.0, + is_shop_specified: true, + available_shop_ids: ["47915465-a013-43c6-9fe0-fa0b9c291036"], + display_starts_at: "2020-06-23T10:27:15.000000Z", + display_ends_at: "2022-01-25T23:08:38.000000Z", + is_disabled: false, + is_hidden: false, is_public: false, - code: "uG53qZW", - usage_limit: 3328, - min_amount: 1658, - storage_id: "8d68c302-5210-4ea0-8721-b113b98f6eef" + code: "1N9plx7j", + usage_limit: 4121, + min_amount: 5020, + storage_id: "3a1b1b6a-6cc8-46cb-a031-7545636c6696" })); status = response.code; } catch (e) { @@ -11734,24 +12427,24 @@ test('Check CreateCoupon | 46', 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: 6944.0, + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 9979.0, 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, + available_shop_ids: ["e5f26155-ded1-4869-892b-517522354cd6"], + discount_upper_limit: 3967, + display_starts_at: "2021-01-05T23:06:34.000000Z", + display_ends_at: "2021-11-05T02:04:42.000000Z", + is_disabled: false, + is_hidden: true, is_public: true, - code: "PKIYR", - usage_limit: 7361, - min_amount: 4972, - storage_id: "c4afa331-685d-4955-8375-0ddc9ccdf993" + code: "T2YVV", + usage_limit: 7118, + min_amount: 4769, + storage_id: "79ced667-920b-431d-9d6b-d1687843dec7" })); status = response.code; } catch (e) { @@ -11767,25 +12460,25 @@ test('Check CreateCoupon | 47', 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: 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" + private_money_id: "bd103d21-a16d-4654-931f-6ca445ab6949", + name: "s3sss0bSZ", + starts_at: "2021-01-14T23:41:37.000000Z", + ends_at: "2020-09-06T06:55:56.000000Z", + issued_shop_id: "5cb12b63-c3a0-47d2-8735-ba7295336d04", + discount_percentage: 7259.0, + is_shop_specified: true, + available_shop_ids: ["83e9307e-f8e9-43cf-a124-494a14fa6f96", "b768a76b-b5b8-4512-a423-3d2753f778c8", "8a472157-2557-4b9f-a2d8-0c4fd4b6461e", "43662892-5c4d-4e73-b91a-a4cd2a1f3e8c", "d8330cde-f2d6-4a90-9802-890beab432a3", "1a395a91-f0a8-451b-91cc-d1313ff0cb08", "6835311d-4489-4159-8f30-31a83c1d095f", "961a639b-2646-4f3e-9326-d989b143b97a", "042db78d-4eaa-4e0b-afd6-57c7d92fb8e0", "71011504-1490-431b-abf1-284ff43bcecb"], + description: "oU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iBoGU1OxUmIl7jlWxrfEKMQ8FCs062PLb59yfzniw8Z7TrjWh0BQdrr7bOC0AUfJnZn", + discount_upper_limit: 6299, + display_starts_at: "2024-01-27T13:55:31.000000Z", + display_ends_at: "2023-03-28T10:50:23.000000Z", + is_disabled: false, + is_hidden: true, + is_public: false, + code: "CWxbc4", + usage_limit: 6312, + min_amount: 7229, + storage_id: "79e59fbd-ceb0-4e50-b2c4-ee2a4708567f" })); status = response.code; } catch (e) { @@ -11801,7 +12494,7 @@ test('Check GetCoupon | 0', async () => { let status = 400; try { const response: Response = await client.send(new GetCoupon({ - coupon_id: "b8a9e22b-b9d2-427a-a40f-9b3c5ce58991" + coupon_id: "37ca2208-5d71-4368-b393-e89b31863544" })); status = response.code; } catch (e) { @@ -11817,8 +12510,8 @@ test('Check UpdateCoupon | 0', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 4008 + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 1971 })); status = response.code; } catch (e) { @@ -11834,9 +12527,9 @@ 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 6605, + name: "k8m6" })); status = response.code; } catch (e) { @@ -11852,10 +12545,10 @@ test('Check UpdateCoupon | 2', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 7874, - description: "IXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROF", - name: "3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57ns" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 6851, + description: "n0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3", + name: "JQAlc0mxfIBE" })); status = response.code; } catch (e) { @@ -11871,11 +12564,11 @@ 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 3624, + discount_upper_limit: 8519, + description: "WMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqyd", + name: "ndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEe" })); status = response.code; } catch (e) { @@ -11891,12 +12584,12 @@ test('Check UpdateCoupon | 4', async () => { let status = 400; try { 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 1336, + starts_at: "2020-09-14T07:21:18.000000Z", + discount_upper_limit: 8419, + description: "L5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxF", + name: "X7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2P" })); status = response.code; } catch (e) { @@ -11912,13 +12605,13 @@ 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 5603, + ends_at: "2020-05-10T10:02:02.000000Z", + starts_at: "2022-03-03T10:05:30.000000Z", + discount_upper_limit: 6669, + description: "2ctvmZzuG53qZWTYzGouu", + name: "X6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3C" })); status = response.code; } catch (e) { @@ -11934,14 +12627,14 @@ test('Check UpdateCoupon | 6', async () => { let status = 400; try { 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 1277, + display_starts_at: "2020-09-05T11:32:25.000000Z", + ends_at: "2020-05-20T02:48:54.000000Z", + starts_at: "2020-04-15T18:37:32.000000Z", + discount_upper_limit: 9669, + description: "dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8u", + name: "okXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3Po" })); status = response.code; } catch (e) { @@ -11957,15 +12650,15 @@ 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 5999, + display_ends_at: "2023-10-18T01:36:24.000000Z", + display_starts_at: "2020-09-02T00:29:43.000000Z", + ends_at: "2022-04-26T07:44:48.000000Z", + starts_at: "2022-07-12T10:34:51.000000Z", + discount_upper_limit: 4289, + description: "3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9C", + name: "N5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h" })); status = response.code; } catch (e) { @@ -11981,16 +12674,16 @@ 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, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 6369, 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" + display_ends_at: "2021-05-15T22:02:56.000000Z", + display_starts_at: "2023-05-10T05:55:37.000000Z", + ends_at: "2023-07-22T16:36:18.000000Z", + starts_at: "2023-01-12T10:59:04.000000Z", + discount_upper_limit: 1185, + description: "gOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw", + name: "eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslT" })); status = response.code; } catch (e) { @@ -12006,17 +12699,17 @@ test('Check UpdateCoupon | 9', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 4441, - is_hidden: false, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 2342, + is_hidden: true, 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" + display_ends_at: "2022-04-20T01:25:25.000000Z", + display_starts_at: "2023-10-08T13:53:12.000000Z", + ends_at: "2022-03-18T09:03:54.000000Z", + starts_at: "2021-06-30T22:02:05.000000Z", + discount_upper_limit: 432, + description: "0PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFum", + name: "QVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IA" })); status = response.code; } catch (e) { @@ -12032,18 +12725,18 @@ 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, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 5337, + is_public: true, 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" + is_disabled: true, + display_ends_at: "2023-08-26T20:02:34.000000Z", + display_starts_at: "2021-08-13T21:31:53.000000Z", + ends_at: "2022-02-14T12:55:29.000000Z", + starts_at: "2022-10-19T08:05:31.000000Z", + discount_upper_limit: 3488, + description: "HAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVf", + name: "L5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3Px" })); status = response.code; } catch (e) { @@ -12059,19 +12752,19 @@ test('Check UpdateCoupon | 11', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 1259, - code: "6uS", + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 7058, + code: "v", 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" + is_hidden: false, + is_disabled: true, + display_ends_at: "2023-09-17T19:01:04.000000Z", + display_starts_at: "2023-01-19T19:29:08.000000Z", + ends_at: "2021-03-21T02:48:14.000000Z", + starts_at: "2024-02-22T15:55:19.000000Z", + discount_upper_limit: 3031, + description: "A6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizY", + name: "vZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnIC" })); status = response.code; } catch (e) { @@ -12087,20 +12780,20 @@ test('Check UpdateCoupon | 12', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 8843, - usage_limit: 6677, - code: "kxOOzhTp", + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 6693, + usage_limit: 7178, + code: "BJimGKiop", 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" + display_ends_at: "2020-01-24T01:52:50.000000Z", + display_starts_at: "2020-07-24T06:27:09.000000Z", + ends_at: "2022-10-23T01:58:06.000000Z", + starts_at: "2023-10-07T12:21:53.000000Z", + discount_upper_limit: 8662, + description: "9", + name: "u47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7Rr" })); status = response.code; } catch (e) { @@ -12116,21 +12809,21 @@ test('Check UpdateCoupon | 13', async () => { let status = 400; try { 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 3320, + min_amount: 8177, + usage_limit: 2786, + code: "xY5", + is_public: false, + is_hidden: true, + is_disabled: true, + display_ends_at: "2020-10-28T00:05:23.000000Z", + display_starts_at: "2022-12-20T18:53:15.000000Z", + ends_at: "2022-01-27T12:10:21.000000Z", + starts_at: "2020-06-26T00:50:42.000000Z", + discount_upper_limit: 3192, + description: "b35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKI", + name: "dqTZCuDots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzma" })); status = response.code; } catch (e) { @@ -12146,22 +12839,22 @@ test('Check UpdateCoupon | 14', async () => { let status = 400; try { 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, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 4030, + is_shop_specified: false, + min_amount: 3120, + usage_limit: 2135, + code: "VCj", + is_public: true, 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" + display_ends_at: "2022-01-10T01:07:38.000000Z", + display_starts_at: "2022-11-04T10:45:55.000000Z", + ends_at: "2021-07-18T22:29:58.000000Z", + starts_at: "2020-04-25T13:22:39.000000Z", + discount_upper_limit: 2424, + description: "XnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4", + name: "bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI" })); status = response.code; } catch (e) { @@ -12177,23 +12870,23 @@ test('Check UpdateCoupon | 15', async () => { let status = 400; try { 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, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 5168, + available_shop_ids: ["ae9ec8ff-29c5-49a8-8f92-10271208b93e", "f131a284-cd80-4a1c-bb49-c4bc595b4e25", "539e4b17-9b22-4ff1-8fa3-bfc66b9fbe87", "9f38494c-5371-4c6e-8cb2-f6a0929a205a", "8905f6de-9c17-4f75-8c2f-92eb57d9f297"], + is_shop_specified: true, + min_amount: 6069, + usage_limit: 7334, + code: "F2FUuyDVU", + is_public: true, + is_hidden: true, 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" + display_ends_at: "2022-11-09T23:59:22.000000Z", + display_starts_at: "2021-11-05T06:38:38.000000Z", + ends_at: "2022-05-08T04:57:11.000000Z", + starts_at: "2024-02-25T02:06:59.000000Z", + discount_upper_limit: 4441, + description: "ez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOy", + name: "21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see" })); status = response.code; } catch (e) { @@ -12209,24 +12902,24 @@ 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"], + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 5301, + storage_id: "9e17eafe-e8c0-4808-a1f1-0a131d9f69c7", + available_shop_ids: ["4a09ea83-13e7-46ce-ace0-a60afb82a391", "0ee8b57c-ff5b-40ad-8bec-be2483e12a15", "a790d814-2e1d-43a2-bd6b-3c8f88a6faa6", "ba9417f6-0e08-4eb5-9008-f1f663e72045", "a61bd28f-6afd-4686-ab63-61df7d4ad05c", "3a5ede3b-c989-4cc5-af22-a0cd605b1d06", "05a09d6a-f0ba-433f-a254-de34c88a4656", "3263c9d0-38b8-415d-acda-09c65ff0bcad", "3b0fc2b0-5641-4a68-9bfb-19892e81341f"], is_shop_specified: true, - min_amount: 1448, - usage_limit: 7713, - code: "GC4wPtL", + min_amount: 4725, + usage_limit: 5902, + code: "hoXC", 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" + display_ends_at: "2023-10-29T09:57:30.000000Z", + display_starts_at: "2023-04-05T21:15:37.000000Z", + ends_at: "2022-12-29T01:49:43.000000Z", + starts_at: "2023-11-22T00:07:21.000000Z", + discount_upper_limit: 6630, + description: "Yfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vF", + name: "ea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc" })); status = response.code; } catch (e) { @@ -12242,9 +12935,9 @@ 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 + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 3851, + discount_percentage: 4745.0 })); status = response.code; } catch (e) { @@ -12260,10 +12953,10 @@ test('Check UpdateCoupon | 18', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 2447, - discount_percentage: 3329.0, - name: "MEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 40, + discount_percentage: 4085.0, + name: "kk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3" })); status = response.code; } catch (e) { @@ -12279,11 +12972,11 @@ 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 9484, + discount_percentage: 8601.0, + description: "BlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4", + name: "fUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruI" })); status = response.code; } catch (e) { @@ -12299,12 +12992,12 @@ test('Check UpdateCoupon | 20', async () => { let status = 400; try { 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 1367, + discount_percentage: 115.0, + discount_upper_limit: 3331, + description: "4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5", + name: "t8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6Jlqv" })); status = response.code; } catch (e) { @@ -12320,13 +13013,13 @@ 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 1149, + discount_percentage: 9556.0, + starts_at: "2021-02-16T11:41:35.000000Z", + discount_upper_limit: 9715, + description: "7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFhS", + name: "bUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ" })); status = response.code; } catch (e) { @@ -12342,14 +13035,14 @@ test('Check UpdateCoupon | 22', async () => { let status = 400; try { 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 8884, + discount_percentage: 8369.0, + ends_at: "2023-02-02T05:10:51.000000Z", + starts_at: "2022-01-16T00:07:17.000000Z", + discount_upper_limit: 8450, + description: "Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kI", + name: "mOLWynZ7sTqSkOWWDLZmiyY4qSDc" })); status = response.code; } catch (e) { @@ -12365,15 +13058,15 @@ 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 9445, + discount_percentage: 1457.0, + display_starts_at: "2021-09-01T21:03:10.000000Z", + ends_at: "2022-10-12T02:30:00.000000Z", + starts_at: "2022-08-30T12:14:25.000000Z", + discount_upper_limit: 3894, + description: "C4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22", + name: "kprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxA" })); status = response.code; } catch (e) { @@ -12389,16 +13082,16 @@ test('Check UpdateCoupon | 24', async () => { let status = 400; try { 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" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 1704, + discount_percentage: 5062.0, + display_ends_at: "2023-06-06T13:41:03.000000Z", + display_starts_at: "2021-08-29T08:59:32.000000Z", + ends_at: "2021-10-09T22:51:23.000000Z", + starts_at: "2023-06-03T00:22:24.000000Z", + discount_upper_limit: 5770, + description: "GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bn", + name: "X1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6C" })); status = response.code; } catch (e) { @@ -12414,17 +13107,17 @@ test('Check UpdateCoupon | 25', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 8821, - discount_percentage: 1990.0, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 5594, + discount_percentage: 3235.0, is_disabled: false, - display_ends_at: "2020-02-28T03:47:20.000000Z", - display_starts_at: "2024-02-09T11:43:54.000000Z", - ends_at: "2023-08-07T02:47:43.000000Z", - starts_at: "2021-01-22T02:10:35.000000Z", - discount_upper_limit: 1308, - description: "gogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQU", - name: "9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S" + display_ends_at: "2022-11-21T04:50:37.000000Z", + display_starts_at: "2022-07-09T19:17:30.000000Z", + ends_at: "2024-02-29T07:46:53.000000Z", + starts_at: "2022-08-19T04:51:51.000000Z", + discount_upper_limit: 6857, + description: "HDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQO", + name: "hilbvDcAlCpIpPo9knGna2qU0GmaUmeizg" })); status = response.code; } catch (e) { @@ -12440,18 +13133,18 @@ 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: 358, - discount_percentage: 4560.0, - is_hidden: true, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 8488, + discount_percentage: 4489.0, + is_hidden: false, is_disabled: true, - display_ends_at: "2023-07-25T03:35:04.000000Z", - display_starts_at: "2021-10-04T01:56:11.000000Z", - ends_at: "2022-01-26T08:17:29.000000Z", - starts_at: "2020-08-08T01:13:26.000000Z", - discount_upper_limit: 2278, - description: "y135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfg", - name: "lG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDH" + display_ends_at: "2022-07-02T11:13:06.000000Z", + display_starts_at: "2022-12-23T01:36:40.000000Z", + ends_at: "2022-06-22T06:35:17.000000Z", + starts_at: "2021-03-06T08:34:30.000000Z", + discount_upper_limit: 9478, + description: "wqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536", + name: "2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0k" })); status = response.code; } catch (e) { @@ -12467,19 +13160,19 @@ test('Check UpdateCoupon | 27', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 3879, - discount_percentage: 6597.0, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 8252, + discount_percentage: 7917.0, is_public: true, - is_hidden: false, - is_disabled: true, - display_ends_at: "2021-06-24T10:33:33.000000Z", - display_starts_at: "2022-04-30T18:44:41.000000Z", - ends_at: "2020-02-22T20:20:16.000000Z", - starts_at: "2022-04-05T13:58:19.000000Z", - discount_upper_limit: 4901, - description: "UcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7b", - name: "cdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99On" + is_hidden: true, + is_disabled: false, + display_ends_at: "2022-08-08T12:14:12.000000Z", + display_starts_at: "2023-01-03T03:55:08.000000Z", + ends_at: "2023-08-01T12:14:38.000000Z", + starts_at: "2022-11-25T20:14:21.000000Z", + discount_upper_limit: 3684, + description: "8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2", + name: "Y3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7" })); status = response.code; } catch (e) { @@ -12495,20 +13188,20 @@ 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: 8689, - discount_percentage: 6241.0, - code: "5iTxaKH", + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 4076, + discount_percentage: 30.0, + code: "qy4kEKJ1Q", is_public: false, - is_hidden: true, - is_disabled: true, - display_ends_at: "2021-07-06T05:01:40.000000Z", - display_starts_at: "2022-04-30T02:17:19.000000Z", - ends_at: "2023-12-14T21:37:33.000000Z", - starts_at: "2021-12-08T04:36:24.000000Z", - discount_upper_limit: 8664, - description: "xpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb", - name: "YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8" + is_hidden: false, + is_disabled: false, + display_ends_at: "2022-10-27T14:43:36.000000Z", + display_starts_at: "2023-05-01T01:15:06.000000Z", + ends_at: "2022-06-15T14:56:21.000000Z", + starts_at: "2023-01-18T20:31:52.000000Z", + discount_upper_limit: 2992, + description: "ZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlk", + name: "s1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSH" })); status = response.code; } catch (e) { @@ -12524,21 +13217,21 @@ test('Check UpdateCoupon | 29', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 9861, - discount_percentage: 8122.0, - usage_limit: 2123, - code: "wqzGZ", - is_public: true, - is_hidden: false, - is_disabled: false, - display_ends_at: "2023-01-08T01:54:59.000000Z", - display_starts_at: "2020-09-20T15:59:46.000000Z", - ends_at: "2023-01-28T03:10:24.000000Z", - starts_at: "2022-02-05T00:48:30.000000Z", - discount_upper_limit: 8266, - description: "TtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjp", - name: "NeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 6507, + discount_percentage: 4332.0, + usage_limit: 3122, + code: "NjfKFk3x", + is_public: false, + is_hidden: true, + is_disabled: true, + display_ends_at: "2020-09-22T13:07:47.000000Z", + display_starts_at: "2020-06-18T03:09:02.000000Z", + ends_at: "2020-03-30T20:40:11.000000Z", + starts_at: "2022-10-24T02:13:06.000000Z", + discount_upper_limit: 581, + description: "uZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2Q", + name: "qNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85" })); status = response.code; } catch (e) { @@ -12554,22 +13247,22 @@ test('Check UpdateCoupon | 30', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 3244, - discount_percentage: 4783.0, - min_amount: 2050, - usage_limit: 2538, - code: "n", - is_public: true, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 9357, + discount_percentage: 273.0, + min_amount: 4197, + usage_limit: 4929, + code: "Ni4DCh9E1p", + is_public: false, is_hidden: false, is_disabled: false, - display_ends_at: "2021-12-29T19:59:33.000000Z", - display_starts_at: "2022-07-16T17:40:09.000000Z", - ends_at: "2020-11-14T20:24:01.000000Z", - starts_at: "2021-07-06T09:38:59.000000Z", - discount_upper_limit: 2353, - description: "KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyR", - name: "XgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCW" + display_ends_at: "2021-11-12T14:41:44.000000Z", + display_starts_at: "2021-10-07T02:21:04.000000Z", + ends_at: "2020-06-09T11:54:21.000000Z", + starts_at: "2023-07-25T06:56:05.000000Z", + discount_upper_limit: 1921, + description: "vY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xx", + name: "Ci9aS7pUn8sHDE4F3kcf0hr" })); status = response.code; } catch (e) { @@ -12585,23 +13278,23 @@ test('Check UpdateCoupon | 31', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 8861, - discount_percentage: 2922.0, - is_shop_specified: true, - min_amount: 2093, - usage_limit: 639, - code: "PmFGWkh7DM", - is_public: true, - is_hidden: false, - is_disabled: false, - display_ends_at: "2022-05-29T16:12:03.000000Z", - display_starts_at: "2020-07-01T14:25:53.000000Z", - ends_at: "2021-08-14T22:25:52.000000Z", - starts_at: "2023-05-21T06:48:20.000000Z", - discount_upper_limit: 1491, - description: "Wi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp", - name: "lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 1617, + discount_percentage: 993.0, + is_shop_specified: false, + min_amount: 6258, + usage_limit: 4233, + code: "ThS8KkZC", + is_public: false, + is_hidden: true, + is_disabled: true, + display_ends_at: "2020-04-10T21:59:54.000000Z", + display_starts_at: "2023-01-27T17:43:26.000000Z", + ends_at: "2022-02-24T15:14:25.000000Z", + starts_at: "2020-11-24T16:48:56.000000Z", + discount_upper_limit: 479, + description: "SP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH", + name: "9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoa" })); status = response.code; } catch (e) { @@ -12617,24 +13310,24 @@ test('Check UpdateCoupon | 32', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 8384, - discount_percentage: 2778.0, - available_shop_ids: ["780583b6-fef2-46ea-a160-9046d15644cb", "5e3cd67e-178b-4ace-94c8-ae933b155491"], - is_shop_specified: false, - min_amount: 1130, - usage_limit: 7224, - code: "HL", + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 2731, + discount_percentage: 3077.0, + available_shop_ids: ["e0581ca4-3554-4c5e-ad56-9e9e0de1fa58", "e5178e30-4f58-4f71-b14c-12075b19deb2", "b312d144-581b-4688-bdc4-fd436355c0e4"], + is_shop_specified: true, + min_amount: 3143, + usage_limit: 7158, + code: "9Q", is_public: false, - is_hidden: true, + is_hidden: false, is_disabled: false, - display_ends_at: "2021-12-05T22:07:16.000000Z", - display_starts_at: "2022-08-13T06:41:44.000000Z", - ends_at: "2022-01-05T08:14:20.000000Z", - starts_at: "2020-10-24T02:22:33.000000Z", - discount_upper_limit: 7320, - description: "c4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx5", - name: "0Yf2M71M8zENOSGlzUlDT" + display_ends_at: "2020-07-23T09:39:26.000000Z", + display_starts_at: "2021-11-29T08:02:08.000000Z", + ends_at: "2023-11-09T10:42:06.000000Z", + starts_at: "2022-02-25T16:39:41.000000Z", + discount_upper_limit: 7405, + description: "X2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy", + name: "00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamO" })); status = response.code; } catch (e) { @@ -12650,25 +13343,25 @@ test('Check UpdateCoupon | 33', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_amount: 1203, - discount_percentage: 1595.0, - storage_id: "61fb7933-9e0b-4615-905d-0f9650173d83", - available_shop_ids: ["2b06e5b2-2d72-454a-b134-eafbcbe61959"], + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_amount: 8605, + discount_percentage: 9224.0, + storage_id: "1320b152-d5ed-4fd7-a373-0cf317deafa4", + available_shop_ids: ["43cf93b2-cb11-4ba6-bdc6-14c657d58eb3", "35d74648-b29b-46c1-bae8-56406379f474", "c38bf3f4-623b-44b1-b875-961fa976023e", "4fdb232e-2c94-4612-aa20-02e0f9410421", "eb5ccaae-c1b7-4d1a-8d6f-ba115ff4df6f", "c589f3d5-5f07-4d04-b58f-4cfbfa60fbe5", "bbc4b156-21d7-4cef-b8db-d6d4675cad9f", "34d3a7b9-e364-4fd2-824e-84f646fcb51c", "e2481ce6-3df5-4033-a73b-b0f1c5b86c9b", "be221607-38eb-4977-9442-3d4479a58d8a"], is_shop_specified: true, - min_amount: 4323, - usage_limit: 3118, - code: "JK", - is_public: true, - is_hidden: false, + min_amount: 122, + usage_limit: 6460, + code: "QpgEVips", + is_public: false, + is_hidden: true, is_disabled: true, - display_ends_at: "2020-12-24T19:28:03.000000Z", - display_starts_at: "2021-08-20T19:25:24.000000Z", - ends_at: "2022-02-12T01:20:38.000000Z", - starts_at: "2022-05-08T16:43:29.000000Z", - discount_upper_limit: 945, - description: "IN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3s", - name: "rgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyA" + display_ends_at: "2022-04-24T23:41:04.000000Z", + display_starts_at: "2022-08-27T01:34:21.000000Z", + ends_at: "2021-11-30T06:35:29.000000Z", + starts_at: "2020-09-02T19:20:31.000000Z", + discount_upper_limit: 4207, + description: "pS", + name: "XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa6s2OiS" })); status = response.code; } catch (e) { @@ -12684,8 +13377,8 @@ test('Check UpdateCoupon | 34', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 5818.0 + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 9396.0 })); status = response.code; } catch (e) { @@ -12701,9 +13394,9 @@ test('Check UpdateCoupon | 35', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 1188.0, - name: "BnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM004QSYd" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 1788.0, + name: "zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2F" })); status = response.code; } catch (e) { @@ -12719,10 +13412,10 @@ test('Check UpdateCoupon | 36', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 7935.0, - description: "ecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2g", - name: "nx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 4050.0, + description: "RBCtapsc2OJEtIYHTkPMCnHWRh", + name: "K3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr" })); status = response.code; } catch (e) { @@ -12738,11 +13431,11 @@ test('Check UpdateCoupon | 37', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 5922.0, - discount_upper_limit: 4714, - description: "GxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyG", - name: "MxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 3886.0, + discount_upper_limit: 8232, + description: "J6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8", + name: "v3XGoxNYBzQF26RR" })); status = response.code; } catch (e) { @@ -12758,12 +13451,12 @@ test('Check UpdateCoupon | 38', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 8815.0, - starts_at: "2020-11-01T22:01:57.000000Z", - discount_upper_limit: 8638, - description: "di9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ", - name: "wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14c" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 2030.0, + starts_at: "2021-07-18T03:46:21.000000Z", + discount_upper_limit: 1227, + description: "M2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxO", + name: "gNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2" })); status = response.code; } catch (e) { @@ -12779,13 +13472,13 @@ test('Check UpdateCoupon | 39', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 7296.0, - ends_at: "2021-09-20T03:31:47.000000Z", - starts_at: "2022-06-02T05:56:55.000000Z", - discount_upper_limit: 7542, - description: "vqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmV", - name: "3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqT" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 4342.0, + ends_at: "2023-10-08T17:08:20.000000Z", + starts_at: "2022-08-07T16:45:00.000000Z", + discount_upper_limit: 7091, + description: "yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4s", + name: "tkoPc7UXRyRiV8P" })); status = response.code; } catch (e) { @@ -12801,14 +13494,14 @@ test('Check UpdateCoupon | 40', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 2330.0, - display_starts_at: "2020-07-22T21:57:26.000000Z", - ends_at: "2024-02-06T10:43:19.000000Z", - starts_at: "2020-01-29T15:22:48.000000Z", - discount_upper_limit: 8, - description: "ldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQ", - name: "ZGPMXFo6oI" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 2986.0, + display_starts_at: "2020-03-03T08:39:56.000000Z", + ends_at: "2020-11-03T02:57:26.000000Z", + starts_at: "2021-10-24T06:28:19.000000Z", + discount_upper_limit: 7304, + description: "x53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzh", + name: "bkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKN" })); status = response.code; } catch (e) { @@ -12824,15 +13517,15 @@ test('Check UpdateCoupon | 41', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 8478.0, - display_ends_at: "2022-10-07T01:23:27.000000Z", - display_starts_at: "2020-11-03T09:46:30.000000Z", - ends_at: "2022-05-11T18:45:46.000000Z", - starts_at: "2020-09-04T22:22:21.000000Z", - discount_upper_limit: 7232, - description: "xUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hM", - name: "qGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 6856.0, + display_ends_at: "2020-12-11T15:26:11.000000Z", + display_starts_at: "2021-08-21T17:19:13.000000Z", + ends_at: "2022-11-22T01:22:29.000000Z", + starts_at: "2021-08-31T06:48:48.000000Z", + discount_upper_limit: 1130, + description: "8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNT", + name: "sv2Llex1ej" })); status = response.code; } catch (e) { @@ -12848,16 +13541,16 @@ test('Check UpdateCoupon | 42', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 6199.0, - is_disabled: true, - display_ends_at: "2020-12-02T01:56:58.000000Z", - display_starts_at: "2020-08-12T00:00:14.000000Z", - ends_at: "2022-02-15T18:53:30.000000Z", - starts_at: "2023-01-08T07:25:15.000000Z", - discount_upper_limit: 4089, - description: "jEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMs", - name: "A1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSkn" + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 7424.0, + is_disabled: false, + display_ends_at: "2021-07-22T17:27:26.000000Z", + display_starts_at: "2023-10-23T01:56:33.000000Z", + ends_at: "2022-02-25T09:09:49.000000Z", + starts_at: "2022-12-09T07:26:19.000000Z", + discount_upper_limit: 1629, + description: "2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3", + name: "OsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnU" })); status = response.code; } catch (e) { @@ -12873,17 +13566,17 @@ test('Check UpdateCoupon | 43', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 6019.0, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 2045.0, is_hidden: true, - is_disabled: false, - display_ends_at: "2021-02-23T18:14:02.000000Z", - display_starts_at: "2022-10-22T07:05:19.000000Z", - ends_at: "2022-02-17T16:54:47.000000Z", - starts_at: "2021-01-29T00:52:35.000000Z", - discount_upper_limit: 5428, - description: "aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsT", - name: "xqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjq" + is_disabled: true, + display_ends_at: "2023-03-21T12:04:18.000000Z", + display_starts_at: "2022-05-30T04:00:12.000000Z", + ends_at: "2022-04-06T02:14:53.000000Z", + starts_at: "2021-12-10T15:31:13.000000Z", + discount_upper_limit: 8278, + description: "97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQP", + name: "L0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM0" })); status = response.code; } catch (e) { @@ -12899,18 +13592,18 @@ test('Check UpdateCoupon | 44', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 9743.0, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 5926.0, is_public: true, - is_hidden: true, - is_disabled: false, - display_ends_at: "2023-07-24T23:18:14.000000Z", - display_starts_at: "2021-04-22T12:28:18.000000Z", - ends_at: "2022-09-23T16:27:24.000000Z", - starts_at: "2021-01-24T12:52:37.000000Z", - discount_upper_limit: 606, - description: "NXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ8", - name: "p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZO" + is_hidden: false, + is_disabled: true, + display_ends_at: "2024-01-01T04:51:29.000000Z", + display_starts_at: "2023-12-19T12:56:00.000000Z", + ends_at: "2020-01-25T17:00:23.000000Z", + starts_at: "2020-08-27T08:24:51.000000Z", + discount_upper_limit: 2265, + description: "kecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvC", + name: "pCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8" })); status = response.code; } catch (e) { @@ -12926,19 +13619,19 @@ test('Check UpdateCoupon | 45', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 8405.0, - code: "0zGq4PpZBc", - is_public: false, - is_hidden: false, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 2345.0, + code: "cd", + is_public: true, + is_hidden: true, is_disabled: true, - display_ends_at: "2023-08-26T05:56:22.000000Z", - display_starts_at: "2023-09-30T11:22:26.000000Z", - ends_at: "2023-01-31T10:52:46.000000Z", - starts_at: "2021-06-22T23:31:22.000000Z", - discount_upper_limit: 848, - description: "stD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7", - name: "5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz" + display_ends_at: "2022-01-25T22:26:12.000000Z", + display_starts_at: "2020-01-27T18:47:21.000000Z", + ends_at: "2023-07-17T16:34:48.000000Z", + starts_at: "2020-09-13T22:04:01.000000Z", + discount_upper_limit: 4885, + description: "1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQN", + name: "H3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsG" })); status = response.code; } catch (e) { @@ -12954,20 +13647,20 @@ test('Check UpdateCoupon | 46', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 9651.0, - usage_limit: 3352, - code: "fpT8lgG", + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 2030.0, + usage_limit: 3614, + code: "PtZOQ7w", is_public: true, is_hidden: false, is_disabled: false, - display_ends_at: "2021-06-02T05:42:42.000000Z", - display_starts_at: "2021-01-25T22:40:46.000000Z", - ends_at: "2022-03-01T13:27:34.000000Z", - starts_at: "2022-02-25T10:45:56.000000Z", - discount_upper_limit: 3159, - description: "SdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5c", - name: "GcBP5wA9GwSB8bfxMId7hFKERGvYa" + display_ends_at: "2020-08-09T06:07:33.000000Z", + display_starts_at: "2022-07-26T14:13:54.000000Z", + ends_at: "2022-10-02T01:58:02.000000Z", + starts_at: "2023-05-23T01:51:38.000000Z", + discount_upper_limit: 209, + description: "MzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5s", + name: "OcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNe" })); status = response.code; } catch (e) { @@ -12983,21 +13676,21 @@ test('Check UpdateCoupon | 47', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 9149.0, - min_amount: 2231, - usage_limit: 6653, - code: "bD1cIyw", - is_public: true, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 8824.0, + min_amount: 5682, + usage_limit: 3583, + code: "B", + is_public: false, is_hidden: false, is_disabled: true, - display_ends_at: "2023-07-03T17:15:20.000000Z", - display_starts_at: "2021-08-20T09:11:22.000000Z", - ends_at: "2021-06-13T20:21:16.000000Z", - starts_at: "2022-12-19T18:04:08.000000Z", - discount_upper_limit: 1549, - description: "cQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9TezTj3A085y5hWQ3gdeDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPv", - name: "tQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iH" + display_ends_at: "2021-08-26T15:14:52.000000Z", + display_starts_at: "2020-04-26T05:03:43.000000Z", + ends_at: "2020-03-19T14:35:15.000000Z", + starts_at: "2023-05-13T15:00:56.000000Z", + discount_upper_limit: 4194, + description: "lTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs", + name: "D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6" })); status = response.code; } catch (e) { @@ -13013,22 +13706,22 @@ test('Check UpdateCoupon | 48', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 4770.0, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 5367.0, is_shop_specified: false, - min_amount: 7922, - usage_limit: 9929, - code: "swPc2", - is_public: true, - is_hidden: false, - is_disabled: true, - display_ends_at: "2020-03-27T12:54:11.000000Z", - display_starts_at: "2020-05-10T02:22:04.000000Z", - ends_at: "2020-04-17T04:38:29.000000Z", - starts_at: "2022-03-25T04:16:14.000000Z", - discount_upper_limit: 4958, - description: "kU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNR", - name: "CHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDw" + min_amount: 522, + usage_limit: 947, + code: "jv", + is_public: false, + is_hidden: true, + is_disabled: false, + display_ends_at: "2022-12-21T03:52:49.000000Z", + display_starts_at: "2021-06-29T07:22:40.000000Z", + ends_at: "2023-06-08T17:17:20.000000Z", + starts_at: "2022-06-26T07:30:54.000000Z", + discount_upper_limit: 520, + description: "WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md", + name: "8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYw" })); status = response.code; } catch (e) { @@ -13044,23 +13737,23 @@ test('Check UpdateCoupon | 49', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 6342.0, - available_shop_ids: ["42761e86-170f-4746-a5dd-1166e55ee0a2", "da1330e3-754e-48ce-8c41-1d7ff794db93", "3f6cf7e6-fb07-49d4-b036-3e60ae980196", "678f86c7-1933-48ed-b29e-8453f9a41db1", "285bb3ba-1fb1-479c-9f80-01c8d1134c1b", "7b416a00-e792-402f-9744-192e78c7af69", "4fc6c6ce-da91-48c3-b25f-b0547fa396b6", "86db4725-51da-4f31-bb03-52084a666b85"], + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 3664.0, + available_shop_ids: ["99cf987e-da3a-45da-95b5-5fad8f958ade", "9a76d1c7-07db-4714-b96f-48892c7f1d82", "f8818ddf-c183-4959-9986-dea8ac560563", "180914e7-edd0-41d0-899a-3efcfe0e54ae"], is_shop_specified: true, - min_amount: 9374, - usage_limit: 2246, - code: "Wi9xNJq", - is_public: true, + min_amount: 6579, + usage_limit: 6318, + code: "chqik", + is_public: false, is_hidden: false, - is_disabled: true, - display_ends_at: "2021-02-22T21:43:44.000000Z", - display_starts_at: "2022-08-14T04:38:13.000000Z", - ends_at: "2023-08-01T15:33:49.000000Z", - starts_at: "2022-09-08T13:08:36.000000Z", - discount_upper_limit: 7305, - description: "G4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhv", - name: "p3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkr" + is_disabled: false, + display_ends_at: "2023-03-17T04:01:58.000000Z", + display_starts_at: "2023-01-02T11:21:04.000000Z", + ends_at: "2023-07-15T18:38:42.000000Z", + starts_at: "2020-07-09T19:15:58.000000Z", + discount_upper_limit: 5457, + description: "J7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78", + name: "CpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRr" })); status = response.code; } catch (e) { @@ -13076,24 +13769,24 @@ test('Check UpdateCoupon | 50', async () => { let status = 400; try { const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "0141503f-c0ce-43b5-953d-d98d85dd6745", - discount_percentage: 7309.0, - storage_id: "15dcc571-fa3b-4727-ae82-bd92b528c9ba", - available_shop_ids: ["6160df3a-d2a1-4b0d-9363-007aa169cba4", "405f6334-0db3-4aa3-9daa-795de6a959e4", "265693ac-b5a9-472f-82a3-b06d681948b2", "ec9dfab6-8506-4b8e-8f9a-503a3d7cd78f", "cb34a0f2-1a37-4960-86a4-102d93d03b45", "e255b237-eeef-4e78-98f7-0311f60f4509"], - is_shop_specified: false, - min_amount: 6385, - usage_limit: 2847, - code: "eP95WFsrDT", - is_public: true, + coupon_id: "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", + discount_percentage: 4465.0, + storage_id: "ce3bcc09-acfc-4779-b346-1ceff62df628", + available_shop_ids: ["1b9bda8d-b38a-4af2-9d52-685ef1c58318", "01966d81-08af-46e9-9c87-bd48f6730fe2", "3ea677e6-839c-4994-b4ce-f527763c799d", "24cd7a97-a737-49b7-bc45-ca04ac597b90", "1948f3a3-e32a-4589-9139-f206be16d483", "ce7d3695-4873-494b-8b11-e5de39d53829", "711576a0-ac9e-4c19-9d0d-7cd0caa0a41f", "37453a1b-af9f-4f26-b24c-9edfd5614e19", "e1553fd7-ab86-4654-88ad-4cd1202bf3eb"], + is_shop_specified: true, + min_amount: 9809, + usage_limit: 3094, + code: "TkmfS", + is_public: false, is_hidden: false, - is_disabled: false, - display_ends_at: "2024-02-03T06:31:48.000000Z", - display_starts_at: "2020-08-15T14:35:18.000000Z", - ends_at: "2021-10-31T14:42:36.000000Z", - starts_at: "2022-04-12T10:51:52.000000Z", - discount_upper_limit: 8652, - description: "Ax4xhJmPNb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8M", - name: "hwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnP" + is_disabled: true, + display_ends_at: "2023-07-03T10:11:19.000000Z", + display_starts_at: "2021-07-30T18:26:40.000000Z", + ends_at: "2022-09-30T10:55:01.000000Z", + starts_at: "2022-06-20T02:34:59.000000Z", + discount_upper_limit: 710, + description: "mTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLq", + name: "eRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWF" })); status = response.code; } catch (e) { diff --git a/src/request/CreateCampaign.ts b/src/request/CreateCampaign.ts index 374e6ff..d916cf8 100644 --- a/src/request/CreateCampaign.ts +++ b/src/request/CreateCampaign.ts @@ -23,9 +23,12 @@ class CreateCampaign implements Request { subject?: string, amount_based_point_rules?: Object[], product_based_point_rules?: Object[], + blacklisted_product_rules?: Object[], applicable_days_of_week?: number[], applicable_time_ranges?: Object[], applicable_shop_ids?: string[], + minimum_number_of_products?: number, + minimum_number_of_amount?: number, minimum_number_for_combination_purchase?: number, exist_in_each_product_groups?: boolean, max_point_amount?: number, @@ -50,9 +53,12 @@ class CreateCampaign implements Request { subject?: string, amount_based_point_rules?: Object[], product_based_point_rules?: Object[], + blacklisted_product_rules?: Object[], applicable_days_of_week?: number[], applicable_time_ranges?: Object[], applicable_shop_ids?: string[], + minimum_number_of_products?: number, + minimum_number_of_amount?: number, minimum_number_for_combination_purchase?: number, exist_in_each_product_groups?: boolean, max_point_amount?: number, @@ -85,9 +91,12 @@ class CreateCampaign implements Request { if (params.subject !== void 0) this.bodyParams.subject = params.subject; if (params.amount_based_point_rules !== void 0) this.bodyParams.amount_based_point_rules = params.amount_based_point_rules; if (params.product_based_point_rules !== void 0) this.bodyParams.product_based_point_rules = params.product_based_point_rules; + if (params.blacklisted_product_rules !== void 0) this.bodyParams.blacklisted_product_rules = params.blacklisted_product_rules; if (params.applicable_days_of_week !== void 0) this.bodyParams.applicable_days_of_week = params.applicable_days_of_week; if (params.applicable_time_ranges !== void 0) this.bodyParams.applicable_time_ranges = params.applicable_time_ranges; if (params.applicable_shop_ids !== void 0) this.bodyParams.applicable_shop_ids = params.applicable_shop_ids; + if (params.minimum_number_of_products !== void 0) this.bodyParams.minimum_number_of_products = params.minimum_number_of_products; + if (params.minimum_number_of_amount !== void 0) this.bodyParams.minimum_number_of_amount = params.minimum_number_of_amount; if (params.minimum_number_for_combination_purchase !== void 0) this.bodyParams.minimum_number_for_combination_purchase = params.minimum_number_for_combination_purchase; if (params.exist_in_each_product_groups !== void 0) this.bodyParams.exist_in_each_product_groups = params.exist_in_each_product_groups; if (params.max_point_amount !== void 0) this.bodyParams.max_point_amount = params.max_point_amount; diff --git a/src/request/UpdateCampaign.ts b/src/request/UpdateCampaign.ts index 67f5858..5fb82a2 100644 --- a/src/request/UpdateCampaign.ts +++ b/src/request/UpdateCampaign.ts @@ -21,9 +21,12 @@ class UpdateCampaign implements Request { subject?: string, amount_based_point_rules?: Object[], product_based_point_rules?: Object[], + blacklisted_product_rules?: Object[], applicable_days_of_week?: number[], applicable_time_ranges?: Object[], applicable_shop_ids?: string[], + minimum_number_of_products?: number, + minimum_number_of_amount?: number, minimum_number_for_combination_purchase?: number, exist_in_each_product_groups?: boolean, max_point_amount?: number, @@ -46,9 +49,12 @@ class UpdateCampaign implements Request { subject?: string, amount_based_point_rules?: Object[], product_based_point_rules?: Object[], + blacklisted_product_rules?: Object[], applicable_days_of_week?: number[], applicable_time_ranges?: Object[], applicable_shop_ids?: string[], + minimum_number_of_products?: number, + minimum_number_of_amount?: number, minimum_number_for_combination_purchase?: number, exist_in_each_product_groups?: boolean, max_point_amount?: number, @@ -72,9 +78,12 @@ class UpdateCampaign implements Request { if (params.subject !== void 0) this.bodyParams.subject = params.subject; if (params.amount_based_point_rules !== void 0) this.bodyParams.amount_based_point_rules = params.amount_based_point_rules; if (params.product_based_point_rules !== void 0) this.bodyParams.product_based_point_rules = params.product_based_point_rules; + if (params.blacklisted_product_rules !== void 0) this.bodyParams.blacklisted_product_rules = params.blacklisted_product_rules; if (params.applicable_days_of_week !== void 0) this.bodyParams.applicable_days_of_week = params.applicable_days_of_week; if (params.applicable_time_ranges !== void 0) this.bodyParams.applicable_time_ranges = params.applicable_time_ranges; if (params.applicable_shop_ids !== void 0) this.bodyParams.applicable_shop_ids = params.applicable_shop_ids; + if (params.minimum_number_of_products !== void 0) this.bodyParams.minimum_number_of_products = params.minimum_number_of_products; + if (params.minimum_number_of_amount !== void 0) this.bodyParams.minimum_number_of_amount = params.minimum_number_of_amount; if (params.minimum_number_for_combination_purchase !== void 0) this.bodyParams.minimum_number_for_combination_purchase = params.minimum_number_for_combination_purchase; if (params.exist_in_each_product_groups !== void 0) this.bodyParams.exist_in_each_product_groups = params.exist_in_each_product_groups; if (params.max_point_amount !== void 0) this.bodyParams.max_point_amount = params.max_point_amount; diff --git a/src/test/list_organizations.test.ts b/src/test/list_organizations.test.ts index b5e20e8..4e600ad 100644 --- a/src/test/list_organizations.test.ts +++ b/src/test/list_organizations.test.ts @@ -8,8 +8,6 @@ import { Response, ListOrganizations, PaginatedOrganizations, - SendEcho, - Echo, CreateOrganization, Organization, UpdateWebhook, diff --git a/src/test/send_echo_test.test.ts b/src/test/send_echo_test.test.ts index 7cd7cf3..e7ba2df 100644 --- a/src/test/send_echo_test.test.ts +++ b/src/test/send_echo_test.test.ts @@ -8,6 +8,8 @@ import { Response, SendEcho, Echo, + ListOrganizations, + PaginatedOrganizations, CreateOrganization, Organization, UpdateWebhook, From 33a17f166ca97f9d133c02900fe815b9244508e8 Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Thu, 7 Mar 2024 12:40:07 +0000 Subject: [PATCH 2/3] update error-response.csv --- docs/error-response.csv | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/error-response.csv b/docs/error-response.csv index 63c2c89..6cb1bc5 100644 --- a/docs/error-response.csv +++ b/docs/error-response.csv @@ -387,6 +387,7 @@ GET,/checks,403,unpermitted_admin_user,"この管理ユーザには権限があ ,,422,private_money_not_found,,Private money not found POST,/checks,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameter_only_merchants_can_attach_points_to_check,,Only merchants can attach points to check +,,400,invalid_parameter_bear_point_account_identification_item_not_unique,"ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます",Request parameters include either bear_point_account or bear_point_shop_id. ,,400,invalid_parameter_combination_usage_limit_and_is_onetime,,'usage_limit' can not be specified if 'is_onetime' is true. ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,400,invalid_parameter_expires_at,,'expires_at' must be in the future @@ -395,6 +396,7 @@ POST,/checks,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_ ,,422,account_private_money_is_not_issued_by_organization,,The account's private money is not issued by this organization ,,422,shop_account_not_found,,The shop account is not found ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,bear_point_account_not_found,"ポイントを負担する店舗アカウントが見つかりません",Bear point account not found. GET,/checks/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,422,account_private_money_is_not_issued_by_organization,,The account's private money is not issued by this organization @@ -750,7 +752,8 @@ GET,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザ ,,403,forbidden,,Forbidden ,,422,private_money_not_found,,Private money not found ,,422,user_device_not_found,,The user-device not found -POST,/user-devices/:uuid/banks/topup,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外部サービス起因により、チャージに失敗しました",Failure to topup due to external services of the bank +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,forbidden,,Forbidden ,,403,user_bank_disabled_error,"現在、このユーザーは銀行からのチャージは利用できません",Topup from this user's bank have now been stopped. ,,404,user_bank_not_found,"登録された銀行が見つかりません",Bank not found @@ -789,6 +792,5 @@ POST,/user-devices/:uuid/banks/topup,403,unpermitted_admin_user,"この管理ユ ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,paytree_disabled_private_money,"このマネーは銀行から引き落とし出来ません",This money cannot be charged from the bank ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available -,,503,paytree_request_failure,"銀行口座の残高不足または、銀行の外部サービス起因により、チャージに失敗しました",Failure to topup due to external services of the bank ,,503,temporarily_unavailable,,Service Unavailable ,,503,incomplete_configration_for_organization_bank,"現状、このマネーは銀行からのチャージを行えません。システム管理者へお問合せ下さい","Currently, this money cannot be topup from this bank. Please contact your system administrator." From a87d66d09e8d38cb622f3d43d5f56cb9380773cc Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Thu, 7 Mar 2024 12:40:07 +0000 Subject: [PATCH 3/3] 1.4.10 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index fdb8b10..c116fe6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@pokepay/pokepay-partner-sdk", - "version": "1.4.9", + "version": "1.4.10", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 5370534..14fb1b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pokepay/pokepay-partner-sdk", - "version": "1.4.9", + "version": "1.4.10", "description": "Pokepay Partner SDK for NodeJS", "main": "dist/index.js", "types": "dist/index.d.ts",