From 9eefbcc79523f6bfc77b399a5934e576ac080d4b Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Thu, 19 Dec 2024 12:14:34 +0000 Subject: [PATCH 1/3] generate --- docs/README.md | 174 +- docs/account.md | 28 +- docs/bank_pay.md | 103 +- docs/bill.md | 258 +- docs/bulk.md | 18 +- docs/campaign.md | 247 +- docs/cashtray.md | 187 +- docs/check.md | 125 +- docs/coupon.md | 126 +- docs/customer.md | 177 +- docs/event.md | 76 +- docs/organization.md | 50 +- docs/private_money.md | 40 +- docs/responses.md | 752 +- docs/seven_bank_atm_session.md | 40 + docs/shop.md | 109 +- docs/transaction.md | 706 +- docs/transfer.md | 86 +- docs/user.md | 26 - docs/user_device.md | 28 +- docs/webhook.md | 42 +- partner.yaml | 642 +- pokepay/__init__.py | 49 +- pokepay/request/activate_user_device.py | 15 + pokepay/request/bulk_create_transaction.py | 2 + pokepay/request/cancel_cashtray.py | 2 + pokepay/request/create_bank.py | 17 + .../request/create_bank_topup_transaction.py | 18 + pokepay/request/create_bill.py | 2 + pokepay/request/create_campaign.py | 2 + pokepay/request/create_cashtray.py | 2 + pokepay/request/create_check.py | 2 + pokepay/request/create_coupon.py | 19 + pokepay/request/create_cpm_transaction.py | 2 + pokepay/request/create_customer_account.py | 2 + .../request/create_exchange_transaction.py | 2 + .../request/create_external_transaction.py | 6 +- pokepay/request/create_organization.py | 2 + pokepay/request/create_payment_transaction.py | 2 + .../create_payment_transaction_with_bill.py | 16 + pokepay/request/create_shop.py | 2 + pokepay/request/create_shop_v2.py | 2 + pokepay/request/create_topup_transaction.py | 2 + .../create_topup_transaction_with_check.py | 6 +- pokepay/request/create_transaction.py | 2 + .../create_transaction_with_cashtray.py | 16 + .../request/create_transfer_transaction.py | 2 + pokepay/request/create_user_account.py | 2 + pokepay/request/create_user_device.py | 15 + pokepay/request/create_webhook.py | 16 + pokepay/request/delete_account.py | 2 + pokepay/request/delete_bank.py | 15 + pokepay/request/delete_webhook.py | 15 + pokepay/request/get_account.py | 2 + .../request/get_account_transfer_summary.py | 2 + pokepay/request/get_bill.py | 15 + pokepay/request/get_bulk_transaction.py | 2 + pokepay/request/get_campaign.py | 2 + pokepay/request/get_cashtray.py | 2 + pokepay/request/get_check.py | 15 + pokepay/request/get_coupon.py | 15 + pokepay/request/get_cpm_token.py | 2 + pokepay/request/get_customer_accounts.py | 2 + .../get_external_transaction_by_request_id.py | 15 + pokepay/request/get_ping.py | 2 + ...et_private_money_organization_summaries.py | 2 + pokepay/request/get_private_money_summary.py | 2 + pokepay/request/get_private_moneys.py | 2 + pokepay/request/get_seven_bank_atm_session.py | 15 + pokepay/request/get_shop.py | 2 + pokepay/request/get_shop_accounts.py | 2 + pokepay/request/get_transaction.py | 2 + .../request/get_transaction_by_request_id.py | 2 + pokepay/request/get_user.py | 2 + pokepay/request/get_user_device.py | 15 + pokepay/request/list_account_balances.py | 2 + .../request/list_account_expired_balances.py | 2 + pokepay/request/list_banks.py | 15 + pokepay/request/list_bill_transactions.py | 15 + pokepay/request/list_bills.py | 2 + pokepay/request/list_bulk_transaction_jobs.py | 2 + pokepay/request/list_campaigns.py | 2 + pokepay/request/list_checks.py | 15 + pokepay/request/list_coupons.py | 15 + pokepay/request/list_customer_transactions.py | 2 + pokepay/request/list_organizations.py | 15 + pokepay/request/list_shops.py | 2 + pokepay/request/list_transactions.py | 2 + pokepay/request/list_transactions_v2.py | 2 + pokepay/request/list_transfers.py | 2 + pokepay/request/list_transfers_v2.py | 2 + pokepay/request/list_user_accounts.py | 2 + pokepay/request/list_webhooks.py | 15 + .../request/refund_external_transaction.py | 6 +- pokepay/request/refund_transaction.py | 2 + pokepay/request/request_user_stats.py | 6 +- pokepay/request/send_echo.py | 2 + pokepay/request/terminate_user_stats.py | 15 + pokepay/request/update_account.py | 2 + pokepay/request/update_bill.py | 2 + pokepay/request/update_campaign.py | 2 + pokepay/request/update_cashtray.py | 2 + pokepay/request/update_check.py | 15 + pokepay/request/update_coupon.py | 15 + pokepay/request/update_customer_account.py | 2 + pokepay/request/update_shop.py | 2 + pokepay/request/update_webhook.py | 15 + pokepay/response/bank.py | 45 + pokepay/response/bank_deleted.py | 11 + pokepay/response/bank_registering_info.py | 17 + pokepay/response/banks.py | 17 + pokepay/response/bill_transaction.py | 17 + pokepay/response/campaign.py | 12 + pokepay/response/check.py | 4 + pokepay/response/coupon.py | 85 + pokepay/response/coupon_detail.py | 97 + ...tion.py => external_transaction_detail.py} | 52 +- pokepay/response/organization_summary.py | 8 + .../organization_worker_task_webhook.py | 33 + .../response/paginated_bill_transaction.py | 29 + pokepay/response/paginated_checks.py | 21 + pokepay/response/paginated_coupons.py | 21 + ...inated_organization_worker_task_webhook.py | 21 + pokepay/response/paginated_organizations.py | 21 + pokepay/response/private_money.py | 4 + pokepay/response/private_money_summary.py | 8 + pokepay/response/product.py | 4 + pokepay/response/seven_bank_atm_session.py | 49 + pokepay/response/shop_with_accounts.py | 4 + pokepay/response/shop_with_metadata.py | 4 + pokepay/response/transaction.py | 8 + pokepay/response/transaction_detail.py | 8 + pokepay/response/user_device.py | 25 + pokepay/response/user_stats_operation.py | 6 +- tests/create_organization_test.py | 59 + tests/list_organizations.py | 24 + tests/send_echo_test.py | 19 + tests/test_request_validation.py | 12256 ++++++++++++---- tests/webhook_tests.py | 51 + 139 files changed, 13459 insertions(+), 4204 deletions(-) create mode 100644 docs/seven_bank_atm_session.md create mode 100644 pokepay/request/activate_user_device.py create mode 100644 pokepay/request/create_bank.py create mode 100644 pokepay/request/create_bank_topup_transaction.py create mode 100644 pokepay/request/create_coupon.py create mode 100644 pokepay/request/create_payment_transaction_with_bill.py create mode 100644 pokepay/request/create_transaction_with_cashtray.py create mode 100644 pokepay/request/create_user_device.py create mode 100644 pokepay/request/create_webhook.py create mode 100644 pokepay/request/delete_bank.py create mode 100644 pokepay/request/delete_webhook.py create mode 100644 pokepay/request/get_bill.py create mode 100644 pokepay/request/get_check.py create mode 100644 pokepay/request/get_coupon.py create mode 100644 pokepay/request/get_external_transaction_by_request_id.py create mode 100644 pokepay/request/get_seven_bank_atm_session.py create mode 100644 pokepay/request/get_user_device.py create mode 100644 pokepay/request/list_banks.py create mode 100644 pokepay/request/list_bill_transactions.py create mode 100644 pokepay/request/list_checks.py create mode 100644 pokepay/request/list_coupons.py create mode 100644 pokepay/request/list_organizations.py create mode 100644 pokepay/request/list_webhooks.py create mode 100644 pokepay/request/terminate_user_stats.py create mode 100644 pokepay/request/update_check.py create mode 100644 pokepay/request/update_coupon.py create mode 100644 pokepay/request/update_webhook.py create mode 100644 pokepay/response/bank.py create mode 100644 pokepay/response/bank_deleted.py create mode 100644 pokepay/response/bank_registering_info.py create mode 100644 pokepay/response/banks.py create mode 100644 pokepay/response/bill_transaction.py create mode 100644 pokepay/response/coupon.py create mode 100644 pokepay/response/coupon_detail.py rename pokepay/response/{user_transaction.py => external_transaction_detail.py} (52%) create mode 100644 pokepay/response/organization_worker_task_webhook.py create mode 100644 pokepay/response/paginated_bill_transaction.py create mode 100644 pokepay/response/paginated_checks.py create mode 100644 pokepay/response/paginated_coupons.py create mode 100644 pokepay/response/paginated_organization_worker_task_webhook.py create mode 100644 pokepay/response/paginated_organizations.py create mode 100644 pokepay/response/seven_bank_atm_session.py create mode 100644 pokepay/response/user_device.py create mode 100644 tests/create_organization_test.py create mode 100644 tests/list_organizations.py create mode 100644 tests/send_echo_test.py create mode 100644 tests/webhook_tests.py diff --git a/docs/README.md b/docs/README.md index 65d5ba9..4379d78 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,17 +1,18 @@ -# Partner API SDK for NodeJS +# Partner API SDK for Python ## Installation -npmからインストールすることができます。 +pipからインストールすることができます。 ``` -$ npm install --save pokepay-partner-sdk +$ gem install pokepay_partner_python_sdk + +# ローカルからインストールする場合 +$ gem install -e /path/to/pokepay_partner_python_sdk ``` -プロジェクトにて、以下のようにロードできます。 +ロードパスの通ったところにライブラリが配置されていれば、以下のようにロードできます。 -```typescript -import ppsdk from "pokepay-partner-sdk"; -// もしくは -import { Client, SendEcho } from "pokepay-partner-sdk"; +```python +import pokepay ``` ## Getting started @@ -23,14 +24,27 @@ import { Client, SendEcho } from "pokepay-partner-sdk"; - リクエストオブジェクトを作り、`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); +```python +import pokepay +from pokepay.client import Client + +c = Client('/path/to/config.ini') +req = pokepay.SendEcho('Hello, world!') +res = c.send(req) ``` -レスポンスオブジェクト内にステータスコード、JSONをパースしたハッシュマップ、さらにレスポンス内容のオブジェクトが含まれています。 +レスポンスオブジェクト内にステータスコード、レスポンスのJSONをパースした辞書オブジェクト、実行時間などが含まれています。 + +```python +res.status_code +# => 200 + +res.body +# => {'status': 'ok', 'message': 'Hello, world!'} + +res.elapsed.microseconds +# => 800750 +``` ## Settings @@ -49,126 +63,26 @@ SDKプロジェクトルートに `config.ini.sample` というファイルが また、この設定ファイルには認証に必要な情報が含まれるため、ファイルの管理・取り扱いに十分注意してください。 +さらに、オプショナルでタイムゾーン、タイムアウト時間を設定できます。 + +- `TIMEZONE`: タイムゾーンID。デフォルト値は`Asia/Tokyo` +- `CONNECTTIMEOUT`: 接続タイムアウト時間(秒)。デフォルトは5秒 +- `TIMEOUT`: 読み込みタイムアウト時間(秒)。デフォルトは5秒 + 設定ファイル記述例(`config.ini.sample`) ``` +[global] + 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); - } - } -} +TIMEZONE = Asia/Tokyo +CONNECTTIMEOUT = 10 +TIMEOUT = 10 ``` ## API Operations @@ -178,6 +92,7 @@ try { - [ListTransactions](./transaction.md#list-transactions): 【廃止】取引履歴を取得する - [CreateTransaction](./transaction.md#create-transaction): 【廃止】チャージする - [ListTransactionsV2](./transaction.md#list-transactions-v2): 取引履歴を取得する +- [ListBillTransactions](./transaction.md#list-bill-transactions): 支払い取引履歴を取得する - [CreateTopupTransaction](./transaction.md#create-topup-transaction): チャージする - [CreatePaymentTransaction](./transaction.md#create-payment-transaction): 支払いする - [CreateCpmTransaction](./transaction.md#create-cpm-transaction): CPMトークンによる取引作成 @@ -189,6 +104,7 @@ try { - [GetBulkTransaction](./transaction.md#get-bulk-transaction): バルク取引ジョブの実行状況を取得する - [ListBulkTransactionJobs](./transaction.md#list-bulk-transaction-jobs): バルク取引ジョブの詳細情報一覧を取得する - [RequestUserStats](./transaction.md#request-user-stats): 指定期間内の顧客が行った取引の統計情報をCSVでダウンロードする +- [TerminateUserStats](./transaction.md#terminate-user-stats): RequestUserStatsのタスクを強制終了する ### Transfer - [GetAccountTransferSummary](./transfer.md#get-account-transfer-summary): @@ -205,9 +121,12 @@ try { ### Bill - [ListBills](./bill.md#list-bills): 支払いQRコード一覧を表示する - [CreateBill](./bill.md#create-bill): 支払いQRコードの発行 +- [GetBill](./bill.md#get-bill): 支払いQRコードの表示 - [UpdateBill](./bill.md#update-bill): 支払いQRコードの更新 +- [CreatePaymentTransactionWithBill](./bill.md#create-payment-transaction-with-bill): 支払いQRコードを読み取ることで支払いをする ### Cashtray +- [CreateTransactionWithCashtray](./cashtray.md#create-transaction-with-cashtray): CashtrayQRコードを読み取ることで取引する - [CreateCashtray](./cashtray.md#create-cashtray): Cashtrayを作る - [CancelCashtray](./cashtray.md#cancel-cashtray): Cashtrayを無効化する - [GetCashtray](./cashtray.md#get-cashtray): Cashtrayの情報を取得する @@ -237,7 +156,6 @@ try { - [UpdateShop](./shop.md#update-shop): 店舗情報を更新する ### User -- [GetUser](./user.md#get-user): ### Account - [ListUserAccounts](./account.md#list-user-accounts): エンドユーザー、店舗ユーザーのウォレット一覧を表示する @@ -280,7 +198,11 @@ try { - [ActivateUserDevice](./user_device.md#activate-user-device): デバイスの有効化 ### BankPay +- [DeleteBank](./bank_pay.md#delete-bank): 銀行口座の削除 - [ListBanks](./bank_pay.md#list-banks): 登録した銀行の一覧 - [CreateBank](./bank_pay.md#create-bank): 銀行口座の登録 - [CreateBankTopupTransaction](./bank_pay.md#create-bank-topup-transaction): 銀行からのチャージ +### SevenBankATMSession +- [GetSevenBankATMSession](./seven_bank_atm_session.md#get-seven-bank-atm-session): セブン銀行ATMセッションの取得 + diff --git a/docs/account.md b/docs/account.md index e70274f..e963fd9 100644 --- a/docs/account.md +++ b/docs/account.md @@ -4,12 +4,12 @@ ## ListUserAccounts: エンドユーザー、店舗ユーザーのウォレット一覧を表示する ユーザーIDを指定してそのユーザーのウォレット一覧を取得します。 -```typescript -const response: Response = await client.send(new ListUserAccounts({ - user_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ユーザーID - page: 637, // ページ番号 - per_page: 5874 // 1ページ分の取引数 -})); +```PYTHON +response = client.send(pp.ListUserAccounts( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_id: ユーザーID + page=272, # ページ番号 + per_page=710 # 1ページ分の取引数 +)) ``` @@ -68,14 +68,14 @@ const response: Response = await client.send(new ListUs ## 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: "IP", // ウォレット名 - external_id: "oWhsZ81p0D8THD4dpuhxNvhxjPfdLCM", // 外部ID - metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" // ウォレットに付加するメタデータ -})); +```PYTHON +response = client.send(pp.CreateUserAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_id: ユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + name="7OqefuC0zsB8aQbgel1VXLZNhM7VCGfzH0EqAidHGV4baZPNRUSJ9iQNhB3KMhlAuhO2DrrEN6v7h6DIeIXBVaS0Zi07XrJykFEWCqS7fIGsgSUetvzhcyY8O4aW8dVGclxW2nJI1LDT3BhMLUADblZz6ydgd6gveWK49xDzlQxtC3xLL1ERUl6NhqK", # ウォレット名 + external_id="kD", # 外部ID + metadata="{\"key1\":\"foo\",\"key2\":\"bar\"}" # ウォレットに付加するメタデータ +)) ``` diff --git a/docs/bank_pay.md b/docs/bank_pay.md index 91c7d24..6d60598 100644 --- a/docs/bank_pay.md +++ b/docs/bank_pay.md @@ -2,15 +2,62 @@ BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + +## DeleteBank: 銀行口座の削除 +銀行口座を削除します + +```PYTHON +response = client.send(pp.DeleteBank( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_device_id: デバイスID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +)) +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`bank_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[BankDeleted](./responses.md#bank-deleted) +を返します + + + +--- + + ## 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" -})); +```PYTHON +response = client.send(pp.ListBanks( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_device_id: デバイスID + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +)) ``` @@ -57,15 +104,15 @@ const response: Response = await client.send(new ListBanks({ アプリの場合は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: "suth9pSzmq@VAxW.com", // ユーザーのメールアドレス - birthdate: "19901142" // 生年月日 -})); +```PYTHON +response = client.send(pp.CreateBank( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_device_id: デバイスID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + "", # callback_url: コールバックURL + "ポケペイタロウ", # kana: ユーザーの氏名 (片仮名で指定) + email="bFWlBc9nMo@uBhD.com", # ユーザーのメールアドレス + birthdate="19901142" # 生年月日 +)) ``` @@ -153,14 +200,15 @@ const response: Response = await client.send(new CreateBank ## 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: 8244, // チャージ金額 - bank_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 銀行ID - request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID -})); +```PYTHON +response = client.send(pp.CreateBankTopupTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_device_id: デバイスID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + 9012, # amount: チャージ金額 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # bank_id: 銀行ID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # request_id: リクエストID + receiver_user_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # 受け取りユーザーID (デフォルトは自身) +)) ``` @@ -203,6 +251,17 @@ const response: Response = await client.send(new CreateBankTo +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`receiver_user_id`** + + + ```json { "type": "string", diff --git a/docs/bill.md b/docs/bill.md index bb182ba..5ddd5e7 100644 --- a/docs/bill.md +++ b/docs/bill.md @@ -5,22 +5,22 @@ ## ListBills: 支払いQRコード一覧を表示する 支払いQRコード一覧を表示します。 -```typescript -const response: Response = await client.send(new ListBills({ - page: 6268, // ページ番号 - per_page: 5896, // 1ページの表示数 - bill_id: "Lw9", // 支払いQRコードのID - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - organization_code: "PX", // 組織コード - description: "test bill", // 取引説明文 - created_from: "2020-04-24T11:52:40.000000Z", // 作成日時(起点) - created_to: "2023-06-14T18:59:50.000000Z", // 作成日時(終点) - shop_name: "bill test shop1", // 店舗名 - shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - lower_limit_amount: 5836, // 金額の範囲によるフィルタ(下限) - upper_limit_amount: 6006, // 金額の範囲によるフィルタ(上限) - is_disabled: false // 支払いQRコードが無効化されているかどうか -})); +```PYTHON +response = client.send(pp.ListBills( + page=7446, # ページ番号 + per_page=5421, # 1ページの表示数 + bill_id="W0eFslSf8N", # 支払いQRコードのID + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + organization_code="--Ejp--E5m5j", # 組織コード + description="test bill", # 取引説明文 + created_from="2023-02-20T20:48:36.000000Z", # 作成日時(起点) + created_to="2022-09-20T21:42:21.000000Z", # 作成日時(終点) + shop_name="bill test shop1", # 店舗名 + shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID + lower_limit_amount=134, # 金額の範囲によるフィルタ(下限) + upper_limit_amount=2440, # 金額の範囲によるフィルタ(上限) + is_disabled=False # 支払いQRコードが無効化されているかどうか +)) ``` @@ -207,13 +207,13 @@ const response: Response = await client.send(new ListBills({ ## 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: 990.0, // 支払い額 - description: "test bill" // 説明文(アプリ上で取引の説明文として表示される) -})); +```PYTHON +response = client.send(pp.CreateBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: 支払いマネーのマネーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 支払い先(受け取り人)の店舗ID + amount=5556.0, # 支払い額 + description="test bill" # 説明文(アプリ上で取引の説明文として表示される) +)) ``` @@ -223,6 +223,8 @@ const response: Response = await client.send(new CreateBill({ 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 +また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 + ```json { @@ -274,9 +276,10 @@ const response: Response = await client.send(new CreateBill({ ### Error Responses |status|type|ja|en| |---|---|---|---| +|400|invalid_parameter_bill_amount_or_range_exceeding_transfer_limit|支払いQRコードの金額がマネーの取引可能金額の上限を超えています|The input amount is exceeding the private money's limit for transfer| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|shop_account_not_found||The shop account is not found| -|422|private_money_not_found||Private money not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| |422|account_closed|アカウントは退会しています|The account is closed| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| @@ -284,6 +287,42 @@ const response: Response = await client.send(new CreateBill({ +--- + + + +## GetBill: 支払いQRコードの表示 +支払いQRコードの内容を表示します。 + +```PYTHON +response = client.send(pp.GetBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # bill_id: 支払いQRコードのID +)) +``` + + + +### Parameters +**`bill_id`** + + +表示する支払いQRコードのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Bill](./responses.md#bill) +を返します + + + --- @@ -291,13 +330,13 @@ const response: Response = await client.send(new CreateBill({ ## UpdateBill: 支払いQRコードの更新 支払いQRコードの内容を更新します。パラメータは全て省略可能で、指定したもののみ更新されます。 -```typescript -const response: Response = await client.send(new UpdateBill({ - bill_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払いQRコードのID - amount: 4136.0, // 支払い額 - description: "test bill", // 説明文 - is_disabled: false // 無効化されているかどうか -})); +```PYTHON +response = client.send(pp.UpdateBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # bill_id: 支払いQRコードのID + amount=7306.0, # 支払い額 + description="test bill", # 説明文 + is_disabled=False # 無効化されているかどうか +)) ``` @@ -318,7 +357,7 @@ const response: Response = await client.send(new UpdateBill({ **`amount`** -支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 +支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 ```json { @@ -362,4 +401,157 @@ const response: Response = await client.send(new UpdateBill({ --- + +## CreatePaymentTransactionWithBill: 支払いQRコードを読み取ることで支払いをする +通常支払いQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバが支払いQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際の支払い取引をリクエストすることになります。 + +エンドユーザーから受け取った支払いQRコードのIDをエンドユーザーIDと共に渡すことで支払い取引が作られます。 +支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 + + +```PYTHON +response = client.send(pp.CreatePaymentTransactionWithBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # bill_id: 支払いQRコードのID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーのID + metadata="{\"key\":\"value\"}", # 取引メタデータ + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # リクエストID + strategy="point-preferred" # 支払い時の残高消費方式 +)) +``` + + + +### Parameters +**`bill_id`** + + +支払いQRコードのIDです。 + +QRコード生成時に送金先店舗のウォレット情報や、支払い金額などが登録されています。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +支払いを行うエンドユーザーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`metadata`** + + +取引作成時に指定されるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`strategy`** + + +支払い時に残高がどのように消費されるかを指定します。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|disabled_bill|支払いQRコードが無効です|Bill is disabled| +|422|customer_user_not_found||The customer user is not found| +|422|bill_not_found|支払いQRコードが見つかりません|Bill not found| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + diff --git a/docs/bulk.md b/docs/bulk.md index 48752b0..2e685e6 100644 --- a/docs/bulk.md +++ b/docs/bulk.md @@ -4,14 +4,14 @@ ## BulkCreateTransaction: CSVファイル一括取引 CSVファイルから一括取引をします。 -```typescript -const response: Response = await client.send(new BulkCreateTransaction({ - name: "GSOhV764tKT9oH", // 一括取引タスク名 - content: "jnPne51Y", // 取引する情報のCSV - request_id: "ZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZ", // リクエストID - description: "TsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35Efmr", // 一括取引の説明 - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID -})); +```PYTHON +response = client.send(pp.BulkCreateTransaction( + "b5", # name: 一括取引タスク名 + "bsI", # content: 取引する情報のCSV + "mY7PcHPZH7mHIXsOqC2xcKBYhL1xCfnaEpDL", # request_id: リクエストID + description="NgoBzsuiKajpcQf4nuECfdVUoATZ0pZ1FEusk3svdOIWNVHFftM1EZPsd7jOCTvYgQYDODNTX3YU3qGQBWGDfb1wlkuiN7kKWKFo", # 一括取引の説明 + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # マネーID +)) ``` @@ -110,7 +110,7 @@ const response: Response = await client.send(new BulkCreateTran |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |403|organization_not_issuer|発行体以外に許可されていない操作です|Unpermitted operation except for issuer organizations.| |409|NULL|NULL|NULL| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|bulk_transaction_invalid_csv_format|入力されたCSVデータに誤りがあります|Invalid csv format| diff --git a/docs/campaign.md b/docs/campaign.md index b57d01f..cf52d4f 100644 --- a/docs/campaign.md +++ b/docs/campaign.md @@ -6,15 +6,15 @@ 発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 閲覧権限がない場合は 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: "2022-04-17T10:22:44.000000Z", // 指定された日時以降に適用可能期間が含まれているか - available_to: "2020-02-16T18:11:27.000000Z", // 指定された日時以前に適用可能期間が含まれているか - page: 1, // ページ番号 - per_page: 20 // 1ページ分の取得数 -})); +```PYTHON +response = client.send(pp.ListCampaigns( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + is_ongoing=True, # 現在適用可能なキャンペーンかどうか + available_from="2022-11-12T15:47:17.000000Z", # 指定された日時以降に適用可能期間が含まれているか + available_to="2024-06-12T02:10:51.000000Z", # 指定された日時以前に適用可能期間が含まれているか + page=1, # ページ番号 + per_page=20 # 1ページ分の取得数 +)) ``` @@ -108,6 +108,7 @@ const response: Response = await client.send(new ListCampaig |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|503|temporarily_unavailable||Service Unavailable| @@ -119,22 +120,22 @@ const response: Response = await client.send(new ListCampaig ポイント付与キャンペーンを作成します。 -```typescript -const response: Response = await client.send(new CreateCampaign({ - name: "FWMml5EKRiDsWg9ZcujQMFmb4vZ2", // キャンペーン名 - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - starts_at: "2022-01-02T00:20:43.000000Z", // キャンペーン開始日時 - ends_at: "2022-02-12T08:10:50.000000Z", // キャンペーン終了日時 - priority: 3366, // キャンペーンの適用優先度 - event: "payment", // イベント種別 - bear_point_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント負担先店舗ID - description: "HzNm8wdK6sB9HsuClaKx3AfzVa9lboQs", // キャンペーンの説明文 - status: "enabled", // キャンペーン作成時の状態 - point_expires_at: "2024-03-11T03:19:42.000000Z", // ポイント有効期限(絶対日時指定) - point_expires_in_days: 6554, // ポイント有効期限(相対日数指定) - is_exclusive: false, // キャンペーンの重複設定 - subject: "money", // ポイント付与の対象金額の種別 - amount_based_point_rules: [{ +```PYTHON +response = client.send(pp.CreateCampaign( + "9tuL5LH4EHPGJy8ZSoJ1krFHQyhzGXerHPOPDvrwRgeSOaGF6stofVWAQmmxPEjbZK4rVxAUW7FWHkKwdg6799FNaTUuVqVNtvvxMPy8uYVQrlAwBlTLDHylYVoU0Lud9b", # name: キャンペーン名 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + "2023-06-17T01:53:57.000000Z", # starts_at: キャンペーン開始日時 + "2022-08-18T02:00:06.000000Z", # ends_at: キャンペーン終了日時 + 4685, # priority: キャンペーンの適用優先度 + "topup", # event: イベント種別 + bear_point_shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント負担先店舗ID + description="M8UnuwQ7jNoaulXZjgrVDfW2ufNp0gAs9phyFh2aSmdruAKFNN9YCEWSULZdpylXeF6qvGwUl7ATMaf3NqLOcKmTPNREiEdfOxleMzyqb14XnQoYrg3WK0gxDGSVD8anN0", # キャンペーンの説明文 + status="enabled", # キャンペーン作成時の状態 + point_expires_at="2020-10-09T18:35:24.000000Z", # ポイント有効期限(絶対日時指定) + point_expires_in_days=9305, # ポイント有効期限(相対日数指定) + is_exclusive=False, # キャンペーンの重複設定 + subject="money", # ポイント付与の対象金額の種別 + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, @@ -149,32 +150,38 @@ const response: Response = await client.send(new CreateCampaign({ "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 -}], // 取引金額ベースのポイント付与ルール - product_based_point_rules: [{ +}], # 取引金額ベースのポイント付与ルール + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, + "is_multiply_by_count": True, "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, + "is_multiply_by_count": True, "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, + "is_multiply_by_count": True, "required_count": 2 -}], // 商品情報ベースのポイント付与ルール - blacklisted_product_rules: [{ +}], # 商品情報ベースのポイント付与ルール + blacklisted_product_rules=[{ "product_code": "4912345678904", "classification_code": "c123" -}], // 商品情報ベースのキャンペーンで除外対象にする商品リスト - applicable_days_of_week: [4, 0, 1], // キャンペーンを適用する曜日 (複数指定) - applicable_time_ranges: [{ +}, { + "product_code": "4912345678904", + "classification_code": "c123" +}, { + "product_code": "4912345678904", + "classification_code": "c123" +}], # 商品情報ベースのキャンペーンで除外対象にする商品リスト + applicable_days_of_week=[6], # キャンペーンを適用する曜日 (複数指定) + applicable_time_ranges=[{ "from": "12:00", "to": "23:59" }, { @@ -183,25 +190,26 @@ const response: Response = await client.send(new CreateCampaign({ }, { "from": "12:00", "to": "23:59" -}], // キャンペーンを適用する時間帯 (複数指定) - applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト - minimum_number_of_products: 423, // キャンペーンを適用する1会計内の商品個数の下限 - minimum_number_of_amount: 5068, // キャンペーンを適用する1会計内の商品総額の下限 - minimum_number_for_combination_purchase: 9934, // 複数種類の商品を同時購入するときの商品種別数の下限 - exist_in_each_product_groups: false, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - max_point_amount: 626, // キャンペーンによって付与されるポイントの上限 - max_total_point_amount: 8669, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 - dest_private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント付与先となるマネーID - applicable_account_metadata: { +}], # キャンペーンを適用する時間帯 (複数指定) + applicable_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象となる店舗IDのリスト + blacklisted_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + minimum_number_of_products=9011, # キャンペーンを適用する1会計内の商品個数の下限 + minimum_number_of_amount=3293, # キャンペーンを適用する1会計内の商品総額の下限 + minimum_number_for_combination_purchase=4688, # 複数種類の商品を同時購入するときの商品種別数の下限 + exist_in_each_product_groups=False, # 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + max_point_amount=4493, # キャンペーンによって付与されるポイントの上限 + max_total_point_amount=2172, # キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + dest_private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント付与先となるマネーID + applicable_account_metadata={ "key": "sex", "value": "male" -}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - applicable_transaction_metadata: { +}, # ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + applicable_transaction_metadata={ "key": "rank", "value": "bronze" -}, // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - budget_caps_amount: 445075235 // キャンペーン予算上限 -})); +}, # 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + budget_caps_amount=759867114 # キャンペーン予算上限 +)) ``` @@ -571,6 +579,23 @@ fromとtoは両方必要です。 } ``` +**`blacklisted_shop_ids`** + + +キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 +このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 +blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + **`minimum_number_of_products`** @@ -913,11 +938,11 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 |400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|campaign_overlaps|同期間に開催されるキャンペーン間で優先度が重複してます|The campaign period overlaps under the same private-money / type / priority| -|422|shop_account_not_found||The shop account is not found| -|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|campaign_period_overlaps|同期間に開催されるキャンペーン間で優先度が重複してます|The campaign period overlaps under the same private-money / type / priority| |422|campaign_invalid_period||Invalid campaign period starts_at later than ends_at| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -930,10 +955,10 @@ IDを指定してキャンペーンを取得します。 発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 閲覧権限がない場合は unpermitted_admin_user エラー(422)が返ります。 -```typescript -const response: Response = await client.send(new GetCampaign({ - campaign_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // キャンペーンID -})); +```PYTHON +response = client.send(pp.GetCampaign( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # campaign_id: キャンペーンID +)) ``` @@ -969,55 +994,39 @@ const response: Response = await client.send(new GetCampaign({ ポイント付与キャンペーンを更新します。 -```typescript -const response: Response = await client.send(new UpdateCampaign({ - campaign_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // キャンペーンID - name: "lEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Ua", // キャンペーン名 - starts_at: "2024-02-27T04:19:25.000000Z", // キャンペーン開始日時 - ends_at: "2023-09-20T09:15:04.000000Z", // キャンペーン終了日時 - priority: 5453, // キャンペーンの適用優先度 - event: "payment", // イベント種別 - description: "eeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T", // キャンペーンの説明文 - status: "enabled", // キャンペーン作成時の状態 - point_expires_at: "2020-04-06T09:47:28.000000Z", // ポイント有効期限(絶対日時指定) - point_expires_in_days: 7266, // ポイント有効期限(相対日数指定) - is_exclusive: false, // キャンペーンの重複設定 - subject: "money", // ポイント付与の対象金額の種別 - amount_based_point_rules: [{ +```PYTHON +response = client.send(pp.UpdateCampaign( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # campaign_id: キャンペーンID + name="1BcnwfTRLJa4uoIhpR40nORwuCknsFuOeDw3ETEoYbDEhr0AwKkiQOHCQCIIRDiJ5EWSps1CcPm4CujuDviyaRPbQTt1c2CSzS35RxVGrM7sDhsRor5EZrBgBnWdBpXW3vXZAsIGmxl3OdV3odlFFoKvu4lobeulXI7c3F9nyrjjR", # キャンペーン名 + starts_at="2022-02-16T10:50:17.000000Z", # キャンペーン開始日時 + ends_at="2024-06-02T18:31:36.000000Z", # キャンペーン終了日時 + priority=1710, # キャンペーンの適用優先度 + event="topup", # イベント種別 + description="nDGe4yWdLtrR0H47hbbDvB2dkQWYC4RWqJwsq2yT7AWpCDkyLBkYzAxemZaKowuUfekyaJIsuHhxZpopNYyv6dLAyty2EMgPVlahlWYdbEevpLkzdUFCwG4QGOnpUXmwhMFkO9ufFPOzF9Lvv7JJIkMwpNGlwPY7w3AePumXzLvyF75pQ", # キャンペーンの説明文 + status="enabled", # キャンペーン作成時の状態 + point_expires_at="2023-04-11T04:52:58.000000Z", # ポイント有効期限(絶対日時指定) + point_expires_in_days=9720, # ポイント有効期限(相対日数指定) + is_exclusive=False, # キャンペーンの重複設定 + subject="money", # ポイント付与の対象金額の種別 + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 -}, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 -}, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 -}], // 取引金額ベースのポイント付与ルール - product_based_point_rules: [{ +}], # 取引金額ベースのポイント付与ルール + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, + "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: [{ +}], # 商品情報ベースのポイント付与ルール + blacklisted_product_rules=[{ "product_code": "4912345678904", "classification_code": "c123" -}], // 商品情報ベースのキャンペーンで除外対象にする商品リスト - applicable_days_of_week: [6, 5, 5], // キャンペーンを適用する曜日 (複数指定) - applicable_time_ranges: [{ +}], # 商品情報ベースのキャンペーンで除外対象にする商品リスト + applicable_days_of_week=[4, 6], # キャンペーンを適用する曜日 (複数指定) + applicable_time_ranges=[{ "from": "12:00", "to": "23:59" }, { @@ -1026,24 +1035,25 @@ const response: Response = await client.send(new UpdateCampaign({ }, { "from": "12:00", "to": "23:59" -}], // キャンペーンを適用する時間帯 (複数指定) - applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト - minimum_number_of_products: 3479, // キャンペーンを適用する1会計内の商品個数の下限 - minimum_number_of_amount: 261, // キャンペーンを適用する1会計内の商品総額の下限 - minimum_number_for_combination_purchase: 5057, // 複数種類の商品を同時購入するときの商品種別数の下限 - exist_in_each_product_groups: false, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - max_point_amount: 3581, // キャンペーンによって付与されるポイントの上限 - max_total_point_amount: 1690, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 - applicable_account_metadata: { +}], # キャンペーンを適用する時間帯 (複数指定) + applicable_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象となる店舗IDのリスト + blacklisted_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + minimum_number_of_products=6153, # キャンペーンを適用する1会計内の商品個数の下限 + minimum_number_of_amount=9249, # キャンペーンを適用する1会計内の商品総額の下限 + minimum_number_for_combination_purchase=2948, # 複数種類の商品を同時購入するときの商品種別数の下限 + exist_in_each_product_groups=True, # 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + max_point_amount=1012, # キャンペーンによって付与されるポイントの上限 + max_total_point_amount=1450, # キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + applicable_account_metadata={ "key": "sex", "value": "male" -}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - applicable_transaction_metadata: { +}, # ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + applicable_transaction_metadata={ "key": "rank", "value": "bronze" -}, // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - budget_caps_amount: 1787258036 // キャンペーン予算上限 -})); +}, # 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + budget_caps_amount=979442694 # キャンペーン予算上限 +)) ``` @@ -1402,6 +1412,23 @@ fromとtoは両方必要です。 } ``` +**`blacklisted_shop_ids`** + + +キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 +このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 +blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + **`minimum_number_of_products`** diff --git a/docs/cashtray.md b/docs/cashtray.md index d81b5ce..f512c6b 100644 --- a/docs/cashtray.md +++ b/docs/cashtray.md @@ -5,6 +5,147 @@ Cashtrayはワンタイムで、一度読み取りに成功するか、取引エ また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 + +## CreateTransactionWithCashtray: CashtrayQRコードを読み取ることで取引する +エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。 + +通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 +もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがCashtrayQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 + + +```PYTHON +response = client.send(pp.CreateTransactionWithCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # cashtray_id: Cashtray用QRコードのID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーのID + strategy="point-preferred", # 支払い時の残高消費方式 + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID +)) +``` + + + +### Parameters +**`cashtray_id`** + + +Cashtray用QRコードのIDです。 + +QRコード生成時に送金元店舗のウォレット情報や、金額などが登録されています。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`strategy`** + + +支払い時に残高がどのように消費されるかを指定します。 +チャージの場合は無効です。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。 +指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。 +もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|account_not_found|アカウントが見つかりません|The account is not found| +|422|cashtray_not_found|決済QRコードが見つかりません|Cashtray is not found| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|cashtray_already_proceed|この決済QRコードは既に処理されています|Cashtray is already proceed| +|422|cashtray_expired|この決済QRコードは有効期限が切れています|Cashtray is expired| +|422|cashtray_already_canceled|この決済QRコードは既に無効化されています|Cashtray is already canceled| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + ## CreateCashtray: Cashtrayを作る Cashtrayを作成します。 @@ -15,14 +156,14 @@ Cashtrayを作成します。 その他に、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: 2174.0, // 金額 - description: "たい焼き(小倉)", // 取引履歴に表示する説明文 - expires_in: 2651 // 失効時間(秒) -})); +```PYTHON +response = client.send(pp.CreateCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ユーザーID + 6317.0, # amount: 金額 + description="たい焼き(小倉)", # 取引履歴に表示する説明文 + expires_in=8685 # 失効時間(秒) +)) ``` @@ -114,10 +255,10 @@ 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 -})); +```PYTHON +response = client.send(pp.CancelCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # cashtray_id: CashtrayのID +)) ``` @@ -207,10 +348,10 @@ if (attempt == null) { } ``` -```typescript -const response: Response = await client.send(new GetCashtray({ - cashtray_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID -})); +```PYTHON +response = client.send(pp.GetCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # cashtray_id: CashtrayのID +)) ``` @@ -243,13 +384,13 @@ const response: Response = await client.send(new GetCashtray ## UpdateCashtray: Cashtrayの情報を更新する Cashtrayの内容を更新します。bodyパラメーターは全て省略可能で、指定したもののみ更新されます。 -```typescript -const response: Response = await client.send(new UpdateCashtray({ - cashtray_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // CashtrayのID - amount: 4502.0, // 金額 - description: "たい焼き(小倉)", // 取引履歴に表示する説明文 - expires_in: 5907 // 失効時間(秒) -})); +```PYTHON +response = client.send(pp.UpdateCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # cashtray_id: CashtrayのID + amount=3942.0, # 金額 + description="たい焼き(小倉)", # 取引履歴に表示する説明文 + expires_in=7335 # 失効時間(秒) +)) ``` diff --git a/docs/check.md b/docs/check.md index 408def1..7503662 100644 --- a/docs/check.md +++ b/docs/check.md @@ -11,21 +11,21 @@ QRコードを読み取る方法以外にも、このURLリンクを直接スマ ## ListChecks: チャージQRコード一覧の取得 -```typescript -const response: Response = await client.send(new ListChecks({ - page: 7019, // ページ番号 - per_page: 50, // 1ページの表示数 - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - organization_code: "N9K7EVH4f0IDf80jI5hM", // 組織コード - expires_from: "2023-08-24T10:24:13.000000Z", // 有効期限の期間によるフィルター(開始時点) - expires_to: "2021-12-12T10:58:03.000000Z", // 有効期限の期間によるフィルター(終了時点) - created_from: "2021-10-01T09:55:54.000000Z", // 作成日時の期間によるフィルター(開始時点) - created_to: "2020-07-27T23:18:31.000000Z", // 作成日時の期間によるフィルター(終了時点) - issuer_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行店舗ID - description: "a", // チャージQRコードの説明文 - is_onetime: false, // ワンタイムのチャージQRコードかどうか - is_disabled: false // 無効化されたチャージQRコードかどうか -})); +```PYTHON +response = client.send(pp.ListChecks( + page=9728, # ページ番号 + per_page=50, # 1ページの表示数 + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + organization_code="uYz7E9ZuYBAHz0vH45u4SHdXpfYeqMtc", # 組織コード + expires_from="2023-07-25T17:23:39.000000Z", # 有効期限の期間によるフィルター(開始時点) + expires_to="2021-10-14T11:07:18.000000Z", # 有効期限の期間によるフィルター(終了時点) + created_from="2024-08-31T15:49:15.000000Z", # 作成日時の期間によるフィルター(開始時点) + created_to="2020-04-17T06:28:31.000000Z", # 作成日時の期間によるフィルター(終了時点) + issuer_shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 発行店舗ID + description="8wxcy", # チャージQRコードの説明文 + is_onetime=False, # ワンタイムのチャージQRコードかどうか + is_disabled=False # 無効化されたチャージQRコードかどうか +)) ``` @@ -205,7 +205,8 @@ const response: Response = await client.send(new ListChecks({ |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|organization_not_found||Organization not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| +|503|temporarily_unavailable||Service Unavailable| @@ -215,19 +216,19 @@ const response: Response = await client.send(new ListChecks({ ## CreateCheck: チャージQRコードの発行 -```typescript -const response: Response = await client.send(new CreateCheck({ - account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金元の店舗アカウントID - money_amount: 1376.0, // 付与マネー額 - point_amount: 1264.0, // 付与ポイント額 - description: "test check", // 説明文(アプリ上で取引の説明文として表示される) - is_onetime: false, // ワンタイムかどうかのフラグ - usage_limit: 396, // ワンタイムでない場合の最大読み取り回数 - expires_at: "2020-07-16T13:54:51.000000Z", // チャージQRコード自体の失効日時 - point_expires_at: "2024-03-08T20:32:06.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 - point_expires_in_days: 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) - bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ポイント額を負担する店舗のウォレットID -})); +```PYTHON +response = client.send(pp.CreateCheck( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: 送金元の店舗アカウントID + money_amount=2249.0, # 付与マネー額 + point_amount=4625.0, # 付与ポイント額 + description="test check", # 説明文(アプリ上で取引の説明文として表示される) + is_onetime=False, # ワンタイムかどうかのフラグ + usage_limit=6664, # ワンタイムでない場合の最大読み取り回数 + expires_at="2023-09-03T13:58:40.000000Z", # チャージQRコード自体の失効日時 + point_expires_at="2024-08-16T05:11:07.000000Z", # チャージQRコードによって付与されるポイント残高の有効期限 + point_expires_in_days=60, # チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + bear_point_account="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # ポイント額を負担する店舗のウォレットID +)) ``` @@ -387,16 +388,16 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード |---|---|---|---| |400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| |400|invalid_parameter_only_merchants_can_attach_points_to_check||Only merchants can attach points to check| -|400|invalid_parameter_bear_point_account_identification_item_not_unique|ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます|Request parameters include either bear_point_account or bear_point_shop_id.| |400|invalid_parameter_combination_usage_limit_and_is_onetime||'usage_limit' can not be specified if 'is_onetime' is true.| -|400|invalid_parameters|項目が無効です|Invalid parameters| |400|invalid_parameter_expires_at||'expires_at' must be in the future| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|400|invalid_parameter_bear_point_account_identification_item_not_unique|ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます|Request parameters include either bear_point_account or bear_point_shop_id.| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|account_private_money_is_not_issued_by_organization||The account's private money is not issued by this organization| -|422|shop_account_not_found||The shop account is not found| -|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|bear_point_account_not_found|ポイントを負担する店舗アカウントが見つかりません|Bear point account not found.| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| @@ -406,10 +407,10 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード ## GetCheck: チャージQRコードの表示 -```typescript -const response: Response = await client.send(new GetCheck({ - check_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // チャージQRコードのID -})); +```PYTHON +response = client.send(pp.GetCheck( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # check_id: チャージQRコードのID +)) ``` @@ -441,20 +442,20 @@ const response: Response = await client.send(new GetCheck({ ## UpdateCheck: チャージQRコードの更新 -```typescript -const response: Response = await client.send(new UpdateCheck({ - check_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // チャージQRコードのID - money_amount: 4707.0, // 付与マネー額 - point_amount: 5296.0, // 付与ポイント額 - description: "test check", // チャージQRコードの説明文 - is_onetime: false, // ワンタイムかどうかのフラグ - usage_limit: 8397, // ワンタイムでない場合の最大読み取り回数 - expires_at: "2023-07-16T17:37:41.000000Z", // チャージQRコード自体の失効日時 - point_expires_at: "2023-09-28T23:55:20.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 - point_expires_in_days: 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) - bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID - is_disabled: false // 無効化されているかどうかのフラグ -})); +```PYTHON +response = client.send(pp.UpdateCheck( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # check_id: チャージQRコードのID + money_amount=1629.0, # 付与マネー額 + point_amount=1473.0, # 付与ポイント額 + description="test check", # チャージQRコードの説明文 + is_onetime=True, # ワンタイムかどうかのフラグ + usage_limit=1345, # ワンタイムでない場合の最大読み取り回数 + expires_at="2022-10-14T23:12:08.000000Z", # チャージQRコード自体の失効日時 + point_expires_at="2023-09-03T12:56:10.000000Z", # チャージQRコードによって付与されるポイント残高の有効期限 + point_expires_in_days=60, # チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + bear_point_account="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント額を負担する店舗のウォレットID + is_disabled=False # 無効化されているかどうかのフラグ +)) ``` @@ -634,12 +635,12 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード エンドユーザーから受け取ったチャージ用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 -})); +```PYTHON +response = client.send(pp.CreateTopupTransactionWithCheck( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # check_id: チャージ用QRコードのID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーのID + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID +)) ``` @@ -681,6 +682,7 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -698,13 +700,11 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な ### Error Responses |status|type|ja|en| |---|---|---|---| -|400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| |422|customer_user_not_found||The customer user is not found| |422|check_not_found|これはチャージQRコードではありません|This is not a topup QR code| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| |422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| @@ -724,7 +724,7 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| @@ -732,6 +732,9 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|check_already_received|このチャージQRコードは既に受取済みの為、チャージ出来ませんでした|Check is already received| |422|check_unavailable|このチャージQRコードは利用できません|The topup QR code is not available| |503|temporarily_unavailable||Service Unavailable| diff --git a/docs/coupon.md b/docs/coupon.md index 2dbba42..45fb88b 100644 --- a/docs/coupon.md +++ b/docs/coupon.md @@ -7,18 +7,18 @@ Couponは特定店舗で利用できるものや利用可能期間、配信条 ## ListCoupons: クーポン一覧の取得 指定したマネーのクーポン一覧を取得します -```typescript -const response: Response = await client.send(new ListCoupons({ - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 対象クーポンのマネーID - coupon_id: "aKuslNra", // クーポンID - coupon_name: "O", // クーポン名 - issued_shop_name: "syAiaw", // 発行店舗名 - available_shop_name: "Wi", // 利用可能店舗名 - available_from: "2022-10-22T10:14:03.000000Z", // 利用可能期間 (開始日時) - available_to: "2021-10-02T15:20:51.000000Z", // 利用可能期間 (終了日時) - page: 1, // ページ番号 - per_page: 50 // 1ページ分の取得数 -})); +```PYTHON +response = client.send(pp.ListCoupons( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: 対象クーポンのマネーID + coupon_id="iZ", # クーポンID + coupon_name="YSVIBpBUCC", # クーポン名 + issued_shop_name="gk4g", # 発行店舗名 + available_shop_name="sP6E17lk", # 利用可能店舗名 + available_from="2020-06-26T22:20:27.000000Z", # 利用可能期間 (開始日時) + available_to="2020-05-25T04:04:55.000000Z", # 利用可能期間 (終了日時) + page=1, # ページ番号 + per_page=50 # 1ページ分の取得数 +)) ``` @@ -148,7 +148,7 @@ const response: Response = await client.send(new ListCoupons({ |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -159,29 +159,29 @@ const response: Response = await client.send(new ListCoupons({ ## CreateCoupon: クーポンの登録 新しいクーポンを登録します -```typescript -const response: Response = await client.send(new CreateCoupon({ - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - name: "V3bs", - starts_at: "2022-05-26T14:59:10.000000Z", - ends_at: "2020-01-24T00:21:53.000000Z", - issued_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行元の店舗ID - description: "kWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1", - discount_amount: 2531, - discount_percentage: 3785.0, - discount_upper_limit: 5241, - display_starts_at: "2023-09-04T17:42:15.000000Z", // クーポンの掲載期間(開始日時) - display_ends_at: "2021-10-16T10:10:53.000000Z", // クーポンの掲載期間(終了日時) - is_disabled: true, // 無効化フラグ - is_hidden: true, // クーポン一覧に掲載されるかどうか - is_public: true, // アプリ配信なしで受け取れるかどうか - code: "XocQ5N98C", // クーポン受け取りコード - usage_limit: 2753, // ユーザごとの利用可能回数(NULLの場合は無制限) - min_amount: 7894, // クーポン適用可能な最小取引額 - is_shop_specified: false, // 特定店舗限定のクーポンかどうか - available_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト - storage_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ストレージID -})); +```PYTHON +response = client.send(pp.CreateCoupon( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "rA88yuG2X4KRlpHewo2CgFQkdXPF4V9XHbL6zY6vqwgcI7YPEPHgGnEdzhGAMty3evJwcetItJxO93cN0l", + "2021-12-16T07:23:43.000000Z", + "2023-02-25T16:09:50.000000Z", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # issued_shop_id: 発行元の店舗ID + description="G0lwTGLR8ci2cIIE66fhj2n6iiZ64HpvFGkJr1uo4NLstnS7EAbDgQaYkUrDsQyk3kwOisNW9XsMHBVPsrsYBnLGXRYzu4noxPXNWpdUvBBp2JsuVIINCRpxja7me48LNXqpqJtjZwJILsuUBm8J0tu2v6zDKp9iO7Ari", + discount_amount=9147, + discount_percentage=8579.0, + discount_upper_limit=2706, + display_starts_at="2020-08-25T11:57:15.000000Z", # クーポンの掲載期間(開始日時) + display_ends_at="2023-06-20T18:21:11.000000Z", # クーポンの掲載期間(終了日時) + is_disabled=False, # 無効化フラグ + is_hidden=True, # クーポン一覧に掲載されるかどうか + is_public=False, # アプリ配信なしで受け取れるかどうか + code="mo6XPE5Oq", # クーポン受け取りコード + usage_limit=2937, # ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount=2737, # クーポン適用可能な最小取引額 + is_shop_specified=True, # 特定店舗限定のクーポンかどうか + available_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 利用可能店舗リスト + storage_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # ストレージID +)) ``` `is_shop_specified`と`available_shop_ids`は同時に指定する必要があります。 @@ -421,7 +421,7 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |404|partner_storage_not_found|指定したIDのデータは保存されていません|Not found by storage_id| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|coupon_image_storage_conflict|クーポン画像のストレージIDは既に存在します|The coupon image storage_id is already exists| @@ -433,10 +433,10 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 ## GetCoupon: クーポンの取得 指定したIDを持つクーポンを取得します -```typescript -const response: Response = await client.send(new GetCoupon({ - coupon_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // クーポンID -})); +```PYTHON +response = client.send(pp.GetCoupon( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # coupon_id: クーポンID +)) ``` @@ -471,28 +471,28 @@ UUIDv4フォーマットである必要があり、フォーマットが異な ## UpdateCoupon: クーポンの更新 指定したクーポンを更新します -```typescript -const response: Response = await client.send(new UpdateCoupon({ - coupon_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // クーポンID - name: "RC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9TezTj3A085y", - description: "5hWQ3gdeDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusa", - discount_amount: 1992, - discount_percentage: 2356.0, - discount_upper_limit: 4836, - starts_at: "2023-09-27T17:27:45.000000Z", - ends_at: "2023-03-30T03:01:03.000000Z", - display_starts_at: "2022-01-22T03:47:12.000000Z", // クーポンの掲載期間(開始日時) - display_ends_at: "2020-03-02T05:57:04.000000Z", // クーポンの掲載期間(終了日時) - is_disabled: false, // 無効化フラグ - is_hidden: false, // クーポン一覧に掲載されるかどうか - is_public: false, // アプリ配信なしで受け取れるかどうか - code: "Mwrj", // クーポン受け取りコード - usage_limit: 2742, // ユーザごとの利用可能回数(NULLの場合は無制限) - min_amount: 9894, // クーポン適用可能な最小取引額 - is_shop_specified: false, // 特定店舗限定のクーポンかどうか - available_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト - storage_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ストレージID -})); +```PYTHON +response = client.send(pp.UpdateCoupon( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # coupon_id: クーポンID + name="jVh9nsqgzongKg5SFSpcaiWqMVEyXiabD2fPkrS1NvYbmwucdTPjBOMyHVeFGY5vB7gjE0J3rzoZQgeuXW4rw3Ob3VUIWbzDljJ6klDtciJUc", + description="1wir4yYsQVBNqeXloDbzzGADkOfMAKTboQcaiYXr4rnNnjCoeQHMuXiGNUysmU86lvAOTbcLzXO1sbMRuBNUlL6K0ReLv75kg6qcs3cEpI1m3wABqtL3bdaVTKdkTjUxGpAh3awQssfAXqJYYr4ARYbJcmLujs894lRg4qB30GRMkbzDn742v8m6fDAksXCcjSnMwkyUVD7CNlqSrG8bUcu2404OwW2YlKo3D8R7F9uqtTYDUe0c6WMB", + discount_amount=6591, + discount_percentage=9264.0, + discount_upper_limit=2365, + starts_at="2023-12-22T10:14:14.000000Z", + ends_at="2021-12-13T08:29:01.000000Z", + display_starts_at="2020-06-07T13:39:20.000000Z", # クーポンの掲載期間(開始日時) + display_ends_at="2020-10-02T00:30:03.000000Z", # クーポンの掲載期間(終了日時) + is_disabled=True, # 無効化フラグ + is_hidden=False, # クーポン一覧に掲載されるかどうか + is_public=True, # アプリ配信なしで受け取れるかどうか + code="CtA", # クーポン受け取りコード + usage_limit=9635, # ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount=9578, # クーポン適用可能な最小取引額 + 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 +)) ``` diff --git a/docs/customer.md b/docs/customer.md index e633ccc..fcc4018 100644 --- a/docs/customer.md +++ b/docs/customer.md @@ -4,11 +4,11 @@ ## DeleteAccount: ウォレットを退会する ウォレットを退会します。一度ウォレットを退会した後は、そのウォレットを再び利用可能な状態に戻すことは出来ません。 -```typescript -const response: Response = await client.send(new DeleteAccount({ - account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - cashback: false // 返金有無 -})); +```PYTHON +response = client.send(pp.DeleteAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID + cashback=False # 返金有無 +)) ``` @@ -54,10 +54,10 @@ const response: Response = await client.send(new DeleteAccount({ ## GetAccount: ウォレット情報を表示する ウォレットを取得します。 -```typescript -const response: Response = await client.send(new GetAccount({ - account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID -})); +```PYTHON +response = client.send(pp.GetAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # account_id: ウォレットID +)) ``` @@ -98,13 +98,13 @@ const response: Response = await client.send(new GetAccount({ エンドユーザーのウォレット情報更新には UpdateCustomerAccount が使用できます。 -```typescript -const response: Response = await client.send(new UpdateAccount({ - account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - is_suspended: true, // ウォレットが凍結されているかどうか - status: "suspended", // ウォレット状態 - can_transfer_topup: false // チャージ可能かどうか -})); +```PYTHON +response = client.send(pp.UpdateAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID + is_suspended=True, # ウォレットが凍結されているかどうか + status="active", # ウォレット状態 + can_transfer_topup=False # チャージ可能かどうか +)) ``` @@ -177,15 +177,15 @@ const response: Response = await client.send(new UpdateAccount({ ## ListAccountBalances: エンドユーザーの残高内訳を表示する エンドユーザーのウォレット毎の残高を有効期限別のリストとして取得します。 -```typescript -const response: Response = await client.send(new ListAccountBalances({ - account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - page: 9466, // ページ番号 - per_page: 2486, // 1ページ分の取引数 - expires_at_from: "2021-05-09T05:12:58.000000Z", // 有効期限の期間によるフィルター(開始時点) - expires_at_to: "2021-07-24T06:37:04.000000Z", // 有効期限の期間によるフィルター(終了時点) - direction: "asc" // 有効期限によるソート順序 -})); +```PYTHON +response = client.send(pp.ListAccountBalances( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID + page=350, # ページ番号 + per_page=1991, # 1ページ分の取引数 + expires_at_from="2022-03-28T16:15:32.000000Z", # 有効期限の期間によるフィルター(開始時点) + expires_at_to="2023-02-22T12:33:41.000000Z", # 有効期限の期間によるフィルター(終了時点) + direction="desc" # 有効期限によるソート順序 +)) ``` @@ -283,15 +283,15 @@ const response: Response = await client.send(new ListAc ## ListAccountExpiredBalances: エンドユーザーの失効済みの残高内訳を表示する エンドユーザーのウォレット毎の失効済みの残高を有効期限別のリストとして取得します。 -```typescript -const response: Response = await client.send(new ListAccountExpiredBalances({ - account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - page: 5299, // ページ番号 - per_page: 9652, // 1ページ分の取引数 - expires_at_from: "2021-09-30T16:39:14.000000Z", // 有効期限の期間によるフィルター(開始時点) - expires_at_to: "2021-04-29T19:55:24.000000Z", // 有効期限の期間によるフィルター(終了時点) - direction: "desc" // 有効期限によるソート順序 -})); +```PYTHON +response = client.send(pp.ListAccountExpiredBalances( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID + page=318, # ページ番号 + per_page=5324, # 1ページ分の取引数 + expires_at_from="2023-12-19T05:21:31.000000Z", # 有効期限の期間によるフィルター(開始時点) + expires_at_to="2020-12-21T05:07:13.000000Z", # 有効期限の期間によるフィルター(終了時点) + direction="desc" # 有効期限によるソート順序 +)) ``` @@ -389,14 +389,14 @@ const response: Response = await client.send(new ListAc ## UpdateCustomerAccount: エンドユーザーのウォレット情報を更新する エンドユーザーのウォレットの状態を更新します。 -```typescript -const response: Response = await client.send(new UpdateCustomerAccount({ - account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - status: "suspended", // ウォレット状態 - account_name: "DDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAP", // アカウント名 - external_id: "GMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknj", // 外部ID - metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" // ウォレットに付加するメタデータ -})); +```PYTHON +response = client.send(pp.UpdateCustomerAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID + status="suspended", # ウォレット状態 + account_name="0JqyEbk4xV1ElwOVpwOgCs3REJLXlOpH9qH3TntlxmPSv0sqeMHVeJGZnQaE4lp3S7TMyfZKpPybiZ1Lwce18e7Eq5OqWuTabdRaaHOyfGqVUncXzhjskeGyZxmbEy050Zlv3tzVr8aTPDqMKbxS0Vs3OlIrdnx7rU9Fte9Z959oBy13mtel3d8TfJ3Ol39ScasZnA58jo0hnztlMdM7BVfn4iFYyJJXfrDU", # アカウント名 + external_id="2Z5dTBMhYMOaLFSQqsldJHk3l4cpZ7fJl29A3O6y0fQnXOg", # 外部ID + metadata="{\"key1\":\"foo\",\"key2\":\"bar\"}" # ウォレットに付加するメタデータ +)) ``` @@ -498,19 +498,19 @@ const response: Response = await client.send(new UpdateCustomer ## GetCustomerAccounts: エンドユーザーのウォレット一覧を表示する マネーを指定してエンドユーザーのウォレット一覧を取得します。 -```typescript -const response: Response = await client.send(new GetCustomerAccounts({ - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - page: 7384, // ページ番号 - per_page: 5429, // 1ページ分のウォレット数 - created_at_from: "2023-10-11T21:03:00.000000Z", // ウォレット作成日によるフィルター(開始時点) - created_at_to: "2024-03-15T06:32:01.000000Z", // ウォレット作成日によるフィルター(終了時点) - is_suspended: true, // ウォレットが凍結状態かどうかでフィルターする - status: "active", // ウォレット状態 - external_id: "W80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7", // 外部ID - tel: "078988131", // エンドユーザーの電話番号 - email: "qkfWLu8Wbq@qwjf.com" // エンドユーザーのメールアドレス -})); +```PYTHON +response = client.send(pp.GetCustomerAccounts( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + page=8211, # ページ番号 + per_page=6776, # 1ページ分のウォレット数 + created_at_from="2021-09-10T05:49:31.000000Z", # ウォレット作成日によるフィルター(開始時点) + created_at_to="2022-09-03T21:35:58.000000Z", # ウォレット作成日によるフィルター(終了時点) + is_suspended=False, # ウォレットが凍結状態かどうかでフィルターする + status="active", # ウォレット状態 + external_id="h5yMWiTVYzb9YasuIp7v4EzACicWq4Ul0bBBFnJwjrPufrwL", # 外部ID + tel="04153-7642", # エンドユーザーの電話番号 + email="ZhJuNsCdqV@bAgL.com" # エンドユーザーのメールアドレス +)) ``` @@ -651,7 +651,7 @@ const response: Response = await client.send(new GetC |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -665,13 +665,13 @@ const response: Response = await client.send(new GetC 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: "PVeBo88egFulBO0" // 外部ID -})); +```PYTHON +response = client.send(pp.CreateCustomerAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + user_name="ポケペイ太郎", # ユーザー名 + account_name="ポケペイ太郎のアカウント", # アカウント名 + external_id="QKQXblhvdQVC38rMOaKHSf5htPp" # 外部ID +)) ``` @@ -737,8 +737,8 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|user_not_found||The user is not found| -|422|private_money_not_found||Private money not found| +|422|user_not_found|ユーザーが見つかりません|The user is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|user_attributes_external_id_not_match|ユーザー属性情報の外部IDが一致しません|Not match external id of user attributes| |422|user_attributes_not_found|ユーザー属性情報が存在しません|Not found the user attrubtes| @@ -754,15 +754,15 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで ## GetShopAccounts: 店舗ユーザーのウォレット一覧を表示する マネーを指定して店舗ユーザーのウォレット一覧を取得します。 -```typescript -const response: Response = await client.send(new GetShopAccounts({ - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - page: 8229, // ページ番号 - per_page: 6517, // 1ページ分のウォレット数 - created_at_from: "2024-01-23T15:43:54.000000Z", // ウォレット作成日によるフィルター(開始時点) - created_at_to: "2022-06-04T22:42:35.000000Z", // ウォレット作成日によるフィルター(終了時点) - is_suspended: false // ウォレットが凍結状態かどうかでフィルターする -})); +```PYTHON +response = client.send(pp.GetShopAccounts( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + page=7162, # ページ番号 + per_page=4097, # 1ページ分のウォレット数 + created_at_from="2021-11-27T12:02:43.000000Z", # ウォレット作成日によるフィルター(開始時点) + created_at_to="2020-07-11T01:13:01.000000Z", # ウォレット作成日によるフィルター(終了時点) + is_suspended=True # ウォレットが凍結状態かどうかでフィルターする +)) ``` @@ -851,7 +851,7 @@ const response: Response = await client.send(new GetS |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -862,18 +862,18 @@ const response: Response = await client.send(new GetS ## 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: "expire", // 取引種別 - is_modified: true, // キャンセル済みかどうか - from: "2020-09-27T18:26:40.000000Z", // 開始日時 - to: "2022-09-05T11:19:04.000000Z", // 終了日時 - page: 1, // ページ番号 - per_page: 50 // 1ページ分の取引数 -})); +```PYTHON +response = client.send(pp.ListCustomerTransactions( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + sender_customer_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 送金エンドユーザーID + receiver_customer_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 受取エンドユーザーID + type="cashback", # 取引種別 + is_modified=False, # キャンセル済みかどうか + start="2021-07-30T00:07:51.000000Z", # 開始日時 + to="2021-08-16T03:11:59.000000Z", # 終了日時 + page=1, # ページ番号 + per_page=50 # 1ページ分の取引数 +)) ``` @@ -1032,7 +1032,8 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|customer_user_not_found||The customer user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| +|503|temporarily_unavailable||Service Unavailable| diff --git a/docs/event.md b/docs/event.md index 63bef99..069dbb1 100644 --- a/docs/event.md +++ b/docs/event.md @@ -7,35 +7,30 @@ ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。 -```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: 2106, // 取引額 - products: [{"jan_code":"abc", +```PYTHON +response = client.send(pp.CreateExternalTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + 8568, # amount: 取引額 + description="たい焼き(小倉)", # 取引説明文 + metadata="{\"key\":\"value\"}", # ポケペイ外部取引メタデータ + products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, "quantity": 1, - "is_discounted": false, + "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, "quantity": 1, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "quantity": 1, - "is_discounted": false, - "other":"{}"}], // 商品情報データ - description: "たい焼き(小倉)", // 取引説明文 - metadata: "{\"key\":\"value\"}", // ポケペイ外部取引メタデータ - request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID -})); + "is_discounted": False, + "other":"{}"}], # 商品情報データ + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # リクエストID + done_at="2023-06-15T00:28:28.000000Z" # ポケペイ外部取引の実施時間 +)) ``` @@ -162,6 +157,20 @@ const response: Response = await client.send(new Crea } ``` +**`done_at`** + + +ポケペイ外部取引が実際に起こった時間です。 +時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。 +デフォルトではCreateExternalTransactionがリクエストされた時間になります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + 成功したときは @@ -173,13 +182,11 @@ const response: Response = await client.send(new Crea |---|---|---|---| |400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| |422|customer_user_not_found||The customer user is not found| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| @@ -188,6 +195,7 @@ const response: Response = await client.send(new Crea |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| |422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| @@ -206,6 +214,8 @@ const response: Response = await client.send(new Crea |422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| |422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| |422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| @@ -222,11 +232,11 @@ const response: Response = await client.send(new Crea 取引をキャンセルできるのは1回きりです。既にキャンセルされた取引を重ねてキャンセルしようとすると `transaction_already_refunded (422)` エラーが返ります。 -```typescript -const response: Response = await client.send(new RefundExternalTransaction({ - event_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID - description: "返品対応のため" // 取引履歴に表示する返金事由 -})); +```PYTHON +response = client.send(pp.RefundExternalTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # event_id: 取引ID + description="返品対応のため" # 取引履歴に表示する返金事由 +)) ``` @@ -271,10 +281,10 @@ const response: Response = await client.send(new Refu 発行体の管理者は自組織発行のマネーに紐付くポケペイ外部取引を取得できます。 -```typescript -const response: Response = await client.send(new GetExternalTransactionByRequestId({ - request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID -})); +```PYTHON +response = client.send(pp.GetExternalTransactionByRequestId( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # request_id: リクエストID +)) ``` diff --git a/docs/organization.md b/docs/organization.md index 842404b..1f31fc9 100644 --- a/docs/organization.md +++ b/docs/organization.md @@ -3,14 +3,14 @@ ## 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: "J93Y52", // 組織名 - code: "C590AS7U" // 組織コード -})); +```PYTHON +response = client.send(pp.ListOrganizations( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + page=1, # ページ番号 + per_page=50, # 1ページ分の取引数 + name="dWsbduWBx", # 組織名 + code="fg1Kl" # 組織コード +)) ``` @@ -84,7 +84,7 @@ const response: Response = await client.send(new ListOrg |---|---|---|---| |400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -94,22 +94,22 @@ const response: Response = await client.send(new ListOrg ## CreateOrganization: 新規加盟店組織を追加する -```typescript -const response: Response = await client.send(new CreateOrganization({ - code: "ox-supermarket", // 新規組織コード - name: "oxスーパー", // 新規組織名 - private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 加盟店組織で有効にするマネーIDの配列 - issuer_admin_user_email: "iB0DiDGREm@ImyJ.com", // 発行体担当者メールアドレス - member_admin_user_email: "DbbC2wEGBf@cAGc.com", // 新規組織担当者メールアドレス - bank_name: "XYZ銀行", // 銀行名 - bank_code: "1234", // 銀行金融機関コード - bank_branch_name: "ABC支店", // 銀行支店名 - bank_branch_code: "123", // 銀行支店コード - bank_account_type: "saving", // 銀行口座種別 (普通=saving, 当座=current, その他=other) - bank_account: "1234567", // 銀行口座番号 - bank_account_holder_name: "フクザワユキチ", // 口座名義人名 - contact_name: "佐藤清" // 担当者名 -})); +```PYTHON +response = client.send(pp.CreateOrganization( + "ox-supermarket", # code: 新規組織コード + "oxスーパー", # name: 新規組織名 + ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # private_money_ids: 加盟店組織で有効にするマネーIDの配列 + "u47KITpvwb@o61t.com", # issuer_admin_user_email: 発行体担当者メールアドレス + "0xPHohZAfX@S5WA.com", # member_admin_user_email: 新規組織担当者メールアドレス + 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="佐藤清" # 担当者名 +)) ``` diff --git a/docs/private_money.md b/docs/private_money.md index 10f9c24..a633e4b 100644 --- a/docs/private_money.md +++ b/docs/private_money.md @@ -6,12 +6,12 @@ パートナーキーの管理者が発行体組織に属している場合、自組織が加盟または発行しているマネーの一覧を返します。また、`organization_code`として決済加盟店の組織コードを指定した場合、発行マネーのうち、その決済加盟店組織が加盟しているマネーの一覧を返します。 パートナーキーの管理者が決済加盟店組織に属している場合は、自組織が加盟しているマネーの一覧を返します。 -```typescript -const response: Response = await client.send(new GetPrivateMoneys({ - organization_code: "ox-supermarket", // 組織コード - page: 1, // ページ番号 - per_page: 50 // 1ページ分の取得数 -})); +```PYTHON +response = client.send(pp.GetPrivateMoneys( + organization_code="ox-supermarket", # 組織コード + page=1, # ページ番号 + per_page=50 # 1ページ分の取得数 +)) ``` @@ -72,14 +72,14 @@ const response: Response = await client.send(new GetPriv ## GetPrivateMoneyOrganizationSummaries: 決済加盟店の取引サマリを取得する -```typescript -const response: Response = await client.send(new GetPrivateMoneyOrganizationSummaries({ - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - from: "2021-06-04T07:32:54.000000Z", // 開始日時(toと同時に指定する必要有) - to: "2022-05-22T18:27:54.000000Z", // 終了日時(fromと同時に指定する必要有) - page: 1, // ページ番号 - per_page: 50 // 1ページ分の取引数 -})); +```PYTHON +response = client.send(pp.GetPrivateMoneyOrganizationSummaries( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + start="2021-06-11T14:25:36.000000Z", # 開始日時(toと同時に指定する必要有) + to="2023-07-23T08:58:59.000000Z", # 終了日時(fromと同時に指定する必要有) + page=1, # ページ番号 + per_page=50 # 1ページ分の取引数 +)) ``` `from`と`to`は同時に指定する必要があります。 @@ -155,12 +155,12 @@ const response: Response = await cli ## GetPrivateMoneySummary: 取引サマリを取得する -```typescript -const response: Response = await client.send(new GetPrivateMoneySummary({ - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - from: "2020-02-09T19:52:16.000000Z", // 開始日時 - to: "2024-03-20T18:36:22.000000Z" // 終了日時 -})); +```PYTHON +response = client.send(pp.GetPrivateMoneySummary( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + start="2021-03-17T01:31:19.000000Z", # 開始日時 + to="2022-09-13T03:45:44.000000Z" # 終了日時 +)) ``` diff --git a/docs/responses.md b/docs/responses.md index cfbdc9a..b48c15e 100644 --- a/docs/responses.md +++ b/docs/responses.md @@ -1,27 +1,10 @@ # 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)`: +* `id (str)`: +* `name (str)`: +* `is_suspended (bool)`: +* `status (str)`: * `private_money (PrivateMoney)`: * `user (User)`: @@ -31,17 +14,17 @@ ## AccountDetail -* `id (string)`: -* `name (string)`: -* `is_suspended (boolean)`: -* `status (string)`: -* `balance (number)`: -* `money_balance (number)`: -* `point_balance (number)`: -* `point_debt (number)`: +* `id (str)`: +* `name (str)`: +* `is_suspended (bool)`: +* `status (str)`: +* `balance (float)`: +* `money_balance (float)`: +* `point_balance (float)`: +* `point_debt (float)`: * `private_money (PrivateMoney)`: * `user (User)`: -* `external_id (string)`: +* `external_id (str)`: `private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 @@ -52,36 +35,36 @@ ## Bill -* `id (string)`: 支払いQRコードのID -* `amount (number)`: 支払い額 -* `max_amount (number)`: 支払い額を範囲指定した場合の上限 -* `min_amount (number)`: 支払い額を範囲指定した場合の下限 -* `description (string)`: 支払いQRコードの説明文(アプリ上で取引の説明文として表示される) +* `id (str)`: 支払いQRコードのID +* `amount (float)`: 支払い額 +* `max_amount (float)`: 支払い額を範囲指定した場合の上限 +* `min_amount (float)`: 支払い額を範囲指定した場合の下限 +* `description (str)`: 支払いQRコードの説明文(アプリ上で取引の説明文として表示される) * `account (AccountWithUser)`: 支払いQRコード発行ウォレット -* `is_disabled (boolean)`: 無効化されているかどうか -* `token (string)`: 支払いQRコードを解析したときに出てくるURL +* `is_disabled (bool)`: 無効化されているかどうか +* `token (str)`: 支払い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コードの説明文(アプリ上で取引の説明文として表示される) +* `id (str)`: チャージQRコードのID +* `created_at (str)`: チャージQRコードの作成日時 +* `amount (float)`: チャージマネー額 (deprecated) +* `money_amount (float)`: チャージマネー額 +* `point_amount (float)`: チャージポイント額 +* `description (str)`: チャージQRコードの説明文(アプリ上で取引の説明文として表示される) * `user (User)`: 送金元ユーザ情報 -* `is_onetime (boolean)`: 使用回数が一回限りかどうか -* `is_disabled (boolean)`: 無効化されているかどうか -* `expires_at (string)`: チャージQRコード自体の失効日時 -* `last_used_at (string)`: +* `is_onetime (bool)`: 使用回数が一回限りかどうか +* `is_disabled (bool)`: 無効化されているかどうか +* `expires_at (str)`: チャージQRコード自体の失効日時 +* `last_used_at (str)`: * `private_money (PrivateMoney)`: 対象マネー情報 -* `usage_limit (number)`: 一回限りでない場合の最大読み取り回数 -* `usage_count (number)`: 一回限りでない場合の現在までに読み取られた回数 -* `point_expires_at (string)`: ポイント有効期限(絶対日数指定) -* `point_expires_in_days (number)`: ポイント有効期限(相対日数指定) -* `token (string)`: チャージQRコードを解析したときに出てくるURL +* `usage_limit (int)`: 一回限りでない場合の最大読み取り回数 +* `usage_count (float)`: 一回限りでない場合の現在までに読み取られた回数 +* `point_expires_at (str)`: ポイント有効期限(絶対日数指定) +* `point_expires_in_days (int)`: ポイント有効期限(相対日数指定) +* `token (str)`: チャージQRコードを解析したときに出てくるURL `user`は [User](#user) オブジェクトを返します。 @@ -89,23 +72,23 @@ ## PaginatedChecks -* `rows (Check[])`: -* `count (number)`: +* `rows (list of Checks)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [Check](#check) オブジェクトの配列を返します。 +`rows`は [Check](#check) オブジェクトのリストを返します。 `pagination`は [Pagination](#pagination) オブジェクトを返します。 ## CpmToken -* `cpm_token (string)`: +* `cpm_token (str)`: * `account (AccountDetail)`: * `transaction (Transaction)`: * `event (ExternalTransaction)`: -* `scopes (string[])`: 許可された取引種別 -* `expires_at (string)`: CPMトークンの失効日時 -* `metadata (string)`: エンドユーザー側メタデータ +* `scopes (list of strs)`: 許可された取引種別 +* `expires_at (str)`: CPMトークンの失効日時 +* `metadata (str)`: エンドユーザー側メタデータ `account`は [AccountDetail](#account-detail) オブジェクトを返します。 @@ -115,25 +98,25 @@ ## Cashtray -* `id (string)`: Cashtray自体のIDです。 -* `amount (number)`: 取引金額 -* `description (string)`: Cashtrayの説明文 +* `id (str)`: Cashtray自体のIDです。 +* `amount (float)`: 取引金額 +* `description (str)`: Cashtrayの説明文 * `account (AccountWithUser)`: 発行店舗のウォレット -* `expires_at (string)`: Cashtrayの失効日時 -* `canceled_at (string)`: Cashtrayの無効化日時。NULLの場合は無効化されていません -* `token (string)`: CashtrayのQRコードを解析したときに出てくるURL +* `expires_at (str)`: Cashtrayの失効日時 +* `canceled_at (str)`: Cashtrayの無効化日時。NULLの場合は無効化されていません +* `token (str)`: CashtrayのQRコードを解析したときに出てくるURL `account`は [AccountWithUser](#account-with-user) オブジェクトを返します。 ## CashtrayWithResult -* `id (string)`: CashtrayのID -* `amount (number)`: 取引金額 -* `description (string)`: Cashtrayの説明文(アプリ上で取引の説明文として表示される) +* `id (str)`: CashtrayのID +* `amount (float)`: 取引金額 +* `description (str)`: Cashtrayの説明文(アプリ上で取引の説明文として表示される) * `account (AccountWithUser)`: 発行店舗のウォレット -* `expires_at (string)`: Cashtrayの失効日時 -* `canceled_at (string)`: Cashtrayの無効化日時。NULLの場合は無効化されていません -* `token (string)`: CashtrayのQRコードを解析したときに出てくるURL +* `expires_at (str)`: Cashtrayの失効日時 +* `canceled_at (str)`: Cashtrayの無効化日時。NULLの場合は無効化されていません +* `token (str)`: CashtrayのQRコードを解析したときに出てくるURL * `attempt (CashtrayAttempt)`: Cashtray読み取り結果 * `transaction (Transaction)`: 取引結果 @@ -145,87 +128,87 @@ ## User -* `id (string)`: ユーザー (または店舗) ID -* `name (string)`: ユーザー (または店舗) 名 -* `is_merchant (boolean)`: 店舗ユーザーかどうか +* `id (str)`: ユーザー (または店舗) ID +* `name (str)`: ユーザー (または店舗) 名 +* `is_merchant (bool)`: 店舗ユーザーかどうか ## Organization -* `code (string)`: 組織コード -* `name (string)`: 組織名 +* `code (str)`: 組織コード +* `name (str)`: 組織名 ## TransactionDetail -* `id (string)`: 取引ID -* `type (string)`: 取引種別 -* `is_modified (boolean)`: 返金された取引かどうか +* `id (str)`: 取引ID +* `type (str)`: 取引種別 +* `is_modified (bool)`: 返金された取引かどうか * `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[])`: +* `amount (float)`: 取引総額 (マネー額 + ポイント額) +* `money_amount (float)`: 取引マネー額 +* `point_amount (float)`: 取引ポイント額(キャンペーン付与ポイント合算) +* `raw_point_amount (float)`: 取引ポイント額 +* `campaign_point_amount (float)`: キャンペーンによるポイント付与額 +* `done_at (str)`: 取引日時 +* `description (str)`: 取引説明文 +* `transfers (list of Transfers)`: `receiver`と`sender`は [User](#user) オブジェクトを返します。 `receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。 -`transfers`は [Transfer](#transfer) オブジェクトの配列を返します。 +`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) オブジェクトの配列を返します。 +* `id (str)`: 店舗ID +* `name (str)`: 店舗名 +* `organization_code (str)`: 組織コード +* `status (str)`: 店舗の状態 +* `postal_code (str)`: 店舗の郵便番号 +* `address (str)`: 店舗の住所 +* `tel (str)`: 店舗の電話番号 +* `email (str)`: 店舗のメールアドレス +* `external_id (str)`: 店舗の外部ID +* `accounts (list of ShopAccounts)`: + +`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)`: バルク取引が更新された日時 +* `id (str)`: +* `request_id (str)`: リクエストID +* `name (str)`: バルク取引管理用の名前 +* `description (str)`: バルク取引管理用の説明文 +* `status (str)`: バルク取引の状態 +* `error (str)`: バルク取引のエラー種別 +* `error_lineno (int)`: バルク取引のエラーが発生した行番号 +* `submitted_at (str)`: バルク取引が登録された日時 +* `updated_at (str)`: バルク取引が更新された日時 ## PaginatedBulkTransactionJob -* `rows (BulkTransactionJob[])`: -* `count (number)`: +* `rows (list of BulkTransactionJobs)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [BulkTransactionJob](#bulk-transaction-job) オブジェクトの配列を返します。 +`rows`は [BulkTransactionJob](#bulk-transaction-job) オブジェクトのリストを返します。 `pagination`は [Pagination](#pagination) オブジェクトを返します。 ## ExternalTransactionDetail -* `id (string)`: ポケペイ外部取引ID -* `is_modified (boolean)`: 返金された取引かどうか +* `id (str)`: ポケペイ外部取引ID +* `is_modified (bool)`: 返金された取引かどうか * `sender (User)`: 送金者情報 * `sender_account (Account)`: 送金ウォレット情報 * `receiver (User)`: 受取者情報 * `receiver_account (Account)`: 受取ウォレット情報 -* `amount (number)`: 決済額 -* `done_at (string)`: 取引日時 -* `description (string)`: 取引説明文 +* `amount (float)`: 決済額 +* `done_at (str)`: 取引日時 +* `description (str)`: 取引説明文 * `transaction (TransactionDetail)`: 関連ポケペイ取引詳細 `receiver`と`sender`は [User](#user) オブジェクトを返します。 @@ -236,184 +219,197 @@ ## PaginatedPrivateMoneyOrganizationSummaries -* `rows (PrivateMoneyOrganizationSummary[])`: -* `count (number)`: +* `rows (list of PrivateMoneyOrganizationSummaries)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [PrivateMoneyOrganizationSummary](#private-money-organization-summary) オブジェクトの配列を返します。 +`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)`: +* `topup_amount (float)`: +* `refunded_topup_amount (float)`: +* `payment_amount (float)`: +* `refunded_payment_amount (float)`: +* `added_point_amount (float)`: +* `topup_point_amount (float)`: +* `campaign_point_amount (float)`: +* `refunded_added_point_amount (float)`: +* `exchange_inflow_amount (float)`: +* `exchange_outflow_amount (float)`: +* `transaction_count (int)`: ## UserStatsOperation -* `id (string)`: 集計処理ID -* `from (string)`: 集計期間の開始時刻 -* `to (string)`: 集計期間の終了時刻 -* `status (string)`: 集計処理の実行ステータス -* `error_reason (string)`: エラーとなった理由 -* `done_at (string)`: 集計処理の完了時刻 -* `file_url (string)`: 集計結果のCSVのダウンロードURL -* `requested_at (string)`: 集計リクエストを行った時刻 +* `id (str)`: 集計処理ID +* `from (str)`: 集計期間の開始時刻 +* `to (str)`: 集計期間の終了時刻 +* `status (str)`: 集計処理の実行ステータス +* `error_reason (str)`: エラーとなった理由 +* `done_at (str)`: 集計処理の完了時刻 +* `file_url (str)`: 集計結果のCSVのダウンロードURL +* `requested_at (str)`: 集計リクエストを行った時刻 ## UserDevice -* `id (string)`: デバイスID +* `id (str)`: デバイスID * `user (User)`: デバイスを使用するユーザ -* `is_active (boolean)`: デバイスが有効か -* `metadata (string)`: デバイスのメタデータ +* `is_active (bool)`: デバイスが有効か +* `metadata (str)`: デバイスのメタデータ `user`は [User](#user) オブジェクトを返します。 ## BankRegisteringInfo -* `redirect_url (string)`: -* `paytree_customer_number (string)`: +* `redirect_url (str)`: +* `paytree_customer_number (str)`: ## Banks -* `rows (Bank[])`: -* `count (number)`: +* `rows (list of Banks)`: +* `count (int)`: -`rows`は [Bank](#bank) オブジェクトの配列を返します。 +`rows`は [Bank](#bank) オブジェクトのリストを返します。 + + +## BankDeleted ## PaginatedTransaction -* `rows (Transaction[])`: -* `count (number)`: +* `rows (list of Transactions)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [Transaction](#transaction) オブジェクトの配列を返します。 +`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 (list of Transactions)`: +* `per_page (int)`: +* `count (int)`: +* `next_page_cursor_id (str)`: +* `prev_page_cursor_id (str)`: + +`rows`は [Transaction](#transaction) オブジェクトのリストを返します。 + + +## PaginatedBillTransaction +* `rows (list of BillTransactions)`: +* `per_page (int)`: +* `count (int)`: +* `next_page_cursor_id (str)`: +* `prev_page_cursor_id (str)`: -`rows`は [Transaction](#transaction) オブジェクトの配列を返します。 +`rows`は [BillTransaction](#bill-transaction) オブジェクトのリストを返します。 ## PaginatedTransfers -* `rows (Transfer[])`: -* `count (number)`: +* `rows (list of Transfers)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [Transfer](#transfer) オブジェクトの配列を返します。 +`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 (list of Transfers)`: +* `per_page (int)`: +* `count (int)`: +* `next_page_cursor_id (str)`: +* `prev_page_cursor_id (str)`: -`rows`は [Transfer](#transfer) オブジェクトの配列を返します。 +`rows`は [Transfer](#transfer) オブジェクトのリストを返します。 ## PaginatedAccountWithUsers -* `rows (AccountWithUser[])`: -* `count (number)`: +* `rows (list of AccountWithUsers)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [AccountWithUser](#account-with-user) オブジェクトの配列を返します。 +`rows`は [AccountWithUser](#account-with-user) オブジェクトのリストを返します。 `pagination`は [Pagination](#pagination) オブジェクトを返します。 ## PaginatedAccountDetails -* `rows (AccountDetail[])`: -* `count (number)`: +* `rows (list of AccountDetails)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [AccountDetail](#account-detail) オブジェクトの配列を返します。 +`rows`は [AccountDetail](#account-detail) オブジェクトのリストを返します。 `pagination`は [Pagination](#pagination) オブジェクトを返します。 ## PaginatedAccountBalance -* `rows (AccountBalance[])`: -* `count (number)`: +* `rows (list of AccountBalances)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [AccountBalance](#account-balance) オブジェクトの配列を返します。 +`rows`は [AccountBalance](#account-balance) オブジェクトのリストを返します。 `pagination`は [Pagination](#pagination) オブジェクトを返します。 ## PaginatedShops -* `rows (ShopWithMetadata[])`: -* `count (number)`: +* `rows (list of ShopWithMetadatas)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [ShopWithMetadata](#shop-with-metadata) オブジェクトの配列を返します。 +`rows`は [ShopWithMetadata](#shop-with-metadata) オブジェクトのリストを返します。 `pagination`は [Pagination](#pagination) オブジェクトを返します。 ## PaginatedBills -* `rows (Bill[])`: -* `count (number)`: +* `rows (list of Bills)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [Bill](#bill) オブジェクトの配列を返します。 +`rows`は [Bill](#bill) オブジェクトのリストを返します。 `pagination`は [Pagination](#pagination) オブジェクトを返します。 ## PaginatedPrivateMoneys -* `rows (PrivateMoney[])`: -* `count (number)`: +* `rows (list of PrivateMoneys)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [PrivateMoney](#private-money) オブジェクトの配列を返します。 +`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)`: キャンペーン説明文 +* `id (str)`: キャンペーンID +* `name (str)`: キャペーン名 +* `applicable_shops (list of Users)`: キャンペーン適用対象の店舗リスト +* `is_exclusive (bool)`: キャンペーンの重複を許すかどうかのフラグ +* `starts_at (str)`: キャンペーン開始日時 +* `ends_at (str)`: キャンペーン終了日時 +* `point_expires_at (str)`: キャンペーンによって付与されるポイントの失効日時 +* `point_expires_in_days (int)`: キャンペーンによって付与されるポイントの有効期限(相対指定、単位は日) +* `priority (int)`: キャンペーンの優先順位 +* `description (str)`: キャンペーン説明文 * `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)`: キャンペーンの付与集計日時 +* `max_total_point_amount (int)`: 一人当たりの累計ポイント上限 +* `point_calculation_rule (str)`: ポイント計算ルール (banklisp表記) +* `point_calculation_rule_object (str)`: ポイント計算ルール (JSON文字列による表記) +* `status (str)`: キャンペーンの現在の状態 +* `budget_caps_amount (int)`: キャンペーンの予算上限額 +* `budget_current_amount (int)`: キャンペーンの付与合計額 +* `budget_current_time (str)`: キャンペーンの付与集計日時 -`applicable-shops`は [User](#user) オブジェクトの配列を返します。 +`applicable-shops`は [User](#user) オブジェクトのリストを返します。 `bear_point_shop`は [User](#user) オブジェクトを返します。 @@ -421,133 +417,150 @@ ## PaginatedCampaigns -* `rows (Campaign[])`: -* `count (number)`: +* `rows (list of Campaigns)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [Campaign](#campaign) オブジェクトの配列を返します。 +`rows`は [Campaign](#campaign) オブジェクトのリストを返します。 `pagination`は [Pagination](#pagination) オブジェクトを返します。 ## AccountTransferSummary -* `summaries (AccountTransferSummaryElement[])`: +* `summaries (list of AccountTransferSummaryElements)`: -`summaries`は [AccountTransferSummaryElement](#account-transfer-summary-element) オブジェクトの配列を返します。 +`summaries`は [AccountTransferSummaryElement](#account-transfer-summary-element) オブジェクトのリストを返します。 ## OrganizationWorkerTaskWebhook -* `id (string)`: -* `organization_code (string)`: -* `task (string)`: -* `url (string)`: -* `content_type (string)`: -* `is_active (boolean)`: +* `id (str)`: +* `organization_code (str)`: +* `task (str)`: +* `url (str)`: +* `content_type (str)`: +* `is_active (bool)`: ## PaginatedOrganizationWorkerTaskWebhook -* `rows (OrganizationWorkerTaskWebhook[])`: -* `count (number)`: +* `rows (list of OrganizationWorkerTaskWebhooks)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [OrganizationWorkerTaskWebhook](#organization-worker-task-webhook) オブジェクトの配列を返します。 +`rows`は [OrganizationWorkerTaskWebhook](#organization-worker-task-webhook) オブジェクトのリストを返します。 `pagination`は [Pagination](#pagination) オブジェクトを返します。 ## CouponDetail -* `id (string)`: クーポンID -* `name (string)`: クーポン名 +* `id (str)`: クーポンID +* `name (str)`: クーポン名 * `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[])`: 利用可能店舗リスト +* `description (str)`: クーポンの説明文 +* `discount_amount (int)`: クーポンによる値引き額(絶対値指定) +* `discount_percentage (float)`: クーポンによる値引き率 +* `discount_upper_limit (int)`: クーポンによる値引き上限(値引き率が指定された場合の値引き上限額) +* `starts_at (str)`: クーポンの利用可能期間(開始日時) +* `ends_at (str)`: クーポンの利用可能期間(終了日時) +* `display_starts_at (str)`: クーポンの掲載期間(開始日時) +* `display_ends_at (str)`: クーポンの掲載期間(終了日時) +* `usage_limit (int)`: ユーザごとの利用可能回数(NULLの場合は無制限) +* `min_amount (int)`: クーポン適用可能な最小取引額 +* `is_shop_specified (bool)`: 特定店舗限定のクーポンかどうか +* `is_hidden (bool)`: クーポン一覧に掲載されるかどうか +* `is_public (bool)`: アプリ配信なしで受け取れるかどうか +* `code (str)`: クーポン受け取りコード +* `is_disabled (bool)`: 無効化フラグ +* `token (str)`: クーポンを特定するためのトークン +* `coupon_image (str)`: クーポン画像のURL +* `available_shops (list of Users)`: 利用可能店舗リスト * `private_money (PrivateMoney)`: クーポンのマネー `issued_shop`は [User](#user) オブジェクトを返します。 -`available-shops`は [User](#user) オブジェクトの配列を返します。 +`available-shops`は [User](#user) オブジェクトのリストを返します。 `private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 ## PaginatedCoupons -* `rows (Coupon[])`: -* `count (number)`: +* `rows (list of Coupons)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [Coupon](#coupon) オブジェクトの配列を返します。 +`rows`は [Coupon](#coupon) オブジェクトのリストを返します。 `pagination`は [Pagination](#pagination) オブジェクトを返します。 ## PaginatedOrganizations -* `rows (Organization[])`: -* `count (number)`: +* `rows (list of Organizations)`: +* `count (int)`: * `pagination (Pagination)`: -`rows`は [Organization](#organization) オブジェクトの配列を返します。 +`rows`は [Organization](#organization) オブジェクトのリストを返します。 `pagination`は [Pagination](#pagination) オブジェクトを返します。 + +## SevenBankATMSession +* `qr_info (str)`: +* `account (AccountDetail)`: +* `amount (int)`: +* `transaction (Transaction)`: +* `seven_bank_customer_number (str)`: +* `atm_id (str)`: +* `audi_id (str)`: +* `issuer_code (str)`: +* `issuer_name (str)`: +* `money_name (str)`: + +`account`は [AccountDetail](#account-detail) オブジェクトを返します。 + +`transaction`は [Transaction](#transaction) オブジェクトを返します。 + ## PrivateMoney -* `id (string)`: マネーID -* `name (string)`: マネー名 -* `unit (string)`: マネー単位 (例: 円) -* `is_exclusive (boolean)`: 会員制のマネーかどうか -* `description (string)`: マネー説明文 -* `oneline_message (string)`: マネーの要約 +* `id (str)`: マネーID +* `name (str)`: マネー名 +* `unit (str)`: マネー単位 (例: 円) +* `is_exclusive (bool)`: 会員制のマネーかどうか +* `description (str)`: マネー説明文 +* `oneline_message (str)`: マネーの要約 * `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)`: +* `max_balance (float)`: ウォレットの上限金額 +* `transfer_limit (float)`: マネーの取引上限額 +* `money_topup_transfer_limit (float)`: マネーチャージ取引上限額 +* `type (str)`: マネー種別 (自家型=own, 第三者型=third-party) +* `expiration_type (str)`: 有効期限種別 (チャージ日起算=static, 最終利用日起算=last-update, 最終チャージ日起算=last-topup-update) +* `enable_topup_by_member (bool)`: (deprecated) +* `display_money_and_point (str)`: `organization`は [Organization](#organization) オブジェクトを返します。 ## Pagination -* `current (number)`: -* `per_page (number)`: -* `max_page (number)`: -* `has_prev (boolean)`: -* `has_next (boolean)`: +* `current (int)`: +* `per_page (int)`: +* `max_page (int)`: +* `has_prev (bool)`: +* `has_next (bool)`: ## Transaction -* `id (string)`: 取引ID -* `type (string)`: 取引種別 -* `is_modified (boolean)`: 返金された取引かどうか +* `id (str)`: 取引ID +* `type (str)`: 取引種別 +* `is_modified (bool)`: 返金された取引かどうか * `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)`: 取引説明文 +* `amount (float)`: 取引総額 (マネー額 + ポイント額) +* `money_amount (float)`: 取引マネー額 +* `point_amount (float)`: 取引ポイント額(キャンペーン付与ポイント合算) +* `raw_point_amount (float)`: 取引ポイント額 +* `campaign_point_amount (float)`: キャンペーンによるポイント付与額 +* `done_at (str)`: 取引日時 +* `description (str)`: 取引説明文 `receiver`と`sender`は [User](#user) オブジェクトを返します。 @@ -555,15 +568,15 @@ ## ExternalTransaction -* `id (string)`: ポケペイ外部取引ID -* `is_modified (boolean)`: 返金された取引かどうか +* `id (str)`: ポケペイ外部取引ID +* `is_modified (bool)`: 返金された取引かどうか * `sender (User)`: 送金者情報 * `sender_account (Account)`: 送金ウォレット情報 * `receiver (User)`: 受取者情報 * `receiver_account (Account)`: 受取ウォレット情報 -* `amount (number)`: 決済額 -* `done_at (string)`: 取引日時 -* `description (string)`: 取引説明文 +* `amount (float)`: 決済額 +* `done_at (str)`: 取引日時 +* `description (str)`: 取引説明文 `receiver`と`sender`は [User](#user) オブジェクトを返します。 @@ -572,72 +585,72 @@ ## CashtrayAttempt * `account (AccountWithUser)`: エンドユーザーのウォレット -* `status_code (number)`: ステータスコード -* `error_type (string)`: エラー型 -* `error_message (string)`: エラーメッセージ -* `created_at (string)`: Cashtray読み取り記録の作成日時 +* `status_code (float)`: ステータスコード +* `error_type (str)`: エラー型 +* `error_message (str)`: エラーメッセージ +* `created_at (str)`: Cashtray読み取り記録の作成日時 `account`は [AccountWithUser](#account-with-user) オブジェクトを返します。 ## Account -* `id (string)`: ウォレットID -* `name (string)`: ウォレット名 -* `is_suspended (boolean)`: ウォレットが凍結されているかどうか -* `status (string)`: +* `id (str)`: ウォレットID +* `name (str)`: ウォレット名 +* `is_suspended (bool)`: ウォレットが凍結されているかどうか +* `status (str)`: * `private_money (PrivateMoney)`: 設定マネー情報 `private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 ## Transfer -* `id (string)`: +* `id (str)`: * `sender_account (AccountWithoutPrivateMoneyDetail)`: * `receiver_account (AccountWithoutPrivateMoneyDetail)`: -* `amount (number)`: -* `money_amount (number)`: -* `point_amount (number)`: -* `done_at (string)`: -* `type (string)`: -* `description (string)`: -* `transaction_id (string)`: +* `amount (float)`: +* `money_amount (float)`: +* `point_amount (float)`: +* `done_at (str)`: +* `type (str)`: +* `description (str)`: +* `transaction_id (str)`: `receiver_account`と`sender_account`は [AccountWithoutPrivateMoneyDetail](#account-without-private-money-detail) オブジェクトを返します。 ## ShopAccount -* `id (string)`: ウォレットID -* `name (string)`: ウォレット名 -* `is_suspended (boolean)`: ウォレットが凍結されているかどうか -* `can_transfer_topup (boolean)`: チャージ可能かどうか +* `id (str)`: ウォレットID +* `name (str)`: ウォレット名 +* `is_suspended (bool)`: ウォレットが凍結されているかどうか +* `can_transfer_topup (bool)`: チャージ可能かどうか * `private_money (PrivateMoney)`: 設定マネー情報 `private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 ## BulkTransactionJob -* `id (number)`: +* `id (int)`: * `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)`: バルク取引ジョブが更新された日時 +* `type (str)`: 取引種別 +* `sender_account_id (str)`: +* `receiver_account_id (str)`: +* `money_amount (float)`: +* `point_amount (float)`: +* `description (str)`: バルク取引ジョブ管理用の説明文 +* `bear_point_account_id (str)`: +* `point_expires_at (str)`: ポイント有効期限 +* `status (str)`: バルク取引ジョブの状態 +* `error (str)`: バルク取引のエラー種別 +* `lineno (int)`: バルク取引のエラーが発生した行番号 +* `transaction_id (str)`: +* `created_at (str)`: バルク取引ジョブが登録された日時 +* `updated_at (str)`: バルク取引ジョブが更新された日時 `bulk_transaction`は [BulkTransaction](#bulk-transaction) オブジェクトを返します。 ## PrivateMoneyOrganizationSummary -* `organization_code (string)`: +* `organization_code (str)`: * `topup (OrganizationSummary)`: * `payment (OrganizationSummary)`: @@ -645,84 +658,93 @@ ## Bank -* `id (string)`: +* `id (str)`: * `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)`: +* `bank_name (str)`: +* `bank_code (str)`: +* `branch_number (str)`: +* `branch_name (str)`: +* `deposit_type (str)`: +* `masked_account_number (str)`: +* `account_name (str)`: `private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + +## BillTransaction +* `transaction (Transaction)`: +* `bill (Bill)`: + +`transaction`は [Transaction](#transaction) オブジェクトを返します。 + +`bill`は [Bill](#bill) オブジェクトを返します。 + ## AccountBalance -* `expires_at (string)`: -* `money_amount (number)`: -* `point_amount (number)`: +* `expires_at (str)`: +* `money_amount (float)`: +* `point_amount (float)`: ## ShopWithMetadata -* `id (string)`: 店舗ID -* `name (string)`: 店舗名 -* `organization_code (string)`: 組織コード -* `status (string)`: 店舗の状態 -* `postal_code (string)`: 店舗の郵便番号 -* `address (string)`: 店舗の住所 -* `tel (string)`: 店舗の電話番号 -* `email (string)`: 店舗のメールアドレス -* `external_id (string)`: 店舗の外部ID +* `id (str)`: 店舗ID +* `name (str)`: 店舗名 +* `organization_code (str)`: 組織コード +* `status (str)`: 店舗の状態 +* `postal_code (str)`: 店舗の郵便番号 +* `address (str)`: 店舗の住所 +* `tel (str)`: 店舗の電話番号 +* `email (str)`: 店舗のメールアドレス +* `external_id (str)`: 店舗の外部ID ## AccountTransferSummaryElement -* `transfer_type (string)`: -* `money_amount (number)`: -* `point_amount (number)`: -* `count (number)`: +* `transfer_type (str)`: +* `money_amount (float)`: +* `point_amount (float)`: +* `count (float)`: ## Coupon -* `id (string)`: クーポンID -* `name (string)`: クーポン名 +* `id (str)`: クーポンID +* `name (str)`: クーポン名 * `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)`: クーポンを特定するためのトークン +* `description (str)`: クーポンの説明文 +* `discount_amount (int)`: クーポンによる値引き額(絶対値指定) +* `discount_percentage (float)`: クーポンによる値引き率 +* `discount_upper_limit (int)`: クーポンによる値引き上限(値引き率が指定された場合の値引き上限額) +* `starts_at (str)`: クーポンの利用可能期間(開始日時) +* `ends_at (str)`: クーポンの利用可能期間(終了日時) +* `display_starts_at (str)`: クーポンの掲載期間(開始日時) +* `display_ends_at (str)`: クーポンの掲載期間(終了日時) +* `usage_limit (int)`: ユーザごとの利用可能回数(NULLの場合は無制限) +* `min_amount (int)`: クーポン適用可能な最小取引額 +* `is_shop_specified (bool)`: 特定店舗限定のクーポンかどうか +* `is_hidden (bool)`: クーポン一覧に掲載されるかどうか +* `is_public (bool)`: アプリ配信なしで受け取れるかどうか +* `code (str)`: クーポン受け取りコード +* `is_disabled (bool)`: 無効化フラグ +* `token (str)`: クーポンを特定するためのトークン `issued_shop`は [User](#user) オブジェクトを返します。 ## AccountWithoutPrivateMoneyDetail -* `id (string)`: -* `name (string)`: -* `is_suspended (boolean)`: -* `status (string)`: -* `private_money_id (string)`: +* `id (str)`: +* `name (str)`: +* `is_suspended (bool)`: +* `status (str)`: +* `private_money_id (str)`: * `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)`: +* `count (int)`: +* `money_amount (float)`: +* `money_count (int)`: +* `point_amount (float)`: +* `raw_point_amount (float)`: +* `campaign_point_amount (float)`: +* `point_count (int)`: diff --git a/docs/seven_bank_atm_session.md b/docs/seven_bank_atm_session.md new file mode 100644 index 0000000..bc2cfc3 --- /dev/null +++ b/docs/seven_bank_atm_session.md @@ -0,0 +1,40 @@ +# SevenBankATMSession +セブンATMチャージの取引内容を照会するAPIを提供しています。 + + + +## GetSevenBankATMSession: セブン銀行ATMセッションの取得 +セブン銀行ATMセッションを取得します + +```PYTHON +response = client.send(pp.GetSevenBankAtmSession( + "x" # qr_info: QRコードの情報 +)) +``` + + + +### Parameters +**`qr_info`** + + +取得するセブン銀行ATMチャージのQRコードの情報です。 + +```json +{ + "type": "string" +} +``` + + + +成功したときは +[SevenBankATMSession](./responses.md#seven-bank-atm-session) +を返します + + + +--- + + + diff --git a/docs/shop.md b/docs/shop.md index 5ec4000..7e63c4b 100644 --- a/docs/shop.md +++ b/docs/shop.md @@ -3,20 +3,20 @@ ## 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: "553-4812", // 店舗の郵便番号 - address: "東京都港区芝...", // 店舗の住所 - tel: "02809195-646", // 店舗の電話番号 - email: "YcLTC4xCAB@Leko.com", // 店舗のメールアドレス - external_id: "D1pN0MSUSSu62wEl3iPUk", // 店舗の外部ID - with_disabled: true, // 無効な店舗を含める - page: 1, // ページ番号 - per_page: 50 // 1ページ分の取引数 -})); +```PYTHON +response = client.send(pp.ListShops( + organization_code="pocketchange", # 組織コード + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + name="oxスーパー三田店", # 店舗名 + postal_code="629-6586", # 店舗の郵便番号 + address="東京都港区芝...", # 店舗の住所 + tel="030-5979-102", # 店舗の電話番号 + email="KqhRSKyv4a@eUNi.com", # 店舗のメールアドレス + external_id="5kIXisF2lvLdWFAH9CECfmZyv", # 店舗の外部ID + with_disabled=False, # 無効な店舗を含める + page=1, # ページ番号 + per_page=50 # 1ページ分の取引数 +)) ``` @@ -175,8 +175,9 @@ const response: Response = await client.send(new ListShops({ |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|organization_not_found||Organization not found| +|503|temporarily_unavailable||Service Unavailable| @@ -187,16 +188,16 @@ const response: Response = await client.send(new ListShops({ ## CreateShop: 【廃止】新規店舗を追加する 新規店舗を追加します。このAPIは廃止予定です。以降は `CreateShopV2` を使用してください。 -```typescript -const response: Response = await client.send(new CreateShop({ - shop_name: "oxスーパー三田店", // 店舗名 - shop_postal_code: "003-6412", // 店舗の郵便番号 - shop_address: "東京都港区芝...", // 店舗の住所 - shop_tel: "0217-471262", // 店舗の電話番号 - shop_email: "WXvcqkH6OC@G8bj.com", // 店舗のメールアドレス - shop_external_id: "s6Wxag7", // 店舗の外部ID - organization_code: "ox-supermarket" // 組織コード -})); +```PYTHON +response = client.send(pp.CreateShop( + "oxスーパー三田店", # shop_name: 店舗名 + shop_postal_code="708-1722", # 店舗の郵便番号 + shop_address="東京都港区芝...", # 店舗の住所 + shop_tel="09532-409", # 店舗の電話番号 + shop_email="EBsOM5mHn7@CA1S.com", # 店舗のメールアドレス + shop_external_id="M3xNEFCgQheyCbSnP7P0SqnjQ", # 店舗の外部ID + organization_code="ox-supermarket" # 組織コード +)) ``` @@ -306,18 +307,18 @@ const response: Response = await client.send(new CreateShop({ ## CreateShopV2: 新規店舗を追加する -```typescript -const response: Response = await client.send(new CreateShopV2({ - name: "oxスーパー三田店", // 店舗名 - postal_code: "0664295", // 店舗の郵便番号 - address: "東京都港区芝...", // 店舗の住所 - tel: "00102538372", // 店舗の電話番号 - email: "xB23NKDv8d@Bki6.com", // 店舗のメールアドレス - external_id: "Z5MR", // 店舗の外部ID - organization_code: "ox-supermarket", // 組織コード - private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 店舗で有効にするマネーIDの配列 - can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"] // 店舗でチャージ可能にするマネーIDの配列 -})); +```PYTHON +response = client.send(pp.CreateShopV2( + "oxスーパー三田店", # name: 店舗名 + postal_code="7260579", # 店舗の郵便番号 + address="東京都港区芝...", # 店舗の住所 + tel="00-912-0892", # 店舗の電話番号 + email="AdXU9fbl4B@ElEf.com", # 店舗のメールアドレス + external_id="JcTmiRof0lbldCRsSSTgoxqh3a", # 店舗の外部ID + organization_code="ox-supermarket", # 組織コード + private_money_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗で有効にするマネーIDの配列 + can_topup_private_money_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"] # 店舗でチャージ可能にするマネーIDの配列 +)) ``` @@ -472,10 +473,10 @@ const response: Response = await client.send(new CreateShopV2( 権限に関わらず自組織の店舗情報は表示可能です。それに加え、発行体は自組織の発行しているマネーの加盟店組織の店舗情報を表示できます。 -```typescript -const response: Response = await client.send(new GetShop({ - shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 店舗ユーザーID -})); +```PYTHON +response = client.send(pp.GetShop( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # shop_id: 店舗ユーザーID +)) ``` @@ -507,19 +508,19 @@ const response: Response = await client.send(new GetShop({ ## UpdateShop: 店舗情報を更新する 店舗情報を更新します。bodyパラメーターは全て省略可能で、指定したもののみ更新されます。 -```typescript -const response: Response = await client.send(new UpdateShop({ - shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ユーザーID - name: "oxスーパー三田店", // 店舗名 - postal_code: "533-7267", // 店舗の郵便番号 - address: "東京都港区芝...", // 店舗の住所 - tel: "01-882601", // 店舗の電話番号 - email: "WjDXemYssW@VQAa.com", // 店舗のメールアドレス - external_id: "S9OW", // 店舗の外部ID - private_money_ids: [], // 店舗で有効にするマネーIDの配列 - can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 店舗でチャージ可能にするマネーIDの配列 - status: "disabled" // 店舗の状態 -})); +```PYTHON +response = client.send(pp.UpdateShop( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ユーザーID + name="oxスーパー三田店", # 店舗名 + postal_code="394-8815", # 店舗の郵便番号 + address="東京都港区芝...", # 店舗の住所 + tel="03708-3473", # 店舗の電話番号 + email="gaH3XPjunt@8Ngf.com", # 店舗のメールアドレス + external_id="fostplBJ13qPcX", # 店舗の外部ID + private_money_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗で有効にするマネーIDの配列 + can_topup_private_money_ids=[], # 店舗でチャージ可能にするマネーIDの配列 + status="disabled" # 店舗の状態 +)) ``` diff --git a/docs/transaction.md b/docs/transaction.md index e940f05..56e9a28 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -4,10 +4,10 @@ ## GetCpmToken: CPMトークンの状態取得 CPMトークンの現在の状態を取得します。CPMトークンの有効期限やCPM取引の状態を返します。 -```typescript -const response: Response = await client.send(new GetCpmToken({ - cpm_token: "Km6uKQNQH3PDcRwUCecSBj" // CPMトークン -})); +```PYTHON +response = client.send(pp.GetCpmToken( + "tXGZ9lfp9TwgYPOmismihX" # cpm_token: CPMトークン +)) ``` @@ -41,23 +41,23 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを ## ListTransactions: 【廃止】取引履歴を取得する 取引一覧を返します。 -```typescript -const response: Response = await client.send(new ListTransactions({ - from: "2021-09-11T23:30:17.000000Z", // 開始日時 - to: "2022-05-22T06:21:04.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: "rY", // 取引ID - organization_code: "pocketchange", // 組織コード - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - is_modified: true, // キャンセルフラグ - types: ["topup", "payment"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment - description: "店頭QRコードによる支払い" // 取引説明文 -})); +```PYTHON +response = client.send(pp.ListTransactions( + start="2023-02-05T17:24:39.000000Z", # 開始日時 + to="2024-03-11T23:36:57.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="dh", # 取引ID + organization_code="pocketchange", # 組織コード + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + is_modified=False, # キャンセルフラグ + types=["topup", "payment"], # 取引種別 (複数指定可)、チャージ=topup、支払い=payment + description="店頭QRコードによる支払い" # 取引説明文 +)) ``` @@ -293,6 +293,7 @@ const response: Response = await client.send(new ListTrans |status|type|ja|en| |---|---|---|---| |403|NULL|NULL|NULL| +|503|temporarily_unavailable||Service Unavailable| @@ -303,16 +304,16 @@ const response: Response = await client.send(new ListTrans ## 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: 5717, - point_amount: 4033, - point_expires_at: "2023-12-23T02:04:08.000000Z", // ポイント有効期限 - description: "iJrkxUEwT3M91XjHrT" -})); +```PYTHON +response = client.send(pp.CreateTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + money_amount=134, + point_amount=9403, + point_expires_at="2020-12-01T09:26:04.000000Z", # ポイント有効期限 + description="6oAdT5yPsPRTmUYdZdYDDGZDuZn0XgqQIqTu14tSh13qLZDYdRTWbMgZiB4q5yXIKvcyeytZUeCOzn479Q7" +)) ``` @@ -411,11 +412,11 @@ const response: Response = await client.send(new CreateTransa |400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| |400|invalid_parameters|項目が無効です|Invalid parameters| |403|NULL|NULL|NULL| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| |422|customer_user_not_found||The customer user is not found| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| |422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| @@ -435,7 +436,7 @@ const response: Response = await client.send(new CreateTransa |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| @@ -443,6 +444,7 @@ const response: Response = await client.send(new CreateTransa |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| |503|temporarily_unavailable||Service Unavailable| @@ -454,24 +456,24 @@ const response: Response = await client.send(new CreateTransa ## 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: "7fMCl81I", // 取引ID - is_modified: true, // キャンセルフラグ - types: ["topup", "payment"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment - from: "2023-07-26T01:45:12.000000Z", // 開始日時 - to: "2021-05-20T02:13:37.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ページ分の取引数 -})); +```PYTHON +response = client.send(pp.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="7CQ6mo", # 取引ID + is_modified=False, # キャンセルフラグ + types=["topup", "payment"], # 取引種別 (複数指定可)、チャージ=topup、支払い=payment + start="2020-07-30T15:17:39.000000Z", # 開始日時 + to="2020-03-02T11:01:28.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ページ分の取引数 +)) ``` @@ -735,6 +737,267 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + + +## ListBillTransactions: 支払い取引履歴を取得する +支払いによって発生した取引を支払いのデータとともに一覧で返します。 + +```PYTHON +response = client.send(pp.ListBillTransactions( + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + organization_code="pocketchange", # 組織コード + 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 + description="店頭QRコードによる支払い", # 取引説明文 + transaction_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 取引ID + bill_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 支払いQRコードのID + is_modified=False, # キャンセルフラグ + start="2021-06-07T17:24:57.000000Z", # 開始日時 + to="2020-07-02T10:00:20.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" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_name`** + + +エンドユーザー名です。 + +フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`terminal_id`** + + +エンドユーザーの端末IDです。 +フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + +取引を指定の取引説明文でフィルターします。 + +取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`transaction_id`** + + +取引IDです。 + +フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`bill_id`** + + +支払いQRコードのIDです。 + +フィルターとして使われ、指定された支払いQRコードIDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_modified`** + + +キャンセルフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + +```json +{ + "type": "boolean" +} +``` + +**`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 +} +``` + + + +成功したときは +[PaginatedBillTransaction](./responses.md#paginated-bill-transaction) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|503|temporarily_unavailable||Service Unavailable| @@ -745,19 +1008,19 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ ## 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: 7635, // マネー額 - point_amount: 7752, // ポイント額 - point_expires_at: "2021-01-04T13:53:36.000000Z", // ポイント有効期限 - description: "初夏のチャージキャンペーン", // 取引履歴に表示する説明文 - metadata: "{\"key\":\"value\"}", // 取引メタデータ - request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID -})); +```PYTHON +response = client.send(pp.CreateTopupTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーのID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + bear_point_shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント支払時の負担店舗ID + money_amount=1789, # マネー額 + point_amount=4484, # ポイント額 + point_expires_at="2023-01-14T15:33:35.000000Z", # ポイント有効期限 + description="初夏のチャージキャンペーン", # 取引履歴に表示する説明文 + metadata="{\"key\":\"value\"}", # 取引メタデータ + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID +)) ``` @@ -898,6 +1161,7 @@ const response: Response = await client.send(new CreateTopupT 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -918,9 +1182,8 @@ const response: Response = await client.send(new CreateTopupT |400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| |400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| |422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| @@ -946,9 +1209,12 @@ const response: Response = await client.send(new CreateTopupT |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| -|422|private_money_not_found||Private money not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |503|temporarily_unavailable||Service Unavailable| @@ -962,23 +1228,30 @@ const response: Response = await client.send(new CreateTopupT 支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 -```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: 984, // 支払い額 - products: [{"jan_code":"abc", +```PYTHON +response = client.send(pp.CreatePaymentTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + 7889, # amount: 支払い額 + description="たい焼き(小倉)", # 取引履歴に表示する説明文 + metadata="{\"key\":\"value\"}", # 取引メタデータ + products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, "quantity": 1, - "is_discounted": false, - "other":"{}"}], // 商品情報データ - description: "たい焼き(小倉)", // 取引履歴に表示する説明文 - metadata: "{\"key\":\"value\"}", // 取引メタデータ - request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID -})); + "is_discounted": False, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, + "is_discounted": False, + "other":"{}"}], # 商品情報データ + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # リクエストID + strategy="point-preferred" # 支払い時の残高消費方式 +)) ``` @@ -1099,6 +1372,7 @@ const response: Response = await client.send(new CreatePaymen 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -1107,6 +1381,27 @@ const response: Response = await client.send(new CreatePaymen } ``` +**`strategy`** + + +支払い時に残高がどのように消費されるかを指定します。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + 成功したときは @@ -1116,11 +1411,9 @@ const response: Response = await client.send(new CreatePaymen ### Error Responses |status|type|ja|en| |---|---|---|---| -|400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| |422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| @@ -1146,9 +1439,12 @@ const response: Response = await client.send(new CreatePaymen |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| -|422|private_money_not_found||Private money not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |503|temporarily_unavailable||Service Unavailable| @@ -1162,34 +1458,23 @@ CPMトークンにより取引を作成します。 CPMトークンに設定されたスコープの取引を作ることができます。 -```typescript -const response: Response = await client.send(new CreateCpmTransaction({ - cpm_token: "TmEReE1YV9ebnUBpzD7d9D", // CPMトークン - shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - amount: 8647.0, // 取引金額 - products: [{"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "quantity": 1, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "quantity": 1, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", +```PYTHON +response = client.send(pp.CreateCpmTransaction( + "6jQwMdVQzET3CTZR3naadm", # cpm_token: CPMトークン + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID + 7535.0, # amount: 取引金額 + description="たい焼き(小倉)", # 取引説明文 + metadata="{\"key\":\"value\"}", # 店舗側メタデータ + products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, "quantity": 1, - "is_discounted": false, - "other":"{}"}], // 商品情報データ - description: "たい焼き(小倉)", // 取引説明文 - metadata: "{\"key\":\"value\"}", // 店舗側メタデータ - request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID -})); + "is_discounted": False, + "other":"{}"}], # 商品情報データ + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # リクエストID + strategy="point-preferred" # 支払い時の残高消費方式 +)) ``` @@ -1296,6 +1581,7 @@ const response: Response = await client.send(new CreateCpmTra 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -1304,6 +1590,27 @@ const response: Response = await client.send(new CreateCpmTra } ``` +**`strategy`** + + +支払い時に残高がどのように消費されるかを指定します。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + 成功したときは @@ -1313,17 +1620,15 @@ const response: Response = await client.send(new CreateCpmTra ### Error Responses |status|type|ja|en| |---|---|---|---| -|400|invalid_parameters|項目が無効です|Invalid parameters| |403|cpm_unacceptable_amount|このCPMトークンに対して許可されていない金額です。|The amount is unacceptable for the CPM token| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|cpm_token_already_proceed|このCPMトークンは既に処理されています。|The CPM token is already proceed| |422|cpm_token_already_expired|このCPMトークンは既に失効しています。|The CPM token is already expired| |422|cpm_token_not_found|CPMトークンが見つかりませんでした。|The CPM token is not found.| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| |422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| @@ -1343,7 +1648,7 @@ const response: Response = await client.send(new CreateCpmTra |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| @@ -1351,6 +1656,9 @@ const response: Response = await client.send(new CreateCpmTra |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| @@ -1364,16 +1672,16 @@ const response: Response = await client.send(new CreateCpmTra 個人間送金で送れるのはマネーのみで、ポイントを送ることはできません。送金元のマネー残高のうち、有効期限が最も遠いものから順に送金されます。 -```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: 3614.0, // 送金額 - metadata: "{\"key\":\"value\"}", // 取引メタデータ - description: "たい焼き(小倉)", // 取引履歴に表示する説明文 - request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID -})); +```PYTHON +response = client.send(pp.CreateTransferTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # sender_id: 送金元ユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # receiver_id: 受取ユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + 1615.0, # amount: 送金額 + metadata="{\"key\":\"value\"}", # 取引メタデータ + description="たい焼き(小倉)", # 取引履歴に表示する説明文 + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID +)) ``` @@ -1471,6 +1779,7 @@ const response: Response = await client.send(new CreateTransf 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -1488,13 +1797,11 @@ const response: Response = await client.send(new CreateTransf ### Error Responses |status|type|ja|en| |---|---|---|---| -|400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| |422|customer_user_not_found||The customer user is not found| -|422|private_money_not_found||Private money not found| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| |422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| @@ -1514,7 +1821,7 @@ const response: Response = await client.send(new CreateTransf |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| @@ -1522,6 +1829,9 @@ const response: Response = await client.send(new CreateTransf |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| @@ -1532,15 +1842,15 @@ const response: Response = await client.send(new CreateTransf ## 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: 1360, - description: "vPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3", - request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID -})); +```PYTHON +response = client.send(pp.CreateExchangeTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + 2693, + description="37wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5QfKEnNvZa51B6RuNHWw3kkEIImb7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6FlBm7k1iTzlm9ILQGKVJoUCSY35cdkgvsbAYCbaEHjTHUmx8bpMxYByLz0xsJRhRVsB", + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID +)) ``` @@ -1609,6 +1919,7 @@ const response: Response = await client.send(new CreateExchan 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -1626,8 +1937,6 @@ const response: Response = await client.send(new CreateExchan ### Error Responses |status|type|ja|en| |---|---|---|---| -|400|invalid_parameters|項目が無効です|Invalid parameters| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| |422|account_not_found|アカウントが見つかりません|The account is not found| |422|transaction_restricted||Transaction is not allowed| |422|can_not_exchange_between_same_private_money|同じマネーとの交換はできません|| @@ -1637,6 +1946,7 @@ const response: Response = await client.send(new CreateExchan |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| |422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| @@ -1646,6 +1956,7 @@ const response: Response = await client.send(new CreateExchan |422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| |422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| |422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| |422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| |422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| @@ -1658,6 +1969,7 @@ const response: Response = await client.send(new CreateExchan |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| |422|account_closed|アカウントは退会しています|The account is closed| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| |503|temporarily_unavailable||Service Unavailable| @@ -1669,10 +1981,10 @@ const response: Response = await client.send(new CreateExchan ## GetTransaction: 取引情報を取得する 取引を取得します。 -```typescript -const response: Response = await client.send(new GetTransaction({ - transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 取引ID -})); +```PYTHON +response = client.send(pp.GetTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # transaction_id: 取引ID +)) ``` @@ -1713,12 +2025,12 @@ const response: Response = await client.send(new GetTransacti チャージ取引のキャンセル時に返金すべき残高が足りないときは `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: "2021-03-07T17:35:30.000000Z" // 返却ポイントの有効期限 -})); +```PYTHON +response = client.send(pp.RefundTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # transaction_id: 取引ID + description="返品対応のため", # 取引履歴に表示する返金事由 + returning_point_expires_at="2023-08-16T16:39:07.000000Z" # 返却ポイントの有効期限 +)) ``` @@ -1773,10 +2085,10 @@ const response: Response = await client.send(new RefundTransa ## GetTransactionByRequestId: リクエストIDから取引情報を取得する 取引を取得します。 -```typescript -const response: Response = await client.send(new GetTransactionByRequestId({ - request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID -})); +```PYTHON +response = client.send(pp.GetTransactionByRequestId( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # request_id: リクエストID +)) ``` @@ -1810,10 +2122,10 @@ const response: Response = await client.send(new GetTransacti ## GetBulkTransaction: バルク取引ジョブの実行状況を取得する -```typescript -const response: Response = await client.send(new GetBulkTransaction({ - bulk_transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // バルク取引ジョブID -})); +```PYTHON +response = client.send(pp.GetBulkTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # bulk_transaction_id: バルク取引ジョブID +)) ``` @@ -1846,12 +2158,12 @@ const response: Response = await client.send(new GetBulkTransac ## 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ページ分の取得数 -})); +```PYTHON +response = client.send(pp.ListBulkTransactionJobs( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # bulk_transaction_id: バルク取引ジョブID + page=1, # ページ番号 + per_page=50 # 1ページ分の取得数 +)) ``` @@ -1924,11 +2236,11 @@ CSVの作成は非同期で行われるため完了まで少しの間待つ必 また、指定期間より前の決済を時間をおいてキャンセルした場合などには 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" // 集計期間の終了時刻 -})); +```PYTHON +response = client.send(pp.RequestUserStats( + "2022-05-20T17:56:49.000000+09:00", # from: 集計期間の開始時刻 + "2023-12-10T01:16:11.000000+09:00" # to: 集計期間の終了時刻 +)) ``` @@ -1980,4 +2292,56 @@ const response: Response = await client.send(new RequestUser --- + +## TerminateUserStats: RequestUserStatsのタスクを強制終了する +RequestUserStatsによるファイル生成のタスクを強制終了するためのAPIです。 +RequestUserStatsのレスポンス中の `operation_id` をキーにして強制終了リクエストを送ります。 +既に集計タスクが終了している場合は何も行いません。 +発行体に対して結果通知用のWebhook URLが設定されている場合、強制終了成功時には以下のような内容のPOSTリクエストが送られます。 + +- task: "process_user_stats_operation" +- operation_id: 強制終了対象のタスクID +- status: "terminated" + +```PYTHON +response = client.send(pp.TerminateUserStats( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # operation_id: 集計タスクID +)) +``` + + + +### Parameters +**`operation_id`** + + +強制終了対象の集計タスクIDです。 +必須パラメータであり、指定されたタスクIDが存在しない場合は `user_stats_operation_not_found`エラー(422)が返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserStatsOperation](./responses.md#user-stats-operation) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|user_stats_operation_already_done|指定されたIDの集計処理タスクは既に完了しています|The specified user stats operation is already done| +|422|user_stats_operation_not_found|指定されたIDの集計処理タスクが見つかりません|User stats task not found for the operation ID| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + diff --git a/docs/transfer.md b/docs/transfer.md index 9e8815e..b2afd81 100644 --- a/docs/transfer.md +++ b/docs/transfer.md @@ -4,13 +4,13 @@ ## GetAccountTransferSummary: ウォレットを指定して取引明細種別毎の集計を返す -```typescript -const response: Response = await client.send(new GetAccountTransferSummary({ - account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID - from: "2023-04-22T08:46:24.000000Z", // 集計期間の開始時刻 - to: "2020-09-13T23:17:15.000000Z", // 集計期間の終了時刻 - transfer_types: ["topup", "payment"] // 取引明細種別 (複数指定可) -})); +```PYTHON +response = client.send(pp.GetAccountTransferSummary( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID + start="2020-11-02T03:49:28.000000Z", # 集計期間の開始時刻 + to="2020-05-16T18:29:14.000000Z", # 集計期間の終了時刻 + transfer_types=["topup", "payment"] # 取引明細種別 (複数指定可) +)) ``` @@ -120,23 +120,23 @@ const response: Response = await client.send(new GetAcco ## ListTransfers -```typescript -const response: Response = await client.send(new ListTransfers({ - from: "2023-11-06T15:31:02.000000Z", - to: "2023-04-27T15:13:46.000000Z", - page: 2519, - per_page: 2166, - shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - shop_name: "m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ", - customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - customer_name: "55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEz", - transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - is_modified: false, - transaction_types: ["transfer", "exchange", "payment", "expire", "topup"], - transfer_types: ["exchange", "expire", "topup", "payment", "coupon"], // 取引明細の種類でフィルターします。 - description: "店頭QRコードによる支払い" // 取引詳細説明文 -})); +```PYTHON +response = client.send(pp.ListTransfers( + start="2023-05-06T00:13:31.000000Z", + to="2021-03-26T13:47:58.000000Z", + page=4874, + per_page=6887, + shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + shop_name="WzO75yHWR5FLMa9CO3GmqQepv7doxpRjgZI2VSDvLJkkZMMdEANfWVavAje3PJg4zkA5dwRQrAEDCEBzCTk0pNAGkxkj3y6QjLE9oTv9S3Zg4O5dK9OBTn3gY0HIwJr5Xn6R9PIw5eC52tvIBnMyMg4CnT2dj7ORUTt4jEgn4792da7QYy7V605lzcBixe", + customer_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + customer_name="rwgOsZo2yFQXiifPwyEPkMTjwK5UmBamQcUvvHD25XYGaGoRmlkWpVKSQYACWhdJgT5oXIAxp1c5Q2vG7By91KC2xkwbMvROWfUAhh6XnZz0yJYgRGAM6oTzljbZYS", + transaction_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + is_modified=False, + transaction_types=["payment", "exchange"], + transfer_types=["exchange", "cashback", "expire", "campaign", "topup", "payment", "transfer"], # 取引明細の種類でフィルターします。 + description="店頭QRコードによる支払い" # 取引詳細説明文 +)) ``` @@ -354,6 +354,7 @@ const response: Response = await client.send(new ListTransfe |status|type|ja|en| |---|---|---|---| |403|NULL|NULL|NULL| +|503|temporarily_unavailable||Service Unavailable| @@ -363,24 +364,24 @@ const response: Response = await client.send(new ListTransfe ## ListTransfersV2 -```typescript -const response: Response = await client.send(new ListTransfersV2({ - shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - shop_name: "YwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x", // 店舗名 - customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID - customer_name: "fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m", // エンドユーザー名 - transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - is_modified: true, // キャンセルフラグ - transaction_types: ["payment", "topup"], // 取引種別 (複数指定可)、チャージ=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"], // 取引明細種別 (複数指定可) - description: "店頭QRコードによる支払い", // 取引詳細説明文 - from: "2021-03-13T08:53:43.000000Z", // 開始日時 - to: "2023-03-05T13:08:25.000000Z" // 終了日時 -})); +```PYTHON +response = client.send(pp.ListTransfersV2( + shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID + shop_name="DiVxdn1z0TuA7dLQ8GnuuGnm3um0ZKYlqHYAPfacx4ba4pxXiFCicQd3QQrdtpp5IlW8KnTaroT8w3801ZxeZpTa0FFkkUFLVC", # 店舗名 + customer_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # エンドユーザーID + customer_name="Kp9TvCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7EhkzGk22yYle2ZOPXJOiEYcNwwBKhoxC", # エンドユーザー名 + transaction_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 取引ID + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + is_modified=True, # キャンセルフラグ + transaction_types=["payment", "topup", "cashback", "exchange"], # 取引種別 (複数指定可)、チャージ=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=["cashback"], # 取引明細種別 (複数指定可) + description="店頭QRコードによる支払い", # 取引詳細説明文 + start="2023-05-13T00:11:05.000000Z", # 開始日時 + to="2022-05-27T13:59:30.000000Z" # 終了日時 +)) ``` @@ -677,6 +678,7 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|503|temporarily_unavailable||Service Unavailable| diff --git a/docs/user.md b/docs/user.md index 956113b..aa9b25e 100644 --- a/docs/user.md +++ b/docs/user.md @@ -1,29 +1,3 @@ # User - -## GetUser - -```typescript -const response: Response = await client.send(new GetUser()); -``` - - - - - - -成功したときは -[AdminUserWithShopsAndPrivateMoneys](./responses.md#admin-user-with-shops-and-private-moneys) -を返します - -### Error Responses -|status|type|ja|en| -|---|---|---|---| -|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| - - - ---- - - diff --git a/docs/user_device.md b/docs/user_device.md index e6ad387..2a1128d 100644 --- a/docs/user_device.md +++ b/docs/user_device.md @@ -8,11 +8,11 @@ UserDeviceはユーザー毎のデバイスを管理します。 ## 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\"}" // ユーザーデバイスのメタデータ -})); +```PYTHON +response = client.send(pp.CreateUserDevice( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_id: ユーザーID + metadata="{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}" # ユーザーデバイスのメタデータ +)) ``` @@ -53,7 +53,7 @@ const response: Response = await client.send(new CreateUserDevice({ |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|user_not_found||The user is not found| +|422|user_not_found|ユーザーが見つかりません|The user is not found| @@ -64,10 +64,10 @@ const response: Response = await client.send(new CreateUserDevice({ ## GetUserDevice: ユーザーのデバイスを取得 ユーザーのデバイスの情報を取得します -```typescript -const response: Response = await client.send(new GetUserDevice({ - user_device_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーデバイスID -})); +```PYTHON +response = client.send(pp.GetUserDevice( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # user_device_id: ユーザーデバイスID +)) ``` @@ -100,10 +100,10 @@ const response: Response = await client.send(new GetUserDevice({ 指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。 -```typescript -const response: Response = await client.send(new ActivateUserDevice({ - user_device_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーデバイスID -})); +```PYTHON +response = client.send(pp.ActivateUserDevice( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # user_device_id: ユーザーデバイスID +)) ``` diff --git a/docs/webhook.md b/docs/webhook.md index 03c4152..931158f 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -7,11 +7,11 @@ WebHookにはURLとタスク名、有効化されているかを設定するこ ## ListWebhooks: 作成したWebhookの一覧を返す -```typescript -const response: Response = await client.send(new ListWebhooks({ - page: 1, // ページ番号 - per_page: 50 // 1ページ分の取得数 -})); +```PYTHON +response = client.send(pp.ListWebhooks( + page=1, # ページ番号 + per_page=50 # 1ページ分の取得数 +)) ``` @@ -63,11 +63,11 @@ const response: Response = await client. このAPIにより指定したタスクの終了時に、指定したURLにPOSTリクエストを送信します。 このとき、リクエストボディは `{"task": <タスク名>}` という値になります。 -```typescript -const response: Response = await client.send(new CreateWebhook({ - task: "bulk_shops", // タスク名 - url: "D8" // URL -})); +```PYTHON +response = client.send(pp.CreateWebhook( + "bulk_shops", # task: タスク名 + "GgnfI" # url: URL +)) ``` @@ -120,10 +120,10 @@ const response: Response = await client.send(new ## DeleteWebhook: Webhookの削除 指定したWebhookを削除します -```typescript -const response: Response = await client.send(new DeleteWebhook({ - webhook_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Webhook ID -})); +```PYTHON +response = client.send(pp.DeleteWebhook( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # webhook_id: Webhook ID +)) ``` @@ -156,13 +156,13 @@ const response: Response = await client.send(new ## UpdateWebhook: Webhookの更新 指定したWebhookの内容を更新します -```typescript -const response: Response = await client.send(new UpdateWebhook({ - webhook_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // Webhook ID - url: "Qrp", // URL - is_active: false, // 有効/無効 - task: "process_user_stats_operation" // タスク名 -})); +```PYTHON +response = client.send(pp.UpdateWebhook( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # webhook_id: Webhook ID + url="tlICoQDp", # URL + is_active=True, # 有効/無効 + task="bulk_shops" # タスク名 +)) ``` diff --git a/partner.yaml b/partner.yaml index 3ecb963..8a48e22 100644 --- a/partner.yaml +++ b/partner.yaml @@ -7,8 +7,9 @@ openapi: '3.0.1' info: description: >- Partner APIs + title: Partner APIs - version: 0.0.0 + version: 24.3.26 tags: - name: Transaction @@ -57,6 +58,9 @@ tags: - name: BankPay description: | BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + - name: SevenBankATMSession + description: | + セブンATMチャージの取引内容を照会するAPIを提供しています。 components: schemas: @@ -692,6 +696,13 @@ components: type: array items: $ref: '#/components/schemas/Transfer' + BillTransaction: + x-pokepay-schema-type: "response" + properties: + transaction: + $ref: '#/components/schemas/Transaction' + bill: + $ref: '#/components/schemas/Bill' ShopWithMetadata: x-pokepay-schema-type: "response" properties: @@ -1279,6 +1290,10 @@ components: type: integer minimum: 0 + BankDeleted: + x-pokepay-schema-type: "response" + properties: {} + PaginatedTransaction: x-pokepay-schema-type: "response" properties: @@ -1318,6 +1333,32 @@ components: 前ページ取得するためのID。 実際にはrows先頭 + PaginatedBillTransaction: + x-pokepay-schema-type: "response" + properties: + rows: + type: array + items: + $ref: '#/components/schemas/BillTransaction' + per_page: + type: integer + count: + type: integer + next_page_cursor_id: + type: string + format: uuid + nullable: true + description: |- + 次ページ取得するためのID。次ページ取得するためのID。 + 実際にはrows末尾 + prev_page_cursor_id: + type: string + format: uuid + nullable: true + description: |- + 前ページ取得するためのID。 + + 実際にはrows先頭 PaginatedTransfers: x-pokepay-schema-type: "response" properties: @@ -1774,6 +1815,39 @@ components: pagination: $ref: '#/components/schemas/Pagination' + SevenBankATMSession: + x-pokepay-schema-type: "response" + properties: + qr_info: + type: string + maxLength: 23 + account: + $ref: '#/components/schemas/AccountDetail' + amount: + type: integer + transaction: + $ref: '#/components/schemas/Transaction' + nullable: true + seven_bank_customer_number: + type: string + atm_id: + type: string + maxLength: 7 + nullable: true + audi_id: + type: string + maxLength: 4 + nullable: true + issuer_code: + type: string + nullable: true + issuer_name: + type: string + nullable: true + money_name: + type: string + nullable: true + BadRequest: x-pokepay-schema-type: "response" oneOf: @@ -2856,7 +2930,9 @@ paths: nullable: true format: decimal title: '支払い額' - description: 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + description: | + 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 private_money_id: type: string format: uuid @@ -2885,6 +2961,38 @@ paths: $ref: '#/components/responses/UnprocessableEntity' /bills/{bill_id}: + get: + tags: + - Bill + summary: '支払いQRコードの表示' + description: 支払いQRコードの内容を表示します。 + x-pokepay-operator-name: "GetBill" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: bill_id + required: true + schema: + type: string + format: uuid + title: '支払いQRコードのID' + description: |- + 表示する支払いQRコードのIDです。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Bill' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' patch: tags: - Bill @@ -2914,7 +3022,7 @@ paths: nullable: true format: decimal title: '支払い額' - description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 description: type: string maxLength: 200 @@ -3713,6 +3821,164 @@ paths: $ref: '#/components/schemas/PaginatedTransactionV2' '400': $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' + /transactions/bill: + get: + tags: + - Transaction + summary: '支払い取引履歴を取得する' + description: 支払いによって発生した取引を支払いのデータとともに一覧で返します。 + x-pokepay-operator-name: "ListBillTransactions" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + properties: + private_money_id: + type: string + format: uuid + title: 'マネーID' + description: |- + マネーIDです。 + + 指定したマネーでの取引が一覧に表示されます。 + organization_code: + type: string + pattern: '^[a-zA-Z0-9-]*$' + maxLength: 32 + title: '組織コード' + description: |- + 組織コードです。 + + フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 + example: 'pocketchange' + shop_id: + type: string + format: uuid + title: '店舗ID' + description: |- + 店舗IDです。 + + フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + customer_id: + type: string + format: uuid + title: 'エンドユーザーID' + description: |- + エンドユーザーIDです。 + + フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 + customer_name: + type: string + maxLength: 256 + title: 'エンドユーザー名' + description: |- + エンドユーザー名です。 + + フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + example: 太郎 + terminal_id: + type: string + format: uuid + title: 'エンドユーザー端末ID' + description: |- + エンドユーザーの端末IDです。 + フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 + description: + type: string + maxLength: 200 + title: '取引説明文' + description: |- + 取引を指定の取引説明文でフィルターします。 + + 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + example: 店頭QRコードによる支払い + transaction_id: + type: string + format: uuid + title: '取引ID' + description: |- + 取引IDです。 + + フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + bill_id: + type: string + format: uuid + title: '支払いQRコードのID' + description: |- + 支払いQRコードのIDです。 + + フィルターとして使われ、指定された支払いQRコードIDに部分一致(前方一致)する取引のみが一覧に表示されます。 + is_modified: + type: boolean + title: 'キャンセルフラグ' + description: |- + キャンセルフラグです。 + + これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 + デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + from: + type: string + format: date-time + title: '開始日時' + description: |- + 抽出期間の開始日時です。 + + フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + to: + type: string + format: date-time + title: '終了日時' + description: |- + 抽出期間の終了日時です。 + + フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + next_page_cursor_id: + type: string + format: uuid + title: '次ページへ遷移する際に起点となるtransactionのID' + description: |- + 次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。 + 本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 + UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 + + next_page_cursor_idのtransaction自体は次のページには含まれません。 + prev_page_cursor_id: + type: string + format: uuid + title: '前ページへ遷移する際に起点となるtransactionのID' + description: |- + 前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 + + 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 + UUIDである場合は前のページが存在することを意味し、このprev_page_cursor_idをリクエストパラメータに含めることで前ページに遷移します。 + + prev_page_cursor_idのtransaction自体は前のページには含まれません。 + per_page: + type: integer + minimum: 1 + maximum: 1000 + default: 50 + title: '1ページ分の取引数' + description: |- + 1ページ分の取引数です。 + + デフォルト値は50です。 + example: 50 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedBillTransaction' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' /transactions/topup: post: tags: @@ -3814,6 +4080,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -3872,6 +4139,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -3968,7 +4236,105 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + strategy: + type: string + enum: [point-preferred, money-only] + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + example: 'point-preferred' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionDetail' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /transactions/payment/bill: + post: + tags: + - Bill + summary: '支払いQRコードを読み取ることで支払いをする' + description: | + 通常支払いQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバが支払いQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際の支払い取引をリクエストすることになります。 + + エンドユーザーから受け取った支払いQRコードのIDをエンドユーザーIDと共に渡すことで支払い取引が作られます。 + 支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 + x-pokepay-operator-name: "CreatePaymentTransactionWithBill" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["bill_id", "customer_id"] + properties: + bill_id: + type: string + format: uuid + title: '支払いQRコードのID' + description: |- + 支払いQRコードのIDです。 + + QRコード生成時に送金先店舗のウォレット情報や、支払い金額などが登録されています。 + customer_id: + type: string + format: uuid + title: 'エンドユーザーのID' + description: |- + エンドユーザーIDです。 + + 支払いを行うエンドユーザーを指定します。 + metadata: + type: string + format: json + title: '取引メタデータ' + description: |- + 取引作成時に指定されるメタデータです。 + + 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + example: |- + {"key":"value"} + request_id: + type: string + format: uuid + title: 'リクエストID' + description: |- + 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + + 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + + リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + strategy: + type: string + enum: [point-preferred, money-only] + default: 'point-preferred' + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + example: 'point-preferred' responses: '200': description: OK @@ -3980,6 +4346,8 @@ paths: $ref: '#/components/responses/BadRequest' '403': $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' /transactions/cpm: @@ -4054,7 +4422,21 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + strategy: + type: string + enum: [point-preferred, money-only] + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + example: 'point-preferred' responses: '200': description: OK @@ -4125,6 +4507,88 @@ paths: $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/UnprocessableEntity' + + /transactions/cashtray: + post: + tags: + - Cashtray + summary: 'CashtrayQRコードを読み取ることで取引する' + description: | + エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。 + + 通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 + もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがCashtrayQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 + + x-pokepay-operator-name: "CreateTransactionWithCashtray" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["cashtray_id", "customer_id"] + properties: + cashtray_id: + type: string + format: uuid + title: 'Cashtray用QRコードのID' + description: |- + Cashtray用QRコードのIDです。 + + QRコード生成時に送金元店舗のウォレット情報や、金額などが登録されています。 + + customer_id: + type: string + format: uuid + title: 'エンドユーザーのID' + description: |- + エンドユーザーIDです。 + + strategy: + type: string + enum: [point-preferred, money-only] + default: 'point-preferred' + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + チャージの場合は無効です。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + + request_id: + type: string + format: uuid + title: 'リクエストID' + description: |- + 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + + 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。 + 指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + + リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。 + もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionDetail' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /transactions/transfer: post: tags: @@ -4203,6 +4667,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -4255,6 +4720,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -4549,6 +5015,14 @@ paths: リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 example: 9dbfd997-b948-40d3-a3bf-6bc1a01368d2 + done_at: + type: string + format: date-time + title: 'ポケペイ外部取引の実施時間' + description: |- + ポケペイ外部取引が実際に起こった時間です。 + 時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。 + デフォルトではCreateExternalTransactionがリクエストされた時間になります。 responses: '200': description: OK @@ -6086,6 +6560,8 @@ paths: application/json: schema: required: ["name", "private_money_id", "starts_at", "ends_at","priority", "event"] + x-pokepay-conditional-parameters: + xor: [applicable_shop_ids, blacklisted_shop_ids] properties: name: title: 'キャンペーン名' @@ -6358,6 +6834,13 @@ paths: description: |- キャンペーン対象の商品を複数個購入したときに、個数に応じてポイント付与額を増やすかどうかのフラグです。 デフォルト値は false です。 + is_floor_after_multiply: + type: boolean + title: '小数点以下切り捨てを個数を掛けた後に行うかどうか' + description: |- + is_multiply_by_countが指定されたとき、デフォルトでは商品ごとに付与ポイントが計算された後、少数点以下切り捨てが行なわれ、その後商品個数が掛けられます。 + このフラグを有効にすると、商品ごとに付与ポイントが計算された後、商品個数が掛けられ、その後に少数点以下切り捨てが行なわれるようになります。 + デフォルト値は false です。 starts_at: type: string format: date-time @@ -6520,6 +7003,16 @@ paths: description: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 + blacklisted_shop_ids: + type: array + items: + type: string + format: uuid + title: 'キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)' + description: |- + キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 + このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 + blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 minimum_number_of_products: type: integer minimum: 1 @@ -6893,12 +7386,14 @@ paths: デフォルトでは未指定(フィルターなし)です。 page: type: integer + default: 1 minimum: 1 title: 'ページ番号' description: 取得したいページ番号です。 example: 1 per_page: type: integer + default: 20 minimum: 1 maximum: 50 title: '1ページ分の取得数' @@ -6976,6 +7471,8 @@ paths: content: application/json: schema: + x-pokepay-conditional-parameters: + xor: [applicable_shop_ids, blacklisted_shop_ids] properties: name: title: 'キャンペーン名' @@ -7238,6 +7735,13 @@ paths: description: |- キャンペーン対象の商品を複数個購入したときに、個数に応じてポイント付与額を増やすかどうかのフラグです。 デフォルト値は false です。 + is_floor_after_multiply: + type: boolean + title: '小数点以下切り捨てを個数を掛けた後に行うかどうか' + description: |- + is_multiply_by_countが指定されたとき、デフォルトでは商品ごとに付与ポイントが計算された後、少数点以下切り捨てが行なわれ、その後商品個数が掛けられます。 + このフラグを有効にすると、商品ごとに付与ポイントが計算された後、商品個数が掛けられ、その後に少数点以下切り捨てが行なわれるようになります。 + デフォルト値は false です。 starts_at: type: string format: date-time @@ -7404,6 +7908,17 @@ paths: description: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 + blacklisted_shop_ids: + type: array + items: + type: string + format: uuid + nullable: true + title: 'キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)' + description: |- + キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 + このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 + blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 minimum_number_of_products: type: integer minimum: 1 @@ -7789,6 +8304,50 @@ paths: '503': $ref: '#/components/responses/UserStatsOperationServiceUnavailable' + /user-stats/terminate: + post: + tags: + - Transaction + summary: 'RequestUserStatsのタスクを強制終了する' + description: |- + RequestUserStatsによるファイル生成のタスクを強制終了するためのAPIです。 + RequestUserStatsのレスポンス中の `operation_id` をキーにして強制終了リクエストを送ります。 + 既に集計タスクが終了している場合は何も行いません。 + 発行体に対して結果通知用のWebhook URLが設定されている場合、強制終了成功時には以下のような内容のPOSTリクエストが送られます。 + + - task: "process_user_stats_operation" + - operation_id: 強制終了対象のタスクID + - status: "terminated" + x-pokepay-operator-name: "TerminateUserStats" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["operation_id"] + properties: + operation_id: + type: string + format: uuid + title: '集計タスクID' + description: |- + 強制終了対象の集計タスクIDです。 + 必須パラメータであり、指定されたタスクIDが存在しない場合は `user_stats_operation_not_found`エラー(422)が返ります。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/UserStatsOperation' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /webhooks: post: x-pokepay-operator-name: "CreateWebhook" @@ -8167,6 +8726,46 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' + delete: + x-pokepay-operator-name: "DeleteBank" + x-pokepay-allow-server-side: true + tags: + - BankPay + summary: 銀行口座の削除 + description: 銀行口座を削除します + parameters: + - in: path + name: user_device_id + required: true + schema: + type: string + format: uuid + title: "デバイスID" + requestBody: + required: true + content: + application/json: + schema: + required: [bank_id] + properties: + bank_id: + type: string + format: uuid + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/BankDeleted' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' /user-devices/{user_device_id}/banks/topup: post: @@ -8203,6 +8802,10 @@ paths: type: string format: uuid title: '銀行ID' + receiver_user_id: + type: string + format: uuid + title: '受け取りユーザーID (デフォルトは自身)' request_id: type: string format: uuid @@ -8552,3 +9155,36 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' + + /seven-bank-atm-sessions/{qr_info}: + get: + x-pokepay-operator-name: "GetSevenBankATMSession" + x-pokepay-allow-server-side: true + tags: + - SevenBankATMSession + summary: セブン銀行ATMセッションの取得 + description: セブン銀行ATMセッションを取得します + parameters: + - in: path + name: qr_info + required: true + schema: + type: string + title: 'QRコードの情報' + description: |- + 取得するセブン銀行ATMチャージのQRコードの情報です。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/SevenBankATMSession' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' diff --git a/pokepay/__init__.py b/pokepay/__init__.py index 405127c..ed6f6b7 100644 --- a/pokepay/__init__.py +++ b/pokepay/__init__.py @@ -10,9 +10,9 @@ from pokepay.request.get_user import * from pokepay.request.list_user_accounts import * from pokepay.request.create_user_account import * +from pokepay.request.delete_account import * from pokepay.request.get_account import * from pokepay.request.update_account import * -from pokepay.request.delete_account import * from pokepay.request.list_account_balances import * from pokepay.request.list_account_expired_balances import * from pokepay.request.update_customer_account import * @@ -22,16 +22,23 @@ from pokepay.request.get_shop_accounts import * from pokepay.request.list_bills import * from pokepay.request.create_bill import * +from pokepay.request.get_bill import * from pokepay.request.update_bill import * +from pokepay.request.list_checks import * from pokepay.request.create_check import * +from pokepay.request.get_check import * +from pokepay.request.update_check import * from pokepay.request.get_cpm_token import * from pokepay.request.list_transactions import * from pokepay.request.create_transaction import * from pokepay.request.list_transactions_v2 import * +from pokepay.request.list_bill_transactions import * from pokepay.request.create_topup_transaction import * from pokepay.request.create_topup_transaction_with_check import * from pokepay.request.create_payment_transaction import * +from pokepay.request.create_payment_transaction_with_bill import * from pokepay.request.create_cpm_transaction import * +from pokepay.request.create_transaction_with_cashtray import * from pokepay.request.create_transfer_transaction import * from pokepay.request.create_exchange_transaction import * from pokepay.request.bulk_create_transaction import * @@ -40,8 +47,10 @@ from pokepay.request.get_transaction_by_request_id import * from pokepay.request.create_external_transaction import * from pokepay.request.refund_external_transaction import * +from pokepay.request.get_external_transaction_by_request_id import * from pokepay.request.list_transfers import * from pokepay.request.list_transfers_v2 import * +from pokepay.request.list_organizations import * from pokepay.request.create_organization import * from pokepay.request.list_shops import * from pokepay.request.create_shop import * @@ -55,14 +64,31 @@ from pokepay.request.get_bulk_transaction import * from pokepay.request.list_bulk_transaction_jobs import * from pokepay.request.create_cashtray import * -from pokepay.request.get_cashtray import * from pokepay.request.cancel_cashtray import * +from pokepay.request.get_cashtray import * from pokepay.request.update_cashtray import * -from pokepay.request.create_campaign import * from pokepay.request.list_campaigns import * +from pokepay.request.create_campaign import * from pokepay.request.get_campaign import * from pokepay.request.update_campaign import * from pokepay.request.request_user_stats import * +from pokepay.request.terminate_user_stats import * +from pokepay.request.list_webhooks import * +from pokepay.request.create_webhook import * +from pokepay.request.delete_webhook import * +from pokepay.request.update_webhook import * +from pokepay.request.create_user_device import * +from pokepay.request.get_user_device import * +from pokepay.request.activate_user_device import * +from pokepay.request.delete_bank import * +from pokepay.request.list_banks import * +from pokepay.request.create_bank import * +from pokepay.request.create_bank_topup_transaction import * +from pokepay.request.list_coupons import * +from pokepay.request.create_coupon import * +from pokepay.request.get_coupon import * +from pokepay.request.update_coupon import * +from pokepay.request.get_seven_bank_atm_session import * from pokepay.response.pong import * from pokepay.response.echo import * from pokepay.response.pagination import * @@ -75,6 +101,7 @@ from pokepay.response.account_balance import * from pokepay.response.bill import * from pokepay.response.check import * +from pokepay.response.paginated_checks import * from pokepay.response.cpm_token import * from pokepay.response.cashtray import * from pokepay.response.cashtray_with_result import * @@ -84,23 +111,30 @@ from pokepay.response.organization import * from pokepay.response.transaction import * from pokepay.response.transaction_detail import * +from pokepay.response.bill_transaction import * from pokepay.response.shop_with_metadata import * from pokepay.response.shop_with_accounts import * -from pokepay.response.user_transaction import * from pokepay.response.bulk_transaction import * from pokepay.response.bulk_transaction_job import * from pokepay.response.paginated_bulk_transaction_job import * from pokepay.response.account_without_private_money_detail import * from pokepay.response.transfer import * from pokepay.response.external_transaction import * +from pokepay.response.external_transaction_detail import * from pokepay.response.product import * from pokepay.response.organization_summary import * from pokepay.response.private_money_organization_summary import * from pokepay.response.paginated_private_money_organization_summaries import * from pokepay.response.private_money_summary import * from pokepay.response.user_stats_operation import * +from pokepay.response.user_device import * +from pokepay.response.bank_registering_info import * +from pokepay.response.bank import * +from pokepay.response.banks import * +from pokepay.response.bank_deleted import * from pokepay.response.paginated_transaction import * from pokepay.response.paginated_transaction_v2 import * +from pokepay.response.paginated_bill_transaction import * from pokepay.response.paginated_transfers import * from pokepay.response.paginated_transfers_v2 import * from pokepay.response.paginated_accounts import * @@ -114,6 +148,13 @@ from pokepay.response.paginated_campaigns import * from pokepay.response.account_transfer_summary_element import * from pokepay.response.account_transfer_summary import * +from pokepay.response.organization_worker_task_webhook import * +from pokepay.response.paginated_organization_worker_task_webhook import * +from pokepay.response.coupon import * +from pokepay.response.coupon_detail import * +from pokepay.response.paginated_coupons import * +from pokepay.response.paginated_organizations import * +from pokepay.response.seven_bank_atm_session import * from pokepay.response.bad_request import * from pokepay.response.partner_client_not_found import * from pokepay.response.partner_decryption_failed import * diff --git a/pokepay/request/activate_user_device.py b/pokepay/request/activate_user_device.py new file mode 100644 index 0000000..f767299 --- /dev/null +++ b/pokepay/request/activate_user_device.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.user_device import UserDevice + + +class ActivateUserDevice(PokepayRequest): + def __init__(self, user_device_id): + self.path = "/user-devices" + "/" + user_device_id + "/activate" + self.method = "POST" + self.body_params = {} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = UserDevice diff --git a/pokepay/request/bulk_create_transaction.py b/pokepay/request/bulk_create_transaction.py index 81391cd..747f234 100644 --- a/pokepay/request/bulk_create_transaction.py +++ b/pokepay/request/bulk_create_transaction.py @@ -12,4 +12,6 @@ def __init__(self, name, content, request_id, **rest_args): "content": content, "request_id": request_id} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = BulkTransaction diff --git a/pokepay/request/cancel_cashtray.py b/pokepay/request/cancel_cashtray.py index 475f921..c3e0eb5 100644 --- a/pokepay/request/cancel_cashtray.py +++ b/pokepay/request/cancel_cashtray.py @@ -10,4 +10,6 @@ def __init__(self, cashtray_id): self.method = "DELETE" self.body_params = {} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = Cashtray diff --git a/pokepay/request/create_bank.py b/pokepay/request/create_bank.py new file mode 100644 index 0000000..68226c5 --- /dev/null +++ b/pokepay/request/create_bank.py @@ -0,0 +1,17 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.bank_registering_info import BankRegisteringInfo + + +class CreateBank(PokepayRequest): + def __init__(self, user_device_id, private_money_id, callback_url, kana, **rest_args): + self.path = "/user-devices" + "/" + user_device_id + "/banks" + self.method = "POST" + self.body_params = {"private_money_id": private_money_id, + "callback_url": callback_url, + "kana": kana} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = BankRegisteringInfo diff --git a/pokepay/request/create_bank_topup_transaction.py b/pokepay/request/create_bank_topup_transaction.py new file mode 100644 index 0000000..105f963 --- /dev/null +++ b/pokepay/request/create_bank_topup_transaction.py @@ -0,0 +1,18 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.transaction_detail import TransactionDetail + + +class CreateBankTopupTransaction(PokepayRequest): + def __init__(self, user_device_id, private_money_id, amount, bank_id, request_id, **rest_args): + self.path = "/user-devices" + "/" + user_device_id + "/banks" + "/topup" + self.method = "POST" + self.body_params = {"private_money_id": private_money_id, + "amount": amount, + "bank_id": bank_id, + "request_id": request_id} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = TransactionDetail diff --git a/pokepay/request/create_bill.py b/pokepay/request/create_bill.py index 04a794e..ae0c0b6 100644 --- a/pokepay/request/create_bill.py +++ b/pokepay/request/create_bill.py @@ -11,4 +11,6 @@ def __init__(self, private_money_id, shop_id, **rest_args): self.body_params = {"private_money_id": private_money_id, "shop_id": shop_id} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = Bill diff --git a/pokepay/request/create_campaign.py b/pokepay/request/create_campaign.py index 81ce7dc..aa6f776 100644 --- a/pokepay/request/create_campaign.py +++ b/pokepay/request/create_campaign.py @@ -15,4 +15,6 @@ def __init__(self, name, private_money_id, starts_at, ends_at, priority, event, "priority": priority, "event": event} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = Campaign diff --git a/pokepay/request/create_cashtray.py b/pokepay/request/create_cashtray.py index 5e2edb6..8264600 100644 --- a/pokepay/request/create_cashtray.py +++ b/pokepay/request/create_cashtray.py @@ -12,4 +12,6 @@ def __init__(self, private_money_id, shop_id, amount, **rest_args): "shop_id": shop_id, "amount": amount} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = Cashtray diff --git a/pokepay/request/create_check.py b/pokepay/request/create_check.py index 4f92acf..cd8f5aa 100644 --- a/pokepay/request/create_check.py +++ b/pokepay/request/create_check.py @@ -10,4 +10,6 @@ def __init__(self, account_id, **rest_args): self.method = "POST" self.body_params = {"account_id": account_id} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = Check diff --git a/pokepay/request/create_coupon.py b/pokepay/request/create_coupon.py new file mode 100644 index 0000000..abbc9ba --- /dev/null +++ b/pokepay/request/create_coupon.py @@ -0,0 +1,19 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.coupon_detail import CouponDetail + + +class CreateCoupon(PokepayRequest): + def __init__(self, private_money_id, name, starts_at, ends_at, issued_shop_id, **rest_args): + self.path = "/coupons" + self.method = "POST" + self.body_params = {"private_money_id": private_money_id, + "name": name, + "starts_at": starts_at, + "ends_at": ends_at, + "issued_shop_id": issued_shop_id} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = CouponDetail diff --git a/pokepay/request/create_cpm_transaction.py b/pokepay/request/create_cpm_transaction.py index f819a33..2e8d988 100644 --- a/pokepay/request/create_cpm_transaction.py +++ b/pokepay/request/create_cpm_transaction.py @@ -12,4 +12,6 @@ def __init__(self, cpm_token, shop_id, amount, **rest_args): "shop_id": shop_id, "amount": amount} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = TransactionDetail diff --git a/pokepay/request/create_customer_account.py b/pokepay/request/create_customer_account.py index 61f53d3..808c270 100644 --- a/pokepay/request/create_customer_account.py +++ b/pokepay/request/create_customer_account.py @@ -10,4 +10,6 @@ def __init__(self, private_money_id, **rest_args): self.method = "POST" self.body_params = {"private_money_id": private_money_id} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = AccountWithUser diff --git a/pokepay/request/create_exchange_transaction.py b/pokepay/request/create_exchange_transaction.py index 56f6587..2caad63 100644 --- a/pokepay/request/create_exchange_transaction.py +++ b/pokepay/request/create_exchange_transaction.py @@ -13,4 +13,6 @@ def __init__(self, user_id, sender_private_money_id, receiver_private_money_id, "receiver_private_money_id": receiver_private_money_id, "amount": amount} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = TransactionDetail diff --git a/pokepay/request/create_external_transaction.py b/pokepay/request/create_external_transaction.py index 3ec3976..126f93a 100644 --- a/pokepay/request/create_external_transaction.py +++ b/pokepay/request/create_external_transaction.py @@ -1,7 +1,7 @@ # DO NOT EDIT: File is generated by code generator. from pokepay.request.request import PokepayRequest -from pokepay.response.external_transaction import ExternalTransaction +from pokepay.response.external_transaction_detail import ExternalTransactionDetail class CreateExternalTransaction(PokepayRequest): @@ -13,4 +13,6 @@ def __init__(self, shop_id, customer_id, private_money_id, amount, **rest_args): "private_money_id": private_money_id, "amount": amount} self.body_params.update(rest_args) - self.response_class = ExternalTransaction + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = ExternalTransactionDetail diff --git a/pokepay/request/create_organization.py b/pokepay/request/create_organization.py index e4e8566..0ea416e 100644 --- a/pokepay/request/create_organization.py +++ b/pokepay/request/create_organization.py @@ -14,4 +14,6 @@ def __init__(self, code, name, private_money_ids, issuer_admin_user_email, membe "issuer_admin_user_email": issuer_admin_user_email, "member_admin_user_email": member_admin_user_email} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = Organization diff --git a/pokepay/request/create_payment_transaction.py b/pokepay/request/create_payment_transaction.py index 4d73a47..4ca39c9 100644 --- a/pokepay/request/create_payment_transaction.py +++ b/pokepay/request/create_payment_transaction.py @@ -13,4 +13,6 @@ def __init__(self, shop_id, customer_id, private_money_id, amount, **rest_args): "private_money_id": private_money_id, "amount": amount} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = TransactionDetail diff --git a/pokepay/request/create_payment_transaction_with_bill.py b/pokepay/request/create_payment_transaction_with_bill.py new file mode 100644 index 0000000..2a57d5e --- /dev/null +++ b/pokepay/request/create_payment_transaction_with_bill.py @@ -0,0 +1,16 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.transaction_detail import TransactionDetail + + +class CreatePaymentTransactionWithBill(PokepayRequest): + def __init__(self, bill_id, customer_id, **rest_args): + self.path = "/transactions" + "/payment" + "/bill" + self.method = "POST" + self.body_params = {"bill_id": bill_id, + "customer_id": customer_id} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = TransactionDetail diff --git a/pokepay/request/create_shop.py b/pokepay/request/create_shop.py index 04cecde..24e4aba 100644 --- a/pokepay/request/create_shop.py +++ b/pokepay/request/create_shop.py @@ -10,4 +10,6 @@ def __init__(self, shop_name, **rest_args): self.method = "POST" self.body_params = {"shop_name": shop_name} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = User diff --git a/pokepay/request/create_shop_v2.py b/pokepay/request/create_shop_v2.py index 6bb24ba..ba2095a 100644 --- a/pokepay/request/create_shop_v2.py +++ b/pokepay/request/create_shop_v2.py @@ -10,4 +10,6 @@ def __init__(self, name, **rest_args): self.method = "POST" self.body_params = {"name": name} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = ShopWithAccounts diff --git a/pokepay/request/create_topup_transaction.py b/pokepay/request/create_topup_transaction.py index 4086fef..2a8a2ce 100644 --- a/pokepay/request/create_topup_transaction.py +++ b/pokepay/request/create_topup_transaction.py @@ -12,4 +12,6 @@ def __init__(self, shop_id, customer_id, private_money_id, **rest_args): "customer_id": customer_id, "private_money_id": private_money_id} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = TransactionDetail diff --git a/pokepay/request/create_topup_transaction_with_check.py b/pokepay/request/create_topup_transaction_with_check.py index 7e2c44e..80fa3be 100644 --- a/pokepay/request/create_topup_transaction_with_check.py +++ b/pokepay/request/create_topup_transaction_with_check.py @@ -5,10 +5,12 @@ class CreateTopupTransactionWithCheck(PokepayRequest): - def __init__(self, check_id, customer_id): + def __init__(self, check_id, customer_id, **rest_args): self.path = "/transactions" + "/topup" + "/check" self.method = "POST" self.body_params = {"check_id": check_id, "customer_id": customer_id} - + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = TransactionDetail diff --git a/pokepay/request/create_transaction.py b/pokepay/request/create_transaction.py index beef855..df1d55d 100644 --- a/pokepay/request/create_transaction.py +++ b/pokepay/request/create_transaction.py @@ -12,4 +12,6 @@ def __init__(self, shop_id, customer_id, private_money_id, **rest_args): "customer_id": customer_id, "private_money_id": private_money_id} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = TransactionDetail diff --git a/pokepay/request/create_transaction_with_cashtray.py b/pokepay/request/create_transaction_with_cashtray.py new file mode 100644 index 0000000..ad308ed --- /dev/null +++ b/pokepay/request/create_transaction_with_cashtray.py @@ -0,0 +1,16 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.transaction_detail import TransactionDetail + + +class CreateTransactionWithCashtray(PokepayRequest): + def __init__(self, cashtray_id, customer_id, **rest_args): + self.path = "/transactions" + "/cashtray" + self.method = "POST" + self.body_params = {"cashtray_id": cashtray_id, + "customer_id": customer_id} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = TransactionDetail diff --git a/pokepay/request/create_transfer_transaction.py b/pokepay/request/create_transfer_transaction.py index 912d3d6..c272a8a 100644 --- a/pokepay/request/create_transfer_transaction.py +++ b/pokepay/request/create_transfer_transaction.py @@ -13,4 +13,6 @@ def __init__(self, sender_id, receiver_id, private_money_id, amount, **rest_args "private_money_id": private_money_id, "amount": amount} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = TransactionDetail diff --git a/pokepay/request/create_user_account.py b/pokepay/request/create_user_account.py index 15dd627..daa2356 100644 --- a/pokepay/request/create_user_account.py +++ b/pokepay/request/create_user_account.py @@ -10,4 +10,6 @@ def __init__(self, user_id, private_money_id, **rest_args): self.method = "POST" self.body_params = {"private_money_id": private_money_id} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = AccountDetail diff --git a/pokepay/request/create_user_device.py b/pokepay/request/create_user_device.py new file mode 100644 index 0000000..8eb73e0 --- /dev/null +++ b/pokepay/request/create_user_device.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.user_device import UserDevice + + +class CreateUserDevice(PokepayRequest): + def __init__(self, user_id, **rest_args): + self.path = "/user-devices" + self.method = "POST" + self.body_params = {"user_id": user_id} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = UserDevice diff --git a/pokepay/request/create_webhook.py b/pokepay/request/create_webhook.py new file mode 100644 index 0000000..9e00ad2 --- /dev/null +++ b/pokepay/request/create_webhook.py @@ -0,0 +1,16 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.organization_worker_task_webhook import OrganizationWorkerTaskWebhook + + +class CreateWebhook(PokepayRequest): + def __init__(self, task, url): + self.path = "/webhooks" + self.method = "POST" + self.body_params = {"task": task, + "url": url} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = OrganizationWorkerTaskWebhook diff --git a/pokepay/request/delete_account.py b/pokepay/request/delete_account.py index d43c7bc..cdb8a2e 100644 --- a/pokepay/request/delete_account.py +++ b/pokepay/request/delete_account.py @@ -10,4 +10,6 @@ def __init__(self, account_id, **rest_args): self.method = "DELETE" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = AccountDeleted diff --git a/pokepay/request/delete_bank.py b/pokepay/request/delete_bank.py new file mode 100644 index 0000000..cc2d0e5 --- /dev/null +++ b/pokepay/request/delete_bank.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.bank_deleted import BankDeleted + + +class DeleteBank(PokepayRequest): + def __init__(self, user_device_id, bank_id): + self.path = "/user-devices" + "/" + user_device_id + "/banks" + self.method = "DELETE" + self.body_params = {"bank_id": bank_id} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = BankDeleted diff --git a/pokepay/request/delete_webhook.py b/pokepay/request/delete_webhook.py new file mode 100644 index 0000000..8fb3155 --- /dev/null +++ b/pokepay/request/delete_webhook.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.organization_worker_task_webhook import OrganizationWorkerTaskWebhook + + +class DeleteWebhook(PokepayRequest): + def __init__(self, webhook_id): + self.path = "/webhooks" + "/" + webhook_id + self.method = "DELETE" + self.body_params = {} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = OrganizationWorkerTaskWebhook diff --git a/pokepay/request/get_account.py b/pokepay/request/get_account.py index 6a499bc..4566081 100644 --- a/pokepay/request/get_account.py +++ b/pokepay/request/get_account.py @@ -10,4 +10,6 @@ def __init__(self, account_id): self.method = "GET" self.body_params = {} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = AccountDetail diff --git a/pokepay/request/get_account_transfer_summary.py b/pokepay/request/get_account_transfer_summary.py index be99c2a..adc598f 100644 --- a/pokepay/request/get_account_transfer_summary.py +++ b/pokepay/request/get_account_transfer_summary.py @@ -10,4 +10,6 @@ def __init__(self, account_id, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = AccountTransferSummary diff --git a/pokepay/request/get_bill.py b/pokepay/request/get_bill.py new file mode 100644 index 0000000..c16bf5e --- /dev/null +++ b/pokepay/request/get_bill.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.bill import Bill + + +class GetBill(PokepayRequest): + def __init__(self, bill_id): + self.path = "/bills" + "/" + bill_id + self.method = "GET" + self.body_params = {} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = Bill diff --git a/pokepay/request/get_bulk_transaction.py b/pokepay/request/get_bulk_transaction.py index 11c0708..447ead0 100644 --- a/pokepay/request/get_bulk_transaction.py +++ b/pokepay/request/get_bulk_transaction.py @@ -10,4 +10,6 @@ def __init__(self, bulk_transaction_id): self.method = "GET" self.body_params = {} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = BulkTransaction diff --git a/pokepay/request/get_campaign.py b/pokepay/request/get_campaign.py index 8219486..dddb8cf 100644 --- a/pokepay/request/get_campaign.py +++ b/pokepay/request/get_campaign.py @@ -10,4 +10,6 @@ def __init__(self, campaign_id): self.method = "GET" self.body_params = {} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = Campaign diff --git a/pokepay/request/get_cashtray.py b/pokepay/request/get_cashtray.py index 4f5b8b5..1b9d97b 100644 --- a/pokepay/request/get_cashtray.py +++ b/pokepay/request/get_cashtray.py @@ -10,4 +10,6 @@ def __init__(self, cashtray_id): self.method = "GET" self.body_params = {} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = CashtrayWithResult diff --git a/pokepay/request/get_check.py b/pokepay/request/get_check.py new file mode 100644 index 0000000..44cb0a2 --- /dev/null +++ b/pokepay/request/get_check.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.check import Check + + +class GetCheck(PokepayRequest): + def __init__(self, check_id): + self.path = "/checks" + "/" + check_id + self.method = "GET" + self.body_params = {} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = Check diff --git a/pokepay/request/get_coupon.py b/pokepay/request/get_coupon.py new file mode 100644 index 0000000..1be6500 --- /dev/null +++ b/pokepay/request/get_coupon.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.coupon_detail import CouponDetail + + +class GetCoupon(PokepayRequest): + def __init__(self, coupon_id): + self.path = "/coupons" + "/" + coupon_id + self.method = "GET" + self.body_params = {} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = CouponDetail diff --git a/pokepay/request/get_cpm_token.py b/pokepay/request/get_cpm_token.py index c299c35..0653bde 100644 --- a/pokepay/request/get_cpm_token.py +++ b/pokepay/request/get_cpm_token.py @@ -10,4 +10,6 @@ def __init__(self, cpm_token): self.method = "GET" self.body_params = {} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = CpmToken diff --git a/pokepay/request/get_customer_accounts.py b/pokepay/request/get_customer_accounts.py index 96dabc7..680d590 100644 --- a/pokepay/request/get_customer_accounts.py +++ b/pokepay/request/get_customer_accounts.py @@ -10,4 +10,6 @@ def __init__(self, private_money_id, **rest_args): self.method = "GET" self.body_params = {"private_money_id": private_money_id} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedAccountWithUsers diff --git a/pokepay/request/get_external_transaction_by_request_id.py b/pokepay/request/get_external_transaction_by_request_id.py new file mode 100644 index 0000000..95fdc3f --- /dev/null +++ b/pokepay/request/get_external_transaction_by_request_id.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.external_transaction_detail import ExternalTransactionDetail + + +class GetExternalTransactionByRequestId(PokepayRequest): + def __init__(self, request_id): + self.path = "/external-transactions" + "/requests" + "/" + request_id + self.method = "GET" + self.body_params = {} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = ExternalTransactionDetail diff --git a/pokepay/request/get_ping.py b/pokepay/request/get_ping.py index ed5d205..81853d4 100644 --- a/pokepay/request/get_ping.py +++ b/pokepay/request/get_ping.py @@ -10,4 +10,6 @@ def __init__(self, ): self.method = "GET" self.body_params = {} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = Pong diff --git a/pokepay/request/get_private_money_organization_summaries.py b/pokepay/request/get_private_money_organization_summaries.py index 91f75a8..2dc92f2 100644 --- a/pokepay/request/get_private_money_organization_summaries.py +++ b/pokepay/request/get_private_money_organization_summaries.py @@ -10,4 +10,6 @@ def __init__(self, private_money_id, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedPrivateMoneyOrganizationSummaries diff --git a/pokepay/request/get_private_money_summary.py b/pokepay/request/get_private_money_summary.py index 60491a1..be0de10 100644 --- a/pokepay/request/get_private_money_summary.py +++ b/pokepay/request/get_private_money_summary.py @@ -10,4 +10,6 @@ def __init__(self, private_money_id, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PrivateMoneySummary diff --git a/pokepay/request/get_private_moneys.py b/pokepay/request/get_private_moneys.py index 711b4e7..b7dadd1 100644 --- a/pokepay/request/get_private_moneys.py +++ b/pokepay/request/get_private_moneys.py @@ -10,4 +10,6 @@ def __init__(self, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedPrivateMoneys diff --git a/pokepay/request/get_seven_bank_atm_session.py b/pokepay/request/get_seven_bank_atm_session.py new file mode 100644 index 0000000..efd0ac1 --- /dev/null +++ b/pokepay/request/get_seven_bank_atm_session.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.seven_bank_atm_session import SevenBankATMSession + + +class GetSevenBankATMSession(PokepayRequest): + def __init__(self, qr_info): + self.path = "/seven-bank-atm-sessions" + "/" + qr_info + self.method = "GET" + self.body_params = {} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = SevenBankATMSession diff --git a/pokepay/request/get_shop.py b/pokepay/request/get_shop.py index 1a4ff02..3034910 100644 --- a/pokepay/request/get_shop.py +++ b/pokepay/request/get_shop.py @@ -10,4 +10,6 @@ def __init__(self, shop_id): self.method = "GET" self.body_params = {} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = ShopWithAccounts diff --git a/pokepay/request/get_shop_accounts.py b/pokepay/request/get_shop_accounts.py index e6f47d2..31ea79b 100644 --- a/pokepay/request/get_shop_accounts.py +++ b/pokepay/request/get_shop_accounts.py @@ -10,4 +10,6 @@ def __init__(self, private_money_id, **rest_args): self.method = "GET" self.body_params = {"private_money_id": private_money_id} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedAccountWithUsers diff --git a/pokepay/request/get_transaction.py b/pokepay/request/get_transaction.py index 9818db5..94b40a9 100644 --- a/pokepay/request/get_transaction.py +++ b/pokepay/request/get_transaction.py @@ -10,4 +10,6 @@ def __init__(self, transaction_id): self.method = "GET" self.body_params = {} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = TransactionDetail diff --git a/pokepay/request/get_transaction_by_request_id.py b/pokepay/request/get_transaction_by_request_id.py index 693e73d..89f8d5b 100644 --- a/pokepay/request/get_transaction_by_request_id.py +++ b/pokepay/request/get_transaction_by_request_id.py @@ -10,4 +10,6 @@ def __init__(self, request_id): self.method = "GET" self.body_params = {} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = TransactionDetail diff --git a/pokepay/request/get_user.py b/pokepay/request/get_user.py index 0944054..086be3a 100644 --- a/pokepay/request/get_user.py +++ b/pokepay/request/get_user.py @@ -10,4 +10,6 @@ def __init__(self, ): self.method = "GET" self.body_params = {} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = AdminUserWithShopsAndPrivateMoneys diff --git a/pokepay/request/get_user_device.py b/pokepay/request/get_user_device.py new file mode 100644 index 0000000..ba3ee98 --- /dev/null +++ b/pokepay/request/get_user_device.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.user_device import UserDevice + + +class GetUserDevice(PokepayRequest): + def __init__(self, user_device_id): + self.path = "/user-devices" + "/" + user_device_id + self.method = "GET" + self.body_params = {} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = UserDevice diff --git a/pokepay/request/list_account_balances.py b/pokepay/request/list_account_balances.py index ebc7fb9..839b3a4 100644 --- a/pokepay/request/list_account_balances.py +++ b/pokepay/request/list_account_balances.py @@ -10,4 +10,6 @@ def __init__(self, account_id, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedAccountBalance diff --git a/pokepay/request/list_account_expired_balances.py b/pokepay/request/list_account_expired_balances.py index e4c73c5..619ffff 100644 --- a/pokepay/request/list_account_expired_balances.py +++ b/pokepay/request/list_account_expired_balances.py @@ -10,4 +10,6 @@ def __init__(self, account_id, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedAccountBalance diff --git a/pokepay/request/list_banks.py b/pokepay/request/list_banks.py new file mode 100644 index 0000000..b52db4c --- /dev/null +++ b/pokepay/request/list_banks.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.banks import Banks + + +class ListBanks(PokepayRequest): + def __init__(self, user_device_id, **rest_args): + self.path = "/user-devices" + "/" + user_device_id + "/banks" + self.method = "GET" + self.body_params = {} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = Banks diff --git a/pokepay/request/list_bill_transactions.py b/pokepay/request/list_bill_transactions.py new file mode 100644 index 0000000..6213426 --- /dev/null +++ b/pokepay/request/list_bill_transactions.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.paginated_bill_transaction import PaginatedBillTransaction + + +class ListBillTransactions(PokepayRequest): + def __init__(self, **rest_args): + self.path = "/transactions" + "/bill" + self.method = "GET" + self.body_params = {} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = PaginatedBillTransaction diff --git a/pokepay/request/list_bills.py b/pokepay/request/list_bills.py index 3dcca1a..5049a30 100644 --- a/pokepay/request/list_bills.py +++ b/pokepay/request/list_bills.py @@ -10,4 +10,6 @@ def __init__(self, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedBills diff --git a/pokepay/request/list_bulk_transaction_jobs.py b/pokepay/request/list_bulk_transaction_jobs.py index ce8fa6e..8d5a2b4 100644 --- a/pokepay/request/list_bulk_transaction_jobs.py +++ b/pokepay/request/list_bulk_transaction_jobs.py @@ -10,4 +10,6 @@ def __init__(self, bulk_transaction_id, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedBulkTransactionJob diff --git a/pokepay/request/list_campaigns.py b/pokepay/request/list_campaigns.py index 4c9efbb..bb2bdb7 100644 --- a/pokepay/request/list_campaigns.py +++ b/pokepay/request/list_campaigns.py @@ -10,4 +10,6 @@ def __init__(self, private_money_id, **rest_args): self.method = "GET" self.body_params = {"private_money_id": private_money_id} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedCampaigns diff --git a/pokepay/request/list_checks.py b/pokepay/request/list_checks.py new file mode 100644 index 0000000..9d4f3c1 --- /dev/null +++ b/pokepay/request/list_checks.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.paginated_checks import PaginatedChecks + + +class ListChecks(PokepayRequest): + def __init__(self, **rest_args): + self.path = "/checks" + self.method = "GET" + self.body_params = {} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = PaginatedChecks diff --git a/pokepay/request/list_coupons.py b/pokepay/request/list_coupons.py new file mode 100644 index 0000000..8c045cd --- /dev/null +++ b/pokepay/request/list_coupons.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.paginated_coupons import PaginatedCoupons + + +class ListCoupons(PokepayRequest): + def __init__(self, private_money_id, **rest_args): + self.path = "/coupons" + self.method = "GET" + self.body_params = {"private_money_id": private_money_id} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = PaginatedCoupons diff --git a/pokepay/request/list_customer_transactions.py b/pokepay/request/list_customer_transactions.py index f8ba611..837d2dd 100644 --- a/pokepay/request/list_customer_transactions.py +++ b/pokepay/request/list_customer_transactions.py @@ -10,4 +10,6 @@ def __init__(self, private_money_id, **rest_args): self.method = "GET" self.body_params = {"private_money_id": private_money_id} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedTransaction diff --git a/pokepay/request/list_organizations.py b/pokepay/request/list_organizations.py new file mode 100644 index 0000000..ebe7e9f --- /dev/null +++ b/pokepay/request/list_organizations.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.paginated_organizations import PaginatedOrganizations + + +class ListOrganizations(PokepayRequest): + def __init__(self, private_money_id, **rest_args): + self.path = "/organizations" + self.method = "GET" + self.body_params = {"private_money_id": private_money_id} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = PaginatedOrganizations diff --git a/pokepay/request/list_shops.py b/pokepay/request/list_shops.py index ea2381f..b3391be 100644 --- a/pokepay/request/list_shops.py +++ b/pokepay/request/list_shops.py @@ -10,4 +10,6 @@ def __init__(self, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedShops diff --git a/pokepay/request/list_transactions.py b/pokepay/request/list_transactions.py index eff7038..f4895ef 100644 --- a/pokepay/request/list_transactions.py +++ b/pokepay/request/list_transactions.py @@ -10,4 +10,6 @@ def __init__(self, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedTransaction diff --git a/pokepay/request/list_transactions_v2.py b/pokepay/request/list_transactions_v2.py index 8b22a54..bd1ccc5 100644 --- a/pokepay/request/list_transactions_v2.py +++ b/pokepay/request/list_transactions_v2.py @@ -10,4 +10,6 @@ def __init__(self, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedTransactionV2 diff --git a/pokepay/request/list_transfers.py b/pokepay/request/list_transfers.py index ce12cfa..96c21ea 100644 --- a/pokepay/request/list_transfers.py +++ b/pokepay/request/list_transfers.py @@ -10,4 +10,6 @@ def __init__(self, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedTransfers diff --git a/pokepay/request/list_transfers_v2.py b/pokepay/request/list_transfers_v2.py index 293e018..68a95ee 100644 --- a/pokepay/request/list_transfers_v2.py +++ b/pokepay/request/list_transfers_v2.py @@ -10,4 +10,6 @@ def __init__(self, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedTransfersV2 diff --git a/pokepay/request/list_user_accounts.py b/pokepay/request/list_user_accounts.py index 4fb3fdc..3d497a5 100644 --- a/pokepay/request/list_user_accounts.py +++ b/pokepay/request/list_user_accounts.py @@ -10,4 +10,6 @@ def __init__(self, user_id, **rest_args): self.method = "GET" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = PaginatedAccountDetails diff --git a/pokepay/request/list_webhooks.py b/pokepay/request/list_webhooks.py new file mode 100644 index 0000000..5718eb5 --- /dev/null +++ b/pokepay/request/list_webhooks.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.paginated_organization_worker_task_webhook import PaginatedOrganizationWorkerTaskWebhook + + +class ListWebhooks(PokepayRequest): + def __init__(self, **rest_args): + self.path = "/webhooks" + self.method = "GET" + self.body_params = {} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = PaginatedOrganizationWorkerTaskWebhook diff --git a/pokepay/request/refund_external_transaction.py b/pokepay/request/refund_external_transaction.py index c147535..527ab20 100644 --- a/pokepay/request/refund_external_transaction.py +++ b/pokepay/request/refund_external_transaction.py @@ -1,7 +1,7 @@ # DO NOT EDIT: File is generated by code generator. from pokepay.request.request import PokepayRequest -from pokepay.response.external_transaction import ExternalTransaction +from pokepay.response.external_transaction_detail import ExternalTransactionDetail class RefundExternalTransaction(PokepayRequest): @@ -10,4 +10,6 @@ def __init__(self, event_id, **rest_args): self.method = "POST" self.body_params = {} self.body_params.update(rest_args) - self.response_class = ExternalTransaction + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = ExternalTransactionDetail diff --git a/pokepay/request/refund_transaction.py b/pokepay/request/refund_transaction.py index 93fc5dd..458f1a1 100644 --- a/pokepay/request/refund_transaction.py +++ b/pokepay/request/refund_transaction.py @@ -10,4 +10,6 @@ def __init__(self, transaction_id, **rest_args): self.method = "POST" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = TransactionDetail diff --git a/pokepay/request/request_user_stats.py b/pokepay/request/request_user_stats.py index f83df0a..d550cf4 100644 --- a/pokepay/request/request_user_stats.py +++ b/pokepay/request/request_user_stats.py @@ -5,10 +5,12 @@ class RequestUserStats(PokepayRequest): - def __init__(self, start, to): + def __init__(self, from_, to): self.path = "/user-stats" self.method = "POST" - self.body_params = {"from": start, + self.body_params = {"from": from_, "to": to} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = UserStatsOperation diff --git a/pokepay/request/send_echo.py b/pokepay/request/send_echo.py index 75a02ba..9b3fe7e 100644 --- a/pokepay/request/send_echo.py +++ b/pokepay/request/send_echo.py @@ -10,4 +10,6 @@ def __init__(self, message): self.method = "POST" self.body_params = {"message": message} + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = Echo diff --git a/pokepay/request/terminate_user_stats.py b/pokepay/request/terminate_user_stats.py new file mode 100644 index 0000000..cb1ccfa --- /dev/null +++ b/pokepay/request/terminate_user_stats.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.user_stats_operation import UserStatsOperation + + +class TerminateUserStats(PokepayRequest): + def __init__(self, operation_id): + self.path = "/user-stats" + "/terminate" + self.method = "POST" + self.body_params = {"operation_id": operation_id} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = UserStatsOperation diff --git a/pokepay/request/update_account.py b/pokepay/request/update_account.py index 1fa2b6b..33345f5 100644 --- a/pokepay/request/update_account.py +++ b/pokepay/request/update_account.py @@ -10,4 +10,6 @@ def __init__(self, account_id, **rest_args): self.method = "PATCH" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = AccountDetail diff --git a/pokepay/request/update_bill.py b/pokepay/request/update_bill.py index 456cf91..4419b5f 100644 --- a/pokepay/request/update_bill.py +++ b/pokepay/request/update_bill.py @@ -10,4 +10,6 @@ def __init__(self, bill_id, **rest_args): self.method = "PATCH" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = Bill diff --git a/pokepay/request/update_campaign.py b/pokepay/request/update_campaign.py index a089cf4..ef247a9 100644 --- a/pokepay/request/update_campaign.py +++ b/pokepay/request/update_campaign.py @@ -10,4 +10,6 @@ def __init__(self, campaign_id, **rest_args): self.method = "PATCH" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = Campaign diff --git a/pokepay/request/update_cashtray.py b/pokepay/request/update_cashtray.py index 213b11b..1564a71 100644 --- a/pokepay/request/update_cashtray.py +++ b/pokepay/request/update_cashtray.py @@ -10,4 +10,6 @@ def __init__(self, cashtray_id, **rest_args): self.method = "PATCH" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = Cashtray diff --git a/pokepay/request/update_check.py b/pokepay/request/update_check.py new file mode 100644 index 0000000..db8082d --- /dev/null +++ b/pokepay/request/update_check.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.check import Check + + +class UpdateCheck(PokepayRequest): + def __init__(self, check_id, **rest_args): + self.path = "/checks" + "/" + check_id + self.method = "PATCH" + self.body_params = {} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = Check diff --git a/pokepay/request/update_coupon.py b/pokepay/request/update_coupon.py new file mode 100644 index 0000000..aaae969 --- /dev/null +++ b/pokepay/request/update_coupon.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.coupon_detail import CouponDetail + + +class UpdateCoupon(PokepayRequest): + def __init__(self, coupon_id, **rest_args): + self.path = "/coupons" + "/" + coupon_id + self.method = "PATCH" + self.body_params = {} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = CouponDetail diff --git a/pokepay/request/update_customer_account.py b/pokepay/request/update_customer_account.py index 9225199..6efa788 100644 --- a/pokepay/request/update_customer_account.py +++ b/pokepay/request/update_customer_account.py @@ -10,4 +10,6 @@ def __init__(self, account_id, **rest_args): self.method = "PATCH" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = AccountWithUser diff --git a/pokepay/request/update_shop.py b/pokepay/request/update_shop.py index 78cd0a2..61e3aa3 100644 --- a/pokepay/request/update_shop.py +++ b/pokepay/request/update_shop.py @@ -10,4 +10,6 @@ def __init__(self, shop_id, **rest_args): self.method = "PATCH" self.body_params = {} self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') self.response_class = ShopWithAccounts diff --git a/pokepay/request/update_webhook.py b/pokepay/request/update_webhook.py new file mode 100644 index 0000000..4febda4 --- /dev/null +++ b/pokepay/request/update_webhook.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.organization_worker_task_webhook import OrganizationWorkerTaskWebhook + + +class UpdateWebhook(PokepayRequest): + def __init__(self, webhook_id, **rest_args): + self.path = "/webhooks" + "/" + webhook_id + self.method = "PATCH" + self.body_params = {} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = OrganizationWorkerTaskWebhook diff --git a/pokepay/response/bank.py b/pokepay/response/bank.py new file mode 100644 index 0000000..8dfa2dc --- /dev/null +++ b/pokepay/response/bank.py @@ -0,0 +1,45 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class Bank(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.id = response_body['id'] + self.private_money = response_body['private_money'] + self.bank_name = response_body['bank_name'] + self.bank_code = response_body['bank_code'] + self.branch_number = response_body['branch_number'] + self.branch_name = response_body['branch_name'] + self.deposit_type = response_body['deposit_type'] + self.masked_account_number = response_body['masked_account_number'] + self.account_name = response_body['account_name'] + + def id(self): + return self.id + + def private_money(self): + return self.private_money + + def bank_name(self): + return self.bank_name + + def bank_code(self): + return self.bank_code + + def branch_number(self): + return self.branch_number + + def branch_name(self): + return self.branch_name + + def deposit_type(self): + return self.deposit_type + + def masked_account_number(self): + return self.masked_account_number + + def account_name(self): + return self.account_name + diff --git a/pokepay/response/bank_deleted.py b/pokepay/response/bank_deleted.py new file mode 100644 index 0000000..5b60481 --- /dev/null +++ b/pokepay/response/bank_deleted.py @@ -0,0 +1,11 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class BankDeleted(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + + + diff --git a/pokepay/response/bank_registering_info.py b/pokepay/response/bank_registering_info.py new file mode 100644 index 0000000..4560445 --- /dev/null +++ b/pokepay/response/bank_registering_info.py @@ -0,0 +1,17 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class BankRegisteringInfo(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.redirect_url = response_body['redirect_url'] + self.paytree_customer_number = response_body['paytree_customer_number'] + + def redirect_url(self): + return self.redirect_url + + def paytree_customer_number(self): + return self.paytree_customer_number + diff --git a/pokepay/response/banks.py b/pokepay/response/banks.py new file mode 100644 index 0000000..589fe90 --- /dev/null +++ b/pokepay/response/banks.py @@ -0,0 +1,17 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class Banks(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.rows = response_body['rows'] + self.count = response_body['count'] + + def rows(self): + return self.rows + + def count(self): + return self.count + diff --git a/pokepay/response/bill_transaction.py b/pokepay/response/bill_transaction.py new file mode 100644 index 0000000..a7d4c17 --- /dev/null +++ b/pokepay/response/bill_transaction.py @@ -0,0 +1,17 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class BillTransaction(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.transaction = response_body['transaction'] + self.bill = response_body['bill'] + + def transaction(self): + return self.transaction + + def bill(self): + return self.bill + diff --git a/pokepay/response/campaign.py b/pokepay/response/campaign.py index d929558..5397d26 100644 --- a/pokepay/response/campaign.py +++ b/pokepay/response/campaign.py @@ -23,6 +23,9 @@ def __init__(self, response, response_body): self.point_calculation_rule = response_body['point_calculation_rule'] self.point_calculation_rule_object = response_body['point_calculation_rule_object'] self.status = response_body['status'] + self.budget_caps_amount = response_body['budget_caps_amount'] + self.budget_current_amount = response_body['budget_current_amount'] + self.budget_current_time = response_body['budget_current_time'] def id(self): return self.id @@ -75,3 +78,12 @@ def point_calculation_rule_object(self): def status(self): return self.status + def budget_caps_amount(self): + return self.budget_caps_amount + + def budget_current_amount(self): + return self.budget_current_amount + + def budget_current_time(self): + return self.budget_current_time + diff --git a/pokepay/response/check.py b/pokepay/response/check.py index ba347aa..b6f6aac 100644 --- a/pokepay/response/check.py +++ b/pokepay/response/check.py @@ -16,6 +16,7 @@ def __init__(self, response, response_body): self.is_onetime = response_body['is_onetime'] self.is_disabled = response_body['is_disabled'] self.expires_at = response_body['expires_at'] + self.last_used_at = response_body['last_used_at'] self.private_money = response_body['private_money'] self.usage_limit = response_body['usage_limit'] self.usage_count = response_body['usage_count'] @@ -53,6 +54,9 @@ def is_disabled(self): def expires_at(self): return self.expires_at + def last_used_at(self): + return self.last_used_at + def private_money(self): return self.private_money diff --git a/pokepay/response/coupon.py b/pokepay/response/coupon.py new file mode 100644 index 0000000..c9e1853 --- /dev/null +++ b/pokepay/response/coupon.py @@ -0,0 +1,85 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class Coupon(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.id = response_body['id'] + self.name = response_body['name'] + self.issued_shop = response_body['issued_shop'] + self.description = response_body['description'] + self.discount_amount = response_body['discount_amount'] + self.discount_percentage = response_body['discount_percentage'] + self.discount_upper_limit = response_body['discount_upper_limit'] + self.starts_at = response_body['starts_at'] + self.ends_at = response_body['ends_at'] + self.display_starts_at = response_body['display_starts_at'] + self.display_ends_at = response_body['display_ends_at'] + self.usage_limit = response_body['usage_limit'] + self.min_amount = response_body['min_amount'] + self.is_shop_specified = response_body['is_shop_specified'] + self.is_hidden = response_body['is_hidden'] + self.is_public = response_body['is_public'] + self.code = response_body['code'] + self.is_disabled = response_body['is_disabled'] + self.token = response_body['token'] + + def id(self): + return self.id + + def name(self): + return self.name + + def issued_shop(self): + return self.issued_shop + + def description(self): + return self.description + + def discount_amount(self): + return self.discount_amount + + def discount_percentage(self): + return self.discount_percentage + + def discount_upper_limit(self): + return self.discount_upper_limit + + def starts_at(self): + return self.starts_at + + def ends_at(self): + return self.ends_at + + def display_starts_at(self): + return self.display_starts_at + + def display_ends_at(self): + return self.display_ends_at + + def usage_limit(self): + return self.usage_limit + + def min_amount(self): + return self.min_amount + + def is_shop_specified(self): + return self.is_shop_specified + + def is_hidden(self): + return self.is_hidden + + def is_public(self): + return self.is_public + + def code(self): + return self.code + + def is_disabled(self): + return self.is_disabled + + def token(self): + return self.token + diff --git a/pokepay/response/coupon_detail.py b/pokepay/response/coupon_detail.py new file mode 100644 index 0000000..eade596 --- /dev/null +++ b/pokepay/response/coupon_detail.py @@ -0,0 +1,97 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class CouponDetail(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.id = response_body['id'] + self.name = response_body['name'] + self.issued_shop = response_body['issued_shop'] + self.description = response_body['description'] + self.discount_amount = response_body['discount_amount'] + self.discount_percentage = response_body['discount_percentage'] + self.discount_upper_limit = response_body['discount_upper_limit'] + self.starts_at = response_body['starts_at'] + self.ends_at = response_body['ends_at'] + self.display_starts_at = response_body['display_starts_at'] + self.display_ends_at = response_body['display_ends_at'] + self.usage_limit = response_body['usage_limit'] + self.min_amount = response_body['min_amount'] + self.is_shop_specified = response_body['is_shop_specified'] + self.is_hidden = response_body['is_hidden'] + self.is_public = response_body['is_public'] + self.code = response_body['code'] + self.is_disabled = response_body['is_disabled'] + self.token = response_body['token'] + self.coupon_image = response_body['coupon_image'] + self.available_shops = response_body['available_shops'] + self.private_money = response_body['private_money'] + + def id(self): + return self.id + + def name(self): + return self.name + + def issued_shop(self): + return self.issued_shop + + def description(self): + return self.description + + def discount_amount(self): + return self.discount_amount + + def discount_percentage(self): + return self.discount_percentage + + def discount_upper_limit(self): + return self.discount_upper_limit + + def starts_at(self): + return self.starts_at + + def ends_at(self): + return self.ends_at + + def display_starts_at(self): + return self.display_starts_at + + def display_ends_at(self): + return self.display_ends_at + + def usage_limit(self): + return self.usage_limit + + def min_amount(self): + return self.min_amount + + def is_shop_specified(self): + return self.is_shop_specified + + def is_hidden(self): + return self.is_hidden + + def is_public(self): + return self.is_public + + def code(self): + return self.code + + def is_disabled(self): + return self.is_disabled + + def token(self): + return self.token + + def coupon_image(self): + return self.coupon_image + + def available_shops(self): + return self.available_shops + + def private_money(self): + return self.private_money + diff --git a/pokepay/response/user_transaction.py b/pokepay/response/external_transaction_detail.py similarity index 52% rename from pokepay/response/user_transaction.py rename to pokepay/response/external_transaction_detail.py index 184ba7e..846ee06 100644 --- a/pokepay/response/user_transaction.py +++ b/pokepay/response/external_transaction_detail.py @@ -3,51 +3,47 @@ from pokepay.response.response import PokepayResponse -class UserTransaction(PokepayResponse): +class ExternalTransactionDetail(PokepayResponse): def __init__(self, response, response_body): super().__init__(response, response_body) self.id = response_body['id'] - self.user = response_body['user'] - self.balance = response_body['balance'] + self.is_modified = response_body['is_modified'] + self.sender = response_body['sender'] + self.sender_account = response_body['sender_account'] + self.receiver = response_body['receiver'] + self.receiver_account = response_body['receiver_account'] self.amount = response_body['amount'] - self.money_amount = response_body['money_amount'] - self.point_amount = response_body['point_amount'] - self.account = response_body['account'] - self.description = response_body['description'] self.done_at = response_body['done_at'] - self.type = response_body['type'] - self.is_modified = response_body['is_modified'] + self.description = response_body['description'] + self.transaction = response_body['transaction'] def id(self): return self.id - def user(self): - return self.user - - def balance(self): - return self.balance + def is_modified(self): + return self.is_modified - def amount(self): - return self.amount + def sender(self): + return self.sender - def money_amount(self): - return self.money_amount + def sender_account(self): + return self.sender_account - def point_amount(self): - return self.point_amount + def receiver(self): + return self.receiver - def account(self): - return self.account + def receiver_account(self): + return self.receiver_account - def description(self): - return self.description + def amount(self): + return self.amount def done_at(self): return self.done_at - def type(self): - return self.type + def description(self): + return self.description - def is_modified(self): - return self.is_modified + def transaction(self): + return self.transaction diff --git a/pokepay/response/organization_summary.py b/pokepay/response/organization_summary.py index b3af9dd..d6f3fa7 100644 --- a/pokepay/response/organization_summary.py +++ b/pokepay/response/organization_summary.py @@ -10,6 +10,8 @@ def __init__(self, response, response_body): self.money_amount = response_body['money_amount'] self.money_count = response_body['money_count'] self.point_amount = response_body['point_amount'] + self.raw_point_amount = response_body['raw_point_amount'] + self.campaign_point_amount = response_body['campaign_point_amount'] self.point_count = response_body['point_count'] def count(self): @@ -24,6 +26,12 @@ def money_count(self): def point_amount(self): return self.point_amount + def raw_point_amount(self): + return self.raw_point_amount + + def campaign_point_amount(self): + return self.campaign_point_amount + def point_count(self): return self.point_count diff --git a/pokepay/response/organization_worker_task_webhook.py b/pokepay/response/organization_worker_task_webhook.py new file mode 100644 index 0000000..56e1de9 --- /dev/null +++ b/pokepay/response/organization_worker_task_webhook.py @@ -0,0 +1,33 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class OrganizationWorkerTaskWebhook(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.id = response_body['id'] + self.organization_code = response_body['organization_code'] + self.task = response_body['task'] + self.url = response_body['url'] + self.content_type = response_body['content_type'] + self.is_active = response_body['is_active'] + + def id(self): + return self.id + + def organization_code(self): + return self.organization_code + + def task(self): + return self.task + + def url(self): + return self.url + + def content_type(self): + return self.content_type + + def is_active(self): + return self.is_active + diff --git a/pokepay/response/paginated_bill_transaction.py b/pokepay/response/paginated_bill_transaction.py new file mode 100644 index 0000000..9476cbb --- /dev/null +++ b/pokepay/response/paginated_bill_transaction.py @@ -0,0 +1,29 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class PaginatedBillTransaction(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.rows = response_body['rows'] + self.per_page = response_body['per_page'] + self.count = response_body['count'] + self.next_page_cursor_id = response_body['next_page_cursor_id'] + self.prev_page_cursor_id = response_body['prev_page_cursor_id'] + + def rows(self): + return self.rows + + def per_page(self): + return self.per_page + + def count(self): + return self.count + + def next_page_cursor_id(self): + return self.next_page_cursor_id + + def prev_page_cursor_id(self): + return self.prev_page_cursor_id + diff --git a/pokepay/response/paginated_checks.py b/pokepay/response/paginated_checks.py new file mode 100644 index 0000000..0c418aa --- /dev/null +++ b/pokepay/response/paginated_checks.py @@ -0,0 +1,21 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class PaginatedChecks(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.rows = response_body['rows'] + self.count = response_body['count'] + self.pagination = response_body['pagination'] + + def rows(self): + return self.rows + + def count(self): + return self.count + + def pagination(self): + return self.pagination + diff --git a/pokepay/response/paginated_coupons.py b/pokepay/response/paginated_coupons.py new file mode 100644 index 0000000..b97bb28 --- /dev/null +++ b/pokepay/response/paginated_coupons.py @@ -0,0 +1,21 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class PaginatedCoupons(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.rows = response_body['rows'] + self.count = response_body['count'] + self.pagination = response_body['pagination'] + + def rows(self): + return self.rows + + def count(self): + return self.count + + def pagination(self): + return self.pagination + diff --git a/pokepay/response/paginated_organization_worker_task_webhook.py b/pokepay/response/paginated_organization_worker_task_webhook.py new file mode 100644 index 0000000..106c638 --- /dev/null +++ b/pokepay/response/paginated_organization_worker_task_webhook.py @@ -0,0 +1,21 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class PaginatedOrganizationWorkerTaskWebhook(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.rows = response_body['rows'] + self.count = response_body['count'] + self.pagination = response_body['pagination'] + + def rows(self): + return self.rows + + def count(self): + return self.count + + def pagination(self): + return self.pagination + diff --git a/pokepay/response/paginated_organizations.py b/pokepay/response/paginated_organizations.py new file mode 100644 index 0000000..d4a9b86 --- /dev/null +++ b/pokepay/response/paginated_organizations.py @@ -0,0 +1,21 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class PaginatedOrganizations(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.rows = response_body['rows'] + self.count = response_body['count'] + self.pagination = response_body['pagination'] + + def rows(self): + return self.rows + + def count(self): + return self.count + + def pagination(self): + return self.pagination + diff --git a/pokepay/response/private_money.py b/pokepay/response/private_money.py index ae1e2e8..5e09700 100644 --- a/pokepay/response/private_money.py +++ b/pokepay/response/private_money.py @@ -15,6 +15,7 @@ def __init__(self, response, response_body): self.organization = response_body['organization'] self.max_balance = response_body['max_balance'] self.transfer_limit = response_body['transfer_limit'] + self.money_topup_transfer_limit = response_body['money_topup_transfer_limit'] self.type = response_body['type'] self.expiration_type = response_body['expiration_type'] self.enable_topup_by_member = response_body['enable_topup_by_member'] @@ -47,6 +48,9 @@ def max_balance(self): def transfer_limit(self): return self.transfer_limit + def money_topup_transfer_limit(self): + return self.money_topup_transfer_limit + def type(self): return self.type diff --git a/pokepay/response/private_money_summary.py b/pokepay/response/private_money_summary.py index 283cdcb..b980b0d 100644 --- a/pokepay/response/private_money_summary.py +++ b/pokepay/response/private_money_summary.py @@ -11,6 +11,8 @@ def __init__(self, response, response_body): self.payment_amount = response_body['payment_amount'] self.refunded_payment_amount = response_body['refunded_payment_amount'] self.added_point_amount = response_body['added_point_amount'] + self.topup_point_amount = response_body['topup_point_amount'] + self.campaign_point_amount = response_body['campaign_point_amount'] self.refunded_added_point_amount = response_body['refunded_added_point_amount'] self.exchange_inflow_amount = response_body['exchange_inflow_amount'] self.exchange_outflow_amount = response_body['exchange_outflow_amount'] @@ -31,6 +33,12 @@ def refunded_payment_amount(self): def added_point_amount(self): return self.added_point_amount + def topup_point_amount(self): + return self.topup_point_amount + + def campaign_point_amount(self): + return self.campaign_point_amount + def refunded_added_point_amount(self): return self.refunded_added_point_amount diff --git a/pokepay/response/product.py b/pokepay/response/product.py index 776571d..0338442 100644 --- a/pokepay/response/product.py +++ b/pokepay/response/product.py @@ -10,6 +10,7 @@ def __init__(self, response, response_body): self.name = response_body['name'] self.unit_price = response_body['unit_price'] self.price = response_body['price'] + self.quantity = response_body['quantity'] self.is_discounted = response_body['is_discounted'] self.other = response_body['other'] @@ -25,6 +26,9 @@ def unit_price(self): def price(self): return self.price + def quantity(self): + return self.quantity + def is_discounted(self): return self.is_discounted diff --git a/pokepay/response/seven_bank_atm_session.py b/pokepay/response/seven_bank_atm_session.py new file mode 100644 index 0000000..485a6e0 --- /dev/null +++ b/pokepay/response/seven_bank_atm_session.py @@ -0,0 +1,49 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class SevenBankATMSession(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.qr_info = response_body['qr_info'] + self.account = response_body['account'] + self.amount = response_body['amount'] + self.transaction = response_body['transaction'] + self.seven_bank_customer_number = response_body['seven_bank_customer_number'] + self.atm_id = response_body['atm_id'] + self.audi_id = response_body['audi_id'] + self.issuer_code = response_body['issuer_code'] + self.issuer_name = response_body['issuer_name'] + self.money_name = response_body['money_name'] + + def qr_info(self): + return self.qr_info + + def account(self): + return self.account + + def amount(self): + return self.amount + + def transaction(self): + return self.transaction + + def seven_bank_customer_number(self): + return self.seven_bank_customer_number + + def atm_id(self): + return self.atm_id + + def audi_id(self): + return self.audi_id + + def issuer_code(self): + return self.issuer_code + + def issuer_name(self): + return self.issuer_name + + def money_name(self): + return self.money_name + diff --git a/pokepay/response/shop_with_accounts.py b/pokepay/response/shop_with_accounts.py index 8a92110..0b62e7d 100644 --- a/pokepay/response/shop_with_accounts.py +++ b/pokepay/response/shop_with_accounts.py @@ -9,6 +9,7 @@ def __init__(self, response, response_body): self.id = response_body['id'] self.name = response_body['name'] self.organization_code = response_body['organization_code'] + self.status = response_body['status'] self.postal_code = response_body['postal_code'] self.address = response_body['address'] self.tel = response_body['tel'] @@ -25,6 +26,9 @@ def name(self): def organization_code(self): return self.organization_code + def status(self): + return self.status + def postal_code(self): return self.postal_code diff --git a/pokepay/response/shop_with_metadata.py b/pokepay/response/shop_with_metadata.py index f8f185a..3707c1a 100644 --- a/pokepay/response/shop_with_metadata.py +++ b/pokepay/response/shop_with_metadata.py @@ -9,6 +9,7 @@ def __init__(self, response, response_body): self.id = response_body['id'] self.name = response_body['name'] self.organization_code = response_body['organization_code'] + self.status = response_body['status'] self.postal_code = response_body['postal_code'] self.address = response_body['address'] self.tel = response_body['tel'] @@ -24,6 +25,9 @@ def name(self): def organization_code(self): return self.organization_code + def status(self): + return self.status + def postal_code(self): return self.postal_code diff --git a/pokepay/response/transaction.py b/pokepay/response/transaction.py index 0b68a78..0254904 100644 --- a/pokepay/response/transaction.py +++ b/pokepay/response/transaction.py @@ -16,6 +16,8 @@ def __init__(self, response, response_body): self.amount = response_body['amount'] self.money_amount = response_body['money_amount'] self.point_amount = response_body['point_amount'] + self.raw_point_amount = response_body['raw_point_amount'] + self.campaign_point_amount = response_body['campaign_point_amount'] self.done_at = response_body['done_at'] self.description = response_body['description'] @@ -49,6 +51,12 @@ def money_amount(self): def point_amount(self): return self.point_amount + def raw_point_amount(self): + return self.raw_point_amount + + def campaign_point_amount(self): + return self.campaign_point_amount + def done_at(self): return self.done_at diff --git a/pokepay/response/transaction_detail.py b/pokepay/response/transaction_detail.py index 88485ea..83a95d9 100644 --- a/pokepay/response/transaction_detail.py +++ b/pokepay/response/transaction_detail.py @@ -16,6 +16,8 @@ def __init__(self, response, response_body): self.amount = response_body['amount'] self.money_amount = response_body['money_amount'] self.point_amount = response_body['point_amount'] + self.raw_point_amount = response_body['raw_point_amount'] + self.campaign_point_amount = response_body['campaign_point_amount'] self.done_at = response_body['done_at'] self.description = response_body['description'] self.transfers = response_body['transfers'] @@ -50,6 +52,12 @@ def money_amount(self): def point_amount(self): return self.point_amount + def raw_point_amount(self): + return self.raw_point_amount + + def campaign_point_amount(self): + return self.campaign_point_amount + def done_at(self): return self.done_at diff --git a/pokepay/response/user_device.py b/pokepay/response/user_device.py new file mode 100644 index 0000000..605f06f --- /dev/null +++ b/pokepay/response/user_device.py @@ -0,0 +1,25 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class UserDevice(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.id = response_body['id'] + self.user = response_body['user'] + self.is_active = response_body['is_active'] + self.metadata = response_body['metadata'] + + def id(self): + return self.id + + def user(self): + return self.user + + def is_active(self): + return self.is_active + + def metadata(self): + return self.metadata + diff --git a/pokepay/response/user_stats_operation.py b/pokepay/response/user_stats_operation.py index b89a760..d5c8536 100644 --- a/pokepay/response/user_stats_operation.py +++ b/pokepay/response/user_stats_operation.py @@ -7,7 +7,7 @@ class UserStatsOperation(PokepayResponse): def __init__(self, response, response_body): super().__init__(response, response_body) self.id = response_body['id'] - self.start = response_body['from'] + self.from_ = response_body['from'] self.to = response_body['to'] self.status = response_body['status'] self.error_reason = response_body['error_reason'] @@ -18,8 +18,8 @@ def __init__(self, response, response_body): def id(self): return self.id - def start(self): - return self.start + def from_(self): + return self.from_ def to(self): return self.to diff --git a/tests/create_organization_test.py b/tests/create_organization_test.py new file mode 100644 index 0000000..4fe5c8d --- /dev/null +++ b/tests/create_organization_test.py @@ -0,0 +1,59 @@ +# coding: utf-8 +# DO NOT EDIT: File is generated by code generator. + +import os +import unittest +import pokepay as pp +from pokepay.client import Client +import tests.util + +package_root = os.path.dirname(os.path.dirname(pp.__file__)) +config_path = os.path.join(package_root, 'config.ini') +client = Client(config_path) + +def testCreateOrganization(self): + code = "test-org" + tests.util.random_string(6) + name = "テスト組織" + tests.util.random_string(4) + private_money_ids = ["4b138a4c-8944-4f98-a5c4-96d3c1c415eb"] + issuer_admin_user_email = tests.util.random_string(6) + "@pokepay-tests.jp" + member_admin_user_email = tests.util.random_string(6) + "@pokepay-tests.jp" + response = client.send(pp.CreateOrganization( + code, + name, + private_money_ids, + issuer_admin_user_email, + member_admin_user_email + )) + self.assertEqual(code, response.code) + self.assertEqual(name, response.name) +def testCreateOrganizationWithMetadata(self): + code = "test-org" + tests.util.random_string(6) + name = "テスト組織" + tests.util.random_string(4) + private_money_ids = ["4b138a4c-8944-4f98-a5c4-96d3c1c415eb"] + issuer_admin_user_email = tests.util.random_string(6) + "@pokepay-tests.jp" + member_admin_user_email = tests.util.random_string(6) + "@pokepay-tests.jp" + bank_code = "1234" + bank_name = tests.util.random_string(4) + "銀行" + bank_branch_code = "123" + bank_branch_name = tests.util.random_string(4) + "支店" + bank_account_type = "saving" + bank_account = "1234567" + bank_account_holder_name = "フクザワユキチ" + contact_name = "佐藤清" + response = client.send(pp.CreateOrganization( + code, + name, + private_money_ids, + issuer_admin_user_email, + member_admin_user_email, + bank_code: bank_code, + bank_name: bank_name, + bank_branch_code: bank_branch_code, + bank_branch_name: bank_branch_name, + bank_account_type: bank_account_type, + bank_account: bank_account, + bank_account_holder_name: bank_account_holder_name, + contact_name: contact_name + )) + self.assertEqual(code, response.code) + self.assertEqual(name, response.name) diff --git a/tests/list_organizations.py b/tests/list_organizations.py new file mode 100644 index 0000000..fbeee02 --- /dev/null +++ b/tests/list_organizations.py @@ -0,0 +1,24 @@ +# coding: utf-8 +# DO NOT EDIT: File is generated by code generator. + +import os +import unittest +import pokepay as pp +from pokepay.client import Client +import tests.util + +package_root = os.path.dirname(os.path.dirname(pp.__file__)) +config_path = os.path.join(package_root, 'config.ini') +client = Client(config_path) + +def simple(self): + response = client.send(pp.ListOrganizations( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" + )) + print(response) +def paging(self): + response = client.send(pp.ListOrganizations( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + per_page: 3 + )) + self.assertEqual(3, response.pagination.per_page) diff --git a/tests/send_echo_test.py b/tests/send_echo_test.py new file mode 100644 index 0000000..41b51eb --- /dev/null +++ b/tests/send_echo_test.py @@ -0,0 +1,19 @@ +# coding: utf-8 +# DO NOT EDIT: File is generated by code generator. + +import os +import unittest +import pokepay as pp +from pokepay.client import Client +import tests.util + +package_root = os.path.dirname(os.path.dirname(pp.__file__)) +config_path = os.path.join(package_root, 'config.ini') +client = Client(config_path) + +def simpleTest(self): + response = client.send(pp.SendEcho( + "Hello" + )) + self.assertEqual("ok", response.status) + self.assertEqual("Hello", response.message) diff --git a/tests/test_request_validation.py b/tests/test_request_validation.py index 3313dbc..05e243d 100644 --- a/tests/test_request_validation.py +++ b/tests/test_request_validation.py @@ -20,7 +20,7 @@ def test_get_ping_0(self): def test_send_echo_0(self): response = client.send(pp.SendEcho( - "AIRkH" + "DgdY" )) self.assertNotEqual(response.status_code, 400) @@ -31,463 +31,463 @@ def test_get_user_0(self): def test_list_user_accounts_0(self): response = client.send(pp.ListUserAccounts( - "a0cca592-bf22-4263-8ecd-026754ff855d" + "f7badafa-54a1-4511-b337-e4aa1c1fe652" )) self.assertNotEqual(response.status_code, 400) def test_list_user_accounts_1(self): response = client.send(pp.ListUserAccounts( - "a0cca592-bf22-4263-8ecd-026754ff855d", - per_page=3358 + "f7badafa-54a1-4511-b337-e4aa1c1fe652", + per_page=5145 )) self.assertNotEqual(response.status_code, 400) def test_list_user_accounts_2(self): response = client.send(pp.ListUserAccounts( - "a0cca592-bf22-4263-8ecd-026754ff855d", - page=5271, - per_page=8562 + "f7badafa-54a1-4511-b337-e4aa1c1fe652", + page=7996, + per_page=3122 )) self.assertNotEqual(response.status_code, 400) def test_create_user_account_0(self): response = client.send(pp.CreateUserAccount( - "4790f39c-f3ce-4a37-b7c6-ca019185d723", - "9f527c51-9a7e-4677-87ab-ae21ff187cf5" + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d" )) self.assertNotEqual(response.status_code, 400) def test_create_user_account_1(self): response = client.send(pp.CreateUserAccount( - "4790f39c-f3ce-4a37-b7c6-ca019185d723", - "9f527c51-9a7e-4677-87ab-ae21ff187cf5", + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d", metadata="{\"key1\":\"foo\",\"key2\":\"bar\"}" )) self.assertNotEqual(response.status_code, 400) def test_create_user_account_2(self): response = client.send(pp.CreateUserAccount( - "4790f39c-f3ce-4a37-b7c6-ca019185d723", - "9f527c51-9a7e-4677-87ab-ae21ff187cf5", - external_id="iGtQW4pnFSkfz0ZA", + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d", + external_id="FBMnn24Y00BddIYIaGsnHTfyj3vGhpYs6lE3PVx", metadata="{\"key1\":\"foo\",\"key2\":\"bar\"}" )) self.assertNotEqual(response.status_code, 400) def test_create_user_account_3(self): response = client.send(pp.CreateUserAccount( - "4790f39c-f3ce-4a37-b7c6-ca019185d723", - "9f527c51-9a7e-4677-87ab-ae21ff187cf5", - name="uHKErS89ga8rAwXpAiqwTxt1HL4wWzmkMDA4SVfWD13Zj3L9DQPYajb0tVdWEdtL2ujHbA770c9iXi2Q1VWdznJovLhT0BrHHw3tEdBOJZocfpIFBg2EP1IMpzVlOR0ZjHbJ4pIYeH1mIjK91BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2IgQjODYIDOJbPEulQI", - external_id="vNSkQALktsxpQNr6y6a28m0nRuldHpS", + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d", + name="hCRcEAVa4JmfjoJZ9ajsO39BqxPDSP5BpfA0dYcuMmHpa4aDHWm32hBFhI0DxRhz83lKq4Wp1hKlNvpHM0s7Dd9Uu6qWqC0qUtLag9adxARTcCtKjz1M2kusM3cVDMOGMtpxWNvKR6Gcp6PWCiNymBaUIu6lQIyVNDYRttS46oTXBYnbHbMuAdnXANiixumuncg7egxc7L05i8jkZ1Waa", + external_id="h6AAgB9jXehhbgs", metadata="{\"key1\":\"foo\",\"key2\":\"bar\"}" )) self.assertNotEqual(response.status_code, 400) + def test_delete_account_0(self): + response = client.send(pp.DeleteAccount( + "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_delete_account_1(self): + response = client.send(pp.DeleteAccount( + "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d", + cashback=True + )) + self.assertNotEqual(response.status_code, 400) + def test_get_account_0(self): response = client.send(pp.GetAccount( - "ce82075e-0d91-419b-b5bc-31458306bc55" + "e2f27231-d218-406e-b371-622b2afd45f7" )) self.assertNotEqual(response.status_code, 400) def test_update_account_0(self): response = client.send(pp.UpdateAccount( - "9d4a4a80-c7f0-40db-a450-36e946e1971a" + "f687016b-d0b3-46f2-8833-e8985291851f" )) self.assertNotEqual(response.status_code, 400) def test_update_account_1(self): response = client.send(pp.UpdateAccount( - "9d4a4a80-c7f0-40db-a450-36e946e1971a", - can_transfer_topup=False + "f687016b-d0b3-46f2-8833-e8985291851f", + can_transfer_topup=True )) self.assertNotEqual(response.status_code, 400) def test_update_account_2(self): response = client.send(pp.UpdateAccount( - "9d4a4a80-c7f0-40db-a450-36e946e1971a", - status="suspended", + "f687016b-d0b3-46f2-8833-e8985291851f", + status="pre-closed", can_transfer_topup=True )) self.assertNotEqual(response.status_code, 400) def test_update_account_3(self): response = client.send(pp.UpdateAccount( - "9d4a4a80-c7f0-40db-a450-36e946e1971a", + "f687016b-d0b3-46f2-8833-e8985291851f", is_suspended=True, - status="suspended", + status="active", can_transfer_topup=False )) self.assertNotEqual(response.status_code, 400) - def test_delete_account_0(self): - response = client.send(pp.DeleteAccount( - "3f9092d1-1997-4132-869d-a7c75a5d798b" - )) - self.assertNotEqual(response.status_code, 400) - - def test_delete_account_1(self): - response = client.send(pp.DeleteAccount( - "3f9092d1-1997-4132-869d-a7c75a5d798b", - cashback=True - )) - self.assertNotEqual(response.status_code, 400) - def test_list_account_balances_0(self): response = client.send(pp.ListAccountBalances( - "fe9ba5e6-5a43-4eb0-a1f4-973999643afe" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95" )) self.assertNotEqual(response.status_code, 400) def test_list_account_balances_1(self): response = client.send(pp.ListAccountBalances( - "fe9ba5e6-5a43-4eb0-a1f4-973999643afe", - direction="asc" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + direction="desc" )) self.assertNotEqual(response.status_code, 400) def test_list_account_balances_2(self): response = client.send(pp.ListAccountBalances( - "fe9ba5e6-5a43-4eb0-a1f4-973999643afe", - expires_at_to="2019-01-29T08:31:34.000000+09:00", - direction="asc" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + expires_at_to="2020-10-07T18:59:38.000000Z", + direction="desc" )) self.assertNotEqual(response.status_code, 400) def test_list_account_balances_3(self): response = client.send(pp.ListAccountBalances( - "fe9ba5e6-5a43-4eb0-a1f4-973999643afe", - expires_at_from="2025-01-12T13:40:21.000000+09:00", - expires_at_to="2023-01-11T21:31:56.000000+09:00", - direction="asc" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + expires_at_from="2020-09-07T21:25:03.000000Z", + expires_at_to="2024-10-02T20:33:17.000000Z", + direction="desc" )) self.assertNotEqual(response.status_code, 400) def test_list_account_balances_4(self): response = client.send(pp.ListAccountBalances( - "fe9ba5e6-5a43-4eb0-a1f4-973999643afe", - per_page=1016, - expires_at_from="2024-09-04T17:10:42.000000+09:00", - expires_at_to="2018-06-16T11:20:58.000000+09:00", + "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + per_page=5374, + expires_at_from="2021-01-13T03:58:59.000000Z", + expires_at_to="2024-09-16T05:40:45.000000Z", direction="desc" )) self.assertNotEqual(response.status_code, 400) def test_list_account_balances_5(self): response = client.send(pp.ListAccountBalances( - "fe9ba5e6-5a43-4eb0-a1f4-973999643afe", - page=218, - per_page=2182, - expires_at_from="2024-06-22T12:06:55.000000+09:00", - expires_at_to="2024-12-24T09:24:19.000000+09:00", + "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + page=9044, + per_page=3584, + expires_at_from="2024-10-29T10:47:52.000000Z", + expires_at_to="2022-05-05T20:55:29.000000Z", direction="asc" )) self.assertNotEqual(response.status_code, 400) def test_list_account_expired_balances_0(self): response = client.send(pp.ListAccountExpiredBalances( - "36c55dae-a763-48a7-a91e-94db92494432" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" )) self.assertNotEqual(response.status_code, 400) def test_list_account_expired_balances_1(self): response = client.send(pp.ListAccountExpiredBalances( - "36c55dae-a763-48a7-a91e-94db92494432", - direction="asc" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", + direction="desc" )) self.assertNotEqual(response.status_code, 400) def test_list_account_expired_balances_2(self): response = client.send(pp.ListAccountExpiredBalances( - "36c55dae-a763-48a7-a91e-94db92494432", - expires_at_to="2024-06-30T13:46:34.000000+09:00", + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", + expires_at_to="2020-10-21T06:08:14.000000Z", direction="desc" )) self.assertNotEqual(response.status_code, 400) def test_list_account_expired_balances_3(self): response = client.send(pp.ListAccountExpiredBalances( - "36c55dae-a763-48a7-a91e-94db92494432", - expires_at_from="2016-12-02T09:27:57.000000+09:00", - expires_at_to="2024-02-13T02:34:31.000000+09:00", - direction="desc" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", + expires_at_from="2024-05-06T22:47:15.000000Z", + expires_at_to="2021-02-10T04:23:33.000000Z", + direction="asc" )) self.assertNotEqual(response.status_code, 400) def test_list_account_expired_balances_4(self): response = client.send(pp.ListAccountExpiredBalances( - "36c55dae-a763-48a7-a91e-94db92494432", - per_page=5871, - expires_at_from="2019-07-12T13:14:21.000000+09:00", - expires_at_to="2016-08-23T18:23:34.000000+09:00", - direction="asc" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", + per_page=9269, + expires_at_from="2022-07-27T12:24:37.000000Z", + expires_at_to="2020-03-19T18:01:03.000000Z", + direction="desc" )) self.assertNotEqual(response.status_code, 400) def test_list_account_expired_balances_5(self): response = client.send(pp.ListAccountExpiredBalances( - "36c55dae-a763-48a7-a91e-94db92494432", - page=4236, - per_page=3454, - expires_at_from="2018-03-08T11:42:37.000000+09:00", - expires_at_to="2016-04-28T02:09:16.000000+09:00", + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", + page=6531, + per_page=2579, + expires_at_from="2023-10-07T04:30:21.000000Z", + expires_at_to="2023-04-20T20:38:29.000000Z", direction="asc" )) self.assertNotEqual(response.status_code, 400) def test_update_customer_account_0(self): response = client.send(pp.UpdateCustomerAccount( - "84b859aa-f0d3-4f6c-a841-282e9f5ab662" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" )) self.assertNotEqual(response.status_code, 400) def test_update_customer_account_1(self): response = client.send(pp.UpdateCustomerAccount( - "84b859aa-f0d3-4f6c-a841-282e9f5ab662", + "86e1558d-113e-4ea6-8a48-226ea0c2dcab", metadata="{\"key1\":\"foo\",\"key2\":\"bar\"}" )) self.assertNotEqual(response.status_code, 400) def test_update_customer_account_2(self): response = client.send(pp.UpdateCustomerAccount( - "84b859aa-f0d3-4f6c-a841-282e9f5ab662", - external_id="rppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEli1NcEVyTrbdyJqm", + "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + external_id="hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qq", metadata="{\"key1\":\"foo\",\"key2\":\"bar\"}" )) self.assertNotEqual(response.status_code, 400) def test_update_customer_account_3(self): response = client.send(pp.UpdateCustomerAccount( - "84b859aa-f0d3-4f6c-a841-282e9f5ab662", - account_name="h3W", - external_id="fGT9d54NzUibZax1gbE", + "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + account_name="rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfd", + external_id="KJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCb", metadata="{\"key1\":\"foo\",\"key2\":\"bar\"}" )) self.assertNotEqual(response.status_code, 400) def test_update_customer_account_4(self): response = client.send(pp.UpdateCustomerAccount( - "84b859aa-f0d3-4f6c-a841-282e9f5ab662", - status="suspended", - account_name="tEhHNUjZJEl7H6aHeFVmJSAKrLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5BuCe0yTSEIanUYTV2eUYLa0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf7GbuKVO", - external_id="o81owGN6i0XTT33lqYdKQ0h3ghVZk7eO", + "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + status="pre-closed", + account_name="nT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fc", + external_id="KmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUj", metadata="{\"key1\":\"foo\",\"key2\":\"bar\"}" )) self.assertNotEqual(response.status_code, 400) def test_get_account_transfer_summary_0(self): response = client.send(pp.GetAccountTransferSummary( - "b9de1b01-2893-4024-85a2-263d27f20e39" + "d79ada44-2554-41d3-a753-5725590e9c63" )) self.assertNotEqual(response.status_code, 400) def test_get_account_transfer_summary_1(self): response = client.send(pp.GetAccountTransferSummary( - "b9de1b01-2893-4024-85a2-263d27f20e39", - transfer_types=["refund-payment", "refund-topup", "topup", "refund-exchange-inflow", "payment", "campaign-topup", "refund-exchange-outflow", "exchange-outflow", "refund-campaign", "refund-coupon", "exchange-inflow"] + "d79ada44-2554-41d3-a753-5725590e9c63", + transfer_types=["exchange-outflow", "exchange-inflow", "refund-topup", "use-coupon", "refund-coupon", "payment", "refund-campaign", "campaign-topup", "refund-exchange-outflow"] )) self.assertNotEqual(response.status_code, 400) def test_get_account_transfer_summary_2(self): response = client.send(pp.GetAccountTransferSummary( - "b9de1b01-2893-4024-85a2-263d27f20e39", - to="2016-10-27T21:00:49.000000+09:00", - transfer_types=["refund-exchange-outflow", "use-coupon", "refund-topup", "refund-payment", "campaign-topup", "topup", "payment", "exchange-inflow", "exchange-outflow", "refund-coupon", "refund-campaign", "refund-exchange-inflow"] + "d79ada44-2554-41d3-a753-5725590e9c63", + to="2022-08-23T05:52:55.000000Z", + transfer_types=["exchange-outflow", "use-coupon", "refund-payment", "topup", "payment", "exchange-inflow", "refund-exchange-outflow"] )) self.assertNotEqual(response.status_code, 400) def test_get_account_transfer_summary_3(self): response = client.send(pp.GetAccountTransferSummary( - "b9de1b01-2893-4024-85a2-263d27f20e39", - start="2022-08-16T01:04:09.000000+09:00", - to="2024-11-25T15:55:46.000000+09:00", - transfer_types=["refund-campaign", "topup", "refund-topup", "refund-exchange-outflow", "exchange-inflow", "refund-exchange-inflow", "exchange-outflow", "use-coupon", "campaign-topup", "payment", "refund-payment"] + "d79ada44-2554-41d3-a753-5725590e9c63", + start="2024-08-01T20:42:17.000000Z", + to="2022-12-23T22:37:41.000000Z", + transfer_types=["refund-campaign", "refund-payment", "use-coupon", "refund-exchange-outflow", "exchange-inflow", "refund-topup"] )) self.assertNotEqual(response.status_code, 400) def test_get_customer_accounts_0(self): response = client.send(pp.GetCustomerAccounts( - "c41f5bb2-749b-44ef-829d-581a94e833f3" + "e981839f-7730-40a4-9991-3f49bc7c0625" )) self.assertNotEqual(response.status_code, 400) def test_get_customer_accounts_1(self): response = client.send(pp.GetCustomerAccounts( - "c41f5bb2-749b-44ef-829d-581a94e833f3", - email="hUtXGZ9lfp@9Twg.com" + "e981839f-7730-40a4-9991-3f49bc7c0625", + email="cm0Sp2RluF@OAxJ.com" )) self.assertNotEqual(response.status_code, 400) def test_get_customer_accounts_2(self): response = client.send(pp.GetCustomerAccounts( - "c41f5bb2-749b-44ef-829d-581a94e833f3", - tel="0099877969", - email="qdhqoMR6oA@dT5y.com" + "e981839f-7730-40a4-9991-3f49bc7c0625", + tel="07-0551-2657", + email="TcJlnsa7zu@y1tu.com" )) self.assertNotEqual(response.status_code, 400) def test_get_customer_accounts_3(self): response = client.send(pp.GetCustomerAccounts( - "c41f5bb2-749b-44ef-829d-581a94e833f3", - external_id="PsPRTmUYdZdYDDGZDuZn0XgqQIqTu1", - tel="03131471", - email="YdRTWbMgZi@B4q5.com" + "e981839f-7730-40a4-9991-3f49bc7c0625", + external_id="dw", + tel="071-69745487", + email="fKkMLwrBpO@RQ9L.com" )) self.assertNotEqual(response.status_code, 400) def test_get_customer_accounts_4(self): response = client.send(pp.GetCustomerAccounts( - "c41f5bb2-749b-44ef-829d-581a94e833f3", - status="pre-closed", - external_id="IKvcyeytZUeCOzn479Q7e7CQ6", - tel="073-94-711", - email="6jQwMdVQzE@T3CT.com" + "e981839f-7730-40a4-9991-3f49bc7c0625", + status="suspended", + external_id="lnKRmCd4n", + tel="045-981479", + email="qpn3W7S36l@34SS.com" )) self.assertNotEqual(response.status_code, 400) def test_get_customer_accounts_5(self): response = client.send(pp.GetCustomerAccounts( - "c41f5bb2-749b-44ef-829d-581a94e833f3", - is_suspended=True, - status="pre-closed", - external_id="aadmHoO937wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ", - tel="0915-585-847", - email="EnNvZa51B6@RuNH.com" + "e981839f-7730-40a4-9991-3f49bc7c0625", + is_suspended=False, + status="active", + external_id="W72gqSjd8QPzbjt0rt7UmerReZGbvGgvA", + tel="09215911045", + email="P1AnQALadF@sAzg.com" )) self.assertNotEqual(response.status_code, 400) def test_get_customer_accounts_6(self): response = client.send(pp.GetCustomerAccounts( - "c41f5bb2-749b-44ef-829d-581a94e833f3", - created_at_to="2018-07-26T02:42:57.000000+09:00", - is_suspended=False, + "e981839f-7730-40a4-9991-3f49bc7c0625", + created_at_to="2022-07-27T22:59:50.000000Z", + is_suspended=True, status="pre-closed", - external_id="kkEIImb7878ag0GpEoXRZP9Tuo6i", - tel="0402-724", - email="2arbhJouxW@Q6Fl.com" + external_id="tuXgZDedIJqTHGgnOhGiwZBj5AvHdO2Atfc", + tel="0129-664-818", + email="3sP8V6IT9V@FC5b.com" )) self.assertNotEqual(response.status_code, 400) def test_get_customer_accounts_7(self): response = client.send(pp.GetCustomerAccounts( - "c41f5bb2-749b-44ef-829d-581a94e833f3", - created_at_from="2017-05-13T13:51:02.000000+09:00", - created_at_to="2017-01-23T16:21:15.000000+09:00", - is_suspended=False, - status="suspended", - external_id="k1iTzlm9ILQGKVJoUCSY35cdkgvsbAY", - tel="0584488892", - email="yLz0xsJRhR@VsB9.com" + "e981839f-7730-40a4-9991-3f49bc7c0625", + created_at_from="2021-03-24T19:42:09.000000Z", + created_at_to="2020-09-24T18:38:11.000000Z", + is_suspended=True, + status="active", + external_id="PASw8jPQ0hMJ4nPgNJOUuVI3xkUSOX0vTgyFK1F", + tel="002-97-992", + email="exAarzlUll@rgsQ.com" )) self.assertNotEqual(response.status_code, 400) def test_get_customer_accounts_8(self): response = client.send(pp.GetCustomerAccounts( - "c41f5bb2-749b-44ef-829d-581a94e833f3", - per_page=6828, - created_at_from="2021-07-13T22:31:44.000000+09:00", - created_at_to="2021-01-25T13:11:30.000000+09:00", - is_suspended=False, - status="pre-closed", - external_id="fWzO75yHWR5FLMa9CO3GmqQepv7", - tel="080779634", - email="vLJkkZMMdE@ANfW.com" + "e981839f-7730-40a4-9991-3f49bc7c0625", + per_page=6435, + created_at_from="2022-12-18T13:21:30.000000Z", + created_at_to="2022-10-28T02:45:21.000000Z", + is_suspended=True, + status="active", + external_id="YeKIbZQuPYAKNLvTyMcIYl", + tel="079352848", + email="Pv9LO3MtPy@t1wT.com" )) self.assertNotEqual(response.status_code, 400) def test_get_customer_accounts_9(self): response = client.send(pp.GetCustomerAccounts( - "c41f5bb2-749b-44ef-829d-581a94e833f3", - page=6145, - per_page=1495, - created_at_from="2022-09-03T18:18:14.000000+09:00", - created_at_to="2020-01-02T09:52:45.000000+09:00", + "e981839f-7730-40a4-9991-3f49bc7c0625", + page=8687, + per_page=8494, + created_at_from="2024-02-11T20:15:48.000000Z", + created_at_to="2023-10-06T20:45:00.000000Z", is_suspended=True, - status="suspended", - external_id="Aje3PJg4zkA5dwRQrAEDCEBzCTk0p", - tel="07714864-9146", - email="6QjLE9oTv9@S3Zg.com" + status="active", + external_id="Yk", + tel="004073-175", + email="ncONv8Kje2@pUTW.com" )) self.assertNotEqual(response.status_code, 400) def test_create_customer_account_0(self): response = client.send(pp.CreateCustomerAccount( - "45dccf34-6a82-40cf-8035-99e4f021f54b" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c" )) self.assertNotEqual(response.status_code, 400) def test_create_customer_account_1(self): response = client.send(pp.CreateCustomerAccount( - "45dccf34-6a82-40cf-8035-99e4f021f54b", - external_id="9OBT" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c", + external_id="e87oi" )) self.assertNotEqual(response.status_code, 400) def test_create_customer_account_2(self): response = client.send(pp.CreateCustomerAccount( - "45dccf34-6a82-40cf-8035-99e4f021f54b", - account_name="n3gY0HIwJr5Xn6R9PIw5eC52tvIBnMyMg4CnT2dj7ORUTt4jEgn4792da7QYy7V605lzcBixerwgOsZo2yFQXiifPwyEPkMTjwK5UmBamQcUvvHD25XYGaGoRmlkWp", - external_id="VKSQYACWhdJgT5" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c", + account_name="kJDB6ZsUUsk6umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXh", + external_id="26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5" )) self.assertNotEqual(response.status_code, 400) def test_create_customer_account_3(self): response = client.send(pp.CreateCustomerAccount( - "45dccf34-6a82-40cf-8035-99e4f021f54b", - user_name="XIAxp1c5Q2vG7By91KC2xkwbMvROWfUAhh6XnZz0yJYgRGAM6oTzljbZYS9b6qmrSFaDiVxdn1z0TuA7dLQ8GnuuGnm3um0ZKYlqHYAPfacx4ba4pxXiFCicQd3QQrdtpp5IlW8KnTaroT8w3801ZxeZpTa0FFkkUFLVCDKp9TvCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7EhkzGk22yYle2ZOPXJOiEYcNwwBKhoxCdqw8S", - account_name="S6L7O6ohLm8HBuYz7E9ZuYBAHz0vH45u4SHdXpfYeqMtcfd8wxcygIW1kAzyAHjkW0eFs", - external_id="lSf8NaBTyV6GBT8tD" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c", + user_name="bgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH", + account_name="emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdW", + external_id="jKy82N74m" )) self.assertNotEqual(response.status_code, 400) def test_get_shop_accounts_0(self): response = client.send(pp.GetShopAccounts( - "3418e411-a25d-4ec8-9b49-3e30dff9f6fa" + "31ecb769-3144-4a83-95a2-b72406deb863" )) self.assertNotEqual(response.status_code, 400) def test_get_shop_accounts_1(self): response = client.send(pp.GetShopAccounts( - "3418e411-a25d-4ec8-9b49-3e30dff9f6fa", + "31ecb769-3144-4a83-95a2-b72406deb863", is_suspended=False )) self.assertNotEqual(response.status_code, 400) def test_get_shop_accounts_2(self): response = client.send(pp.GetShopAccounts( - "3418e411-a25d-4ec8-9b49-3e30dff9f6fa", - created_at_to="2022-08-03T04:31:21.000000+09:00", + "31ecb769-3144-4a83-95a2-b72406deb863", + created_at_to="2020-05-06T02:02:55.000000Z", is_suspended=True )) self.assertNotEqual(response.status_code, 400) def test_get_shop_accounts_3(self): response = client.send(pp.GetShopAccounts( - "3418e411-a25d-4ec8-9b49-3e30dff9f6fa", - created_at_from="2017-08-07T10:46:15.000000+09:00", - created_at_to="2025-07-22T01:28:13.000000+09:00", + "31ecb769-3144-4a83-95a2-b72406deb863", + created_at_from="2023-03-17T16:04:05.000000Z", + created_at_to="2024-03-19T06:01:45.000000Z", is_suspended=False )) self.assertNotEqual(response.status_code, 400) def test_get_shop_accounts_4(self): response = client.send(pp.GetShopAccounts( - "3418e411-a25d-4ec8-9b49-3e30dff9f6fa", - per_page=2846, - created_at_from="2019-11-04T14:53:12.000000+09:00", - created_at_to="2024-09-23T03:45:25.000000+09:00", + "31ecb769-3144-4a83-95a2-b72406deb863", + per_page=4823, + created_at_from="2023-07-22T08:29:37.000000Z", + created_at_to="2020-07-29T13:51:14.000000Z", is_suspended=False )) self.assertNotEqual(response.status_code, 400) def test_get_shop_accounts_5(self): response = client.send(pp.GetShopAccounts( - "3418e411-a25d-4ec8-9b49-3e30dff9f6fa", - page=7568, - per_page=1670, - created_at_from="2021-03-12T15:40:19.000000+09:00", - created_at_to="2022-08-13T20:07:48.000000+09:00", - is_suspended=False + "31ecb769-3144-4a83-95a2-b72406deb863", + page=4360, + per_page=8484, + created_at_from="2022-04-08T21:42:45.000000Z", + created_at_to="2023-03-08T17:36:02.000000Z", + is_suspended=True )) self.assertNotEqual(response.status_code, 400) @@ -498,477 +498,753 @@ def test_list_bills_0(self): def test_list_bills_1(self): response = client.send(pp.ListBills( - is_disabled=True + is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_list_bills_2(self): response = client.send(pp.ListBills( - upper_limit_amount=3835, + upper_limit_amount=3460, is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_list_bills_3(self): response = client.send(pp.ListBills( - lower_limit_amount=1487, - upper_limit_amount=2295, - is_disabled=False + lower_limit_amount=3003, + upper_limit_amount=2795, + is_disabled=True )) self.assertNotEqual(response.status_code, 400) def test_list_bills_4(self): response = client.send(pp.ListBills( - shop_id="a3337384-6b0e-467b-951c-478ccdf43586", - lower_limit_amount=8300, - upper_limit_amount=5052, + shop_id="a9696cec-9a6a-4ba0-b1b1-beff32bea9d1", + lower_limit_amount=6740, + upper_limit_amount=874, is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_list_bills_5(self): response = client.send(pp.ListBills( - shop_name="IQiAP4UplfuFUQK5yc0JqyEbk4xV1ElwOVpwOgCs3REJLXlOpH9qH3TntlxmPSv0sqeMHVeJGZnQaE4lp3S7TMyfZKpPybiZ1Lwce18e7Eq5OqWuTabdRaaHOyfGqVUncXzhjskeGyZxmbEy050Zlv3tzVr8aTPDqMKbxS0Vs3OlIrdnx7rU9Fte9Z959oBy13mtel3d8TfJ3Ol39ScasZnA58jo0hnztlMdM7BVfn4iFYyJJXfrDUn2Z", - shop_id="0b13f435-a4e4-4e54-823d-f14d3d6621e8", - lower_limit_amount=7968, - upper_limit_amount=7137, + shop_name="kgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kX", + shop_id="52fbc519-17e0-450f-a1fb-f1be62dd6c3d", + lower_limit_amount=6587, + upper_limit_amount=4324, is_disabled=True )) self.assertNotEqual(response.status_code, 400) def test_list_bills_6(self): response = client.send(pp.ListBills( - created_to="2016-09-02T11:19:30.000000+09:00", - shop_name="QqsldJHk3l4cpZ7fJl29A3O6y0fQnXOgwkIth5yMWiTVYzb9YasuIp7v4EzACicWq4Ul0bBBFnJwjrPufrwL", - shop_id="19a57c35-abda-45b4-b1aa-9c3c70c8922e", - lower_limit_amount=6733, - upper_limit_amount=4789, - is_disabled=False + created_to="2024-04-18T15:33:35.000000Z", + shop_name="stCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25u", + shop_id="8767767b-8976-455e-afdf-74728b146513", + lower_limit_amount=6765, + upper_limit_amount=7751, + is_disabled=True )) self.assertNotEqual(response.status_code, 400) def test_list_bills_7(self): response = client.send(pp.ListBills( - created_from="2025-03-09T03:05:10.000000+09:00", - created_to="2023-04-15T12:14:30.000000+09:00", - shop_name="hJuNsCdqVbAgLZQKQXblhvdQVC38rMOaKHSf5htPpycWdWsbduWBxtfg1Kliu47KITpvwbo61t0xPHohZAfXS5WAq97VI0kJjyO9S00lRKqhRSKyv4aeUNiX5kIXisF2lvLdWFAH9CECfmZyvOgcw2bcIoYI3B409EBsOM5mHn7CA1SM3xNEFCgQheyCbSnP7P0SqnjQBF0gNpyvaBHzjlAdXU9", - shop_id="bd0643a7-06e6-4ae2-ac34-114293457d45", - lower_limit_amount=2117, - upper_limit_amount=9958, + created_from="2022-07-30T05:48:44.000000Z", + created_to="2020-11-03T12:14:03.000000Z", + shop_name="GKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8LerXQe8LjF8Q", + shop_id="3752130a-b436-4bf1-a9f6-e7809624e470", + lower_limit_amount=452, + upper_limit_amount=5404, is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_list_bills_8(self): response = client.send(pp.ListBills( - description="TmiRof0lbldCRsSSTgoxqh3aCnDQum7xlHp8mSoN73gaH3XPjunt8NgffostplBJ13qPcXVXQ9E7OqefuC0zsB8aQbgel1VXLZNh", - created_from="2016-10-27T18:39:04.000000+09:00", - created_to="2020-04-19T11:21:31.000000+09:00", - shop_name="VCGfzH0EqAidHGV4baZPNRUSJ9iQNhB3KMhlAuhO2DrrEN6v7h6DIeIXBVaS0Zi07XrJykFEWCqS7fIGsgSUetvzhcyY8O4aW8dVGclxW2nJI1LDT3BhMLUADblZz6ydgd6gveWK49xDzlQxtC3xLL1ERUl6NhqKkDSvghab5bsImY7PcHPZH7mH", - shop_id="02e6d5fd-fe03-4700-86db-2d49d3ec9fa6", - lower_limit_amount=3593, - upper_limit_amount=9203, + description="ZbBwXFvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSIaxZ8O", + created_from="2022-03-17T01:45:50.000000Z", + created_to="2023-10-26T09:45:48.000000Z", + shop_name="zG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4VkAmGgvgI7YgVKC9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteVH", + shop_id="383b5f1b-2538-4659-8caa-a2a88e28a3f6", + lower_limit_amount=1391, + upper_limit_amount=6869, is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_list_bills_9(self): response = client.send(pp.ListBills( - organization_code="", - description="NgoBzsuiKajpcQf4nuECfdVUoATZ0pZ1FEusk3svdOIWNVHFftM1EZPsd7jOCTvYgQYDODNTX3YU3qGQBWGDfb1wlkuiN7kKWKFo", - created_from="2024-02-23T19:10:44.000000+09:00", - created_to="2017-10-30T02:54:59.000000+09:00", - shop_name="9tuL5LH4EHPGJy8ZSoJ1krFHQyhzGXerHPOPDvrwRgeSOaGF6stofVWAQmmxPEjbZK4rVxAUW7FWHkKwdg6799FNaTUuVqVNtvvxMPy8uYVQrlAwBlTLDHylYVoU0Lud9b", - shop_id="76813135-bc26-424d-88e4-438136936dbf", - lower_limit_amount=3512, - upper_limit_amount=7259, - is_disabled=True + organization_code="H54G51-a8", + description="7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMI", + created_from="2022-05-28T22:33:06.000000Z", + created_to="2023-06-03T18:28:37.000000Z", + shop_name="OIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZfjz7mGpF3om", + shop_id="36462a8a-4f44-430f-8239-ccb25f087860", + lower_limit_amount=1266, + upper_limit_amount=9333, + is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_list_bills_10(self): response = client.send(pp.ListBills( - private_money_id="69b26d55-eeee-4bf5-bb98-2f1a29611482", - organization_code="q-Td-90tz6o18bTME", - description="ruAKFNN9YCEWSULZdpylXeF6qvGwUl7ATMaf3NqLOcKmTPNREiEdfOxleMzyqb14XnQoYrg3WK0gxDGSVD8anN0lX3R6Ngh2OAi1BcnwfTRLJa4uoIhpR40nORwuCknsFuOeDw3ETEoYbDEhr0AwKkiQOHCQ", - created_from="2019-04-23T00:27:44.000000+09:00", - created_to="2016-12-11T02:13:34.000000+09:00", - shop_name="IIRDiJ5EWSps1CcPm4CujuDviyaRPbQTt1c2CSzS35RxVGrM7sDhsRor5EZrBgBnWdBpXW3vXZAsIGmxl3OdV3odlFFoKvu4lobeulXI7c3F9nyrjjRiAP0nDGe4yWdLtrR0H47hbbDvB2dkQWYC4RW", - shop_id="8e8f4a02-78f1-42ca-b720-84f336e5ea71", - lower_limit_amount=4658, - upper_limit_amount=6184, + private_money_id="f5b45ff1-ac93-415f-ac92-7896ea3e7ec0", + organization_code="-sx-d8l6i---y--o-z6T4-Jv-", + description="AI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T", + created_from="2022-06-04T02:02:29.000000Z", + created_to="2024-06-09T12:30:26.000000Z", + shop_name="20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLn", + shop_id="9a3fe1c1-2772-44b7-a14e-85c862961001", + lower_limit_amount=3446, + upper_limit_amount=4104, is_disabled=True )) self.assertNotEqual(response.status_code, 400) def test_list_bills_11(self): response = client.send(pp.ListBills( - bill_id="7AWpC", - private_money_id="05cd6fa3-f4c4-4584-abf9-a19a5bc696cc", - organization_code="9TFI8-q-o-ZW4-bU", - description="y2EMgPVlahlWYdbEevpLkzdUFCwG4QGOnpUXmwhMFkO9ufFPOzF9Lvv7JJIkMwpNGlwPY7w3AePumXzLvyF75pQlwzsKLA3j0RsOTGgnfI7tlICoQDpnLAiZiYSVIBpBUCCSgk4gnk7sP6E17lkMgQrA88yuG2X4KRlpHewo2", - created_from="2022-10-13T17:58:30.000000+09:00", - created_to="2025-03-12T02:32:46.000000+09:00", - shop_name="QkdX", - shop_id="f9a98cd0-f696-4b40-9e46-9b2733ec1f34", - lower_limit_amount=4515, - upper_limit_amount=3614, + bill_id="M", + private_money_id="a52375dc-0844-42fc-a55a-9f4c3ee4024f", + organization_code="3-8ErShQ--14--5Lh-va--U-", + description="JLdESdgB4", + created_from="2022-11-07T11:43:00.000000Z", + created_to="2021-08-22T14:32:00.000000Z", + shop_name="huAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacS", + shop_id="18a62974-78b3-47f7-bca1-bc8ae5d555e8", + lower_limit_amount=4830, + upper_limit_amount=6678, is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_list_bills_12(self): response = client.send(pp.ListBills( - per_page=2526, - bill_id="V9XHbL", - private_money_id="c3194636-5918-439e-bad9-d4be4bb692a2", - organization_code="-IR8--7--ERjkpP---0r4-Qj", - description="wTGLR8ci2cIIE66fhj2n6iiZ64HpvFGkJr1uo4NLstnS7EAbDgQaYkUrDsQyk3kwOisNW9XsMHBVPsrsYBnLGXRYzu4noxPXNWpdUvBBp2Jsu", - created_from="2017-09-03T20:30:27.000000+09:00", - created_to="2025-04-24T15:48:33.000000+09:00", - shop_name="INCRpxja7me48LNXqpqJ", - shop_id="5bf84d98-de21-4daf-b46a-89da69ccd9e0", - lower_limit_amount=1911, - upper_limit_amount=3624, - is_disabled=True + per_page=737, + bill_id="HQ5cbR", + private_money_id="9a952f36-ae32-41a0-8f45-7edd3017071c", + organization_code="X-z3q470F5N-NRB9-Syci", + description="T65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zI", + created_from="2020-09-25T15:17:58.000000Z", + created_to="2020-12-02T23:21:54.000000Z", + shop_name="Zx4eE9mHPjq6XCvYjxbcuNA5AOQ", + shop_id="07d8d248-443e-4527-be89-51bad8f57297", + lower_limit_amount=6034, + upper_limit_amount=8050, + is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_list_bills_13(self): response = client.send(pp.ListBills( - page=140, - per_page=8266, - bill_id="uUBm", - private_money_id="24dc5c38-1511-4a3f-8a5d-5c10562ae630", - organization_code="-OIPO8f--5J--ZEmK893-r0", - description="zongKg5SFSpcaiWqMVEyXiabD2fPkrS1NvYbmwucdTPjBOMyHVeFGY5vB7gjE0J3rzoZQgeuXW4rw3Ob3VUIWbzDljJ6klDtciJUcw1w", - created_from="2024-10-08T13:54:55.000000+09:00", - created_to="2022-12-22T02:16:07.000000+09:00", - shop_name="r", - shop_id="5e81bd98-f8b4-420f-aadc-6cf9683ae759", - lower_limit_amount=2035, - upper_limit_amount=9757, - is_disabled=True + page=4791, + per_page=8158, + bill_id="Xo", + private_money_id="c4701f9c-f3fb-4d10-a3d0-83f5eb671e34", + organization_code="-Mka-PgXu0Xkt9H--9-g0", + description="nur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2HyY5rx", + created_from="2023-09-11T18:25:47.000000Z", + created_to="2021-10-19T12:21:40.000000Z", + shop_name="yEvnewbYd4rNZJsCq7m7arw2NKYH1", + shop_id="d1ec81a0-e632-4807-9781-7b7870093e19", + lower_limit_amount=7590, + upper_limit_amount=8545, + is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_create_bill_0(self): response = client.send(pp.CreateBill( - "ee649014-14df-4bce-9571-065bb6b55c95", - "23be838b-7020-4801-af0f-6f65c939ded8" + "c404cacf-f9c6-4b71-8977-32134cce0494", + "887fe62c-62c0-4078-b276-e6f80b19b3eb" )) self.assertNotEqual(response.status_code, 400) def test_create_bill_1(self): response = client.send(pp.CreateBill( - "ee649014-14df-4bce-9571-065bb6b55c95", - "23be838b-7020-4801-af0f-6f65c939ded8", - description="bzzGADkOfMAKTboQcaiYXr4rnNnjCoeQHMuXiGNUysmU86lvAOTbcLzXO1sbMRuBNUlL6" + "c404cacf-f9c6-4b71-8977-32134cce0494", + "887fe62c-62c0-4078-b276-e6f80b19b3eb", + description="wVYBDQiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj" )) self.assertNotEqual(response.status_code, 400) def test_create_bill_2(self): response = client.send(pp.CreateBill( - "ee649014-14df-4bce-9571-065bb6b55c95", - "23be838b-7020-4801-af0f-6f65c939ded8", - amount=3376.0, - description="ReLv75kg6qcs3cEpI1m3wABqtL3bdaVTKdkTjUxGpAh3awQssfAXqJYYr4ARYbJcmLujs894lRg4qB30GRMkbzDn742v8m6fDAksXCcjSnMwkyUVD7CNlqSrG8bUcu2404OwW2YlKo3D8R7F9uqtTYDUe0c6WMBb0vMyr" + "c404cacf-f9c6-4b71-8977-32134cce0494", + "887fe62c-62c0-4078-b276-e6f80b19b3eb", + amount=3754.0, + description="k3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWw" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_bill_0(self): + response = client.send(pp.GetBill( + "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" )) self.assertNotEqual(response.status_code, 400) def test_update_bill_0(self): response = client.send(pp.UpdateBill( - "c16a938b-9ef2-44bd-8e6f-2b8a65b0e2b2" + "49594616-bc5c-4584-92c2-86e8d8bb2ade" )) self.assertNotEqual(response.status_code, 400) def test_update_bill_1(self): response = client.send(pp.UpdateBill( - "c16a938b-9ef2-44bd-8e6f-2b8a65b0e2b2", + "49594616-bc5c-4584-92c2-86e8d8bb2ade", is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_update_bill_2(self): response = client.send(pp.UpdateBill( - "c16a938b-9ef2-44bd-8e6f-2b8a65b0e2b2", - description="CtAij6bFWlBc9nMouBh", - is_disabled=True + "49594616-bc5c-4584-92c2-86e8d8bb2ade", + description="JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv94bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8Vm", + is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_update_bill_3(self): response = client.send(pp.UpdateBill( - "c16a938b-9ef2-44bd-8e6f-2b8a65b0e2b2", - amount=9011.0, - description="x", + "49594616-bc5c-4584-92c2-86e8d8bb2ade", + amount=5303.0, + description="aafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqd", + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_0(self): + response = client.send(pp.ListChecks( + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_1(self): + response = client.send(pp.ListChecks( + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_2(self): + response = client.send(pp.ListChecks( + is_onetime=True, + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_3(self): + response = client.send(pp.ListChecks( + description="xKVxdoit", + is_onetime=True, + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_4(self): + response = client.send(pp.ListChecks( + issuer_shop_id="91ee357c-e76e-4bfe-a3f3-b606ec411052", + description="kY0a6", + is_onetime=True, + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_5(self): + response = client.send(pp.ListChecks( + created_to="2023-11-13T00:58:08.000000Z", + issuer_shop_id="5d298ea4-fd3c-4309-89d2-8379ec4de414", + description="9", + is_onetime=True, + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_6(self): + response = client.send(pp.ListChecks( + created_from="2024-09-03T12:28:55.000000Z", + created_to="2024-07-27T18:53:41.000000Z", + issuer_shop_id="9579f7c0-f07e-4a75-8b08-a76ed5b94759", + description="j6aDVb3qDk", + is_onetime=True, + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_7(self): + response = client.send(pp.ListChecks( + expires_to="2024-09-04T12:58:34.000000Z", + created_from="2021-12-19T15:34:12.000000Z", + created_to="2020-04-20T07:38:28.000000Z", + issuer_shop_id="5345e8f6-d6c1-4503-a0dd-1e3792809c15", + description="4NS9w", + is_onetime=False, + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_8(self): + response = client.send(pp.ListChecks( + expires_from="2023-01-18T17:41:56.000000Z", + expires_to="2021-05-07T05:19:11.000000Z", + created_from="2020-01-16T02:31:33.000000Z", + created_to="2024-11-11T09:01:15.000000Z", + issuer_shop_id="00e79ed8-47f7-4ee9-beef-1cfe4ba26844", + description="p", + is_onetime=True, + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_9(self): + response = client.send(pp.ListChecks( + organization_code="uzoNbRpuKefj9znX2XonFzQcO", + expires_from="2020-08-27T12:04:05.000000Z", + expires_to="2024-05-30T01:20:05.000000Z", + created_from="2020-07-31T16:26:05.000000Z", + created_to="2024-06-27T02:13:35.000000Z", + issuer_shop_id="8ecfc2ed-7764-470d-96e7-6307d783198e", + description="Um", + is_onetime=True, + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_10(self): + response = client.send(pp.ListChecks( + private_money_id="085f3bb7-203f-4e33-8980-0fb2ab4c0b6b", + organization_code="FchNQksZB6ByT3lVRQ7O823WFeXC", + expires_from="2020-02-20T03:38:17.000000Z", + expires_to="2020-10-27T05:06:59.000000Z", + created_from="2024-04-20T03:42:57.000000Z", + created_to="2022-04-13T01:13:40.000000Z", + issuer_shop_id="ae173a93-d406-41aa-9c66-65f61a58df2a", + description="Wv5Set", + is_onetime=True, is_disabled=False )) self.assertNotEqual(response.status_code, 400) + def test_list_checks_11(self): + response = client.send(pp.ListChecks( + per_page=1613, + private_money_id="a084768c-99a9-4e2a-80f5-615d7e7003a3", + organization_code="ZcB6tdcwibyPvTHbjOWbqqVGNOP2f7", + expires_from="2024-02-20T03:43:02.000000Z", + expires_to="2020-12-11T19:05:46.000000Z", + created_from="2020-12-14T12:17:49.000000Z", + created_to="2021-04-15T13:26:35.000000Z", + issuer_shop_id="287e75c0-8ee3-4e8d-a3ae-f57c1623aa16", + description="XSXXM3Y", + is_onetime=False, + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_12(self): + response = client.send(pp.ListChecks( + page=7933, + per_page=9088, + private_money_id="a3f08c5f-3950-4003-b8fd-8dee1b56e0ea", + organization_code="Fhfkf", + expires_from="2021-08-22T17:17:19.000000Z", + expires_to="2022-12-18T09:43:53.000000Z", + created_from="2022-01-19T11:54:30.000000Z", + created_to="2023-01-17T14:06:48.000000Z", + issuer_shop_id="451e5ad2-d106-4a5b-abe8-42ead37b6ad6", + description="7rXm6", + is_onetime=True, + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + def test_create_check_0(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=3682.0 + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=6272.0 )) self.assertNotEqual(response.status_code, 400) def test_create_check_1(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=4498.0, - description="9dQAdVbIjdKodnIqsg2hwfCC3ynrJLnPSb5d8avvWNGGZpHcQub7jyKGPEze4eDg0kaj205" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=9497.0, + description="gkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8" )) self.assertNotEqual(response.status_code, 400) def test_create_check_2(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=5778.0, - is_onetime=False, - description="9Vfs0xgdWlEYjRqPOb8BVVabHLEG4agkq2G8IRGQBS0nchLLndRaY2NqmWOdlkOhTjC67yWAbgIrPt858HfVRa8DX5UPvkC2RO0Ka4lYXy6v8yeYaDtl3yxclWSiWAV8VoZ5q4f3l3OfQm9YtxuJK" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=2618.0, + is_onetime=True, + description="I225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVt" )) self.assertNotEqual(response.status_code, 400) def test_create_check_3(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=6130.0, - usage_limit=2500, - is_onetime=True, - description="FgfnOa5xAhF9FsFDzTIAFGDPhp" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=2577.0, + usage_limit=622, + is_onetime=False, + description="3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDge" )) self.assertNotEqual(response.status_code, 400) def test_create_check_4(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=5537.0, - expires_at="2024-12-09T23:17:36.000000+09:00", - usage_limit=9117, - is_onetime=True, - description="zEARJ1rvmqI1bSsRkkjQVB7WPQBN4OQef6ic8PJreX4akuWpKD9afhWN8gpYbk1UQRVGeT6q9QlLL4St0RhV6KdSsO2fKUxMoBriyYb61zvPjBcIHUY8RekKTAhSuM7Lo0VuZ1eCkX9fH" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=1771.0, + expires_at="2024-03-09T08:06:50.000000Z", + usage_limit=9666, + is_onetime=False, + description="rHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtP" )) self.assertNotEqual(response.status_code, 400) def test_create_check_5(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=9711.0, - point_expires_at="2024-01-25T06:53:05.000000+09:00", - expires_at="2025-08-01T00:06:50.000000+09:00", - usage_limit=396, + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=1356.0, + point_expires_at="2020-05-02T01:39:14.000000Z", + expires_at="2023-08-06T00:45:12.000000Z", + usage_limit=7641, is_onetime=True, - description="VQAOjB0XTIEf" + description="LvmDqPAbWtHJHRtQBqCHsxk71kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQO" )) self.assertNotEqual(response.status_code, 400) def test_create_check_6(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=1282.0, - point_expires_in_days=6045, - point_expires_at="2020-11-23T19:32:02.000000+09:00", - expires_at="2016-11-05T21:40:18.000000+09:00", - usage_limit=4226, + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=2077.0, + point_expires_in_days=4069, + point_expires_at="2020-01-20T23:49:24.000000Z", + expires_at="2024-04-05T11:15:44.000000Z", + usage_limit=4629, is_onetime=False, - description="NvwAf7hOlSBfFEUcOQMXEYHzF8m9cIjwUyTMaVMoVAP5OP1Cjryz" + description="QVPrApol" )) self.assertNotEqual(response.status_code, 400) def test_create_check_7(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=2688.0, - bear_point_account="18679ba0-531c-48c0-9544-cc2b776f7486", - point_expires_in_days=8961, - point_expires_at="2022-04-03T14:35:05.000000+09:00", - expires_at="2022-06-02T11:03:48.000000+09:00", - usage_limit=9788, + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=7326.0, + bear_point_account="cbd978f4-22a1-41aa-b2a8-3f7af0656f9b", + point_expires_in_days=5979, + point_expires_at="2020-06-26T23:16:13.000000Z", + expires_at="2022-06-21T00:46:05.000000Z", + usage_limit=3233, is_onetime=False, - description="Z0UkOPXKep1jFsPNeua1jB7" + description="bqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7m" )) self.assertNotEqual(response.status_code, 400) def test_create_check_8(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=8553.0, - point_amount=9597.0 + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=8269.0, + point_amount=1684.0 )) self.assertNotEqual(response.status_code, 400) def test_create_check_9(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=8517.0, - point_amount=348.0, - description="F7xhaxW" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=4455.0, + point_amount=9674.0, + description="5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW" )) self.assertNotEqual(response.status_code, 400) def test_create_check_10(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=457.0, - point_amount=59.0, + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=6325.0, + point_amount=2625.0, is_onetime=True, - description="TjjuPniB6yr4Okg2Udv9iXSqMQb8J3iQSJeJic2mGuJKmsKLeWViwh5Xh0Ohe1EHst26OluNAixs6BC1rh1DjTMJERyJtkUyg63OuNEg3mOoFwMhlx1RPa6KY" + description="eQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgV" )) self.assertNotEqual(response.status_code, 400) def test_create_check_11(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=4154.0, - point_amount=9158.0, - usage_limit=338, - is_onetime=False, - description="bXhU3xeAmdgIIk86pUwNP4PXVypEGcP3yMzT6mxM4uuK6GdmBVGY71PucWuEB8iBjiFIbSubHrvAi7K4jyfS9dg15S1q6jH34UfMTbaogiuk2Hs0mRi4FH4wAH9Jfj7o054MsL4b1CJFFK6iXZLbDkWhxmVZQrN7vHF2MDKVtEIQupvmKHRwHKhrE1cew1CNfg" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=7587.0, + point_amount=5706.0, + usage_limit=606, + is_onetime=True, + description="Wc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkP" )) self.assertNotEqual(response.status_code, 400) def test_create_check_12(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=7863.0, - point_amount=710.0, - expires_at="2021-01-29T12:17:29.000000+09:00", - usage_limit=4681, - is_onetime=False, - description="YctoKArmPX6ICAqae4Gsnk7CCks4Hk5SfM8qCg753Xc8sxEuuaOPh40uyY7zIQa1dLLxrHG11vw1vq47MweLd7PEXecikrpiqy8sfzPeC95z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1gAPOZCWBu1LN9FJ0cnlAGNGx" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=320.0, + point_amount=1733.0, + expires_at="2023-10-28T19:46:29.000000Z", + usage_limit=1982, + is_onetime=True, + description="J9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKn" )) self.assertNotEqual(response.status_code, 400) def test_create_check_13(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=6566.0, - point_amount=9852.0, - point_expires_at="2017-10-28T12:04:32.000000+09:00", - expires_at="2018-06-09T05:37:59.000000+09:00", - usage_limit=9628, - is_onetime=False, - description="Lc8mXM6C7FzYciEIbzm3gXQmk" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=3751.0, + point_amount=8507.0, + point_expires_at="2020-06-20T01:49:49.000000Z", + expires_at="2024-08-20T17:04:11.000000Z", + usage_limit=2682, + is_onetime=True, + description="ujd5tp1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTT" )) self.assertNotEqual(response.status_code, 400) def test_create_check_14(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=7922.0, - point_amount=4635.0, - point_expires_in_days=5699, - point_expires_at="2020-10-13T15:11:43.000000+09:00", - expires_at="2022-08-31T03:54:45.000000+09:00", - usage_limit=6237, - is_onetime=False, - description="2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOjNPScM2HIOB9HTAlispEbZ0nm2AG9fUViptAmbz3OlMcIwPiDhPvFVPSC9IO8VxniaFu09a6CuuEqXlxnf5GR396SeNDqXXKEJV0JkE3TjLaqeZO" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=8054.0, + point_amount=9259.0, + point_expires_in_days=5113, + point_expires_at="2021-12-27T15:30:44.000000Z", + expires_at="2024-04-19T11:52:26.000000Z", + usage_limit=7433, + is_onetime=True, + description="gdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiU" )) self.assertNotEqual(response.status_code, 400) def test_create_check_15(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - money_amount=4781.0, - point_amount=2633.0, - bear_point_account="7cd70715-9a97-40ff-b7c5-d332a1c742b2", - point_expires_in_days=1773, - point_expires_at="2020-01-06T07:22:58.000000+09:00", - expires_at="2017-02-28T02:18:19.000000+09:00", - usage_limit=3357, - is_onetime=False, - description="SAD7vVGJBWjZfkSD8toOPMhnrU8KE3wpUrjUs8sizjd1z2FtADy5Q3C5jNeYsU9MpL2cFyrblmxyYFjVJ1ksDCEql8" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + money_amount=9215.0, + point_amount=3344.0, + bear_point_account="e7b85ecb-baf7-4e8b-ab79-8a90f48cea69", + point_expires_in_days=2492, + point_expires_at="2020-06-18T01:18:09.000000Z", + expires_at="2020-02-07T18:58:27.000000Z", + usage_limit=7084, + is_onetime=True, + description="oPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2Ds" )) self.assertNotEqual(response.status_code, 400) def test_create_check_16(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - point_amount=5129.0 + "cfee79ef-b592-41ee-945f-4f68bb3514df", + point_amount=4668.0 )) self.assertNotEqual(response.status_code, 400) def test_create_check_17(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - point_amount=9724.0, - description="3astJ4f63IhsEW" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + point_amount=2870.0, + description="IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkDTFwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4u" )) self.assertNotEqual(response.status_code, 400) def test_create_check_18(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - point_amount=2452.0, - is_onetime=True, - description="V1aJM8EwjAmRBWR0j6oBZVp6NIn0X9ZNmVTX8mLedIikedmC30IadhoI72wGGaOUhWf0bdfCQE42KbdvTX1CfA4ud9qfvPOSoxFI1UweO2XRdO2hY0pCC8FQpyDiFdYn6ST7vY9DrqkrzPV8XVdQkJOO2v1m3A" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + point_amount=3447.0, + is_onetime=False, + description="6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaD" )) self.assertNotEqual(response.status_code, 400) def test_create_check_19(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - point_amount=3141.0, - usage_limit=8665, + "cfee79ef-b592-41ee-945f-4f68bb3514df", + point_amount=6680.0, + usage_limit=9684, is_onetime=True, - description="lsFCHOKfiqVfddqZXHyl9FtM3BiAbJG4RFalUDm4QOG36z0pAjeCTeiy225IXwhDEUvB4npxY9ubMTI7cGyilStc03UjxERdVoe6HFhJgKELPhJZ4V6jG807jn4" + description="EOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3" )) self.assertNotEqual(response.status_code, 400) def test_create_check_20(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - point_amount=3201.0, - expires_at="2024-12-17T12:16:09.000000+09:00", - usage_limit=6576, - is_onetime=False, - description="fSZTliY3BcoO0R3ofHxO79PyMPuNxlOm9TssUDzbSN9easDT5qaXE9oVV6dzFzoMTL1nMwdKXWkN1V7WK5N3KEyrv8oYx3uFnGQ6ZUjkvuDzL1kINhlYHLw7e" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + point_amount=2273.0, + expires_at="2022-12-08T10:08:23.000000Z", + usage_limit=4824, + is_onetime=True, + description="io5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1w2GShMQ" )) self.assertNotEqual(response.status_code, 400) def test_create_check_21(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - point_amount=4039.0, - point_expires_at="2021-10-21T07:15:29.000000+09:00", - expires_at="2017-04-04T13:28:04.000000+09:00", - usage_limit=2287, - is_onetime=False, - description="z2mwFW2G7CePrEb6qc1vzC0TUXZ7gJxmZbR4QIZxkVF44SiHUuKLea6KXKMTxnuRpjgiKiTeKThsCVHvt0FegcXhZNGhoP3dbXW7imuFIarDCIG12cWukEiPRDcMrsI69et7tZGcxsWh3x4WMFG9JtXGOrRTCDsNsdOxykdQVM02fdP8dPWgv17" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + point_amount=5752.0, + point_expires_at="2020-01-13T20:28:00.000000Z", + expires_at="2024-02-21T00:41:32.000000Z", + usage_limit=528, + is_onetime=True, + description="aA4tMwkt9CEIs7P52Qn8Ps6rGg4" )) self.assertNotEqual(response.status_code, 400) def test_create_check_22(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - point_amount=103.0, - point_expires_in_days=1545, - point_expires_at="2024-11-28T07:21:26.000000+09:00", - expires_at="2020-08-26T07:40:31.000000+09:00", - usage_limit=9070, - is_onetime=False, - description="VKZ2Yg2XW7z7bqKh4VDMi81vkZfIvFF2aVGBrt4d4BQcmvC7IyShbMWHW8OrxkY" + "cfee79ef-b592-41ee-945f-4f68bb3514df", + point_amount=2088.0, + point_expires_in_days=3261, + point_expires_at="2020-02-24T22:03:14.000000Z", + expires_at="2024-04-05T17:32:12.000000Z", + usage_limit=9319, + is_onetime=True, + description="hQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDH" )) self.assertNotEqual(response.status_code, 400) def test_create_check_23(self): response = client.send(pp.CreateCheck( - "b0ded9e1-b593-4cd6-ba88-8079a453b844", - point_amount=5119.0, - bear_point_account="d1ba1d3b-1fdb-47ca-89e2-a6e51082e5ad", - point_expires_in_days=2943, - point_expires_at="2018-08-02T22:30:45.000000+09:00", - expires_at="2017-07-14T22:48:02.000000+09:00", - usage_limit=9589, + "cfee79ef-b592-41ee-945f-4f68bb3514df", + point_amount=1601.0, + bear_point_account="e42bcecd-ef88-41b5-8a64-f5aa201b788a", + point_expires_in_days=7264, + point_expires_at="2021-02-14T22:09:27.000000Z", + expires_at="2021-09-27T00:04:06.000000Z", + usage_limit=5547, + is_onetime=True, + description="W8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9O" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_check_0(self): + response = client.send(pp.GetCheck( + "f616c977-5ef1-4010-ae24-f1fe2440fe98" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_0(self): + response = client.send(pp.UpdateCheck( + "60141fdd-6ceb-42e1-9070-532c13725cf7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_1(self): + response = client.send(pp.UpdateCheck( + "60141fdd-6ceb-42e1-9070-532c13725cf7", + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_2(self): + response = client.send(pp.UpdateCheck( + "60141fdd-6ceb-42e1-9070-532c13725cf7", + bear_point_account="039690c9-b516-4b44-b092-30e5dc164209", + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_3(self): + response = client.send(pp.UpdateCheck( + "60141fdd-6ceb-42e1-9070-532c13725cf7", + point_expires_in_days=9805, + bear_point_account="d64426a4-a705-4a79-ab5a-aa2d135d029a", + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_4(self): + response = client.send(pp.UpdateCheck( + "60141fdd-6ceb-42e1-9070-532c13725cf7", + point_expires_at="2020-03-06T08:42:24.000000Z", + point_expires_in_days=4807, + bear_point_account="f22beb4e-a05a-4d14-b711-7187892faaa4", + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_5(self): + response = client.send(pp.UpdateCheck( + "60141fdd-6ceb-42e1-9070-532c13725cf7", + expires_at="2023-10-17T12:46:49.000000Z", + point_expires_at="2023-08-19T12:37:21.000000Z", + point_expires_in_days=3644, + bear_point_account="29d96a7c-f462-43df-b53c-217311ff0c80", + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_6(self): + response = client.send(pp.UpdateCheck( + "60141fdd-6ceb-42e1-9070-532c13725cf7", + usage_limit=2443, + expires_at="2022-09-03T04:25:36.000000Z", + point_expires_at="2021-09-16T19:47:01.000000Z", + point_expires_in_days=893, + bear_point_account="fa0714a9-dc3c-4b5e-8606-12b20beb9ef0", + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_7(self): + response = client.send(pp.UpdateCheck( + "60141fdd-6ceb-42e1-9070-532c13725cf7", + is_onetime=True, + usage_limit=2892, + expires_at="2023-08-07T14:16:44.000000Z", + point_expires_at="2023-01-30T13:36:59.000000Z", + point_expires_in_days=1584, + bear_point_account="f682f622-6426-4cd0-a41d-e49b8280abef", + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_8(self): + response = client.send(pp.UpdateCheck( + "60141fdd-6ceb-42e1-9070-532c13725cf7", + description="L84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCu", is_onetime=True, - description="wz6QVslbgmox4sylqaj0m4" + usage_limit=3267, + expires_at="2021-08-17T01:01:01.000000Z", + point_expires_at="2020-05-30T21:18:02.000000Z", + point_expires_in_days=7107, + bear_point_account="ffa3d0fd-053d-4c4f-a720-bff4179dfee0", + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_9(self): + response = client.send(pp.UpdateCheck( + "60141fdd-6ceb-42e1-9070-532c13725cf7", + point_amount=1815.0, + description="8MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqybT3XFSWXNEvBDeb", + is_onetime=False, + usage_limit=6610, + expires_at="2024-11-16T11:28:43.000000Z", + point_expires_at="2022-11-20T00:35:21.000000Z", + point_expires_in_days=54, + bear_point_account="2b6f2a8b-1889-4836-b88e-35fb225e1a79", + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_10(self): + response = client.send(pp.UpdateCheck( + "60141fdd-6ceb-42e1-9070-532c13725cf7", + money_amount=1281.0, + point_amount=6556.0, + description="3vAdg2WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWy", + is_onetime=False, + usage_limit=2444, + expires_at="2023-08-18T16:22:25.000000Z", + point_expires_at="2020-01-02T00:23:01.000000Z", + point_expires_in_days=187, + bear_point_account="972ad034-c929-47b3-93c2-065dbceed3a9", + is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_get_cpm_token_0(self): response = client.send(pp.GetCpmToken( - "NHRO5ZxO4O3NjLEysHxuDJ" + "TjYiVtdGDmgs4Vk2VUx2tI" )) self.assertNotEqual(response.status_code, 400) @@ -979,226 +1255,226 @@ def test_list_transactions_0(self): def test_list_transactions_1(self): response = client.send(pp.ListTransactions( - description="z86s8rMyDwBbVQMVNIv43CsGJ1N1Ty1LpoGWtPPIzjjzRC7Vh9LObliCnClJEf5Qg177zO5rb" + description="N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQPcXHRn98CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXu" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_2(self): response = client.send(pp.ListTransactions( - types=["cashback"], - description="EpgsB3u1k6p1M3AaDCD8U2M3hy0vfxtwSmqJp6yKARh5ZRW3Kxq9vutzMeQNTZUuVlFabCqRikwgbBJfMhTrHTPQaRFRzLrLpSH0GqkthOAKJR8VBFpRQxxKQe" + types=["payment"], + description="q9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCA" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_3(self): response = client.send(pp.ListTransactions( is_modified=True, - types=["expire"], - description="TlRS" + types=["payment"], + description="f4mhVFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_4(self): response = client.send(pp.ListTransactions( - private_money_id="c58173e0-6c0a-4927-b350-ae7379973c89", - is_modified=False, - types=["expire", "payment", "cashback"], - description="FQKcrRJGtyzouTG0fNi1SBzVwDCpwO7mzwiIebwBbgsjluVjYrLryI60OsM6yKV" + private_money_id="7fa37eed-4d43-4f3c-b2b6-b411425247b0", + is_modified=True, + types=["cashback", "payment"], + description="7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixLpvf" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_5(self): response = client.send(pp.ListTransactions( - organization_code="NiR4y3oI6DDGG-8-2bm99nV4-6", - private_money_id="810867ad-d660-425c-8f8f-9b012eadea00", + organization_code="803-2UWgF9A28O1--25djJe--", + private_money_id="ada11cee-4e79-408b-bda5-b1d542c267a2", is_modified=True, - types=[], - description="uCdyUUls75UdwXdZijuTLMB27QQHu" + types=["exchange_inflow"], + description="1h3V5Qywi2pn04JUSx27eVHz2wOx9gOffBCzdP" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_6(self): response = client.send(pp.ListTransactions( - transaction_id="tN", - organization_code="s-8M6b-O--i----s", - private_money_id="539d3808-02e2-45ea-8fb7-13bb48fae77b", - is_modified=False, - types=["exchange_inflow", "topup", "expire", "exchange_outflow"], - description="N4lU5sMlhBuyia62bkzzlqIc0ydT6mqiA8RNdj3U" + transaction_id="5lY5r", + organization_code="-SPF--Ue-xT-4af1yX--Qo3P-88", + private_money_id="2674231f-ff7f-43b2-84c3-4c6ceedee5b6", + is_modified=True, + types=["payment", "topup", "cashback", "expire", "exchange_inflow"], + description="2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayj" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_7(self): response = client.send(pp.ListTransactions( - terminal_id="803db879-0d54-4a71-8821-93559b8743f2", - transaction_id="wecpoFXApI", - organization_code="-3-5n-r--7-0B--g4l-p-2M-z2-s", - private_money_id="19ab3ea3-5c42-45bf-a247-5a075756b9a1", + terminal_id="16dbac2a-774f-4f16-9eb1-33222607a3df", + transaction_id="h3s3e", + organization_code="", + private_money_id="2893ee91-9131-4550-8a92-0a2dcc76bea5", is_modified=True, - types=[], - description="gB5z5qrK2mXuD0UWST9ldTa29xEBfE4jaoCgaw81ksIPXpJoHnKZwzgtMuSjmXprQOJIDMtkxUA3CwMowYwsohy6o54EyGXhKAybq9is4L00eclCf6ygQgmzcLUKbT5feGtXeOgCjHXo5HdhOmdyoXuDdYfk0Kl5lQobWMeUr" + types=["topup", "cashback", "exchange_inflow"], + description="4IfskzbRh2KXDkJqy1UyPaGHVkyMSdmemZcovbEUc9TiM3DTS" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_8(self): response = client.send(pp.ListTransactions( - customer_name="TL0yrW2IFnoVrabBtuZMnnkajdAwZKazac8bckasxqrpu0M7pIUsW64iTD7n", - terminal_id="77ac2164-1439-446f-a917-f2119a3bc5b4", - transaction_id="jTu3F", - organization_code="M0f6g9mH", - private_money_id="8c761014-fa19-4562-b6ca-ec6a513b12c1", + customer_name="7pJlo8JS6mIVfCl8O6XTpGUPEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPI", + terminal_id="669a3849-4187-44c2-a5d5-8d53644ea80d", + transaction_id="xLQqoj9SXP", + organization_code="---39", + private_money_id="1c45b4fa-8a23-479b-81c1-4b370fc82244", is_modified=False, - types=[], - description="HzepSQlFXs1g1p8h9cEw94TVm3QEXbRfQ4MBKBqC3S2iDFnRE3SwskPWs7mGvsLBFz2ikalm5QIcpZb2q5YnZ6axCoTTIbjOEPBaRli2lUAMJ7CyG5TMfzsA0CzHGei6FNa5iNHS8ae3s1VgKjc7Q8j7Z0S" + types=["topup", "expire"], + description="6O0nFaLFwVLIZnC6rDyYuuG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzW" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_9(self): response = client.send(pp.ListTransactions( - customer_id="bbb9b557-aa05-42df-8d3f-53cca7d69395", - customer_name="nzw7xhca7VuCPQn3tgDKKsPg1tK8tF9sjwQnBp1nMIeAnY6Xeri5tCJDZsGcVm09iZYX0jHs0ds3Y41lK02B8JXAbkOFKSHaiDX11U4V4mzkiQ9KgdufJCOqQoqEQic9b7rjANNhMIW5uX0nomeRn6xi8YDAJH7HJXNF3Oy8VhKyGvyermibojKhVPIvz1I1HvcbolySSXeAcLtwR", - terminal_id="f8abfb31-45b1-413a-a4f8-7c0bcaa3c7c4", - transaction_id="AJrx0pv", - organization_code="L2-kAk10H", - private_money_id="e428bf44-d697-4b39-9345-02bb98291d91", + customer_id="ee00df3b-d072-4254-9901-4876686f83c8", + customer_name="gdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbPQzPRirLmp7HiQajpl09d6QIiaL5c40GPi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzW", + terminal_id="92014d83-8f2f-44e6-8dbd-3e3e7243b88b", + transaction_id="YN8tFOR", + organization_code="Y-u", + private_money_id="37208acc-0117-48c4-87bc-979678a4c767", is_modified=False, - types=["expire", "cashback", "exchange_outflow", "payment", "exchange_inflow", "topup"], - description="oiZ9sjCAHNKHbkDV7xD9UgYkUYCn38T5jddnt" + types=["payment", "expire", "topup", "cashback", "exchange_outflow", "exchange_inflow"], + description="HQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8H" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_10(self): response = client.send(pp.ListTransactions( - shop_id="565d6596-9682-4c21-8cfc-05fdab2294df", - customer_id="336ec650-2cb9-4f90-abc0-a2fc4ae562f7", - customer_name="vyYD1qoSVwF6tpYAPGi6YnBQDM8MlLw6WNmhQ1XbNNNiRTERN1SPoqCbHjtLPWoEeyLYkaItEzRnlzKYkySdT2Gi04uqdwqTzZvD1PwMG5sUToLzAoDfdSJfprAXytppmaGjNfTvZeWlNcmFKOSukr", - terminal_id="3c8bd2dc-622f-46d0-b0e1-b4539f4ca774", - transaction_id="C08Ccb", - organization_code="-F-0F-30--u8E-UjA1yE-86h-", - private_money_id="53bd51c1-5eed-4b95-8af9-31db853099f5", + shop_id="220e5ac6-5a3a-47ab-b8da-03f468a6ae0e", + customer_id="5ebe53c3-108f-47bd-8035-e40645c13b8e", + customer_name="ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8ZrqfNGAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08aWAgYKgMRg4eijui0x4Az", + terminal_id="f98b4df5-c995-408a-bb6b-47a2f3349e71", + transaction_id="Xii06wz9Nd", + organization_code="W2--U-l5xjH-", + private_money_id="75cb9122-945c-4faa-9f83-ba8444fa9aaa", is_modified=True, - types=[], - description="v51Dnx9WEjtPQeVvIzNJybaWd5nDKgnWgGOF388caTufq1V8gMtPEUm5qxAkXQdgmA6Ox4Cr60" + types=["topup"], + description="kBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyBabDj1sJ7k6dP6L13ja9VovumOjMgFf" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_11(self): response = client.send(pp.ListTransactions( - per_page=2636, - shop_id="b460e2fc-852f-4293-bf34-3934c1710ae1", - customer_id="6712c23b-2383-4130-b136-f2dfc8722833", - customer_name="ByMdg32LG1oWyluqXLUpztzpGIdluCdFeopAnKzAxtAmMd124CMe44VQ69lqvNuxrP4SroQtmwf2SR0athJ6w5HZkze23HnekgXpUMEHxZW0", - terminal_id="b235fe8f-b71b-42d4-8063-7f367e7f6c65", - transaction_id="IuVp5e", - organization_code="-F5d118kJX-", - private_money_id="aa60ac47-38c9-4730-a4af-9fb95d54910c", - is_modified=False, - types=["topup", "cashback", "expire", "exchange_outflow"], - description="7shqF2iDJgp3ZW8SpDn16YEfYX3JUUHHD0kbha6rpojFdIy8Lev3F8En8X" + per_page=282, + shop_id="65719173-820d-4a91-b829-3433f2e9fa2c", + customer_id="b55e6feb-aa84-4b88-827a-34d322722b8f", + customer_name="ot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR88F7Ubd6EIlm", + terminal_id="794e5de6-a982-48e2-89d7-c7a5d468571d", + transaction_id="jq1", + organization_code="-oW", + private_money_id="84ad74bb-a6b2-4c97-8869-a00e6da9db2f", + is_modified=True, + types=["exchange_inflow", "topup", "expire", "cashback", "payment", "exchange_outflow"], + description="KUwWsCFULHC5xu9xwKzEEFrv0p5VC2XFSxIKMXYPxeKc6v3uyZaCEMZ2Ju8UbXHSU9E0Qlg3gebvAwjzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0ru" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_12(self): response = client.send(pp.ListTransactions( - page=3176, - per_page=4306, - shop_id="79be3681-7943-4470-b510-00d67b659019", - customer_id="0f782632-14e9-479d-a4b4-69bf7fe3967a", - customer_name="Rrop8yq1iTaMXh9J32aBIrleFDh2AVDnVQPI4cS2rMsWBfreBRQpW9vUd58fde96uK1qpkeDgc6H", - terminal_id="c303d83d-be81-47e2-9b9e-7b6f388b2233", - transaction_id="o2wSmfRoo", - organization_code="l-y0-M-fT9--rXh", - private_money_id="d1d72603-12a8-4e82-8fd9-317085218001", - is_modified=False, - types=["expire", "topup", "exchange_inflow", "cashback"], - description="Qy1efJIm6p2nFeDatBkmxJUfJ8iWJ5x76ilzTFGw7NqxtlVIVfYnX2Qn7EnOChsUwktnh8VjRFve7MdNMBgFvJyEEmkecVySQ3ucJUKFqVhyrEcw3WNc5IXHiI2Hhl1OjgN6fFukYqihBSq8D0896GNWlaYQ8akcWxDZkhO" + page=5103, + per_page=106, + shop_id="9e6fdaf3-adbc-4bae-9fcc-a256ada8901c", + customer_id="04e72a3f-308d-4ac1-8b24-7a85bf70fc21", + customer_name="D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5q", + terminal_id="a8764f09-9022-4ad9-93e6-af609463b027", + transaction_id="dpEz", + organization_code="yFH3l-oWbAVbaS-p-1i-rU6H0r5jHe", + private_money_id="6b7d83b2-c16c-45aa-b20b-53ca574cb36e", + is_modified=True, + types=["topup", "cashback", "expire", "exchange_outflow"], + description="2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYA" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_13(self): response = client.send(pp.ListTransactions( - to="2017-06-15T20:11:56.000000+09:00", - page=2800, - per_page=6267, - shop_id="3f07546b-e020-4dfa-91aa-75176d0dfc65", - customer_id="fd14dc73-60f8-42b2-ad8c-c0ee944b4d65", - customer_name="2LIVGGp8Vx16M91diHUGfol8Mhj42rW4z5Wjzvhmx48Q4mMZZBBUosSdONTSqEGwk1DyPJJ9VhetNR8hTecHZnx73cRhZIXdPCHq2mv2UAXA", - terminal_id="2506d490-38f4-4fba-b13d-dd72ed30a710", - transaction_id="kbL0z4gSPz", - organization_code="--9-5jKh-66tZieYA7-E", - private_money_id="3f07627c-77ba-473d-8747-2571b3e7f3e5", + to="2022-08-11T11:06:41.000000Z", + page=8459, + per_page=7873, + shop_id="17d7361e-5f26-46e1-97ee-368e6a3f8367", + customer_id="0d4b08f1-92b9-4450-8abd-4b51317ebd0a", + customer_name="fQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuKlnfNVTWFTkh4YZxFDhr8QjYlB42oGAhylpmFOwCdKPABZdrgh98RslDBuoJSIFUrTRne91u8KmONYXCce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0", + terminal_id="69f06cdb-6214-4c15-807d-8cbd8538079b", + transaction_id="ZYNIF", + organization_code="s--aXS-ZgJJ-y--WsY4x--Dyl", + private_money_id="7440e812-d811-462f-af5f-b514d20a65a5", is_modified=False, - types=["exchange_outflow", "cashback", "expire", "topup"], - description="DzJGZ9TM0TySjAlV" + types=["cashback", "exchange_inflow", "topup", "expire", "exchange_outflow"], + description="RdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2in" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_14(self): response = client.send(pp.ListTransactions( - start="2022-08-21T05:02:04.000000+09:00", - to="2023-08-22T00:59:39.000000+09:00", - page=7332, - per_page=726, - shop_id="bbfaa117-03a9-4fa4-8e3c-44e4ca9e2e88", - customer_id="dfffc54f-10a5-4bc3-888e-a5167f459165", - customer_name="kFyfPkq8IYlCnIEfVjyhIzvswfx06lwewFlBxBPgZymInLxkpSlp0CcXJpCFZzCR1WWP7a67366cHWhkYkA6trhbS9trPinjNzKWZdpxUSeeatx6TLoIfkctcu", - terminal_id="8435a804-3c3d-4433-85d4-18eba3009519", - transaction_id="D", - organization_code="-4--jJ-64eW6-Tp-m-V0HjUu9-", - private_money_id="95c84b40-9503-4a9a-bdf4-ff2d34fc2643", + start="2024-05-23T02:09:21.000000Z", + to="2021-07-19T10:37:33.000000Z", + page=3824, + per_page=5692, + shop_id="5cb6a40b-f3f3-407a-ba7a-0bea481bd33e", + customer_id="271ce8dc-c716-49b7-a267-496a1db4773c", + customer_name="cZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86", + terminal_id="a069e5c4-b57f-4ea4-b996-25d8c6009908", + transaction_id="fo8j", + organization_code="--iE55--f5D851N-akMUy6-", + private_money_id="6481f61a-2228-4de5-90c4-47010df61e71", is_modified=False, - types=["expire", "topup", "exchange_outflow", "exchange_inflow"], - description="C2YnEIi9qrFhHU4UChBktVJM6Ehoat5RskjtjMRgfY9KAojiVjkW" + types=["expire", "exchange_outflow"], + description="7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumM" )) self.assertNotEqual(response.status_code, 400) def test_create_transaction_0(self): response = client.send(pp.CreateTransaction( - "cb1374c7-08da-4914-8de6-4184771c3f04", - "15918858-c262-4fe8-871c-821841c6becf", - "79ccd9de-1646-4976-8e8b-75d9511ffeb5" + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5" )) self.assertNotEqual(response.status_code, 400) def test_create_transaction_1(self): response = client.send(pp.CreateTransaction( - "cb1374c7-08da-4914-8de6-4184771c3f04", - "15918858-c262-4fe8-871c-821841c6becf", - "79ccd9de-1646-4976-8e8b-75d9511ffeb5", - description="OwkPTEUz8oSFQeGoSG3k81y4L7o3GM3UKBXMJoycpsy4LyLZFxRuuFLA4Ui8k1KypnJ8Uw7M1CvtXboHcAQ9ViIsvWqws3eBMzyIUtiNxNhmRynGWfznERPtN3LViJS1dpiuu6JWeysJ5UR27acols8OLFNhYvqrdgeoTKVw3QKHsut3xFubIL" + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5", + description="Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7" )) self.assertNotEqual(response.status_code, 400) def test_create_transaction_2(self): response = client.send(pp.CreateTransaction( - "cb1374c7-08da-4914-8de6-4184771c3f04", - "15918858-c262-4fe8-871c-821841c6becf", - "79ccd9de-1646-4976-8e8b-75d9511ffeb5", - point_expires_at="2024-11-07T12:20:55.000000+09:00", - description="ZVISKCKpUoBc7VjLNhPbQNBNhem" + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5", + point_expires_at="2023-04-28T14:17:57.000000Z", + description="ZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9" )) self.assertNotEqual(response.status_code, 400) def test_create_transaction_3(self): response = client.send(pp.CreateTransaction( - "cb1374c7-08da-4914-8de6-4184771c3f04", - "15918858-c262-4fe8-871c-821841c6becf", - "79ccd9de-1646-4976-8e8b-75d9511ffeb5", - point_amount=6017, - point_expires_at="2021-07-11T10:11:12.000000+09:00", - description="jnuLcC94xG8sb1tOVm7p5XAwHfSXk3eOR6TecHTnhwvZsEsT85OfQ8lzdmqxGSg8e3RhOb5BMcQPLOIjmc8VMDMHWqGdZh4akYykFCJxLZHGXI2AIAE56GVf0Gw7" + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5", + point_amount=6465, + point_expires_at="2020-12-08T17:02:41.000000Z", + description="2xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqz" )) self.assertNotEqual(response.status_code, 400) def test_create_transaction_4(self): response = client.send(pp.CreateTransaction( - "cb1374c7-08da-4914-8de6-4184771c3f04", - "15918858-c262-4fe8-871c-821841c6becf", - "79ccd9de-1646-4976-8e8b-75d9511ffeb5", - money_amount=8299, - point_amount=2285, - point_expires_at="2019-11-05T17:34:47.000000+09:00", - description="NPt7OvjdgkL3FTfLMcm3icBM39ZlgHnODxDuHCOV9jJuZqWToSer58JP7CddvYZG2P4sGsjZKQxe7fKpax0Uc45ft1nisEBoOyK7IWRvWeQ7" + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5", + money_amount=5766, + point_amount=4156, + point_expires_at="2023-09-25T18:36:20.000000Z", + description="sahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8" )) self.assertNotEqual(response.status_code, 400) @@ -1209,920 +1485,1243 @@ def test_list_transactions_v2_0(self): def test_list_transactions_v2_1(self): response = client.send(pp.ListTransactionsV2( - per_page=728 + per_page=515 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_2(self): response = client.send(pp.ListTransactionsV2( - prev_page_cursor_id="9de12471-99ca-4b77-9813-2bfcca47c9ff", - per_page=516 + prev_page_cursor_id="01a288ce-86a9-45f9-a25c-24fb20e7a337", + per_page=70 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_3(self): response = client.send(pp.ListTransactionsV2( - next_page_cursor_id="22ec9ab3-265e-40a5-8442-7863a71151f2", - prev_page_cursor_id="3ce137c1-2c06-471a-b0da-4aca6ffb016d", - per_page=336 + next_page_cursor_id="aebb53f8-8db4-4c7a-a6dc-f0cc65d2b079", + prev_page_cursor_id="8d3a473f-2823-465e-acfd-450c5315b0ac", + per_page=93 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_4(self): response = client.send(pp.ListTransactionsV2( - to="2022-08-30T12:31:46.000000+09:00", - next_page_cursor_id="db90af9f-6e3e-4355-8d6e-40e6176c6b1a", - prev_page_cursor_id="2ffaad79-6d64-45aa-8a44-be69bf94ef44", - per_page=521 + to="2022-11-10T16:42:01.000000Z", + next_page_cursor_id="47d51d1c-7d7d-4eed-8f26-2a2b344a5456", + prev_page_cursor_id="58ef04fd-d975-4375-b71d-2c52ab07695a", + per_page=747 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_5(self): response = client.send(pp.ListTransactionsV2( - start="2016-07-21T22:31:11.000000+09:00", - to="2021-02-28T12:59:09.000000+09:00", - next_page_cursor_id="1dc97a39-0a28-440b-a504-36765ac3bb9e", - prev_page_cursor_id="df2b38e6-1fc4-4b7c-b1ab-9b0a2612f150", - per_page=268 + start="2024-12-02T16:14:21.000000Z", + to="2024-06-09T17:54:46.000000Z", + next_page_cursor_id="985c2180-8c40-4753-8f21-2766712bd439", + prev_page_cursor_id="054b129a-6230-46c9-8c4c-84680a7074ba", + per_page=562 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_6(self): response = client.send(pp.ListTransactionsV2( - types=["exchange_outflow", "topup", "payment"], - start="2016-01-01T04:27:16.000000+09:00", - to="2022-02-25T22:31:49.000000+09:00", - next_page_cursor_id="090174f5-5769-4e0b-832e-ba49023d62ae", - prev_page_cursor_id="139de550-9f78-44af-87d8-9991a48220cc", - per_page=647 + types=["expire"], + start="2022-06-05T12:01:23.000000Z", + to="2023-03-04T12:20:00.000000Z", + next_page_cursor_id="10e4a5c3-bb76-4eb1-ba02-5721ddf7118f", + prev_page_cursor_id="5aa24321-e825-4213-b4c9-e23a309164cc", + per_page=212 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_7(self): response = client.send(pp.ListTransactionsV2( - is_modified=True, - types=["topup", "expire"], - start="2024-06-24T22:54:19.000000+09:00", - to="2022-01-09T17:10:32.000000+09:00", - next_page_cursor_id="abfad28a-2261-4770-bb9f-eadaeb23d234", - prev_page_cursor_id="35e21334-fb29-4919-b760-396ad97efee5", - per_page=736 + is_modified=False, + types=["cashback", "topup", "expire", "payment", "exchange_outflow", "exchange_inflow"], + start="2023-04-20T08:04:40.000000Z", + to="2024-04-06T18:16:52.000000Z", + next_page_cursor_id="f06def02-1d81-4ae3-8e2c-f1039aeee37c", + prev_page_cursor_id="86770697-e978-4707-8723-20e2bc00efb1", + per_page=296 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_8(self): response = client.send(pp.ListTransactionsV2( - transaction_id="Leg5dXf", + transaction_id="w0", is_modified=True, - types=[], - start="2021-08-22T00:03:33.000000+09:00", - to="2020-05-09T09:50:53.000000+09:00", - next_page_cursor_id="59d05ac4-417f-4c10-8d1f-fd95efe040e4", - prev_page_cursor_id="10b62b00-d792-47e2-b891-c453cf6b7021", - per_page=746 + types=["exchange_inflow"], + start="2024-05-31T16:45:00.000000Z", + to="2022-05-17T00:35:30.000000Z", + next_page_cursor_id="ecda8963-adff-47d3-a1a6-004553a8a936", + prev_page_cursor_id="7fa83d28-d8fa-49a2-a791-f7359340cfd1", + per_page=904 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_9(self): response = client.send(pp.ListTransactionsV2( - description="dHtUdWqjwNZ6SqXcjRYXWjjppT0r9xvCuvBOfsidrDI9VlsfxLxW5axZvNGABU1Kq4dKF1bCFldqrEeXCX83UsZSPbix6b1Za3ly7V", - transaction_id="1xEB", - is_modified=True, - types=["topup", "cashback", "exchange_outflow", "exchange_inflow", "payment"], - start="2019-04-19T17:54:35.000000+09:00", - to="2024-12-02T09:54:02.000000+09:00", - next_page_cursor_id="6e975fc1-ef3d-43c2-a37a-2612a0ea96b8", - prev_page_cursor_id="ac5c6261-5ad1-4e56-9134-810abdf9f8b6", - per_page=717 + description="SLVITcWyXkWwNeThL", + transaction_id="K", + is_modified=False, + types=["payment", "exchange_outflow", "exchange_inflow", "topup"], + start="2021-12-04T22:13:49.000000Z", + to="2022-07-18T19:15:02.000000Z", + next_page_cursor_id="c624f552-688a-4949-97cd-5dddc9461ad9", + prev_page_cursor_id="5bcaf4e0-94b7-4074-b0a3-c47563f1607e", + per_page=393 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_10(self): response = client.send(pp.ListTransactionsV2( - customer_name="RceMuSvImdDq9y3aEus7kZPbP6pY7uTyJAbvra0dcpr2XBaxBtLUqtpR4s1JU0lVQ2OypewcGn6EYrIoiJUtnz4tPDjzGeH1vMI9teS2D85S1UHA16vfzALVhDfz", - description="Jqhsy99eYUXwCEgrx3b6fZBGl5iNgWbOvie519sB5ATfDwJwr3eQ20YGcyYu0bMGv3vztYfqlxsbOENjEAJX3lDTAofzZK4Rxx8sLYfBb6BjvrBrNNM0rEDhKG45tzzgCXrxrouPH3h", - transaction_id="I04AO4rgT", + customer_name="9Tu", + description="4ZsbCHGDImjW34z4jE8W9hhkpYWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4", + transaction_id="Uw", is_modified=True, - types=["expire", "exchange_outflow", "payment", "cashback"], - start="2024-07-26T20:01:43.000000+09:00", - to="2020-08-20T21:42:17.000000+09:00", - next_page_cursor_id="941ef2f1-9cea-47bd-87fb-4acc6bcb1c50", - prev_page_cursor_id="1dde2b95-6a30-4fc4-82d5-0387e9a02e6e", - per_page=456 + types=["topup", "payment", "exchange_outflow"], + start="2022-09-06T17:01:47.000000Z", + to="2024-11-06T01:02:33.000000Z", + next_page_cursor_id="0ca7a69b-bece-4a26-9ca1-a22af46cc625", + prev_page_cursor_id="f1948afd-9664-44bf-b920-d03ea9398221", + per_page=176 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_11(self): response = client.send(pp.ListTransactionsV2( - customer_id="01138506-06f8-4697-973a-73c5b9fe2fec", - customer_name="SvEGfkoczpVf2XfhCesDbLNG0um3YX4ee6SkSSSI0RCCs8xN6z62EIsVi251R9OVM6dJXfTSVkQAgLF0UCGkzWfvHQLNpl08", - description="kirPvpqWe6LFMxqHgshQQxZyXH54xcjjzE4jf3bC1uhrBdvXqhm8jwzIEhcNYML2OSzpp2xgjGNFVHJxj8ajHmdLScmLSMjxtIdUuX8NpagwVisjQjWa0Ga7Mr0", - transaction_id="bte93", - is_modified=False, - types=[], - start="2023-12-05T01:05:41.000000+09:00", - to="2025-07-15T18:47:09.000000+09:00", - next_page_cursor_id="5112bfed-8bbd-45ba-8f09-c7c5be7e3368", - prev_page_cursor_id="d93f74d8-963f-426e-8ef9-8a3e8a658155", - per_page=930 + customer_id="22dc13dc-a084-45b1-99dc-7306d2ea09e9", + customer_name="nQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3X", + description="MzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6nh3hboA1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXUyJ1V0r5CHRN", + transaction_id="T2ecfLdc3", + is_modified=True, + types=["exchange_inflow", "cashback", "expire", "topup"], + start="2020-05-01T07:08:55.000000Z", + to="2020-10-07T12:13:48.000000Z", + next_page_cursor_id="b54b79ee-9439-4434-b7f0-98d318766ec3", + prev_page_cursor_id="8841ac99-ad42-4194-9047-d489d5259aee", + per_page=995 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_12(self): response = client.send(pp.ListTransactionsV2( - terminal_id="6877d983-9c44-4572-b38c-f2b0646ed5d9", - customer_id="150bea29-3953-4b8a-9408-acf986e34ee0", - customer_name="NNnFCcwr1avxToYBT4VEV6evoILJv7tTWIqRKgT33Bi9tzz6Ttxk7d6FPiA0lsYPm9uy3bOLitkN0", - description="KHj5fbn2v2B0UJuNrXCxgjdk6CWOkAWhJ0Lot3", - transaction_id="toFslAl38", + terminal_id="367bfb18-c63e-4d32-9522-a037e525c9cb", + customer_id="c49acbc0-3fa1-4a0a-8931-3416274ff0fb", + customer_name="Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bG", + description="ruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZ", + transaction_id="Pb5B1K9ZLJ", is_modified=True, - types=["exchange_inflow", "exchange_outflow", "cashback", "expire"], - start="2021-06-30T14:29:44.000000+09:00", - to="2023-04-27T20:48:19.000000+09:00", - next_page_cursor_id="05eb8b06-89ea-44f9-b387-f2834ee3403c", - prev_page_cursor_id="6f05a394-993e-4220-9eea-4e650951e99d", - per_page=506 + types=["exchange_outflow", "expire", "exchange_inflow"], + start="2020-03-16T17:05:11.000000Z", + to="2021-03-24T13:43:28.000000Z", + next_page_cursor_id="5df4745f-a378-4b8d-b939-b630b229ff44", + prev_page_cursor_id="b58a3135-7c9d-4ae7-85ef-09b4a954927e", + per_page=613 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_13(self): response = client.send(pp.ListTransactionsV2( - shop_id="c212b7ba-9a85-45e5-8b99-b2e739d7cda7", - terminal_id="da52f90b-54a8-4209-83b5-841db4dedd0b", - customer_id="6d48ed45-51ff-4283-9c43-26815b5480f8", - customer_name="1SgJEpSlopBJNy3qmiwYmDuOlcchHpAG2gwwi3nOK6tJxpePLFHBs9kILByZGqDqm9YAgnobRajraam0rBpkfu82GZDo8PtRb5vVt3TqmZrxia2ui6VWr3guQRAw5Cq4lwbs5G5iUu21d4ST7CuEydnlBtSyriuS9M5GXcqFt6wV9qfsP61uEwZUrs1XMhNzPArurgTCGgpfTuJZDkeCAQBkolLr", - description="oUrTRKy1uTbc45m4YwxjxtGbA05zcwQ8eNnH7AYfIcNt7NKHBDT4zItl3ZAd6IFhkcz8jRzOJNYNTmAx0cRygrFZ66y9EQQUqakXyxFnuW2T4m1VyTa1OoANMT3g8KQuzrvKESksiTJQTVn", - transaction_id="H", + shop_id="5287b28d-fe04-4e01-82cc-77bf308ad1e4", + terminal_id="a3a3a397-2b0a-4fdf-962b-b65524f446a7", + customer_id="451fb425-d1a1-4343-93da-4b8d5acb45a3", + customer_name="Vd4cTqnNfSRiXLw6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3jya01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI", + description="vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHM", + transaction_id="qzJF", is_modified=False, - types=[], - start="2024-04-15T14:27:38.000000+09:00", - to="2017-04-08T13:41:07.000000+09:00", - next_page_cursor_id="d930a88e-56a4-4ffd-b7ae-c779b73b7c37", - prev_page_cursor_id="52838966-3eb2-49bd-8c59-ce7791e5996d", - per_page=380 + types=["cashback", "expire"], + start="2023-05-13T04:03:06.000000Z", + to="2021-12-16T18:34:54.000000Z", + next_page_cursor_id="bc840514-8f5a-4138-bd7a-e9c84dd1bc46", + prev_page_cursor_id="4ded5bfd-0435-44ed-be6e-492d09f993a5", + per_page=870 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_14(self): response = client.send(pp.ListTransactionsV2( - organization_code="V-Sl395---C-z7S5-H-5W-2-kd", - shop_id="b882152a-de65-4772-ba7e-aff88188aee4", - terminal_id="3d4253e2-96a2-4b40-b515-64dfba992f80", - customer_id="b2ced270-729a-4bad-a03d-b756300687f9", - customer_name="8ATO6lTexkb25xKe3io9ZDBIqGu38r7vCoqpH5QhZu1k2tSxqrr7YJPVhda0ziWsQtZgRc6cmsvPcY7yThlkSXuhO9OLfbw29j7FyeDINdaRXM95lPwMwz9IKIn6wEZkP", - description="JyErXa70KC1ZDBuFoL3t7T5TQkGNyZe8GBabvL25GCAVUwr2eojbDaPOXkEpypH4JrghAf67UGzdtgboYq9", - transaction_id="zCMQ97NziA", + organization_code="OY4-YF8Yj--u09ly4---PR-k-TLZ-3-", + shop_id="a4e2cef6-ddcd-4f7d-9620-e5cd299ce37a", + terminal_id="e8fd7859-d870-4966-9245-3edd91eacd97", + customer_id="d3e45e48-de27-4b48-bd88-3c717a55622f", + customer_name="AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2iLhkB08mWoSE", + description="w4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U0", + transaction_id="aLs4h", is_modified=False, - types=[], - start="2022-01-01T10:12:21.000000+09:00", - to="2019-06-09T05:22:32.000000+09:00", - next_page_cursor_id="690f4903-a5f1-41dc-adf9-4e3875a63e1a", - prev_page_cursor_id="d423ded4-7964-4fa7-b052-f7cf4a704a52", - per_page=529 + types=["payment", "expire", "topup"], + start="2023-09-28T21:39:19.000000Z", + to="2024-10-11T20:52:22.000000Z", + next_page_cursor_id="27b42238-1c89-443b-a840-02d79b10f60d", + prev_page_cursor_id="fb75d209-96ee-4eff-8143-9b9a30e946d2", + per_page=125 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_15(self): response = client.send(pp.ListTransactionsV2( - private_money_id="50889553-41ea-48f9-b67c-adf823ce3d66", - organization_code="77FEB3qUK-k", - shop_id="f7dcb836-0149-4c49-8494-4102615ea6f9", - terminal_id="03df9db8-2356-4845-abb7-3f57ab1da6ae", - customer_id="a2831318-0cf7-4a5f-8281-2b0b8dcc5fe4", - customer_name="0msuDaOhM5oqV2xleoqU08aoK4SSRQxNI4HYZa4lL8vlyT5v2fWiN7LjHjlDtCGjTLI9kXm", - description="3rfByXFrnlgeqVtAvQ0rVDYOMHbm3FgLktaUhgEFTnEcwpkpUTSKxUsOoZPlM9KHj0LscW1P81Qy90jmz1sBL2rdIxI95Aq016ZjJCH7wtIwkByOxgZ1CmhlD7BVFzYE678H", - transaction_id="grDW8XfB04", - is_modified=False, - types=["expire", "cashback", "topup", "payment", "exchange_inflow"], - start="2020-01-06T20:53:36.000000+09:00", - to="2016-07-07T03:48:35.000000+09:00", - next_page_cursor_id="b2b5dc71-463d-4465-8a57-c66ee4676b26", - prev_page_cursor_id="38d6cf3b-d212-4809-bbf0-f0c0ae65a17c", - per_page=688 + private_money_id="cda389e6-3827-428c-ba32-79ecf309c8ab", + organization_code="X-YPS-T10k6-s-8OKpZ-0Z4", + shop_id="d00fab1b-687b-4aea-8d60-c724bbafe09a", + terminal_id="605b0ee7-59a4-4f6b-a4ae-ba380686a451", + customer_id="c870395f-de53-42da-9d13-da77af4d7e4a", + customer_name="udEIb7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZ", + description="zi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKX", + transaction_id="hWYdlIHfSB", + is_modified=True, + types=["exchange_inflow", "exchange_outflow", "topup", "payment", "expire"], + start="2024-03-07T12:31:09.000000Z", + to="2021-09-05T09:09:55.000000Z", + next_page_cursor_id="6b9cd14b-99a9-4b9d-b699-6cc8d413844c", + prev_page_cursor_id="d78c71dc-2ea6-45e5-b393-14ef4aa76aa3", + per_page=975 )) self.assertNotEqual(response.status_code, 400) - def test_create_topup_transaction_0(self): - response = client.send(pp.CreateTopupTransaction( - "4b9b2098-1ea7-4b7d-94b6-42385c3006aa", - "1fdefda8-8f90-479c-b3b5-04a02d3d9534", - "2b085fef-414f-404e-b30c-07caf16f239c" + def test_list_bill_transactions_0(self): + response = client.send(pp.ListBillTransactions( )) self.assertNotEqual(response.status_code, 400) - def test_create_topup_transaction_1(self): - response = client.send(pp.CreateTopupTransaction( - "4b9b2098-1ea7-4b7d-94b6-42385c3006aa", - "1fdefda8-8f90-479c-b3b5-04a02d3d9534", - "2b085fef-414f-404e-b30c-07caf16f239c", - request_id="abb94754-34df-42b7-89d4-35bac4b3ac18" + def test_list_bill_transactions_1(self): + response = client.send(pp.ListBillTransactions( + per_page=56 )) self.assertNotEqual(response.status_code, 400) - def test_create_topup_transaction_2(self): - response = client.send(pp.CreateTopupTransaction( - "4b9b2098-1ea7-4b7d-94b6-42385c3006aa", - "1fdefda8-8f90-479c-b3b5-04a02d3d9534", - "2b085fef-414f-404e-b30c-07caf16f239c", - metadata="{\"key\":\"value\"}", - request_id="070ae720-ac1f-486c-9d66-9d9f9224f976" + def test_list_bill_transactions_2(self): + response = client.send(pp.ListBillTransactions( + prev_page_cursor_id="ae10569f-1d41-4887-8ef3-f829a6118181", + per_page=277 )) self.assertNotEqual(response.status_code, 400) - def test_create_topup_transaction_3(self): - response = client.send(pp.CreateTopupTransaction( - "4b9b2098-1ea7-4b7d-94b6-42385c3006aa", - "1fdefda8-8f90-479c-b3b5-04a02d3d9534", - "2b085fef-414f-404e-b30c-07caf16f239c", - description="jHRgsb", - metadata="{\"key\":\"value\"}", - request_id="cb2ceb6a-14f2-47ef-a158-c68e366d2aab" + def test_list_bill_transactions_3(self): + response = client.send(pp.ListBillTransactions( + next_page_cursor_id="61f2d778-7e6a-499a-9da6-1328bb36d1db", + prev_page_cursor_id="6775c961-2758-4534-82ae-ae62103877bb", + per_page=748 )) self.assertNotEqual(response.status_code, 400) - def test_create_topup_transaction_4(self): - response = client.send(pp.CreateTopupTransaction( - "4b9b2098-1ea7-4b7d-94b6-42385c3006aa", - "1fdefda8-8f90-479c-b3b5-04a02d3d9534", - "2b085fef-414f-404e-b30c-07caf16f239c", - point_expires_at="2022-08-02T22:15:07.000000+09:00", - description="1fxLB1", - metadata="{\"key\":\"value\"}", - request_id="d487cff9-f3e6-4eb5-9112-3064cda241fc" + def test_list_bill_transactions_4(self): + response = client.send(pp.ListBillTransactions( + to="2024-04-07T17:08:17.000000Z", + next_page_cursor_id="7eeeed13-9586-4300-ba6f-8c572fb5b67c", + prev_page_cursor_id="6e5a28a4-b735-4853-8282-71d37ce74391", + per_page=516 )) self.assertNotEqual(response.status_code, 400) - def test_create_topup_transaction_5(self): - response = client.send(pp.CreateTopupTransaction( - "4b9b2098-1ea7-4b7d-94b6-42385c3006aa", - "1fdefda8-8f90-479c-b3b5-04a02d3d9534", - "2b085fef-414f-404e-b30c-07caf16f239c", - point_amount=7904, - point_expires_at="2020-09-12T16:52:14.000000+09:00", - description="wvhweVkrWRctnJ2TSLmfSkWFb6oLKvNkr7xERwVYEzuAqPS2Yq5Zx72l8Uwb6djbQEnxEVuuBukUKWopaaFtoO5CUO2HA5dwLtiNF6M5", - metadata="{\"key\":\"value\"}", - request_id="f1ee1412-40fb-491d-b13a-170163f455a8" + def test_list_bill_transactions_5(self): + response = client.send(pp.ListBillTransactions( + start="2024-02-25T23:28:43.000000Z", + to="2023-10-04T19:41:46.000000Z", + next_page_cursor_id="8c6738c6-0a43-44e0-9f4b-4001c0bd316a", + prev_page_cursor_id="77d568df-db4f-48a6-855e-663e7f449dfc", + per_page=925 )) self.assertNotEqual(response.status_code, 400) - def test_create_topup_transaction_6(self): - response = client.send(pp.CreateTopupTransaction( - "4b9b2098-1ea7-4b7d-94b6-42385c3006aa", - "1fdefda8-8f90-479c-b3b5-04a02d3d9534", - "2b085fef-414f-404e-b30c-07caf16f239c", - money_amount=2401, - point_amount=8189, - point_expires_at="2022-10-19T13:39:38.000000+09:00", - description="AMFoXb9rmaZQXIsaxB2CgIcPvFHqcQFB1JdewR9", - metadata="{\"key\":\"value\"}", - request_id="9024ecbb-e800-453b-a6e2-b45d82161f75" + def test_list_bill_transactions_6(self): + response = client.send(pp.ListBillTransactions( + is_modified=False, + start="2020-10-13T22:18:32.000000Z", + to="2021-03-14T08:11:30.000000Z", + next_page_cursor_id="8414273b-f9b9-4d7c-9016-a811660a23ca", + prev_page_cursor_id="013b7a5a-cc0a-48f1-b4b4-e87625084840", + per_page=931 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_7(self): + response = client.send(pp.ListBillTransactions( + bill_id="c6570c3c-4139-43a5-b577-ab248b1ce2b5", + is_modified=False, + start="2024-05-21T14:08:20.000000Z", + to="2021-03-11T21:07:10.000000Z", + next_page_cursor_id="eb9908a8-81c2-40c1-a2bb-b391414d2da6", + prev_page_cursor_id="220fd273-74a1-4594-8d33-0285ecaa85e9", + per_page=320 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_8(self): + response = client.send(pp.ListBillTransactions( + transaction_id="9df3475f-9c60-46db-b893-f4e42459673f", + bill_id="18e983d7-4ddb-4afb-a3e4-963b9949e133", + is_modified=False, + start="2024-04-03T07:49:00.000000Z", + to="2024-11-10T04:11:38.000000Z", + next_page_cursor_id="a88089c7-49e7-43b9-abb8-8583b0e9167a", + prev_page_cursor_id="a33bae58-e499-4935-8127-4926dff9f028", + per_page=559 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_9(self): + response = client.send(pp.ListBillTransactions( + description="x6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9", + transaction_id="c7e1c9e0-9fe2-441c-ae11-f95dcb2e2014", + bill_id="5d254159-6728-4b16-82ca-b055184311a7", + is_modified=False, + start="2024-02-27T20:30:15.000000Z", + to="2023-11-16T14:32:16.000000Z", + next_page_cursor_id="8b430634-44af-4553-8add-70c475d4281b", + prev_page_cursor_id="2f3b2864-c5bd-4510-9e40-b3396640ebd6", + per_page=733 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_10(self): + response = client.send(pp.ListBillTransactions( + terminal_id="9f50cb77-771b-4ab0-a768-689c030f0c76", + description="UwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4N", + transaction_id="7cbf90a1-a822-4b22-adc0-bc343a43ad50", + bill_id="b9500422-ec62-4417-b19a-79ee60c75c30", + is_modified=False, + start="2023-03-23T05:25:33.000000Z", + to="2024-08-07T02:39:31.000000Z", + next_page_cursor_id="a2020375-8a18-4341-8ac9-672a118ce7f9", + prev_page_cursor_id="9cdc72e4-177e-49b8-ae54-c2adfe99059e", + per_page=664 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_11(self): + response = client.send(pp.ListBillTransactions( + customer_name="91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82", + terminal_id="751b85e8-29e8-452e-b5af-35a1d2bdb475", + description="d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM2DvQSu", + transaction_id="f69f102d-c127-4b87-bf99-151ce6ae582e", + bill_id="b0344a88-9d87-4c30-b600-7c09a8fbc3c6", + is_modified=True, + start="2020-08-24T16:27:11.000000Z", + to="2020-05-25T18:36:53.000000Z", + next_page_cursor_id="1752a938-a806-4700-812a-ce6a1376a787", + prev_page_cursor_id="dd6546a2-47f5-497c-bae5-7dce97ce7049", + per_page=847 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_12(self): + response = client.send(pp.ListBillTransactions( + customer_id="836bfeda-3beb-4925-803f-3ef4ea8d0525", + customer_name="FZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaL", + terminal_id="f679ccf2-2131-4cc2-875f-1edefa6d078b", + description="dgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJ", + transaction_id="d2baffbf-7e4c-41a5-84ee-b2dc4d5c50b1", + bill_id="7dc4491c-ca54-464f-9708-f5566bb1ed4e", + is_modified=False, + start="2021-10-23T22:07:58.000000Z", + to="2020-03-03T21:38:33.000000Z", + next_page_cursor_id="662e072b-e0e7-4d61-8eac-bbfba778ac89", + prev_page_cursor_id="112cd136-fded-4686-a7e1-c3d336473dda", + per_page=600 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_13(self): + response = client.send(pp.ListBillTransactions( + shop_id="499bdeaa-5aca-43ee-9e2b-bbbc64a7a92f", + customer_id="67640787-e487-4431-902c-212a92489fbf", + customer_name="27yVjYZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeH", + terminal_id="7d1fa0ce-bfae-4d37-95c3-b33438410b0c", + description="dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIcNrFvlQBI", + transaction_id="74340d0c-b4d8-4d14-9eb1-c93f4e776bca", + bill_id="d67b9fc2-0a8b-46e7-a55d-e3eecfca28f2", + is_modified=False, + start="2022-07-15T20:01:53.000000Z", + to="2020-12-01T12:39:39.000000Z", + next_page_cursor_id="26143e4c-e6c6-4c08-aca2-394c50221b80", + prev_page_cursor_id="ba703613-4ba8-49b5-91a9-eaebbf8ef162", + per_page=413 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_14(self): + response = client.send(pp.ListBillTransactions( + organization_code="-JM0--0QZJW45L4--5wtjozI-W--", + shop_id="0504d554-1d24-4688-871a-8929fadd450d", + customer_id="20da627f-1b83-4e45-9aa8-8b437065e522", + customer_name="vJsAnqjel2la3rWWdK2ybDtXJiikZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFj", + terminal_id="223980fa-6631-4b99-9e77-bb2ede1bbe8a", + description="njIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdH", + transaction_id="6780d9f1-0e5a-424c-926c-b000fdc9ab76", + bill_id="9be9b330-63b1-4186-bd77-b1475a6b1196", + is_modified=True, + start="2021-03-18T03:24:33.000000Z", + to="2023-07-03T15:13:06.000000Z", + next_page_cursor_id="816d68cf-889f-4a8c-95a7-fb98eccdf35f", + prev_page_cursor_id="cf7b458a-7025-486e-b26a-e5c9120336f3", + per_page=682 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_15(self): + response = client.send(pp.ListBillTransactions( + private_money_id="76791946-64f3-4157-87e2-b3ef44c464b7", + organization_code="e--7KIZ-5F4aBdti--U", + shop_id="641effa6-09b0-486b-b864-f9f8d48ffd20", + customer_id="1d181475-934b-479c-8509-d2404d9ba8e7", + customer_name="CFI0Qv1brn8ATMTNMMEyVApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9v", + terminal_id="3eaa7dcf-ffee-4e5e-b636-69b744678473", + description="poRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3X", + transaction_id="9f127cf3-48b6-44cb-bc80-e97c4ef1d016", + bill_id="72445462-76de-46cb-914f-14212875dcea", + is_modified=False, + start="2024-01-12T11:30:25.000000Z", + to="2021-07-22T03:51:53.000000Z", + next_page_cursor_id="d112db9e-484c-4013-b33f-a80bdf78c770", + prev_page_cursor_id="48a8f9bd-bb68-44f8-8e63-671f948026ca", + per_page=404 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_0(self): + response = client.send(pp.CreateTopupTransaction( + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_1(self): + response = client.send(pp.CreateTopupTransaction( + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087", + request_id="596f0432-5245-4b2c-947f-e01c5f707595" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_2(self): + response = client.send(pp.CreateTopupTransaction( + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087", + metadata="{\"key\":\"value\"}", + request_id="2eff3cf4-8bcd-4b65-ac33-329b88bf6270" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_3(self): + response = client.send(pp.CreateTopupTransaction( + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087", + description="BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc", + metadata="{\"key\":\"value\"}", + request_id="5c21d623-cd5c-4a5d-b262-e3052e84a4f4" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_4(self): + response = client.send(pp.CreateTopupTransaction( + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087", + point_expires_at="2023-03-27T19:42:52.000000Z", + description="I2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLvJd18F7msVClY", + metadata="{\"key\":\"value\"}", + request_id="2f31c991-bd49-455a-b611-2142d27c2471" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_5(self): + response = client.send(pp.CreateTopupTransaction( + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087", + point_amount=4788, + point_expires_at="2022-03-24T05:23:15.000000Z", + description="53pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa", + metadata="{\"key\":\"value\"}", + request_id="11f2f128-b0b7-44a5-b0a4-0b6fa268acb7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_6(self): + response = client.send(pp.CreateTopupTransaction( + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087", + money_amount=7312, + point_amount=9890, + point_expires_at="2023-07-16T09:17:48.000000Z", + description="FXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H", + metadata="{\"key\":\"value\"}", + request_id="93b3b834-b7bc-40c2-94b2-10c9433172e4" )) self.assertNotEqual(response.status_code, 400) def test_create_topup_transaction_7(self): response = client.send(pp.CreateTopupTransaction( - "4b9b2098-1ea7-4b7d-94b6-42385c3006aa", - "1fdefda8-8f90-479c-b3b5-04a02d3d9534", - "2b085fef-414f-404e-b30c-07caf16f239c", - bear_point_shop_id="6794b3c7-1610-4089-bb97-fd2d95aa8ed0", - money_amount=3473, - point_amount=5609, - point_expires_at="2021-11-27T08:22:55.000000+09:00", - description="lh4drGbWvDfmVaNvPs9iu3XzENeNNhWBPj9P6rAeXLgWVKiBaMXABCznkolZF0XVehDsumc383ILCYIvwae0oDTZVM9Vn0NHWZb8ZS9tjcczZ4Gwb0PhYqZgpZBJnGwbDDj", + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087", + bear_point_shop_id="8765ff4c-2a65-4805-83fb-a022773927ca", + money_amount=964, + point_amount=4564, + point_expires_at="2023-10-15T17:28:08.000000Z", + description="CEki4ZW2q7YUbIlt759X", metadata="{\"key\":\"value\"}", - request_id="457a8c16-41f4-473d-a56a-e67baa506a4f" + request_id="d0bfe218-608f-4aeb-90e4-96b0f5eab10d" )) self.assertNotEqual(response.status_code, 400) def test_create_topup_transaction_with_check_0(self): response = client.send(pp.CreateTopupTransactionWithCheck( - "5dd080a5-a514-4a1f-8868-40feb93b038a", - "91325879-5260-4a35-8ad4-2d848eace7c5" + "fc441050-d5e4-423d-ae39-63cc30b66b15", + "486bcb6d-fc87-4235-868d-75c6905ca2b7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_with_check_1(self): + response = client.send(pp.CreateTopupTransactionWithCheck( + "fc441050-d5e4-423d-ae39-63cc30b66b15", + "486bcb6d-fc87-4235-868d-75c6905ca2b7", + request_id="1f313dd8-be6d-4f70-af60-17222eb9b471" )) self.assertNotEqual(response.status_code, 400) def test_create_payment_transaction_0(self): response = client.send(pp.CreatePaymentTransaction( - "66b1b6e3-f490-444d-9c3c-7f52a4ee1dbc", - "4a6f0990-2205-4e7a-bfef-08f7dd62f10a", - "1070e59d-0123-45bf-a02e-32724a291586", - 9028 + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515", + 3817 )) self.assertNotEqual(response.status_code, 400) def test_create_payment_transaction_1(self): response = client.send(pp.CreatePaymentTransaction( - "66b1b6e3-f490-444d-9c3c-7f52a4ee1dbc", - "4a6f0990-2205-4e7a-bfef-08f7dd62f10a", - "1070e59d-0123-45bf-a02e-32724a291586", - 9028, - request_id="d490a262-3100-4d8b-b6c7-4c1cdbef2619" + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515", + 3817, + strategy="money-only" )) self.assertNotEqual(response.status_code, 400) def test_create_payment_transaction_2(self): response = client.send(pp.CreatePaymentTransaction( - "66b1b6e3-f490-444d-9c3c-7f52a4ee1dbc", - "4a6f0990-2205-4e7a-bfef-08f7dd62f10a", - "1070e59d-0123-45bf-a02e-32724a291586", - 9028, + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515", + 3817, + request_id="36984c08-b589-43fb-a762-30ba079825fc", + strategy="money-only" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_3(self): + response = client.send(pp.CreatePaymentTransaction( + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515", + 3817, products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="b06d8cdc-54b4-4bed-9248-b320dcf58d8a" + request_id="dbf85d4d-d2d1-42a1-8c04-b2d2350c462f", + strategy="money-only" )) self.assertNotEqual(response.status_code, 400) - def test_create_payment_transaction_3(self): + def test_create_payment_transaction_4(self): response = client.send(pp.CreatePaymentTransaction( - "66b1b6e3-f490-444d-9c3c-7f52a4ee1dbc", - "4a6f0990-2205-4e7a-bfef-08f7dd62f10a", - "1070e59d-0123-45bf-a02e-32724a291586", - 9028, + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515", + 3817, metadata="{\"key\":\"value\"}", products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="38ea6024-15d4-4d61-8a86-423af8ea204f" + request_id="b0a30039-1b43-4794-8b80-367c54347fa2", + strategy="point-preferred" )) self.assertNotEqual(response.status_code, 400) - def test_create_payment_transaction_4(self): + def test_create_payment_transaction_5(self): response = client.send(pp.CreatePaymentTransaction( - "66b1b6e3-f490-444d-9c3c-7f52a4ee1dbc", - "4a6f0990-2205-4e7a-bfef-08f7dd62f10a", - "1070e59d-0123-45bf-a02e-32724a291586", - 9028, - description="MMolvbDp36ZS9Ve1qo3bvmXucCaFZQN2ap2j3Mr8o8HkBWUUKfQKZC3BSMS3hsgpJcO", + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515", + 3817, + description="ltXlG6ahNcft22PrlsKWxGtQj4", metadata="{\"key\":\"value\"}", products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": False, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="9ac4e641-90e4-45b6-958c-8f6f147822fc" + request_id="765b9fd6-bb89-4323-add1-b88462cb39c1", + strategy="point-preferred" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_with_bill_0(self): + response = client.send(pp.CreatePaymentTransactionWithBill( + "043529dc-388b-4a13-ba46-180c03242c02", + "3683d8dc-7b0f-4d76-80d6-e2fdb9a3c188" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_with_bill_1(self): + response = client.send(pp.CreatePaymentTransactionWithBill( + "043529dc-388b-4a13-ba46-180c03242c02", + "3683d8dc-7b0f-4d76-80d6-e2fdb9a3c188", + strategy="money-only" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_with_bill_2(self): + response = client.send(pp.CreatePaymentTransactionWithBill( + "043529dc-388b-4a13-ba46-180c03242c02", + "3683d8dc-7b0f-4d76-80d6-e2fdb9a3c188", + request_id="385d5f7b-78a5-4f17-b452-475c5e0549b4", + strategy="money-only" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_with_bill_3(self): + response = client.send(pp.CreatePaymentTransactionWithBill( + "043529dc-388b-4a13-ba46-180c03242c02", + "3683d8dc-7b0f-4d76-80d6-e2fdb9a3c188", + metadata="{\"key\":\"value\"}", + request_id="855cd346-bddd-4472-9e1f-82a1a462f935", + strategy="money-only" )) self.assertNotEqual(response.status_code, 400) def test_create_cpm_transaction_0(self): response = client.send(pp.CreateCpmTransaction( - "cE4mBLmKXcPupi77r56oXC", - "69188c4e-2113-4363-8325-43334faeaae4", - 4786.0 + "n7ms3KrOq6LmEP7tafjyhK", + "2b2444bb-682f-4e16-a776-bd7719dd99e8", + 3071.0 )) self.assertNotEqual(response.status_code, 400) def test_create_cpm_transaction_1(self): response = client.send(pp.CreateCpmTransaction( - "cE4mBLmKXcPupi77r56oXC", - "69188c4e-2113-4363-8325-43334faeaae4", - 4786.0, - request_id="7e2d12c6-0dcb-477e-a5d4-fa5c2e1d0998" + "n7ms3KrOq6LmEP7tafjyhK", + "2b2444bb-682f-4e16-a776-bd7719dd99e8", + 3071.0, + strategy="money-only" )) self.assertNotEqual(response.status_code, 400) def test_create_cpm_transaction_2(self): response = client.send(pp.CreateCpmTransaction( - "cE4mBLmKXcPupi77r56oXC", - "69188c4e-2113-4363-8325-43334faeaae4", - 4786.0, + "n7ms3KrOq6LmEP7tafjyhK", + "2b2444bb-682f-4e16-a776-bd7719dd99e8", + 3071.0, + request_id="c1b41a3f-bd32-4632-b7e3-66a659db5d9d", + strategy="point-preferred" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_cpm_transaction_3(self): + response = client.send(pp.CreateCpmTransaction( + "n7ms3KrOq6LmEP7tafjyhK", + "2b2444bb-682f-4e16-a776-bd7719dd99e8", + 3071.0, products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="808d1e8e-3cc7-48b7-b0ca-c83dbd739c4d" + request_id="9b23ceca-8fcd-4223-b5d1-bc313900377b", + strategy="point-preferred" )) self.assertNotEqual(response.status_code, 400) - def test_create_cpm_transaction_3(self): + def test_create_cpm_transaction_4(self): response = client.send(pp.CreateCpmTransaction( - "cE4mBLmKXcPupi77r56oXC", - "69188c4e-2113-4363-8325-43334faeaae4", - 4786.0, + "n7ms3KrOq6LmEP7tafjyhK", + "2b2444bb-682f-4e16-a776-bd7719dd99e8", + 3071.0, metadata="{\"key\":\"value\"}", products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", + "other":"{}"}], + request_id="17be4bb8-c809-453d-a92e-7d0d45ffa480", + strategy="point-preferred" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_cpm_transaction_5(self): + response = client.send(pp.CreateCpmTransaction( + "n7ms3KrOq6LmEP7tafjyhK", + "2b2444bb-682f-4e16-a776-bd7719dd99e8", + 3071.0, + description="oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySC", + metadata="{\"key\":\"value\"}", + products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, - "other":"{}"}], - request_id="ba2c2be2-340e-4b01-921c-5988aceb9053" - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_cpm_transaction_4(self): - response = client.send(pp.CreateCpmTransaction( - "cE4mBLmKXcPupi77r56oXC", - "69188c4e-2113-4363-8325-43334faeaae4", - 4786.0, - description="mw5RMuvJN6cdbvg50QHlnDydRn68KboUvDsNqKoorksWBQ398rR59EiVvlwAljCUfIeXX8HLaAA7O7c9AzboPOcXU3N4H4mDJ", - metadata="{\"key\":\"value\"}", - products=[{"jan_code":"abc", + "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="353709dd-b35b-4569-8024-fa4bb00b0e71" + request_id="90bca786-33d0-4dbd-8b95-5f2ab54ccb8e", + strategy="point-preferred" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_transaction_with_cashtray_0(self): + response = client.send(pp.CreateTransactionWithCashtray( + "b31e24ee-bae3-4d1c-8527-1b90f844dd57", + "284f4ed9-5ebb-4281-839d-39e539d857e2" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_transaction_with_cashtray_1(self): + response = client.send(pp.CreateTransactionWithCashtray( + "b31e24ee-bae3-4d1c-8527-1b90f844dd57", + "284f4ed9-5ebb-4281-839d-39e539d857e2", + request_id="e5388685-8af4-4034-92d5-e70497d41247" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_transaction_with_cashtray_2(self): + response = client.send(pp.CreateTransactionWithCashtray( + "b31e24ee-bae3-4d1c-8527-1b90f844dd57", + "284f4ed9-5ebb-4281-839d-39e539d857e2", + strategy="point-preferred", + request_id="ff3134f1-4d2c-4a5c-be7d-b354cd737611" )) self.assertNotEqual(response.status_code, 400) def test_create_transfer_transaction_0(self): response = client.send(pp.CreateTransferTransaction( - "579126f3-0f29-45ad-a048-4009f35287c2", - "2e2195b9-fa97-433b-9ad0-1dad04e0857d", - "55aab81a-51ca-4470-acf1-631f9bf8851e", - 6914.0 + "bbfc300f-29b3-4f1e-bf77-dce3208c609a", + "e50c0c75-8de3-4c65-bd79-2a9c0afcb153", + "61d47201-1943-4e29-a2de-f32920af4061", + 9250.0 )) self.assertNotEqual(response.status_code, 400) def test_create_transfer_transaction_1(self): response = client.send(pp.CreateTransferTransaction( - "579126f3-0f29-45ad-a048-4009f35287c2", - "2e2195b9-fa97-433b-9ad0-1dad04e0857d", - "55aab81a-51ca-4470-acf1-631f9bf8851e", - 6914.0, - request_id="aa555288-f7fb-4168-9a4d-d822fea51059" + "bbfc300f-29b3-4f1e-bf77-dce3208c609a", + "e50c0c75-8de3-4c65-bd79-2a9c0afcb153", + "61d47201-1943-4e29-a2de-f32920af4061", + 9250.0, + request_id="3372b4e2-3678-43f2-9a67-43d460afc00f" )) self.assertNotEqual(response.status_code, 400) def test_create_transfer_transaction_2(self): response = client.send(pp.CreateTransferTransaction( - "579126f3-0f29-45ad-a048-4009f35287c2", - "2e2195b9-fa97-433b-9ad0-1dad04e0857d", - "55aab81a-51ca-4470-acf1-631f9bf8851e", - 6914.0, - description="aIB", - request_id="3f25a9e3-aa88-4e5d-916a-8b8e11624fb7" + "bbfc300f-29b3-4f1e-bf77-dce3208c609a", + "e50c0c75-8de3-4c65-bd79-2a9c0afcb153", + "61d47201-1943-4e29-a2de-f32920af4061", + 9250.0, + description="XSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz0", + request_id="e3ebd02f-f595-401f-ba91-98f18f6188ae" )) self.assertNotEqual(response.status_code, 400) def test_create_transfer_transaction_3(self): response = client.send(pp.CreateTransferTransaction( - "579126f3-0f29-45ad-a048-4009f35287c2", - "2e2195b9-fa97-433b-9ad0-1dad04e0857d", - "55aab81a-51ca-4470-acf1-631f9bf8851e", - 6914.0, + "bbfc300f-29b3-4f1e-bf77-dce3208c609a", + "e50c0c75-8de3-4c65-bd79-2a9c0afcb153", + "61d47201-1943-4e29-a2de-f32920af4061", + 9250.0, metadata="{\"key\":\"value\"}", - description="9HnlNHLuA0aOdVgj6K1GxL1yIWWOf6rndacFLJTT1b61igwFwXc9Xw81AcLgJ7HUPLZ2JY3PzdziozZN0eUlnWAmEdaqY8pJTyG58WWoVkTIofZ63ZHIa2ZaoOg0V0uaqelttkE7ehROL4XrOdkUWUyHCGGZhBjhjuTKoJ3qmoFsOI4faRjWQ8", - request_id="064416e7-5085-495b-930e-ee4ba9e6144f" + description="HqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq", + request_id="009743b5-a7fd-4c30-a691-3510e5264873" )) self.assertNotEqual(response.status_code, 400) def test_create_exchange_transaction_0(self): response = client.send(pp.CreateExchangeTransaction( - "ae6b2c00-a58b-451e-80e8-efcbe62ff98b", - "c70c7399-c50f-451f-b9a5-76980bff8402", - "cb5df075-f585-4254-b41d-83a1ad0abf60", - 6825.0 + "e9fcbc73-446a-442a-af11-9d4e718f4bbb", + "15a97a25-9d24-41a0-88c2-02c1d478943f", + "60892a12-6cd5-426e-bd81-17b036c0862e", + 2674 )) self.assertNotEqual(response.status_code, 400) def test_create_exchange_transaction_1(self): response = client.send(pp.CreateExchangeTransaction( - "ae6b2c00-a58b-451e-80e8-efcbe62ff98b", - "c70c7399-c50f-451f-b9a5-76980bff8402", - "cb5df075-f585-4254-b41d-83a1ad0abf60", - 6825.0, - request_id="837cbbb5-b318-4585-8112-2a26c7e8fe9f" + "e9fcbc73-446a-442a-af11-9d4e718f4bbb", + "15a97a25-9d24-41a0-88c2-02c1d478943f", + "60892a12-6cd5-426e-bd81-17b036c0862e", + 2674, + request_id="7f6f567b-cb7f-4e5a-ba43-92d571cd0a9e" )) self.assertNotEqual(response.status_code, 400) def test_create_exchange_transaction_2(self): response = client.send(pp.CreateExchangeTransaction( - "ae6b2c00-a58b-451e-80e8-efcbe62ff98b", - "c70c7399-c50f-451f-b9a5-76980bff8402", - "cb5df075-f585-4254-b41d-83a1ad0abf60", - 6825.0, - description="9dHqyzQZgDiWvj8etzcFhDXwcbaPJFYUtWSDUUOzA6JdRqRnPGGmxcvLiruhnUYA2evPNgfEtt9VoXY8Zbi4bO3aVrBDzVdWXtFy5mPY7A1qrS8dHstlQrZdGZnteTqjTP7dz4MDySQpvknUff9KCWQ", - request_id="e5b8a8e3-6709-4859-bfbc-c71a274d5f4a" + "e9fcbc73-446a-442a-af11-9d4e718f4bbb", + "15a97a25-9d24-41a0-88c2-02c1d478943f", + "60892a12-6cd5-426e-bd81-17b036c0862e", + 2674, + description="WIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4Jw", + request_id="b02ab713-2319-4e11-9f07-3f4b303addf6" )) self.assertNotEqual(response.status_code, 400) def test_bulk_create_transaction_0(self): response = client.send(pp.BulkCreateTransaction( - "FvGq64q", - "mrZJcpF", - "iWZHeIfQdHdvs4v2aUitPGe5J3m0ryc2OEvF" + "fQBXbwG5FfObbKUS2w", + "JUS6TcMNw", + "fudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f5" )) self.assertNotEqual(response.status_code, 400) def test_bulk_create_transaction_1(self): response = client.send(pp.BulkCreateTransaction( - "FvGq64q", - "mrZJcpF", - "iWZHeIfQdHdvs4v2aUitPGe5J3m0ryc2OEvF", - private_money_id="542b6c58-1d38-459d-97fa-fe107125e67a" + "fQBXbwG5FfObbKUS2w", + "JUS6TcMNw", + "fudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f5", + private_money_id="63a8a7b4-39bb-4259-89b1-e2ab2db53250" )) self.assertNotEqual(response.status_code, 400) def test_bulk_create_transaction_2(self): response = client.send(pp.BulkCreateTransaction( - "FvGq64q", - "mrZJcpF", - "iWZHeIfQdHdvs4v2aUitPGe5J3m0ryc2OEvF", - description="H3wIxddmLq7zZNIbWwSHwKCgXCSNnukUNKPot1qoYiOk2cFGGn09uTba138P32btAcZSker4bwN5IYLm99wEVRQ8sJxsInHOegu4ueAVfQ8nRhLcha2zRRyQ", - private_money_id="4c1250ec-21ea-46b7-b31f-70fea16b41aa" + "fQBXbwG5FfObbKUS2w", + "JUS6TcMNw", + "fudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f5", + description="h3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu", + private_money_id="74593e12-ee02-4102-b252-fbbc1377d4e1" )) self.assertNotEqual(response.status_code, 400) def test_get_transaction_0(self): response = client.send(pp.GetTransaction( - "da124937-e649-4c71-982a-a6e301d6ef86" + "f3d53414-b9b1-4642-8d45-e672258d5f36" )) self.assertNotEqual(response.status_code, 400) def test_refund_transaction_0(self): response = client.send(pp.RefundTransaction( - "62bfd79c-c5c6-48bb-be08-8badf5722a1e" + "89cf97a2-7ee0-47a6-bdb2-5ba0b7f396e7" )) self.assertNotEqual(response.status_code, 400) def test_refund_transaction_1(self): response = client.send(pp.RefundTransaction( - "62bfd79c-c5c6-48bb-be08-8badf5722a1e", - returning_point_expires_at="2023-02-22T09:28:07.000000+09:00" + "89cf97a2-7ee0-47a6-bdb2-5ba0b7f396e7", + returning_point_expires_at="2021-06-16T06:07:31.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_refund_transaction_2(self): response = client.send(pp.RefundTransaction( - "62bfd79c-c5c6-48bb-be08-8badf5722a1e", - description="0ufgYUkqe3kskveA2n2lBOE9H5VVR8QU7QjrIemlNkbreYYQh0DpuFWTXBEy8Kcs0g4R", - returning_point_expires_at="2022-07-14T07:05:27.000000+09:00" + "89cf97a2-7ee0-47a6-bdb2-5ba0b7f396e7", + description="vnEoyfpAANnkoel9aDgdNSfmE5De5bTvM", + returning_point_expires_at="2022-08-29T20:00:57.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_get_transaction_by_request_id_0(self): response = client.send(pp.GetTransactionByRequestId( - "07696302-af43-4e8a-9aca-20634c6a4d1d" + "8883efc8-e51b-4398-b0e4-a7128b8d91b2" )) self.assertNotEqual(response.status_code, 400) def test_create_external_transaction_0(self): response = client.send(pp.CreateExternalTransaction( - "6699706b-410e-43ca-a36e-330eccec726b", - "262b2a8f-f5fb-4076-8097-38383791f262", - "92b16c33-0b6c-43e0-9bfe-faa6606c8e84", - 2437 + "b9ccc053-f9a5-4330-9fd7-c18aa34315c4", + "82a6ad3b-5f9e-4625-92b3-3d4657514661", + "743fadf1-d302-4a5c-a88e-d78abd76b9d2", + 9419 )) self.assertNotEqual(response.status_code, 400) def test_create_external_transaction_1(self): response = client.send(pp.CreateExternalTransaction( - "6699706b-410e-43ca-a36e-330eccec726b", - "262b2a8f-f5fb-4076-8097-38383791f262", - "92b16c33-0b6c-43e0-9bfe-faa6606c8e84", - 2437, - request_id="65e2794f-510c-497b-a41b-1fbde5317529" + "b9ccc053-f9a5-4330-9fd7-c18aa34315c4", + "82a6ad3b-5f9e-4625-92b3-3d4657514661", + "743fadf1-d302-4a5c-a88e-d78abd76b9d2", + 9419, + done_at="2021-01-20T14:26:10.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_create_external_transaction_2(self): response = client.send(pp.CreateExternalTransaction( - "6699706b-410e-43ca-a36e-330eccec726b", - "262b2a8f-f5fb-4076-8097-38383791f262", - "92b16c33-0b6c-43e0-9bfe-faa6606c8e84", - 2437, - products=[], - request_id="80129708-8e2d-48ea-9ddb-957e3e63c5a5" + "b9ccc053-f9a5-4330-9fd7-c18aa34315c4", + "82a6ad3b-5f9e-4625-92b3-3d4657514661", + "743fadf1-d302-4a5c-a88e-d78abd76b9d2", + 9419, + request_id="0d295f0a-5718-4ec1-bba1-bd1bd3e0dde7", + done_at="2021-07-07T14:28:23.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_create_external_transaction_3(self): response = client.send(pp.CreateExternalTransaction( - "6699706b-410e-43ca-a36e-330eccec726b", - "262b2a8f-f5fb-4076-8097-38383791f262", - "92b16c33-0b6c-43e0-9bfe-faa6606c8e84", - 2437, - metadata="{\"key\":\"value\"}", + "b9ccc053-f9a5-4330-9fd7-c18aa34315c4", + "82a6ad3b-5f9e-4625-92b3-3d4657514661", + "743fadf1-d302-4a5c-a88e-d78abd76b9d2", + 9419, products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": False, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, + "is_discounted": False, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="690fa3ad-e25a-4b53-9a69-767351df754b" + request_id="9cd6ac45-48e0-428c-8770-8c4eb14fca4f", + done_at="2021-11-03T05:27:35.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_create_external_transaction_4(self): response = client.send(pp.CreateExternalTransaction( - "6699706b-410e-43ca-a36e-330eccec726b", - "262b2a8f-f5fb-4076-8097-38383791f262", - "92b16c33-0b6c-43e0-9bfe-faa6606c8e84", - 2437, - description="JGtLxfbPFfaIRWKNMj5dtiKnG8zX8tvWqvm0QmTuUJdqTxvEdTrlIkQGkGEpBmPu4", + "b9ccc053-f9a5-4330-9fd7-c18aa34315c4", + "82a6ad3b-5f9e-4625-92b3-3d4657514661", + "743fadf1-d302-4a5c-a88e-d78abd76b9d2", + 9419, metadata="{\"key\":\"value\"}", products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", + "other":"{}"}], + request_id="5cc6b28d-851d-4a2f-870c-9514a26762fa", + done_at="2023-02-04T17:31:35.000000Z" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_external_transaction_5(self): + response = client.send(pp.CreateExternalTransaction( + "b9ccc053-f9a5-4330-9fd7-c18aa34315c4", + "82a6ad3b-5f9e-4625-92b3-3d4657514661", + "743fadf1-d302-4a5c-a88e-d78abd76b9d2", + 9419, + description="WmNqL0QHxylFWlu94S8FVSDMY", + metadata="{\"key\":\"value\"}", + products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="30d75c89-25bb-4deb-a7f1-509062af654f" + request_id="f87a8a35-9a42-4bd5-b75a-0918a11c1558", + done_at="2024-04-03T12:38:42.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_refund_external_transaction_0(self): response = client.send(pp.RefundExternalTransaction( - "84cf16a2-3d66-4e04-9885-aa03d2c00a45" + "f8f0c0a8-7ad4-4de6-ae18-b7ce2227fedc" )) self.assertNotEqual(response.status_code, 400) def test_refund_external_transaction_1(self): response = client.send(pp.RefundExternalTransaction( - "84cf16a2-3d66-4e04-9885-aa03d2c00a45", - description="l5C8v6PzPZ7WYdNdFH0K2AD1TKPyYWlsuXOaI" + "f8f0c0a8-7ad4-4de6-ae18-b7ce2227fedc", + description="oNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_external_transaction_by_request_id_0(self): + response = client.send(pp.GetExternalTransactionByRequestId( + "6ab4e738-e328-45ce-8f6f-b15220719c65" )) self.assertNotEqual(response.status_code, 400) @@ -2133,176 +2732,176 @@ def test_list_transfers_0(self): def test_list_transfers_1(self): response = client.send(pp.ListTransfers( - description="vkZ0hBxHL8DiEhh2VnZoTnDJVFMsrvforwTxS8CU7xfi8Z8k0xTZqtjlnCMFHx8TKGI2xE1Bu" + description="5rX0rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUv" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_2(self): response = client.send(pp.ListTransfers( - transfer_types=["transfer", "coupon", "topup", "cashback", "campaign", "payment"], - description="Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9tiLg6fzyprLRU7zHjv8AVBjeNyLKs5OWxHdcCIY8xfr6" + transfer_types=["expire", "payment", "exchange", "cashback", "campaign", "transfer", "topup", "coupon"], + description="6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_3(self): response = client.send(pp.ListTransfers( - transaction_types=["exchange"], - transfer_types=["payment", "exchange", "cashback", "transfer", "campaign", "coupon"], - description="JsJ" + transaction_types=["exchange", "payment", "topup"], + transfer_types=["topup"], + description="iHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLiOm0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQ" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_4(self): response = client.send(pp.ListTransfers( is_modified=True, - transaction_types=["expire", "transfer", "exchange", "topup"], - transfer_types=["cashback", "exchange"], - description="Zx4bL3mKFhR8vX2cSSl7ObxLVY39aP4hWiGuhuMVGxVPfacjrslMZj02ZSv" + transaction_types=["transfer", "expire", "exchange"], + transfer_types=["topup"], + description="OOqdFvcvTYHWhMSc2JtDSCuxp" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_5(self): response = client.send(pp.ListTransfers( - private_money_id="7068670b-8849-46a0-9328-db3ec33dbddf", - is_modified=True, - transaction_types=[], - transfer_types=["payment", "expire", "campaign", "cashback", "transfer", "coupon", "exchange"], - description="pu0MDWpiDvc0yH6ElFsXXAu1ggrDUCau2gnuJ4JjDHOBMd26S3mihK7Gc9ouBdfj9baUMO0QAZUEFS2BtlR4VIQVU2y1HqZTEweuiw2lLR54hFsTWRshdiadwR5IXzLVIyr3tVtLqZwSGR9" + private_money_id="f0a0b8d8-0281-41be-8900-6bfd43bb1342", + is_modified=False, + transaction_types=["exchange"], + transfer_types=["exchange", "cashback", "transfer", "expire", "campaign", "coupon", "payment"], + description="WyJmxhctiEpL1KlL20SY28CEIpXv" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_6(self): response = client.send(pp.ListTransfers( - transaction_id="d9dea1c1-4088-4174-9f53-a284a51dff44", - private_money_id="77e561b9-24e3-4392-8f5f-9996faf7d62b", - is_modified=False, - transaction_types=["exchange", "payment", "expire"], - transfer_types=["exchange", "topup"], - description="VkjkAmAursWmY8lUcPFFH8OBO0gTOPvALkgMJawdwCaYZ0f5A4WuoS1IAZgM9FDFzPlCr68wDPzP1uu5pUlr0e255o067YSY4rtLpQIhTsQtfNlHNUlxPCHvPHeZ4gCJRD87F5OLspmSpFUbvNXpSViDBWfAPmGs" + transaction_id="a932fdfb-c0c3-40fa-b292-31ecce8d1b58", + private_money_id="76e76eb0-23a7-40fd-97ac-fffd6363aec6", + is_modified=True, + transaction_types=["transfer", "cashback", "expire"], + transfer_types=["payment", "coupon", "transfer", "exchange", "topup"], + description="HOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_7(self): response = client.send(pp.ListTransfers( - customer_name="08EBxCdTJypI42Inu56VLkNyEIUSlWSa6lZGo7PhTYTGs3X1TO4wzYkyXyy6lwP0N21ySbpke", - transaction_id="60074f6d-1b1f-4444-a504-27aa2e7e66cd", - private_money_id="24efa45b-7e07-4a9f-aedb-9b1d7d493633", + customer_name="Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSV", + transaction_id="1dd7f004-8e48-44a5-bf52-cbd9617e87b4", + private_money_id="921a08d9-c01a-435a-a290-a80faec05664", is_modified=False, - transaction_types=[], - transfer_types=["payment", "cashback", "transfer"], - description="zT4JKnzi5L8cpHHMwXcAIRcjNLk0uNWeNHUqo3XUcSS2VsZS4Lj4GkDI0oXRDtBJxvb11fmeXANYMff4lfRrFSD2GU0U0YSAX1Q89ssC5bpXwoj13v0TL4xfkZtGKmcVmh1Ev4M51rbMFUU1jVlGa8RcO6wCBU9Eja3cVhwcSD6iDQwph5T" + transaction_types=["topup", "expire", "transfer", "cashback", "payment", "exchange"], + transfer_types=["cashback", "expire", "campaign", "coupon"], + description="lf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3Lnpb" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_8(self): response = client.send(pp.ListTransfers( - customer_id="91296555-1f19-4e1d-942d-facd4e64e6aa", - customer_name="16YqrHAO8roW5GeUYrGDCf0i4xR1YeuarVLqKYaajZ", - transaction_id="fd1f4784-b934-4335-8b6c-bbcd9822fbe2", - private_money_id="60a989b2-ba45-4de4-aaf0-3af8f00db7dd", - is_modified=False, - transaction_types=["payment", "transfer"], - transfer_types=["expire", "transfer", "campaign"], - description="SC89X69cCxk1lmjrE2LQn8WVW3m44epc5OJWLmTr626o4XX2rICXAhNDPHxc5nbxE6dOS7QbkrsxeFRrdV1gQxduyB3Z9uLKn8CBvuRo159rPRsnfNPsYuS9nBNol3v7" + customer_id="eb02d47b-18a1-4872-9029-7cbc2c503613", + customer_name="kZnNjPWO55U7DSfY3L", + transaction_id="204f8012-d1e7-4a3f-bed7-59b58514e04d", + private_money_id="1baab15e-26a6-4bb2-8920-4040dcdf26f6", + is_modified=True, + transaction_types=["transfer", "exchange", "cashback", "topup"], + transfer_types=["transfer", "exchange", "campaign", "payment", "expire", "topup"], + description="eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_9(self): response = client.send(pp.ListTransfers( - shop_name="lVyt80jIUhEuqcVn523Q4baN0pPcQtGvFKDcSo8tIJSa9PEebkW1DkF2wmIfJ50Imwzo4spi93QyENqmwOx8YnV9T8kaR9yxV", - customer_id="6cd1cfeb-e294-4b69-929a-62303eb65459", - customer_name="h350uvTmXJ3taiP6zrMBCvrTp2KPzJXVVtSjH7KpG4W7WMlwVoyitMfaSwwyI0wlFPTcSqX1OcJJCpH4abwAvDfIYbVEzwXEzeX", - transaction_id="7d14df37-d484-4d83-8036-a0c3f19900f5", - private_money_id="2a68520d-1062-47dc-be42-d1ac557b2699", - is_modified=False, - transaction_types=["transfer", "payment", "expire", "cashback"], - transfer_types=[], - description="vZavHGIwQGFD3y3WQcOQ77GqTbykQNeXwfkirPrCHC6oGX762VWlOvBKRDnWwJ1RB1Xf0sJSNdUIy9UNPxEn8d7PVOwf2KxYZgpwkatfDXh6wjcpgPghclYC1sotThNzacMPGRW9XLUFYLKH2dLAXy2plAkroUr6KjPvdUwWdZh0L8" + shop_name="dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3u", + customer_id="5506f5f6-c3e1-48cc-9d04-d295aacc726e", + customer_name="bw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZn", + transaction_id="3d8c808a-7d66-49c7-8dd1-ec618f5433f3", + private_money_id="89ef5ec3-6731-44ff-b99e-d0815a058620", + is_modified=True, + transaction_types=["payment", "expire", "topup", "cashback", "exchange", "transfer"], + transfer_types=["payment", "campaign", "coupon"], + description="L9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_10(self): response = client.send(pp.ListTransfers( - shop_id="7eb0aff1-f14e-452e-8b7d-61adb380f83c", - shop_name="4Tq0PqVhzCkKROCStDoZvAY3OKa5oCE4xLFobA9UOrBeN520IjUnvAonmJrl0Qqm11RMoDMOSwDGwLJ7XtGOGgKQwzAg5", - customer_id="ecc88e49-3c14-489b-abee-d4fd8daef6c4", - customer_name="gdQyyCPmcszk1DSduCpdgUz5UizzupfDUVzOTa3MaAaf4kTfREjRbk7TIk1gephK43IsijpvrzedeO1cdtY9cqUS5AzQzHdKGL1guEaRrfiOPX45f7SdsQcMHW7he8Z1qLepuyyE02MG8yUNtUKfprHpGaVcCOEeWb7TQI3q8qslujxF3n4fR7Vfp3vRJLnSgiLPjnc4kQ0HdyTor536XOfVM3XXOQ3tGi0CJH7VMgkZVkFMaOxCQ0Il", - transaction_id="9733a614-fab4-4fcc-a0d3-5b31c67962c8", - private_money_id="cbeb5039-2bd2-428b-ad68-6fb1d8d8bdfe", + shop_id="8e0938b2-bc37-4478-8c82-9432cd7aaf5a", + shop_name="ZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N", + customer_id="c5f78605-e322-47b0-8074-d300540724a1", + customer_name="nRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6Ams", + transaction_id="5e82685d-0877-4f1a-a4c0-2b41ec200ecd", + private_money_id="0157d928-e41c-411f-b3c9-134a5c5372f2", is_modified=False, - transaction_types=[], - transfer_types=["payment", "cashback", "expire", "transfer"], - description="FmlvrlMvNLwEsnbNKTS2h75GF8UpjoAlQvJzCU8IgWIQfnPgb4T4DEkgPLD0xZMd5yjnHtiPzKYB9uBkIh8qvqswUq9MIMd1v50tEiK5VU8URPZftDXY7iH91521L9iCZDgOHv8ccbKA9zaXWI" + transaction_types=["transfer"], + transfer_types=["cashback", "exchange"], + description="1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmm" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_11(self): response = client.send(pp.ListTransfers( - per_page=6639, - shop_id="445462f2-5650-4a1d-ade7-3618880ba8bf", - shop_name="iqGxhGUs6ZnMyMQoClDSK7KRPQ6M6EMYtB6Ep2GnDZJdtjBh5VRBTfV5MJhYQTBRBM7G8j00YInJitv9WP6kwxoiXMMFgIG6MJKNbnVLomjuJJQI4ykecPid861BWO2utY6ykCTVCcIXTPlbcMZgCJ9BjKA9LvljTLcW71b8cClVacDr5l3x4FVfYiLUL8Bb8dzaB45kELqQHfqMF0cAfS47CSQOovJ8c1i3", - customer_id="2bbf4666-5b65-4dce-8fb1-9f716b286690", - customer_name="Bnpp3tyKjZPjTs65qzNTqIMvOUP7lDJ32SCMXHu4UsQsifzmvmEGKnmcQWOqm2bxZSUNMN2LXvZ3UB0bY6L3973iqLKkGFIZmfuXhD9mm06njf2aXb7PnD9gNpMDYfCPceKjPow2YL1adnoZFEUP94ii4uT2NJ6DSRSGMdhjjWzKEnHt1GlWmv2y5j3kpGt0e4jNi92dahl", - transaction_id="bda42c6e-18a8-42ee-99eb-0eff2ebfea08", - private_money_id="851c313a-c888-43a1-99e0-0d4bb926a292", - is_modified=True, - transaction_types=[], - transfer_types=["transfer", "topup", "expire", "cashback", "coupon"], - description="PkZF0J60lUnUwRinT2la9EMVbGBQcWz4E8fUZnWcjAk0kMso3CQzadAG14rJr7OIiIwKYtNBz" + per_page=488, + shop_id="df54a0dd-6886-48e3-9eb1-744bcbbc5799", + shop_name="he3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNa", + customer_id="c33eb352-e716-48c4-8889-1b33cd354978", + customer_name="5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdV", + transaction_id="9709a64d-3dda-40c0-8123-e93e26b352bb", + private_money_id="d3df41b3-d246-4c73-a7a1-1d42a25c5d17", + is_modified=False, + transaction_types=["expire", "cashback", "transfer"], + transfer_types=["transfer", "cashback", "exchange", "coupon", "payment"], + description="iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4j" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_12(self): response = client.send(pp.ListTransfers( - page=4465, - per_page=529, - shop_id="559ce0b8-c26e-4c01-bb5c-be21df42192a", - shop_name="ODkJL8EIU81Vy5zPsQOGlQlr06Jl9JLWCZ8neyUVmWBR3xve7r3YSLXQYTyvYaaI2qvRlrSNIrRDPa1eyCiQOxDTwWc9gws9XAUrux74v2ITxjA0PgzICgqeJVlSY26G92wNF5y9aZcAMQT3BxPWw78yOKfPR1NUJQvD2rVGC8", - customer_id="833e6222-c1b4-4612-8aae-1dca405fd4cb", - customer_name="YYu6jp9XJncsuSh46krybNv1zjGCQgXpBAn6vYjVqpA4IONiLV0kr6A1DgXWodpkxho8rBfuxAgk4G7K3EbPTtYbjyxowsbeNA1qdSnOGMCPl7IMBQKQv86A0JZpBpvSAXbobD9Ki30vC5rrnazdVnK3PrJ5SiaT9q7d0MByh1j24T8jie07UHeDFjaRvAps3KfAZfCcJF6TIE", - transaction_id="2798cae5-6e85-4152-bc82-eae3b243e7f2", - private_money_id="a7391768-dba7-4f69-a04d-c4dee6af5f19", + page=7961, + per_page=9212, + shop_id="34944b80-f7a0-4a8f-a0bf-35b098a0d72f", + shop_name="iR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8B", + customer_id="dfa2470b-cd49-4470-b657-baa483a5c6d7", + customer_name="FtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hA", + transaction_id="c05feb53-cc41-43c0-a384-6145e006ed69", + private_money_id="e0ce749e-709d-4c62-947d-3dad3ecc919d", is_modified=True, - transaction_types=["expire"], - transfer_types=["expire", "coupon", "campaign"], - description="qC0B7Kcw0qagkhJ7wfZWTULKa8VECsBZr3IToxXjdyKGc7ZzHUV5fOm8mtNakhvcdUzoLcA59nUhEAXqtCyQcPmsvpgfmd8PIAhkngoJScrC1WRA" + transaction_types=["transfer", "expire", "payment", "cashback"], + transfer_types=["payment", "topup", "cashback"], + description="gL0O7DlAFrkX" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_13(self): response = client.send(pp.ListTransfers( - to="2021-02-14T04:41:34.000000+09:00", - page=5519, - per_page=8002, - shop_id="5cb8e7a4-db54-4107-a2bd-70923811a5d3", - shop_name="rzSbRU1v2KZFFhdMjCCzsHpBmrvRb2UjrXmXby0g0KQCQJco6Fst7K2jJcCqUZTewzuJ3F92QKd3C9M0vBcKWIUBdcBNwq9T0OG7VRzcPfWGO1YJqrl83WexbWjPBIcMUJ3obVqULs7P", - customer_id="3932f409-f473-4812-b809-d0c77e8b8d7b", - customer_name="UAdxQTQ69L5ufP3C8GoKbqWo6okozRxG7O1lnWZInpqxewkSnO8G8BVdp2SnU56fm1", - transaction_id="f3c38910-0015-42a0-9f66-aa74aa523a9c", - private_money_id="5d7977f5-2fb8-4652-aef3-12e461c631e5", + to="2024-11-30T17:07:34.000000Z", + page=3103, + per_page=1438, + shop_id="e27ea5e9-349d-4aac-a8c9-a7646b634b51", + shop_name="Wu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQ", + customer_id="e6508477-0542-4109-b4b5-5695db668cbe", + customer_name="3YpOK96EoFGxVJNTeRlFM4Xw2Y", + transaction_id="90c5c66e-f109-4465-86a8-f9db6ff9187c", + private_money_id="d51c22d2-d2f4-4912-a160-24be0f60e318", is_modified=True, - transaction_types=["payment", "exchange", "expire", "transfer", "topup"], - transfer_types=["transfer", "exchange", "campaign", "cashback"], - description="gBjKxJ1kVUP7sJk9W7sPqDCWwYS94nlMA9QMeCafNqHwyMdjdwcWi3JTYLChkb6TlitzWaW4uPhPny3cB55XyFtx17QBRLdwgp38D246YReej2SSevahES9poV0ViKFLpI4REDYg" + transaction_types=["expire"], + transfer_types=["expire", "exchange", "cashback", "payment"], + description="c1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_14(self): response = client.send(pp.ListTransfers( - start="2024-07-10T08:49:16.000000+09:00", - to="2017-07-26T19:47:22.000000+09:00", - page=9304, - per_page=8816, - shop_id="2005b332-9651-40b8-a30a-48ffd1dc538a", - shop_name="wkpiTfx0K3NI9FJ11nkGfRQlGszH71XXMwwageqdiCUtiam5OCYCyW06FKS14FS73", - customer_id="6ff8661e-d9dc-4447-890a-261812bffa9d", - customer_name="a3ijeaDjTIJss0bIT0ZqOXGSTVH9BRjr8phyPclxsBq9XBmkTSfhHrb5sDnsI3ZWUf9QMTgobmXveIIZc15XikWWDvoW8CZvliqF7CSsjWcuOJS4Ehtu4LwcLHvZh25xxfXebiI3VayaI3kTnTLIkpOXuMZobSfeWKzoEFQ5pyI5j9pCzj3hQwJJC", - transaction_id="eb17985d-2eea-458d-ba95-fa47894a5d5b", - private_money_id="ccebaccb-e5f8-4839-8a81-79e1339c2b8f", + start="2023-01-31T19:53:42.000000Z", + to="2020-11-25T00:01:59.000000Z", + page=371, + per_page=9610, + shop_id="0daa6241-eb64-468f-8b22-e90fccf6a8e3", + shop_name="z57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcm", + customer_id="c03f08d6-f73c-4310-998e-e8cfb6f09483", + customer_name="ZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgq", + transaction_id="7767d664-c52b-4dc0-828f-137bf67aa788", + private_money_id="6482c05c-77f1-4fab-866c-985dd4d2e565", is_modified=True, - transaction_types=["cashback", "payment", "topup", "exchange"], - transfer_types=["expire", "campaign", "cashback", "exchange", "payment"], - description="RysjIT" + transaction_types=["topup", "payment", "transfer"], + transfer_types=["coupon", "campaign", "expire", "transfer"], + description="jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjU" )) self.assertNotEqual(response.status_code, 400) @@ -2313,322 +2912,362 @@ def test_list_transfers_v2_0(self): def test_list_transfers_v2_1(self): response = client.send(pp.ListTransfersV2( - to="2016-05-19T03:51:03.000000+09:00" + to="2020-01-08T17:12:41.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_2(self): response = client.send(pp.ListTransfersV2( - start="2018-06-28T12:53:42.000000+09:00", - to="2025-08-05T21:35:39.000000+09:00" + start="2021-12-16T08:04:11.000000Z", + to="2020-04-29T19:21:39.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_3(self): response = client.send(pp.ListTransfersV2( - description="1O8xVGeOGcFlOxiVnFhvQYgTq0yLoByCmHUuVyH3cfcF8Pf92JXudRmeZmjiokTl117bHBnYglbQt4QBFDEJKi3AHyd9yQ5W9RMhIq1dhsWztxTud1TnBQZsbkd", - start="2020-07-27T06:53:50.000000+09:00", - to="2019-07-22T10:30:08.000000+09:00" + description="u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4B", + start="2023-10-31T08:54:47.000000Z", + to="2023-07-22T14:32:24.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_4(self): response = client.send(pp.ListTransfersV2( - transfer_types=["coupon", "expire", "campaign", "payment", "transfer", "topup"], - description="KWD0fiDnREQQDwR5XEyIFeG77xZhQ031Bv0fXxSyFQJeZ6rdQ8buBb1f9slLRuiYJe4XyJvTb23a", - start="2020-03-14T13:09:59.000000+09:00", - to="2018-07-19T14:11:21.000000+09:00" + transfer_types=["topup", "coupon"], + description="VHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFG", + start="2020-01-25T23:10:28.000000Z", + to="2023-11-08T13:55:42.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_5(self): response = client.send(pp.ListTransfersV2( - per_page=925, - transfer_types=["coupon", "transfer", "expire", "payment"], - description="Kvikb", - start="2018-03-29T03:19:06.000000+09:00", - to="2023-07-01T01:25:32.000000+09:00" + per_page=704, + transfer_types=["expire", "topup", "transfer", "cashback", "campaign", "exchange", "payment"], + description="N09yrly", + start="2023-05-27T22:36:04.000000Z", + to="2024-08-06T10:48:42.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_6(self): response = client.send(pp.ListTransfersV2( - prev_page_cursor_id="5a8cb885-93b7-4968-b13f-e9065fc1ff54", - per_page=521, - transfer_types=[], - description="9ynJs1QCqTRlC3W1MGePxsBFCAyv0dcBt87MHAdufVNZM7qsWa8JyqZo0jQRpDPE6rh6ExoxFn0c43cEW5yWSswalnNSPl4nKgIh67Gkz5WkqpvEXvT4G0zj9vSzfdqnwxVoVRAJZtMnbN2adZxWSJweQkjDaZNU8iBur4dbIER6acqYlw", - start="2024-02-02T15:42:04.000000+09:00", - to="2016-08-25T01:29:18.000000+09:00" + prev_page_cursor_id="dfea952b-390a-4b5d-acc8-9363eedcb0f8", + per_page=620, + transfer_types=["topup", "expire"], + description="JWs83eoAqvgg01zZW75", + start="2022-10-11T07:11:26.000000Z", + to="2022-07-16T14:02:15.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_7(self): response = client.send(pp.ListTransfersV2( - next_page_cursor_id="57d9e313-6445-438c-b0b9-3ec439e77024", - prev_page_cursor_id="6a5565b3-e96f-4160-aad8-c857dc1f2327", - per_page=387, - transfer_types=["exchange"], - description="7xTzrPkAXyiXMztQxtJ4M2WJmA50gKlydbRXM1sy2g1Pf0MqzXeXqK5rRDKBvomcRcTm4csmVWyjay9TthXSYCbva0t32yWLYVWM4QhXAPz9W0Mxm5OYGh3N4Z6M9NXBY9oPVgI76tvDy", - start="2021-06-04T03:44:58.000000+09:00", - to="2016-02-25T15:21:47.000000+09:00" + next_page_cursor_id="21399452-c3c4-4427-98e7-002189fe3257", + prev_page_cursor_id="19f76952-b518-443f-94ce-01f726f024ef", + per_page=149, + transfer_types=["exchange", "coupon", "payment"], + description="R1aePdc9fGHLcwyelAg5Jr7zE", + start="2021-03-24T01:30:31.000000Z", + to="2022-10-26T22:36:30.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_8(self): response = client.send(pp.ListTransfersV2( - transaction_types=["cashback"], - next_page_cursor_id="10f2975d-1790-456d-b970-2fc64059f4d2", - prev_page_cursor_id="891bf7ed-f355-42fe-b6e5-ef827c4b9964", - per_page=519, - transfer_types=["transfer", "expire", "payment"], - description="lSSsYDRmoQAbzux2YVPLs6mqcLQO6KAfySYCh0uqCGrCwLPsZTQHaYj8b8oAQjqHWHEUSfBXgsFSQYVjyMJi1osniwzvMM5724wrvJulOUj4A8M3jM0zpEWete9qDkCIpsjezZ2M4DgCUcWaYN25M17e8QItVUDPdnGbbjU", - start="2017-06-10T09:09:15.000000+09:00", - to="2016-04-18T19:52:41.000000+09:00" + transaction_types=["expire", "topup"], + next_page_cursor_id="b1dc3b78-c7a9-4858-aab7-3eb4a58e7b7e", + prev_page_cursor_id="ad774199-896a-47bd-b620-f02ef3274eb4", + per_page=407, + transfer_types=["expire", "coupon", "transfer", "topup", "cashback"], + description="Vakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5k", + start="2023-10-08T16:25:30.000000Z", + to="2021-12-04T15:56:15.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_9(self): response = client.send(pp.ListTransfersV2( is_modified=False, - transaction_types=["exchange", "cashback", "transfer"], - next_page_cursor_id="e2590801-5e40-461b-8110-539d51d51d2f", - prev_page_cursor_id="a4a03b6f-faa6-48fe-88a4-d0f9078a983d", - per_page=304, - transfer_types=["exchange", "cashback"], - description="yexDJw4m5W5NSAarqtGtlcKJp9gTWhEWSlBiVnl9lORTBFy0IWWO4H8KmbVB2M5EGOlNZgqvSi38sr7tIAdAm2GfCQqu6PVWox7el", - start="2017-03-04T01:54:13.000000+09:00", - to="2017-05-10T23:34:31.000000+09:00" + transaction_types=["cashback", "payment", "expire", "transfer", "exchange"], + next_page_cursor_id="d538a3df-30bf-4f81-8225-875a16b74c46", + prev_page_cursor_id="7dd1745a-110f-4adb-9bf7-e2e8ecc0df79", + per_page=310, + transfer_types=["coupon", "payment", "topup", "transfer", "cashback"], + description="wbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j", + start="2021-04-25T05:44:24.000000Z", + to="2020-04-09T02:34:20.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_10(self): response = client.send(pp.ListTransfersV2( - private_money_id="9d93ce54-91e6-4322-9d12-739d5879dd72", - is_modified=False, - transaction_types=["expire", "cashback", "transfer", "topup", "exchange"], - next_page_cursor_id="2ed7910c-d1c1-47f9-aa8d-2ccc92902d9a", - prev_page_cursor_id="0596f408-1119-41a3-a4cf-79ff70bb9da1", - per_page=396, - transfer_types=[], - description="3AIIQZmW74G7CnNpvzFPpYINeb1rEwkSNbZUKM9QJifASeEjt7rgfB4dUvUA5MkBayzjLixvqernP2ia0JTvsqFBudbGeZdEPGzzDd2lyZr3fyGm4G1h2gpnMz4EtR2vopXxSWiIg6gduAWVf9XkDSsioG64", - start="2018-08-02T17:59:49.000000+09:00", - to="2018-12-07T20:05:22.000000+09:00" + private_money_id="1831b86f-28ad-4296-9762-43a03c0126e8", + is_modified=True, + transaction_types=["transfer"], + next_page_cursor_id="38e49e91-907f-454b-a61b-ce513fc21a07", + prev_page_cursor_id="8384ebc1-f186-4790-9b50-3232f2bbe662", + per_page=775, + transfer_types=["transfer", "expire", "payment", "campaign", "topup", "exchange", "cashback"], + description="Ih2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlI", + start="2024-08-27T10:10:53.000000Z", + to="2020-06-11T22:57:05.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_11(self): response = client.send(pp.ListTransfersV2( - transaction_id="272cff66-15e2-4374-ac9b-f38154ad010c", - private_money_id="a5ea0593-81c3-464d-a293-659f455c9949", + transaction_id="a1883389-64e0-406c-97bd-6fd15e6e57bd", + private_money_id="8a24a8f6-78bb-4f5c-8c35-129ce549d9bd", is_modified=True, - transaction_types=["expire", "transfer", "payment"], - next_page_cursor_id="49b96d65-7153-4c06-93f8-ae6282c39fac", - prev_page_cursor_id="db7ac25b-147f-4852-94f9-1e160b46cd36", - per_page=598, - transfer_types=["campaign", "transfer", "payment", "cashback", "coupon"], - description="6TRb2QsyUYaFBg0rLG7i", - start="2022-07-09T08:10:51.000000+09:00", - to="2024-10-28T00:32:14.000000+09:00" + transaction_types=["topup", "payment", "transfer", "expire", "cashback"], + next_page_cursor_id="10f1b012-9135-40d6-b24c-5d7825b46301", + prev_page_cursor_id="25b8bf9f-e0a6-49fa-be5e-6a9a1b6b80d2", + per_page=906, + transfer_types=["transfer", "exchange", "coupon"], + description="0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxS", + start="2021-03-09T02:06:00.000000Z", + to="2023-08-20T00:12:59.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_12(self): response = client.send(pp.ListTransfersV2( - customer_name="umX9lPF6p8o2y11Yrgt4LCmHaJMs2PMcoeItTVcWkxXihexQXo312p3Wls1sE7BHULcZQtWWfaD4rWZB2GIm3dWvJq3fHzlHa1nO6pf4h9ws9kLnk6c", - transaction_id="b0c32819-3ece-4962-80e2-d630b93993a3", - private_money_id="8e0a0ca0-6efb-46ca-8484-644a76a3e7dd", + customer_name="RZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjS", + transaction_id="492931cb-bf93-4a8b-a8fc-675290cbea8c", + private_money_id="d99d6bc7-e789-43cc-91af-9c704fab5cce", is_modified=False, - transaction_types=["exchange", "topup", "transfer", "cashback", "payment", "expire"], - next_page_cursor_id="14f80a79-934c-4bab-aa49-e047b893ed1c", - prev_page_cursor_id="ca367023-56ba-4d95-8719-96ec05e940be", - per_page=404, - transfer_types=["payment", "topup", "transfer", "cashback", "campaign"], - description="mHAR3RBnK72f11paMW4hGPanWOZJLbDfcebA2uxdCspznoi6atFNTbrEABXoODKwUOy71", - start="2020-10-10T07:12:50.000000+09:00", - to="2023-04-11T15:30:10.000000+09:00" + transaction_types=["cashback"], + next_page_cursor_id="69c9fc89-7763-4b69-a021-a7ceca1bbd72", + prev_page_cursor_id="7392df4b-0df7-4b65-95c7-d2ca5bce0974", + per_page=623, + transfer_types=["expire", "exchange", "campaign", "payment", "cashback", "coupon", "topup", "transfer"], + description="Sp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ys", + start="2021-01-19T21:43:56.000000Z", + to="2022-12-27T05:42:23.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_13(self): response = client.send(pp.ListTransfersV2( - customer_id="a0327969-162f-4fed-9828-f97fd44ac862", - customer_name="yuBcqQnQ9Lj9uq1rjYyblkDRghHjQDZezbRZC9FxfNOIHrbpOq6mcQRKL5CG2GPSQQB1U6IjRsZr2eFWgbnzGrBQcbaSK3iX1ZFYsGd1YMLCaCs0F5pkoUcbMvLHGSU2LTCLPQ5GJELxIJ85m7pWO5Oq5sU8iwoJ735Qje9VnUZQt0pzes3TegY2AoCAsHwCP5A6Scunsmt5agjEkUDn1nh1J0PoLY33AeuLX1vt0Xc", - transaction_id="d3bdf3b0-ee95-4544-8f8b-87d06be1c6c9", - private_money_id="2dd136f3-5908-487b-aabe-a695d5a68eef", - is_modified=True, - transaction_types=[], - next_page_cursor_id="9033c9f9-954a-474b-8a86-87a41fd8fefa", - prev_page_cursor_id="25b98bce-65d2-43a7-9d95-2e2ce43ebb06", - per_page=356, - transfer_types=["transfer", "topup"], - description="TrsJZ4LsdIfCC8uQL", - start="2016-06-19T21:09:18.000000+09:00", - to="2020-07-22T17:47:49.000000+09:00" + customer_id="79319f24-9c70-42a5-a240-f49283054703", + customer_name="O4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4Aj", + transaction_id="eedee249-b5fc-41b4-b7f0-77af7a2a55a8", + private_money_id="9af1aca7-46b6-4d93-b174-1149845a26a4", + is_modified=False, + transaction_types=["payment"], + next_page_cursor_id="99284f30-0515-4147-ada1-ccfa2de3f748", + prev_page_cursor_id="1c46990c-4631-4d46-9257-af2f4cec889d", + per_page=535, + transfer_types=["coupon", "cashback", "expire", "campaign", "topup", "transfer", "exchange"], + description="HaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAnlFEg", + start="2023-07-05T02:20:51.000000Z", + to="2020-11-07T16:26:53.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_14(self): response = client.send(pp.ListTransfersV2( - shop_name="KagjGEM3GfsC9B0w8zKt6bQig1LgqOPtR6wzZdUh56Q0WZf8IPC7BRlPxu7PJAL2SSrdIkCx2w3UniyERaYjCV8kJefHmgXwlVomKPcnp5Z68uiRVcRs6iSVq6CAE1cykbPfFVTBynTVWrp1vTM1qsdO4ANmXuI4", - customer_id="d9defb96-653e-4070-acea-e661c4734461", - customer_name="jMjNf8XzKneiyaJFmKrTqfSFemIMfA7XBmcoIx81EXrZTOXzCYdt", - transaction_id="f564454e-8e63-49d3-a325-e3b5cf7b91b0", - private_money_id="ce716454-b5d2-49ad-9468-c276f58246bb", + shop_name="myi8jmBN0T80aLvrKoRyTXgPVT4AzeoZEOYuu1RyqlWwyCNVezTDDCUN00F2V", + customer_id="585e6c88-d2de-4d11-afe8-42fd31b35ba8", + customer_name="3XqmCSMDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQI", + transaction_id="59173785-910e-4ec6-ac06-602550aa0481", + private_money_id="158739a9-7065-48cb-981e-032489c19533", is_modified=False, - transaction_types=["exchange", "topup", "expire", "transfer"], - next_page_cursor_id="b06f04e1-4cd9-4cf4-987e-d2785c82c77e", - prev_page_cursor_id="72fa7747-a9c8-4bbd-b210-00b518cb02a9", - per_page=579, - transfer_types=["coupon", "payment", "cashback"], - description="0CKWqFPB7cXogK3lXTpk1ACQL5MC28qImQU81piDFRyBs61QA64ubFmiSNGPB6PWeR4fjojaItl7qDDnWfDz83II3SsVbG", - start="2020-04-08T02:34:10.000000+09:00", - to="2024-05-07T09:48:34.000000+09:00" + transaction_types=["expire", "exchange", "cashback", "transfer"], + next_page_cursor_id="a96ba690-b9d7-4f07-aecc-721c9cd025cc", + prev_page_cursor_id="e7c1c735-08fe-4819-b16b-de591fb859a4", + per_page=849, + transfer_types=["expire", "exchange", "coupon", "campaign", "transfer"], + description="8wILW6Ubji", + start="2024-12-03T23:02:53.000000Z", + to="2022-01-16T21:41:44.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_15(self): response = client.send(pp.ListTransfersV2( - shop_id="1f497aaa-58ca-469a-be9b-00c14a74767a", - shop_name="xkiC6dodh0lsFj5rFalo907TQSGuwj68ad9K1XBWVYxIt1hLKB6GROESgi9KMGwAvzt2XDFLhsltsxjHevXAeaqJQdiPE4BeJCcIbjYCJA60910zNdhVnyX38KqA1fvkyrtqclFU9jljopVrQrbVbWUr1E2HhlclCQRWx8FEGzWXdbWzamEGXFO5PHpjsIS4SoPDOBVrOHFo8xzE1tgCZyMtCfVQXKeHEaCm6v4bOQPdSecOojChL", - customer_id="5dcc3900-eb68-42f5-8593-f6ae4d1a34e1", - customer_name="RbGgSXO57u6cTOWbPpHzT8SBHVxA4uTsQXNQLVTsa7Enw9cnxOrtkyrYkFM2fsUIFcBc3xUhfvCQABU9yhdPlghv2VJu1lljCVVYSCGNIDxlSztThgX67n2PgbzVLVHAuqNRKSFbkQ", - transaction_id="11b1dc20-7477-4b5b-ba45-5cf8642c05e9", - private_money_id="4c8990b4-61e3-42d3-b02d-a87644255373", - is_modified=False, - transaction_types=["topup"], - next_page_cursor_id="cbe27a6c-6995-4996-8759-7007989abf04", - prev_page_cursor_id="1daa7de5-15ee-41a0-9076-4d39eaddc862", - per_page=603, - transfer_types=["topup", "transfer"], - description="sQ10G0TlaGn12vl36ewyKaB6SHyKZZn5jR7G8GZiBnTaUgy7N3mTLemMZeIt74bhbcXSO6mPwoW10WefOcGtzUdCSHPXTvrjAoBOkNuRh5LysIScuFPNL3GzqnMP5NZDifqWbMDgjD68XvQQECUSjutOosOC5LZHJPKApv7OfARAe3RnFd9nT02p1eaStaJkR7kpHzH", - start="2016-11-08T13:11:50.000000+09:00", - to="2022-04-02T01:16:54.000000+09:00" + shop_id="f61f4136-f202-4891-85fd-7ceeadd80b44", + shop_name="Vo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MIK7GdyM50XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jl", + customer_id="78a2f880-27ae-4061-b350-f18ee5d56aa8", + customer_name="fb8OgNhhqnfBQjVs", + transaction_id="0a8939c3-9bec-43bc-92d0-a0a7f31fc5aa", + private_money_id="e0846892-8150-45af-8fe4-403452507b35", + is_modified=True, + transaction_types=["transfer", "expire", "exchange", "payment", "topup"], + next_page_cursor_id="c716076f-a376-4f45-a085-75d302ca2b6f", + prev_page_cursor_id="bc0a9fb5-e1af-4e4f-b7be-bec4478fa0f7", + per_page=809, + transfer_types=["expire", "transfer", "campaign"], + description="NZPFf6xG0YeVkLQLhc7hb", + start="2023-06-06T19:42:12.000000Z", + to="2022-10-28T19:18:34.000000Z" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_0(self): + response = client.send(pp.ListOrganizations( + "c87eff16-2d38-4fd3-9013-83872318372e" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_1(self): + response = client.send(pp.ListOrganizations( + "c87eff16-2d38-4fd3-9013-83872318372e", + code="pH3eqOx8c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_2(self): + response = client.send(pp.ListOrganizations( + "c87eff16-2d38-4fd3-9013-83872318372e", + name="3TF", + code="9a8" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_3(self): + response = client.send(pp.ListOrganizations( + "c87eff16-2d38-4fd3-9013-83872318372e", + per_page=9321, + name="Mtt7Rd", + code="KeKSciqwdk" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_4(self): + response = client.send(pp.ListOrganizations( + "c87eff16-2d38-4fd3-9013-83872318372e", + page=6537, + per_page=9005, + name="vqZQpEwq", + code="xx" )) self.assertNotEqual(response.status_code, 400) def test_create_organization_0(self): response = client.send(pp.CreateOrganization( - "1LETy", - "ZPKAQBgMPUGbEnOIPDq2CLAbjX1Djn2XWSwjThwDAcCZY6YtawxId266BZVwZVmHyD1UpI6d83jiZ9uTzP4YjXFZyT5vOgrOJYvJ3LNaiOIeknn7RYaYRsrRINAXrIL7Vokdd5FDSOlHXvPdm6smgX4oL5ObnN7xsSw29hgwVKZ3q7f2G5Csbw765Up6rDPAvgZ3Lft7QdtUV0xBtYCY2peqF3OIROYkI2OmNuQfBQja", - ["0e3d9e11-0003-4ee2-8399-f215bd941cf5", "537efd5a-3cc1-4437-a016-4f49c457ec11", "b4acfe2e-625d-4bb2-abb7-fe505e1360d0", "0324324b-1a2e-4317-81d7-afbda5d2e56e", "d7832ebf-9c96-4f2b-a58e-e346f3c74013"], - "0PAVPIqlw5@xHvb.com", - "neEVFJO1vU@ShUN.com" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + ["07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"], + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com" )) self.assertNotEqual(response.status_code, 400) def test_create_organization_1(self): response = client.send(pp.CreateOrganization( - "1LETy", - "ZPKAQBgMPUGbEnOIPDq2CLAbjX1Djn2XWSwjThwDAcCZY6YtawxId266BZVwZVmHyD1UpI6d83jiZ9uTzP4YjXFZyT5vOgrOJYvJ3LNaiOIeknn7RYaYRsrRINAXrIL7Vokdd5FDSOlHXvPdm6smgX4oL5ObnN7xsSw29hgwVKZ3q7f2G5Csbw765Up6rDPAvgZ3Lft7QdtUV0xBtYCY2peqF3OIROYkI2OmNuQfBQja", - ["0e3d9e11-0003-4ee2-8399-f215bd941cf5", "537efd5a-3cc1-4437-a016-4f49c457ec11", "b4acfe2e-625d-4bb2-abb7-fe505e1360d0", "0324324b-1a2e-4317-81d7-afbda5d2e56e", "d7832ebf-9c96-4f2b-a58e-e346f3c74013"], - "0PAVPIqlw5@xHvb.com", - "neEVFJO1vU@ShUN.com", - contact_name="iyLhmVZrKtrf8fOXhtgmBfxN2mKWhxAVox0bSxOCeaMv9sV8PCVe8gGULXYHHQVItPbBIgVhkWUs64kjPOvg7oS" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + ["07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"], + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com", + contact_name="bHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5J" )) self.assertNotEqual(response.status_code, 400) def test_create_organization_2(self): response = client.send(pp.CreateOrganization( - "1LETy", - "ZPKAQBgMPUGbEnOIPDq2CLAbjX1Djn2XWSwjThwDAcCZY6YtawxId266BZVwZVmHyD1UpI6d83jiZ9uTzP4YjXFZyT5vOgrOJYvJ3LNaiOIeknn7RYaYRsrRINAXrIL7Vokdd5FDSOlHXvPdm6smgX4oL5ObnN7xsSw29hgwVKZ3q7f2G5Csbw765Up6rDPAvgZ3Lft7QdtUV0xBtYCY2peqF3OIROYkI2OmNuQfBQja", - ["0e3d9e11-0003-4ee2-8399-f215bd941cf5", "537efd5a-3cc1-4437-a016-4f49c457ec11", "b4acfe2e-625d-4bb2-abb7-fe505e1360d0", "0324324b-1a2e-4317-81d7-afbda5d2e56e", "d7832ebf-9c96-4f2b-a58e-e346f3c74013"], - "0PAVPIqlw5@xHvb.com", - "neEVFJO1vU@ShUN.com", - bank_account_holder_name="7", - contact_name="fBaWrA04virOZrFH9lNvZWQOhHbcPsVzudSsho4D4Vucvtqjo5TxhMxHQM1DHEyhnbl8ZtFdCq3PjvYo6pCNI1mfIpJ9f4NksvlPiC4Vu3XtdH9FsNEZ86HjJPe4Lp6lJfyvAGgrUXXkhfXnecR" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + ["07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"], + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com", + bank_account_holder_name="マ", + contact_name="NLUQPpDOoGNkBoKxTvABwe33" )) self.assertNotEqual(response.status_code, 400) def test_create_organization_3(self): response = client.send(pp.CreateOrganization( - "1LETy", - "ZPKAQBgMPUGbEnOIPDq2CLAbjX1Djn2XWSwjThwDAcCZY6YtawxId266BZVwZVmHyD1UpI6d83jiZ9uTzP4YjXFZyT5vOgrOJYvJ3LNaiOIeknn7RYaYRsrRINAXrIL7Vokdd5FDSOlHXvPdm6smgX4oL5ObnN7xsSw29hgwVKZ3q7f2G5Csbw765Up6rDPAvgZ3Lft7QdtUV0xBtYCY2peqF3OIROYkI2OmNuQfBQja", - ["0e3d9e11-0003-4ee2-8399-f215bd941cf5", "537efd5a-3cc1-4437-a016-4f49c457ec11", "b4acfe2e-625d-4bb2-abb7-fe505e1360d0", "0324324b-1a2e-4317-81d7-afbda5d2e56e", "d7832ebf-9c96-4f2b-a58e-e346f3c74013"], - "0PAVPIqlw5@xHvb.com", - "neEVFJO1vU@ShUN.com", - bank_account="369991", - bank_account_holder_name=" ", - contact_name="xGnpm1kxDBXzRf1f9JiZjCJBrJjt5kCWz5zMWjynyv6K" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + ["07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"], + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com", + bank_account="37654", + bank_account_holder_name="7", + contact_name="JOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw" )) self.assertNotEqual(response.status_code, 400) def test_create_organization_4(self): response = client.send(pp.CreateOrganization( - "1LETy", - "ZPKAQBgMPUGbEnOIPDq2CLAbjX1Djn2XWSwjThwDAcCZY6YtawxId266BZVwZVmHyD1UpI6d83jiZ9uTzP4YjXFZyT5vOgrOJYvJ3LNaiOIeknn7RYaYRsrRINAXrIL7Vokdd5FDSOlHXvPdm6smgX4oL5ObnN7xsSw29hgwVKZ3q7f2G5Csbw765Up6rDPAvgZ3Lft7QdtUV0xBtYCY2peqF3OIROYkI2OmNuQfBQja", - ["0e3d9e11-0003-4ee2-8399-f215bd941cf5", "537efd5a-3cc1-4437-a016-4f49c457ec11", "b4acfe2e-625d-4bb2-abb7-fe505e1360d0", "0324324b-1a2e-4317-81d7-afbda5d2e56e", "d7832ebf-9c96-4f2b-a58e-e346f3c74013"], - "0PAVPIqlw5@xHvb.com", - "neEVFJO1vU@ShUN.com", - bank_account_type="current", - bank_account="", - bank_account_holder_name="ク", - contact_name="ACMY5nowhDUZD5IZKMp0STmYDwTtHP0EcP6hogkn6nAjgTjLkVtsanieCAlqrCK8PwmGod9YcEsgY2DC2Vj8cKXwgERagqK" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + ["07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"], + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com", + bank_account_type="saving", + bank_account="12", + bank_account_holder_name="2", + contact_name="g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxL" )) self.assertNotEqual(response.status_code, 400) def test_create_organization_5(self): response = client.send(pp.CreateOrganization( - "1LETy", - "ZPKAQBgMPUGbEnOIPDq2CLAbjX1Djn2XWSwjThwDAcCZY6YtawxId266BZVwZVmHyD1UpI6d83jiZ9uTzP4YjXFZyT5vOgrOJYvJ3LNaiOIeknn7RYaYRsrRINAXrIL7Vokdd5FDSOlHXvPdm6smgX4oL5ObnN7xsSw29hgwVKZ3q7f2G5Csbw765Up6rDPAvgZ3Lft7QdtUV0xBtYCY2peqF3OIROYkI2OmNuQfBQja", - ["0e3d9e11-0003-4ee2-8399-f215bd941cf5", "537efd5a-3cc1-4437-a016-4f49c457ec11", "b4acfe2e-625d-4bb2-abb7-fe505e1360d0", "0324324b-1a2e-4317-81d7-afbda5d2e56e", "d7832ebf-9c96-4f2b-a58e-e346f3c74013"], - "0PAVPIqlw5@xHvb.com", - "neEVFJO1vU@ShUN.com", - bank_branch_code="735", - bank_account_type="other", - bank_account="98", + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + ["07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"], + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com", + bank_branch_code="254", + bank_account_type="current", + bank_account="36599", bank_account_holder_name="(", - contact_name="nCdyvxKvSOqTvlYodFyg21jiUhByaB66BNcapTyLZWxad9qMqfjUCaVImVTzD7ogGgbbuuhXvkkv63jx716j9qYeQTBsHYxIvY8A2kLLFzDvGgwT6RWA89QL9Vp03GIkTp5cuONNVFc9v9gdz5hWfe1" + contact_name="UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCg" )) self.assertNotEqual(response.status_code, 400) def test_create_organization_6(self): response = client.send(pp.CreateOrganization( - "1LETy", - "ZPKAQBgMPUGbEnOIPDq2CLAbjX1Djn2XWSwjThwDAcCZY6YtawxId266BZVwZVmHyD1UpI6d83jiZ9uTzP4YjXFZyT5vOgrOJYvJ3LNaiOIeknn7RYaYRsrRINAXrIL7Vokdd5FDSOlHXvPdm6smgX4oL5ObnN7xsSw29hgwVKZ3q7f2G5Csbw765Up6rDPAvgZ3Lft7QdtUV0xBtYCY2peqF3OIROYkI2OmNuQfBQja", - ["0e3d9e11-0003-4ee2-8399-f215bd941cf5", "537efd5a-3cc1-4437-a016-4f49c457ec11", "b4acfe2e-625d-4bb2-abb7-fe505e1360d0", "0324324b-1a2e-4317-81d7-afbda5d2e56e", "d7832ebf-9c96-4f2b-a58e-e346f3c74013"], - "0PAVPIqlw5@xHvb.com", - "neEVFJO1vU@ShUN.com", - bank_branch_name="2XdVSiGrZna", + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + ["07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"], + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com", + bank_branch_name="e3KvTMWtvAOdqc6t4", bank_branch_code="", bank_account_type="other", - bank_account="047167", - bank_account_holder_name="Z", - contact_name="vsUjS1TQRpGXwusKVKoDVo20K4pvhym0ixofoZrqcO9xmrGI7Yq8b7zKf4Zjq1K3jlOjYQfsbEScihoRIGPs251h35D6RqOUv7GYFIehbCx0by4HajPsFnZyPkDxfEbj7EZcJNWpppH7JtG7uLWNnv9bkjUCUVfq92VQxP0FMeHm2Gc8mWOktzQrw5GjJ8uGQSasHDUHsEK1qalH" + bank_account="76902", + bank_account_holder_name=" ", + contact_name="k2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGkENDSkRyfWKAxjQWjCB8nFcqmENfDor1zgwF9x3xZsR5bLJPhH3FEHzbfU4cD6smAeqngifjNikqDE3OudXpYhNwFWUAKOnWlhna0lYNQbEnbMVdbi9G5aE3q4g" )) self.assertNotEqual(response.status_code, 400) def test_create_organization_7(self): response = client.send(pp.CreateOrganization( - "1LETy", - "ZPKAQBgMPUGbEnOIPDq2CLAbjX1Djn2XWSwjThwDAcCZY6YtawxId266BZVwZVmHyD1UpI6d83jiZ9uTzP4YjXFZyT5vOgrOJYvJ3LNaiOIeknn7RYaYRsrRINAXrIL7Vokdd5FDSOlHXvPdm6smgX4oL5ObnN7xsSw29hgwVKZ3q7f2G5Csbw765Up6rDPAvgZ3Lft7QdtUV0xBtYCY2peqF3OIROYkI2OmNuQfBQja", - ["0e3d9e11-0003-4ee2-8399-f215bd941cf5", "537efd5a-3cc1-4437-a016-4f49c457ec11", "b4acfe2e-625d-4bb2-abb7-fe505e1360d0", "0324324b-1a2e-4317-81d7-afbda5d2e56e", "d7832ebf-9c96-4f2b-a58e-e346f3c74013"], - "0PAVPIqlw5@xHvb.com", - "neEVFJO1vU@ShUN.com", + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + ["07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"], + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com", bank_code="", - bank_branch_name="wNsBFFvhBAfKd9pYjNXINvRo8XrSFeFKEUniweS0acjh4qrH7klovo9x1qmkFFjd", - bank_branch_code="189", - bank_account_type="other", - bank_account="", - bank_account_holder_name="V", - contact_name="dCsP" + bank_branch_name="93gHJA1FfneXYRV", + bank_branch_code="216", + bank_account_type="current", + bank_account="52", + bank_account_holder_name="」", + contact_name="WEkaIk3Nf304AeRoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJ" )) self.assertNotEqual(response.status_code, 400) def test_create_organization_8(self): response = client.send(pp.CreateOrganization( - "1LETy", - "ZPKAQBgMPUGbEnOIPDq2CLAbjX1Djn2XWSwjThwDAcCZY6YtawxId266BZVwZVmHyD1UpI6d83jiZ9uTzP4YjXFZyT5vOgrOJYvJ3LNaiOIeknn7RYaYRsrRINAXrIL7Vokdd5FDSOlHXvPdm6smgX4oL5ObnN7xsSw29hgwVKZ3q7f2G5Csbw765Up6rDPAvgZ3Lft7QdtUV0xBtYCY2peqF3OIROYkI2OmNuQfBQja", - ["0e3d9e11-0003-4ee2-8399-f215bd941cf5", "537efd5a-3cc1-4437-a016-4f49c457ec11", "b4acfe2e-625d-4bb2-abb7-fe505e1360d0", "0324324b-1a2e-4317-81d7-afbda5d2e56e", "d7832ebf-9c96-4f2b-a58e-e346f3c74013"], - "0PAVPIqlw5@xHvb.com", - "neEVFJO1vU@ShUN.com", - bank_name="1zaX0YEC", - bank_code="0533", - bank_branch_name="S9uGcWpU50I9EOF1CbY7DQ", - bank_branch_code="670", - bank_account_type="other", - bank_account="9439628", - bank_account_holder_name=" ", - contact_name="6OljXWNCah5Q3Axy3FHS7HHlL9hetKrZtdVOY5mSWLpoOzWuTFDp0xZJMmmZyM3omHaaYolohp4jua" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + ["07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"], + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com", + bank_name="FeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOful", + bank_code="5929", + bank_branch_name="FK5T7Dc8oOst1MM9PmjRD", + bank_branch_code="176", + bank_account_type="current", + bank_account="73", + bank_account_holder_name="1", + contact_name="O5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxo" )) self.assertNotEqual(response.status_code, 400) @@ -2639,355 +3278,386 @@ def test_list_shops_0(self): def test_list_shops_1(self): response = client.send(pp.ListShops( - per_page=2911 + per_page=9547 )) self.assertNotEqual(response.status_code, 400) def test_list_shops_2(self): response = client.send(pp.ListShops( - page=3096, - per_page=7801 + page=8686, + per_page=4019 )) self.assertNotEqual(response.status_code, 400) def test_list_shops_3(self): response = client.send(pp.ListShops( - external_id="Rzzc4S4bskUY0GUghtLrKdmw4Mj2vrs21Q3Q", - page=7668, - per_page=1177 + with_disabled=False, + page=7193, + per_page=3329 )) self.assertNotEqual(response.status_code, 400) def test_list_shops_4(self): response = client.send(pp.ListShops( - email="cjDt5dNl9I@acbc.com", - external_id="U5Qd92Qhefxi61LsaPXprVMDsZV4dkyP5lnQ", - page=5477, - per_page=6460 + external_id="OYFN3fJYwkLiuasNI3TQ4Ubb8U4Lo", + with_disabled=False, + page=1552, + per_page=3451 )) self.assertNotEqual(response.status_code, 400) def test_list_shops_5(self): response = client.send(pp.ListShops( - tel="0777572-2256", - email="sLa4vnCWV1@QVss.com", - external_id="1Im12", - page=7841, - per_page=4055 + email="MVQ4l9Wdfw@N1GB.com", + external_id="XrbSDIYZ", + with_disabled=False, + page=8538, + per_page=5482 )) self.assertNotEqual(response.status_code, 400) def test_list_shops_6(self): response = client.send(pp.ListShops( - address="LZ8F0u3SxrrH1vjl84VkWU20DVNhF1QRXrkYNIOtHHG8yHnSu7dDAUDz3Ba7wXTCzgYCbLTAWi1ohaetMA7WNeaonbTVSEX134CEzJmLXodVipQoaS9jpxZmBe1IVqn6l0xvjbPmp4eCBlLWO5LUEEnWeZcSGLtIalNYra2M0CM", - tel="06-1527855", - email="MWb2crhAOj@Ag46.com", - external_id="xwepf8NCoyrEsYCM3co0m5f7", - page=4443, - per_page=5863 + tel="03-225625", + email="0E243Lt7Q0@CkQG.com", + external_id="HLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF", + with_disabled=False, + page=3522, + per_page=2177 )) self.assertNotEqual(response.status_code, 400) def test_list_shops_7(self): response = client.send(pp.ListShops( - postal_code="0788400", - address="Yp6krkF1YbRmwvxymb30gk854pQwTzmFQFV2uDFFIi8EFMWMycoOxYLCK5275yaFTfZztXuQw4RaWFmQq3HxE1cttSeGuAJyXtCyfPpoPjMTr8crob004vlXwUsthEoZOk8UXfYg8fdpzyB6W0dkeo5uEqZaCFDcbEj9ISDmaB2afkehiCZS1KVArQK", - tel="097-214-9647", - email="ArWQhOtANq@AqTE.com", - external_id="SOlpuGW5FhrbDgJ77XFXl4NKb3zycQebat", - page=2091, - per_page=4535 + address="hqoWmfQbT09Lp665rg0d7eGITtIklkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rqwGDVRdojGjigHpZl8InH", + tel="0128-2449581", + email="gGfElkSct5@6tB3.com", + external_id="Q", + with_disabled=True, + page=7745, + per_page=8410 )) self.assertNotEqual(response.status_code, 400) def test_list_shops_8(self): response = client.send(pp.ListShops( - name="OYZVBO6i7OrH9y83QqXgWF2opiVdC1V5KC13EYjcxvJwZkwVKG4nhx51AwtpZIv6uv80k2eZHBR50sHyhGa26QKgCzW91ijqwGz4iwxLvGQu8AItYv5ALjIimTwKA5k60bA481CWCvSZBvCgqCd3bRt5kX2boQl", - postal_code="996-3686", - address="mm92pmKFDO4dzrTnN2hnl6jClpe10uHCcbxZraKIE5JV72jwXeLc5ziCQvgnEPrwn8MGASAuLD3WLJqm2LErGcclueraXSCDvzDuhvkKIoa3xl900hkmeYLn1AjsWrIn7wWX9", - tel="027201-922", - email="9BG44UnK5k@ugEb.com", - external_id="8t3i1", - page=5670, - per_page=4615 + postal_code="198-5207", + address="yXQYOSshpGMCke10fApKjBHnAmdlKiUj9JqianI8FqIXqzelGZDONUAJfl2HMto7yaW0Gkt1pOBZosxcU6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKruisPGcjRxKz0hnHtPEmOFzye10sMn1hLqgZ4Scflk2JdjznjOojFztUy", + tel="025-952-2770", + email="yS9B5htgNI@DpUp.com", + external_id="zKyj3BEvYp1", + with_disabled=False, + page=5288, + per_page=9941 )) self.assertNotEqual(response.status_code, 400) def test_list_shops_9(self): response = client.send(pp.ListShops( - private_money_id="8b384a7f-3cae-4ad5-87bb-8e84edd7dbee", - name="40madwkN30KxIK4R69fUEBg5VG6fY3BMw3LzyuQr74JtjTjvnySfqw4U7H9TvwAB8eScBfn1Rj6bF7qwsumEcO5tiAsHMCj6rQ8z", - postal_code="0316822", - address="Ct8CHPFNDEoS5JXEhny5IMhsG4v0CQldqzxJ6XAxr", - tel="07-8989809", - email="ZkaSGkcJKe@radq.com", - external_id="xAY", - page=161, - per_page=9451 + name="uySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L7gW6pVOxZ4jRFNa6hoBOihdHvejLf7HUNUhMpEnczyOhMWAPbHXytdjUT8FkE6WXDem2rgSzz35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL", + postal_code="816-1336", + address="4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPM", + tel="03-7477048", + email="5lpizelx6Z@w3AN.com", + external_id="kreMSnigb4Yb3t6kmvyhjD7Y1lgzqI", + with_disabled=True, + page=4073, + per_page=3254 )) self.assertNotEqual(response.status_code, 400) def test_list_shops_10(self): response = client.send(pp.ListShops( - organization_code="--", - private_money_id="7bbcd51c-855b-4c63-8a1e-1c47ebc0d2b8", - name="6z8KVqUt2uzqsseXYFYKRp", - postal_code="5750498", - address="7EPOVCpM4N6VpPYojnLWN99oUAp27dRdHXT0bu9kBbfQDVxrOePjXnEEoR26VQKj59HY9GxwaIDAEfbXDBB3FNIL8Usakbi9ZrjBPmCyriSuUZrqYwq", - tel="06-6680881", - email="Q2iQavwvhD@r8TN.com", - external_id="B4vIcRTpSaCV5", - page=2541, - per_page=8445 + private_money_id="c6a0544d-f3cc-4f93-b0d5-13702ef8cd41", + name="uRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8", + postal_code="7771898", + address="mlD5AgJ4dO8VEt3hyN01xWKpyfSJX1OiNUbqHXuSEWeM8VLmM8qznKIn9uBoqN3XKkwmXFnLL0vhZmz7rucmF8n8", + tel="0661-356-7684", + email="4mvXKC0yIY@DrOm.com", + external_id="Zvcf", + with_disabled=True, + page=4898, + per_page=2854 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_shops_11(self): + response = client.send(pp.ListShops( + organization_code="h-lirY-C-Aqh---Im1Jw", + private_money_id="3a74808e-7787-4882-ae59-c313abef69e4", + name="Jrs", + postal_code="768-7908", + address="irB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46DL0EY9D", + tel="02233029774", + email="ceHkpeJS53@rQYr.com", + external_id="ERvl0KriuN", + with_disabled=True, + page=5046, + per_page=4051 )) self.assertNotEqual(response.status_code, 400) def test_create_shop_0(self): response = client.send(pp.CreateShop( - "txsN8hQh23jWL68GyttBaIaA6bT2oimSP8aDw1fwYQo1a8Jvio1NlXmWokT3fCZ0aqdulZZGglvs1mmHvcGJdXuMvjofsG8E4KIFxs3y0EBuTM1S0iPJraQIMtAPJ1JN9CtWW30Uo4UAg9arJ4XCMrwN15cIxDvF6fUC0OQCualYkGbJ73b3nYCrV9uDJehyXJGfZSkx4G3NTiGEBvJP8jVkcC8" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27" )) self.assertNotEqual(response.status_code, 400) def test_create_shop_1(self): response = client.send(pp.CreateShop( - "txsN8hQh23jWL68GyttBaIaA6bT2oimSP8aDw1fwYQo1a8Jvio1NlXmWokT3fCZ0aqdulZZGglvs1mmHvcGJdXuMvjofsG8E4KIFxs3y0EBuTM1S0iPJraQIMtAPJ1JN9CtWW30Uo4UAg9arJ4XCMrwN15cIxDvF6fUC0OQCualYkGbJ73b3nYCrV9uDJehyXJGfZSkx4G3NTiGEBvJP8jVkcC8", - organization_code="p-56-v-V-d2v6TRcOGYOZVY-7-f7FI" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27", + organization_code="-z-B-kU06azg5meu5-oZm02ZiT----M" )) self.assertNotEqual(response.status_code, 400) def test_create_shop_2(self): response = client.send(pp.CreateShop( - "txsN8hQh23jWL68GyttBaIaA6bT2oimSP8aDw1fwYQo1a8Jvio1NlXmWokT3fCZ0aqdulZZGglvs1mmHvcGJdXuMvjofsG8E4KIFxs3y0EBuTM1S0iPJraQIMtAPJ1JN9CtWW30Uo4UAg9arJ4XCMrwN15cIxDvF6fUC0OQCualYkGbJ73b3nYCrV9uDJehyXJGfZSkx4G3NTiGEBvJP8jVkcC8", - shop_external_id="9utYjWSxV0PYaS2m3w11YOc", - organization_code="8-U59-5--" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27", + shop_external_id="xmBEPErY", + organization_code="iGnGU--B3g6CQRl-9w-J-4" )) self.assertNotEqual(response.status_code, 400) def test_create_shop_3(self): response = client.send(pp.CreateShop( - "txsN8hQh23jWL68GyttBaIaA6bT2oimSP8aDw1fwYQo1a8Jvio1NlXmWokT3fCZ0aqdulZZGglvs1mmHvcGJdXuMvjofsG8E4KIFxs3y0EBuTM1S0iPJraQIMtAPJ1JN9CtWW30Uo4UAg9arJ4XCMrwN15cIxDvF6fUC0OQCualYkGbJ73b3nYCrV9uDJehyXJGfZSkx4G3NTiGEBvJP8jVkcC8", - shop_email="7yg59bUqlz@l8RT.com", - shop_external_id="pDWU8ApGd", - organization_code="jha-bSdj" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27", + shop_email="RvriMMqT8Y@2wPx.com", + shop_external_id="WWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct", + organization_code="1H-9-0vw--e2vqh0-" )) self.assertNotEqual(response.status_code, 400) def test_create_shop_4(self): response = client.send(pp.CreateShop( - "txsN8hQh23jWL68GyttBaIaA6bT2oimSP8aDw1fwYQo1a8Jvio1NlXmWokT3fCZ0aqdulZZGglvs1mmHvcGJdXuMvjofsG8E4KIFxs3y0EBuTM1S0iPJraQIMtAPJ1JN9CtWW30Uo4UAg9arJ4XCMrwN15cIxDvF6fUC0OQCualYkGbJ73b3nYCrV9uDJehyXJGfZSkx4G3NTiGEBvJP8jVkcC8", - shop_tel="0678722650", - shop_email="dJBaCIrObU@Z5ZC.com", - shop_external_id="2jyrMS4IVkYp7d5uCmZcCGs", - organization_code="-N1ln-E48-Fv5-" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27", + shop_tel="0686588082", + shop_email="edAo6IB1Jw@I4Ht.com", + shop_external_id="HPlHFEuPGo3Gk", + organization_code="-sScpLT--l3-N" )) self.assertNotEqual(response.status_code, 400) def test_create_shop_5(self): response = client.send(pp.CreateShop( - "txsN8hQh23jWL68GyttBaIaA6bT2oimSP8aDw1fwYQo1a8Jvio1NlXmWokT3fCZ0aqdulZZGglvs1mmHvcGJdXuMvjofsG8E4KIFxs3y0EBuTM1S0iPJraQIMtAPJ1JN9CtWW30Uo4UAg9arJ4XCMrwN15cIxDvF6fUC0OQCualYkGbJ73b3nYCrV9uDJehyXJGfZSkx4G3NTiGEBvJP8jVkcC8", - shop_address="JzkH6S98QQghHEuISiLlQ9W3XgJB2NaMYnzVdH4lBEl49jCEcrfCIMQObL3OoO8rAUeIJB", - shop_tel="0452533964", - shop_email="aXhLa6DeYg@ow42.com", - shop_external_id="LUfdk8XuchSqSb", - organization_code="h-02Ut-0-37k-tAm-76w" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27", + shop_address="8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOf", + shop_tel="0179-11-332", + shop_email="qaG2p9irVN@MOOM.com", + shop_external_id="Eypf2sbMz5sG", + organization_code="-VsAf-Z6--674a3" )) self.assertNotEqual(response.status_code, 400) def test_create_shop_6(self): response = client.send(pp.CreateShop( - "txsN8hQh23jWL68GyttBaIaA6bT2oimSP8aDw1fwYQo1a8Jvio1NlXmWokT3fCZ0aqdulZZGglvs1mmHvcGJdXuMvjofsG8E4KIFxs3y0EBuTM1S0iPJraQIMtAPJ1JN9CtWW30Uo4UAg9arJ4XCMrwN15cIxDvF6fUC0OQCualYkGbJ73b3nYCrV9uDJehyXJGfZSkx4G3NTiGEBvJP8jVkcC8", - shop_postal_code="110-4245", - shop_address="ItB6ycarokvOGbxOtjjILQMz1SYbigi3uqGy9JaET7yaI77xfyzjZfk3Eg446tN2eZ", - shop_tel="068248-6277", - shop_email="9qEb2szCXB@kkHR.com", - shop_external_id="CtXprtOEGF7FA7qtYAU5", - organization_code="5-ZJ-DoDe0f-I--q-9-5----" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27", + shop_postal_code="046-0038", + shop_address="LoMele3ppOb8vOALeCaVZzJ21Wkjwh096vY0YkfqArkVOxtHaQbqrekxj6KVFbsIqYgBl99xXSIGv3Ovn3SH7ljqEdpqCcPOpWjivoOnvdw0Yvld3IeJyhTlRgTT2NxSiphZRlLoLjMmLSHQhe4tHPdlvKxC8QojNKN0zq", + shop_tel="0365-40-2058", + shop_email="IsHw9iaxaP@zoaD.com", + shop_external_id="v6U6SXLkHad9cOSRej1Twb2rvpiwJ", + organization_code="99s4-2d" )) self.assertNotEqual(response.status_code, 400) def test_create_shop_v2_0(self): response = client.send(pp.CreateShopV2( - "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur" + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk" )) self.assertNotEqual(response.status_code, 400) def test_create_shop_v2_1(self): response = client.send(pp.CreateShopV2( - "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur", - can_topup_private_money_ids=["d9181998-ebae-4faf-bede-cc6d2b261e3c", "f29dafab-c59e-4793-8f29-7885f6049c8c", "f18d03dc-c3be-4949-8f9f-1f7069364ee9", "fdb50494-1824-4454-a9ce-029b1127a14a"] + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk", + can_topup_private_money_ids=["dcce315f-b75d-4d8a-a2d7-bf54d811acf0", "858c4786-e2b6-4fb6-af69-075bdbebcd47", "4218636a-1cb1-4b97-866c-28d26acc9652", "bf4ddf7c-702f-4a90-b958-e27eade269e0", "ce2d24a8-c4f5-407b-8d56-502cdec1c4fb", "b49877aa-e363-4ea5-b392-14b2f67f27bf", "b564977a-558b-48e5-85d1-67053a715351", "31671d62-0d7f-4dd1-9c2a-8ff74bbd3162"] )) self.assertNotEqual(response.status_code, 400) def test_create_shop_v2_2(self): response = client.send(pp.CreateShopV2( - "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur", - private_money_ids=["e2c2cc3f-96e8-4b24-9346-e2a13c4d9bca", "a726dd0b-3dda-460f-846f-8d1e6239b2b3", "3ed88a6f-1627-42ab-8ba3-e071cdbdb109", "af4722a6-4edb-4839-bfea-7353e0c7b499", "62cefa55-27eb-47e3-b9a8-ad1ec173f91c"], - can_topup_private_money_ids=[] + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk", + private_money_ids=["a61be5b1-57a5-46ba-9b7a-11553dff8544", "c176bcea-8e81-4166-b921-ee2a0a670ec7", "07888f02-f470-469f-8013-09ceda0ab7a6", "9b808ede-a46b-4849-abe9-c302bb4d1e55", "be90d044-f75b-4c98-ae76-63f3a20de583", "02e384ba-90ab-4764-a530-6037edd0abbd"], + can_topup_private_money_ids=["61975b82-fb33-4dc7-b9bc-bc992baf89ad", "4f181a86-371e-4492-a212-914532d85de4", "0a36cb74-3723-4fb6-8747-b2815639014a", "800c3331-f2c7-43a2-986f-a535fed953e0", "3c81bd2e-0088-41ba-8fd5-9e50f857f684", "3e6f4da2-c72d-45ab-9f00-f606e6296a10", "5d819c26-09e9-41c6-adca-13aa72f645f5", "b025251a-4ebe-4e53-a372-e145caab20c7", "c74dc1e3-bf59-4cb5-89b6-599d5fe21176"] )) self.assertNotEqual(response.status_code, 400) def test_create_shop_v2_3(self): response = client.send(pp.CreateShopV2( - "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur", - organization_code="1ey-5m0KE-1-d-q3PGhF-z", - private_money_ids=["8277ee0d-fe69-4d34-a8da-2f6ad0800228", "1b95993b-a0b4-4c78-a47c-d6d02c3f61d4", "8eaec5c6-8c54-46c1-800e-e9dc19f8c530", "b45fb6b2-26ad-4955-8a04-42dfed760914", "0f63f45a-d70d-464b-a597-9ffbcc796422", "558a79be-af16-40be-bb63-5097d29e14c5", "051c7826-63ce-4f5f-a779-efcbb9e44021", "f55b21f0-a2b2-4a0f-896f-57a1c125a037", "e2000954-417d-4cda-820b-81f1f1e31385"], - can_topup_private_money_ids=["999c44db-d5c9-47f1-ac83-cd23252cfa4c", "1c2b1385-9722-4ab4-9ef2-ebf0f1b9de0a", "ca793fb2-98c0-4445-8672-350ac2806481"] + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk", + organization_code="-C4NW2-lp-y-ge7f5Nil9--5c", + private_money_ids=["53d9c527-dad7-4833-866b-9cd79641807f", "3added3e-959a-4469-8d39-acdaf1094468", "386e4949-19fb-4f3a-af6f-d18f52fd75ea", "246c5cd6-700f-4e5a-afc1-24f02d046b65", "21623f30-970f-4256-a306-840e7b90fcc1", "c2944358-17ba-4102-964a-99292d8c8fce"], + can_topup_private_money_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"] )) self.assertNotEqual(response.status_code, 400) def test_create_shop_v2_4(self): response = client.send(pp.CreateShopV2( - "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur", - external_id="fcK15L", - organization_code="98B----0C-Du-Z-M-d1-", - private_money_ids=["14fd052f-115f-4ff8-a030-a9c546e531e7", "1f8fb2db-5332-4edb-b4d9-2f9e58e3486c"], - can_topup_private_money_ids=["9c1df855-e422-4216-ab71-1b5db6b87f6d", "0371b2d1-56a5-48dc-899b-66762535e236"] + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk", + external_id="OVKpPzDCyUBg3VaVg5lQKirhrBQImBbF", + organization_code="-qCy0-6Qi-2Eu-gw-HYu", + private_money_ids=["270f1533-b398-4c12-8bee-dfbdd5cc43ca", "918098f9-b1f9-4910-8e65-e0b793dc68df", "a5baeebe-17b4-4f51-9ca7-9215b4de44c0", "ab30f4b2-a297-4c18-bb90-4400a84f51e2", "c8b08476-c0a3-4cba-8526-83de622ce946"], + can_topup_private_money_ids=["99eed397-6ee0-4fc4-af81-bd6bc48a3601", "caaf65ae-3af5-4f25-af64-ba0c1156adfa", "68c06994-dfd0-4507-9fd3-38810804a9b7", "38b7981e-9550-460e-924a-67300ec6d1fd"] )) self.assertNotEqual(response.status_code, 400) def test_create_shop_v2_5(self): response = client.send(pp.CreateShopV2( - "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur", - email="0CMZa5pywm@hrY8.com", - external_id="J0", - organization_code="ROSVf--f8V6uh-----oo-71v", - private_money_ids=["fe5b20cc-76e9-484f-97c2-384e59392876", "71108082-bf08-40e6-a1ae-9a50fa366e55", "ab10c4b2-12b0-4dea-900c-cebca34d70f1", "522c8fad-0a48-4e95-83a2-4cf1b2f3f744"], - can_topup_private_money_ids=["e6256666-61ae-4875-ad14-e4bc61f54e8d", "efbceaa0-1aaf-49ea-8223-18c871aa2ff2", "18f2fab0-7321-48fd-b3aa-d90e59d7615c", "8d88f7b8-fb37-46ef-ac2d-84eabaa6e4a2", "eedab2a4-0382-4e40-bb56-a89e72091eea", "f1f39151-21ec-456c-af1a-024a6f4bcb8d", "71132c8d-1181-46a1-8204-4a0cb5dea6a9"] + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk", + email="9whlF6CVlM@KFHk.com", + external_id="HEGRWUBVUZa1rmAxzFUF6", + organization_code="P-", + private_money_ids=["8c7d46d3-3f18-467f-a96a-4b8a600daa44", "ed8a4f16-96f8-4f74-b8f2-4267e97de3f3", "29784c37-bc2d-40e5-88fe-09307dbe535e", "90b4bce4-5312-4e1c-abe9-3edbe62b54c1", "69ed5fc1-f2e1-471a-b86a-81774aaaf1d8", "7095212f-e4b6-4c89-9da6-5929da76f9c6", "d197d8cc-b543-4942-9fdf-805b0b52ae31", "3edce63e-ad18-4858-86de-f4dd9016afec", "51201c76-217a-4605-8211-4461d2af427a", "2a1d33be-2e53-4fc3-8528-c23dc72335fb"], + can_topup_private_money_ids=["c2d4fb9f-b731-4be8-bd60-3ac523fc7c0c", "ef8f2447-5086-4da0-bcb2-db2780e079c5", "c3867c06-2791-476b-abdd-065e7e5e540c", "d15debd0-0532-4a0d-ae56-942545d41008", "a926f31d-6a49-4916-90f9-aa02547bc73e", "48a18b37-8d7b-4d48-be89-a085f1ee2557", "fde796b7-db24-4fc5-9ee5-91a70488dd5c", "cf62acb7-30a8-49a9-bef3-ba6b0eff43c2", "d3beb8b9-c73a-4edd-a008-7bbc7537621f", "345c0d12-b142-4029-8228-74b1531a389e"] )) self.assertNotEqual(response.status_code, 400) def test_create_shop_v2_6(self): response = client.send(pp.CreateShopV2( - "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur", - tel="09680-125", - email="vj6KZvk9I1@4B0w.com", - external_id="Jjv5PZV8BzD6xxeVZJr6fOg9zsFZTTh", - organization_code="E65g-oq3", - private_money_ids=["c564b6d2-53f0-4867-beb8-e0ab87b2eaef", "c8e5153e-fab6-4ffe-b7b5-9e2d37f59c0b"], - can_topup_private_money_ids=["08f6d8b5-5355-45d0-a58d-9efa1bab4e17", "b3ea9de3-e7e7-4e9b-9a2e-478504bdea45", "ce015e0b-c7c4-4d05-ba34-b1d0adcaf985", "c021618a-1369-4885-a8d5-e1f47442cbce", "6c47bfee-3770-40dc-b798-492583952f96", "e06dc6fe-52a1-4334-bc57-21e9716a335c", "f11d8fe9-f84f-4777-bce4-ab03a4cf6e38", "56d54687-b105-4e99-8510-ca6965405e7b", "03cf5603-cdf9-4c8a-84ac-f0aac35748d9"] + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk", + tel="0335871", + email="30l6vspNWH@9u8x.com", + external_id="q2mxjIub5W9d4fa79SnOHSfjKk", + organization_code="0-L---u--n-6--ED9", + private_money_ids=["6fe2a41a-c9a5-4c85-9b51-1a56f3a4382a", "5a103506-7942-4106-8d06-e2b6b4616a82", "1ee4c331-8905-45b5-8253-3682b12dcacc", "ce27ae52-5154-4042-b49c-9ef0df91e49c"], + can_topup_private_money_ids=["9daa9bf0-836a-4f62-9e74-4c02af17e701", "8b5851b6-9517-429d-ab1d-b5d1cd633afd", "ea31d584-b21c-48ff-a0c8-5a17ba55870e", "cc0b6365-b4af-4a44-aea8-2b4b1de69cac", "e4b0b583-3981-4c78-9ed8-6296ac1c47e4", "b3ee081f-6bc5-4fe7-a68a-836029533db3", "ce16574f-c6ff-4d97-b8fb-c928745d48df", "a31d4647-846c-4ef3-9ae1-9d5661afcb24"] )) self.assertNotEqual(response.status_code, 400) def test_create_shop_v2_7(self): response = client.send(pp.CreateShopV2( - "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur", - address="Z0zhmmU4qjfXM0iaeCNkqwEBU16Jq12CxO1vOYhEe55St2TiyraOemZRjiAchwL6b1jB1Cg1nBSU78Sxgo6Taagdxx1mLakIn0CpIISvuAWSZZfn8krGsRTJuHW0p1Ch4TRpHb3xaMjpGa8gaJHdl18J3d41BsVgtiwJjEQgl2khqccOMjuNbV7", - tel="0665-73085245", - email="DuKxo1Vi0y@j9LZ.com", - external_id="0SyJWAaPdTI8GQRoTVVL", - organization_code="-Hl--Y-x-", - private_money_ids=["ca99cead-e794-432f-b255-a62ce1fe2366", "0b3a459a-26a2-40b2-8bf4-1212cb0f6a9c", "8af2e78b-4ebb-4d11-8446-d160c5889968", "b321057e-8c82-4024-8f2f-b5ca7e722aaa", "c9c559b8-d20e-4048-87b7-84b9ab694894", "7e3f9b2d-e4ad-4c2c-b616-0c50a099e310", "cdb77066-cda2-4a8d-93c0-bfb69d4cebb1"], - can_topup_private_money_ids=["1345d4dc-8f38-420b-9277-7ecfcc5a4bd9", "60c7287d-bf62-4804-8267-673cb8d2c8ea", "1294f47c-da68-4b22-aa6e-df2b01a70e5e", "689fb969-0f20-4fac-a500-1c789c78f5ca"] + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk", + address="pjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYV", + tel="044796154", + email="GYQa0QPCC6@0HT3.com", + external_id="9N8hkxoSQFYDUU0HuG332kYdREQC", + organization_code="7X3u--QRhnw-uws", + private_money_ids=["ff96f8fa-1aa3-4899-9a5f-dd7025556a15", "390ea6de-ee08-45b0-80e7-87aa0f144269", "14e7b178-3bf3-4304-8299-b24bd12b845a"], + can_topup_private_money_ids=[] )) self.assertNotEqual(response.status_code, 400) def test_create_shop_v2_8(self): response = client.send(pp.CreateShopV2( - "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur", - postal_code="202-8400", - address="HCrQ2sJdGjdCNpP7vZgP6rij5EfD6DtnR73iSkAgC1lY6yupHUdfLL0DHjlwSaRnmrgoUZ8HPuG9MGiaGFzsfWWWy9Im8Ux", - tel="00-2655-826", - email="LEYZVZOefO@3wRM.com", - external_id="sdsI7UYvxBYHMaYiviU38jq", - organization_code="g-1K-mz-89-lch-1mHfb-Z-rLn8T6--4", - private_money_ids=["3109ea51-7edc-41cf-93ee-80c223f044af", "8bb000a1-1fce-451c-bb5f-46a60ebcbe78", "4e2a2e2a-b08b-4964-9003-679f22c4b63b", "ecb51cf5-cfaa-4f7e-b29c-224fc442c477"], - can_topup_private_money_ids=["17bc1437-dc67-44af-abea-2251c0436433", "5e8b6677-d5af-44f0-9c20-1fe5e481cf66", "d9e228ab-8ab7-46ab-84b2-559e6d54142f", "d07c4d8c-619c-4149-a921-6b6c1964d134", "c49decc5-6835-4fa5-9a88-42d7bb77c4f3", "e137b692-0e22-4b53-a565-e1e3a7a276f0", "87d74d99-cfdc-4f49-9b8e-ac71f881c3f2"] + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk", + postal_code="753-2948", + address="QDv9TW3tonru5DxxR1kiR4daTST401zYU9O5bmxo5R8HDeIrg38UDixRQOsOxJyiut30oRsSLi4FAWjvNFlMGhO7MjoFiHLtN9Yqy7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7", + tel="047-0365719", + email="MQbpvWdRIf@0j2N.com", + external_id="Gpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvI", + organization_code="-kA-d-vVP24Hv5n4i--Ni-9-Jl-68--B", + private_money_ids=["5b22f3de-40f4-4db9-bee6-5bcd910fc4df"], + can_topup_private_money_ids=["4799467f-8c8e-4e32-94e8-ea642c57b6fd", "3e93a12c-0980-4397-861b-c6d2adad19ff", "deea532f-a234-4cdc-9a82-8eae337654c7", "bee6e6ed-b31d-49c3-b39c-fb6c375ec5d9", "bfd7fa9a-5453-46dc-a46b-a27e07ce50d2", "fd5eae2c-fde4-44bd-89c8-2e6c8c30a3c2", "61a7f96f-a5b7-4490-a95c-884da1852dc7"] )) self.assertNotEqual(response.status_code, 400) def test_get_shop_0(self): response = client.send(pp.GetShop( - "c7d33c82-4db4-47b3-b0de-f09941ac0ce3" + "94aa6ff3-6fa8-4397-ac2e-4191001a3a51" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_0(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985" + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_1(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985", - can_topup_private_money_ids=["0210d22c-8577-4f5f-a463-7a9a9ea7a5bb", "f7b84893-35d6-4f4d-9562-a925a2d4a6a8", "9f953b8d-48b7-45ba-989e-251388c19545", "20efc542-437a-4147-8e75-d78f0213da79", "171bb0ba-8ace-4877-8fac-26330e578c1c", "1b0a608d-2b31-4b2e-9423-46684c33d14b", "834674d8-da82-48a3-a1c9-903a91ebc3a7", "ae0cc4f9-182e-49a0-a27f-8d880c2fc994"] + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846", + status="active" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_2(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985", - private_money_ids=["3ac1c52a-2056-4597-96e8-bca3475b9fe6"], - can_topup_private_money_ids=[] + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846", + can_topup_private_money_ids=["b31c69d0-dc36-4ee2-afca-703fa9e9afa3", "ad6ccbbd-0c2c-4518-93bc-d05f6be860e0", "bb84d1eb-9cc1-4ea4-8dbb-19cee0da1545"], + status="disabled" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_3(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985", - external_id="d3BmnZxBBpR9nxMbDW2W", - private_money_ids=["466c0391-85b9-49a5-aefe-bec9f17a6c41", "0a9003f5-717b-4776-8ab0-cab717da3083", "2754c912-b7d4-4f39-bd23-9c3c35fcc64b", "ff2e4aa7-26c8-45d4-aafd-2aa6e7071d92", "6f6ac7bd-3718-4516-875e-594b58e1659a", "dfc48ed8-a598-4a99-8911-5d39d2a6535d"], - can_topup_private_money_ids=["0ae9bcaf-542b-4fe3-972e-0022ffbf553c", "5dc42ffd-1427-4fb3-a230-756efae02d3b", "06011fd6-5a9a-4948-a426-0f644c452a6f"] + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846", + private_money_ids=["fb4633d7-2a5a-43b0-b8bc-a0875a2fd7bd", "3bb16283-5c22-4a01-ab6f-3f9be2a19735", "4412ef2c-69ff-499f-a4f2-19a8adf5dbbf", "4edda3f4-b3d8-41e4-9f28-3feb1abe756a", "a2aaba43-cd0b-4c5a-b606-054bcfb0c6de", "4440448f-3794-4e15-9058-9114b64f66ad"], + can_topup_private_money_ids=["8ffb3e4d-86f8-44b1-ab7f-2f3d07e56a48", "6a29f496-ff14-47d4-963d-9b86bc6376e2", "840b2470-0b21-4eaf-92d2-0f85346dbca1", "64d68188-88f8-4e37-b909-0f87c1e8cd9f", "ff679cae-1a71-47ef-81c6-5ad45501dd2f", "5c144aaa-1e28-41d6-a9d7-22de755aecc7", "0a6d636b-ff0d-493b-a23f-6637f42d7b23", "8b362472-c602-43f3-8b11-631baa686ee7", "028cd575-fe40-4fb2-a9e8-f280168cb8ef"], + status="disabled" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_4(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985", - email="9MOLvGZ61a@dHIt.com", - external_id="OUDj8FvTz5QBGaQdIsgWXQM5x", - private_money_ids=["b60e9931-c279-46d8-8a2f-7a555a11aee8", "82ef2870-1e5d-4302-9032-33141bca9d9c", "8094fda9-ce97-45e3-9e94-a0ea8f480585"], - can_topup_private_money_ids=["01499ad4-92fc-4fe9-9aa0-6e556514c0ee", "5d5f9d35-24bf-47f2-bbbe-14fa7145d111", "24eade2d-041e-4031-b0d6-e8168d5d65dd", "7887d188-342f-44f1-8b42-360ef580a4e7", "f9da63d9-850b-4c81-a0e6-5bfee560b9e5", "b8b9e23c-a6a4-4050-9e7a-0f5e3af75cbb", "9a752369-02f9-46a0-a0aa-4507823ca2f6"] + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846", + external_id="xDsfU3TC1A8fV5nkzyaMo6HNFjN16Mt1N", + private_money_ids=["6fc69707-b9ce-4d2e-88de-a5fc1c20eaa4", "6e9bebfb-de86-4ad4-b092-bf978165ffcc", "01ee595b-0709-4396-93ee-8dd7ca20ee9b", "824328f9-a320-4fcc-8349-59e9208fa5e1", "ef731053-5c6d-45f8-82a1-46cf83be1e19", "00a528e9-c261-4ee2-b981-bdc3d4377e2c", "269db146-c9bd-40a6-9bc2-1e17d2144255"], + can_topup_private_money_ids=["1b60ec80-cc7e-44eb-8d4b-52aade32a909", "683c911c-e277-45cd-b6fa-0b10cf7582d2", "2be7f468-90a8-4f8f-aaae-2ffcd0a999bd", "6e5bfc40-8eae-48da-a4aa-c4ff7e0cda43", "976d8a9e-02b9-470c-90c9-7b8bd03331e2", "54a9d3f8-a79b-49ff-9249-1e6fea4a79eb", "97cb9e09-f43d-42ae-b215-85d34ab5b8cd", "81a1fdbe-d904-48ab-a3c1-a8aef698cc24", "b19369e5-a7b6-4e19-84dc-319178cce90c", "60b09bdf-e798-4e0b-89ac-c6cc52986970"], + status="active" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_5(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985", - tel="08-457-6396", - email="3wthBO4Fjl@bNSG.com", - external_id="xbjuEMAeQ", - private_money_ids=["0ba4caef-c75e-4ce0-ab83-df8ba07d8aae", "59827ee1-2a04-4e20-9c55-a73abe13db4f"], - can_topup_private_money_ids=["b844396b-5a2c-4145-8a26-9f80a48d61de", "cf3de598-6aa7-4c4d-afed-2847dd56a9c5"] + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846", + email="fhwjho9qAj@035e.com", + external_id="2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6", + private_money_ids=["d4d9610a-1ab9-4e52-bc6c-c7ffbd99782a"], + can_topup_private_money_ids=["c2e75275-db71-40cf-8229-3d7f24fc1449", "c6326dce-416d-43b4-9122-c73773e18737", "a59e9d5b-702f-4cc2-8a0d-b0286c51ea79", "743b7271-afe9-427b-aafa-abab8d23aa86", "1f840356-cfd1-4485-af16-7007d9dba665", "1d4d183e-d10e-433a-8632-9cdc6c751e60", "37dfec06-f6d8-42bd-b92a-4f012f95706d", "784d2a2b-7ed1-491e-8a4a-4069a0b84fc5", "a255d145-1a4c-432c-94d6-96fdac0a94ba"], + status="active" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_6(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985", - address="3qtgKMvjDsKXEFhYl0BRpqUDYmqwBJzhV6dtnsmaJHCLyhHLjUCzekHgQwDCfsWS6JXTLuG14K9HQGpPICoaRhYRcaR59QCffGIaaiPRXQUB9KSDwnfHx9gXjCberbb7S8DARwQI05I6eJLYrFtVTc8XF6Iz7He5QYfhFsP0lBKY5Zym6qbNd5Gezpxyuuv2alBrKW", - tel="04008708731", - email="VHCWblj8QD@bDxz.com", - external_id="olTpcO7N2cnroE2", - private_money_ids=["e6126752-7bf0-44eb-8949-ff9894dfbbc9", "6c39f20a-07a3-4f76-9dad-ed9263274fe8", "93deb7b8-1aa3-4da4-a045-bfbf3386b98a", "53eb93f2-c521-496a-9d63-646c44ad88b3", "cfad8563-86fa-4b31-ae4e-aa5ed8a0f1ca", "4408da8d-2516-4663-885f-b65ee7f8ecf7", "8d41ae0b-acc8-466c-8e2c-5cd8ee9e689d", "9edc0770-2513-4f8d-97ea-dcc5a7b08728", "18083187-4ed5-4386-9178-340da1006446", "27998550-7798-431a-b95a-b49f34912262"], - can_topup_private_money_ids=["6d3278ce-e389-438a-b8fe-281a643b057d", "6d86dd52-0219-466e-9637-23bd5304ae88", "b262c417-fa9c-4d26-a451-dd938291a11c"] + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846", + tel="036-41810", + email="sn1Jp9ctBv@Xrxj.com", + external_id="g2Jofbfd8lI7ca3oyQQIsU", + private_money_ids=["229bccba-38f2-40c3-8d1f-a21f5cd5e904", "a826f0b2-1310-4020-85da-162b6c63e80e", "a931ac4d-b9f0-4ac5-b418-611599c53457"], + can_topup_private_money_ids=["e5aedc00-f9a5-4313-9bef-d972ebf5c9fb", "b6a3a834-21a2-40c9-8144-4e540c040048", "6eb08096-d58b-435f-a454-3ed0f92c5073", "9dbb2310-47ea-4a68-8d2d-885598824c24"], + status="active" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_7(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985", - postal_code="991-6759", - address="2KNkDfzWRiioT9QYFPklAn30gj1CmaOUBeCZvfeO7Sgh2QcnuYHCBxXNgm1qjvh6lwQ5YfQRfoj2wOYmg9391o91QzyCQzu6PMATfONJfxW9vGUYm5paU0VcU72VDfrMfAvz54ATPoiAdZgk", - tel="055594-2253", - email="007xOusoKd@SFtN.com", - external_id="kw4qjPQJ7jTB834R", - private_money_ids=["8e19438a-8a79-4242-9aeb-7e77fc0c2373", "71eaa4ff-ff49-4d7d-836a-f6da4e577988", "ff4c8589-5792-4a1b-9f31-15f0bbd072b1", "6c0025fc-990c-44e2-add4-e41bf35479cd", "4f999de1-c144-4b3b-a972-22ce23116fb4", "c26cbc47-bd32-4125-a014-7e1390d527a9", "22d2c146-1e18-4013-969a-54e3aba56417", "80e9cb52-3dc1-4c49-8c54-13d0981cd917"], - can_topup_private_money_ids=["f6851f51-1394-40cc-bba3-5505bf3e0e78", "25b56e66-2efa-4485-b7a6-830c9f77fa0d", "48922c88-e2a4-4baf-9159-fd0a722e55fa", "05871c71-811b-4069-a019-7258bf6c21f6", "4c9fdc04-4431-40a7-a364-50dc3c27cdc2"] + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846", + address="WbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si7WktomTSIs3sss0bSZ1cR5rMDg0iBD2et6R89vRehYIZbMh6MfShA8D4Ev7O7TGT70LQ2epxhXvfJrqwCwzvGv5tXB9341AdQSvr2jD2CPBEg6qDXhSH8hafJy0sDTnMPtA", + tel="06404524134", + email="8JZcqIcqZB@2nkh.com", + external_id="unnh29qWQZz14xB891rPV7F", + private_money_ids=["330fe064-7b87-4b21-8844-6a809ff31b65", "130e4012-1e10-42de-9bc2-feb651572531", "70117676-7163-41ff-ba24-80a231d2e4cf"], + can_topup_private_money_ids=["74275e60-7e9d-44b1-bc0a-aa757b9715bf", "98fa8dce-3f20-441c-8802-dc42f4eb1394", "4adcfca1-cd41-4064-b200-949b236a9dba", "da151a7c-775f-4236-9a0b-81fed1b625ec", "4aff2fbc-31ff-48e6-997a-416207c9ace6", "eebfc1f1-389d-40cb-ac6e-8bfffea59a73", "6abc231e-fd47-4eb4-bf2e-3e30873c1003", "1cd8f3ac-ecf7-45da-af82-823013980552", "df7d3e02-8d80-45db-9404-e6390aa62230", "152b702d-66ed-4dd4-b680-fe7c47425f39"], + status="active" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_8(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985", - name="YjUZmnwyS1mAzTO6PEOOvujUYEjG1bsd93HwfuPWrouBgDO", - postal_code="1471981", - address="cuEYpTU2CQDBEdrTGpzQaoH7roprIUCAGYbFfz98qEYs3fTBqIMEk6UFEGcRCIsN4Zfz8ZjlCqkGEh1KM2WnPd3zzJU6PO3sdcI8PDT08v74BI2VPe8qds4I2MEA4gJjHtGd0BbRBDVeSYn8uvrsJwmXqAKgViXf2eJim1RdN4XCU5aG5xcoPdJ6AA1qyCCpsvposWm2l41CxysbDiZ7jcWk9v3rFUsJH", - tel="089039-7525", - email="HWJNhtXiYy@5phV.com", - external_id="xCRdiZLpJEvBgW4klcH2n", - private_money_ids=["e5bdbf79-6230-4bbd-8e3c-33107e87dad5", "59d21014-28fb-486d-a172-52033e4a7844", "605c6d4f-befe-4ef1-a6c0-998dba80741d", "c1b69323-66c2-40ac-86af-4c59e32f364e", "5f2d6eee-751f-474d-ad24-37cc9f8a058f", "15cb1d94-5b09-4761-b023-6ba202431539", "7682a948-55a0-4c9e-8cd3-fbe8b9556d3f"], - can_topup_private_money_ids=["3b9dc5f7-0e15-4a9d-8b06-3126f3bd9df5", "95b9ef20-1ec2-47da-9c3f-62cebf498d1b", "98f92f48-6af7-4048-8cf5-47460e5d62fe", "316160b2-5273-4efd-916f-0d2b17607d72", "65d9b182-2ad2-4592-b0d0-0773a45ae85f", "7efe4b5a-3028-4517-b480-e0fe23bff0c5", "ce1c79b7-ec36-44ad-81f7-65b81b9476cf", "3f10b77c-2427-4100-8058-99827749ad6a", "50eee773-bc75-41e4-9291-987004a9b043"] + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846", + postal_code="9159696", + address="Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZ", + tel="078-521940", + email="MJt8otXLMw@iqJK.com", + external_id="isPTXvJ9APWVf0", + private_money_ids=["92992ac0-d5a1-495c-8dee-f5eb89bf5f49", "63c3c6b2-8ae3-4c70-9be9-08da6506d272", "6b4fe55f-ca77-482f-a874-e8e0f93f1982", "10a8cb90-52fd-4930-9d8e-49a336045f1a", "d49d075e-133b-45fe-9ab2-03e421ce3a68"], + can_topup_private_money_ids=["f42f6a9c-3382-4873-8990-bf189801a753", "4286dffb-a63a-410c-b88f-69185e691ece", "69340d9f-d0ba-4dbd-bea2-27d828808784", "a51c2ea7-df42-4bf5-8089-f5e81acec04c"], + status="disabled" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_shop_9(self): + response = client.send(pp.UpdateShop( + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846", + name="xPxLgPF7PH9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0", + postal_code="254-9276", + address="S2N5S6EEO5Bp0TaBrmndiCNxXXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG76qE4T1vOrKA4IwgS5AgijWRyxneekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11T", + tel="0803-6788748", + email="OxFwqhkpZV@aDhp.com", + external_id="Pp5bfKV", + private_money_ids=["5b916e74-2639-415d-aac4-85d01ac82bd9", "1adab1ca-759d-4941-ad03-88259ad990d6", "8a7edefa-7f56-4080-b69d-929559dfad03", "56554176-a4fc-4a79-898a-022549ecb082", "a6d07e10-80b6-48de-a493-7c114d74d5f9", "55cbfa77-bfe6-46fd-9d70-550fb0e357a9"], + can_topup_private_money_ids=["38663f4b-6c69-4f27-a3ec-14bd942323ea", "3d16e328-5cb5-45bd-a0fa-a53e1991dc67", "72e207b8-5670-46e0-aeb5-3cb7a367a504", "c86cee22-97eb-4aba-ad46-c1b011077316", "a443107f-c6bf-48a8-a8c4-6a0cbd15b459", "64681762-cfd0-4acc-988c-456a0cf82f01", "91708575-69db-4777-83f2-7970ec98f3a5", "c2a01f65-2c44-439d-bca2-89b084495808", "06e3e241-1aa1-4abe-b949-68c4bc615459"], + status="active" )) self.assertNotEqual(response.status_code, 400) @@ -2998,497 +3668,529 @@ def test_get_private_moneys_0(self): def test_get_private_moneys_1(self): response = client.send(pp.GetPrivateMoneys( - per_page=4872 + per_page=6737 )) self.assertNotEqual(response.status_code, 400) def test_get_private_moneys_2(self): response = client.send(pp.GetPrivateMoneys( - page=7705, - per_page=7080 + page=8245, + per_page=5538 )) self.assertNotEqual(response.status_code, 400) def test_get_private_moneys_3(self): response = client.send(pp.GetPrivateMoneys( - organization_code="ON-Y5tjP69-c--Qd", - page=1425, - per_page=9445 + organization_code="OTg-1wn4-v-Swg5-l", + page=2357, + per_page=2440 )) self.assertNotEqual(response.status_code, 400) def test_get_private_money_organization_summaries_0(self): response = client.send(pp.GetPrivateMoneyOrganizationSummaries( - "f9c5594b-0190-4951-9e2c-77c897a5751a" + "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2" )) self.assertNotEqual(response.status_code, 400) def test_get_private_money_organization_summaries_1(self): response = client.send(pp.GetPrivateMoneyOrganizationSummaries( - "f9c5594b-0190-4951-9e2c-77c897a5751a", - page=2382 + "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2", + page=3575 )) self.assertNotEqual(response.status_code, 400) def test_get_private_money_organization_summaries_2(self): response = client.send(pp.GetPrivateMoneyOrganizationSummaries( - "f9c5594b-0190-4951-9e2c-77c897a5751a", - per_page=8427, - page=3710 + "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2", + per_page=786, + page=9388 )) self.assertNotEqual(response.status_code, 400) def test_get_private_money_organization_summaries_3(self): response = client.send(pp.GetPrivateMoneyOrganizationSummaries( - "f9c5594b-0190-4951-9e2c-77c897a5751a", - start="2024-01-01T14:07:31.000000+09:00", - to="2022-06-21T06:43:28.000000+09:00" + "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2", + start="2021-07-08T02:56:08.000000Z", + to="2023-06-06T23:02:57.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_get_private_money_organization_summaries_4(self): response = client.send(pp.GetPrivateMoneyOrganizationSummaries( - "f9c5594b-0190-4951-9e2c-77c897a5751a", - start="2023-08-22T08:11:41.000000+09:00", - to="2018-06-29T14:30:11.000000+09:00", - page=2509 + "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2", + start="2023-06-27T10:38:34.000000Z", + to="2022-11-02T13:31:55.000000Z", + page=2674 )) self.assertNotEqual(response.status_code, 400) def test_get_private_money_organization_summaries_5(self): response = client.send(pp.GetPrivateMoneyOrganizationSummaries( - "f9c5594b-0190-4951-9e2c-77c897a5751a", - start="2017-12-10T07:35:27.000000+09:00", - to="2020-06-12T13:48:48.000000+09:00", - per_page=4690, - page=6132 + "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2", + start="2022-12-20T19:43:54.000000Z", + to="2023-05-23T12:19:55.000000Z", + per_page=7864, + page=7955 )) self.assertNotEqual(response.status_code, 400) def test_get_private_money_summary_0(self): response = client.send(pp.GetPrivateMoneySummary( - "1b466ba8-55d0-40a0-8b9b-3c4e820dad5f" + "7a759460-1bbe-4529-a2c7-cd0126587642" )) self.assertNotEqual(response.status_code, 400) def test_get_private_money_summary_1(self): response = client.send(pp.GetPrivateMoneySummary( - "1b466ba8-55d0-40a0-8b9b-3c4e820dad5f", - to="2023-11-28T11:22:53.000000+09:00" + "7a759460-1bbe-4529-a2c7-cd0126587642", + to="2022-12-18T18:44:19.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_get_private_money_summary_2(self): response = client.send(pp.GetPrivateMoneySummary( - "1b466ba8-55d0-40a0-8b9b-3c4e820dad5f", - start="2020-05-24T18:23:28.000000+09:00", - to="2016-07-26T01:51:13.000000+09:00" + "7a759460-1bbe-4529-a2c7-cd0126587642", + start="2022-01-12T23:51:33.000000Z", + to="2023-10-31T16:30:14.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_0(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01" + "db039b47-c6ba-4a1f-a67d-beb1047755c4" )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_1(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", - per_page=3635 + "db039b47-c6ba-4a1f-a67d-beb1047755c4", + per_page=4002 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_2(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", - page=8814, - per_page=671 + "db039b47-c6ba-4a1f-a67d-beb1047755c4", + page=511, + per_page=1278 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_3(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", - to="2019-07-23T01:08:01.000000+09:00", - page=1061, - per_page=6541 + "db039b47-c6ba-4a1f-a67d-beb1047755c4", + to="2020-09-10T16:31:38.000000Z", + page=3763, + per_page=629 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_4(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", - start="2016-12-31T10:53:02.000000+09:00", - to="2023-05-08T15:39:29.000000+09:00", - page=7196, - per_page=7788 + "db039b47-c6ba-4a1f-a67d-beb1047755c4", + start="2022-11-21T17:05:06.000000Z", + to="2023-03-02T02:22:10.000000Z", + page=6317, + per_page=9415 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_5(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", - is_modified=True, - start="2025-08-08T19:15:15.000000+09:00", - to="2016-06-23T11:03:31.000000+09:00", - page=6121, - per_page=1352 + "db039b47-c6ba-4a1f-a67d-beb1047755c4", + is_modified=False, + start="2022-03-16T05:50:24.000000Z", + to="2024-02-11T01:48:16.000000Z", + page=7936, + per_page=5716 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_6(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", - type="payment", + "db039b47-c6ba-4a1f-a67d-beb1047755c4", + type="expire", is_modified=True, - start="2022-10-03T04:47:28.000000+09:00", - to="2020-06-28T15:24:41.000000+09:00", - page=4552, - per_page=8478 + start="2021-05-08T23:32:39.000000Z", + to="2024-06-08T07:06:40.000000Z", + page=1203, + per_page=872 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_7(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", - receiver_customer_id="4bfeb1cd-a2fa-4fa5-93d0-2c0dd8c04ce0", - type="transfer", - is_modified=True, - start="2017-04-01T05:42:00.000000+09:00", - to="2025-04-17T22:34:09.000000+09:00", - page=8585, - per_page=5913 + "db039b47-c6ba-4a1f-a67d-beb1047755c4", + receiver_customer_id="92bb9347-24bc-4fa2-a73e-87e17252b237", + type="topup", + is_modified=False, + start="2024-02-29T07:56:24.000000Z", + to="2022-06-25T05:33:58.000000Z", + page=2353, + per_page=751 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_8(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", - sender_customer_id="60db07d8-5eb4-40c7-ba2a-a5211ac0bd0e", - receiver_customer_id="d8128818-e537-46c0-bdd4-3e371623cacf", - type="transfer", + "db039b47-c6ba-4a1f-a67d-beb1047755c4", + sender_customer_id="9a6dcfed-834c-4c4d-9ae6-1adc720116ee", + receiver_customer_id="560b2307-d12b-4b49-af1c-e15962b842d4", + type="topup", is_modified=False, - start="2016-11-22T14:49:47.000000+09:00", - to="2023-09-25T01:21:44.000000+09:00", - page=7699, - per_page=7048 + start="2023-06-18T13:29:53.000000Z", + to="2022-08-22T01:14:12.000000Z", + page=9855, + per_page=7711 )) self.assertNotEqual(response.status_code, 400) def test_get_bulk_transaction_0(self): response = client.send(pp.GetBulkTransaction( - "8300a4b9-cfd7-4739-abb1-07e548bc1afd" + "840450ba-1c9b-4ef1-9283-ccbcb58e551d" )) self.assertNotEqual(response.status_code, 400) def test_list_bulk_transaction_jobs_0(self): response = client.send(pp.ListBulkTransactionJobs( - "1e4cffcb-fa3a-4e0b-889d-159adda948b7" + "a780f0c8-b100-407f-a44a-97da1094b925" )) self.assertNotEqual(response.status_code, 400) def test_list_bulk_transaction_jobs_1(self): response = client.send(pp.ListBulkTransactionJobs( - "1e4cffcb-fa3a-4e0b-889d-159adda948b7", - per_page=2419 + "a780f0c8-b100-407f-a44a-97da1094b925", + per_page=1496 )) self.assertNotEqual(response.status_code, 400) def test_list_bulk_transaction_jobs_2(self): response = client.send(pp.ListBulkTransactionJobs( - "1e4cffcb-fa3a-4e0b-889d-159adda948b7", - page=9378, - per_page=2745 + "a780f0c8-b100-407f-a44a-97da1094b925", + page=6410, + per_page=6511 )) self.assertNotEqual(response.status_code, 400) def test_create_cashtray_0(self): response = client.send(pp.CreateCashtray( - "c3fa6687-a405-4fee-b010-b4881db5bacd", - "4065a9ff-76b5-44e3-aa10-1100c05a6d95", - 4823.0 + "7c6ab6c0-0844-4b18-888f-53c54776f2bc", + "f65dabd6-35be-43a6-a601-c82787ab55dc", + 1225.0 )) self.assertNotEqual(response.status_code, 400) def test_create_cashtray_1(self): response = client.send(pp.CreateCashtray( - "c3fa6687-a405-4fee-b010-b4881db5bacd", - "4065a9ff-76b5-44e3-aa10-1100c05a6d95", - 4823.0, - expires_in=1775 + "7c6ab6c0-0844-4b18-888f-53c54776f2bc", + "f65dabd6-35be-43a6-a601-c82787ab55dc", + 1225.0, + expires_in=5673 )) self.assertNotEqual(response.status_code, 400) def test_create_cashtray_2(self): response = client.send(pp.CreateCashtray( - "c3fa6687-a405-4fee-b010-b4881db5bacd", - "4065a9ff-76b5-44e3-aa10-1100c05a6d95", - 4823.0, - description="mvcVzayJGxdqzoO9uXS4XBDN0o0Mu7ieKvzIZjqj6ciQDbUq", - expires_in=3605 + "7c6ab6c0-0844-4b18-888f-53c54776f2bc", + "f65dabd6-35be-43a6-a601-c82787ab55dc", + 1225.0, + description="BtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQiuV", + expires_in=3968 )) self.assertNotEqual(response.status_code, 400) - def test_get_cashtray_0(self): - response = client.send(pp.GetCashtray( - "92df5a8a-34d4-431c-8cf1-a69cd05e3f5d" + def test_cancel_cashtray_0(self): + response = client.send(pp.CancelCashtray( + "a1e90ffa-b03a-4e8f-bc92-8264659cbd0d" )) self.assertNotEqual(response.status_code, 400) - def test_cancel_cashtray_0(self): - response = client.send(pp.CancelCashtray( - "ca73d7e6-6ca2-42b5-9b16-cf9eb65c9a49" + def test_get_cashtray_0(self): + response = client.send(pp.GetCashtray( + "5de26254-9b80-4026-965b-ac60aac618a1" )) self.assertNotEqual(response.status_code, 400) def test_update_cashtray_0(self): response = client.send(pp.UpdateCashtray( - "eb79417e-11ba-41b0-97ba-a66dfab9dd91" + "7a7615b2-7e06-4690-be59-d1d6f8b72656" )) self.assertNotEqual(response.status_code, 400) def test_update_cashtray_1(self): response = client.send(pp.UpdateCashtray( - "eb79417e-11ba-41b0-97ba-a66dfab9dd91", - expires_in=7250 + "7a7615b2-7e06-4690-be59-d1d6f8b72656", + expires_in=7119 )) self.assertNotEqual(response.status_code, 400) def test_update_cashtray_2(self): response = client.send(pp.UpdateCashtray( - "eb79417e-11ba-41b0-97ba-a66dfab9dd91", - description="V3ZqnN3F5j5hei5eenuWOLqxpAqKhr1PiatJCFbxFePHe8fLp7pWtBDbGEkzsRtHz3ymmInXbIX7AIIYKuFyd9WkOS8uJqFVIWZBtq3jnfd5KTcWHD2AadOYe9kazoxyRuU9Z", - expires_in=6943 + "7a7615b2-7e06-4690-be59-d1d6f8b72656", + description="gkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhm", + expires_in=2764 )) self.assertNotEqual(response.status_code, 400) def test_update_cashtray_3(self): response = client.send(pp.UpdateCashtray( - "eb79417e-11ba-41b0-97ba-a66dfab9dd91", - amount=6426.0, - description="8Q2HvADi2W3bSFZd8xGhm9VbcZgOZ4yYRMkHKY2yx9gLKmBFLvqK55BnlHTaFsTxQXtMZL6XWgDmeak1eoliBFeYUr35I7ta0sw71srL0z9GEG3PXvnl3BKAcPvmXPfih5KNNjURd2N8Uca7AszKQRtnK9OFQAZ", - expires_in=548 + "7a7615b2-7e06-4690-be59-d1d6f8b72656", + amount=8411.0, + description="iBoGU1OxUmIl7jlWxrfEKMQ8FCs062PLb59yfzniw8Z7TrjWh0BQdrr7bOC0AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQ", + expires_in=3132 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_0(self): + response = client.send(pp.ListCampaigns( + "7ffc57dc-0aac-461e-9a16-7e94e74d21a7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_1(self): + response = client.send(pp.ListCampaigns( + "7ffc57dc-0aac-461e-9a16-7e94e74d21a7", + per_page=48 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_2(self): + response = client.send(pp.ListCampaigns( + "7ffc57dc-0aac-461e-9a16-7e94e74d21a7", + page=2839, + per_page=34 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_3(self): + response = client.send(pp.ListCampaigns( + "7ffc57dc-0aac-461e-9a16-7e94e74d21a7", + available_to="2023-01-03T16:21:24.000000Z", + page=6621, + per_page=23 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_4(self): + response = client.send(pp.ListCampaigns( + "7ffc57dc-0aac-461e-9a16-7e94e74d21a7", + available_from="2023-08-15T08:17:07.000000Z", + available_to="2024-11-27T08:40:33.000000Z", + page=3440, + per_page=13 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_5(self): + response = client.send(pp.ListCampaigns( + "7ffc57dc-0aac-461e-9a16-7e94e74d21a7", + is_ongoing=True, + available_from="2023-01-31T09:01:01.000000Z", + available_to="2022-10-02T08:15:52.000000Z", + page=4017, + per_page=25 )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_0(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["29dda31b-b43f-4939-83cd-5730eea9c2af", "8c61658d-d0de-493c-886f-f5cc155a950c", "f88eda2f-f491-4613-9f36-f461f57277bf", "a3fdb404-ea20-44bb-beeb-54b4480d0db4", "05fc9ba6-23d6-4fbd-9d61-6d06d5ed2fe6"] )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_1(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["7317227d-aa42-4300-ac6b-f05188d36c45", "63d1f095-52bd-41f4-a1c5-6087b3248d0e", "45f542b8-c4f8-412e-8f62-4f19e93ceb54", "dcd5eb70-bbe4-473f-8530-c925fccedad0", "32bd9f29-8fe9-4849-a42f-b5de593018de"], + bear_point_shop_id="028f3a0f-900c-4877-9d9e-649b8b392453" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_2(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - dest_private_money_id="7dc078ac-b404-48ed-9777-fb30237911c5", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["450fcb3f-f834-47a1-97f1-a23611042d13", "4c53e1bc-2e36-4da9-a93f-871423cc2a0f", "69593e29-cb05-4c32-805c-ffeeade8d65d", "8944cf58-62d7-4dbf-bfeb-ef7cb219baf6", "66d24ce6-33a1-4a16-b580-cd73cec38da9", "b36f5521-4545-4bb3-8613-d985f663f4ed"], + description="agRZXBvYQN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFs", + bear_point_shop_id="f1a22544-d9ac-4a32-979a-83ad45f163e2" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_3(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - max_total_point_amount=8487, - dest_private_money_id="6d324518-06fc-4623-aa6e-34e4b0a25291", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["7939dda5-f381-499d-b05a-fd3f8a67b088", "05722098-5966-4839-ab4b-fd0f9b7054ed", "52ff85fa-a9f8-4e16-b2e3-ea533703e2f6", "35841963-fc12-4e73-a766-a070c2e5c332"], + status="enabled", + description="NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHsz", + bear_point_shop_id="ef7a2d4b-ce61-4b9c-acb8-5455a314714a" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_4(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - max_point_amount=3783, - max_total_point_amount=756, - dest_private_money_id="f424cefe-6014-483b-8788-4bf615716118", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["6704b400-a16d-4e5f-b6ea-9b89404b4554", "d44effc6-43bb-4755-b077-6ad72abb12fc", "ace5ccc1-8dcd-4505-bff5-66a86e5b1db8", "8be34139-750a-496d-84b0-acbfd026f388", "bbeeaea8-de54-4af0-8abd-c6f849e70e5c", "71a724ae-3c25-43d7-a203-26e3c45d7efa", "e01e42a1-f5d1-4c80-9593-9d79f5dd6c98", "cb700fd7-9461-4256-a7c2-980bc083f061"], + point_expires_at="2023-02-16T18:18:56.000000Z", + status="enabled", + description="Wptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzG", + bear_point_shop_id="721dbb21-b113-4eef-a015-5b9836a6f82a" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_5(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - exist_in_each_product_groups=False, - max_point_amount=6880, - max_total_point_amount=8168, - dest_private_money_id="08ffb985-f360-4626-92d0-f7f57c263d84", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["526c1175-ed40-4075-82dd-da586c6bb3b6", "d47621a1-cdcc-41fd-9cd5-4ad576f04b5f", "9abc1f8c-01a0-4cd5-82c5-f8ce1e9bd1fa", "b844e8bf-fdb9-4d52-a631-380a5aef2538"], + point_expires_in_days=8349, + point_expires_at="2023-03-25T06:39:11.000000Z", + status="disabled", + description="jTA", + bear_point_shop_id="f2b3f3bb-fbd2-4f78-a3cb-d75fe35ee889" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_6(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - minimum_number_for_combination_purchase=6296, - exist_in_each_product_groups=False, - max_point_amount=8551, - max_total_point_amount=3991, - dest_private_money_id="4d498f9b-cea5-452c-87d2-4a20d721f5e8", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["c943f0e3-1d24-42e2-8809-7c20bbd74a31", "932f18ee-8379-4fcc-8cd6-fd88f39230c9", "160693ad-d6a7-403b-a6a4-0a401901d837", "0e6e46d0-dfca-420f-9ab4-644004a7ab50", "c064f2cb-38db-45c9-9997-f1d251891cc1", "8365136c-a331-485d-9543-7a75dff90ddc", "9ccdf993-e5d1-417b-b9e3-ddd70105ab67", "177cc918-8646-4f6c-9b51-dcf27275bb94"], + is_exclusive=True, + point_expires_in_days=1992, + point_expires_at="2021-11-01T20:38:51.000000Z", + status="enabled", + description="qVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlH", + bear_point_shop_id="d4141dee-d7af-4de4-884d-601b7488f382" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_7(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - applicable_shop_ids=["403a483d-212a-46d3-89ac-f82f59c6cede", "603c630b-0950-44bb-ab42-b73f6db31b0b", "a6654460-debb-4f19-8c0d-5f7f08dadd2d", "d2f5f88f-ff99-488c-860f-1bd6ddfd067e", "de38f153-87ef-45f4-a69f-dc67aedbbc0f", "85bb9caf-bea0-42fe-b96c-17e42ea048c0", "68f309ae-73ae-4a02-96d6-1f8e17f2756d", "baef9f61-e0d0-4078-bb26-ac8893c91881", "da85f1f8-376b-4f12-94f1-229f764a8ea8", "ec0c115b-e6a7-4cba-8fed-80c6310b45f2"], - minimum_number_for_combination_purchase=8647, - exist_in_each_product_groups=False, - max_point_amount=3302, - max_total_point_amount=1602, - dest_private_money_id="951d8947-e95c-41d7-bcb6-7aac1875fb74", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["60cb620b-9ebf-428b-a01b-e34112a2d964", "7864fc7d-f457-4f0a-99df-e480cce1e83c", "674cf45e-68b9-4512-8890-5beadfc6f007", "9c0a304e-4108-4cc1-accf-6b463b441ed7", "036c135f-2d23-4c44-b0e6-5f320ef05c22", "9f271a38-2f23-4006-8e0c-92a61c68f293", "a0d1e2f2-1a6c-47f7-8c8e-96bba3f614a0", "7e1bc6e2-ae39-451a-ba8c-be2b2eb117d9"], + subject="all", + is_exclusive=True, + point_expires_in_days=7726, + point_expires_at="2021-01-22T09:10:08.000000Z", + status="enabled", + description="mMET9MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseL", + bear_point_shop_id="50b56751-f3fd-4d28-822c-d12473b9a058" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_8(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["d748e101-7a1e-46d5-a985-4bbfa40aed59", "19392e08-56f0-4292-8d5e-e595a37ce39f", "0d6e24d4-0d5b-4680-b6a5-de4e02376599", "10eb3411-5a06-47e7-a6a0-c3e11427f64b", "4808c611-8e7c-4ebf-94b3-80dccedee150", "f1b7616f-976f-4598-b7f0-6d4bced650c1", "866495f8-3725-4e33-8f1f-f56b953adf0f", "f6aa8c24-c966-4d87-8133-13b1fc03b5f7", "effa4c58-a964-4ab0-b49a-d7df9b291ca7", "54506e92-dba7-4a53-9931-d18794111321"], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], - applicable_shop_ids=["cc61f682-a9e0-48a3-975a-67db75627fb8", "b498a89e-a82a-419d-9bbe-367b20cd8615", "16326fe3-daa9-4be3-82c8-94483a677cd3", "31093e1e-c091-4b3b-a4f3-1be3042d6a70", "c54ad9de-dfcf-4dab-b28c-487c908056ee", "fa083838-6fa8-47b3-b264-818182d98d36", "0a0b2764-a10b-4ff1-b520-93465d5cb77f", "8acbf391-5fb6-4065-9fe9-919c30a2009e", "fcf374da-1003-41b3-84c4-02648b13c386", "d1c47bb6-b157-4b22-a99e-77d3ca78b59c"], - minimum_number_for_combination_purchase=7802, - exist_in_each_product_groups=False, - max_point_amount=1455, - max_total_point_amount=7194, - dest_private_money_id="ca39fe6c-e650-43cc-9819-19f89a618058", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + subject="all", + is_exclusive=True, + point_expires_in_days=9534, + point_expires_at="2024-12-14T16:22:19.000000Z", + status="enabled", + description="GOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3", + bear_point_shop_id="350e8986-7f06-47a0-a18d-6d8890081d42" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_9(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - applicable_days_of_week=[5, 3, 6], - applicable_time_ranges=[], - applicable_shop_ids=["054dde71-7a0a-4ec1-a34c-0ed03298acf7"], - minimum_number_for_combination_purchase=7240, - exist_in_each_product_groups=False, - max_point_amount=8545, - max_total_point_amount=9335, - dest_private_money_id="d70c4f1e-4cfd-4d48-a509-b2898d5e93db", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_campaign_10(self): - response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["71155acf-7d58-4731-89a8-2820ce88dc67", "32c3ce2d-b3fd-4838-a8bf-14d212d6884f", "47e0de25-39db-4a98-8642-e033140389a5", "9a79642c-a3cd-41de-81aa-8b6c4fcef8ea", "25884148-2147-4658-b289-b1f03bdf1d0a", "8f59bfd6-b09d-4582-acd3-56ebccabd753", "2b65a0e4-c02d-490c-9189-80af9d6f1a42"], product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -3513,48 +4215,44 @@ def test_create_campaign_10(self): "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 - }], - applicable_days_of_week=[0, 1, 1, 3, 6, 6, 4, 1], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids=["a8781f35-1e68-4d25-ab4b-611015e7d889", "5363b2e9-4ea0-4db9-955d-e0baf2952c23", "230c104f-2027-4a9f-b2a0-4e3cef87922f", "9c9ec550-28fe-4582-9db9-eee05967a1ff", "630ea097-43ea-4185-833c-162ea132fae9", "08fdd487-485a-4936-b521-9333131563a2", "6529bd78-0fb2-4157-8286-0790adb6293d", "db965b7a-525a-4217-8a90-bd2ed61a9c7e", "1d259b24-d2e0-4285-9ab5-c4e13c037835", "81eab067-4236-4503-9371-c61b4be8a2d5"], - minimum_number_for_combination_purchase=3607, - exist_in_each_product_groups=False, - max_point_amount=8287, - max_total_point_amount=7856, - dest_private_money_id="fef6156c-d43c-412a-9e3f-0d9d49012795", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_campaign_11(self): - response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - amount_based_point_rules=[{ - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=1234, + point_expires_at="2024-05-30T03:38:02.000000Z", + status="enabled", + description="XHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8ac", + bear_point_shop_id="d411de9d-5c28-4459-aae2-519dbc35ca97" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_10(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["bec20b4b-5a33-4cc9-8138-5cca6836ba82", "dc3ab37d-baac-4826-8059-bad5851924e0", "166ea7c9-32a7-46cc-9ef7-e3c493cd0592", "f494a059-9420-4a08-8811-09d7b38f9671", "1ae547bc-2d39-4d07-a814-28b3c6c0f2be"], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], product_based_point_rules=[{ "point_amount": 5, @@ -3562,66 +4260,25 @@ def test_create_campaign_11(self): "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 - }], - applicable_days_of_week=[1, 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" - }], - applicable_shop_ids=["d2907b19-eedc-4de4-a747-c956525b9da2", "e0d42772-3fd1-4b32-a1bd-ad2cfabd1734", "a4e6b906-85ef-4006-b483-921e7657c06e", "ca811ecb-0843-457a-a53a-34d93f170947", "d006b0fa-3ec0-4efa-9154-0a8dab4cdb57", "ec742ac5-c09b-4b33-ac05-c6fd5b5bbfd9", "ef395aa1-78a2-474f-a739-95f24ed92860"], - minimum_number_for_combination_purchase=2681, - exist_in_each_product_groups=True, - max_point_amount=4469, - max_total_point_amount=3481, - dest_private_money_id="7412bee8-dd9b-4479-903e-70e6045e87d8", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_campaign_12(self): - response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - subject="all", - amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules=[{ + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -3658,59 +4315,38 @@ def test_create_campaign_12(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[2], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids=["4412b72f-e87b-4a94-bbf3-26299824d007", "973ae698-f750-4821-9fe4-e5b1f21eb564", "034470d6-bfb4-4dfc-a0ed-caaf04bdc62a"], - minimum_number_for_combination_purchase=5470, - exist_in_each_product_groups=False, - max_point_amount=7126, - max_total_point_amount=9863, - dest_private_money_id="4f3c775c-92e5-4817-b6c7-5befd7dccefd", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_campaign_13(self): - response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - 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 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=1785, + point_expires_at="2024-07-20T19:00:30.000000Z", + status="disabled", + description="OJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRscSaTDEUxwAJXNLOLD", + bear_point_shop_id="4142d955-316a-4cc1-a7c5-30209692b555" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_11(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["24b3a15c-5bfc-4acb-95a0-ba938443f8d3", "64c8420d-e647-48ff-ba62-3b10aaa61011", "87e3fdd3-3452-4c9d-aded-739ff76d79fc", "92e28b83-82e4-4581-a3e0-70e145e769a4", "5220ff36-f0b6-4629-88bc-ad7fd4d1d10d", "230302f8-e695-42a6-9663-c6b4bf7af291", "02ffe477-c340-422d-a630-885682fe3699", "23e49ef3-ae63-402f-a9da-0e9cce204771", "6c6db698-aa56-4e0f-9a67-5cb9256f5cc3", "442c10a3-ead9-4c7f-9b2a-938dbfe00434"], + applicable_days_of_week=[2, 3, 0, 4, 5, 1, 1, 5, 1, 1], + 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" }], product_based_point_rules=[{ "point_amount": 5, @@ -3754,61 +4390,7 @@ def test_create_campaign_13(self): "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 - }], - applicable_days_of_week=[6, 0, 5, 5], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids=["9479d6d5-33f5-4dbb-af5c-892ddee283af", "1ab52c18-9d5c-49dd-839a-2a8dd54b0818", "e410730e-8a4a-43d6-9dcb-3825d37908b5", "57bba400-25a3-43dd-8cc1-593deaf4ee47", "6d2da28c-9053-4165-acde-c1e90d379586", "02d7d411-1cd7-4857-a8c0-8a252dd067c5"], - minimum_number_for_combination_purchase=9268, - exist_in_each_product_groups=False, - max_point_amount=6200, - max_total_point_amount=9283, - dest_private_money_id="b2c24a4e-7ce5-4362-aeb7-fb322545d972", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_campaign_14(self): - response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - point_expires_in_days=481, - 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 - }], - product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -3827,54 +4409,6 @@ def test_create_campaign_14(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[0, 3, 5, 3, 6, 0, 5, 4], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids=["14ca9a8b-050b-4f3a-818c-0bf87d1d95a6", "53fe7815-2ef5-478f-92ba-5468132e8f14", "6016d087-3eb6-4a1a-9ebf-89b6ead1a6b1", "85796cd5-edb8-4816-be8a-16321a3d54e2", "3cb38187-3230-443c-bcf9-0f2705aacd2f", "151fb790-362a-41e5-9986-1aef9c532a1f", "cdbaff35-7d06-42fa-a64f-70c19e8cbf27", "3c3d08ab-7967-4a3b-a453-a5cc921c7e2a", "07365ed6-1640-4b0b-8ee2-4f3180027931", "c65a8ce8-005a-4eca-ae57-fe2ca3c34e45"], - minimum_number_for_combination_purchase=7866, - exist_in_each_product_groups=True, - max_point_amount=538, - max_total_point_amount=9877, - dest_private_money_id="6484e7e8-7a8a-421c-bbce-fe1fac01cce4", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_campaign_15(self): - response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - point_expires_at="2021-01-01T13:57:44.000000+09:00", - point_expires_in_days=4438, - is_exclusive=True, - subject="all", amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -3921,88 +4455,25 @@ def test_create_campaign_15(self): "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=[1, 1, 3, 1], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids=["53183c74-811a-4a3c-b07d-220b7bc3e150"], - minimum_number_for_combination_purchase=1165, - exist_in_each_product_groups=False, - max_point_amount=480, - max_total_point_amount=7822, - dest_private_money_id="7dbac46f-f891-433c-ae57-b29c53b02649", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + subject="money", + is_exclusive=False, + point_expires_in_days=9504, + point_expires_at="2024-12-01T16:29:25.000000Z", + status="disabled", + description="R0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDT", + bear_point_shop_id="ff8cb07a-e37d-4ecd-9c6e-7c4d8ab47a8b" )) self.assertNotEqual(response.status_code, 400) - def test_create_campaign_16(self): + def test_create_campaign_12(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - status="enabled", - point_expires_at="2021-06-04T07:55:30.000000+09:00", - point_expires_in_days=9766, - is_exclusive=False, - subject="money", - amount_based_point_rules=[{ - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules=[{ - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 - }], - applicable_days_of_week=[], + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["2312bf52-aac4-42f0-8993-450b2a098cb6", "b8d2aa20-0b1e-459b-953e-224498e0005a", "40c59251-7390-4754-aad0-e8e6b17a7ec9", "2732d161-38ea-4025-a3c0-67d397c58799", "ce6e3dc2-71ed-4120-9557-c509a839dcfa", "66ed7f46-ce2e-4f26-a4bd-a402ee16998d", "8c40bde2-0dd6-4be6-a1fe-e1cc82f12735", "c928f0ae-4bbd-49ae-8c54-4b0b9f91bab2"], applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4031,61 +4502,69 @@ def test_create_campaign_16(self): "from": "12:00", "to": "23:59" }], - applicable_shop_ids=["d080fcd8-6969-4243-8744-97470d89273e", "49326dd2-b6d5-453c-93d1-894caf0c4381", "c901f531-9656-47a3-a958-471f5ea43d9f", "92f08b3b-59a0-4375-b30f-2a3512d5ce78", "7b846cee-c737-4dcd-a2df-e78325b02bda"], - minimum_number_for_combination_purchase=150, - exist_in_each_product_groups=False, - max_point_amount=9794, - max_total_point_amount=3768, - dest_private_money_id="3a17ca94-5f5b-4747-b976-1110b8bfcfc3", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_campaign_17(self): - response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - description="5m86vU4CTunlo9FHcvhpXn1f9WUvYvDDo3G7amxcKXWGa0ExI5eaGTZJemJSk", - status="disabled", - point_expires_at="2018-10-28T09:16:24.000000+09:00", - point_expires_in_days=3549, - is_exclusive=True, - subject="money", - amount_based_point_rules=[{ + applicable_days_of_week=[6, 0, 2, 3], + 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_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "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 }, { "point_amount": 5, "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 }, { @@ -4093,15 +4572,32 @@ def test_create_campaign_17(self): "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 }], - applicable_days_of_week=[1, 4, 3, 1, 4, 3, 5, 5, 5], + subject="money", + is_exclusive=False, + point_expires_in_days=4755, + point_expires_at="2024-11-06T11:04:30.000000Z", + status="disabled", + description="A5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7M", + bear_point_shop_id="b821bbbd-5877-4d71-b13f-febaab2c88a6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_13(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["5e3eea03-b0df-460b-85e0-4d86aff129af"], + minimum_number_of_products=5957, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4129,58 +4625,17 @@ def test_create_campaign_17(self): }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids=[], - minimum_number_for_combination_purchase=6703, - exist_in_each_product_groups=True, - max_point_amount=9351, - max_total_point_amount=4539, - dest_private_money_id="a90eb049-f336-4374-9275-ac65bd66cd29", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_campaign_18(self): - response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - bear_point_shop_id="f7105b4b-71fa-454b-a441-0314a61aeeae", - description="G45Yd1ntlQmTFdCRQoNs8we7kw42AF3DTjcROuetQ8zFdMo0VY4tUGROiwu8g5jegd2tDc5SvOZdXc2AVLuF8gaKQ0OEhkP9BLs49M6H6epGVtu0HPhsCKuI2bJUyIRN5hatVHvQNYn4X1Qj8JOhaftsXxsjd7rD3p3viKfIPkJsUNb1al7E8GagW", - status="disabled", - point_expires_at="2018-05-03T19:52:12.000000+09:00", - point_expires_in_days=5288, - 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 + applicable_days_of_week=[1], + 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" }], product_based_point_rules=[{ "point_amount": 5, @@ -4243,153 +4698,73 @@ def test_create_campaign_18(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "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 }], - applicable_shop_ids=["f5822a34-75cf-4bc2-a5c2-bd97ef8c32e4", "0143d27f-e96d-4e13-90fe-3ec16f86ba4b", "90a5fee9-0577-47af-8b2a-0e98a1080f0d", "8758ea6b-dd19-4294-97d6-1a4dacdc2ae5", "d3dd4ec7-d38a-4ff7-af94-0b5e7335c463", "a6e05010-250f-4bdc-aeb0-e49970bdb5f4", "1a82271f-e565-4d6c-80d6-b698b9698e7d", "7b829275-f20b-4932-b495-742f3c16038a"], - minimum_number_for_combination_purchase=5967, - exist_in_each_product_groups=False, - max_point_amount=6027, - max_total_point_amount=9202, - dest_private_money_id="29877b46-9825-42b3-8f5e-00e958920599", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_list_campaigns_0(self): - response = client.send(pp.ListCampaigns( - "86b887e9-ffcf-4a75-aaa1-c9d2cdf8b927" - )) - self.assertNotEqual(response.status_code, 400) - - def test_list_campaigns_1(self): - response = client.send(pp.ListCampaigns( - "86b887e9-ffcf-4a75-aaa1-c9d2cdf8b927", - per_page=2193 - )) - self.assertNotEqual(response.status_code, 400) - - def test_list_campaigns_2(self): - response = client.send(pp.ListCampaigns( - "86b887e9-ffcf-4a75-aaa1-c9d2cdf8b927", - page=6395, - per_page=5370 - )) - self.assertNotEqual(response.status_code, 400) - - def test_list_campaigns_3(self): - response = client.send(pp.ListCampaigns( - "86b887e9-ffcf-4a75-aaa1-c9d2cdf8b927", - is_ongoing=True, - page=7970, - per_page=4015 - )) - self.assertNotEqual(response.status_code, 400) - - def test_get_campaign_0(self): - response = client.send(pp.GetCampaign( - "c7da7402-0838-4b4d-be12-ed63035b186a" - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_0(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff" - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_1(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_2(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - max_total_point_amount=6985, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_3(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - max_point_amount=483, - max_total_point_amount=5324, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_4(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - exist_in_each_product_groups=True, - max_point_amount=3283, - max_total_point_amount=203, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_5(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - minimum_number_for_combination_purchase=8693, - exist_in_each_product_groups=True, - max_point_amount=6573, - max_total_point_amount=6922, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_6(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - applicable_shop_ids=[], - minimum_number_for_combination_purchase=5529, - exist_in_each_product_groups=False, - max_point_amount=2652, - max_total_point_amount=4799, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + subject="money", + is_exclusive=False, + point_expires_in_days=5769, + point_expires_at="2023-01-30T18:25:11.000000Z", + status="enabled", + description="6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZViz", + bear_point_shop_id="c29b50a4-2201-410f-996e-0b5c85ed83f6" )) self.assertNotEqual(response.status_code, 400) - def test_update_campaign_7(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", + def test_create_campaign_14(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["26e0c7fd-66da-4290-b665-55b60657858e", "91ab0154-2e55-4057-9ca3-5bc6002ffedf", "3e425120-5657-4e0f-8824-76a5d7359bf9", "7147ebbe-e4a7-401b-b2e2-96352fd22d56", "bab93b2b-a5f3-4eb5-a750-75755c5b6010", "df28fb9e-01f6-450d-90c8-c0954d239b75", "e310c47b-d95d-4885-8135-9148624ca7d7"], + minimum_number_of_amount=3420, + minimum_number_of_products=7713, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4421,53 +4796,35 @@ def test_update_campaign_7(self): "from": "12:00", "to": "23:59" }], - applicable_shop_ids=["1c80cfcb-f8b7-4405-bdb6-50d6d4d3d48f", "3a88a31f-c87f-4cfe-b54d-7784abeac0cd", "419673af-3cd3-4c04-9d1c-97e85356e2aa", "189a11af-5032-4bc8-a1b6-13ebafbd1bb6", "ec808e82-f0b5-4789-94eb-cf67bf22437b", "9fe8d2d1-f093-451c-892c-4341a3150ac8"], - minimum_number_for_combination_purchase=5080, - exist_in_each_product_groups=True, - max_point_amount=7117, - max_total_point_amount=6957, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_8(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - applicable_days_of_week=[6, 6, 3, 5, 4, 4, 1, 6], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" + applicable_days_of_week=[1, 0], + 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" + }, { + "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_shop_ids=["adc67640-ed95-4bc5-8c92-a9d6a1de17c6", "7b596a2a-1549-4dec-87a2-0dbc7db3109f", "2b78ff8a-e53b-4d69-8c5d-a41fdf3cbd08", "1fa80e1e-d3c7-472c-95eb-fafadb55251a", "50f25c44-9177-41f2-93f4-8a80a12c1944"], - minimum_number_for_combination_purchase=8825, - exist_in_each_product_groups=True, - max_point_amount=9265, - max_total_point_amount=5977, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_9(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -4480,49 +4837,20 @@ def test_update_campaign_9(self): "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 - }], - applicable_days_of_week=[0, 4, 3], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids=["070feac5-6ce5-4c46-8d94-2b9b5c31cdb0", "dc748dc7-7236-4cfb-ac63-cb9b1662393a", "f4a1e78a-dea1-4537-8ec1-3dc0aed6627c", "10c0732c-6eca-486c-a680-e165a4293178", "94eb190b-2b3a-4146-a13b-3d8008861f6f"], - minimum_number_for_combination_purchase=4472, - exist_in_each_product_groups=False, - max_point_amount=665, - max_total_point_amount=2582, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_10(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "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 + }], + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, @@ -4553,25 +4881,68 @@ def test_update_campaign_10(self): "subject_more_than_or_equal": 1000, "subject_less_than": 5000 }], - product_based_point_rules=[{ - "point_amount": 5, - "point_amount_unit": "percent", + subject="money", + is_exclusive=False, + point_expires_in_days=1200, + point_expires_at="2020-07-25T03:35:11.000000Z", + status="disabled", + description="i9wNIa", + bear_point_shop_id="0f7a155d-a83b-4fca-afdb-69f988de0249" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_15(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["b3867cf0-bbc1-4c97-a0c4-2012a64f83f3", "9dfadc32-18c0-4d42-b45e-7891cc16a5f9", "6ce7b016-6742-4fb1-87a9-0b1192468b5a"], + minimum_number_for_combination_purchase=3604, + minimum_number_of_amount=3948, + minimum_number_of_products=2863, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 2, 1, 2, 0], + 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" + }, { + "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_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -4614,54 +4985,6 @@ def test_update_campaign_10(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[4, 2, 1, 4, 0, 1, 3, 5, 2], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids=["b89b426d-a28f-430d-ad62-abc51bf41957", "147a04f9-7b3e-4946-aa48-710e9e403ba2", "981a9933-26bf-40a9-a3ba-cd9a9341727f", "db10d525-2566-46b4-b824-b947dcc46f95", "ee15b4e5-a94e-4056-b957-2e310e1e8064", "7d83b6c9-1dda-4cba-ad17-910e67ef3f98"], - minimum_number_for_combination_purchase=9780, - exist_in_each_product_groups=False, - max_point_amount=1700, - max_total_point_amount=5708, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_11(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - subject="money", amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -4678,59 +5001,45 @@ def test_update_campaign_11(self): "subject_more_than_or_equal": 1000, "subject_less_than": 5000 }], - product_based_point_rules=[{ - "point_amount": 5, - "point_amount_unit": "percent", + subject="all", + is_exclusive=False, + point_expires_in_days=8499, + point_expires_at="2022-12-17T03:51:33.000000Z", + status="disabled", + description="W", + bear_point_shop_id="93229de8-468c-4350-a4da-1e5366968c76" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_16(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["7e85a938-ecaa-4b6e-935f-f663e8a7e59b", "5d8c6ed4-b77f-42f6-8aa5-835d585a103d", "2d8c0586-a703-478d-97b4-142c54099029", "7966560d-bd56-480e-8894-367efa2acc91", "b46e35be-45ff-4a0d-98f0-9d19282db25e", "97431ca7-278a-4984-9b97-0855e4df2c2e", "f86359e1-8bea-489b-8c87-896d2878c3be"], + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=4805, + minimum_number_of_amount=5596, + minimum_number_of_products=8070, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[5, 0, 3, 1], + blacklisted_product_rules=[{ "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 - }, { + "classification_code": "c123" + }], + 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=[3, 1, 6, 1, 2, 3, 1, 6, 2, 0], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids=["8ab58f24-d998-4507-9d5e-f4b0ce7af464", "6904ba0f-5a38-4006-9892-66e836bbfa44", "c6d65117-8e03-42c3-a943-7fa9fd7fea47", "5dc961e2-8916-4096-bf7f-13c50c87d00e", "feed0fc1-5698-4711-adfe-da8d2b2bf05b", "11a63b38-f044-428c-84ed-18fb4fd3becd", "9b300da5-fdf6-42b6-8a05-bd9e37c32f05", "880c894f-1855-420a-9304-18c087d892b8", "485e3e78-24d0-4f5b-9223-0de08837f06e", "c1272035-1e4a-4ce0-93df-09483cd67bd6"], - minimum_number_for_combination_purchase=8967, - exist_in_each_product_groups=True, - max_point_amount=7529, - max_total_point_amount=7225, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_12(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - is_exclusive=False, - subject="all", amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -4746,83 +5055,92 @@ def test_update_campaign_12(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], - product_based_point_rules=[], - applicable_days_of_week=[4, 2, 6], + subject="all", + is_exclusive=False, + point_expires_in_days=6436, + point_expires_at="2020-10-03T06:43:51.000000Z", + status="disabled", + description="97LHWaSOnICBJimGKiopraV9Fu47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5ME", + bear_point_shop_id="23b0e6d7-85e8-470b-94e4-37ce93cfd594" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_17(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["81c9cdc6-88a2-45c4-a290-3fd8e0e5bfb7", "492d2c66-0c73-4f73-9530-6cecfb312b23"], + max_point_amount=2933, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=1774, + minimum_number_of_amount=1158, + minimum_number_of_products=6493, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" }, { "from": "12:00", "to": "23:59" + }], + applicable_days_of_week=[2, 5], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "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" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_shop_ids=["a831071f-df3c-4f2b-b4df-b0b3151f8647", "c76ba9a8-1d34-4e0f-9839-5718996d4a68", "282a2390-f87b-4c28-a975-16c73e7e82fa", "ad268cfd-0339-49cd-94e6-1a5cc2301792", "ded62e9e-e3b8-402e-a2f2-0e287a87e529", "5d109cf4-8fc8-4768-9d95-2b81059f088a", "ee7c7f5d-bda4-48f1-9db6-2e197c2b622c", "7a60f5de-bd99-4d3b-b68c-b7544ae18121"], - minimum_number_for_combination_purchase=4924, - exist_in_each_product_groups=True, - max_point_amount=2627, - max_total_point_amount=6475, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_13(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - point_expires_in_days=6368, - is_exclusive=True, - subject="money", - amount_based_point_rules=[{ + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "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 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 }, { @@ -4850,6 +5168,55 @@ def test_update_campaign_13(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=8953, + point_expires_at="2024-08-22T16:00:45.000000Z", + status="enabled", + description="slaUL7RrxqbBxY5tCbxb35FzAfmkd", + bear_point_shop_id="c31328b3-33f0-481c-a492-06f54401b62c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_18(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["9f963ad5-8a27-4442-bd83-9685566a5e27", "6797c496-495b-45eb-b2f1-127beb7729ad", "a9a381f2-ad76-49ca-8a33-9dc7bcb6ca96", "1350bed6-8ebf-4600-b37c-8936a139ea1b", "da01b7c7-b52d-4f3c-b312-e89f46eb335e", "80a2224a-0a38-42d8-a904-1bccda8eaf7e", "5806d75f-c412-4741-b0d6-772e60cb7277", "fa78363a-5f4e-4028-99b6-e3a2cf7a3d7a"], + max_total_point_amount=3307, + max_point_amount=7500, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=198, + minimum_number_of_amount=8329, + minimum_number_of_products=754, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[2, 3, 4, 1, 2, 3], + 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_based_point_rules=[{ "point_amount": 5, @@ -4857,69 +5224,80 @@ def test_update_campaign_13(self): "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 - }], - applicable_days_of_week=[2, 3, 1, 0, 6], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids=["ba85e3dc-a2f8-4fb2-8f20-27bbe9d8381d", "4bfedff2-8599-49ac-a3d6-66af40877bcd", "6ac00018-4574-4828-8d51-2f700aa67acc", "6b50d850-fd85-4f07-83e5-5a2ee60eded0", "b9731fa4-16b9-4064-bacc-4ef8f2002096", "b3952eb5-d0f4-45ad-bcad-9332e57f556c", "776a97dc-03e7-4fd7-8e3d-042e66fe28a8", "1189a76f-23ca-4ed1-996f-7bcf4c73b215", "58223f53-902d-476d-85c1-7f6353efd375", "7489cb9d-67cc-48c0-a996-bbaf46e92b56"], - minimum_number_for_combination_purchase=4129, - exist_in_each_product_groups=False, - max_point_amount=6898, - max_total_point_amount=5909, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_14(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - point_expires_at="2023-05-22T05:15:36.000000+09:00", - point_expires_in_days=3881, - is_exclusive=False, - subject="all", - amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=4476, + point_expires_at="2020-11-06T18:24:52.000000Z", + status="disabled", + description="s6oOpUnX5paeprW", + bear_point_shop_id="27552574-5ad0-4c53-87da-d77272a8f2cc" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_19(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["9f86463b-873f-47fd-9524-e37208ac546d", "9c8a3581-a614-4ace-a53a-c51272b89202", "1ec74355-5993-460c-98b3-33f699604046", "727f7767-925a-4eaa-9e11-873622b0df18", "10663483-4388-4939-b677-03d85fc52ea5", "d3970612-2c00-43c9-8562-cb5f31ea96ca", "64b57fac-8d60-47b7-b9ac-0490cd2e38e0", "7738ddfb-e2ff-4f42-9132-ca071752f27e", "7f2a7475-abaf-4ea3-8e2f-49e0da8945c9", "cff1f762-45e4-4dd4-92dc-928e8988dff8"], + dest_private_money_id="d0346906-8dff-4fdb-af9c-a47f1aa8f704", + max_total_point_amount=5687, + max_point_amount=257, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=7330, + minimum_number_of_amount=8853, + minimum_number_of_products=5018, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "from": "12:00", + "to": "23:59" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }], product_based_point_rules=[{ "point_amount": 5, @@ -4939,41 +5317,13 @@ def test_update_campaign_14(self): "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 - }], - applicable_days_of_week=[4, 5, 5, 4, 6, 2], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }], - applicable_shop_ids=["88681cdf-6e09-4707-8132-0c17b66b406f", "565b6044-d0b1-4eeb-a25c-3a32007ed679"], - minimum_number_for_combination_purchase=1053, - exist_in_each_product_groups=False, - max_point_amount=1466, - max_total_point_amount=7987, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_15(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - status="disabled", - point_expires_at="2023-06-17T16:10:08.000000+09:00", - point_expires_in_days=5145, - is_exclusive=True, - subject="money", amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -5019,11 +5369,66 @@ def test_update_campaign_15(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=763, + point_expires_at="2022-07-22T19:41:52.000000Z", + status="enabled", + description="mao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0", + bear_point_shop_id="bcb2a5d5-6df3-4a7b-a69a-345f58bf30fd" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_20(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["012767e6-158b-4047-9e96-41195097b9f2", "afbb0aca-5879-487f-8c4b-220b60855f14", "bc9270f3-46d2-41c8-aefd-d24633e2e750"], + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="44fbacbd-c68e-4170-923c-24c815841226", + max_total_point_amount=1492, + max_point_amount=6997, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=2328, + minimum_number_of_amount=6807, + minimum_number_of_products=6975, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[6, 0], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], product_based_point_rules=[{ "point_amount": 5, @@ -5067,56 +5472,112 @@ def test_update_campaign_15(self): "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 + }], + 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", - "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 }], - applicable_days_of_week=[3, 3, 0, 2, 1, 2, 6, 0], + subject="all", + is_exclusive=True, + point_expires_in_days=7516, + point_expires_at="2024-10-27T19:44:51.000000Z", + status="enabled", + description="Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHY", + bear_point_shop_id="395d030d-a6d9-42cb-b97a-f886ac355137" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_21(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["926840b3-bf8b-4575-b844-eb507a488f7c", "55e9260a-66b2-4810-9569-960667beb763", "17720bf4-f6e9-44a8-b8d9-fc3a68ff9cd3", "2aa21afe-e5d7-4830-8193-c983e26d2fdb", "3c532f0f-fa6e-4caf-acfe-cf0effb45a27", "665b17ca-e7f9-4507-9bd1-c8965e81ec34"], + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="2d53c5ef-ee02-4e67-a66a-a8d157e8fcfd", + max_total_point_amount=616, + max_point_amount=99, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=3563, + minimum_number_of_amount=2708, + minimum_number_of_products=4767, 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=["38f27d79-9a4c-4cbe-822a-8923a92e4c05", "0e5359b2-078e-41eb-bd8f-a6fce8406c6c", "ce4ca98b-ccdf-4e22-ac13-269a573e08fb", "9de2b62f-93c4-440a-8a40-42b12f355172", "4927d58c-c133-447b-8cbc-976a9079b05f", "458e0f26-f33e-4387-8393-c29a167b564c", "7e92cecf-4832-4782-b058-3f8747bd5619", "9af50069-7161-4390-8cdc-9e07d278e62b"], - minimum_number_for_combination_purchase=7549, - exist_in_each_product_groups=True, - max_point_amount=9515, - max_total_point_amount=3722, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_16(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - description="c9g0DX8Wq75NNOSKErJuxzhPvCMr0kZtscw8OT2IAWVb28SeWG8Bm8n", - status="enabled", - point_expires_at="2020-03-08T15:19:02.000000+09:00", - point_expires_in_days=2385, - is_exclusive=True, - subject="all", - amount_based_point_rules=[{ + applicable_days_of_week=[5], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }], + 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 }, { "point_amount": 5, "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 }, { @@ -5149,6 +5610,62 @@ def test_update_campaign_16(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=3109, + point_expires_at="2022-10-16T22:14:38.000000Z", + status="disabled", + description="m4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKm", + bear_point_shop_id="ec7d7e73-62f0-4725-bf07-2a4e3976e038" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_22(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + applicable_shop_ids=["cda3f788-9e2c-4412-ab32-11af9b37a68e", "450403e7-8eaf-45eb-be3b-5c4de174b420", "7bc0c43b-950a-4e63-93d0-b3045bb9110b"], + budget_caps_amount=238798195, + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="2a00056d-b7f4-49df-8b0e-d42240b76a2d", + max_total_point_amount=5538, + max_point_amount=3210, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=1053, + minimum_number_of_amount=4459, + minimum_number_of_products=7115, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[0, 4, 2, 1, 3, 4], + 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_based_point_rules=[{ "point_amount": 5, @@ -5199,165 +5716,291 @@ def test_update_campaign_16(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[3, 0, 5, 4, 0], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], - applicable_shop_ids=["4785ea62-9c03-448a-9645-2e291505271a", "fd35045e-a535-405c-8fd8-2c3731993630", "f6b4f51b-db19-4027-b5d6-e180844c3a6d", "85a73b8f-4a5b-4135-9baf-1d8410889816", "d850eb24-c32c-47fd-be4a-89203d1b5d06"], - minimum_number_for_combination_purchase=7530, - exist_in_each_product_groups=False, - max_point_amount=9498, - max_total_point_amount=7497, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + subject="all", + is_exclusive=False, + point_expires_in_days=5236, + point_expires_at="2022-09-18T18:29:37.000000Z", + status="disabled", + description="WlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc4uSkk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT", + bear_point_shop_id="91ad7403-15b2-4cfa-8bbd-9a15414cf6c7" )) self.assertNotEqual(response.status_code, 400) - def test_update_campaign_17(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - event="external-transaction", - description="UPeHPDN", - status="disabled", - point_expires_at="2025-05-29T21:46:37.000000+09:00", - point_expires_in_days=5045, + def test_create_campaign_23(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["1aadff93-ff6b-4178-8f4f-c67a272c6a68", "1f82c354-12a8-46f0-9088-514cf3083aa5", "546e29ee-f855-4ffd-bf3d-858c064c0f85", "9d51c451-91ae-489d-9c7b-c45831b1b3e5", "dc1db9e1-d333-450c-a53e-f95424f82199", "2fcfe527-f640-41af-82ec-2650daa0c3a3"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_24(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["0963847a-8ae1-47fd-b118-c56eb4b12d37", "11d59dbd-53c9-4e5b-a300-05bce9ffba21"], + bear_point_shop_id="13063257-8e29-4801-9c4d-2880c74fd76c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_25(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["bfade9bd-06df-46d6-b113-8ce5816cc879", "6700601e-e730-44a5-8623-8a93b210ae31", "660a277f-2c01-4db3-9271-56c3a4cf7e37"], + description="Arhwm76E35ql4XfUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4", + bear_point_shop_id="aaa3bdd4-29c1-48c0-af10-1047a0cddf05" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_26(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["aad6605e-bc71-4699-b9fe-4df5ead67d65", "1dc36808-3638-4dd4-b604-095ac641b611", "4694c39b-ba77-4f1b-bcd9-5f0724ea1f62", "4f5731bd-bccd-496e-8210-3df41bcdaf2c", "1ec22423-3e7e-4af9-89d0-41fa6ae5bb02", "7b209922-1c71-4512-9541-998997b4e089", "8a18dd98-c597-4fc7-a49d-46e1a34421a8"], + status="enabled", + description="rjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjj", + bear_point_shop_id="aa20404b-5a7a-48f4-a347-b7523c6087cb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_27(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["fa73f24b-9096-47b9-a4cb-e70914bc9a15", "304424c1-1d50-4183-a045-98556b3bbb49", "701e4d65-aae4-42fa-9ea2-d669452ef87f", "05c5d2df-2bfd-4cc8-a929-5491b836b807", "eb5da42d-61ab-4a68-ba36-58303aade372", "d0211423-cf99-4d27-bc68-168f8592f4c0", "8946e451-15da-4a4f-8781-dafd59d8e037"], + point_expires_at="2022-09-06T10:15:20.000000Z", + status="enabled", + description="sa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nH", + bear_point_shop_id="beba9342-d498-47ac-8a61-b34e90b5a0b6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_28(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["bf3ed8b5-10b1-4bb0-a206-ee8c45dd5a9f", "3fcbc6c1-785d-4cc8-a4a7-24d696bc3189", "a2bfc3d2-ea52-42d6-ae9f-9b984b91981f", "e5be84f1-a8f4-4d4a-a2b7-cc8c0455a3c7", "8e5d1395-194c-47c1-8b18-765f13cf5735", "a3cdf8ea-c886-4ae5-92dd-57541f832f68", "fc96df86-5421-48d7-bf22-079381337535", "d3cf3a71-7d90-4612-b20e-fcb33f19c4aa", "23e67097-dda1-4793-b9c5-9de4bafa37b4", "44164ca3-f100-4fe4-81d8-1c93ffa25075"], + point_expires_in_days=397, + point_expires_at="2020-02-22T10:08:48.000000Z", + status="enabled", + description="sAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhY", + bear_point_shop_id="bf8b73ed-e26f-4e6b-aece-d0b1347e2d17" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_29(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["ce0fec76-7895-4cee-beb0-3257a9fdc742", "1d26169f-0ed8-493f-a647-1377d75f3d22", "d68ac157-f112-4432-bbed-bfdefb450e4d", "1880b39e-e7d7-4f31-a066-30a8e27c9239", "4f72dbe2-d038-4367-85c9-839825ef1e17", "70931343-d5cc-4dd0-b184-bbf118eec27e"], is_exclusive=False, + point_expires_in_days=437, + point_expires_at="2020-06-09T05:46:06.000000Z", + status="disabled", + description="G8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtyn", + bear_point_shop_id="d47d292d-d64c-4482-b350-10e70367121f" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_30(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["36d7e982-cf9c-4d81-8c39-be8a33316f82", "63b3c1a2-c35c-4fc3-86fa-a038be758937", "f22dd390-e46b-4724-9ec9-259b34747b08", "9179cf1e-5003-489d-adcf-a8cc361157d7", "47cc4ce0-7110-4a3a-b96e-291bd9d094da", "4f9fd637-e62e-4c20-b39c-d354a19fdf27"], subject="money", + is_exclusive=False, + point_expires_in_days=9856, + point_expires_at="2020-01-17T00:46:41.000000Z", + status="enabled", + description="SkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWq", + bear_point_shop_id="7ced987f-ea89-4282-bcaf-0328aeaaaabb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_31(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["11df7323-17f4-486a-ba20-bd8fbe67bb7c", "3cf00def-eb3a-492b-bb55-257fcde7c8e8", "fb1cc474-ad92-4edb-af00-ecd760cea0f8", "1d167441-be99-4594-a8c6-566feb1f6b74"], 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 }], + subject="all", + is_exclusive=True, + point_expires_in_days=9886, + point_expires_at="2023-07-24T20:20:00.000000Z", + status="enabled", + description="pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bnX1r8l3hC", + bear_point_shop_id="8839f9f7-ca36-4c11-93ee-a5a7d709c22b" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_32(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["ab382e6d-4c5e-4f39-903f-b2a8da10786d", "9e018b7f-580e-47e6-a354-fc98fc6415b5", "931e8ce3-9b4c-40d5-a833-cbac9dc4b3b4", "9b14f7ec-92d7-4140-9908-65a381b65a6b", "d82ef584-d1b1-4fbc-8158-f9ba188a07e6", "483e97b6-7743-45da-95e9-2bbdf5b48ca3", "1932b045-229d-434a-ade7-ef6e9491b0e0", "cd2f5ac9-7caf-4d7d-889c-86443ec735cf", "e804f9d5-0c28-49e4-b694-3ea652038c6d"], product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 + }], + 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", - "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 - }], - applicable_days_of_week=[4, 5, 3, 3], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=5512, + point_expires_at="2023-05-29T19:29:06.000000Z", + status="enabled", + description="pqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQd", + bear_point_shop_id="b57f9b51-b6eb-4f31-b01c-204fd7e3efb1" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_33(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["6663101b-13a4-495d-a90e-52826613c367", "e21a8efb-4d08-41fe-af85-4e76e0d7893a", "01cba4d5-9fdb-4839-80b9-ed9ed7f6a552"], + 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" - }], - applicable_shop_ids=["96ae2705-4f51-4145-94c6-106b3e3c9164", "5b409ab4-4bc2-4cb7-a019-0036035cb3f1", "1112f31d-cf60-43a8-bfd6-d8ecfa0aadb0", "1e070b62-06f6-4d73-89ce-df755d6e7387", "eadb72c6-fac8-4d30-bc38-cc405d22b424", "583f13e3-a1c8-4810-a569-5cb3e9a64b49", "ff8a4c72-0218-41fb-9a21-0600ef39329b"], - minimum_number_for_combination_purchase=2038, - exist_in_each_product_groups=True, - max_point_amount=8326, - max_total_point_amount=9340, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_18(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - priority=7432, - event="external-transaction", - description="bJYOhkdNc7P4FTTn7dkmZ79WHBWuUwmPiQWsAKL3kSTc0LPbfp9enQ4UqYgv1CZM", - status="enabled", - point_expires_at="2022-11-12T11:56:38.000000+09:00", - point_expires_in_days=1434, - is_exclusive=False, - subject="all", - amount_based_point_rules=[], - product_based_point_rules=[{ - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "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" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -5382,56 +6025,6 @@ def test_update_campaign_18(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[3, 4, 1, 4, 1], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids=["f00e0fc5-77c2-4e7c-ab7d-82633519f628", "7e83e342-eed7-41f7-a10f-5d847f2458b9", "1aca8293-9fa3-4d78-ab79-aa79626514dd", "e77f0932-34e2-42c3-bb8c-eba5f81f4a9c", "ff0f2ba6-c0c0-4c81-a9cc-dea8e9091b1d", "6ce84cb7-05a0-4210-9c85-d7b44490b8bc", "7e6ba3d1-d6b4-4b16-a083-b2fdda128675", "2328eab2-b3cf-4d98-be4d-be8a420f024d", "415b3c06-d04d-4730-93fc-54f8c7ac5f44", "63dd457f-d6a9-4edd-8584-1224584c2a32"], - minimum_number_for_combination_purchase=7333, - exist_in_each_product_groups=False, - max_point_amount=3170, - max_total_point_amount=9517, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_19(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - ends_at="2025-01-18T13:32:03.000000+09:00", - priority=855, - event="external-transaction", - description="9LUbHMcMKbw9zDIEFEyvAvmcoCxU", - status="enabled", - point_expires_at="2025-06-30T22:44:26.000000+09:00", - point_expires_in_days=8640, - is_exclusive=False, - subject="money", amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -5452,32 +6045,46 @@ def test_update_campaign_19(self): "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 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=6704, + point_expires_at="2020-08-11T12:01:57.000000Z", + status="disabled", + description="QOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCc", + bear_point_shop_id="e7dcf711-dfa3-4c5b-a91e-4e5a14aed804" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_34(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["f6784c0d-46e8-4cde-96e4-de580f1aaac3", "00283ae7-d3f9-4ac1-8ce8-424c63cd048a"], + applicable_days_of_week=[4, 4], + 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" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -5508,9 +6115,39 @@ def test_update_campaign_19(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[5, 3, 1, 1, 3, 3], - applicable_time_ranges=[{ - "from": "12:00", + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=2570, + point_expires_at="2023-10-05T20:52:32.000000Z", + status="enabled", + description="ZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXs", + bear_point_shop_id="96456eab-f860-4aa9-b0b1-c3345445b1f6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_35(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["8f258696-49d0-46e0-af65-3e11adebd7ca", "2d629a9e-adec-4f30-b9fd-a2e8a281b693", "d0d8fe5e-d62c-442b-8485-b7b153b96b53", "c38cc520-e9ed-47d3-80e5-72b7594c4f7a", "ff078c0d-75b9-41a5-b558-c14a749bde99", "80013de5-c639-441b-a152-0fbd33612dc2"], + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", "to": "23:59" }, { "from": "12:00", @@ -5528,31 +6165,45 @@ def test_update_campaign_19(self): "from": "12:00", "to": "23:59" }], - applicable_shop_ids=["c42e79c6-6bbb-4b65-b549-a915beb5df9a", "b93fa81a-2f42-4404-9528-ec7eef12246d", "fb3771ec-03b3-4968-849e-fd2eef5e87b3", "cbaebc36-7626-4b31-a78a-7988ab728475", "31664059-5548-4383-9d89-a601b32ac56a", "b328b3cf-2349-46ed-af90-46a56ab65fa2", "51b6e800-2f86-40da-95ab-1d90ad35ffbc", "13c634e8-e160-4223-8f53-fa8697722e4f", "20994828-6374-4638-9514-3940aa4bfdce"], - minimum_number_for_combination_purchase=6522, - exist_in_each_product_groups=False, - max_point_amount=8035, - max_total_point_amount=2578, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_20(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - starts_at="2024-02-06T16:58:32.000000+09:00", - ends_at="2018-05-10T19:51:29.000000+09:00", - priority=6463, - event="payment", - description="Gme5CA27ltkwLNnQtyV2QJ", - status="disabled", - point_expires_at="2018-05-24T09:32:58.000000+09:00", - point_expires_in_days=1600, - is_exclusive=False, - subject="all", + applicable_days_of_week=[6, 1, 4, 6, 0, 2, 1, 4, 0, 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -5568,9 +6219,92 @@ def test_update_campaign_20(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=6033, + point_expires_at="2024-01-17T15:15:09.000000Z", + status="disabled", + description="OMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy", + bear_point_shop_id="2b51ed34-27bf-42eb-9c9d-a7c585dc0101" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_36(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["9f7210bd-b30a-49cb-9f1e-87ca16332f07"], + minimum_number_of_products=5938, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[3, 5, 0, 2, 5, 0, 3, 0], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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=[], - applicable_days_of_week=[5, 6, 5, 6, 5, 4, 5], + subject="money", + is_exclusive=False, + point_expires_in_days=9304, + point_expires_at="2024-08-14T23:30:55.000000Z", + status="disabled", + description="ljojyX", + bear_point_shop_id="27094f4e-1de1-442f-b415-4aad6a26371d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_37(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["b746e863-9d77-4c11-bfda-9de0897bbd6a", "4fdb14d7-5692-43fb-b5c2-f73cb3f77fe5", "bb5dabf3-9f10-423f-b946-2e755c2c2be3", "0bc2a7b4-9e73-45ae-8657-5e004ebc680e"], + minimum_number_of_amount=7845, + minimum_number_of_products=8736, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -5602,86 +6336,91 @@ def test_update_campaign_20(self): "from": "12:00", "to": "23:59" }], - applicable_shop_ids=["7be5fbfc-5121-4f11-9f8d-d92a2d365ba4", "f00a5657-9973-48c9-80a5-3e285cbc2b18", "5d876dd2-3a78-4a4c-89ab-c0a8747110a2"], - minimum_number_for_combination_purchase=8720, - exist_in_each_product_groups=True, - max_point_amount=4840, - max_total_point_amount=9396, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_21(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - name="3wnSfVCO7XYJmoO0uhcJraMmDaSEahfn300LCaHLSroJkepEoifMTQ44ocvwtomMfjQ73GX2yquqoxmpJQvrLat0xlnzVZch13fLL8IaybXOFsTe5kGdJyjn39kuUAVwNBecCVcfQFB6zhe4zCjHFhQi2UCzxxgdtQx1Yj4cppg0SxOu0ayiRvxTn", - starts_at="2018-07-10T01:18:26.000000+09:00", - ends_at="2023-09-30T01:33:44.000000+09:00", - priority=3482, - event="payment", - description="nHVMhD4r87dViYbNhwHBT9cSJc7HHGuapEaMsGd77SVXYGZA1EEVZp38NbYd6BPccNKfybJvzwpWAlSZO0eB2VJdZjjB0xRzUNUpofUOthUvaBWHSD95mCwqz0uQMfHDC0caZdfhivWlaI8SRhD29ZtnzslLBpLYCsl", - status="enabled", - point_expires_at="2021-10-12T07:37:22.000000+09:00", - point_expires_in_days=4790, - is_exclusive=True, - subject="all", - amount_based_point_rules=[{ - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + applicable_days_of_week=[1, 5, 6, 3, 0], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + 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 + }], + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=9961, + point_expires_at="2020-09-26T18:45:26.000000Z", + status="disabled", + description="ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGh", + bear_point_shop_id="913f025b-5d48-429d-b6e7-654f82fed2d9" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_38(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["294d9a45-59be-4b1c-aa23-892f1c12584f", "5bb5a978-ffca-4e26-9330-ee9f81010233", "bb78271e-c578-48d6-b36e-ee53e5809e47", "803e5fd0-2c1c-41f6-b4c3-18bf74fd78ba", "d6c5e53f-db01-4898-b139-07099d00cbe1"], + minimum_number_for_combination_purchase=1447, + minimum_number_of_amount=4060, + minimum_number_of_products=6534, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[1, 4, 2, 0, 3, 4, 0, 4, 5, 6], + 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" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules=[{ - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 @@ -5692,7 +6431,35 @@ def test_update_campaign_21(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[5, 5, 0], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=4348, + point_expires_at="2023-04-11T03:47:25.000000Z", + status="enabled", + description="gxIW5ljI6yfgW8z", + bear_point_shop_id="955d03ba-b04f-462e-af80-b861295c89be" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_39(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["8306daec-7186-4329-9e33-112213b655c9", "b941c5d3-a16f-474c-bbec-d35cdd9bd447", "8f46cbba-fbfc-4cd9-b15d-2fa8b7083743", "7ea3a89a-0827-4208-95ab-b91981b62e6f", "d1e788d8-8def-4aa7-bd85-c9c791849915", "be2ca541-19fc-49ad-b502-0d5c7b207073"], + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=2903, + minimum_number_of_amount=6732, + minimum_number_of_products=3578, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -5714,23 +6481,5836 @@ def test_update_campaign_21(self): }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids=["7872ece2-626e-48b9-a80c-0baeaffeb415", "8da393e4-bf8d-4758-9f39-cd4fe0b9a8c3"], - minimum_number_for_combination_purchase=4711, - exist_in_each_product_groups=True, - max_point_amount=6018, - max_total_point_amount=6105, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_request_user_stats_0(self): - response = client.send(pp.RequestUserStats( - "2016-10-05T10:55:22.000000+09:00", - "2022-01-14T09:41:39.000000+09:00" + applicable_days_of_week=[0, 6, 1, 2, 3, 0, 4, 6], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=631, + point_expires_at="2020-08-02T07:08:26.000000Z", + status="enabled", + description="uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb9", + bear_point_shop_id="449f2a34-b47f-4995-a9dd-efbd04f69813" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_40(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["c76fbd64-7603-40e8-a351-08ed33d63a5f", "dbab5f90-d08e-43a2-bd23-5207a9e13225", "fbae7fd4-f26a-4741-8b9b-8d542d08b969", "fdce7e60-0c9b-403a-b4c6-42f659fa2f21", "79417e0f-dfd4-4eaf-82f9-69dd3afd511e", "a91ba993-2a81-4371-b281-1699698ad8d3"], + max_point_amount=7291, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=7068, + minimum_number_of_amount=8298, + minimum_number_of_products=8910, + 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_days_of_week=[0, 1, 0, 1, 5, 5, 1, 4], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=6167, + point_expires_at="2022-11-18T20:07:33.000000Z", + status="disabled", + description="TX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSL", + bear_point_shop_id="97199765-92ba-49b8-9e28-445811ed51aa" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_41(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["666f307c-3c5a-4669-8cdb-155b77185b63", "d0cf7c7f-55c2-47b9-aaec-d88a2e4de9a9", "4537b4eb-f27e-4f75-8077-0fc0ee112e0f", "fbb7ca24-d5a4-4bd5-ad74-5d35d5b52114", "25a1c92c-0d67-4047-937e-14d8bceefe99", "0075e932-ca53-4e62-bc17-b50c69d801c2", "a0c9c212-d7db-4852-9350-dee05a542ba8", "7c020961-c4d9-4c8f-a557-bf3f11b47af9"], + max_total_point_amount=2159, + max_point_amount=5998, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=1705, + minimum_number_of_amount=3414, + minimum_number_of_products=3026, + 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_days_of_week=[2, 0, 0, 5, 2, 4, 2, 5], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=3498, + point_expires_at="2023-01-29T09:35:24.000000Z", + status="enabled", + description="R7PmuYOuy85eAINi4DCh9E1piomvY0y0iLi", + bear_point_shop_id="f96d3191-db67-4b59-ad61-b16838b091a0" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_42(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["7d95bfc5-137c-42e6-8cad-d53d3228a7e1", "018b606a-cd92-4745-b3ac-e9380c3cce97", "ac090243-0653-4dfe-a9fa-f128ccc28896", "382b3d9b-b520-4821-9617-30402d5e04d8"], + dest_private_money_id="9ca35c0c-a961-4c88-ab59-173c97a1a0d8", + max_total_point_amount=7561, + max_point_amount=452, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=9315, + minimum_number_of_amount=4631, + minimum_number_of_products=1064, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 6, 0], + 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" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=6890, + point_expires_at="2023-03-01T10:53:27.000000Z", + status="disabled", + description="aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7T", + bear_point_shop_id="1f91be5f-b157-4218-b0de-38681a3a5226" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_43(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["813bca55-1e19-48c3-86ae-3dbad93de7a8", "6228c73f-ac0e-4bd1-804f-570a2bba0a92", "12d931a7-c2ec-4ede-825f-e40e44dae595", "88f716e8-1c82-49ca-839d-9800071dad93", "156085ff-7ffa-4b53-8849-b92e6eb3a910", "c4339607-0c02-4775-b39d-524ce2313334", "47bca605-6f6f-4d96-a5c2-879f20ba1f30", "47d7b487-ca83-448c-a351-044b17f5156a"], + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="42bdc88c-a4ea-40a9-96a2-dc5848b77e9c", + max_total_point_amount=1057, + max_point_amount=7141, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=1079, + minimum_number_of_amount=4533, + minimum_number_of_products=6497, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[0], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=5195, + point_expires_at="2022-12-03T13:26:48.000000Z", + status="enabled", + description="q3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9", + bear_point_shop_id="2805d386-81cb-4f0e-802a-ecd23e4cda48" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_44(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["b7edd66c-b886-42f1-b0f7-45bd6449547c", "c2674692-12fd-4171-bae0-e04d18528ab0", "95f6223c-712b-4093-8f31-ae4cfbdc9eab", "18a1dd01-75d2-4ef8-969f-af50c674c063", "112855be-90d9-414a-90ce-2030fff616b0", "6fac2e88-5540-4452-b6ca-3631c55ebfdd", "5d23cd6b-f5ee-4a20-8df9-c14a63cde9e5", "690e21cc-ae10-4e08-9fac-937cd8eb6744"], + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="bbf66e9d-332e-459b-a1ad-9aa5b1c89c0a", + max_total_point_amount=526, + max_point_amount=242, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=773, + minimum_number_of_amount=5898, + minimum_number_of_products=1361, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=182, + point_expires_at="2022-11-24T23:09:01.000000Z", + status="disabled", + description="qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8", + bear_point_shop_id="a656bda6-8127-4b51-92a3-6ea595e02f48" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_45(self): + response = client.send(pp.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction", + blacklisted_shop_ids=["173d8d84-f09d-4ac1-b7ec-57d71843523a", "b380ea0a-2059-4135-873b-1b4cbbac1b48", "accdfc21-dff1-498a-bd9f-1a0bf0fe9de0", "61dbb0c9-8d10-48d4-aa30-29d51d3e92ba", "8ef8cc10-02be-4967-8a77-24f82bca25ed"], + budget_caps_amount=633957735, + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="e43d952b-4861-441f-8694-993036ae5490", + max_total_point_amount=8680, + max_point_amount=4320, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=8039, + minimum_number_of_amount=2832, + minimum_number_of_products=4333, + 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_days_of_week=[6, 5, 5, 4, 3, 0, 4, 4], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=8008, + point_expires_at="2023-10-25T05:23:53.000000Z", + status="enabled", + description="7nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs", + bear_point_shop_id="927752dd-7ebb-487f-8d30-4d68ab1bb4ea" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_campaign_0(self): + response = client.send(pp.GetCampaign( + "84b8dfd6-9bc7-4614-b495-fd59a06a3124" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_0(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["c9f76ecd-6bb6-4e7d-9900-69fb6b435325", "4d16c9e9-6ce0-4e55-a3c2-ac57c8c198b9", "a9f53d2e-73df-482d-964c-ea26e6c45dc4", "e98809d5-cb15-43e5-aa88-cba882c9114a", "f0362b8f-0fe5-4534-ac61-2ad4e681ac08", "88d18d05-0902-4bc6-8f92-f2ebc04916e3", "3a1e55ca-1bc1-4cf9-9039-e9f62db66b00", "59d33133-e18f-43ec-910a-5f5265128b88", "c44add35-39ff-4eff-a066-e117c5316fca"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_1(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["8400e328-857b-45d3-9e43-bf8455aca85b", "4a0d5cc6-d375-473c-861d-2e4a98d30202"], + name="VqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_2(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["42a92ba6-603d-4ec6-86b3-4648aee5b29b", "1a7796c1-22fa-4fe8-8074-f3f4b489623b"], + starts_at="2024-11-26T09:32:33.000000Z", + name="u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPg" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_3(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["4c662b03-c8da-41d1-9d25-c092b6723f1b", "191baaef-c3de-41aa-87c7-3ca684b65158", "88781984-43ab-444c-a5dc-4fbaf39c77db", "5501a784-31be-4de2-89b8-106858f9cd54", "f2c9c37d-7535-420f-b68c-772e28408c7a", "c10ff6e2-1a7f-40db-a2c6-9a790cad39ab"], + ends_at="2021-10-06T11:45:16.000000Z", + starts_at="2022-05-24T06:34:50.000000Z", + name="W03Q8sgkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnB" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_4(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["0340e3dd-7eaf-4b74-beef-ec2176683dbd", "528a7560-32f9-4127-8b1b-346d76d68203", "9b65502b-ffba-4633-b8db-5842f07add9b"], + priority=6952, + ends_at="2024-02-03T07:11:05.000000Z", + starts_at="2020-08-08T18:52:26.000000Z", + name="1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_5(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["eb6a857c-d483-49da-a7bf-7d599fa25f97", "e9af168b-f214-40b6-9a6f-78ed6a826046", "61a35d5a-ba0e-4c63-bd7d-5efe32c9f6b6", "c1b052e3-48b5-4015-acc1-000c1446613d", "43d5ffe9-0be1-4bfc-88b7-486b8ce4bfc0"], + event="topup", + priority=4506, + ends_at="2023-01-09T01:56:56.000000Z", + starts_at="2021-12-27T06:24:27.000000Z", + name="q2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNs" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_6(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["1766cd63-6447-49c5-9065-b603a951d9be", "6f8f0883-fb1d-4087-a3e0-140a6e66b3b2"], + description="k3yuD", + event="payment", + priority=6784, + ends_at="2021-08-27T10:45:03.000000Z", + starts_at="2021-06-12T02:04:51.000000Z", + name="8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbT" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_7(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["b2792a96-fad6-4515-bc34-d89c34d8785c", "4ebb7ad7-2897-479f-97f3-c2a0f10b0152", "788e08f9-ffdd-42ff-8423-2c2c9dec8ad2", "c731de2b-2f5b-4ad8-a752-ab8cb55c142d", "7ed7e01b-2bd9-43ad-80bb-81d6d2e71b9e", "8befc284-c5e7-48b4-a7c3-e1590f87239d", "9e83018d-908d-4475-ba53-6d03fff0600a", "38c618c2-4b57-4e94-b4f3-628e385fb69e"], + status="enabled", + description="Pc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyB", + event="topup", + priority=2577, + ends_at="2024-04-22T15:48:34.000000Z", + starts_at="2022-10-08T20:03:19.000000Z", + name="sSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_8(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["63a15714-66a8-425c-a910-dc98d027086e", "ee74dd0c-7025-48e3-a134-5c8032281633", "fd58a5b3-b333-4e5f-93d7-c1fcf9fa21ec", "6cf8df70-7134-4b7c-b309-13b796911b1a"], + point_expires_at="2022-05-23T13:17:01.000000Z", + status="disabled", + description="jS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzG", + event="topup", + priority=602, + ends_at="2021-06-16T02:38:20.000000Z", + starts_at="2023-07-20T13:31:57.000000Z", + name="wzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHM" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_9(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["ae8208c4-2c14-4a25-83b4-61a421379c17", "8acbfbd8-d16a-46c1-8067-dc0041377912", "6ca59f99-eb83-4eee-a8dc-5ace4d05a7ff", "1686f867-e50d-4dd0-9b79-7754bbe36a98", "ef7f3761-31f3-40a7-b131-2449da38cc2c"], + point_expires_in_days=8647, + point_expires_at="2024-12-12T03:03:45.000000Z", + status="disabled", + description="xHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2", + event="external-transaction", + priority=8696, + ends_at="2024-10-26T07:48:40.000000Z", + starts_at="2023-03-14T00:53:09.000000Z", + name="IalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW2" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_10(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["a8fbf4ee-e8fe-42a1-86cb-3aca5a8788bd", "b5f55359-36bf-4c44-b61d-6f7ac526a7cd", "bc02d5b0-1726-40b0-95b4-63d15775b1e0", "b8209327-8cd3-48d9-a46b-ae7bf7aa4de5", "26e6a663-1fba-47a0-af02-0d7f27e50dc6", "f8c1cd4a-3efa-4b80-87f2-6c333f12861f"], + is_exclusive=False, + point_expires_in_days=7676, + point_expires_at="2021-09-21T10:54:53.000000Z", + status="disabled", + description="rOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7", + event="payment", + priority=2763, + ends_at="2024-11-15T05:03:53.000000Z", + starts_at="2024-01-19T05:12:47.000000Z", + name="wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHU" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_11(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["699688df-8c22-44c3-b7b9-818b3067ab19", "19425bc9-a3ae-48c4-9dd5-7e24eee0f438"], + subject="money", + is_exclusive=False, + point_expires_in_days=1824, + point_expires_at="2024-11-16T01:21:20.000000Z", + status="enabled", + description="5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExd", + event="external-transaction", + priority=4180, + ends_at="2021-06-14T01:19:36.000000Z", + starts_at="2024-06-04T21:57:34.000000Z", + name="tgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7Peq" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_12(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["24f2600a-f196-41c7-894e-454ef835fd9d", "0ecc5198-c71c-4879-aec7-a0ab375b09fb", "c7c6212a-07ad-484d-b806-af8a3c10f09a"], + 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 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=6634, + point_expires_at="2022-04-06T15:10:10.000000Z", + status="disabled", + description="poUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wD", + event="payment", + priority=6368, + ends_at="2023-01-11T13:07:39.000000Z", + starts_at="2021-11-15T23:18:56.000000Z", + name="01hvmpIXnG4Vdq7gNAtqrq" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_13(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["6584dba9-c275-4acb-914e-d851b80fb348", "cb9085b3-3e18-4b50-8715-6a44efdd8e8d", "c932cee3-a052-4b77-bb7c-1555c7a455c3", "51b13f07-d4e5-448f-bd63-2f983395c410", "7fe01553-e606-4642-aaa7-562dca7db54f", "e3315b09-f550-4ddd-a15e-b3f2569836d9", "cecec57c-1655-45e6-8118-bfdb1b3702d4"], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=3187, + point_expires_at="2021-05-04T11:50:03.000000Z", + status="enabled", + description="xUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOc", + event="topup", + priority=2637, + ends_at="2021-03-17T16:04:27.000000Z", + starts_at="2023-09-15T20:54:07.000000Z", + name="dluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4rhE7P" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_14(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["3d6914eb-e394-43ff-9e5d-2c45acb745c0", "4febd7fa-dd2d-47a1-99a3-b8aeafeede15"], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=7672, + point_expires_at="2022-12-09T16:08:20.000000Z", + status="enabled", + description="xI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55m", + event="payment", + priority=3853, + ends_at="2024-10-04T18:37:03.000000Z", + starts_at="2023-02-16T15:02:22.000000Z", + name="16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8C" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_15(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["2b8d86f6-d9c4-44a4-be5e-0f87167f3e52", "90226a7f-0358-431b-ae93-5a92718d4d3a", "1a014115-31fe-4c7e-ac4a-cded007ce979", "b0ee7acd-878d-4ca3-9a55-5d284170a1db", "e48bf7f1-de17-42be-b36e-91cf34f1d995", "1580a8ce-68a1-4364-94ce-7325a17178dc"], + applicable_days_of_week=[5], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=8795, + point_expires_at="2023-03-19T05:41:14.000000Z", + status="disabled", + description="qTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSB", + event="payment", + priority=59, + ends_at="2022-01-06T16:47:36.000000Z", + starts_at="2021-03-31T06:34:29.000000Z", + name="UyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_16(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["db430470-d96b-4ad4-8ae5-a4c6905e4334", "444f834c-c3c1-4f07-99a9-a9353c24a656", "e5e59815-e03f-4704-9297-efc711474857", "99f8b7e0-0497-4eac-ad5f-1aec30040a4f", "8be2bebc-c635-4f35-9d74-cffbd49d4311", "240e82cc-a804-49d2-a8d8-c8e66959d9d0", "72307e74-8ae8-43c6-a00d-417256808081"], + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 2, 6, 0, 4], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=6772, + point_expires_at="2022-11-15T00:33:00.000000Z", + status="enabled", + description="TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3Fo", + event="topup", + priority=6797, + ends_at="2023-11-19T05:24:02.000000Z", + starts_at="2020-04-25T16:46:21.000000Z", + name="iHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagep" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_17(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["c754818c-7b2b-44c6-a3e2-14b0de860543", "7624fb33-2c70-40cd-a0e5-3168653611af", "4b5dfbbf-987b-4707-9ac2-68cc3592db77", "41fbb089-3910-4eb9-8223-841171f6111f", "198bdc20-4b95-4075-853e-95e8536ae327", "83823a5a-aba2-4789-b36c-0d836c4ceb78", "19bf5223-50ba-4f25-b01f-cb9353811d6b", "2b022919-bd7f-4db6-be21-593e36f33db5"], + minimum_number_of_products=1825, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 2, 4, 1, 5, 1, 0, 6, 6, 4], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=2175, + point_expires_at="2021-01-04T05:44:58.000000Z", + status="enabled", + description="ty5Zp232IvDDPPtMuse", + event="payment", + priority=6655, + ends_at="2024-11-21T06:19:03.000000Z", + starts_at="2024-01-07T22:31:56.000000Z", + name="POdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQn" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_18(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["b8de8622-8dcd-4bd8-bb84-babcaaef39d0"], + minimum_number_of_amount=9598, + minimum_number_of_products=2553, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[3, 0, 4, 6, 6, 0, 2, 3], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=4808, + point_expires_at="2020-08-28T01:35:33.000000Z", + status="enabled", + description="QvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5", + event="topup", + priority=5625, + ends_at="2023-07-04T15:47:08.000000Z", + starts_at="2021-05-02T16:53:33.000000Z", + name="sjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508La" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_19(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["7681cc3e-e04d-4f4e-ab28-0ef8aed9fb04", "175337f0-2d21-46d3-adae-5251ec8644f1", "4b3bc9eb-9a09-4e66-9784-af7bca55ed4c", "69a7bd7d-9df5-41b8-a004-f65e1e83ae60", "69602fac-bd10-46dd-85d7-7f62c77e9571", "f06e6f27-def1-4977-89ea-a423d75d203f", "3ec99890-d7e6-4677-bd4e-3b50b04d4bad", "d11cfe56-cee5-4019-82ef-3120e19a2704", "01e244b8-aeb8-4565-a72a-972e26959dbd", "1e05d0e7-01c6-42f5-8a5d-98ece21f30bd"], + minimum_number_for_combination_purchase=7460, + minimum_number_of_amount=7729, + minimum_number_of_products=8229, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[2, 3, 5, 5, 2, 0, 6, 0], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=6196, + point_expires_at="2022-06-24T15:54:29.000000Z", + status="enabled", + description="2C590AS7UiB0DiDGREmI", + event="payment", + priority=5893, + ends_at="2021-10-24T17:40:52.000000Z", + starts_at="2023-04-13T12:42:44.000000Z", + name="bC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxa" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_20(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["3973e337-4740-476b-86d6-088ccefe30d4", "7806258b-3282-4659-8c05-05dac0b1f174", "8eaf616a-8f90-4ef1-8fa0-6e2efe6c3841", "86b325b6-8ae2-4d6c-955e-0643a402a0ce", "b14e4e2d-fb2b-4c58-8d43-841741b8d7aa", "3039c402-0e2c-4178-898c-fa4287e35624", "c347c9b2-5ca9-4c33-8e4b-f802c8383e86", "c59f9b44-38ad-42fc-99f6-a125561e3517"], + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=6073, + minimum_number_of_amount=7932, + minimum_number_of_products=9283, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[0, 3, 4, 6, 2, 3, 1, 5, 2, 5], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=5100, + point_expires_at="2021-08-21T05:42:54.000000Z", + status="enabled", + description="611LhXRF1WjDXemYssWVQAa", + event="topup", + priority=2011, + ends_at="2020-06-16T23:34:44.000000Z", + starts_at="2020-12-17T18:00:51.000000Z", + name="9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_21(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["2d345eb4-d174-4e4b-943b-f4bc3bc45c3b", "19443439-a76f-4948-bd2f-c2fcbfb3f967", "def6586a-3fbd-4520-bd6e-d7d06dd9346e", "2f5f62e5-b335-4786-b159-d1dadeef4221", "2fc3984f-60d5-4b19-a5b0-dbfa52a346c7", "bb3993f1-89b4-4650-b0da-1a42cd4a0663", "07918b9f-e9bd-47b0-86f2-11fecac691ca"], + max_point_amount=849, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=1652, + minimum_number_of_amount=2187, + minimum_number_of_products=2293, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[3, 2, 1, 1, 5, 0, 4, 0], + 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" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=3421, + point_expires_at="2024-06-11T19:01:54.000000Z", + status="enabled", + description="w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am", + event="topup", + priority=6451, + ends_at="2021-12-27T15:21:00.000000Z", + starts_at="2024-06-22T11:50:35.000000Z", + name="rhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014v" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_22(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["6b7e8e67-c80a-4649-a3e8-a709f7d7c110", "09349235-1d18-4bdd-97a7-e1b6bc626358"], + max_total_point_amount=7099, + max_point_amount=3198, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=8269, + minimum_number_of_amount=8030, + minimum_number_of_products=8354, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 1, 4, 6, 6, 1, 3], + 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" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=6734, + point_expires_at="2021-12-31T19:37:43.000000Z", + status="enabled", + description="7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFm", + event="payment", + priority=1144, + ends_at="2020-04-30T14:49:45.000000Z", + starts_at="2020-01-16T18:11:13.000000Z", + name="ZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9Te" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_23(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["bd62a394-f8bc-407a-be54-0113f2666213", "9b0a1ea7-1e2c-4aa1-8523-686a2702b006", "eee4ee33-6941-4cbe-96b0-ad1f5d8b89b8"], + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=9, + max_point_amount=1641, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=6413, + minimum_number_of_amount=6872, + minimum_number_of_products=8454, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[3, 1], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=8166, + point_expires_at="2021-01-26T23:28:28.000000Z", + status="disabled", + description="FExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8X", + event="topup", + priority=5758, + ends_at="2022-04-27T13:44:04.000000Z", + starts_at="2022-01-18T13:10:32.000000Z", + name="n7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUo" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_24(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["595c1980-0260-4c81-80c3-2e4a516cc535", "fd7c39df-819d-4669-9388-b2c80df53808", "8ea4f9f1-d2a2-476f-b287-b50f2b0aa6c9", "f602e714-6eaf-4573-b793-b68a92e1f1ab", "4ac8af15-d898-420b-8950-bde340b36c5e", "95e0b00a-f51e-4db2-aee3-354250721673", "08ab844c-51c5-410e-b75e-2473b652ceeb"], + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=3485, + max_point_amount=8329, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=5609, + minimum_number_of_amount=2835, + minimum_number_of_products=6590, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[5], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=1671, + point_expires_at="2023-01-31T02:35:17.000000Z", + status="enabled", + description="epO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkq", + event="external-transaction", + priority=6370, + ends_at="2021-06-09T09:02:18.000000Z", + starts_at="2023-01-29T04:24:33.000000Z", + name="90Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXF" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_25(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + applicable_shop_ids=["eab7cba8-8347-4fd0-b19c-3ead4697257e", "319b7125-377b-4709-9100-5862f70a4f99", "16f3f8a3-7e04-4fe7-b1b2-d7dd85eeb82b"], + budget_caps_amount=1561450174, + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=4654, + max_point_amount=3089, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=1597, + minimum_number_of_amount=8315, + minimum_number_of_products=9998, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 5, 2, 6, 6, 6, 1, 6, 5, 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=4010, + point_expires_at="2023-10-05T14:46:25.000000Z", + status="disabled", + description="tZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl", + event="topup", + priority=2610, + ends_at="2024-03-01T03:45:35.000000Z", + starts_at="2020-06-28T22:55:18.000000Z", + name="tJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_26(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["3f47acd8-82f7-4311-8901-18f118e275ad", "97db8b1f-aef9-4286-a5ab-5bd0aab1a784", "942971b9-b1fe-48b5-9357-c546ed5fa624", "7ad89b27-d073-42f2-84d4-275a34847c0b", "6e0e7673-fcd4-41a6-9cc8-bf615c4d61cc", "8e8c714d-c17b-46a7-81fb-62826937b9f8", "0ca969bb-9482-4c2c-b4a8-dbdf16fd2b8f", "0e7c36f8-7811-495d-a8a8-92852ee02523", "47bb32fd-b24a-492a-9bba-a26d2065ead0"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_27(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["4c0a6e2b-9fe2-4332-9603-ecf4176462ff", "8a1a6e9b-532d-4db3-a583-f598f3742deb", "6d33bc7e-b323-457f-8e26-09cd39ad3a5f", "b2bb34e7-5a54-44fa-8178-12ed04ec02b3", "52b5266e-7418-439f-a5f5-b79be8e57343", "880cb074-926d-46b4-b4c0-3acd01710e1a", "fb8204b4-fda5-4af2-9137-373d4fe55298", "d71fe154-6ccd-475d-9740-cc2059223d3e", "e2fd9216-0277-4e9e-9c25-a5a38636a9ad"], + name="QegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFM" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_28(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["eca47459-f663-472a-bed0-ce7076fe44ef"], + starts_at="2023-06-23T11:52:36.000000Z", + name="qcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_29(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["34e80ba6-2f45-4b33-aeb3-b4c39aacf507", "06096f8b-208a-4509-91d0-8a60c61d6c46", "43be5e88-adb6-413c-ab78-58c916821e93", "1783716c-e749-40b0-b5a2-65673b4e3d75"], + ends_at="2021-12-05T08:00:45.000000Z", + starts_at="2022-05-31T11:49:14.000000Z", + name="DnziraNYM7VX5Y" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_30(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["59e84585-2bcc-43a4-a73a-ec2e66dc2d5f", "f3fd8b6e-b22e-4b02-a1ec-4c8e12c81ac4", "17cc4e38-ffc8-4340-8fcf-1643e4f69e44", "4e51586c-490a-42d0-b447-5ddaef0079b7", "10886b6a-b3e2-41a5-ad0c-bad82e268c4d", "7b3ef9cf-9299-4735-88fa-01bba4ee4696", "d170293e-c187-4a56-8d77-6ae63c418e08", "02ab03a8-e69c-4d12-ab21-71b348e1abe6"], + priority=2747, + ends_at="2024-01-30T12:47:53.000000Z", + starts_at="2023-04-21T05:15:49.000000Z", + name="ehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4OovF1kPsfFAfUD6hedBM" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_31(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["ec1c2a4f-0135-4e10-a3df-40ff47c645de", "41a8d03f-1f35-4273-bf29-fa6923fb6f3a", "58aeaf42-ab1a-41e8-9dd0-07d327dad960", "8792d3b0-8450-48ae-87a2-c164359d78fb"], + event="payment", + priority=6443, + ends_at="2020-06-19T13:38:47.000000Z", + starts_at="2021-09-13T04:39:55.000000Z", + name="ltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0kXmsTMdug" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_32(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["7e6ff4bf-441c-4f28-9dbe-1f73e8cf356d", "2c6a6952-c674-49a8-8710-a1fe88852203", "7915473f-93ab-4edd-aea2-0746800d76bd", "9fc4ea25-b51f-4ab7-a9cc-1a342f159c6b", "ca83b0a1-19ac-4d06-860e-b1c3a745e357"], + description="rbFqt27c2GHcIyayD2aKjX", + event="external-transaction", + priority=7430, + ends_at="2020-04-25T01:02:58.000000Z", + starts_at="2020-04-27T02:05:11.000000Z", + name="Ty0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsMYGbxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_33(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["82d504fb-d18c-4c8b-b392-f5c4267a8203", "02cfad0a-179e-4766-8d2a-8374c4db075a", "f8644ce3-b5dc-4b8c-a1be-f18eba09fb10", "829b4faf-d5e4-4879-bb67-301d25be4e90", "9391df05-f6ff-45a2-ac99-656d513e3a4e", "c2529fa7-92d8-41be-a2a0-d8a365d08445", "917d792f-36f0-4870-bb95-4b452b863ddd", "96afa498-c680-4b74-8191-fef782f38e2e"], + status="disabled", + description="qu8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0XdBqvz2LZqSb1Cr9GvJk1u6JVnb04lQy4ktenk93ttYPJhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1", + event="topup", + priority=4573, + ends_at="2023-12-10T19:57:37.000000Z", + starts_at="2024-05-09T06:54:12.000000Z", + name="s3zE32Vk24Ceen1NSjytDUp3byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPSNst44xBM1tMMoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_34(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["18dae39f-f04c-46a4-826a-c9faaccc7e8c", "25c0b743-589a-470d-94e4-f9acae24e3fd", "1db6f010-3985-4683-a7fb-f07be2c22405", "f2b37851-0eef-4403-a434-6b981840dd47"], + point_expires_at="2020-09-01T07:38:37.000000Z", + status="enabled", + description="Y7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf7XzEp3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfS", + event="external-transaction", + priority=8848, + ends_at="2024-06-01T23:18:38.000000Z", + starts_at="2020-10-18T07:46:52.000000Z", + name="jgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_35(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["84daa522-0d73-4b84-ac04-8a2502678085", "2bbc5851-30d1-4eda-898e-bcbfae3c1a96", "f8e33cf1-0f37-4d8b-a17a-cb8e376e6ad3"], + point_expires_in_days=7760, + point_expires_at="2024-10-25T10:37:55.000000Z", + status="disabled", + description="czj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3P21", + event="topup", + priority=3578, + ends_at="2022-05-14T20:08:05.000000Z", + starts_at="2020-06-04T01:56:48.000000Z", + name="x2jnlKrw0LdNS4VtkXCDrt0LJOE3Qgwr" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_36(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["22085cc3-465f-4f8c-9d63-cbf372f51b81", "9b749dfa-a4e8-4281-83e6-d9487bf6ab30", "d518c9b9-c3ab-423d-ab14-69bcfb82e70f"], + is_exclusive=True, + point_expires_in_days=7170, + point_expires_at="2021-11-08T22:42:33.000000Z", + status="enabled", + description="5OthVwPmvHXBF", + event="topup", + priority=5971, + ends_at="2023-04-05T11:09:18.000000Z", + starts_at="2021-01-24T13:44:31.000000Z", + name="nHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxVOS8aVOpiS1EeKe2EnvF9kW30yXFj5pEZ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_37(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["df38735c-2c7f-47bc-9cce-ebcf05041674", "82d7b1c9-d1af-45f7-a063-8487c9c09172"], + subject="money", + is_exclusive=True, + point_expires_in_days=10000, + point_expires_at="2024-10-14T06:41:37.000000Z", + status="disabled", + description="p7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN6p0E7", + event="external-transaction", + priority=881, + ends_at="2020-05-09T18:35:03.000000Z", + starts_at="2022-12-10T05:10:54.000000Z", + name="tOk3QUVbESEWPtcFyu37VMAkI2ylOPtFPfUfw5cNQlmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFrJK4" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_38(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["612b55d0-7982-42f6-aca8-2c14971f6c34", "6173b38d-34d6-4368-b111-59cf150fbc06", "de14c591-8264-4071-b9cb-51c8998b527c", "afd176e3-fdc9-404f-a150-3d214e133368", "20a4079e-971a-4eae-a222-a3ffb7fa7cf6", "59ef4389-fb7b-4d8a-a36f-cc2ef6ca4367", "5e0ac5df-206a-4f1b-8010-1a056b5aea9d", "c2d3fc1c-9232-4518-ad45-19c1c44bdb97", "5f92119b-4121-4daa-9f54-aab9e88dc66b"], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=678, + point_expires_at="2023-11-30T02:08:36.000000Z", + status="disabled", + description="xX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbRE9tWUhNPatHCNYgstx4oloda7k12vM37GlbZJKS", + event="payment", + priority=3782, + ends_at="2021-05-03T09:50:29.000000Z", + starts_at="2020-01-07T21:57:37.000000Z", + name="myXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGSkB9sMClBaFjZtZBNIprW" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_39(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["d098cccd-1d1b-4513-a648-5776b9e27db0"], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=1596, + point_expires_at="2021-12-20T17:36:58.000000Z", + status="enabled", + description="r3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXonmfKJhNI2H30SlKK1O1UKOiryeoJ2KHqioFo", + event="external-transaction", + priority=2384, + ends_at="2023-01-17T10:11:37.000000Z", + starts_at="2021-05-29T12:46:11.000000Z", + name="YFDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVupSap8p4f5efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3GWqnvnIS00nrMnQNFRY" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_40(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["ab095bf1-a8d1-477e-8232-f94cfc7f470f", "9008c6ab-ea87-4d4f-b676-c2f8755f042e", "9dbb8c80-323b-4411-a14a-48577c9a6a64", "7d1a8925-a85c-464d-b625-ccd2fa8a0479", "16ef1fce-8b45-485d-aa30-d323d1fec416", "69d133b8-28c1-4004-8840-b76f9c2eed5b", "262615c3-1100-4527-a590-62f9cbb3e292", "386269f2-0db2-4e33-98a4-8f7195cc486e", "cd861397-6c7e-4453-a110-c9e34c836dbe", "93206acc-2a6d-46c2-982b-227c0c288b58"], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=2983, + point_expires_at="2024-07-29T00:59:09.000000Z", + status="disabled", + description="fJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0zvPKHwlN5cgpKhTDjrt62aO0gTJKvsFX8pCgUNdYXQChONhwWGHDaQRstzyfCMC6r4ZI5zg9bDUlUJBBIg9Fd6Y7e4aTjbZiLOaWRsEnzqZ6lGrz0tQnP1Co4x4AXMvzQhY1JlrHqbdULcyqcFghqK", + event="topup", + priority=6985, + ends_at="2021-10-08T03:54:37.000000Z", + starts_at="2023-12-08T08:23:05.000000Z", + name="i3aAuGXWsNdhyWJyqrPAKmmZGZJNC4j2awHXlJF9A7cu6AxfU8HIO6LO5Dd5XiFWL9oU011XoGoCpelXPpOt9Y3msxtcs0WRQEq2AUltkkF5RV8aSNO9GQnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_41(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["21c3d0c9-c6d8-4ac9-9162-57262f6086e0", "f2fb5d54-ef21-4157-80eb-ea65f6d1757b", "d59d0e83-329a-40fc-b725-c32368e267d8", "c155453e-6257-4f02-b152-eb3fc78148e7", "c0d2f213-f2c4-4e60-b690-c2827ba3bb78", "cc934a3f-432a-4e10-9f65-6f2a4dff4113", "e927ec75-4568-4b91-b471-b963a49be52f", "90c37385-747d-40dc-b082-53ecd843c856"], + applicable_days_of_week=[5, 6, 6, 0, 0, 5], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=8102, + point_expires_at="2021-03-02T11:27:05.000000Z", + status="disabled", + description="FsUJPsCckORoCtdXbeAqJmttYcSXDoCgwypQnQUsnWOKMZ3rJ8aRGwz6VDq2kLV7UR9Ys1BTbKj9QeMGWU46l1ev23Q", + event="payment", + priority=3807, + ends_at="2022-02-25T03:07:49.000000Z", + starts_at="2024-04-07T11:16:28.000000Z", + name="Pgtt4yAIzCwP1Z0JVfF9RSrf0Q1pmhWHNJvae7EjBkQNn9uWl9JunPyftwg9sZ6EOXmzMsMVDhbzfFvUl3UtKdNP5TLVhbhll0GP4QAkQeOPrTAo5HhYx5jCaGbLEuJCfBO4W1IV2UViZVHRWPkdj3cWX27LHxVCRX" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_42(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["d5818992-91a3-414a-b752-3752962d62b9", "3b4a82f6-6be8-4729-8ec9-ab142d84ff3e", "7c3f0883-25f5-4215-85a0-8e8bb1029db3", "70cfcc8c-8e16-4324-a0b1-8176cfd4d1eb", "8312cd95-1e9f-4147-8ce4-d008db455b85"], + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[1, 5, 4, 4, 1, 6, 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=9997, + point_expires_at="2023-06-14T16:41:18.000000Z", + status="disabled", + description="RA9E535lViSyzzCHjVEEg0SpYDFFDY1quxNkSS1vmCLOUldc17zrM7imjJVYnMFmZVKbnQskJ4SJWYdnxMjsH9rlpcWw1Vg5A3jIY5TVDn7VAyGhf1a2i4Xb006Y5FN9bW9vksFBm8sMwbh1", + event="external-transaction", + priority=2469, + ends_at="2021-05-20T16:06:08.000000Z", + starts_at="2020-07-07T19:38:04.000000Z", + name="EmCrFqNwdLZ15QmFMvlNaa2goLZ5E9OEvOUIiBwbJ5GuqfgOe9nVnbOf1mceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8UioFkI4pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3by" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_43(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["b7b8c4a4-f47c-4a68-ae1e-9d40665da15d", "b0919805-38bf-44eb-b9cc-2f3636850a79", "ca2eedb5-f5d2-4834-9a0d-2087298885eb", "f9fc261f-ec15-48a3-8ec8-3027d9f60dd2", "629ce9cd-6a5c-4858-982e-add108083083", "49b1b4d4-3a7a-4f1d-970c-a8b194c1bb16", "025f553d-c4a5-43e9-820f-d969baba755e", "8db0cdd5-9cfd-4020-8918-531c1c8d12a8", "cd8a91fd-e535-463a-9f4a-208ff376cade", "af8809af-643a-4b47-ba7f-241e7d2c923f"], + minimum_number_of_products=7681, + 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_days_of_week=[5, 1, 6, 6, 4, 1, 3, 5], + 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" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=4526, + point_expires_at="2024-01-08T21:34:46.000000Z", + status="disabled", + description="Z2zOymd6UzJ163lry8C4rDtJNzcEFdrvo427ISByum8MIrVugVBfTif3qpXYgZnZ3LJOu3iwipHdsS3ShjnA4Sr1gSN2Pe", + event="topup", + priority=7033, + ends_at="2020-07-15T02:41:59.000000Z", + starts_at="2020-08-17T18:51:21.000000Z", + name="qnkqJGFUWWcs7OK2a7LaTGiSi2nVCa3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsFLw1OF89AbrhaWMPvJ4w9Bb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_44(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["8338f53d-8547-4edd-bb4c-725765302578", "b6155354-264f-4614-8b11-4cdd58e55aa8", "03069f2d-026e-44bd-b18d-c15b0200cda1", "faee8148-191f-4a97-9583-d43aa233451b", "0344e4d5-a7b2-4cb0-ae75-a6eb56821826", "32a14da0-f8ff-4c78-98b1-06983bbeb746", "917bbea2-747d-40bb-a544-9dd13020a08e", "7840b4f0-a456-4ef1-8d74-703cd00a66f6"], + minimum_number_of_amount=3309, + minimum_number_of_products=1650, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=7233, + point_expires_at="2024-07-10T09:47:58.000000Z", + status="enabled", + description="qFJFhJ6HuYWnqyIUhAD4rpz6whWSFAXMqy8UduAdQ5IH0TK2HSat5A6ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3", + event="external-transaction", + priority=4163, + ends_at="2021-02-04T14:45:17.000000Z", + starts_at="2020-05-14T13:38:52.000000Z", + name="yNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvI" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_45(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["cf8edeb6-0df8-40aa-b5eb-2c3dd93c0bd2", "22a1a1ef-86a0-4ac2-b42b-6a38513748b6", "dc6b4dc9-c218-41e3-99ee-30d3f78eb3f2", "2215dd58-6a77-4b85-87ac-9e87b2faa15a", "64cd4c47-e5be-4a50-b312-d0c40742edc6", "2926cf04-1760-4185-bb99-1ebd9aa43566", "c3dc1886-9c7c-4d2c-a492-5c62903f9983", "b2f72b3e-a0e8-4e83-9116-daff03d0d1bc", "749a5a70-1b6a-4e27-839d-39efd15f14b6", "eee96981-3743-4ff6-9a2c-dded224651e9"], + minimum_number_for_combination_purchase=4883, + minimum_number_of_amount=3400, + minimum_number_of_products=7617, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[6, 6, 4, 1, 0, 4], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=4, + point_expires_at="2021-04-30T16:58:56.000000Z", + status="disabled", + description="9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51N", + event="payment", + priority=8399, + ends_at="2021-08-05T10:55:15.000000Z", + starts_at="2022-12-13T23:14:50.000000Z", + name="8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEEKedrMwdHukpCicHBj64f1DT6D6Mien3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4S8a9Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0Uegn" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_46(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["3eb3cdea-ecdc-4995-8b35-ff4b5d4be4fe", "d87db9b1-e6b2-4486-bb96-b7fd7633a2fb"], + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=2766, + minimum_number_of_amount=2392, + minimum_number_of_products=658, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 6, 1, 1, 1, 4], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=511, + point_expires_at="2023-04-02T22:48:51.000000Z", + status="enabled", + description="ouPF8sEd3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9O", + event="payment", + priority=1944, + ends_at="2023-05-08T21:30:24.000000Z", + starts_at="2024-11-30T05:12:21.000000Z", + name="LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BR" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_47(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["9190cf18-f4a2-4404-9d34-af1b3fd8ee97", "8403b6cc-7d2e-4f78-aa03-db0719ca74d9", "b6787f97-8326-42fe-b007-f886bfe8b6ff"], + max_point_amount=6445, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=4567, + minimum_number_of_amount=8263, + minimum_number_of_products=1049, + 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_days_of_week=[6, 5, 0, 3, 1, 0, 0, 0, 0, 2], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=9300, + point_expires_at="2020-09-23T01:17:01.000000Z", + status="enabled", + description="AdoZmrqVFQp8fp9IpDGNT32XXjSeAsfsowmrnytFnDNPErJC0T6j8TSBN1GRIxfJ3UGUUM2jHDzbRjTfUU5d5AtOipE6L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5T", + event="external-transaction", + priority=7343, + ends_at="2021-12-08T00:49:12.000000Z", + starts_at="2022-03-29T00:18:38.000000Z", + name="xePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNRasJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1T" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_48(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["52ae033f-6947-4fb2-b914-edca2425a0c5", "e2ddfdbb-754f-45ad-8ce0-a468a9fdaa22", "19cf7f6e-8c72-4857-810b-182c8823ac9c", "316db22d-af0b-4ca1-ab3e-7f512269608e", "14cdc708-6b0e-463e-9cd6-61e824377c13"], + max_total_point_amount=2233, + max_point_amount=119, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=7513, + minimum_number_of_amount=5412, + minimum_number_of_products=4523, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 3], + 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=8368, + point_expires_at="2024-07-07T19:32:22.000000Z", + status="enabled", + description="cNlMmgEuaHAHntz60OEH7JgjiAw3cGaLL5KHpinnRK5y0OzJ9Hvf2cVYRMoN8ciCbZWnzcDnK4LA4gWzsFxrEWGQmIqwq80GWYOCdqp3aMw45RftnlC78XMJnZ0CKAQudtFEN83UK6KJ482qLWZU1lTgJBoEtylA7Lc", + event="external-transaction", + priority=5593, + ends_at="2024-12-11T16:15:04.000000Z", + starts_at="2024-09-14T12:24:36.000000Z", + name="5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesK" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_49(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["29ff17e2-50c5-4d8d-8878-8aebb03c66ce", "434663fb-42e9-4067-b9e3-dae3041874d2", "3dcf9656-a175-4e58-95e1-bc15d81a7af8", "67234b99-dd05-46c8-8141-30a3dd9c077c", "9f292f5d-5b8c-4e90-ba7e-7974243d53eb", "ffcfbe66-726c-4388-900d-0aa9c90d1113", "e41f7272-6362-4b07-a7d8-dc943e107aa8", "6ff57935-4fb0-44b7-a1ab-9aba547e45a5"], + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=1273, + max_point_amount=9061, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=5655, + minimum_number_of_amount=1003, + minimum_number_of_products=5611, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[2], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=2530, + point_expires_at="2020-03-01T02:47:26.000000Z", + status="enabled", + description="W3s3mbWjjaocKJS9JHlwFlJcsltjjmodDQEUxDaghv7DnSC5Rfu0C0uKFwmpPkPjblE3KxRrUTFSpI6jwJUUxrUc5", + event="payment", + priority=6202, + ends_at="2022-03-19T20:43:04.000000Z", + starts_at="2023-02-18T09:50:36.000000Z", + name="2A200gV6FxYfWwCiS0MuCLswxDV9drgRKhLSvZ2KQORx" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_50(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["f950c6fc-387b-48c8-b219-ba6fa9545e3a", "0a387ad1-c06f-4136-aaaa-96a0b4c8b6a5", "e815d240-0022-42fb-8ddb-eb83a73947b6", "39a98f36-c08c-4a80-9732-db790caacbb8", "a89c8504-55ab-4ccb-b2ad-3d16c4f530da", "dc93aa38-3525-41f8-9fcd-c96ccdad321b", "407f37ce-5fdd-47e1-acf6-1e571f33f261"], + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=461, + max_point_amount=1259, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=797, + minimum_number_of_amount=4481, + minimum_number_of_products=1671, + 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_days_of_week=[3, 3, 5, 0, 3], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=7268, + point_expires_at="2020-09-23T06:35:43.000000Z", + status="disabled", + description="J7e4Q9GCUyL2v9u3mWzZwKqxzujrUlmkKRdRXeieY6AmMB38WCqGZQWNed5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUMLq2pynj2i9JShHMs7dpHbhmzmDvsuxdQ", + event="external-transaction", + priority=8774, + ends_at="2021-09-11T03:23:12.000000Z", + starts_at="2020-11-16T08:33:10.000000Z", + name="1b9FFVSxNRhY3CeG383Fyff0GWufJQM5UqG40T5H1YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6dE59eFWe4PxHJhHM6PRObQxj3f4w8El4HGgfInUuZUZacdXJKl" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_51(self): + response = client.send(pp.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5", + blacklisted_shop_ids=["224ea208-e960-40e4-9cdc-126ff73bb6c4", "34028b22-6d75-49f6-b97e-6a5442513cc1"], + budget_caps_amount=1636431877, + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=5980, + max_point_amount=1176, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=5977, + minimum_number_of_amount=942, + minimum_number_of_products=3581, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[5, 0, 0, 4, 3, 0, 4, 0], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + 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 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=7773, + point_expires_at="2021-12-15T10:02:54.000000Z", + status="enabled", + description="jq4YdkJGWgFmKTEIA1MAf2HgecIl74FyRST7ScfdaiXI0aphnQpmaEH46JpxMwBWB66twUXazpjqxEREjqmyqJkEdfkYviMgBpZAYBbcvRZzaI37qk5Qpl5Gz36NQavWZXSE0IrKdpz0FXntwLwsP6PlvtKf", + event="external-transaction", + priority=4132, + ends_at="2021-05-29T09:47:35.000000Z", + starts_at="2021-10-03T02:48:57.000000Z", + name="zk6Hoi0oeAT0NWEwBSET0oVnBy6crZKnvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB304Jmf05hgJ0rNiPO7Acqsb1X8oQj9wf9SU4WjLK1VT02GEDFloz09QK5UFuC5JXRVayFf6oyQZu56A1wWz" + )) + self.assertNotEqual(response.status_code, 400) + + def test_request_user_stats_0(self): + response = client.send(pp.RequestUserStats( + "2021-04-23T15:11:54.000000Z", + "2023-07-30T12:31:10.000000Z" + )) + self.assertNotEqual(response.status_code, 400) + + def test_terminate_user_stats_0(self): + response = client.send(pp.TerminateUserStats( + "311f49ae-5b54-4af8-ad0f-99ed5e1b05df" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_webhooks_0(self): + response = client.send(pp.ListWebhooks( + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_webhooks_1(self): + response = client.send(pp.ListWebhooks( + per_page=2833 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_webhooks_2(self): + response = client.send(pp.ListWebhooks( + page=8498, + per_page=6549 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_webhook_0(self): + response = client.send(pp.CreateWebhook( + "bulk_shops", + "r" + )) + self.assertNotEqual(response.status_code, 400) + + def test_delete_webhook_0(self): + response = client.send(pp.DeleteWebhook( + "40f5baf7-7651-487b-8be8-e3c801c9b0d4" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_webhook_0(self): + response = client.send(pp.UpdateWebhook( + "b37aac05-dc04-42b3-898d-4a86043a79d2" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_webhook_1(self): + response = client.send(pp.UpdateWebhook( + "b37aac05-dc04-42b3-898d-4a86043a79d2", + task="process_user_stats_operation" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_webhook_2(self): + response = client.send(pp.UpdateWebhook( + "b37aac05-dc04-42b3-898d-4a86043a79d2", + is_active=False, + task="process_user_stats_operation" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_webhook_3(self): + response = client.send(pp.UpdateWebhook( + "b37aac05-dc04-42b3-898d-4a86043a79d2", + url="u8YJJm39h", + is_active=False, + task="process_user_stats_operation" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_user_device_0(self): + response = client.send(pp.CreateUserDevice( + "4ea24557-a9ad-45e1-8ef8-ba54722bb680" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_user_device_1(self): + response = client.send(pp.CreateUserDevice( + "4ea24557-a9ad-45e1-8ef8-ba54722bb680", + metadata="{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_user_device_0(self): + response = client.send(pp.GetUserDevice( + "e7ba11f4-b63e-40b5-957f-e4d3badc4f8d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_activate_user_device_0(self): + response = client.send(pp.ActivateUserDevice( + "fe44ae73-fc89-4b5b-9bf3-11ba6b9651e9" + )) + self.assertNotEqual(response.status_code, 400) + + def test_delete_bank_0(self): + response = client.send(pp.DeleteBank( + "ff2aa541-5a6a-4f18-8bd7-738d81c15685", + "5bf9a58a-fff9-4ffa-b182-fc163e53629b" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_banks_0(self): + response = client.send(pp.ListBanks( + "a93523c3-c82b-48f6-8aef-f836ca1e947f" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_banks_1(self): + response = client.send(pp.ListBanks( + "a93523c3-c82b-48f6-8aef-f836ca1e947f", + private_money_id="740ad7e3-2cf6-4982-853a-944753ac1844" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_0(self): + response = client.send(pp.CreateBank( + "bc3236d1-364e-4d73-b566-8fe156af8d1c", + "6bbb59d3-c97d-4a0e-882d-72995dc59778", + "VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8", + "B2Q" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_1(self): + response = client.send(pp.CreateBank( + "bc3236d1-364e-4d73-b566-8fe156af8d1c", + "6bbb59d3-c97d-4a0e-882d-72995dc59778", + "VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8", + "B2Q", + birthdate="PQ9Y2Rps" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_2(self): + response = client.send(pp.CreateBank( + "bc3236d1-364e-4d73-b566-8fe156af8d1c", + "6bbb59d3-c97d-4a0e-882d-72995dc59778", + "VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8", + "B2Q", + email="j0heI1pcWB@x1T3.com", + birthdate="cQ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_topup_transaction_0(self): + response = client.send(pp.CreateBankTopupTransaction( + "03874ca0-ce1a-4d74-9c66-f36298d257ab", + "25d6f295-1f7c-4ad0-8399-4f4044d29f41", + 3541, + "c79a218e-3a62-4766-9145-2754bb8e09df", + "6b985367-ca5f-459d-9d4d-4a9d3d23773c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_topup_transaction_1(self): + response = client.send(pp.CreateBankTopupTransaction( + "03874ca0-ce1a-4d74-9c66-f36298d257ab", + "25d6f295-1f7c-4ad0-8399-4f4044d29f41", + 3541, + "c79a218e-3a62-4766-9145-2754bb8e09df", + "6b985367-ca5f-459d-9d4d-4a9d3d23773c", + receiver_user_id="c9416c5b-4f83-4805-a48c-2885ea5f9338" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_0(self): + response = client.send(pp.ListCoupons( + "04136ecb-6c2f-4396-afa3-561004526c5d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_1(self): + response = client.send(pp.ListCoupons( + "04136ecb-6c2f-4396-afa3-561004526c5d", + per_page=5695 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_2(self): + response = client.send(pp.ListCoupons( + "04136ecb-6c2f-4396-afa3-561004526c5d", + page=3440, + per_page=1348 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_3(self): + response = client.send(pp.ListCoupons( + "04136ecb-6c2f-4396-afa3-561004526c5d", + available_to="2023-12-09T09:33:15.000000Z", + page=4102, + per_page=1525 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_4(self): + response = client.send(pp.ListCoupons( + "04136ecb-6c2f-4396-afa3-561004526c5d", + available_from="2021-08-09T18:42:45.000000Z", + available_to="2020-10-13T05:00:03.000000Z", + page=63, + per_page=2171 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_5(self): + response = client.send(pp.ListCoupons( + "04136ecb-6c2f-4396-afa3-561004526c5d", + available_shop_name="1f", + available_from="2020-06-20T06:55:31.000000Z", + available_to="2021-01-20T12:14:24.000000Z", + page=3811, + per_page=7954 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_6(self): + response = client.send(pp.ListCoupons( + "04136ecb-6c2f-4396-afa3-561004526c5d", + issued_shop_name="pdjK", + available_shop_name="CTfj1GK9R", + available_from="2023-09-02T13:18:18.000000Z", + available_to="2023-02-05T05:33:31.000000Z", + page=8897, + per_page=2839 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_7(self): + response = client.send(pp.ListCoupons( + "04136ecb-6c2f-4396-afa3-561004526c5d", + coupon_name="p80", + issued_shop_name="GIfZb0zQJu", + available_shop_name="IdXR7obZEo", + available_from="2023-10-25T22:40:07.000000Z", + available_to="2022-02-24T12:27:56.000000Z", + page=7570, + per_page=2931 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_8(self): + response = client.send(pp.ListCoupons( + "04136ecb-6c2f-4396-afa3-561004526c5d", + coupon_id="RSePLUjWmS", + coupon_name="1Vfe4rF1", + issued_shop_name="r4pu5zkeb", + available_shop_name="CqAbvDaj0", + available_from="2023-09-26T00:34:52.000000Z", + available_to="2023-11-27T20:55:20.000000Z", + page=1281, + per_page=3522 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_0(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=3874 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_1(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=6253, + storage_id="bdc5bd7b-cffb-4d8c-8158-0dc3d21c7475" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_2(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=5539, + min_amount=4843, + storage_id="0742a2b4-424f-40e5-8f59-6c4dd2413ce4" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_3(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=1831, + usage_limit=7990, + min_amount=5766, + storage_id="3f451436-aae6-4f58-86ec-1c513e52cf6d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_4(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=1610, + code="9z2bnV3FE", + usage_limit=5183, + min_amount=6870, + storage_id="d0a1b47c-3c21-40e0-8f97-2040af8ce44d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_5(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=4896, + is_public=False, + code="n", + usage_limit=9644, + min_amount=6304, + storage_id="70a39782-f653-4567-a63b-0c70ed80d36e" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_6(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=7341, + is_hidden=True, + is_public=False, + code="2KuX", + usage_limit=7122, + min_amount=4967, + storage_id="bc0e6c98-08db-4392-87ba-65e63915abd5" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_7(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=4326, + is_disabled=True, + is_hidden=True, + is_public=False, + code="r", + usage_limit=2825, + min_amount=9597, + storage_id="2ab28044-0975-4bbc-b8d4-08313e34e0ca" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_8(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=6035, + display_ends_at="2023-11-29T05:33:31.000000Z", + is_disabled=True, + is_hidden=False, + is_public=True, + code="jgzjmCRB", + usage_limit=4930, + min_amount=8877, + storage_id="5b329ce2-1087-4ce4-9753-48de1b59debc" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_9(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=9910, + display_starts_at="2023-01-06T06:27:43.000000Z", + display_ends_at="2021-11-16T07:18:34.000000Z", + is_disabled=False, + is_hidden=False, + is_public=False, + code="IuNd5O", + usage_limit=6797, + min_amount=2246, + storage_id="6a417cce-e9f2-49da-8e15-06586b44b7c5" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_10(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=9389, + discount_upper_limit=6976, + display_starts_at="2021-01-26T22:44:07.000000Z", + display_ends_at="2024-08-23T12:17:21.000000Z", + is_disabled=False, + is_hidden=True, + is_public=True, + code="Zpz", + usage_limit=5271, + min_amount=4569, + storage_id="2c5a6f84-d7af-401c-aa66-bd2358cb3006" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_11(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=9315, + description="TDxwidoKxhgH4IlA44068ievlutMBS788il7UEqSzLy9xJxJq4hHbOAXXYVgVjKzFhmxuYV64qe5o2B2OlLXdk5kJbuw4YuJbyUdwtweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424D", + discount_upper_limit=8262, + display_starts_at="2021-03-23T23:00:20.000000Z", + display_ends_at="2021-06-08T08:36:59.000000Z", + is_disabled=False, + is_hidden=True, + is_public=True, + code="PprAJu", + usage_limit=9863, + min_amount=2399, + storage_id="cd74960c-2d86-48d8-8a0e-29cc0bbd5bc3" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_12(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=4665, + is_shop_specified=False, + available_shop_ids=["8b8866ec-da0e-4e27-9e47-41086e686fa1", "23467822-e56a-4328-9f5f-7d719d470659", "c0b49263-445b-41b5-b35b-825cd260ec6b", "7020e302-a901-4c05-8874-7866ef37ca39", "26f9dce3-2040-44c4-b77e-eb2509be81e2"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_13(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=9982, + is_shop_specified=True, + available_shop_ids=["bc11e64e-b93c-4ccb-ac4f-34edac6c230d", "06cb4308-2029-4a1b-8971-377c6a1b6546", "8965e7aa-a3c5-46f0-851b-f37a725a80ec", "9b64622a-426b-421e-9f2f-0485e838cdfd", "7732a0e2-f0da-47d8-a273-d58439e3245e", "fd5a6f28-983e-40dc-88be-93657d15a11a", "6979d64b-fb39-4119-8998-8e36f46d8052"], + storage_id="fe015f8f-7e1c-4eb7-be7a-557cbb611b2c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_14(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=7587, + is_shop_specified=False, + available_shop_ids=["a305dd58-fd6f-4119-ae2e-ee8a7d811bff", "0b2e5d25-a787-4270-b871-7ab4a18ffb3c", "ebf3dc01-74be-40c2-81af-43e6283bbd70", "0db0ff88-5673-4a3b-82a4-2536b00b7cd6", "7dc01298-3f0d-4ae3-a8db-41010bdaa121", "b66aa2aa-2748-4918-bc77-584f51b8f33d", "dbe4bb7d-47ad-43fb-8e53-56c27b27b984"], + min_amount=5911, + storage_id="46c66717-dc28-4f61-83d3-41153cedbe60" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_15(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=2215, + is_shop_specified=True, + available_shop_ids=["2700c811-6f9b-4720-8d34-380581cc731f", "592206e2-2b50-4e83-8696-6dd9cf396b93", "15580c50-3de1-42ee-b855-30591691ed49", "ecd94a2b-a5a2-4e52-98bc-07c16d7bb9c9", "6b3161bf-8d93-4ed3-87e5-65924067010b", "9b08e8d3-3db0-4106-b332-920db86bd5ee", "e1bf7aa7-9f62-4bf7-9039-077566670e77", "90d9cc91-6caf-4dd8-b2d4-f917d6dd6f42", "31acc0a7-0b2d-493c-97f4-2368cbd4074b"], + usage_limit=6290, + min_amount=779, + storage_id="2edc8038-6f53-4e2f-a79b-964608bf0442" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_16(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=9893, + is_shop_specified=False, + available_shop_ids=["584061e5-e170-41df-a1c3-2306b4737ef3", "7a54302d-6565-473e-baee-952044441727"], + code="TVlWMFn", + usage_limit=9224, + min_amount=8218, + storage_id="dab29ef5-cc40-4d4d-a74a-00fca90a6c3c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_17(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=6837, + is_shop_specified=False, + available_shop_ids=["3450f1be-04da-479b-af84-169523b59409", "ca8e82b1-6f85-4963-8be8-f7d6143a351e", "0e9bf038-f3b6-4797-b36f-2828d74780b3", "096b379c-f040-4366-8794-f111d960915c", "799209ab-a195-4905-8c4d-c282b7d953c5", "b9cdde5c-8827-4a23-a150-842c341974cc", "f2fb6184-996a-48ad-844f-9c1a9c2edbc8", "1902c876-9054-4859-a84f-38304fb4221d"], + is_public=False, + code="QE7ACXn", + usage_limit=8219, + min_amount=2791, + storage_id="248c59dc-0171-4326-8a09-55e0c2115b0a" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_18(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=37, + is_shop_specified=False, + available_shop_ids=["3d6b48fd-be4b-44a0-bc0f-65f4bd4a72db", "4fdd8b42-2701-49c5-aee8-efe6a1c92baf", "f8cb2324-8747-47a5-9202-3c12e1e2c6b8", "d48214b7-2540-4b90-87ee-4b8759a3b1bf", "27d60e24-5f23-4bbc-a3fa-cd1f83a90942", "cc2c811d-5de2-4c44-b423-bff10799040e", "d727d2a9-ca80-43ac-97b5-0c9ff1289d4b", "cc660133-306c-4ee6-af4a-171309ba1615", "faf59953-6223-4768-af8c-b74d2786c8c3"], + is_hidden=True, + is_public=False, + code="D2oZ5QpD7", + usage_limit=1419, + min_amount=803, + storage_id="8bb110f7-56c4-40e6-a63b-33bcd58590d8" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_19(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=8789, + is_shop_specified=False, + available_shop_ids=["bdb10b74-eadc-4406-be58-6fc25ce0633b", "4d8e8b16-317b-40e6-b9ef-4ae62039b18a", "db50ee22-0432-4bcd-a1c2-830f02f96792"], + is_disabled=True, + is_hidden=True, + is_public=False, + code="h", + usage_limit=4515, + min_amount=8299, + storage_id="c8a56c22-4b21-476f-8abe-e4a886501ede" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_20(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=9775, + is_shop_specified=False, + available_shop_ids=["c2c11dfa-89cc-4da0-abfa-bb58fac19b3c", "2556fc53-c824-40c0-b7f3-110f8dc380bf", "7fb667e1-5808-45f8-b769-5cd92b787224"], + display_ends_at="2021-10-10T11:38:56.000000Z", + is_disabled=False, + is_hidden=False, + is_public=False, + code="lAj5", + usage_limit=9892, + min_amount=1945, + storage_id="2fe3b6ec-4ecd-4944-b8ef-e85e77f61983" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_21(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=3495, + is_shop_specified=True, + available_shop_ids=["ab6e4802-cdf2-45dd-acaa-3d1d3e7f323f", "e83c889c-c598-4418-8d44-61fac522308e"], + display_starts_at="2022-08-31T15:20:42.000000Z", + display_ends_at="2023-11-14T11:36:35.000000Z", + is_disabled=False, + is_hidden=False, + is_public=True, + code="MAkFYNem", + usage_limit=8347, + min_amount=2667, + storage_id="01ee727a-415a-47f0-b6ad-cc8643482fc4" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_22(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=2166, + is_shop_specified=False, + available_shop_ids=["656a8c0c-c4b0-4b12-acbb-9f047886a867", "29994a6c-36cc-4c76-b254-33a0f354f239", "c9e37030-bd1b-4111-a105-1203b1a37ecf", "bfcd2117-9dc6-4cb7-9c7b-16f1822d1cbe", "278f0d4c-745a-44fe-a15c-d69369fc7897", "ac84f52a-de4a-4a47-b62f-773bdeee2c6d", "f4729b57-131d-4922-9046-fbdc16aa5199", "41fa03d7-911c-4938-ad7d-19d925403afc"], + discount_upper_limit=4167, + display_starts_at="2020-05-04T22:00:31.000000Z", + display_ends_at="2022-11-27T16:24:24.000000Z", + is_disabled=False, + is_hidden=True, + is_public=True, + code="pA9wK7", + usage_limit=1788, + min_amount=3466, + storage_id="125d9ec6-e5e5-4306-b27f-6281182be3cb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_23(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_amount=1389, + is_shop_specified=True, + available_shop_ids=["a149f34d-e03d-4d44-a8ca-5d1f79d9d189", "3ba8852f-c744-494e-b93e-a222aff5862f", "101e4204-a1be-48eb-bd6a-456eb587a185", "49afdf2a-191f-4504-aa9a-473f3ad883c5", "e7193d2b-c041-4674-af57-79eb6c346d2c", "5df9140c-facd-44db-b130-9d79ff65325c", "a88cacd4-3827-43da-938c-afc3a1765cb3"], + description="t5NbCfjtxFXhJHyZxe38yvM1SEczLfO3bcMSuKdq3FslGbkHo1PhxbbT2umORVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77PuYo1FVSdDE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQHQhhRs2PIaofbMQ1Wyxx6iPX8wNVpCNUyiEzApKM66ZkEOto1oTpzcZyDOIWVwoFQcmGYbDKlivyrCrMwSNsO", + discount_upper_limit=9292, + display_starts_at="2020-12-26T01:10:05.000000Z", + display_ends_at="2023-08-20T04:19:23.000000Z", + is_disabled=False, + is_hidden=True, + is_public=False, + code="CCeTbwp9j", + usage_limit=4474, + min_amount=65, + storage_id="92ac7a6d-de6b-49d6-99e5-2419ae00197e" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_24(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=5377.0 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_25(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=6009.0, + storage_id="1938b03c-4460-4e16-a3e2-b2a0e79cf556" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_26(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=1521.0, + min_amount=8098, + storage_id="5fb8fb70-6331-4a1c-99f2-15fa6527a7f5" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_27(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=6160.0, + usage_limit=2346, + min_amount=497, + storage_id="9b2ce793-bc9c-4387-bbc9-0f8ff14162bb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_28(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=7105.0, + code="cJ63x2Wp", + usage_limit=5001, + min_amount=9323, + storage_id="882063ac-f786-401e-b1f2-c9afc59b403f" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_29(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=582.0, + is_public=False, + code="djX6", + usage_limit=9925, + min_amount=3936, + storage_id="afda826c-9d18-4637-b6ad-6d833f6a0aa7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_30(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=9255.0, + is_hidden=True, + is_public=False, + code="bE", + usage_limit=2427, + min_amount=6154, + storage_id="e9ffca75-b6db-438f-aeda-2ea7901969f3" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_31(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=5921.0, + is_disabled=False, + is_hidden=True, + is_public=True, + code="EigsXHGq2", + usage_limit=3183, + min_amount=6334, + storage_id="94c6211d-ca3f-442b-94ef-3ec01edbc205" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_32(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=9817.0, + display_ends_at="2022-12-22T11:02:26.000000Z", + is_disabled=True, + is_hidden=False, + is_public=False, + code="Cj", + usage_limit=3785, + min_amount=9849, + storage_id="cdd2a390-4e5a-461f-9aaf-a3c95f727cca" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_33(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=1539.0, + display_starts_at="2020-09-11T22:41:26.000000Z", + display_ends_at="2022-02-03T09:26:00.000000Z", + is_disabled=True, + is_hidden=True, + is_public=False, + code="mOEMtSXxz", + usage_limit=8047, + min_amount=3691, + storage_id="facf7e15-e6c7-4259-8b8c-856b94015aa7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_34(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=1769.0, + discount_upper_limit=9889, + display_starts_at="2021-10-27T18:52:27.000000Z", + display_ends_at="2022-08-26T01:53:26.000000Z", + is_disabled=False, + is_hidden=False, + is_public=True, + code="ZSvWA49o8H", + usage_limit=2461, + min_amount=8661, + storage_id="60af6645-be21-4e03-a8f7-46298fc11579" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_35(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=1648.0, + description="tZsgSDOAS6m6W4ycEKeHr4636lRXTr2iPpZt0j1CI3l6J30qBjXV2f99mPOolq1eiW", + discount_upper_limit=6208, + display_starts_at="2021-12-28T08:11:25.000000Z", + display_ends_at="2023-10-28T13:01:46.000000Z", + is_disabled=False, + is_hidden=True, + is_public=True, + code="XLsbYmrfH", + usage_limit=1408, + min_amount=933, + storage_id="beeaeb57-00b6-4fa3-9fc1-c51021177765" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_36(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=4635.0, + is_shop_specified=True, + available_shop_ids=["2c5c2e1b-8b4b-454c-a8f5-10b9a1df1fea", "07c65ad3-47f9-433e-806b-0a401a1e18ab", "ec349191-65f9-4944-98bf-74cd89fed815", "aa9c5415-9f26-4402-b86a-1bdb9b1bb7d1", "604dc668-64ad-4b2e-9c80-cf864cedfad8", "895ac725-013a-41f6-b173-828350ac1dba", "2d75b027-e44e-4c98-ab55-26f74aaa5af0"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_37(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=2564.0, + is_shop_specified=False, + available_shop_ids=["8aad454f-924a-4762-a67e-430e5cf27bcd", "655bd3fa-a6d4-4704-90cd-15e9ca3bca35", "c919ccce-1507-49e1-91c4-b2f167378d76", "4667178a-2249-402f-8b8e-5f6bd311f145", "434f4022-72e7-4eeb-a902-4ed5298f0d91", "5a906abf-0131-42e9-874a-916f6f5eb934", "c04339fc-2e56-4380-a4a6-0b042fe6d10d", "9214441d-65e5-4a75-af31-d714188bfa0e", "abfc0389-d2ee-4d44-a4b6-86322923df70"], + storage_id="b9c7b845-1865-4dee-aec1-0b2cb829942d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_38(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=6786.0, + is_shop_specified=True, + available_shop_ids=["13f912c9-3319-4b62-b5d7-853a56887dd7", "b5e99492-40e9-4994-88b9-a61ed7cac233", "5e5a5fdd-54a6-47bf-9502-275910ae5781", "b535364f-887a-44d7-a90a-21078625d200", "a3ea962e-356f-4cc5-baed-f1b8336a6bc1", "eca24432-b503-49c1-873c-30ecec095481", "92595899-72a1-4b3d-8c96-3a0f48f7eb1f", "f2485420-edb9-48a3-8ff9-0ee9c63dc68b", "35389b76-8dd8-425b-87da-84c2a1977223"], + min_amount=8312, + storage_id="3bd876e6-291c-4bde-918f-48367cc50054" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_39(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=6364.0, + is_shop_specified=True, + available_shop_ids=["8a89df5c-a6ff-44c1-9484-271764bbc96f", "3ee0712e-6eac-4a0e-81a2-fa8c91862d25", "159a24d3-924f-417b-89e7-c6f395afaeff", "da236641-7246-41fb-8d03-f152fe5f7d3a", "81493dee-9d41-4617-b6d2-faf128556a1c", "eee33aca-a0a2-4983-b6ba-92b3eb1aef5d", "dbd27c9e-3e83-43a6-840f-e6d97d1b8786", "cdb0ff6f-e169-473f-a97c-73b1e001eb19", "99096948-db99-45ce-919a-e50293a181b6", "5ec621fd-4ad3-4b55-8255-f5dc9ee9f286"], + usage_limit=5003, + min_amount=1272, + storage_id="64b008e6-e9bb-4f83-95fe-7fc894cc188d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_40(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=1962.0, + is_shop_specified=True, + available_shop_ids=["fb941eeb-bf46-46da-b2de-9195414be753", "15b81c8d-186a-4ba7-af6a-bab42c0c28ba", "d7b4b2c5-ec60-4119-a982-c960593e3439", "d8764f1d-5fa5-475c-b028-43b6eb0a2f68", "28d67c1b-236a-471d-92cf-0202371e9ea8", "7bf187cf-875d-411d-9b84-879890d5433a"], + code="SKfXh", + usage_limit=9759, + min_amount=1500, + storage_id="64ba7e0f-b5a8-4ed2-a899-2a874924d4e6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_41(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=1201.0, + is_shop_specified=True, + available_shop_ids=["bca74a2f-530b-4ffd-a69f-d07e4c77fbc0", "067736c8-a7a7-4331-b875-0db34446b99a", "b28c611c-5f6c-41d7-bfdc-ba06929cfd1e"], + is_public=True, + code="r6bx", + usage_limit=5314, + min_amount=3064, + storage_id="a47930ab-e1a9-4568-b12c-79a415afc738" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_42(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=1376.0, + is_shop_specified=True, + available_shop_ids=["bd22aefa-124c-4d04-8a13-1bcb767af17c", "2ea79a47-648a-4713-9222-896c7a108983", "7c389037-5d23-4281-bf07-47f073d299e5", "bc661925-8fa0-453e-bbac-3c67eaebe78f", "7b0e5c75-8039-4f60-93b9-cb6925443b29", "d5b5984c-e02c-426b-948c-6384666380c7", "c59ca1dc-49fd-4fe3-9ae5-495237539ac8", "bc443330-b6b9-4ef0-b38d-4ea88ed5bfc4", "3ed4673f-1e02-4dea-bb27-8ba4722622e6"], + is_hidden=False, + is_public=False, + code="XXM3Tu", + usage_limit=9257, + min_amount=7360, + storage_id="87dcd00f-2158-4a5f-b64a-c281006086d4" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_43(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=6770.0, + is_shop_specified=False, + available_shop_ids=["428f08b8-e855-4010-b2f3-c878cf4e46b5", "01abd918-26a3-4aab-964d-497d7306cf5f", "95c1cd5e-38a3-49b8-b5a3-b61400a0dfa8", "e0c4f361-3c1c-409f-ab9d-5ee3944fb545", "3be6d049-ba25-4179-b851-9b7a17180d60", "c41d11b7-7d44-4891-bf0b-eb3b53bfbb85", "f652f834-a101-4709-b6a9-a996f9bfa29f", "337517bf-047d-4112-93a5-e3c7cc662094", "209fa416-9502-4f90-8a9f-a28398b0a066", "8a78dc45-1364-4d70-8bc4-d4916201dfac"], + is_disabled=True, + is_hidden=False, + is_public=False, + code="VkF", + usage_limit=2454, + min_amount=6988, + storage_id="7313d254-6c6d-4183-ac3e-4ef870294d70" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_44(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=6072.0, + is_shop_specified=False, + available_shop_ids=["e2f48f3d-93c9-4ab9-9563-f6581cb1ba0c", "5c009de5-1c73-442d-90e3-67f24e460bed", "54f6a6d3-381d-4312-bdaa-2844e3a7fe35", "e3e7db22-c10d-4e5e-aea3-eeeb109aecf0"], + display_ends_at="2023-12-06T12:04:07.000000Z", + is_disabled=True, + is_hidden=False, + is_public=False, + code="HG", + usage_limit=8895, + min_amount=8172, + storage_id="e6e806f9-7e48-44b3-b415-5fbb38563aa5" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_45(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=7949.0, + is_shop_specified=False, + available_shop_ids=["847a7848-d91d-4b80-acc2-e634db4cfda1", "85e4e6f7-0d2e-4fc8-86e2-72bd43016c43", "9c606947-5978-4011-b09e-a19d7f03d52e"], + display_starts_at="2024-11-06T00:27:04.000000Z", + display_ends_at="2023-10-23T15:42:50.000000Z", + is_disabled=True, + is_hidden=False, + is_public=True, + code="wta", + usage_limit=3008, + min_amount=2416, + storage_id="96c19bf5-4631-463f-b1e4-13086f1c92ed" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_46(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=7821.0, + is_shop_specified=False, + available_shop_ids=["5357d5dd-91b2-4b32-8b46-108f54715db3", "790476e3-570a-4d28-ad13-87f4790072a9", "a51aa449-c273-480d-a7f8-2badaf9be3bb", "61a99690-ce54-46d4-969e-f05d9a80e28b", "93f14e32-f4b4-4557-a32b-fab348d063e9", "d7cdb44d-433a-4713-a3ea-8a0a3f1d0167", "a75f1423-460a-48aa-83bd-836169663de6", "76ea8c34-33f6-4931-8605-52dd662984b7"], + discount_upper_limit=15, + display_starts_at="2021-01-27T18:20:56.000000Z", + display_ends_at="2021-03-26T11:39:38.000000Z", + is_disabled=False, + is_hidden=True, + is_public=True, + code="4Tv", + usage_limit=9874, + min_amount=4104, + storage_id="2e74d17a-af9d-4290-877e-33091e1d802d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_47(self): + response = client.send(pp.CreateCoupon( + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08", + discount_percentage=3491.0, + is_shop_specified=False, + available_shop_ids=["8ade21d9-2c4c-4e49-af21-0958aa6a4786", "ffad91f8-2524-478d-b1ef-1f60d9ebceee", "f966c26b-1b1d-484d-be47-1d7d2fc608f1", "17318e58-1aec-44ca-9870-c17b7706774a"], + description="Qwp9nn9cv0p2uygmHKqGnnOeMtFto3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwmdx9H0OP7RXsy9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTKy9baAXpUrNxQgJv2d1RjRDvxxlQFhM2eopm", + discount_upper_limit=3145, + display_starts_at="2023-08-03T09:05:48.000000Z", + display_ends_at="2024-06-16T10:53:19.000000Z", + is_disabled=False, + is_hidden=True, + is_public=True, + code="zq", + usage_limit=9598, + min_amount=7003, + storage_id="6547aa97-8ca5-4cbf-8f14-7f1030664fee" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_coupon_0(self): + response = client.send(pp.GetCoupon( + "6997ecc7-ef4f-4c14-99e2-aa142dee1a8e" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_0(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=6273 + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_1(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=7981, + name="qjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T5nZUMuDqspHuPmGiUoPteza9Foxx3GETJuu" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_2(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=7967, + description="MNM7JUVu7YgDI0zSm", + name="63cU49za1QJALcpDZ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_3(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=9021, + discount_upper_limit=7882, + description="YKoaGZqFQRMYj7eI0OiTgfPr68fP2A8RCqVjIMZulltZtjgMfuDxn3Qg", + name="sidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyC" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_4(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=9043, + starts_at="2022-04-20T06:23:02.000000Z", + discount_upper_limit=8008, + description="3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0KtoQaeaW3v7wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltq", + name="bvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3EykNpjwCPjAkzy" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_5(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=8882, + ends_at="2020-10-14T03:11:55.000000Z", + starts_at="2023-12-20T19:03:09.000000Z", + discount_upper_limit=2378, + description="53U3N6F0e26pbO3HttlG4eyiatMI7VF3dtugJSz1Q3vovXNsgFsW05W19aXuGVVRQlUVJv9CZ2Z", + name="sBhmJBENJ2Jp2YLnPueitIaB8AWaFb8JKCZbl1FLUJ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_6(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=3271, + display_starts_at="2024-03-20T01:25:09.000000Z", + ends_at="2020-03-24T22:03:20.000000Z", + starts_at="2020-02-19T05:43:00.000000Z", + discount_upper_limit=8529, + description="bvTSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8NITOunWJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wDY3YT1DlU5jqThl0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR", + name="3oDpLSuhWGSp4IuNXEvAYv341undTljbWPhfpiwPMjupC65xVDnAJbsKD6b895i" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_7(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=6886, + display_ends_at="2024-10-06T18:03:44.000000Z", + display_starts_at="2022-01-19T04:49:56.000000Z", + ends_at="2021-11-27T09:06:24.000000Z", + starts_at="2022-09-04T12:24:02.000000Z", + discount_upper_limit=7094, + description="Ut2zsAKH6lKT6gJXbaEKAddoUM0CRdaSDeoQ9lXXELG9oQdgpEse81Vv", + name="pXr3HeuSevupI3Lg6cydG4CQY3zROLCcC3cDzGwCmJXHiF5C" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_8(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=9717, + is_disabled=True, + display_ends_at="2023-03-26T21:58:08.000000Z", + display_starts_at="2021-12-06T09:52:39.000000Z", + ends_at="2023-01-15T09:43:12.000000Z", + starts_at="2023-01-16T10:31:12.000000Z", + discount_upper_limit=8615, + description="EUCWBeCDLYnE6HiVXoG09ihrRj4aejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6F3HhJclpvEl0kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCN", + name="l989Inr9h5bKrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtOnbZ68JstsOcxw5PoatcF0TU5" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_9(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=2215, + is_hidden=False, + is_disabled=False, + display_ends_at="2023-11-06T06:15:40.000000Z", + display_starts_at="2020-11-24T15:42:17.000000Z", + ends_at="2021-07-10T17:06:37.000000Z", + starts_at="2023-09-07T09:51:42.000000Z", + discount_upper_limit=8221, + description="KdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc2ISnCuuu6HEZICTUsFd55cysKpzPw06", + name="uTFvYo4vEubGw6jVHah2jNyPqoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPTZ7efHVp4Du6bqVzq0H9h" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_10(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=4571, + is_public=False, + is_hidden=False, + is_disabled=False, + display_ends_at="2023-09-10T22:46:38.000000Z", + display_starts_at="2023-05-03T06:37:56.000000Z", + ends_at="2021-12-31T14:55:05.000000Z", + starts_at="2023-01-28T09:59:12.000000Z", + discount_upper_limit=1288, + description="WOGRlL4QDCIWrLzYwdZH6RYisLng", + name="mui" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_11(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=256, + code="yyf", + is_public=False, + is_hidden=True, + is_disabled=False, + display_ends_at="2020-03-11T15:33:17.000000Z", + display_starts_at="2022-05-22T10:42:21.000000Z", + ends_at="2021-09-03T15:52:35.000000Z", + starts_at="2024-08-19T19:43:12.000000Z", + discount_upper_limit=6480, + description="C6gPSyCFjnlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCisIe5qHDsMdG7wbTKEpXzySqqc4sXPad6xuwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jk", + name="jZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZFtSWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREfojZVoiIjURbvF5c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_12(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=3061, + usage_limit=6265, + code="A3tbiun", + is_public=False, + is_hidden=True, + is_disabled=True, + display_ends_at="2024-07-21T01:15:44.000000Z", + display_starts_at="2020-08-10T17:00:46.000000Z", + ends_at="2024-05-16T16:46:17.000000Z", + starts_at="2022-05-09T20:01:58.000000Z", + discount_upper_limit=2643, + description="RraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3rucfBues6uHoyn0kY9tu", + name="08" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_13(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=6251, + min_amount=5819, + usage_limit=4586, + code="C0WPK", + is_public=True, + is_hidden=False, + is_disabled=True, + display_ends_at="2024-04-08T09:12:31.000000Z", + display_starts_at="2021-12-15T05:41:23.000000Z", + ends_at="2022-04-10T03:18:48.000000Z", + starts_at="2021-07-31T02:35:34.000000Z", + discount_upper_limit=6459, + description="Yow9FaOH3zD7SQmRuyNCMpGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpWdg5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4IlVfzKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTV", + name="xU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsPccciqGzpCuGxgjotbAnD" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_14(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=5062, + is_shop_specified=False, + min_amount=5038, + usage_limit=425, + code="nBFTBcp", + is_public=False, + is_hidden=False, + is_disabled=True, + display_ends_at="2023-09-03T21:57:59.000000Z", + display_starts_at="2023-03-10T16:14:03.000000Z", + ends_at="2021-07-03T13:30:50.000000Z", + starts_at="2020-09-29T18:06:46.000000Z", + discount_upper_limit=5732, + description="jde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8qJafcwBDpLTRN1a0", + name="ar5cvmWk6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5PsH9YtmnNiOZy" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_15(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=470, + available_shop_ids=["6c41e2b9-c23e-40c1-8fb3-9b4405338487"], + is_shop_specified=True, + min_amount=6718, + usage_limit=157, + code="B1YRES4", + is_public=False, + is_hidden=False, + is_disabled=True, + display_ends_at="2022-07-25T04:05:27.000000Z", + display_starts_at="2024-12-01T12:13:32.000000Z", + ends_at="2021-08-04T12:43:11.000000Z", + starts_at="2020-01-12T17:49:42.000000Z", + discount_upper_limit=8216, + description="ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4", + name="imGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_16(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=5380, + storage_id="9f2924a7-df61-4f90-b333-807fdfe39bae", + available_shop_ids=["c1166526-e7b4-4966-a585-da7b853b78c9"], + is_shop_specified=False, + min_amount=5367, + usage_limit=1827, + code="8", + is_public=True, + is_hidden=True, + is_disabled=True, + display_ends_at="2021-03-15T04:07:07.000000Z", + display_starts_at="2022-08-16T17:33:37.000000Z", + ends_at="2021-03-21T10:02:25.000000Z", + starts_at="2022-07-27T18:23:55.000000Z", + discount_upper_limit=2122, + description="IVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQkIPmfa5YJsZSIV5H0hKFZRjFJsBJ", + name="xE5ymHkkfvwj75uGxXyxLiKvyAHQ0Cmh0GR2iNpQgbrTS2HEffP70DHCUohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRW" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_17(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=8100, + discount_percentage=2800.0 + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_18(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=8129, + discount_percentage=2637.0, + name="k3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9Fitj" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_19(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=4213, + discount_percentage=1268.0, + description="UJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3Hc5MrDSrYQmTFD8MK4LhwIRladKEnU", + name="UBMTsHjSLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_20(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=8237, + discount_percentage=9265.0, + discount_upper_limit=8735, + description="nws6Ne3S7kdpHli9FCf9vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn6U1tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sbw0f", + name="8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQKCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z9k4WtlP60t1pGDCB7WpLioRLUyl" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_21(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=5822, + discount_percentage=4887.0, + starts_at="2023-04-25T16:40:16.000000Z", + discount_upper_limit=307, + description="BXylmnzTDYQPTQEhEDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3", + name="7y1jkUDzYlQVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxq" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_22(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=3788, + discount_percentage=1875.0, + ends_at="2022-06-10T15:37:43.000000Z", + starts_at="2022-04-10T21:16:40.000000Z", + discount_upper_limit=339, + description="4aP0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kBu7DCNg4aU7BlWsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomWlXA8y2vwAsTNYaeLyV7CWdrmk7DRyx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4xhz7DzBywKIciMlN0S7L0N0uBHj0xIlmI7crwjgiJmBq8x2BMoiejWmP", + name="Y8qwKCFWRUhTWJtrSH" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_23(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=5069, + discount_percentage=5779.0, + display_starts_at="2024-05-26T17:45:25.000000Z", + ends_at="2024-06-11T11:40:59.000000Z", + starts_at="2020-02-09T19:13:11.000000Z", + discount_upper_limit=6027, + description="3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wpFlmsWusC8RGaBKUJdHLf9kwaxRbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1By6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9VDX3NEhsO0rjGagOIQ6x9sSfu0zX8zdCniT7rbp4RdF8jzL", + name="LX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZhOiq9TM1kLnMOaPoayQ1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIE" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_24(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=1681, + discount_percentage=5729.0, + display_ends_at="2021-05-16T18:50:30.000000Z", + display_starts_at="2024-05-15T18:37:35.000000Z", + ends_at="2020-02-29T00:17:08.000000Z", + starts_at="2024-07-29T23:14:05.000000Z", + discount_upper_limit=6000, + description="er6amUqWii2uDVrmTki6pqO0f8cnptMkBRjmpnnbeCg4xumOoxK0oT4F795unttA065Y", + name="r03Qzj1SYSblk7QSMdkkKPrtzfs" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_25(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=4525, + discount_percentage=5963.0, + is_disabled=True, + display_ends_at="2023-06-29T08:12:17.000000Z", + display_starts_at="2020-07-18T08:24:12.000000Z", + ends_at="2023-06-11T14:41:15.000000Z", + starts_at="2023-03-08T13:39:55.000000Z", + discount_upper_limit=7603, + description="OFn1WKJz5hhBZBCZgSERTDaoK9IqITw9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq6VpVqu1DpFd0JaBsPB", + name="jjxsN82R5bV74h6MclFLskpVJhF8OvhWGp3gTZC60RTw4fZ8zWBqSC3vDIMcnooU2vsEkh" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_26(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=8196, + discount_percentage=3855.0, + is_hidden=True, + is_disabled=True, + display_ends_at="2023-10-17T23:28:19.000000Z", + display_starts_at="2022-03-21T19:26:26.000000Z", + ends_at="2024-05-14T20:30:08.000000Z", + starts_at="2021-05-03T14:36:48.000000Z", + discount_upper_limit=8904, + description="4x70jy8CyXSjsNQfhm4JdiSR8LU0sAxVpKo9", + name="Pr8tnCR4b3VVcnR7ySaTJSLXaRbjFaOCY9HY0faJMcRsZ3tfn14pqdpY2gOVzxC2AMFcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwo" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_27(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=3280, + discount_percentage=9086.0, + is_public=False, + is_hidden=False, + is_disabled=False, + display_ends_at="2021-05-02T15:36:09.000000Z", + display_starts_at="2023-02-11T11:07:01.000000Z", + ends_at="2022-04-27T05:15:17.000000Z", + starts_at="2022-10-16T21:43:15.000000Z", + discount_upper_limit=3378, + description="qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt7JZTknlcSLOAfgHki7iEUUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOlUDOeBSRiyqeameMaY0bgN8gTUkelv3hkGmk4iWQZAVafOlabiOcEnloh2DXft8ZR3ZIT5H8aSOl3", + name="DXnG9yHqEAThwDuq1zewsMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJx" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_28(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=9801, + discount_percentage=778.0, + code="S6QwIFvAWC", + is_public=True, + is_hidden=True, + is_disabled=False, + display_ends_at="2020-04-21T13:31:20.000000Z", + display_starts_at="2022-01-07T22:17:02.000000Z", + ends_at="2024-05-08T21:48:33.000000Z", + starts_at="2023-10-26T07:17:46.000000Z", + discount_upper_limit=6853, + description="OxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDIn3iuFQrrgeXzyNXNrNkeWa9hWsLSo6RhlRrNdmMaty", + name="DW12s5SKsd06fYHa" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_29(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=6174, + discount_percentage=4354.0, + usage_limit=4793, + code="H", + is_public=True, + is_hidden=False, + is_disabled=True, + display_ends_at="2020-11-02T14:05:22.000000Z", + display_starts_at="2022-04-19T16:09:46.000000Z", + ends_at="2022-11-04T08:07:42.000000Z", + starts_at="2024-07-14T23:12:48.000000Z", + discount_upper_limit=6288, + description="D9XRln1g4q1AmzenaBAIYsPX5BEVEkSwN7J", + name="7UfMqNeIWxDQ5mYkDBp76iPlz0WyF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5qnBpeG29hBWbNKIGuoyWD" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_30(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=2440, + discount_percentage=1572.0, + min_amount=7603, + usage_limit=9922, + code="eU5bcdtRE", + is_public=True, + is_hidden=False, + is_disabled=False, + display_ends_at="2024-02-24T02:42:54.000000Z", + display_starts_at="2020-05-19T17:06:10.000000Z", + ends_at="2020-08-22T12:18:59.000000Z", + starts_at="2021-08-07T16:18:55.000000Z", + discount_upper_limit=80, + description="UnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEO", + name="bOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaq" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_31(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=974, + discount_percentage=3265.0, + is_shop_specified=True, + min_amount=7598, + usage_limit=7095, + code="J2PMH0HA7", + is_public=False, + is_hidden=False, + is_disabled=True, + display_ends_at="2021-07-20T07:57:16.000000Z", + display_starts_at="2022-01-31T01:17:32.000000Z", + ends_at="2021-01-28T13:42:37.000000Z", + starts_at="2020-10-29T06:22:59.000000Z", + discount_upper_limit=5031, + description="lziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9q8fRCMt2pzYekawpUouvYHKlj0GUL0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLKUg3om1Y", + name="NfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699P" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_32(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=5538, + discount_percentage=4974.0, + available_shop_ids=["346d20e6-44d4-4f45-a495-aea51901e2f2", "245c80a8-47ac-4c1e-88e6-f1c91c04101b"], + is_shop_specified=True, + min_amount=807, + usage_limit=5869, + code="iU4i2bF", + is_public=False, + is_hidden=False, + is_disabled=False, + display_ends_at="2021-10-19T18:47:53.000000Z", + display_starts_at="2023-08-25T05:52:33.000000Z", + ends_at="2021-10-06T01:08:04.000000Z", + starts_at="2021-06-05T23:05:08.000000Z", + discount_upper_limit=2316, + description="zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7mxn", + name="kYGzShazSiZH6DDfNqfsVRi3zxzsVzVJLxpF9uCjOUSNMH9fWh27PiOp" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_33(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_amount=9586, + discount_percentage=8136.0, + storage_id="2f72b540-9a40-45fd-8dcd-50d88c473029", + available_shop_ids=["6fb68062-dbb4-4e95-bf3c-70997da6b44c", "4b7c5ee8-6c34-49e2-b047-fa6bb359ab99", "d1cf127f-0486-47ef-bc01-3fbc773a2ab8", "615578ba-4569-48c5-b0d0-feade6b7623c"], + is_shop_specified=False, + min_amount=3907, + usage_limit=2352, + code="A", + is_public=False, + is_hidden=False, + is_disabled=False, + display_ends_at="2022-03-13T08:46:25.000000Z", + display_starts_at="2020-05-06T14:00:31.000000Z", + ends_at="2020-04-13T15:43:06.000000Z", + starts_at="2022-10-27T13:22:02.000000Z", + discount_upper_limit=9977, + description="FYYoK00acoGlEqYYGWZUMgU5LJ8nedbEkL6VCbZlYCZFu0YjXrvick1kbCzvMElblaTUskxDWTi4syFdijXYZ6Fkp0v2rObj5KP7CaX5R9O7hnOQMfDj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq2k3ETquM3SQujWFDE153B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1zaeUGprRtPpZg", + name="zOhvmvIjVKe7aM7QiN4LuTtB8ZF5mN9clYyKl8cUsYw8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQc" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_34(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=7543.0 + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_35(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=1259.0, + name="vvHfTZTUiaSBniTvgiFcfFWfXoobW27D2zSsjxSJQCC2TKE3m70u0i2E7e3WCog3HknLhb4mGHjaX24jJA" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_36(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=1554.0, + description="lJFQ82MhyQQoipgFNSux0jeobdQD1VXjUggH7qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcsFhnnSlOPQSKVW980GqQVf", + name="PuvUPiEFV6mDyiAj" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_37(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=1662.0, + discount_upper_limit=5357, + description="C8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTw", + name="pYu4Valw5xiIJ7Q1Cipp2" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_38(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=8515.0, + starts_at="2021-05-13T08:46:05.000000Z", + discount_upper_limit=5586, + description="fbrHbdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w3aEMSDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClPPAh3ydu7juMaO7kqGjaASQkqyw2Q45pim16jWY8Li", + name="2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkg" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_39(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=5189.0, + ends_at="2024-10-17T08:27:13.000000Z", + starts_at="2021-11-29T10:45:39.000000Z", + discount_upper_limit=9810, + description="ikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOfsuO3LMtzPm5pmHiztzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2Z23Mwd98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcINC0MaOVTzOYUS4YiFza", + name="S1dG4VhCAXdvLcusNkP92lEHAtBr5uMSg7mI2h9L5UgNjF9pGXPoR6V6EH9oG2E8mJwg74tJdyJ5Llab29gfUQ6hTQL306GhITMLH" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_40(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=8924.0, + display_starts_at="2020-11-23T22:20:15.000000Z", + ends_at="2023-01-05T17:52:38.000000Z", + starts_at="2021-12-24T23:58:38.000000Z", + discount_upper_limit=1250, + description="965KcWooPsLAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOY", + name="En550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aRw08aQ0rfHosccmXhG1yeE5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6Fhp" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_41(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=247.0, + display_ends_at="2024-08-26T09:20:59.000000Z", + display_starts_at="2022-06-08T10:33:16.000000Z", + ends_at="2022-06-30T15:19:35.000000Z", + starts_at="2021-01-04T09:53:39.000000Z", + discount_upper_limit=696, + description="8LjJn33RIRSOmlXSQfzzTwn3Dxt", + name="Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JEew3ek7732woVpaWAn4e20" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_42(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=8720.0, + is_disabled=True, + display_ends_at="2022-05-02T00:32:03.000000Z", + display_starts_at="2024-03-24T03:51:19.000000Z", + ends_at="2023-12-13T07:28:05.000000Z", + starts_at="2024-02-07T14:35:40.000000Z", + discount_upper_limit=8527, + description="Xy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVUwFU1amkd1FBZBysFgH8TiyAaF4dUSAbqyi68iyJ302sQl233vCftoqwC5tymvF1K23X2uYu4", + name="ypSW9PxtiaID1SUCfz9yEelMoF9a26c2RLHzQWOO42l0o0g8SXRzZ3p" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_43(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=9685.0, + is_hidden=False, + is_disabled=True, + display_ends_at="2023-02-19T20:09:09.000000Z", + display_starts_at="2022-08-25T04:04:40.000000Z", + ends_at="2023-08-09T22:43:01.000000Z", + starts_at="2021-03-07T03:04:59.000000Z", + discount_upper_limit=5365, + description="g12Ygg3AsTOryINKyRmJ3gWCDcmsuvkMrJePtGFhv4aIw1aGtGR3fEQezBo8XnXONHGXDMcl8tuhVdB5KkP8PHvZEmmcBKkGsr9sdEDTBkey7pr4d2jpaf36", + name="YY6mrG9Y2ztoKUUUx5B1bSO8xEgn" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_44(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=380.0, + is_public=False, + is_hidden=True, + is_disabled=True, + display_ends_at="2021-09-07T15:37:35.000000Z", + display_starts_at="2024-01-28T02:05:25.000000Z", + ends_at="2023-08-14T03:04:22.000000Z", + starts_at="2023-03-27T16:24:16.000000Z", + discount_upper_limit=8587, + description="nWTCVmm3x115QsBZT6dCGgqZsePkl6iY0bdXM6Nza2rTctUJQmh0gNd3qkWY4lVW5zCUF3zWzIdrHm6OsiyHBxsWBtx4G7cLViMByCBNzcDCX5bbsPzVUGeD2BWp2XUNEsAtEjlivj0NhalsavWYZduuXynvh05rJdAnnKPkjJzRbGyuQYyb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qpLKYfd3JbJX5Qcd", + name="KyJ1DmsToKu4w1tRUaP7awM87Mt7bWysOyzqkBrGa" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_45(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=4173.0, + code="b1sugqj", + is_public=True, + is_hidden=False, + is_disabled=False, + display_ends_at="2020-09-30T21:50:20.000000Z", + display_starts_at="2021-07-01T01:35:28.000000Z", + ends_at="2022-09-18T19:39:23.000000Z", + starts_at="2020-07-20T22:29:24.000000Z", + discount_upper_limit=2149, + description="DBfKsRBbYLkU2TfJXzuBqGFPReFsmxaxT8Xwuc649dznjsqwxML0aHpiMuFL917lUTrE8EACTMWkW53gnqE0TT1OD00WYy85d5RKAlbrPQ0st0t7yJcv8GqBqgGEHafl1jNP9k7uydClg9A7an27PrVxBqiE9YWo8xjmzBGJVwTTanAXyFjLag3gPPvlq0FFntKGY10p27", + name="NPGQTdAXKNGuLNgDO" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_46(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=5777.0, + usage_limit=8909, + code="a", + is_public=False, + is_hidden=False, + is_disabled=True, + display_ends_at="2020-11-21T07:47:57.000000Z", + display_starts_at="2024-08-05T21:34:44.000000Z", + ends_at="2023-02-19T16:43:45.000000Z", + starts_at="2020-07-25T03:12:32.000000Z", + discount_upper_limit=1714, + description="IkyjkgPuZUMAq2NjJocNYKTrm2m1ssPqyT3XyCFCrR8uZnHFgU1ZOwuoeukDxIIOg9CcbCgtxt4qQAP06TDLYKBc2zPf6wToG8lTKcMPiFJX3LNKTomMc8wnROYRP673oHx5N3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX05IlCZ5tUdSwXVRIVCnlZj6NtOwX2FI8Wr1369uaTF42abkgSmtEHAWzK", + name="VmwmqN4ax1Q1Fha0o1JxRbdO7sJMkOiIt9zNKCX0VzisXLLiEpULitiIsW57" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_47(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=4708.0, + min_amount=4284, + usage_limit=2383, + code="hS8DsZfAQ", + is_public=True, + is_hidden=True, + is_disabled=True, + display_ends_at="2021-07-08T14:52:59.000000Z", + display_starts_at="2022-08-01T20:07:11.000000Z", + ends_at="2020-04-12T00:48:20.000000Z", + starts_at="2021-06-17T07:42:12.000000Z", + discount_upper_limit=6236, + description="P8tTTuInowX2TMHi2vDKbmu86aUF4jypKaAY4yQaiw0JpUpNfjrUKaUCU4cuncfOgZgC0vnz9vdHX3zI21M9POKUqkrXtAeLmERqX5bwDROtzb2hizqeaCyQXA4kt1s5IzgftNOCeiOWbpouk4VaYSYsKX6oU3L46cfTNsJ74FdhPrGorQztiuURWZ5r1OnryKkdpmMzmoITgipjScgSjEKEvn9tkKJsfEeEir", + name="JBvMOLUpWvpkfaBwAHAugbJ1KgmPImdwaTBcNwqaqeRCH16a6zzUqrHdosHdbmLywqukv" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_48(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=128.0, + is_shop_specified=True, + min_amount=7560, + usage_limit=1758, + code="UDGTt", + is_public=False, + is_hidden=True, + is_disabled=False, + display_ends_at="2021-05-28T02:32:21.000000Z", + display_starts_at="2024-11-20T06:18:52.000000Z", + ends_at="2024-02-04T22:55:04.000000Z", + starts_at="2024-09-15T11:09:28.000000Z", + discount_upper_limit=2977, + description="GQ9yekqoyNLKN2h7BNq3rRMob2yqEgXsKX0DNjA5LloLW2ZGwTADg0EGo2tY0BvAArU4c3Hcr3rYtMZs1YhEQlphw1DkmThPoIdPA7X1r8JTPyIk7mw82VAIRkHcNMgqN77FQwuiGtQW4pnFSkfz0ZAYuHKErS89ga8rAwXpAiqwTxt1HL4wWzmkMDA4SVfW", + name="D13Zj3L9DQPYajb0tVdWEdtL2ujHbA770c9iXi2Q1" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_49(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=9759.0, + available_shop_ids=["5bf3b593-9056-47d7-a440-f77ad73e936e", "6d3b287b-b2fc-444a-8991-65958c9cbdfc", "a6b43319-b66f-4b91-9c22-ba88b0a9f476", "8dfee64c-7923-4468-9430-98c2a71799aa", "fdf90cf2-4d48-43c8-b713-8b9cdce88133", "bd8a7f22-0774-4245-9e87-15ff8599b1c0", "c6a543e4-893c-4329-829d-3b21b5b98a4f"], + is_shop_specified=True, + min_amount=6618, + usage_limit=99, + code="pIFBg2E", + is_public=False, + is_hidden=True, + is_disabled=True, + display_ends_at="2023-08-28T10:57:53.000000Z", + display_starts_at="2022-07-06T05:49:01.000000Z", + ends_at="2024-11-30T10:26:56.000000Z", + starts_at="2020-04-02T00:12:42.000000Z", + discount_upper_limit=1279, + description="VlOR0ZjHbJ4pIYeH1mIjK91BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2IgQjODYIDOJbPEulQIvNSkQALktsxpQNr6y6a28m0nRuldHpSuEUpdPie9qQ2GFfC0at9jn8DwInc5YWbNc2E2", + name="kkIcBn5byBGxSlhAbqrppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEli1NcEVyTrbdyJqmh3WRfGT9d54" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_50(self): + response = client.send(pp.UpdateCoupon( + "00afb7ad-a93e-45e7-b67b-fa844d154372", + discount_percentage=8782.0, + storage_id="700d8bfa-085c-4c55-9bdf-d7e97449d1a2", + available_shop_ids=["4b62425a-329e-4be1-bcf8-5d3196975f5e", "463a4888-0c67-498e-a2c5-b271af9aaa77", "46bffd74-f445-4fa6-bcfb-7a3f9c5bc79d"], + is_shop_specified=True, + min_amount=7118, + usage_limit=3946, + code="l7H6aH", + is_public=False, + is_hidden=True, + is_disabled=True, + display_ends_at="2023-03-22T06:33:55.000000Z", + display_starts_at="2024-01-01T01:56:17.000000Z", + ends_at="2021-03-21T22:47:32.000000Z", + starts_at="2022-04-08T22:14:35.000000Z", + discount_upper_limit=6317, + description="rLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5B", + name="uCe0yTSEIanUYTV2eUYLa0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf7GbuKVOo81owGN6i0XTT33lqYdKQ0h3ghVZk7eOE9tcwx8MOKl5MRsa1MFEYPOVzvPSXDUkbgX2o" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_seven_bank_atm_session_0(self): + response = client.send(pp.GetSevenBankAtmSession( + "shU" )) self.assertNotEqual(response.status_code, 400) diff --git a/tests/webhook_tests.py b/tests/webhook_tests.py new file mode 100644 index 0000000..c2f4f73 --- /dev/null +++ b/tests/webhook_tests.py @@ -0,0 +1,51 @@ +# coding: utf-8 +# DO NOT EDIT: File is generated by code generator. + +import os +import unittest +import pokepay as pp +from pokepay.client import Client +import tests.util + +package_root = os.path.dirname(os.path.dirname(pp.__file__)) +config_path = os.path.join(package_root, 'config.ini') +client = Client(config_path) + +def test0(self): + list = client.send(pp.ListWebhooks()) + for row in list.rows: + client.send(pp.DeleteWebhook( + row.id + )) + webhook1 = client.send(pp.CreateWebhook( + "bulk_shops", + "http://localhost/bulk_shops" + )) + self.assertEqual("coilinc", webhook1.organization_code) + self.assertEqual("bulk_shops", webhook1.task) + self.assertEqual("http://localhost/bulk_shops", webhook1.url) + self.assertEqual(True, webhook1.is_active) + self.assertEqual("application/json", webhook1.content_type) + webhook2 = client.send(pp.CreateWebhook( + "process_user_stats_operation", + "http://localhost/process_user_stats_operation" + )) + self.assertEqual("coilinc", webhook2.organization_code) + self.assertEqual("process_user_stats_operation", webhook2.task) + self.assertEqual("http://localhost/process_user_stats_operation", webhook2.url) + self.assertEqual(True, webhook2.is_active) + self.assertEqual("application/json", webhook2.content_type) + list2 = client.send(pp.ListWebhooks()) + self.assertEqual(2, list2.count) + self.assertEqual(webhook2.id, list2.rows[0].id) + self.assertEqual(webhook1.id, list2.rows[1].id) + update_response = client.send(pp.UpdateWebhook( + webhook1.id, + is_active: False + )) + self.assertEqual(webhook1.id, update_response.id) + self.assertEqual(webhook1.organization_code, update_response.organization_code) + self.assertEqual(webhook1.task, update_response.task) + self.assertEqual(webhook1.url, update_response.url) + self.assertEqual(webhook1.content_type, update_response.content_type) + self.assertEqual(False, update_response.is_active) From 6c50c3b79c0cb4f09ee248e71c2261111a7c5887 Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Thu, 19 Dec 2024 12:14:34 +0000 Subject: [PATCH 2/3] update error-response.csv --- docs/error-response.csv | 291 +++++++++++++++++++++++++++++----------- 1 file changed, 210 insertions(+), 81 deletions(-) diff --git a/docs/error-response.csv b/docs/error-response.csv index 990a441..17092a6 100644 --- a/docs/error-response.csv +++ b/docs/error-response.csv @@ -2,19 +2,26 @@ method,path,status_code,type,ja,en GET,/user,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission GET,/dashboard,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable GET,/transfers,403,,, +,,503,temporarily_unavailable,,Service Unavailable GET,/transfers-v2,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable GET,/transactions,403,,, +,,503,temporarily_unavailable,,Service Unavailable GET,/transactions-v2,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable +GET,/transactions/bill,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled ,,422,customer_user_not_found,,The customer user is not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -34,7 +41,7 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -42,17 +49,21 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,503,temporarily_unavailable,,Service Unavailable GET,/transactions/:uuid,403,,, ,,404,,, +,,503,temporarily_unavailable,,Service Unavailable GET,/transactions/requests/:request-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,transaction_not_found,"取引が見つかりません",Transaction not found +,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,card_not_found,"カードが見つかりません", ,,409,already_registered_veritrans_card,"このカードは既に登録されています", ,,409,already_registered_veritrans_account,"この会員は既に登録されています", ,,422,transaction_not_found,"取引が見つかりません",Transaction not found +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,can_not_refund_bank_transaction,"銀行取引はキャンセルできません",Bank transactions cannot be cancelled. ,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable ,,422,veritrans_wrong_password_or_cancel,"本人認証に失敗しました。(パスワード間違い、キャンセル、カード会社判定)",Not complete authentication by cardholder. @@ -68,9 +79,8 @@ POST,/transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -96,17 +106,18 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found -,,422,private_money_not_found,,Private money not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,503,temporarily_unavailable,,Service Unavailable -POST,/transactions/topup/check,400,invalid_parameters,"項目が無効です",Invalid parameters -,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled +POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found ,,422,check_not_found,"これはチャージQRコードではありません",This is not a topup QR code -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -126,7 +137,7 @@ POST,/transactions/topup/check,400,invalid_parameters,"項目が無効です",In ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -134,13 +145,16 @@ POST,/transactions/topup/check,400,invalid_parameters,"項目が無効です",In ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,check_already_received,"このチャージQRコードは既に受取済みの為、チャージ出来ませんでした",Check is already received ,,422,check_unavailable,"このチャージQRコードは利用できません",The topup QR code is not available ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -148,6 +162,7 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached ,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. @@ -160,7 +175,7 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -169,11 +184,9 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,503,temporarily_unavailable,,Service Unavailable -POST,/transactions/payment,400,invalid_parameters,"項目が無効です",Invalid parameters -,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -199,17 +212,55 @@ POST,/transactions/payment,400,invalid_parameters,"項目が無効です",Invali ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found -,,422,private_money_not_found,,Private money not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,503,temporarily_unavailable,,Service Unavailable -POST,/transactions/transfer,400,invalid_parameters,"項目が無効です",Invalid parameters -,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled +POST,/transactions/payment/bill,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,disabled_bill,"支払いQRコードが無効です",Bill is disabled ,,422,customer_user_not_found,,The customer user is not found -,,422,private_money_not_found,,Private money not found +,,422,bill_not_found,"支払いQRコードが見つかりません",Bill not found +,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed +,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled +,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account +,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough +,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money +,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer +,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. +,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. +,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. +,,422,coupon_not_sent,"このウォレットに対して配信されていないクーポンです。",This coupon is not sent to this account yet. +,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. +,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. +,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,422,account_suspended,"アカウントは停止されています",The account is suspended +,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,customer_account_not_found,,The customer account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts +,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed +,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user +,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated +,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid +,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,503,temporarily_unavailable,,Service Unavailable +POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,customer_user_not_found,,The customer user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -229,7 +280,7 @@ POST,/transactions/transfer,400,invalid_parameters,"項目が無効です",Inval ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -237,10 +288,11 @@ POST,/transactions/transfer,400,invalid_parameters,"項目が無効です",Inval ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable -POST,/transactions/exchange,400,invalid_parameters,"項目が無効です",Invalid parameters -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled -,,422,account_not_found,"アカウントが見つかりません",The account is not found +POST,/transactions/exchange,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,transaction_restricted,,Transaction is not allowed ,,422,can_not_exchange_between_same_private_money,"同じマネーとの交換はできません", ,,422,can_not_exchange_between_users,"異なるユーザー間での交換は出来ません", @@ -249,6 +301,7 @@ POST,/transactions/exchange,400,invalid_parameters,"項目が無効です",Inval ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user ,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency @@ -258,6 +311,7 @@ POST,/transactions/exchange,400,invalid_parameters,"項目が無効です",Inval ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached ,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. @@ -270,18 +324,17 @@ POST,/transactions/exchange,400,invalid_parameters,"項目が無効です",Inval ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id ,,503,temporarily_unavailable,,Service Unavailable -POST,/transactions/cpm,400,invalid_parameters,"項目が無効です",Invalid parameters -,,403,cpm_unacceptable_amount,"このCPMトークンに対して許可されていない金額です。",The amount is unacceptable for the CPM token +POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対して許可されていない金額です。",The amount is unacceptable for the CPM token ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,cpm_token_already_proceed,"このCPMトークンは既に処理されています。",The CPM token is already proceed ,,422,cpm_token_already_expired,"このCPMトークンは既に失効しています。",The CPM token is already expired ,,422,cpm_token_not_found,"CPMトークンが見つかりませんでした。",The CPM token is not found. -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -301,7 +354,7 @@ POST,/transactions/cpm,400,invalid_parameters,"項目が無効です",Invalid pa ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -309,21 +362,61 @@ POST,/transactions/cpm,400,invalid_parameters,"項目が無効です",Invalid pa ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/bulk,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,organization_not_issuer,"発行体以外に許可されていない操作です",Unpermitted operation except for issuer organizations. ,,409,,, -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,bulk_transaction_invalid_csv_format,"入力されたCSVデータに誤りがあります",Invalid csv format +POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,cashtray_not_found,"決済QRコードが見つかりません",Cashtray is not found +,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed +,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled +,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account +,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough +,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money +,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer +,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. +,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. +,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. +,,422,coupon_not_sent,"このウォレットに対して配信されていないクーポンです。",This coupon is not sent to this account yet. +,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. +,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. +,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,422,account_suspended,"アカウントは停止されています",The account is suspended +,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,customer_account_not_found,,The customer account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts +,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed +,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user +,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated +,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid +,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,cashtray_already_proceed,"この決済QRコードは既に処理されています",Cashtray is already proceed +,,422,cashtray_expired,"この決済QRコードは有効期限が切れています",Cashtray is expired +,,422,cashtray_already_canceled,"この決済QRコードは既に無効化されています",Cashtray is already canceled +,,503,temporarily_unavailable,,Service Unavailable POST,/external-transactions,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled ,,422,customer_user_not_found,,The customer user is not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup @@ -332,6 +425,7 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user ,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency @@ -350,6 +444,8 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. ,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/external-transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -357,6 +453,7 @@ POST,/external-transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK toke ,,409,already_registered_veritrans_card,"このカードは既に登録されています", ,,409,already_registered_veritrans_account,"この会員は既に登録されています", ,,422,event_not_found,"イベントが見つかりません",Event not found +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,can_not_refund_bank_transaction,"銀行取引はキャンセルできません",Bank transactions cannot be cancelled. ,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable ,,422,veritrans_wrong_password_or_cancel,"本人認証に失敗しました。(パスワード間違い、キャンセル、カード会社判定)",Not complete authentication by cardholder. @@ -375,33 +472,39 @@ GET,/bulk-transactions/:uuid,404,notfound,,Not found GET,/bulk-transactions/:uuid/jobs,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,bulk_transaction_not_found,"Bulk取引が見つかりません",Bulk transaction not found GET,/bills,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -POST,/bills,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,shop_account_not_found,,The shop account is not found -,,422,private_money_not_found,,Private money not found +GET,/bills/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,bill_not_found,"支払いQRコードが見つかりません",Bill not found +POST,/bills,400,invalid_parameter_bill_amount_or_range_exceeding_transfer_limit,"支払いQRコードの金額がマネーの取引可能金額の上限を超えています",The input amount is exceeding the private money's limit for transfer +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_suspended,"アカウントは停止されています",The account is suspended -PATCH,/bills/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +PATCH,/bills/:uuid,400,invalid_parameter_bill_amount_or_range_exceeding_transfer_limit,"支払いQRコードの金額がマネーの取引可能金額の上限を超えています",The input amount is exceeding the private money's limit for transfer +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found GET,/checks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,organization_not_found,,Organization not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable POST,/checks,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameter_only_merchants_can_attach_points_to_check,,Only merchants can attach points to check -,,400,invalid_parameter_bear_point_account_identification_item_not_unique,"ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます",Request parameters include either bear_point_account or bear_point_shop_id. ,,400,invalid_parameter_combination_usage_limit_and_is_onetime,,'usage_limit' can not be specified if 'is_onetime' is true. -,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,400,invalid_parameter_expires_at,,'expires_at' must be in the future +,,400,invalid_parameters,"項目が無効です",Invalid parameters +,,400,invalid_parameter_bear_point_account_identification_item_not_unique,"ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます",Request parameters include either bear_point_account or bear_point_shop_id. ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,account_private_money_is_not_issued_by_organization,,The account's private money is not issued by this organization -,,422,shop_account_not_found,,The shop account is not found -,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,bear_point_account_not_found,"ポイントを負担する店舗アカウントが見つかりません",Bear point account not found. +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer GET,/checks/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,422,account_private_money_is_not_issued_by_organization,,The account's private money is not issued by this organization +,,503,temporarily_unavailable,,Service Unavailable PATCH,/checks/:uuid,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 @@ -428,8 +531,8 @@ PATCH,/users/invitations/:uuid,403,,, ,,409,admin_user_conflict,,The Admin-user is already registered ,,503,failed_to_send_email,,Failed to send an E-mail. POST,/users/:uuid/accounts,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,user_not_found,,The user is not found -,,422,private_money_not_found,,Private money not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,user_attributes_external_id_not_match,"ユーザー属性情報の外部IDが一致しません",Not match external id of user attributes ,,422,user_attributes_not_found,"ユーザー属性情報が存在しません",Not found the user attrubtes @@ -448,12 +551,14 @@ DELETE,/users/:uuid,403,,, GET,/private-moneys,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,organization_not_found,,Organization not found GET,/private-moneys/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/private-moneys/:uuid/summary,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,,, -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable GET,/private-moneys/:uuid/clearings,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable GET,/private-moneys/:uuid/organization-summaries,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, ,,404,,, @@ -466,7 +571,7 @@ POST,/private-moneys,400,invalid_parameters,"項目が無効です",Invalid para GET,/terminals,403,,, GET,/organizations,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found POST,/organizations,403,,, ,,409,organization_conflict,,The organization code is already used ,,409,shop_name_conflict,,The shop name is already used @@ -484,8 +589,9 @@ PUT,/organizations/:code,403,,, ,,503,temporarily_unavailable,,Service Unavailable GET,/organizations/:code/shops,403,,, GET,/shops,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,organization_not_found,,Organization not found +,,503,temporarily_unavailable,,Service Unavailable POST,/shops,403,,, ,,409,email_conflict,"このメールアドレスは既に使われています",The E-mail address is already registered ,,409,shop_name_conflict,,The shop name is already used @@ -504,32 +610,37 @@ GET,/shops/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限 PATCH,/shops/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,409,shop_name_conflict,,The shop name is already used +,,422,head_office_can_not_be_disabled,,Head office can not be disabled ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,unavailable_private_money,,Given private money(s) is/are not available ,,422,organization_not_member_organization,,The specified organization is not a member organization of the organization accessing this API ,,503,temporarily_unavailable,,Service Unavailable GET,/customers,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable GET,/customers/transactions,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable GET,/customers/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,422,account_not_found,"アカウントが見つかりません",The account is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found PATCH,/clearings/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,clearing_not_found,"精算が見つかりません",Clearing not found ,,503,temporarily_unavailable,,Service Unavailable GET,/clearings,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable GET,/clearings/preview,400,clearing_to_should_be_past_date,"締め日は過去の日付を指定してください",Should set past date for 'closing_date' ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found POST,/clearings,400,clearing_to_should_be_past_date,"締め日は過去の日付を指定してください",Should set past date for 'closing_date' ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/clearings/flico,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission GET,/clearings/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,clearing_not_found,"精算が見つかりません",Clearing not found +,,503,temporarily_unavailable,,Service Unavailable GET,/messaging-operations,403,,, POST,/messaging-operations,400,messaging_operation_over_transfer_limit,,The messaging operation's amount is over transfer limit ,,400,messaging_operation_sender_account_not_exist,,The account of sender user does not exist @@ -538,7 +649,7 @@ POST,/messaging-operations,400,messaging_operation_over_transfer_limit,,The mess ,,403,,, ,,409,messaging_operation_already_done,,The messaging operation is already done ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,503,temporarily_unavailable,,Service Unavailable GET,/messaging-operations/receivers,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, @@ -560,6 +671,10 @@ POST,/user-stats,400,invalid_parameters,"項目が無効です",Invalid paramete ,,422,invalid_promotional_operation_user,"ユーザーの指定に不正な値が含まれています",Invalid user data is specified ,,422,invalid_promotional_operation_status,"不正な処理ステータスです",Invalid operation status is specified ,,503,user_stats_operation_service_unavailable,"一時的にユーザー統計サービスが利用不能です",User stats service is temporarily unavailable +POST,/user-stats/terminate,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,user_stats_operation_already_done,"指定されたIDの集計処理タスクは既に完了しています",The specified user stats operation is already done +,,422,user_stats_operation_not_found,"指定されたIDの集計処理タスクが見つかりません",User stats task not found for the operation ID +,,503,temporarily_unavailable,,Service Unavailable POST,/device/pokeregis,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, ,,409,hardware_id_conflict,,Hardware id is already registered @@ -583,13 +698,13 @@ POST,/device/pokeregis/:serial-number,400,terminal_is_already_invalidated,,The t ,,500,,, GET,/device/kiosks,400,,, ,,403,,, -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,organization_not_found,,Organization not found GET,/device/kiosk-maintenances,403,,, GET,/device/kiosks/:kiosk-id,400,,, ,,403,,, ,,404,,, -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,organization_not_found,,Organization not found POST,/merchandise-tag,403,,, ,,503,temporarily_unavailable,,Service Unavailable @@ -599,14 +714,15 @@ POST,/tokens,403,unpermitted_admin_user,"この管理ユーザには権限があ ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,organization_not_found,,Organization not found GET,/tokens,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable DELETE,/tokens/:token,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/customers,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found POST,/accounts/customers,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,user_not_found,,The user is not found -,,422,private_money_not_found,,Private money not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,user_attributes_external_id_not_match,"ユーザー属性情報の外部IDが一致しません",Not match external id of user attributes ,,422,user_attributes_not_found,"ユーザー属性情報が存在しません",Not found the user attrubtes @@ -616,17 +732,16 @@ PATCH,/accounts/:uuid/customers,403,unpermitted_admin_user,"この管理ユー ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,user_attributes_not_found,"ユーザー属性情報が存在しません",Not found the user attrubtes -,,422,account_closed,"アカウントは退会しています",The account is closed ,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/shops,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,503,temporarily_unavailable,,Service Unavailable PATCH,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,503,temporarily_unavailable,,Service Unavailable DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,account_not_pre_closed,"アカウントが退会準備中ではありません",The account is not pre-closed ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup @@ -634,6 +749,7 @@ DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user ,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency @@ -643,6 +759,7 @@ DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached ,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached ,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. @@ -659,12 +776,15 @@ DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/:uuid/balances,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/:uuid/expired-balances,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/:uuid/transfers/summary,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found GET,/users/:uuid/accounts,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,503,temporarily_unavailable,,Service Unavailable GET,/cashtrays/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found @@ -685,6 +805,7 @@ PATCH,/cashtrays/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found GET,/cpm/:cpm-token,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,cpm_token_not_found,"CPMトークンが見つかりませんでした。",The CPM token is not found. +,,503,temporarily_unavailable,,Service Unavailable GET,/seven-bank-atm-sessions/:qr-info,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found PATCH,/seven-bank-atm-sessions/:qr-info,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -692,19 +813,20 @@ PATCH,/seven-bank-atm-sessions/:qr-info,403,unpermitted_admin_user,"この管理 POST,/campaigns,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,campaign_overlaps,"同期間に開催されるキャンペーン間で優先度が重複してます",The campaign period overlaps under the same private-money / type / priority -,,422,shop_account_not_found,,The shop account is not found -,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,campaign_period_overlaps,"同期間に開催されるキャンペーン間で優先度が重複してます",The campaign period overlaps under the same private-money / type / priority ,,422,campaign_invalid_period,,Invalid campaign period starts_at later than ends_at +,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/campaigns,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable PATCH,/campaigns/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found -,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,campaign_budget_caps_exceeded,"キャンペーン予算上限額を越えています",The campaign budget caps exceeded GET,/campaigns/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,503,temporarily_unavailable,,Service Unavailable POST,/webhooks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,409,organization_worker_task_finish_webhook_conflict,"そのwebhookは既に登録されています",The webhook is already registered GET,/webhooks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -717,12 +839,12 @@ DELETE,/webhooks/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,503,temporarily_unavailable,,Service Unavailable GET,/coupons,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found POST,/coupons,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,partner_storage_not_found,"指定したIDのデータは保存されていません",Not found by storage_id ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,coupon_image_storage_conflict,"クーポン画像のストレージIDは既に存在します",The coupon image storage_id is already exists GET,/coupons/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. @@ -736,7 +858,7 @@ POST,/storage/v1,400,partner_decryption_failed,"リクエスト中の暗号デ ,,400,partner_client_not_found,"partner_clientが見つかりません。",The partner client is not found. ,,422,formats_not_supported_by_storage,"このフォーマットは対応していません",This format is not supported POST,/user-devices,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,user_not_found,,The user is not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found GET,/user-devices/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,user_device_not_found,,The user-device not found POST,/user-devices/:uuid/activate,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -746,25 +868,27 @@ POST,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザ ,,422,user_device_is_disabled,"このデバイスは無効化されています",The user-device is disabled ,,422,user_device_not_found,,The user-device not found ,,422,bank_registration_limit_error,"8口座を越えて登録できません",Can not register more than 8 accounts. -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,paytree_disabled_private_money,"このマネーは銀行から引き落とし出来ません",This money cannot be charged from the bank ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available ,,503,incomplete_configration_for_organization_bank,"現状、このマネーは銀行からのチャージを行えません。システム管理者へお問合せ下さい","Currently, this money cannot be topup from this bank. Please contact your system administrator." GET,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,forbidden,,Forbidden -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,user_device_not_found,,The user-device not found POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外部サービス起因により、チャージに失敗しました",Failure to topup due to external services of the bank ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,forbidden,,Forbidden ,,403,user_bank_disabled_error,"現在、このユーザーは銀行からのチャージは利用できません",Topup from this user's bank have now been stopped. ,,404,user_bank_not_found,"登録された銀行が見つかりません",Bank not found -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled -,,422,private_money_not_found,,Private money not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,user_device_is_disabled,"このデバイスは無効化されています",The user-device is disabled ,,422,user_device_not_found,,The user-device not found +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -784,7 +908,7 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -792,10 +916,15 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,422,paytree_disabled_private_money,"このマネーは銀行から引き落とし出来ません",This money cannot be charged from the bank ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available ,,503,temporarily_unavailable,,Service Unavailable ,,503,incomplete_configration_for_organization_bank,"現状、このマネーは銀行からのチャージを行えません。システム管理者へお問合せ下さい","Currently, this money cannot be topup from this bank. Please contact your system administrator." +DELETE,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,403,forbidden,,Forbidden +,,404,user_bank_not_found,"登録された銀行が見つかりません",Bank not found +,,422,user_device_not_found,,The user-device not found POST,/paytree/charge-entry-result,400,partner_decryption_failed,"リクエスト中の暗号データを復号化することができませんでした。",Could not decrypt the data. ,,400,partner_client_not_found,"partner_clientが見つかりません。",The partner client is not found. POST,/paytree/reconcile,400,invalid_parameters,"項目が無効です",Invalid parameters From 2c22a75e4bc82169fc87fb691482861abf975bac Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Thu, 19 Dec 2024 12:14:34 +0000 Subject: [PATCH 3/3] 1.0.5 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 074ff2a..3f7e863 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ EMAIL = 'dev@pocket-change.jp' AUTHOR = 'Pocket Change inc.' REQUIRES_PYTHON = '>=3.6.0' -VERSION = '1.0.4' +VERSION = '1.0.5' # What packages are required for this module to be executed? REQUIRED = ['requests', 'configparser', 'uuid', 'pytz', 'pycryptodomex']