diff --git a/docs/README.md b/docs/README.md index 65d5ba9..0060922 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 @@ -177,7 +91,10 @@ try { - [GetCpmToken](./transaction.md#get-cpm-token): CPMトークンの状態取得 - [ListTransactions](./transaction.md#list-transactions): 【廃止】取引履歴を取得する - [CreateTransaction](./transaction.md#create-transaction): 【廃止】チャージする +- [CreateTransactionGroup](./transaction.md#create-transaction-group): トランザクショングループを作成する +- [ShowTransactionGroup](./transaction.md#show-transaction-group): トランザクショングループを取得する - [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 +106,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 +123,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の情報を取得する @@ -223,8 +144,14 @@ try { - [GetCustomerAccounts](./customer.md#get-customer-accounts): エンドユーザーのウォレット一覧を表示する - [CreateCustomerAccount](./customer.md#create-customer-account): 新規エンドユーザーをウォレットと共に追加する - [GetShopAccounts](./customer.md#get-shop-accounts): 店舗ユーザーのウォレット一覧を表示する +- [GetCustomerCards](./customer.md#get-customer-cards): エンドユーザーのクレジットカード一覧を取得する - [ListCustomerTransactions](./customer.md#list-customer-transactions): 取引履歴を取得する +### CreditSession +- [PostCreditSession](./credit_session.md#post-credit-session): Create credit session +- [CreateCreditSessionTransaction](./credit_session.md#create-credit-session-transaction): Create transaction with credit session +- [CaptureCreditSession](./credit_session.md#capture-credit-session): Capture credit session + ### Organization - [ListOrganizations](./organization.md#list-organizations): 加盟店組織の一覧を取得する - [CreateOrganization](./organization.md#create-organization): 新規加盟店組織を追加する @@ -237,7 +164,6 @@ try { - [UpdateShop](./shop.md#update-shop): 店舗情報を更新する ### User -- [GetUser](./user.md#get-user): ### Account - [ListUserAccounts](./account.md#list-user-accounts): エンドユーザー、店舗ユーザーのウォレット一覧を表示する @@ -280,7 +206,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..8bd7589 100644 --- a/docs/account.md +++ b/docs/account.md @@ -1,27 +1,35 @@ # Account +ウォレットを表すデータです。 +CustomerもMerchantも所有し、ウォレット間の送金は取引として記録されます。 +Customerのウォレットはマネー残高(有償バリュー)、ポイント残高(無償バリュー)の2種類の残高をもちます。 +また有効期限別で金額管理しており、有効期限はチャージ時のコンテキストによって決定されます。 +ユーザはマネー別に複数のウォレットを保有することが可能です。 +ただし1マネー1ウォレットのみであり、同一マネーのウォレットを複数所有することはできません。 + ## 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=6996, # ページ番号 + per_page=4037 # 1ページ分の取引数 +)) ``` ### Parameters -**`user_id`** - - +#### `user_id` ユーザーIDです。 指定したユーザーIDのウォレット一覧を取得します。パートナーキーと紐づく組織が発行しているマネーのウォレットのみが表示されます。 +
+スキーマ + ```json { "type": "string", @@ -29,11 +37,14 @@ const response: Response = await client.send(new ListUs } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -41,11 +52,14 @@ const response: Response = await client.send(new ListUs } ``` -**`per_page`** - +
+#### `per_page` 1ページ当たりのウォレット数です。デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -53,6 +67,8 @@ const response: Response = await client.send(new ListUs } ``` +
+ 成功したときは @@ -68,24 +84,25 @@ 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="kbgX2oBshUtXGZ9lfp9TwgYPOmismihXWyqdhqoMR6oAdT5yPsPRTmUYdZdYDDGZDuZn0XgqQIqTu14tSh13qL", # ウォレット名 + external_id="DYdRTWbMgZiB4q5yXIKvcyeytZU", # 外部ID + metadata="{\"key1\":\"foo\",\"key2\":\"bar\"}" # ウォレットに付加するメタデータ +)) ``` ### Parameters -**`user_id`** - - +#### `user_id` ユーザーIDです。 +
+スキーマ + ```json { "type": "string", @@ -93,13 +110,16 @@ const response: Response = await client.send(new CreateUserAccoun } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 作成するウォレットのマネーを指定します。このパラメータは必須です。 +
+スキーマ + ```json { "type": "string", @@ -107,9 +127,12 @@ const response: Response = await client.send(new CreateUserAccoun } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -118,9 +141,12 @@ const response: Response = await client.send(new CreateUserAccoun } ``` -**`external_id`** - +
+#### `external_id` + +
+スキーマ ```json { @@ -129,15 +155,18 @@ const response: Response = await client.send(new CreateUserAccoun } ``` -**`metadata`** - +
+#### `metadata` ウォレットに付加するメタデータをJSON文字列で指定します。 指定できるJSON文字列には以下のような制約があります。 - フラットな構造のJSONを文字列化したものであること。 - keyは最大32文字の文字列(同じkeyを複数指定することはできません) - valueには128文字以下の文字列が指定できます +
+スキーマ + ```json { "type": "string", @@ -145,6 +174,8 @@ const response: Response = await client.send(new CreateUserAccoun } ``` +
+ 成功したときは diff --git a/docs/bank_pay.md b/docs/bank_pay.md index 91c7d24..e5c7553 100644 --- a/docs/bank_pay.md +++ b/docs/bank_pay.md @@ -1,24 +1,77 @@ # BankPay 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" +)) ``` ### Parameters -**`user_device_id`** - +#### `user_device_id` +
+スキーマ ```json { @@ -27,9 +80,12 @@ const response: Response = await client.send(new ListBanks({ } ``` -**`private_money_id`** - +
+ +#### `private_money_id` +
+スキーマ ```json { @@ -38,6 +94,8 @@ const response: Response = await client.send(new ListBanks({ } ``` +
+ 成功したときは @@ -56,24 +114,24 @@ const response: Response = await client.send(new ListBanks({ ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。 アプリの場合はDeep Linkを使うことを想定しています。 - -```typescript -const response: Response = await client.send(new CreateBank({ - user_device_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - callback_url: "", // コールバックURL - kana: "ポケペイタロウ", // ユーザーの氏名 (片仮名で指定) - email: "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="0sqeMHVeJG@ZnQa.com", # ユーザーのメールアドレス + birthdate="19901142" # 生年月日 +)) ``` ### Parameters -**`user_device_id`** - +#### `user_device_id` +
+スキーマ ```json { @@ -82,9 +140,12 @@ const response: Response = await client.send(new CreateBank } ``` -**`private_money_id`** - +
+#### `private_money_id` + +
+スキーマ ```json { @@ -93,9 +154,12 @@ const response: Response = await client.send(new CreateBank } ``` -**`callback_url`** - +
+ +#### `callback_url` +
+スキーマ ```json { @@ -104,9 +168,12 @@ const response: Response = await client.send(new CreateBank } ``` -**`kana`** - +
+#### `kana` + +
+スキーマ ```json { @@ -115,9 +182,12 @@ const response: Response = await client.send(new CreateBank } ``` -**`email`** - +
+ +#### `email` +
+スキーマ ```json { @@ -127,9 +197,12 @@ const response: Response = await client.send(new CreateBank } ``` -**`birthdate`** - +
+#### `birthdate` + +
+スキーマ ```json { @@ -138,6 +211,8 @@ const response: Response = await client.send(new CreateBank } ``` +
+ 成功したときは @@ -153,22 +228,24 @@ 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 + 7110, # 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 (デフォルトは自身) +)) ``` ### Parameters -**`user_device_id`** - +#### `user_device_id` +
+スキーマ ```json { @@ -177,9 +254,12 @@ const response: Response = await client.send(new CreateBankTo } ``` -**`private_money_id`** - +
+ +#### `private_money_id` +
+スキーマ ```json { @@ -188,9 +268,12 @@ const response: Response = await client.send(new CreateBankTo } ``` -**`amount`** - +
+#### `amount` + +
+スキーマ ```json { @@ -199,9 +282,26 @@ const response: Response = await client.send(new CreateBankTo } ``` -**`bank_id`** - +
+ +#### `bank_id` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+#### `receiver_user_id` + +
+スキーマ ```json { @@ -210,9 +310,12 @@ const response: Response = await client.send(new CreateBankTo } ``` -**`request_id`** - +
+ +#### `request_id` +
+スキーマ ```json { @@ -221,6 +324,8 @@ const response: Response = await client.send(new CreateBankTo } ``` +
+ 成功したときは diff --git a/docs/bill.md b/docs/bill.md index bb182ba..12d5675 100644 --- a/docs/bill.md +++ b/docs/bill.md @@ -1,36 +1,48 @@ # Bill -支払いQRコード +支払いQRコード(トークン)を表すデータです。 +URL文字列のまま利用されるケースとQR画像化して利用されるケースがあります。 +ログイン済みユーザアプリで読込むことで、支払い取引を作成します。 +設定される支払い金額(amount)は、固定値とユーザによる自由入力の2パターンがあります。 +amountが空の場合は、ユーザによる自由入力で受け付けた金額で支払いを行います。 +有効期限は比較的長命で利用される事例が多いです。 + +複数マネー対応支払いQRコードについて: +オプショナルで複数のマネーを1つの支払いQRコードに設定可能です。 +その場合ユーザ側でどのマネーで支払うか指定可能です。 +複数マネー対応支払いQRコードにはデフォルトのマネーウォレットを設定する必要があり、ユーザがマネーを明示的に選択しなかった場合はデフォルトのマネーによる支払いになります。 + ## 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=4992, # ページ番号 + per_page=7779, # 1ページの表示数 + bill_id="J1KgmPImdw", # 支払いQRコードのID + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + organization_code="SI4B--Te0f-XV8-8", # 組織コード + description="test bill", # 取引説明文 + created_from="2022-10-15T11:52:22.000000Z", # 作成日時(起点) + created_to="2025-11-06T02:40:00.000000Z", # 作成日時(終点) + shop_name="bill test shop1", # 店舗名 + shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID + lower_limit_amount=128, # 金額の範囲によるフィルタ(下限) + upper_limit_amount=770, # 金額の範囲によるフィルタ(上限) + is_disabled=True # 支払いQRコードが無効化されているかどうか +)) ``` ### Parameters -**`page`** - - +#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -38,11 +50,14 @@ const response: Response = await client.send(new ListBills({ } ``` -**`per_page`** - +
+#### `per_page` 1ページに表示する支払いQRコードの数です。 +
+スキーマ + ```json { "type": "integer", @@ -50,22 +65,28 @@ const response: Response = await client.send(new ListBills({ } ``` -**`bill_id`** - +
+#### `bill_id` 支払いQRコードのIDを指定して検索します。IDは前方一致で検索されます。 +
+スキーマ + ```json { "type": "string" } ``` -**`private_money_id`** - +
+#### `private_money_id` 支払いQRコードの送金元ウォレットのマネーIDでフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -73,11 +94,14 @@ const response: Response = await client.send(new ListBills({ } ``` -**`organization_code`** - +
+#### `organization_code` 支払いQRコードの送金元店舗が所属する組織の組織コードでフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -86,11 +110,14 @@ const response: Response = await client.send(new ListBills({ } ``` -**`description`** - +
+#### `description` 支払いQRコードを読み取ることで作られた取引の説明文としてアプリなどに表示されます。 +
+スキーマ + ```json { "type": "string", @@ -98,13 +125,16 @@ const response: Response = await client.send(new ListBills({ } ``` -**`created_from`** - +
+#### `created_from` 支払いQRコードの作成日時でフィルターします。 これ以降に作成された支払いQRコードのみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -112,13 +142,16 @@ const response: Response = await client.send(new ListBills({ } ``` -**`created_to`** - +
+#### `created_to` 支払いQRコードの作成日時でフィルターします。 これ以前に作成された支払いQRコードのみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -126,11 +159,14 @@ const response: Response = await client.send(new ListBills({ } ``` -**`shop_name`** - +
+#### `shop_name` 支払いQRコードを作成した店舗名でフィルターします。店舗名は部分一致で検索されます。 +
+スキーマ + ```json { "type": "string", @@ -138,11 +174,14 @@ const response: Response = await client.send(new ListBills({ } ``` -**`shop_id`** - +
+#### `shop_id` 支払いQRコードを作成した店舗IDでフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -150,11 +189,14 @@ const response: Response = await client.send(new ListBills({ } ``` -**`lower_limit_amount`** - +
+#### `lower_limit_amount` 支払いQRコードの金額の下限を指定してフィルターします。 +
+スキーマ + ```json { "type": "integer", @@ -163,11 +205,14 @@ const response: Response = await client.send(new ListBills({ } ``` -**`upper_limit_amount`** - +
+#### `upper_limit_amount` 支払いQRコードの金額の上限を指定してフィルターします。 +
+スキーマ + ```json { "type": "integer", @@ -176,17 +221,22 @@ const response: Response = await client.send(new ListBills({ } ``` -**`is_disabled`** - +
+#### `is_disabled` 支払いQRコードが無効化されているかどうかを表します。デフォルト値は偽(有効)です。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -207,22 +257,24 @@ 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=7560.0, # 支払い額 + description="test bill" # 説明文(アプリ上で取引の説明文として表示される) +)) ``` ### Parameters -**`amount`** - - +#### `amount` 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 +また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 + +
+スキーマ ```json { @@ -232,9 +284,12 @@ const response: Response = await client.send(new CreateBill({ } ``` -**`private_money_id`** - +
+ +#### `private_money_id` +
+スキーマ ```json { @@ -243,9 +298,12 @@ const response: Response = await client.send(new CreateBill({ } ``` -**`shop_id`** - +
+#### `shop_id` + +
+スキーマ ```json { @@ -254,9 +312,12 @@ const response: Response = await client.send(new CreateBill({ } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -265,6 +326,8 @@ const response: Response = await client.send(new CreateBill({ } ``` +
+ 成功したときは @@ -274,9 +337,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 +348,45 @@ 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,23 +394,24 @@ 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=1758.0, # 支払い額 + description="test bill", # 説明文 + is_disabled=True # 無効化されているかどうか +)) ``` ### Parameters -**`bill_id`** - - +#### `bill_id` 更新対象の支払いQRコードのIDです。 +
+スキーマ + ```json { "type": "string", @@ -315,10 +419,13 @@ const response: Response = await client.send(new UpdateBill({ } ``` -**`amount`** - +
+ +#### `amount` +支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 -支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 +
+スキーマ ```json { @@ -328,11 +435,14 @@ const response: Response = await client.send(new UpdateBill({ } ``` -**`description`** - +
+#### `description` 支払いQRコードの詳細説明文です。アプリ上で取引の説明文として表示されます。 +
+スキーマ + ```json { "type": "string", @@ -340,17 +450,22 @@ const response: Response = await client.send(new UpdateBill({ } ``` -**`is_disabled`** - +
+#### `is_disabled` 支払いQRコードが無効化されているかどうかを指定します。真にすると無効化され、偽にすると有効化します。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -362,4 +477,182 @@ 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|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| +|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_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| +|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..cb7bc56 100644 --- a/docs/bulk.md +++ b/docs/bulk.md @@ -1,27 +1,35 @@ # Bulk +一括取引処理を表すデータです。 +CSVファイルのアップロードにより、複数件の取引をバッチ処理する非同期APIを提供します。 +一括処理のステータス(submitted, examining, queued, processing, error, done)を監視できます。 +処理完了時にコールバックURLへの通知も可能です。 +また、スケジュール実行時刻を指定して将来の時点で処理を実行することもできます。 + ## 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( + "479Q7e7CQ6mogsi", # name: 一括取引タスク名 + "OQ6jQ", # content: 取引する情報のCSV + "wMdVQzET3CTZR3naadmHoO937wRncWgLEMvw", # request_id: リクエストID + description="uXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5Q", # 一括取引の説明 + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + callback_url="https://fKEnNvZa.example.com" # コールバックURL +)) ``` ### Parameters -**`name`** - - +#### `name` 一括取引タスクの管理用の名前です。 +
+スキーマ + ```json { "type": "string", @@ -29,11 +37,14 @@ const response: Response = await client.send(new BulkCreateTran } ``` -**`description`** - +
+#### `description` 一括取引タスクの管理用の説明文です。 +
+スキーマ + ```json { "type": "string", @@ -41,9 +52,9 @@ const response: Response = await client.send(new BulkCreateTran } ``` -**`content`** - +
+#### `content` 一括取引する情報を書いたCSVの文字列です。 1行目はヘッダ行で、2行目以降の各行にカンマ区切りの取引データを含みます。 カラムは以下の7つです。任意のカラムには空文字を指定します。 @@ -67,17 +78,23 @@ const response: Response = await client.send(new BulkCreateTran - `point_expires_at`: ポイントの有効期限 - 任意。指定がないときはマネーに設定された有効期限を適用 +
+スキーマ + ```json { "type": "string" } ``` -**`request_id`** - +
+#### `request_id` 重複したリクエストを判断するためのユニークID。ランダムな36字の文字列を生成して渡してください。 +
+スキーマ + ```json { "type": "string", @@ -86,11 +103,14 @@ const response: Response = await client.send(new BulkCreateTran } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -98,6 +118,46 @@ const response: Response = await client.send(new BulkCreateTran } ``` +
+ +#### `callback_url` +一括取引タスクが終了したときに通知されるコールバックURLです。これはオプショナルなパラメータで、未指定の場合は通知されません。 + +指定したURLに対して、以下の内容のリクエストがPOSTメソッドで送信されます。 + +リクエスト例: + { + "bulk_transaction_id": "c9a0b2c0-e8d0-4a7f-9b1d-2f0c3e1a8b7a", + "request_id": "1640e29f-157a-46e2-af05-c402726cbf2b", + "completed_at": "2025-09-26T14:30:00Z", + "status": "done", + "success_count": 98, + "total_count": 100 +} + +- bulk_transaction_id: 一括取引タスクのタスクID +- request_id: 本APIにクライアント側から指定したrequest_id +- completed_at: 完了時刻 +- status: 終了時の状態。done (完了状態) か error (エラー) のいずれか +- success_count: 成功件数 +- total_count: 総件数 + +リトライ戦略について: +対象URLにPOSTした結果、500, 502, 503, 504エラーを受け取ったとき、またはタイムアウト (10秒)したときに、最大3回までリトライします。 +成功通知が複数回送信されることもありえるため、request_idで排他処理を行なってください。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "url" +} +``` + +
+ 成功したときは @@ -107,10 +167,11 @@ const response: Response = await client.send(new BulkCreateTran ### Error Responses |status|type|ja|en| |---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| |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..5e237ed 100644 --- a/docs/campaign.md +++ b/docs/campaign.md @@ -1,4 +1,9 @@ # Campaign +自動ポイント還元ルールの設定を表すデータです。 +Pokepay管理画面やPartnerSDK経由でルール登録、更新が可能です。 +取引(Transaction)または外部決済イベント(ExternalTransaction)の内容によって還元するポイント額を計算し、自動で付与するルールを設定可能です。 +targetとして取引または外部決済イベントを選択して個別設定します。 + ## ListCampaigns: キャンペーン一覧を取得する @@ -6,27 +11,28 @@ 発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 閲覧権限がない場合は 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="2023-04-02T21:45:58.000000Z", # 指定された日時以降に適用可能期間が含まれているか + available_to="2025-05-21T08:12:46.000000Z", # 指定された日時以前に適用可能期間が含まれているか + page=1, # ページ番号 + per_page=20 # 1ページ分の取得数 +)) ``` ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -34,25 +40,31 @@ const response: Response = await client.send(new ListCampaig } ``` -**`is_ongoing`** - +
+#### `is_ongoing` 有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 デフォルトでは未指定(フィルターなし)です。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`available_from`** - +
+#### `available_from` キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。 デフォルトでは未指定(フィルターなし)です。 +
+スキーマ + ```json { "type": "string", @@ -60,12 +72,15 @@ const response: Response = await client.send(new ListCampaig } ``` -**`available_to`** - +
+#### `available_to` キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。 デフォルトでは未指定(フィルターなし)です。 +
+スキーマ + ```json { "type": "string", @@ -73,11 +88,14 @@ const response: Response = await client.send(new ListCampaig } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -85,11 +103,14 @@ const response: Response = await client.send(new ListCampaig } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取得数です。デフォルトでは 20 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -98,6 +119,8 @@ const response: Response = await client.send(new ListCampaig } ``` +
+ 成功したときは @@ -108,6 +131,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| @@ -118,23 +142,22 @@ const response: Response = await client.send(new ListCampaig ## CreateCampaign: ポイント付与キャンペーンを作る ポイント付与キャンペーンを作成します。 - -```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( + "RuNHWw3kkEIImb7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6FlBm7k1iTzlm9ILQGKVJoUCSY35cdkgvsbAYCbaEHjTHUmx8bpMxYByLz0xsJRhRVsB9HjzBAZfWzO75yHWR5FLMa9CO3GmqQepv7doxpRjgZI2VSDvLJkkZMMdEANfWVavA", # name: キャンペーン名 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + "2020-09-25T13:58:02.000000Z", # starts_at: キャンペーン開始日時 + "2020-06-05T09:56:53.000000Z", # ends_at: キャンペーン終了日時 + 1616, # priority: キャンペーンの適用優先度 + "external-transaction", # event: イベント種別 + bear_point_shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント負担先店舗ID + description="Jg4zkA5dwRQrAEDCEBzCTk0pNAGkxkj3", # キャンペーンの説明文 + status="disabled", # キャンペーン作成時の状態 + point_expires_at="2026-02-27T23:54:04.000000Z", # ポイント有効期限(絶対日時指定) + point_expires_in_days=5381, # ポイント有効期限(相対日数指定) + is_exclusive=True, # キャンペーンの重複設定 + subject="all", # ポイント付与の対象金額の種別 + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, @@ -149,32 +172,32 @@ 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 +}], # 商品情報ベースのポイント付与ルール + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 -}], // 商品情報ベースのポイント付与ルール - blacklisted_product_rules: [{ + "classification_code": "c123" +}, { "product_code": "4912345678904", "classification_code": "c123" -}], // 商品情報ベースのキャンペーンで除外対象にする商品リスト - applicable_days_of_week: [4, 0, 1], // キャンペーンを適用する曜日 (複数指定) - applicable_time_ranges: [{ +}], # 商品情報ベースのキャンペーンで除外対象にする商品リスト + applicable_days_of_week=[3], # キャンペーンを適用する曜日 (複数指定) + applicable_time_ranges=[{ "from": "12:00", "to": "23:59" }, { @@ -183,37 +206,39 @@ 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"], # キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + minimum_number_of_products=2874, # キャンペーンを適用する1会計内の商品個数の下限 + minimum_number_of_amount=7984, # キャンペーンを適用する1会計内の商品総額の下限 + minimum_number_for_combination_purchase=6768, # 複数種類の商品を同時購入するときの商品種別数の下限 + exist_in_each_product_groups=False, # 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + max_point_amount=5717, # キャンペーンによって付与されるポイントの上限 + max_total_point_amount=6183, # キャンペーンによって付与されるの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=1055849207 # キャンペーン予算上限 +)) ``` ### Parameters -**`name`** - - +#### `name` キャンペーン名です(必須項目)。 ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 +
+スキーマ + ```json { "type": "string", @@ -221,11 +246,14 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`private_money_id`** - +
+#### `private_money_id` キャンペーン対象のマネーのIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -233,13 +261,16 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`starts_at`** - +
+#### `starts_at` キャンペーン開始日時です(必須項目)。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -247,13 +278,16 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`ends_at`** - +
+#### `ends_at` キャンペーン終了日時です(必須項目)。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -261,23 +295,26 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`priority`** - +
+#### `priority` キャンペーンの適用優先度です。 優先度が大きいものから順に適用判定されていきます。 キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 +
+スキーマ + ```json { "type": "integer" } ``` -**`event`** - +
+#### `event` キャンペーンのトリガーとなるイベントの種類を指定します(必須項目)。 以下のいずれかを指定できます。 @@ -289,6 +326,9 @@ const response: Response = await client.send(new CreateCampaign({ 3. external-transaction ポケペイ外の取引(現金決済など) +
+スキーマ + ```json { "type": "string", @@ -300,12 +340,15 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`bear_point_shop_id`** - +
+#### `bear_point_shop_id` ポイントを負担する店舗のIDです。デフォルトではマネー発行体の本店が設定されます。 ポイント負担先店舗は後から更新することはできません。 +
+スキーマ + ```json { "type": "string", @@ -313,11 +356,14 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`description`** - +
+#### `description` キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 +
+スキーマ + ```json { "type": "string", @@ -325,9 +371,9 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`status`** - +
+#### `status` キャンペーン作成時の状態を指定します。デフォルトではenabledです。 以下のいずれかを指定できます。 @@ -337,6 +383,9 @@ const response: Response = await client.send(new CreateCampaign({ 2. disabled 無効 +
+スキーマ + ```json { "type": "string", @@ -347,12 +396,15 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`point_expires_at`** - +
+#### `point_expires_at` キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -360,12 +412,15 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`point_expires_in_days`** - +
+#### `point_expires_in_days` キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "integer", @@ -373,23 +428,26 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`is_exclusive`** - +
+#### `is_exclusive` キャンペーンの重ね掛けを行うかどうかのフラグです。 これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。 falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`subject`** - +
+#### `subject` ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。 @@ -402,6 +460,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) 注意: event を topup にしたときはポイントの付与に対しても適用されます +
+スキーマ + ```json { "type": "string", @@ -412,9 +473,9 @@ all を指定すると決済額全体を対象にします (「ポイント」 } ``` -**`amount_based_point_rules`** - +
+#### `amount_based_point_rules` 金額をベースとしてポイント付与を行うルールを指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 @@ -438,6 +499,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し ] ``` +
+スキーマ + ```json { "type": "array", @@ -447,9 +511,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し } ``` -**`product_based_point_rules`** - +
+#### `product_based_point_rules` 商品情報をベースとしてポイント付与を行うルールを指定します。 ルールは商品ごとに設定可能で、ルールの配列として指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 @@ -496,6 +560,9 @@ event が payment か external-transaction の時のみ有効です。 ] ``` +
+スキーマ + ```json { "type": "array", @@ -505,13 +572,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`blacklisted_product_rules`** - +
+#### `blacklisted_product_rules` 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 除外対象の商品コード、または分類コードのパターンの配列として指定します。 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 +
+スキーマ + ```json { "type": "array", @@ -521,13 +591,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicable_days_of_week`** - +
+#### `applicable_days_of_week` キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) +
+スキーマ + ```json { "type": "array", @@ -539,13 +612,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicable_time_ranges`** - +
+#### `applicable_time_ranges` キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 +
+スキーマ + ```json { "type": "array", @@ -555,12 +631,35 @@ fromとtoは両方必要です。 } ``` -**`applicable_shop_ids`** - +
+#### `applicable_shop_ids` キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 +
+スキーマ + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +
+ +#### `blacklisted_shop_ids` +キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 +このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 +blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 + +
+スキーマ + ```json { "type": "array", @@ -571,11 +670,14 @@ fromとtoは両方必要です。 } ``` -**`minimum_number_of_products`** - +
+#### `minimum_number_of_products` このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -583,11 +685,14 @@ fromとtoは両方必要です。 } ``` -**`minimum_number_of_amount`** - +
+#### `minimum_number_of_amount` このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -595,9 +700,9 @@ fromとtoは両方必要です。 } ``` -**`minimum_number_for_combination_purchase`** - +
+#### `minimum_number_for_combination_purchase` 複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。デフォルトでは未指定で、指定する場合は1以上の整数を指定します。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 @@ -670,6 +775,9 @@ fromとtoは両方必要です。 } ``` +
+スキーマ + ```json { "type": "integer", @@ -677,9 +785,9 @@ fromとtoは両方必要です。 } ``` -**`exist_in_each_product_groups`** - +
+#### `exist_in_each_product_groups` 複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 @@ -760,19 +868,25 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になりますが、付与値の上限が100ポイントになります。つまり100 + 200=300と計算されますが上限額の100ポイントが実際の付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600ですが上限額の100がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`max_point_amount`** - +
+#### `max_point_amount` キャンペーンによって付与されるポイントの上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、amount_based_point_rules や product_based_point_rules によって計算されるポイント付与値がmax_point_amountを越えている場合、max_point_amountの値がポイント付与値となり、越えていない場合はその値がポイント付与値となります。 +
+スキーマ + ```json { "type": "integer", @@ -780,14 +894,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`max_total_point_amount`** - +
+#### `max_total_point_amount` キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 +
+スキーマ + ```json { "type": "integer", @@ -795,9 +912,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`dest_private_money_id`** - +
+#### `dest_private_money_id` キャンペーンを駆動するイベントのマネーとは「別のマネー」に対してポイントを付けたいときに、そのマネーIDを指定します。 ポイント付与先のマネーはキャンペーンを駆動するイベントのマネーと同一発行体が発行しているものに限ります。その他のマネーIDが指定された場合は private_money_not_found (422) が返ります。 @@ -808,6 +925,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 別マネーに対するポイント付与は別のtransactionとなります。 RefundTransaction で元のイベントをキャンセルしたときはポイント付与のtransactionもキャンセルされ、逆にポイント付与のtransactionをキャンセルしたときは連動して元のイベントがキャンセルされます。 +
+スキーマ + ```json { "type": "string", @@ -815,9 +935,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`applicable_account_metadata`** - +
+#### `applicable_account_metadata` ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 @@ -844,15 +964,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`applicable_transaction_metadata`** - +
+#### `applicable_transaction_metadata` 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 @@ -879,20 +1002,26 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`budget_caps_amount`** - +
+#### `budget_caps_amount` キャンペーンの予算上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 +
+スキーマ + ```json { "type": "integer", @@ -901,6 +1030,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+ 成功したときは @@ -913,11 +1044,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,22 +1061,23 @@ 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 +)) ``` ### Parameters -**`campaign_id`** - - +#### `campaign_id` キャンペーンIDです。 指定したIDのキャンペーンを取得します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -953,6 +1085,8 @@ const response: Response = await client.send(new GetCampaign({ } ``` +
+ 成功したときは @@ -968,22 +1102,21 @@ const response: Response = await client.send(new GetCampaign({ ## UpdateCampaign: ポイント付与キャンペーンを更新する ポイント付与キャンペーンを更新します。 - -```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="9S3Zg4O5dK9OBTn", # キャンペーン名 + starts_at="2021-12-20T11:25:39.000000Z", # キャンペーン開始日時 + ends_at="2023-05-11T06:35:13.000000Z", # キャンペーン終了日時 + priority=8707, # キャンペーンの適用優先度 + event="payment", # イベント種別 + description="HIwJr5Xn6R9PIw5eC52tvIBnMyMg4CnT2dj7ORUTt4jEgn479", # キャンペーンの説明文 + status="enabled", # キャンペーン作成時の状態 + point_expires_at="2022-09-03T02:17:22.000000Z", # ポイント有効期限(絶対日時指定) + point_expires_in_days=2661, # ポイント有効期限(相対日数指定) + is_exclusive=False, # キャンペーンの重複設定 + subject="all", # ポイント付与の対象金額の種別 + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, @@ -998,26 +1131,29 @@ const response: Response = await client.send(new UpdateCampaign({ "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 -}], // 商品情報ベースのポイント付与ルール - blacklisted_product_rules: [{ +}], # 商品情報ベースのポイント付与ルール + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" +}, { "product_code": "4912345678904", "classification_code": "c123" -}], // 商品情報ベースのキャンペーンで除外対象にする商品リスト - applicable_days_of_week: [6, 5, 5], // キャンペーンを適用する曜日 (複数指定) - applicable_time_ranges: [{ +}], # 商品情報ベースのキャンペーンで除外対象にする商品リスト + applicable_days_of_week=[3, 1], # キャンペーンを適用する曜日 (複数指定) + applicable_time_ranges=[{ "from": "12:00", "to": "23:59" }, { @@ -1026,36 +1162,38 @@ 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", "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=4097, # キャンペーンを適用する1会計内の商品個数の下限 + minimum_number_of_amount=3254, # キャンペーンを適用する1会計内の商品総額の下限 + minimum_number_for_combination_purchase=2828, # 複数種類の商品を同時購入するときの商品種別数の下限 + exist_in_each_product_groups=True, # 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + max_point_amount=2854, # キャンペーンによって付与されるポイントの上限 + max_total_point_amount=9723, # キャンペーンによって付与されるの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=6377474 # キャンペーン予算上限 +)) ``` ### Parameters -**`campaign_id`** - - +#### `campaign_id` キャンペーンIDです。 指定したIDのキャンペーンを更新します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -1063,13 +1201,16 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`name`** - +
+#### `name` キャンペーン名です。 ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 +
+スキーマ + ```json { "type": "string", @@ -1077,13 +1218,16 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`starts_at`** - +
+#### `starts_at` キャンペーン開始日時です。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -1091,13 +1235,16 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`ends_at`** - +
+#### `ends_at` キャンペーン終了日時です。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -1105,23 +1252,26 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`priority`** - +
+#### `priority` キャンペーンの適用優先度です。 優先度が大きいものから順に適用判定されていきます。 キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 +
+スキーマ + ```json { "type": "integer" } ``` -**`event`** - +
+#### `event` キャンペーンのトリガーとなるイベントの種類を指定します。 以下のいずれかを指定できます。 @@ -1133,6 +1283,9 @@ const response: Response = await client.send(new UpdateCampaign({ 3. external-transaction ポケペイ外の取引(現金決済など) +
+スキーマ + ```json { "type": "string", @@ -1144,11 +1297,14 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`description`** - +
+#### `description` キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 +
+スキーマ + ```json { "type": "string", @@ -1156,9 +1312,9 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`status`** - +
+#### `status` キャンペーン作成時の状態を指定します。デフォルトではenabledです。 以下のいずれかを指定できます。 @@ -1168,6 +1324,9 @@ const response: Response = await client.send(new UpdateCampaign({ 2. disabled 無効 +
+スキーマ + ```json { "type": "string", @@ -1178,12 +1337,15 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`point_expires_at`** - +
+#### `point_expires_at` キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -1191,12 +1353,15 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`point_expires_in_days`** - +
+#### `point_expires_in_days` キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "integer", @@ -1204,23 +1369,26 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`is_exclusive`** - +
+#### `is_exclusive` キャンペーンの重ね掛けを行うかどうかのフラグです。 これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。 falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`subject`** - +
+#### `subject` ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。 @@ -1233,6 +1401,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) 注意: event を topup にしたときはポイントの付与に対しても適用されます +
+スキーマ + ```json { "type": "string", @@ -1243,9 +1414,9 @@ all を指定すると決済額全体を対象にします (「ポイント」 } ``` -**`amount_based_point_rules`** - +
+#### `amount_based_point_rules` 金額をベースとしてポイント付与を行うルールを指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 @@ -1269,6 +1440,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し ] ``` +
+スキーマ + ```json { "type": "array", @@ -1278,9 +1452,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し } ``` -**`product_based_point_rules`** - +
+#### `product_based_point_rules` 商品情報をベースとしてポイント付与を行うルールを指定します。 ルールは商品ごとに設定可能で、ルールの配列として指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 @@ -1327,6 +1501,9 @@ event が payment か external-transaction の時のみ有効です。 ] ``` +
+スキーマ + ```json { "type": "array", @@ -1336,13 +1513,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`blacklisted_product_rules`** - +
+#### `blacklisted_product_rules` 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 除外対象の商品コード、または分類コードのパターンの配列として指定します。 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 +
+スキーマ + ```json { "type": "array", @@ -1352,13 +1532,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicable_days_of_week`** - +
+#### `applicable_days_of_week` キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) +
+スキーマ + ```json { "type": "array", @@ -1370,13 +1553,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicable_time_ranges`** - +
+#### `applicable_time_ranges` キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 +
+スキーマ + ```json { "type": "array", @@ -1386,12 +1572,35 @@ fromとtoは両方必要です。 } ``` -**`applicable_shop_ids`** - +
+#### `applicable_shop_ids` キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 +
+スキーマ + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +
+ +#### `blacklisted_shop_ids` +キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 +このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 +blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 + +
+スキーマ + ```json { "type": "array", @@ -1402,11 +1611,14 @@ fromとtoは両方必要です。 } ``` -**`minimum_number_of_products`** - +
+#### `minimum_number_of_products` このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -1414,11 +1626,14 @@ fromとtoは両方必要です。 } ``` -**`minimum_number_of_amount`** - +
+#### `minimum_number_of_amount` このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -1426,9 +1641,9 @@ fromとtoは両方必要です。 } ``` -**`minimum_number_for_combination_purchase`** - +
+#### `minimum_number_for_combination_purchase` 複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 @@ -1501,6 +1716,9 @@ fromとtoは両方必要です。 } ``` +
+スキーマ + ```json { "type": "integer", @@ -1508,9 +1726,9 @@ fromとtoは両方必要です。 } ``` -**`exist_in_each_product_groups`** - +
+#### `exist_in_each_product_groups` 複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 @@ -1591,19 +1809,25 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になりますが、付与値の上限が100ポイントになります。つまり100 + 200=300と計算されますが上限額の100ポイントが実際の付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600ですが上限額の100がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`max_point_amount`** - +
+#### `max_point_amount` キャンペーンによって付与される1取引当たりのポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、amount_based_point_rules や product_based_point_rules によって計算されるポイント付与値がmax_point_amountを越えている場合、max_point_amountの値がポイント付与値となり、越えていない場合はその値がポイント付与値となります。 +
+スキーマ + ```json { "type": "integer", @@ -1611,14 +1835,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`max_total_point_amount`** - +
+#### `max_total_point_amount` キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 +
+スキーマ + ```json { "type": "integer", @@ -1626,9 +1853,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`applicable_account_metadata`** - +
+#### `applicable_account_metadata` ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 @@ -1655,15 +1882,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`applicable_transaction_metadata`** - +
+#### `applicable_transaction_metadata` 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 @@ -1690,15 +1920,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`budget_caps_amount`** - +
+#### `budget_caps_amount` キャンペーンの予算上限を指定します。 キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 @@ -1706,6 +1939,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。 キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。 +
+スキーマ + ```json { "type": "integer", @@ -1714,6 +1950,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+ 成功したときは diff --git a/docs/cashtray.md b/docs/cashtray.md index d81b5ce..f75eddc 100644 --- a/docs/cashtray.md +++ b/docs/cashtray.md @@ -1,9 +1,172 @@ # Cashtray Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。 +店舗ユーザはCashtrayの状態を監視することができ、取引の成否やエラー事由を知ることができます。 Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。 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="money-only", # 支払い時の残高消費方式 + 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|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| +|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_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| +|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を作る @@ -14,25 +177,25 @@ 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 + 9380.0, # amount: 金額 + description="たい焼き(小倉)", # 取引履歴に表示する説明文 + expires_in=3400 # 失効時間(秒) +)) ``` ### Parameters -**`private_money_id`** - - +#### `private_money_id` 取引対象のマネーのIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -40,11 +203,14 @@ const response: Response = await client.send(new CreateCashtray({ } ``` -**`shop_id`** - +
+#### `shop_id` 店舗のユーザーIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -52,24 +218,30 @@ const response: Response = await client.send(new CreateCashtray({ } ``` -**`amount`** - +
+#### `amount` マネー額です(必須項目)。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。 アプリや管理画面などの取引履歴に表示されます。デフォルトでは空文字になります。 +
+スキーマ + ```json { "type": "string", @@ -77,11 +249,14 @@ Cashtrayを読み取ったときに作られる取引の説明文です(最大20 } ``` -**`expires_in`** - +
+#### `expires_in` Cashtrayが失効するまでの時間を秒単位で指定します(任意項目、デフォルト値は1800秒(30分))。 +
+スキーマ + ```json { "type": "integer", @@ -89,6 +264,8 @@ Cashtrayが失効するまでの時間を秒単位で指定します(任意項 } ``` +
+ 成功したときは @@ -114,20 +291,21 @@ 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 +)) ``` ### Parameters -**`cashtray_id`** - - +#### `cashtray_id` 無効化するCashtrayのIDです。 +
+スキーマ + ```json { "type": "string", @@ -135,6 +313,8 @@ const response: Response = await client.send(new CancelCashtray({ } ``` +
+ 成功したときは @@ -207,20 +387,21 @@ 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 +)) ``` ### Parameters -**`cashtray_id`** - - +#### `cashtray_id` 情報を取得するCashtrayのIDです。 +
+スキーマ + ```json { "type": "string", @@ -228,6 +409,8 @@ const response: Response = await client.send(new GetCashtray } ``` +
+ 成功したときは @@ -243,23 +426,24 @@ 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=2036.0, # 金額 + description="たい焼き(小倉)", # 取引履歴に表示する説明文 + expires_in=2806 # 失効時間(秒) +)) ``` ### Parameters -**`cashtray_id`** - - +#### `cashtray_id` 更新対象のCashtrayのIDです。 +
+スキーマ + ```json { "type": "string", @@ -267,24 +451,30 @@ const response: Response = await client.send(new UpdateCashtray({ } ``` -**`amount`** - +
+#### `amount` マネー額です(任意項目)。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。 アプリや管理画面などの取引履歴に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -292,11 +482,14 @@ Cashtrayを読み取ったときに作られる取引の説明文です(最大20 } ``` -**`expires_in`** - +
+#### `expires_in` Cashtrayが失効するまでの時間を秒で指定します(任意項目、デフォルト値は1800秒(30分))。 +
+スキーマ + ```json { "type": "integer", @@ -304,6 +497,8 @@ Cashtrayが失効するまでの時間を秒で指定します(任意項目、 } ``` +
+ 成功したときは diff --git a/docs/check.md b/docs/check.md index 408def1..776371f 100644 --- a/docs/check.md +++ b/docs/check.md @@ -5,35 +5,36 @@ `https://www-sandbox.pokepay.jp/checks/xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` -QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注意: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 - +QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) +上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 ## 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=7526, # ページ番号 + per_page=50, # 1ページの表示数 + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + organization_code="irDJBv", # 組織コード + expires_from="2021-03-02T06:27:25.000000Z", # 有効期限の期間によるフィルター(開始時点) + expires_to="2025-08-08T00:33:16.000000Z", # 有効期限の期間によるフィルター(終了時点) + created_from="2020-12-09T08:29:09.000000Z", # 作成日時の期間によるフィルター(開始時点) + created_to="2020-08-18T19:53:03.000000Z", # 作成日時の期間によるフィルター(終了時点) + issuer_shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 発行店舗ID + description="W", # チャージQRコードの説明文 + is_onetime=True, # ワンタイムのチャージQRコードかどうか + is_disabled=True # 無効化されたチャージQRコードかどうか +)) ``` ### Parameters -**`page`** - +#### `page` +
+スキーマ ```json { @@ -42,11 +43,14 @@ const response: Response = await client.send(new ListChecks({ } ``` -**`per_page`** - +
+#### `per_page` 1ページ当たり表示数です。デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -54,11 +58,13 @@ const response: Response = await client.send(new ListChecks({ } ``` -**`private_money_id`** - +
+#### `private_money_id` チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 +
+スキーマ ```json { @@ -67,12 +73,15 @@ const response: Response = await client.send(new ListChecks({ } ``` -**`organization_code`** - +
+#### `organization_code` チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -80,12 +89,14 @@ const response: Response = await client.send(new ListChecks({ } ``` -**`expires_from`** - +
+#### `expires_from` 有効期限の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -94,12 +105,14 @@ const response: Response = await client.send(new ListChecks({ } ``` -**`expires_to`** - +
+#### `expires_to` 有効期限の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -108,12 +121,14 @@ const response: Response = await client.send(new ListChecks({ } ``` -**`created_from`** - +
+#### `created_from` 作成日時の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -122,12 +137,14 @@ const response: Response = await client.send(new ListChecks({ } ``` -**`created_to`** - +
+#### `created_to` 作成日時の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -136,12 +153,14 @@ const response: Response = await client.send(new ListChecks({ } ``` -**`issuer_shop_id`** - +
+#### `issuer_shop_id` チャージQRコードを発行した店舗IDによってフィルターします。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -150,13 +169,15 @@ const response: Response = await client.send(new ListChecks({ } ``` -**`description`** - +
+#### `description` チャージQRコードの説明文(description)によってフィルターします。 部分一致(前方一致)したものを表示します。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -164,14 +185,16 @@ const response: Response = await client.send(new ListChecks({ } ``` -**`is_onetime`** - +
+#### `is_onetime` チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 `true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 未指定の場合はフィルターしません。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -179,14 +202,16 @@ const response: Response = await client.send(new ListChecks({ } ``` -**`is_disabled`** - +
+#### `is_disabled` チャージQRコードが無効化されているかどうかでフィルターします。 `true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 未指定の場合はフィルターしません。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -194,6 +219,8 @@ const response: Response = await client.send(new ListChecks({ } ``` +
+ 成功したときは @@ -205,7 +232,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 +243,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=3312.0, # 付与マネー額 + point_amount=6886.0, # 付与ポイント額 + description="test check", # 説明文(アプリ上で取引の説明文として表示される) + is_onetime=True, # ワンタイムかどうかのフラグ + usage_limit=8258, # ワンタイムでない場合の最大読み取り回数 + expires_at="2020-03-13T08:28:49.000000Z", # チャージQRコード自体の失効日時 + point_expires_at="2023-10-29T22:56:27.000000Z", # チャージQRコードによって付与されるポイント残高の有効期限 + point_expires_in_days=60, # チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + bear_point_account="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # ポイント額を負担する店舗のウォレットID +)) ``` @@ -236,12 +264,12 @@ const response: Response = await client.send(new CreateCheck({ ### Parameters -**`money_amount`** - - +#### `money_amount` チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 +
+スキーマ ```json { @@ -251,12 +279,14 @@ const response: Response = await client.send(new CreateCheck({ } ``` -**`point_amount`** - +
+#### `point_amount` チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 +
+スキーマ ```json { @@ -266,9 +296,12 @@ const response: Response = await client.send(new CreateCheck({ } ``` -**`account_id`** - +
+#### `account_id` + +
+スキーマ ```json { @@ -277,9 +310,12 @@ const response: Response = await client.send(new CreateCheck({ } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -288,13 +324,15 @@ const response: Response = await client.send(new CreateCheck({ } ``` -**`is_onetime`** - +
+#### `is_onetime` チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 +
+スキーマ ```json { @@ -302,14 +340,16 @@ const response: Response = await client.send(new CreateCheck({ } ``` -**`usage_limit`** - +
+#### `usage_limit` 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 デフォルト値はNULLです。 ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 +
+スキーマ ```json { @@ -317,13 +357,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`expires_at`** - +
+#### `expires_at` チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 +
+スキーマ ```json { @@ -332,13 +374,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_at`** - +
+#### `point_expires_at` チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 +
+スキーマ ```json { @@ -347,13 +391,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_in_days`** - +
+#### `point_expires_in_days` チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 +
+スキーマ ```json { @@ -362,12 +408,14 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`bear_point_account`** - +
+#### `bear_point_account` ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 +
+スキーマ ```json { @@ -376,6 +424,8 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` +
+ 成功したときは @@ -387,16 +437,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,20 +456,21 @@ 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 +)) ``` ### Parameters -**`check_id`** - - +#### `check_id` 表示対象のチャージQRコードのIDです。 +
+スキーマ + ```json { "type": "string", @@ -427,6 +478,8 @@ const response: Response = await client.send(new GetCheck({ } ``` +
+ 成功したときは @@ -441,30 +494,31 @@ 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=3272.0, # 付与マネー額 + point_amount=6917.0, # 付与ポイント額 + description="test check", # チャージQRコードの説明文 + is_onetime=True, # ワンタイムかどうかのフラグ + usage_limit=6922, # ワンタイムでない場合の最大読み取り回数 + expires_at="2026-04-13T22:51:33.000000Z", # チャージQRコード自体の失効日時 + point_expires_at="2022-12-31T07:37:03.000000Z", # チャージQRコードによって付与されるポイント残高の有効期限 + point_expires_in_days=60, # チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + bear_point_account="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント額を負担する店舗のウォレットID + is_disabled=False # 無効化されているかどうかのフラグ +)) ``` ### Parameters -**`check_id`** - - +#### `check_id` 更新対象のチャージQRコードのIDです。 +
+スキーマ + ```json { "type": "string", @@ -472,12 +526,14 @@ const response: Response = await client.send(new UpdateCheck({ } ``` -**`money_amount`** - +
+#### `money_amount` チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 +
+スキーマ ```json { @@ -487,12 +543,14 @@ const response: Response = await client.send(new UpdateCheck({ } ``` -**`point_amount`** - +
+#### `point_amount` チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 +
+スキーマ ```json { @@ -502,12 +560,14 @@ const response: Response = await client.send(new UpdateCheck({ } ``` -**`description`** - +
+#### `description` チャージQRコードの説明文です。 チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 +
+スキーマ ```json { @@ -516,13 +576,15 @@ const response: Response = await client.send(new UpdateCheck({ } ``` -**`is_onetime`** - +
+#### `is_onetime` チャージQRコードが一度の読み取りで失効するときに`true`にします。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 +
+スキーマ ```json { @@ -530,13 +592,15 @@ const response: Response = await client.send(new UpdateCheck({ } ``` -**`usage_limit`** - +
+#### `usage_limit` 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 +
+スキーマ ```json { @@ -544,13 +608,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`expires_at`** - +
+#### `expires_at` チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 +
+スキーマ ```json { @@ -559,13 +625,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_at`** - +
+#### `point_expires_at` チャージQRコードによって付与されるポイント残高の有効起源を指定します。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 +
+スキーマ ```json { @@ -574,14 +642,16 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_in_days`** - +
+#### `point_expires_in_days` チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 `point_expires_at`と`point_expires_in_days`が両方NULLに設定されている場合は、マネーに設定されている残高の有効期限と同じになります。 +
+スキーマ ```json { @@ -590,11 +660,13 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`bear_point_account`** - +
+#### `bear_point_account` ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 +
+スキーマ ```json { @@ -603,12 +675,14 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`is_disabled`** - +
+#### `is_disabled` チャージQRコードを無効化するときに`true`にします。 `false`の場合は無効化されているチャージQRコードを再有効化します。 +
+スキーマ ```json { @@ -616,6 +690,8 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` +
+ 成功したときは @@ -633,25 +709,25 @@ 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 +)) ``` ### Parameters -**`check_id`** - - +#### `check_id` チャージ用QRコードのIDです。 QRコード生成時に送金元店舗のウォレット情報や、送金額などが登録されています。 +
+スキーマ + ```json { "type": "string", @@ -659,13 +735,16 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 送金先のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -673,14 +752,18 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +
+スキーマ ```json { @@ -689,6 +772,8 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な } ``` +
+ 成功したときは @@ -698,13 +783,17 @@ 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|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |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| @@ -712,8 +801,13 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -724,7 +818,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 +826,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..bacdd76 100644 --- a/docs/coupon.md +++ b/docs/coupon.md @@ -1,35 +1,38 @@ # Coupon -Couponは支払い時に指定し、支払い処理の前にCouponに指定の方法で値引き処理を行います。 -Couponは特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 +割引クーポンを表すデータです。 +クーポンをユーザが明示的に利用することによって支払い決済時の割引(固定金額 or 割引率)が適用されます。 +クーポンは支払い時に指定し、支払い処理の前にクーポンに指定の方法で値引き処理を行います。 +クーポン原資を負担する発行店舗を設定したり、配布先を指定することも可能です。 +また、特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 ## 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="2yFQ", # クーポンID + coupon_name="iifPwyEPk", # クーポン名 + issued_shop_name="jwK5U", # 発行店舗名 + available_shop_name="mBamQcU", # 利用可能店舗名 + available_from="2020-02-15T05:53:58.000000Z", # 利用可能期間 (開始日時) + available_to="2020-06-28T18:38:31.000000Z", # 利用可能期間 (終了日時) + page=1, # ページ番号 + per_page=50 # 1ページ分の取得数 +)) ``` ### Parameters -**`private_money_id`** - - +#### `private_money_id` 対象クーポンのマネーIDです(必須項目)。 存在しないマネーIDを指定した場合はprivate_money_not_foundエラー(422)が返ります。 +
+スキーマ ```json { @@ -38,12 +41,14 @@ const response: Response = await client.send(new ListCoupons({ } ``` -**`coupon_id`** - +
+#### `coupon_id` 指定されたクーポンIDで結果をフィルターします。 部分一致(前方一致)します。 +
+スキーマ ```json { @@ -51,11 +56,13 @@ const response: Response = await client.send(new ListCoupons({ } ``` -**`coupon_name`** - +
+#### `coupon_name` 指定されたクーポン名で結果をフィルターします。 +
+スキーマ ```json { @@ -63,11 +70,13 @@ const response: Response = await client.send(new ListCoupons({ } ``` -**`issued_shop_name`** - +
+#### `issued_shop_name` 指定された発行店舗で結果をフィルターします。 +
+スキーマ ```json { @@ -75,11 +84,13 @@ const response: Response = await client.send(new ListCoupons({ } ``` -**`available_shop_name`** - +
+#### `available_shop_name` 指定された利用可能店舗で結果をフィルターします。 +
+スキーマ ```json { @@ -87,11 +98,13 @@ const response: Response = await client.send(new ListCoupons({ } ``` -**`available_from`** - +
+#### `available_from` 利用可能期間でフィルターします。フィルターの開始日時をISO8601形式で指定します。 +
+スキーマ ```json { @@ -100,11 +113,13 @@ const response: Response = await client.send(new ListCoupons({ } ``` -**`available_to`** - +
+#### `available_to` 利用可能期間でフィルターします。フィルターの終了日時をISO8601形式で指定します。 +
+スキーマ ```json { @@ -113,11 +128,14 @@ const response: Response = await client.send(new ListCoupons({ } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -125,11 +143,14 @@ const response: Response = await client.send(new ListCoupons({ } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -137,6 +158,8 @@ const response: Response = await client.send(new ListCoupons({ } ``` +
+ 成功したときは @@ -148,7 +171,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,38 +182,40 @@ 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", + "HD25XYGaGoRmlkWpVKSQYACWhdJgT5oXIAxp1c5Q2vG7By91KC2xkwbMvROWfUAhh6XnZz0yJYgRGAM6oTzljbZYS9b6qmrSFaDiVxdn1z0TuA7dLQ8Gnuu", + "2025-12-14T11:18:56.000000Z", + "2023-03-30T21:53:50.000000Z", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # issued_shop_id: 発行元の店舗ID + description="3um0ZKYlqHYAPfacx4ba4pxXiFCicQd3QQrdtpp5IlW8KnTaroT8w3801ZxeZpTa0FFkkUFLVCDKp9TvCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7EhkzGk22yYle2ZOPXJOiEYcNwwBKhoxCdqw8SDS6L7O6ohLm8HBuYz7E9ZuYBAHz0vH45u4SHdXpfYeqMtcfd8wxcygIW1kAzyAHjkW0eFslSf8NaBTyV6GBT8tDHI", + discount_amount=1681, + discount_percentage=3214.0, + discount_upper_limit=4704, + display_starts_at="2025-01-31T13:36:35.000000Z", # クーポンの掲載期間(開始日時) + display_ends_at="2020-09-21T03:39:30.000000Z", # クーポンの掲載期間(終了日時) + is_disabled=False, # 無効化フラグ + is_hidden=True, # クーポン一覧に掲載されるかどうか + is_public=False, # アプリ配信なしで受け取れるかどうか + code="k", # クーポン受け取りコード + usage_limit=7567, # ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount=1669, # クーポン適用可能な最小取引額 + is_shop_specified=True, # 特定店舗限定のクーポンかどうか + available_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 利用可能店舗リスト + storage_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ストレージID + num_recipients_cap=4365 # クーポンを受け取ることができるユーザ数上限 +)) ``` `is_shop_specified`と`available_shop_ids`は同時に指定する必要があります。 ### Parameters -**`private_money_id`** - +#### `private_money_id` +
+スキーマ ```json { @@ -199,9 +224,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`name`** - +
+#### `name` + +
+スキーマ ```json { @@ -210,9 +238,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -221,9 +252,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`discount_amount`** - +
+#### `discount_amount` + +
+スキーマ ```json { @@ -232,9 +266,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`discount_percentage`** - +
+ +#### `discount_percentage` +
+スキーマ ```json { @@ -243,9 +280,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`discount_upper_limit`** - +
+#### `discount_upper_limit` + +
+スキーマ ```json { @@ -254,9 +294,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`starts_at`** - +
+ +#### `starts_at` +
+スキーマ ```json { @@ -265,9 +308,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`ends_at`** - +
+#### `ends_at` + +
+スキーマ ```json { @@ -276,9 +322,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`display_starts_at`** - +
+ +#### `display_starts_at` +
+スキーマ ```json { @@ -287,9 +336,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`display_ends_at`** - +
+#### `display_ends_at` + +
+スキーマ ```json { @@ -298,9 +350,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`is_disabled`** - +
+ +#### `is_disabled` +
+スキーマ ```json { @@ -308,12 +363,14 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`is_hidden`** - +
+#### `is_hidden` アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 +
+スキーマ ```json { @@ -321,9 +378,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`is_public`** - +
+#### `is_public` + +
+スキーマ ```json { @@ -331,9 +391,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`code`** - +
+ +#### `code` +
+スキーマ ```json { @@ -341,9 +404,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`usage_limit`** - +
+#### `usage_limit` + +
+スキーマ ```json { @@ -351,9 +417,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`min_amount`** - +
+ +#### `min_amount` +
+スキーマ ```json { @@ -361,9 +430,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`issued_shop_id`** - +
+#### `issued_shop_id` + +
+スキーマ ```json { @@ -372,9 +444,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`is_shop_specified`** - +
+ +#### `is_shop_specified` +
+スキーマ ```json { @@ -382,9 +457,12 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`available_shop_ids`** - +
+#### `available_shop_ids` + +
+スキーマ ```json { @@ -396,11 +474,14 @@ const response: Response = await client.send(new CreateCoupon({ } ``` -**`storage_id`** - +
+#### `storage_id` Storage APIでアップロードしたクーポン画像のStorage IDを指定します +
+スキーマ + ```json { "type": "string", @@ -408,6 +489,22 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 } ``` +
+ +#### `num_recipients_cap` + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ 成功したときは @@ -421,7 +518,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,22 +530,23 @@ 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 +)) ``` ### Parameters -**`coupon_id`** - - +#### `coupon_id` 取得するクーポンのIDです。 UUIDv4フォーマットである必要があり、フォーマットが異なる場合は InvalidParametersエラー(400)が返ります。 指定したIDのクーポンが存在しない場合はCouponNotFoundエラー(422)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -456,6 +554,8 @@ UUIDv4フォーマットである必要があり、フォーマットが異な } ``` +
+ 成功したときは @@ -471,28 +571,29 @@ 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="iHOOwl5xIQiAP4UplfuFUQK5yc0JqyE", + description="bk4xV1ElwOVpwOgCs3REJ", + discount_amount=6488, + discount_percentage=3692.0, + discount_upper_limit=6406, + starts_at="2023-07-28T20:17:52.000000Z", + ends_at="2023-10-23T16:37:13.000000Z", + display_starts_at="2020-12-27T10:14:09.000000Z", # クーポンの掲載期間(開始日時) + display_ends_at="2021-03-11T06:18:48.000000Z", # クーポンの掲載期間(終了日時) + is_disabled=False, # 無効化フラグ + is_hidden=True, # クーポン一覧に掲載されるかどうか + is_public=False, # アプリ配信なしで受け取れるかどうか + code="ntlxm", # クーポン受け取りコード + usage_limit=2578, # ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount=4688, # クーポン適用可能な最小取引額 + is_shop_specified=False, # 特定店舗限定のクーポンかどうか + available_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 利用可能店舗リスト + storage_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ストレージID + num_recipients_cap=259 # クーポンを受け取ることができるユーザ数上限 +)) ``` @@ -501,9 +602,10 @@ const response: Response = await client.send(new UpdateCoupon({ ### Parameters -**`coupon_id`** - +#### `coupon_id` +
+スキーマ ```json { @@ -512,9 +614,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`name`** - +
+#### `name` + +
+スキーマ ```json { @@ -523,9 +628,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -534,9 +642,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`discount_amount`** - +
+#### `discount_amount` + +
+スキーマ ```json { @@ -545,9 +656,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`discount_percentage`** - +
+ +#### `discount_percentage` +
+スキーマ ```json { @@ -556,9 +670,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`discount_upper_limit`** - +
+#### `discount_upper_limit` + +
+スキーマ ```json { @@ -567,9 +684,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`starts_at`** - +
+ +#### `starts_at` +
+スキーマ ```json { @@ -578,9 +698,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`ends_at`** - +
+#### `ends_at` + +
+スキーマ ```json { @@ -589,9 +712,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`display_starts_at`** - +
+ +#### `display_starts_at` +
+スキーマ ```json { @@ -600,9 +726,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`display_ends_at`** - +
+#### `display_ends_at` + +
+スキーマ ```json { @@ -611,9 +740,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`is_disabled`** - +
+ +#### `is_disabled` +
+スキーマ ```json { @@ -621,12 +753,14 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`is_hidden`** - +
+#### `is_hidden` アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 +
+スキーマ ```json { @@ -634,9 +768,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`is_public`** - +
+#### `is_public` + +
+スキーマ ```json { @@ -644,9 +781,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`code`** - +
+ +#### `code` +
+スキーマ ```json { @@ -654,9 +794,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`usage_limit`** - +
+#### `usage_limit` + +
+スキーマ ```json { @@ -664,9 +807,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`min_amount`** - +
+ +#### `min_amount` +
+スキーマ ```json { @@ -674,9 +820,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`is_shop_specified`** - +
+#### `is_shop_specified` + +
+スキーマ ```json { @@ -684,9 +833,12 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`available_shop_ids`** - +
+ +#### `available_shop_ids` +
+スキーマ ```json { @@ -698,11 +850,14 @@ const response: Response = await client.send(new UpdateCoupon({ } ``` -**`storage_id`** - +
+#### `storage_id` Storage APIでアップロードしたクーポン画像のStorage IDを指定します +
+スキーマ + ```json { "type": "string", @@ -710,6 +865,22 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 } ``` +
+ +#### `num_recipients_cap` + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ 成功したときは diff --git a/docs/credit_session.md b/docs/credit_session.md new file mode 100644 index 0000000..6c5c730 --- /dev/null +++ b/docs/credit_session.md @@ -0,0 +1,284 @@ +# CreditSession +クレジットカード決済セッションを管理するためのAPIです。 +Veritrans(決済ゲートウェイ)との連携でクレジットカード決済を実現します。 +セッションには有効期限があり、セッション作成後に取引の実行や売上確定(キャプチャ)を行います。 +3Dセキュア認証にも対応しています。 + + + +## PostCreditSession: Create credit session + +```PYTHON +response = client.send(pp.PostCreditSession( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "2023-08-09T07:09:46.000000Z", # expires_at: セッション有効期限 + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # 冪等性キー +)) +``` + + + +### Parameters +#### `customer_id` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `private_money_id` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `card_id` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `expires_at` +セッション有効期限 +制約: リクエスト時刻から30日以内 +例: "2024-01-15T10:30:00+00:00" + +
+スキーマ + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ +#### `request_id` +冪等性キー +同一のrequest_idを持つリクエストは冪等に処理されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CreditSession](./responses.md#credit-session) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + + +## CreateCreditSessionTransaction: Create transaction with credit session +クレジットセッションを使用して取引を作成します。 +セッションIDと取引金額を指定します。 + +```PYTHON +response = client.send(pp.CreateCreditSessionTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # session_id: クレジットセッションID + 7490.0, # amount: 取引金額 + shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID + description="0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2IgQjODYIDOJbPEulQIvNSkQALktsxpQNr6y6a28m0nRuldHpSuEUpdPie9qQ2GFfC0at9jn8DwInc5YWbNc2E2NkkIcBn5byBGxSlhAbqrppUqGdxMolEMce2oIWkzh6", # 取引説明 + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # 冪等性キー +)) +``` + + + +### Parameters +#### `session_id` +クレジットセッションID + +事前に作成されたクレジットセッションのIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `amount` +取引金額 +支払い金額を指定します。 + +
+スキーマ + +```json +{ + "type": "number", + "minimum": 0 +} +``` + +
+ +#### `shop_id` +店舗ID +支払いを行う店舗のIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `description` +取引説明 +取引の説明や備考を指定します。省略時は空文字列になります。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +
+ +#### `request_id` +冪等性キー +同一のrequest_idを持つリクエストは冪等に処理されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CreditSessionTransactionResult](./responses.md#credit-session-transaction-result) +を返します + + + +--- + + + +## CaptureCreditSession: Capture credit session +クレジットセッションの売上確定(キャプチャ)を行います。 +セッション内で行われた支払いの合計金額をクレジットカードに請求します。 + +```PYTHON +response = client.send(pp.CaptureCreditSession( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # session_id: クレジットセッションID + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # 冪等性キー +)) +``` + + + +### Parameters +#### `session_id` +クレジットセッションID + +キャプチャ対象のクレジットセッションのIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `request_id` +冪等性キー +同一のrequest_idを持つリクエストは冪等に処理されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CapturedCreditSession](./responses.md#captured-credit-session) +を返します + + + +--- + + + diff --git a/docs/customer.md b/docs/customer.md index e633ccc..4847b20 100644 --- a/docs/customer.md +++ b/docs/customer.md @@ -1,26 +1,33 @@ # Customer +エンドユーザー(顧客)のウォレット情報を管理するためのAPIです。 +エンドユーザーのウォレット(アカウント)の作成・更新・取得を行います。 +ウォレットにはマネー残高(有償バリュー)とポイント残高(無償バリュー)があり、 +有効期限別に金額が管理されています。 +また、外部システム連携用のexternal_idやメタデータを設定することも可能です。 + ## 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=True # 返金有無 +)) ``` ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 指定したウォレットIDのウォレットを退会します。 +
+スキーマ + ```json { "type": "string", @@ -28,17 +35,22 @@ const response: Response = await client.send(new DeleteAccount({ } ``` -**`cashback`** - +
+#### `cashback` 退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -54,22 +66,23 @@ 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 +)) ``` ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 フィルターとして使われ、指定したウォレットIDのウォレットを取得します。 +
+スキーマ + ```json { "type": "string", @@ -77,6 +90,8 @@ const response: Response = await client.send(new GetAccount({ } ``` +
+ 成功したときは @@ -98,25 +113,26 @@ 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=False, # ウォレットが凍結されているかどうか + status="suspended", # ウォレット状態 + can_transfer_topup=False # チャージ可能かどうか +)) ``` ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 指定したウォレットIDのウォレットの状態を更新します。 +
+スキーマ + ```json { "type": "string", @@ -124,22 +140,28 @@ const response: Response = await client.send(new UpdateAccount({ } ``` -**`is_suspended`** - +
+#### `is_suspended` ウォレットの凍結状態です。真にするとウォレットが凍結され、そのウォレットでは新規取引ができなくなります。偽にすると凍結解除されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`status`** - +
+#### `status` ウォレットの状態です。 +
+スキーマ + ```json { "type": "string", @@ -151,17 +173,22 @@ const response: Response = await client.send(new UpdateAccount({ } ``` -**`can_transfer_topup`** - +
+#### `can_transfer_topup` 店舗ユーザーがエンドユーザーにチャージ可能かどうかです。真にするとチャージ可能となり、偽にするとチャージ不可能となります。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -177,27 +204,28 @@ 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=7757, # ページ番号 + per_page=8041, # 1ページ分の取引数 + expires_at_from="2022-05-23T11:14:41.000000Z", # 有効期限の期間によるフィルター(開始時点) + expires_at_to="2025-11-09T19:17:19.000000Z", # 有効期限の期間によるフィルター(終了時点) + direction="desc" # 有効期限によるソート順序 +)) ``` ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。 +
+スキーマ + ```json { "type": "string", @@ -205,11 +233,14 @@ const response: Response = await client.send(new ListAc } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -217,11 +248,14 @@ const response: Response = await client.send(new ListAc } ``` -**`per_page`** - +
+#### `per_page` 1ページ分のウォレット残高数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -229,11 +263,14 @@ const response: Response = await client.send(new ListAc } ``` -**`expires_at_from`** - +
+#### `expires_at_from` 有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -241,11 +278,14 @@ const response: Response = await client.send(new ListAc } ``` -**`expires_at_to`** - +
+#### `expires_at_to` 有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -253,11 +293,14 @@ const response: Response = await client.send(new ListAc } ``` -**`direction`** - +
+#### `direction` 有効期限によるソートの順序を指定します。デフォルト値はasc (昇順)です。 +
+スキーマ + ```json { "type": "string", @@ -268,6 +311,8 @@ const response: Response = await client.send(new ListAc } ``` +
+ 成功したときは @@ -283,27 +328,28 @@ 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=3538, # ページ番号 + per_page=5791, # 1ページ分の取引数 + expires_at_from="2024-07-16T11:03:21.000000Z", # 有効期限の期間によるフィルター(開始時点) + expires_at_to="2026-02-12T11:52:05.000000Z", # 有効期限の期間によるフィルター(終了時点) + direction="asc" # 有効期限によるソート順序 +)) ``` ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。 +
+スキーマ + ```json { "type": "string", @@ -311,11 +357,14 @@ const response: Response = await client.send(new ListAc } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -323,11 +372,14 @@ const response: Response = await client.send(new ListAc } ``` -**`per_page`** - +
+#### `per_page` 1ページ分のウォレット残高数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -335,11 +387,14 @@ const response: Response = await client.send(new ListAc } ``` -**`expires_at_from`** - +
+#### `expires_at_from` 有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -347,11 +402,14 @@ const response: Response = await client.send(new ListAc } ``` -**`expires_at_to`** - +
+#### `expires_at_to` 有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -359,11 +417,14 @@ const response: Response = await client.send(new ListAc } ``` -**`direction`** - +
+#### `direction` 有効期限によるソートの順序を指定します。デフォルト値はdesc (降順)です。 +
+スキーマ + ```json { "type": "string", @@ -374,6 +435,8 @@ const response: Response = await client.send(new ListAc } ``` +
+ 成功したときは @@ -389,26 +452,27 @@ 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="oyNLKN2h7BNq3rRMob2yqEgXsKX0DNjA5LloLW2ZGwTADg0EGo2tY0BvAArU4c3Hcr3rYtMZs1YhEQlphw1DkmThPoIdPA7X1r8JTPyIk7mw82VAIRkHcNMgqN77FQwuiGtQW4pnFSkfz0ZAYuHKErS89ga8rAwXpAiqwTxt1HL4wWzmkMDA4SVfWD13Zj3L9DQPYajb0tVdWEdtL2ujHbA770c9iXi2Q1VWdznJovLhT0BrHH", # アカウント名 + external_id="3tEdBOJZocfpIFBg2EP1", # 外部ID + metadata="{\"key1\":\"foo\",\"key2\":\"bar\"}" # ウォレットに付加するメタデータ +)) ``` ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 指定したウォレットIDのウォレットの状態を更新します。 +
+スキーマ + ```json { "type": "string", @@ -416,11 +480,14 @@ const response: Response = await client.send(new UpdateCustomer } ``` -**`status`** - +
+#### `status` ウォレットの状態です。 +
+スキーマ + ```json { "type": "string", @@ -432,11 +499,14 @@ const response: Response = await client.send(new UpdateCustomer } ``` -**`account_name`** - +
+#### `account_name` 変更するウォレット名です。 +
+スキーマ + ```json { "type": "string", @@ -444,11 +514,14 @@ const response: Response = await client.send(new UpdateCustomer } ``` -**`external_id`** - +
+#### `external_id` 変更する外部IDです。 +
+スキーマ + ```json { "type": "string", @@ -456,9 +529,9 @@ const response: Response = await client.send(new UpdateCustomer } ``` -**`metadata`** - +
+#### `metadata` ウォレットに付加するメタデータをJSON文字列で指定します。 指定できるJSON文字列には以下のような制約があります。 - フラットな構造のJSONを文字列化したものであること。 @@ -476,6 +549,9 @@ const response: Response = await client.send(new UpdateCustomer このときkey1はfooからbazに更新され、key2に対するデータは消去されます。 +
+スキーマ + ```json { "type": "string", @@ -483,6 +559,8 @@ const response: Response = await client.send(new UpdateCustomer } ``` +
+ 成功したときは @@ -498,31 +576,32 @@ 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=334, # ページ番号 + per_page=1905, # 1ページ分のウォレット数 + created_at_from="2020-04-02T00:12:42.000000Z", # ウォレット作成日によるフィルター(開始時点) + created_at_to="2024-10-15T22:00:31.000000Z", # ウォレット作成日によるフィルター(終了時点) + is_suspended=False, # ウォレットが凍結状態かどうかでフィルターする + status="pre-closed", # ウォレット状態 + external_id="l", # 外部ID + tel="020-8428820", # エンドユーザーの電話番号 + email="IYeH1mIjK9@1Bov.com" # エンドユーザーのメールアドレス +)) ``` ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 一覧するウォレットのマネーを指定します。このパラメータは必須です。 +
+スキーマ + ```json { "type": "string", @@ -530,11 +609,14 @@ const response: Response = await client.send(new GetC } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -542,11 +624,14 @@ const response: Response = await client.send(new GetC } ``` -**`per_page`** - +
+#### `per_page` 1ページ分のウォレット数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -554,11 +639,14 @@ const response: Response = await client.send(new GetC } ``` -**`created_at_from`** - +
+#### `created_at_from` ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -566,11 +654,14 @@ const response: Response = await client.send(new GetC } ``` -**`created_at_to`** - +
+#### `created_at_to` ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -578,22 +669,28 @@ const response: Response = await client.send(new GetC } ``` -**`is_suspended`** - +
+#### `is_suspended` このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`status`** - +
+#### `status` このパラメータが指定されている場合、ウォレットの状態で結果がフィルターされます。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -605,11 +702,14 @@ const response: Response = await client.send(new GetC } ``` -**`external_id`** - +
+#### `external_id` 外部IDでのフィルタリングです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -617,11 +717,14 @@ const response: Response = await client.send(new GetC } ``` -**`tel`** - +
+#### `tel` エンドユーザーの電話番号でのフィルタリングです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -629,11 +732,14 @@ const response: Response = await client.send(new GetC } ``` -**`email`** - +
+#### `email` エンドユーザーのメールアドレスでのフィルタリングです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -641,6 +747,8 @@ const response: Response = await client.send(new GetC } ``` +
+ 成功したときは @@ -651,7 +759,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,25 +773,26 @@ 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="Niyan2Rg9xE" # 外部ID +)) ``` ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 これによって作成するウォレットのマネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -691,11 +800,14 @@ const response: Response = await client.send(new CreateCustomer } ``` -**`user_name`** - +
+#### `user_name` ウォレットと共に作成するユーザ名です。省略した場合は空文字となります。 +
+スキーマ + ```json { "type": "string", @@ -703,11 +815,14 @@ const response: Response = await client.send(new CreateCustomer } ``` -**`account_name`** - +
+#### `account_name` 作成するウォレット名です。省略した場合は空文字となります。 +
+スキーマ + ```json { "type": "string", @@ -715,11 +830,14 @@ const response: Response = await client.send(new CreateCustomer } ``` -**`external_id`** - +
+#### `external_id` PAPIクライアントシステムから利用するPokepayユーザーのIDです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -727,6 +845,8 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで } ``` +
+ 成功したときは @@ -737,8 +857,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,27 +874,28 @@ 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=8702, # ページ番号 + per_page=6406, # 1ページ分のウォレット数 + created_at_from="2022-11-11T06:38:53.000000Z", # ウォレット作成日によるフィルター(開始時点) + created_at_to="2025-09-29T21:40:55.000000Z", # ウォレット作成日によるフィルター(終了時点) + is_suspended=False # ウォレットが凍結状態かどうかでフィルターする +)) ``` ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 一覧するウォレットのマネーを指定します。このパラメータは必須です。 +
+スキーマ + ```json { "type": "string", @@ -782,11 +903,14 @@ const response: Response = await client.send(new GetS } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -794,11 +918,14 @@ const response: Response = await client.send(new GetS } ``` -**`per_page`** - +
+#### `per_page` 1ページ分のウォレット数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -806,11 +933,14 @@ const response: Response = await client.send(new GetS } ``` -**`created_at_from`** - +
+#### `created_at_from` ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -818,11 +948,14 @@ const response: Response = await client.send(new GetS } ``` -**`created_at_to`** - +
+#### `created_at_to` ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -830,17 +963,22 @@ const response: Response = await client.send(new GetS } ``` -**`is_suspended`** - +
+#### `is_suspended` このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -851,7 +989,81 @@ 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| + + + +--- + + + +## GetCustomerCards: エンドユーザーのクレジットカード一覧を取得する +エンドユーザーのクレジットカード一覧を取得します。 +3D Secure認証済みのカードのみが返されます。 +idはcredit-sessions作成時に使用できます。 + +```PYTHON +response = client.send(pp.GetCustomerCards( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーID + page=5078, # ページ番号 + per_page=5 # 1ページ分の要素数 +)) +``` + + + +### Parameters +#### `customer_id` +エンドユーザーのIDです。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `page` +取得したいページ番号です。デフォルト値は1です。 + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ +#### `per_page` +1ページ当たりの要素数です。デフォルト値は30です。 + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 100 +} +``` + +
+ + + +成功したときは +[PaginatedUserCards](./responses.md#paginated-user-cards) +を返します @@ -862,29 +1074,30 @@ 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="topup", # 取引種別 + is_modified=False, # キャンセル済みかどうか + start="2020-07-31T17:05:34.000000Z", # 開始日時 + to="2023-05-17T11:38:58.000000Z", # 終了日時 + page=1, # ページ番号 + per_page=50 # 1ページ分の取引数 +)) ``` ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -892,13 +1105,16 @@ const response: Response = await client.send(new ListCusto } ``` -**`sender_customer_id`** - +
+#### `sender_customer_id` 送金ユーザーIDです。 フィルターとして使われ、指定された送金ユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -906,13 +1122,16 @@ const response: Response = await client.send(new ListCusto } ``` -**`receiver_customer_id`** - +
+#### `receiver_customer_id` 受取ユーザーIDです。 フィルターとして使われ、指定された受取ユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -920,9 +1139,9 @@ const response: Response = await client.send(new ListCusto } ``` -**`type`** - +
+#### `type` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -940,6 +1159,9 @@ const response: Response = await client.send(new ListCusto 6. expire ウォレット退会時失効 +
+スキーマ + ```json { "type": "string", @@ -954,28 +1176,34 @@ const response: Response = await client.send(new ListCusto } ``` -**`is_modified`** - +
+#### `is_modified` キャンセル済みかどうかを判定するフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 falseを指定するとキャンセルされていない取引のみ一覧に表示されます 何も指定しなければキャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`from`** - +
+#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -983,13 +1211,16 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -997,11 +1228,14 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -1009,11 +1243,14 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -1021,6 +1258,8 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` +
+ 成功したときは @@ -1032,7 +1271,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/error-response.csv b/docs/error-response.csv index 990a441..07cf08e 100644 --- a/docs/error-response.csv +++ b/docs/error-response.csv @@ -1,20 +1,34 @@ method,path,status_code,type,ja,en +GET,/ping,418,,, +POST,/sentry-notification-test,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission 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,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,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 @@ -22,8 +36,14 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,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,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -34,7 +54,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 @@ -45,14 +65,17 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,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 +91,14 @@ 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,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,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 @@ -78,8 +106,13 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On ,,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,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -96,17 +129,24 @@ 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,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,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 @@ -114,8 +154,13 @@ POST,/transactions/topup/check,400,invalid_parameters,"項目が無効です",In ,,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,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -126,7 +171,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 +179,64 @@ 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,customer_account_not_found,,The customer account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,account_suspended,"アカウントは停止されています",The account is suspended +,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts +,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed +,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user +,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated +,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,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 +,,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,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. +,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. +,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. +,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. +,,422,coupon_not_sent,"このウォレットに対して配信されていないクーポンです。",This coupon is not sent to this account yet. +,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. +,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. +,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,503,temporarily_unavailable,,Service Unavailable +POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,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,8 +244,13 @@ 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,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -159,8 +260,6 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,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 @@ -168,12 +267,25 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency -,,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,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 +,,503,temporarily_unavailable,,Service Unavailable +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,bill_not_found,"支払いQRコードが見つかりません",Bill not found +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,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 @@ -181,8 +293,13 @@ POST,/transactions/payment,400,invalid_parameters,"項目が無効です",Invali ,,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,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -192,6 +309,8 @@ POST,/transactions/payment,400,invalid_parameters,"項目が無効です",Invali ,,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 @@ -199,17 +318,21 @@ 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,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,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,400,invalid_parameters,"項目が無効です",Invalid parameters -,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled +POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found -,,422,private_money_not_found,,Private money not found -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,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 @@ -217,8 +340,13 @@ POST,/transactions/transfer,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,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -229,7 +357,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,18 +365,25 @@ 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,"異なるユーザー間での交換は出来ません", +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user ,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,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,8 +393,14 @@ 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,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -270,18 +411,23 @@ 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,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,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 @@ -289,8 +435,13 @@ POST,/transactions/cpm,400,invalid_parameters,"項目が無効です",Invalid pa ,,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,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -301,7 +452,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,29 +460,91 @@ 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 +POST,/transactions/bulk,400,invalid_parameters,"項目が無効です",Invalid parameters +,,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,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,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_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. +,,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,/transaction-groups,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,transaction_group_name_reserved,"指定されたトランザクショングループ名は使用できません",Transaction group name is reserved +GET,/transaction-groups/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found 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,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user ,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,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 @@ -341,8 +554,13 @@ POST,/external-transactions,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,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -350,6 +568,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 +577,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 +596,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 +655,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,25 +675,30 @@ 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,,, -POST,/private-moneys,400,invalid_parameters,"項目が無効です",Invalid parameters +POST,/private-moneys,400,credit_card_monthly_cap_less_than_daily_cap,"クレジットカードの1か月間のチャージ額上限は1日あたりチャージ上限額以上である必要があります",Credit card's monthly topup cap is less than its daily cap. +,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, +,,409,itrust_tenant_code_conflict,"テナント識別子はすでに登録されています",The tenant code is already registered ,,409,private_money_conflict,"このマネーは既に登録されています。",The money is already used ,,422,organization_not_found,,Organization not found ,,422,only_one_of_months_and_days_can_be_selected,"月と日のどちらか1つだけを選択できます",Only one of months and days can be selected ,,422,private_money_topup_transaction_limit_exceeded,"一回のチャージ取引の最大チャージ可能額がウォレットの最大マネー残高を越えています",The money amount for the transaction exceeds the maximum balance +,,503,temporarily_unavailable,,Service Unavailable 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 +716,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 +737,40 @@ 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 +GET,/customers/:uuid/cards,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,customer_user_not_found,,The customer user is not found +,,503,temporarily_unavailable,,Service Unavailable 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 +779,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,,, @@ -559,7 +800,10 @@ POST,/user-stats,400,invalid_parameters,"項目が無効です",Invalid paramete ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,invalid_promotional_operation_user,"ユーザーの指定に不正な値が含まれています",Invalid user data is specified ,,422,invalid_promotional_operation_status,"不正な処理ステータスです",Invalid operation status is specified -,,503,user_stats_operation_service_unavailable,"一時的にユーザー統計サービスが利用不能です",User stats service is temporarily unavailable +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 +827,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 +843,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,24 +861,30 @@ 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 +,,422,account_has_active_credit_session,"アクティブなオーソリセッションがあるためアカウントのステータスを変更できません",Cannot change account status with active credit session ,,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,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user ,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,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,8 +894,14 @@ 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,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -659,12 +916,16 @@ 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 +,,503,temporarily_unavailable,,Service Unavailable 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 +946,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 +954,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,26 +980,28 @@ 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. PATCH,/coupons/:uuid,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,coupon_recipients_cap_not_set,"クーポンに受け取り人数の上限が設定されていません",Recipients cap is not set to the coupon. ,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. ,,422,coupon_image_storage_conflict,"クーポン画像のストレージIDは既に存在します",The coupon image storage_id is already exists +,,422,coupon_reached_recipients_cap,"クーポンの受け取り人数の上限に達しました",The number of recipients of the coupon reached its cap. ,,503,temporarily_unavailable,,Service Unavailable POST,/storage/v1,400,partner_decryption_failed,"リクエスト中の暗号データを復号化することができませんでした。",Could not decrypt the data. ,,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 +1011,31 @@ 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,account_not_found,"アカウントが見つかりません",The account is not found +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,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 @@ -772,8 +1043,14 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,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,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -784,7 +1061,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,11 +1069,114 @@ 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,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id ,,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 ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable +POST,/accounts/:uuid/topup-quotas,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +GET,/accounts/:uuid/topup-quotas,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +GET,/accounts/:uuid/topup-quotas/:quota-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +PATCH,/accounts/:uuid/topup-quotas/:quota-id,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +DELETE,/accounts/:uuid/topup-quotas/:quota-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +GET,/topup-quotas,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +POST,/credit-sessions,503,temporarily_unavailable,,Service Unavailable +POST,/credit-sessions/:uuid/transactions,503,temporarily_unavailable,,Service Unavailable +POST,/credit-sessions/:uuid/capture,503,temporarily_unavailable,,Service Unavailable +POST,/internals/transaction-groups,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +GET,/internals/transaction-groups/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found +DELETE,/internals/transaction-groups/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found +,,503,temporarily_unavailable,,Service Unavailable +POST,/internals/transactions,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found +,,409,transaction_already_belongs_to_transaction_group,"取引はすでに別のグループに属しています",Transaction already belongs to another group +,,422,transaction_amount_not_determined,"取引金額が指定されておらず、特定できません",Transaction amount is not specified and cannot be determined +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,transaction_not_found,"取引が見つかりません",Transaction not found +,,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,/internals/expire-balance,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found +,,409,transaction_already_belongs_to_transaction_group,"取引はすでに別のグループに属しています",Transaction already belongs to another group +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts +,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user +,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated +,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,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 +,,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,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. +,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop. +,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used. +,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received. +,,422,coupon_not_sent,"このウォレットに対して配信されていないクーポンです。",This coupon is not sent to this account yet. +,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. +,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. +,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,422,account_suspended,"アカウントは停止されています",The account is suspended +,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed +,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,transaction_not_found,"取引が見つかりません",Transaction not found +,,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 +GET,/internals/system-user,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,503,temporarily_unavailable,,Service Unavailable +GET,/internals/private-moneys/:uuid/credit-session-settings,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..5b774ea 100644 --- a/docs/event.md +++ b/docs/event.md @@ -1,4 +1,10 @@ # Event +外部決済イベント(ExternalTransaction)を表すデータです。 +Pokepay外の決済(現金決済、クレジットカード決済等)を記録し、ポケペイのポイント還元を実現します。 +外部決済イベントを作成することで、キャンペーン連動によるポイント付与が可能になります。 +イベントのキャンセル(返金)にも対応しており、紐付いたポイント還元も同時にキャンセルされます。 +リクエストIDによる羃等性の担保もサポートしています。 + ## CreateExternalTransaction: ポケペイ外部取引を作成する @@ -6,48 +12,43 @@ ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。 - -```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", - "name":"name1", - "unit_price":100, - "price": 100, - "quantity": 1, - "is_discounted": false, - "other":"{}"}, {"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 + 4277, # 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":"{}"}], // 商品情報データ - 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="2021-06-02T12:40:34.000000Z" # ポケペイ外部取引の実施時間 +)) ``` ### Parameters -**`shop_id`** - - +#### `shop_id` 店舗IDです。 ポケペイ外部取引が行なう店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -55,13 +56,16 @@ const response: Response = await client.send(new Crea } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 エンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -69,13 +73,16 @@ const response: Response = await client.send(new Crea } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -83,11 +90,14 @@ const response: Response = await client.send(new Crea } ``` -**`amount`** - +
+#### `amount` 取引金額です。 +
+スキーマ + ```json { "type": "integer", @@ -95,13 +105,16 @@ const response: Response = await client.send(new Crea } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -109,13 +122,16 @@ const response: Response = await client.send(new Crea } ``` -**`metadata`** - +
+#### `metadata` ポケペイ外部取引作成時に指定され、取引と紐付けられるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSONで指定します。 +
+スキーマ + ```json { "type": "string", @@ -123,9 +139,9 @@ const response: Response = await client.send(new Crea } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -137,6 +153,9 @@ const response: Response = await client.send(new Crea - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -146,15 +165,18 @@ const response: Response = await client.send(new Crea } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +
+スキーマ + ```json { "type": "string", @@ -162,6 +184,25 @@ const response: Response = await client.send(new Crea } ``` +
+ +#### `done_at` +ポケペイ外部取引が実際に起こった時間です。 +時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。 +デフォルトではCreateExternalTransactionがリクエストされた時間になります。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ 成功したときは @@ -173,21 +214,25 @@ 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|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| |422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|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| @@ -197,8 +242,13 @@ const response: Response = await client.send(new Crea |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -206,6 +256,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,19 +274,20 @@ 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="返品対応のため" # 取引履歴に表示する返金事由 +)) ``` ### Parameters -**`event_id`** - +#### `event_id` +
+スキーマ ```json { @@ -243,9 +296,12 @@ const response: Response = await client.send(new Refu } ``` -**`description`** - +
+#### `description` + +
+スキーマ ```json { @@ -254,6 +310,8 @@ const response: Response = await client.send(new Refu } ``` +
+ 成功したときは @@ -271,18 +329,19 @@ 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 +)) ``` ### Parameters -**`request_id`** - +#### `request_id` +
+スキーマ ```json { @@ -291,6 +350,8 @@ const response: Response = await client.send(new GetE } ``` +
+ 成功したときは diff --git a/docs/organization.md b/docs/organization.md index 842404b..15f416f 100644 --- a/docs/organization.md +++ b/docs/organization.md @@ -1,27 +1,33 @@ # Organization +組織(発行体・加盟店組織)を表すデータです。 +Pokepay上でマネーを発行する発行体や、店舗を束ねる加盟店組織を管理します。 +組織には組織コード、組織名、本社情報などが含まれます。 +組織配下に複数の店舗(Shop)を持つことができます。 + ## 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="h3kO5wXHu", # 組織名 + code="Eli1N" # 組織コード +)) ``` ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 このマネーに加盟している加盟組織がフィルターされます。 +
+スキーマ + ```json { "type": "string", @@ -29,11 +35,14 @@ const response: Response = await client.send(new ListOrg } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -41,11 +50,14 @@ const response: Response = await client.send(new ListOrg } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -53,9 +65,12 @@ const response: Response = await client.send(new ListOrg } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -63,9 +78,12 @@ const response: Response = await client.send(new ListOrg } ``` -**`code`** - +
+#### `code` + +
+スキーマ ```json { @@ -73,6 +91,8 @@ const response: Response = await client.send(new ListOrg } ``` +
+ 成功したときは @@ -84,7 +104,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,30 +114,31 @@ 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", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # private_money_ids: 加盟店組織で有効にするマネーIDの配列 + "cEVyTrbdyJ@qmh3.com", # issuer_admin_user_email: 発行体担当者メールアドレス + "WRfGT9d54N@zUib.com", # member_admin_user_email: 新規組織担当者メールアドレス + bank_name="XYZ銀行", # 銀行名 + bank_code="1234", # 銀行金融機関コード + bank_branch_name="ABC支店", # 銀行支店名 + bank_branch_code="123", # 銀行支店コード + bank_account_type="other", # 銀行口座種別 (普通=saving, 当座=current, その他=other) + bank_account="1234567", # 銀行口座番号 + bank_account_holder_name="フクザワユキチ", # 口座名義人名 + contact_name="佐藤清" # 担当者名 +)) ``` ### Parameters -**`code`** - +#### `code` +
+スキーマ ```json { @@ -126,9 +147,12 @@ const response: Response = await client.send(new CreateOrganizatio } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -137,9 +161,12 @@ const response: Response = await client.send(new CreateOrganizatio } ``` -**`private_money_ids`** - +
+#### `private_money_ids` + +
+スキーマ ```json { @@ -152,9 +179,12 @@ const response: Response = await client.send(new CreateOrganizatio } ``` -**`issuer_admin_user_email`** - +
+ +#### `issuer_admin_user_email` +
+スキーマ ```json { @@ -163,9 +193,12 @@ const response: Response = await client.send(new CreateOrganizatio } ``` -**`member_admin_user_email`** - +
+#### `member_admin_user_email` + +
+スキーマ ```json { @@ -174,9 +207,12 @@ const response: Response = await client.send(new CreateOrganizatio } ``` -**`bank_name`** - +
+ +#### `bank_name` +
+スキーマ ```json { @@ -185,9 +221,12 @@ const response: Response = await client.send(new CreateOrganizatio } ``` -**`bank_code`** - +
+ +#### `bank_code` +
+スキーマ ```json { @@ -196,9 +235,12 @@ const response: Response = await client.send(new CreateOrganizatio } ``` -**`bank_branch_name`** - +
+#### `bank_branch_name` + +
+スキーマ ```json { @@ -207,9 +249,12 @@ const response: Response = await client.send(new CreateOrganizatio } ``` -**`bank_branch_code`** - +
+ +#### `bank_branch_code` +
+スキーマ ```json { @@ -218,9 +263,12 @@ const response: Response = await client.send(new CreateOrganizatio } ``` -**`bank_account_type`** - +
+#### `bank_account_type` + +
+スキーマ ```json { @@ -233,9 +281,12 @@ const response: Response = await client.send(new CreateOrganizatio } ``` -**`bank_account`** - +
+ +#### `bank_account` +
+スキーマ ```json { @@ -245,9 +296,12 @@ const response: Response = await client.send(new CreateOrganizatio } ``` -**`bank_account_holder_name`** - +
+ +#### `bank_account_holder_name` +
+スキーマ ```json { @@ -257,9 +311,12 @@ const response: Response = await client.send(new CreateOrganizatio } ``` -**`contact_name`** - +
+#### `contact_name` + +
+スキーマ ```json { @@ -268,6 +325,8 @@ const response: Response = await client.send(new CreateOrganizatio } ``` +
+ 成功したときは diff --git a/docs/private_money.md b/docs/private_money.md index 10f9c24..8610700 100644 --- a/docs/private_money.md +++ b/docs/private_money.md @@ -1,4 +1,10 @@ # Private Money +Pokepay上で発行する電子マネーを表すデータです。 +電子マネーは1つの発行体(Organization)によって発行されます。 +電子マネーはCustomerやMerchantが所有するウォレット間を送金されます。 +電子マネー残高はユーザが有償で購入するマネーと無償で付与されるポイントの2種類のバリューで構成され、 +それぞれ有効期限決定ロジックは電子マネーの設定に依存します。 + ## GetPrivateMoneys: マネー一覧を取得する @@ -6,22 +12,23 @@ パートナーキーの管理者が発行体組織に属している場合、自組織が加盟または発行しているマネーの一覧を返します。また、`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ページ分の取得数 +)) ``` ### Parameters -**`organization_code`** - - +#### `organization_code` パートナーキーの管理者が発行体組織に属している場合、発行マネーのうち、この組織コードで指定した決済加盟店組織が加盟しているマネーの一覧を返します。決済加盟店組織の管理者は自組織以外を指定することはできません。 +
+スキーマ + ```json { "type": "string", @@ -30,9 +37,12 @@ const response: Response = await client.send(new GetPriv } ``` -**`page`** - +
+ +#### `page` +
+スキーマ ```json { @@ -41,9 +51,12 @@ const response: Response = await client.send(new GetPriv } ``` -**`per_page`** - +
+#### `per_page` + +
+スキーマ ```json { @@ -52,6 +65,8 @@ const response: Response = await client.send(new GetPriv } ``` +
+ 成功したときは @@ -72,23 +87,24 @@ 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-08-29T14:34:13.000000Z", # 開始日時(toと同時に指定する必要有) + to="2023-11-08T14:35:47.000000Z", # 終了日時(fromと同時に指定する必要有) + page=1, # ページ番号 + per_page=50 # 1ページ分の取引数 +)) ``` `from`と`to`は同時に指定する必要があります。 ### Parameters -**`private_money_id`** - +#### `private_money_id` +
+スキーマ ```json { @@ -97,9 +113,12 @@ const response: Response = await cli } ``` -**`from`** - +
+ +#### `from` +
+スキーマ ```json { @@ -108,9 +127,12 @@ const response: Response = await cli } ``` -**`to`** - +
+#### `to` + +
+スキーマ ```json { @@ -119,9 +141,12 @@ const response: Response = await cli } ``` -**`page`** - +
+ +#### `page` +
+スキーマ ```json { @@ -130,9 +155,12 @@ const response: Response = await cli } ``` -**`per_page`** - +
+#### `per_page` + +
+スキーマ ```json { @@ -141,6 +169,8 @@ const response: Response = await cli } ``` +
+ 成功したときは @@ -155,20 +185,21 @@ 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-08-08T22:10:23.000000Z", # 開始日時 + to="2024-03-30T13:15:53.000000Z" # 終了日時 +)) ``` ### Parameters -**`private_money_id`** - +#### `private_money_id` +
+スキーマ ```json { @@ -177,9 +208,12 @@ const response: Response = await client.send(new GetPrivate } ``` -**`from`** - +
+#### `from` + +
+スキーマ ```json { @@ -188,9 +222,12 @@ const response: Response = await client.send(new GetPrivate } ``` -**`to`** - +
+ +#### `to` +
+スキーマ ```json { @@ -199,6 +236,8 @@ const response: Response = await client.send(new GetPrivate } ``` +
+ 成功したときは diff --git a/docs/responses.md b/docs/responses.md index cfbdc9a..20dd6fc 100644 --- a/docs/responses.md +++ b/docs/responses.md @@ -1,29 +1,34 @@ # Responses - -## AdminUserWithShopsAndPrivateMoneys -* `id (string)`: -* `role (string)`: -* `email (string)`: -* `name (string)`: -* `is_active (boolean)`: -* `organization (Organization)`: -* `shops (User[])`: -* `private_moneys (PrivateMoney[])`: - -`organization`は [Organization](#organization) オブジェクトを返します。 + +## CreditSession +* `id (str)`: +* `expires_at (str)`: + + +## CapturedCreditSession +* `session_id (str)`: + + +## CreditSessionTransactionResult + + +## PaginatedUserCards +* `rows (list of UserCards)`: +* `count (int)`: 総件数 +* `pagination (Pagination)`: -`shops`は [User](#user) オブジェクトの配列を返します。 +`rows`は [UserCard](#user-card) オブジェクトのリストを返します。 -`private-moneys`は [PrivateMoney](#private-money) オブジェクトの配列を返します。 +`pagination`は [Pagination](#pagination) オブジェクトを返します。 ## AccountWithUser -* `id (string)`: -* `name (string)`: -* `is_suspended (boolean)`: -* `status (string)`: -* `private_money (PrivateMoney)`: -* `user (User)`: +* `id (str)`: ウォレットID +* `name (str)`: ウォレット名 +* `is_suspended (bool)`: ウォレットが凍結されているかどうか +* `status (str)`: ウォレット状態 +* `private_money (PrivateMoney)`: 設定マネー情報 +* `user (User)`: ユーザ情報 `private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 @@ -31,17 +36,17 @@ ## AccountDetail -* `id (string)`: -* `name (string)`: -* `is_suspended (boolean)`: -* `status (string)`: -* `balance (number)`: -* `money_balance (number)`: -* `point_balance (number)`: -* `point_debt (number)`: -* `private_money (PrivateMoney)`: -* `user (User)`: -* `external_id (string)`: +* `id (str)`: ウォレットID +* `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 (str)`: 外部ID `private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 @@ -52,36 +57,37 @@ ## 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 +* `created_at (str)`: 支払いQRコードの作成日時 `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 +95,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 +121,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 +151,98 @@ ## 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)`: 返金された取引かどうか -* `sender (User)`: 送金者情報 +* `id (str)`: 取引ID +* `type (str)`: 取引種別 +* `is_modified (bool)`: 返金された取引かどうか +* `sender (User)`: 送金ユーザ情報 * `sender_account (Account)`: 送金ウォレット情報 -* `receiver (User)`: 受取者情報 +* `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) オブジェクトのリストを返します。 + + +## TransactionGroup +* `id (str)`: トランザクショングループID +* `name (str)`: トランザクショングループ名 +* `created_at (str)`: 作成日時 +* `updated_at (str)`: 更新日時 +* `transactions (list of Transactions)`: グループに属する取引一覧 + +`transactions`は [Transaction](#transaction) オブジェクトのリストを返します。 ## 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)`: バルク取引が更新された日時 +* `scheduled_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 +253,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) オブジェクトの配列を返します。 +`rows`は [Transaction](#transaction) オブジェクトのリストを返します。 + + +## PaginatedBillTransaction +* `rows (list of BillTransactions)`: +* `per_page (int)`: +* `count (int)`: +* `next_page_cursor_id (str)`: +* `prev_page_cursor_id (str)`: + +`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 +451,158 @@ ## 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)`: クーポンのマネー +* `num_recipients_cap (int)`: クーポンを受け取ることができるユーザ数上限 +* `num_recipients (int)`: クーポンを受け取ったユーザ数 `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) オブジェクトを返します。 + + +## UserCard +* `id (str)`: カード識別子 +* `card_number (str)`: マスク済みカード番号 +* `registered_at (str)`: 登録日時 + + +## Pagination +* `current (int)`: +* `per_page (int)`: +* `max_page (int)`: +* `has_prev (bool)`: +* `has_next (bool)`: + ## 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)`: - ## Transaction -* `id (string)`: 取引ID -* `type (string)`: 取引種別 -* `is_modified (boolean)`: 返金された取引かどうか -* `sender (User)`: 送金者情報 +* `id (str)`: 取引ID +* `type (str)`: 取引種別 +* `is_modified (bool)`: 返金された取引かどうか +* `sender (User)`: 送金ユーザ情報 * `sender_account (Account)`: 送金ウォレット情報 -* `receiver (User)`: 受取者情報 +* `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 +610,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 +627,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)`: -* `sender_account (AccountWithoutPrivateMoneyDetail)`: -* `receiver_account (AccountWithoutPrivateMoneyDetail)`: -* `amount (number)`: -* `money_amount (number)`: -* `point_amount (number)`: -* `done_at (string)`: -* `type (string)`: -* `description (string)`: -* `transaction_id (string)`: +* `id (str)`: 取引明細ID +* `sender_account (AccountWithoutPrivateMoneyDetail)`: 送金元ウォレット +* `receiver_account (AccountWithoutPrivateMoneyDetail)`: 送金先ウォレット +* `amount (float)`: 送金総額 (マネー額 + ポイント額) +* `money_amount (float)`: 送金マネー額 +* `point_amount (float)`: 送金ポイント額 +* `done_at (str)`: 送金日時 +* `type (str)`: 取引明細種別 +* `description (str)`: 取引明細説明文 +* `transaction_id (str)`: 親取引ID `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 +700,95 @@ ## 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)`: クーポンを特定するためのトークン +* `num_recipients_cap (int)`: クーポンを受け取ることができるユーザ数上限 +* `num_recipients (int)`: クーポンを受け取ったユーザ数 `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..1e77c3e --- /dev/null +++ b/docs/seven_bank_atm_session.md @@ -0,0 +1,42 @@ +# SevenBankATMSession +セブンATMチャージの取引内容を照会するAPIを提供しています。 + + +## GetSevenBankATMSession: セブン銀行ATMセッションの取得 +セブン銀行ATMセッションを取得します + +```PYTHON +response = client.send(pp.GetSevenBankAtmSession( + "lp3S7" # 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..0d3acc1 100644 --- a/docs/shop.md +++ b/docs/shop.md @@ -1,32 +1,38 @@ # Shop +店舗(加盟店)を表すデータです。 +Pokepayプラットフォーム上で支払いを受け取る店舗ユーザーを管理します。 +店舗は組織(Organization)に所属し、店舗ごとにウォレットを持ちます。 +店舗情報には住所、電話番号、メールアドレス、外部連携用IDなどが含まれます。 +店舗ステータス(active/disabled)の管理も可能です。 + ## 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="1818725", # 店舗の郵便番号 + address="東京都港区芝...", # 店舗の住所 + tel="04580955", # 店舗の電話番号 + email="l7H6aHeFVm@JSAK.com", # 店舗のメールアドレス + external_id="NuNDUQhJfNq76", # 店舗の外部ID + with_disabled=True, # 無効な店舗を含める + page=1, # ページ番号 + per_page=50 # 1ページ分の取引数 +)) ``` ### Parameters -**`organization_code`** - - +#### `organization_code` このパラメータを渡すとその組織の店舗のみが返され、省略すると加盟店も含む店舗が返されます。 +
+スキーマ ```json { @@ -36,11 +42,13 @@ const response: Response = await client.send(new ListShops({ } ``` -**`private_money_id`** - +
+#### `private_money_id` このパラメータを渡すとそのマネーのウォレットを持つ店舗のみが返されます。 +
+スキーマ ```json { @@ -49,11 +57,13 @@ const response: Response = await client.send(new ListShops({ } ``` -**`name`** - +
+#### `name` このパラメータを渡すとその名前の店舗のみが返されます。 +
+スキーマ ```json { @@ -63,11 +73,13 @@ const response: Response = await client.send(new ListShops({ } ``` -**`postal_code`** - +
+#### `postal_code` このパラメータを渡すとその郵便番号が登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -76,11 +88,13 @@ const response: Response = await client.send(new ListShops({ } ``` -**`address`** - +
+#### `address` このパラメータを渡すとその住所が登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -89,11 +103,13 @@ const response: Response = await client.send(new ListShops({ } ``` -**`tel`** - +
+#### `tel` このパラメータを渡すとその電話番号が登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -102,11 +118,13 @@ const response: Response = await client.send(new ListShops({ } ``` -**`email`** - +
+#### `email` このパラメータを渡すとそのメールアドレスが登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -116,11 +134,13 @@ const response: Response = await client.send(new ListShops({ } ``` -**`external_id`** - +
+#### `external_id` このパラメータを渡すとその外部IDが登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -129,11 +149,13 @@ const response: Response = await client.send(new ListShops({ } ``` -**`with_disabled`** - +
+#### `with_disabled` このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。 +
+スキーマ ```json { @@ -141,11 +163,14 @@ const response: Response = await client.send(new ListShops({ } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -153,11 +178,14 @@ const response: Response = await client.send(new ListShops({ } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -165,6 +193,8 @@ const response: Response = await client.send(new ListShops({ } ``` +
+ 成功したときは @@ -175,8 +205,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,24 +218,25 @@ 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="8153948", # 店舗の郵便番号 + shop_address="東京都港区芝...", # 店舗の住所 + shop_tel="0622-524554", # 店舗の電話番号 + shop_email="ayidm5BuCe@0yTS.com", # 店舗のメールアドレス + shop_external_id="IanUYT", # 店舗の外部ID + organization_code="ox-supermarket" # 組織コード +)) ``` ### Parameters -**`shop_name`** - +#### `shop_name` +
+スキーマ ```json { @@ -214,9 +246,12 @@ const response: Response = await client.send(new CreateShop({ } ``` -**`shop_postal_code`** - +
+#### `shop_postal_code` + +
+スキーマ ```json { @@ -225,9 +260,12 @@ const response: Response = await client.send(new CreateShop({ } ``` -**`shop_address`** - +
+ +#### `shop_address` +
+スキーマ ```json { @@ -236,9 +274,12 @@ const response: Response = await client.send(new CreateShop({ } ``` -**`shop_tel`** - +
+#### `shop_tel` + +
+スキーマ ```json { @@ -247,9 +288,12 @@ const response: Response = await client.send(new CreateShop({ } ``` -**`shop_email`** - +
+ +#### `shop_email` +
+スキーマ ```json { @@ -259,9 +303,12 @@ const response: Response = await client.send(new CreateShop({ } ``` -**`shop_external_id`** - +
+#### `shop_external_id` + +
+スキーマ ```json { @@ -270,9 +317,12 @@ const response: Response = await client.send(new CreateShop({ } ``` -**`organization_code`** - +
+ +#### `organization_code` +
+スキーマ ```json { @@ -282,6 +332,8 @@ const response: Response = await client.send(new CreateShop({ } ``` +
+ 成功したときは @@ -306,30 +358,31 @@ 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="6250529", # 店舗の郵便番号 + address="東京都港区芝...", # 店舗の住所 + tel="018180-2285", # 店舗の電話番号 + email="1myjYzFL4j@0HTX.com", # 店舗のメールアドレス + external_id="txMi6tvMf7Gb", # 店舗の外部ID + organization_code="ox-supermarket", # 組織コード + private_money_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗で有効にするマネーIDの配列 + can_topup_private_money_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"] # 店舗でチャージ可能にするマネーIDの配列 +)) ``` ### Parameters -**`name`** - - +#### `name` 店舗名です。 同一組織内に同名の店舗があった場合は`name_conflict`エラーが返ります。 +
+スキーマ + ```json { "type": "string", @@ -338,9 +391,12 @@ const response: Response = await client.send(new CreateShopV2( } ``` -**`postal_code`** - +
+ +#### `postal_code` +
+スキーマ ```json { @@ -349,9 +405,12 @@ const response: Response = await client.send(new CreateShopV2( } ``` -**`address`** - +
+#### `address` + +
+スキーマ ```json { @@ -360,9 +419,12 @@ const response: Response = await client.send(new CreateShopV2( } ``` -**`tel`** - +
+ +#### `tel` +
+スキーマ ```json { @@ -371,9 +433,12 @@ const response: Response = await client.send(new CreateShopV2( } ``` -**`email`** - +
+#### `email` + +
+スキーマ ```json { @@ -383,9 +448,12 @@ const response: Response = await client.send(new CreateShopV2( } ``` -**`external_id`** - +
+ +#### `external_id` +
+スキーマ ```json { @@ -394,9 +462,12 @@ const response: Response = await client.send(new CreateShopV2( } ``` -**`organization_code`** - +
+ +#### `organization_code` +
+スキーマ ```json { @@ -406,14 +477,17 @@ const response: Response = await client.send(new CreateShopV2( } ``` -**`private_money_ids`** - +
+#### `private_money_ids` 店舗で有効にするマネーIDの配列を指定します。 店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。 このパラメータを省略したときは、店舗が所属する組織が発行または加盟している全てのマネーのウォレットができます。 +
+スキーマ + ```json { "type": "array", @@ -425,14 +499,17 @@ const response: Response = await client.send(new CreateShopV2( } ``` -**`can_topup_private_money_ids`** - +
+#### `can_topup_private_money_ids` 店舗でチャージ可能にするマネーIDの配列を指定します。 このパラメータは発行体のみが指定でき、自身が発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。 省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。 +
+スキーマ + ```json { "type": "array", @@ -444,6 +521,8 @@ const response: Response = await client.send(new CreateShopV2( } ``` +
+ 成功したときは @@ -472,18 +551,19 @@ 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 +)) ``` ### Parameters -**`shop_id`** - +#### `shop_id` +
+スキーマ ```json { @@ -492,6 +572,8 @@ const response: Response = await client.send(new GetShop({ } ``` +
+ 成功したときは @@ -507,27 +589,28 @@ 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="3646065", # 店舗の郵便番号 + address="東京都港区芝...", # 店舗の住所 + tel="01-698434", # 店舗の電話番号 + email="33lqYdKQ0h@3ghV.com", # 店舗のメールアドレス + external_id="k7eOE9tcwx8MOKl5MRsa1MFEYPO", # 店舗の外部ID + private_money_ids=[], # 店舗で有効にするマネーIDの配列 + can_topup_private_money_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗でチャージ可能にするマネーIDの配列 + status="active" # 店舗の状態 +)) ``` ### Parameters -**`shop_id`** - +#### `shop_id` +
+スキーマ ```json { @@ -536,13 +619,16 @@ const response: Response = await client.send(new UpdateShop({ } ``` -**`name`** - +
+#### `name` 店舗名です。 同一組織内に同名の店舗があった場合は`shop_name_conflict`エラーが返ります。 +
+スキーマ + ```json { "type": "string", @@ -551,11 +637,14 @@ const response: Response = await client.send(new UpdateShop({ } ``` -**`postal_code`** - +
+#### `postal_code` 店舗住所の郵便番号(7桁の数字)です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -563,9 +652,12 @@ const response: Response = await client.send(new UpdateShop({ } ``` -**`address`** - +
+#### `address` + +
+スキーマ ```json { @@ -574,11 +666,14 @@ const response: Response = await client.send(new UpdateShop({ } ``` -**`tel`** - +
+#### `tel` 店舗の電話番号です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -586,11 +681,14 @@ const response: Response = await client.send(new UpdateShop({ } ``` -**`email`** - +
+#### `email` 店舗の連絡先メールアドレスです。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -599,11 +697,14 @@ const response: Response = await client.send(new UpdateShop({ } ``` -**`external_id`** - +
+#### `external_id` 店舗の外部IDです(最大36文字)。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -611,14 +712,17 @@ const response: Response = await client.send(new UpdateShop({ } ``` -**`private_money_ids`** - +
+#### `private_money_ids` 店舗で有効にするマネーIDの配列を指定します。 店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。 店舗が既にウォレットを持っている場合に、ここでそのウォレットのマネーIDを指定しないで更新すると、そのマネーのウォレットは凍結(無効化)されます。 +
+スキーマ + ```json { "type": "array", @@ -630,14 +734,17 @@ const response: Response = await client.send(new UpdateShop({ } ``` -**`can_topup_private_money_ids`** - +
+#### `can_topup_private_money_ids` 店舗でチャージ可能にするマネーIDの配列を指定します。 このパラメータは発行体のみが指定でき、発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。 省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。 +
+スキーマ + ```json { "type": "array", @@ -649,11 +756,14 @@ const response: Response = await client.send(new UpdateShop({ } ``` -**`status`** - +
+#### `status` 店舗の状態です。activeを指定すると有効となり、disabledを指定するとリスト表示から除外されます。 +
+スキーマ + ```json { "type": "string", @@ -664,6 +774,8 @@ const response: Response = await client.send(new UpdateShop({ } ``` +
+ 成功したときは diff --git a/docs/transaction.md b/docs/transaction.md index e940f05..251312a 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -1,23 +1,35 @@ # Transaction +取引を表すデータです。 +マネー(Private Money)のウォレット間の送金を記録し、キャンセルなどで状態が更新されることがあります。 +取引種類として以下が存在します。 + +- topup: チャージ。Merchant => Customer送金 +- payment: 支払い。Customer => Merchant送金 +- transfer: 個人間譲渡。Customer => Customer送金 +- exchange: マネー間交換。1ユーザのウォレット間の送金(交換) +- expire: 退会時失効。退会時の払戻を伴わない残高失効履歴 +- cashback: 退会時払戻。退会時の払戻金額履歴 + ## GetCpmToken: CPMトークンの状態取得 CPMトークンの現在の状態を取得します。CPMトークンの有効期限やCPM取引の状態を返します。 -```typescript -const response: Response = await client.send(new GetCpmToken({ - cpm_token: "Km6uKQNQH3PDcRwUCecSBj" // CPMトークン -})); +```PYTHON +response = client.send(pp.GetCpmToken( + "XzuBqGFPReFsmxaxT8Xwuc" # cpm_token: CPMトークン +)) ``` ### Parameters -**`cpm_token`** - - +#### `cpm_token` CPM取引時にエンドユーザーが店舗に提示するバーコードを解析して得られる22桁の文字列です。 +
+スキーマ + ```json { "type": "string", @@ -26,6 +38,8 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを } ``` +
+ 成功したときは @@ -41,35 +55,36 @@ 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-06-23T09:21:56.000000Z", # 開始日時 + to="2024-10-25T22:50:07.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="9", # 取引ID + organization_code="pocketchange", # 組織コード + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + is_modified=False, # キャンセルフラグ + types=["topup", "payment"], # 取引種別 (複数指定可)、チャージ=topup、支払い=payment + description="店頭QRコードによる支払い" # 取引説明文 +)) ``` ### Parameters -**`from`** - - +#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -77,13 +92,16 @@ const response: Response = await client.send(new ListTrans } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -91,11 +109,14 @@ const response: Response = await client.send(new ListTrans } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -103,11 +124,14 @@ const response: Response = await client.send(new ListTrans } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -115,13 +139,16 @@ const response: Response = await client.send(new ListTrans } ``` -**`shop_id`** - +
+#### `shop_id` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -129,13 +156,16 @@ const response: Response = await client.send(new ListTrans } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -143,13 +173,16 @@ const response: Response = await client.send(new ListTrans } ``` -**`customer_name`** - +
+#### `customer_name` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -157,13 +190,16 @@ const response: Response = await client.send(new ListTrans } ``` -**`terminal_id`** - +
+#### `terminal_id` 端末IDです。 フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -171,26 +207,32 @@ const response: Response = await client.send(new ListTrans } ``` -**`transaction_id`** - +
+#### `transaction_id` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string" } ``` -**`organization_code`** - +
+#### `organization_code` 組織コードです。 フィルターとして使われ、指定された組織での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -199,13 +241,16 @@ const response: Response = await client.send(new ListTrans } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -213,23 +258,26 @@ const response: Response = await client.send(new ListTrans } ``` -**`is_modified`** - +
+#### `is_modified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`types`** - +
+#### `types` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -252,6 +300,9 @@ const response: Response = await client.send(new ListTrans 6. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -269,13 +320,16 @@ const response: Response = await client.send(new ListTrans } ``` -**`description`** - +
+#### `description` 取引を指定の取引説明文でフィルターします。 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -283,6 +337,8 @@ const response: Response = await client.send(new ListTrans } ``` +
+ 成功したときは @@ -293,6 +349,7 @@ const response: Response = await client.send(new ListTrans |status|type|ja|en| |---|---|---|---| |403|NULL|NULL|NULL| +|503|temporarily_unavailable||Service Unavailable| @@ -303,24 +360,25 @@ 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=676, + point_amount=2798, + point_expires_at="2020-02-19T01:26:54.000000Z", # ポイント有効期限 + description="qwxML0aHpiMuFL917lUTrE8EACTMWkW53" +)) ``` ### Parameters -**`shop_id`** - +#### `shop_id` +
+スキーマ ```json { @@ -329,9 +387,12 @@ const response: Response = await client.send(new CreateTransa } ``` -**`customer_id`** - +
+#### `customer_id` + +
+スキーマ ```json { @@ -340,9 +401,12 @@ const response: Response = await client.send(new CreateTransa } ``` -**`private_money_id`** - +
+ +#### `private_money_id` +
+スキーマ ```json { @@ -351,9 +415,12 @@ const response: Response = await client.send(new CreateTransa } ``` -**`money_amount`** - +
+#### `money_amount` + +
+スキーマ ```json { @@ -363,9 +430,12 @@ const response: Response = await client.send(new CreateTransa } ``` -**`point_amount`** - +
+ +#### `point_amount` +
+スキーマ ```json { @@ -375,12 +445,15 @@ const response: Response = await client.send(new CreateTransa } ``` -**`point_expires_at`** - +
+#### `point_expires_at` ポイントをチャージした場合の、付与されるポイントの有効期限です。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -388,9 +461,12 @@ const response: Response = await client.send(new CreateTransa } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -399,6 +475,8 @@ const response: Response = await client.send(new CreateTransa } ``` +
+ 成功したときは @@ -411,11 +489,16 @@ 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|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |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| @@ -423,8 +506,14 @@ const response: Response = await client.send(new CreateTransa |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|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -435,7 +524,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| @@ -447,6 +536,91 @@ const response: Response = await client.send(new CreateTransa +--- + + + +## CreateTransactionGroup: トランザクショングループを作成する +複数の取引を1つのグループとして管理できるようにします。 + +```PYTHON +response = client.send(pp.CreateTransactionGroup( + "gnqE0TT1OD00WYy" # name: 作成するトランザクショングループの名称です。 +)) +``` + + + +### Parameters +#### `name` +作成するトランザクショングループの名称です。 +"pokepay" で始まる文字列は予約済みのため使用できません。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 64 +} +``` + +
+ + + +成功したときは +[TransactionGroup](./responses.md#transaction-group) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|transaction_group_name_reserved|指定されたトランザクショングループ名は使用できません|Transaction group name is reserved| + + + +--- + + + +## ShowTransactionGroup: トランザクショングループを取得する +指定したトランザクショングループの詳細を返します。 + +```PYTHON +response = client.send(pp.ShowTransactionGroup( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # uuid: 取得したいトランザクショングループID +)) +``` + + + +### Parameters +#### `uuid` +取得したいトランザクショングループID + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[TransactionGroup](./responses.md#transaction-group) +を返します + + + --- @@ -454,36 +628,37 @@ 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="85d", # 取引ID + is_modified=False, # キャンセルフラグ + types=["topup", "payment"], # 取引種別 (複数指定可)、チャージ=topup、支払い=payment + start="2023-11-03T21:59:46.000000Z", # 開始日時 + to="2022-03-17T04:17:15.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`** - - +#### `private_money_id` マネーIDです。 指定したマネーでの取引が一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -491,13 +666,16 @@ const response: Response = await client.send(new ListTra } ``` -**`organization_code`** - +
+#### `organization_code` 組織コードです。 フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -506,13 +684,16 @@ const response: Response = await client.send(new ListTra } ``` -**`shop_id`** - +
+#### `shop_id` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -520,13 +701,16 @@ const response: Response = await client.send(new ListTra } ``` -**`terminal_id`** - +
+#### `terminal_id` 端末IDです。 フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -534,13 +718,16 @@ const response: Response = await client.send(new ListTra } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -548,13 +735,16 @@ const response: Response = await client.send(new ListTra } ``` -**`customer_name`** - +
+#### `customer_name` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -562,13 +752,16 @@ const response: Response = await client.send(new ListTra } ``` -**`description`** - +
+#### `description` 取引を指定の取引説明文でフィルターします。 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -576,36 +769,42 @@ const response: Response = await client.send(new ListTra } ``` -**`transaction_id`** - +
+#### `transaction_id` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string" } ``` -**`is_modified`** - +
+#### `is_modified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`types`** - +
+#### `types` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -632,6 +831,9 @@ const response: Response = await client.send(new ListTra 6. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -649,13 +851,16 @@ const response: Response = await client.send(new ListTra } ``` -**`from`** - +
+#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -663,13 +868,16 @@ const response: Response = await client.send(new ListTra } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -677,15 +885,18 @@ const response: Response = await client.send(new ListTra } ``` -**`next_page_cursor_id`** - +
+#### `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", @@ -693,9 +904,9 @@ next_page_cursor_idのtransaction自体は次のページには含まれませ } ``` -**`prev_page_cursor_id`** - +
+#### `prev_page_cursor_id` 前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 @@ -703,6 +914,9 @@ UUIDである場合は前のページが存在することを意味し、このp prev_page_cursor_idのtransaction自体は前のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -710,13 +924,16 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -725,6 +942,8 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ } ``` +
+ 成功したときは @@ -735,6 +954,312 @@ 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=True, # キャンセルフラグ + start="2023-11-22T08:50:09.000000Z", # 開始日時 + to="2024-04-01T04:44: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ページ分の取引数 +)) +``` + + + +### 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,31 +1270,32 @@ 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=2786, # マネー額 + point_amount=1158, # ポイント額 + point_expires_at="2025-12-08T05:51:12.000000Z", # ポイント有効期限 + description="初夏のチャージキャンペーン", # 取引履歴に表示する説明文 + metadata="{\"key\":\"value\"}", # 取引メタデータ + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID +)) ``` ### Parameters -**`shop_id`** - - +#### `shop_id` 店舗IDです。 送金元の店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -777,13 +1303,16 @@ const response: Response = await client.send(new CreateTopupT } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 送金先のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -791,13 +1320,16 @@ const response: Response = await client.send(new CreateTopupT } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -805,13 +1337,16 @@ const response: Response = await client.send(new CreateTopupT } ``` -**`bear_point_shop_id`** - +
+#### `bear_point_shop_id` ポイント支払時の負担店舗IDです。 ポイント支払い時に実際お金を負担する店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -819,14 +1354,17 @@ const response: Response = await client.send(new CreateTopupT } ``` -**`money_amount`** - +
+#### `money_amount` マネー額です。 送金するマネー額を指定します。 デフォルト値は0で、money_amountとpoint_amountの両方が0のときにはinvalid_parameter_both_point_and_money_are_zero(エラーコード400)が返ります。 +
+スキーマ + ```json { "type": "integer", @@ -834,14 +1372,17 @@ const response: Response = await client.send(new CreateTopupT } ``` -**`point_amount`** - +
+#### `point_amount` ポイント額です。 送金するポイント額を指定します。 デフォルト値は0で、money_amountとpoint_amountの両方が0のときにはinvalid_parameter_both_point_and_money_are_zero(エラーコード400)が返ります。 +
+スキーマ + ```json { "type": "integer", @@ -849,12 +1390,15 @@ const response: Response = await client.send(new CreateTopupT } ``` -**`point_expires_at`** - +
+#### `point_expires_at` ポイントをチャージした場合の、付与されるポイントの有効期限です。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -862,13 +1406,16 @@ const response: Response = await client.send(new CreateTopupT } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -876,13 +1423,16 @@ const response: Response = await client.send(new CreateTopupT } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -890,14 +1440,18 @@ const response: Response = await client.send(new CreateTopupT } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +
+スキーマ ```json { @@ -906,6 +1460,8 @@ const response: Response = await client.send(new CreateTopupT } ``` +
+ 成功したときは @@ -918,9 +1474,14 @@ 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|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |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| @@ -928,8 +1489,13 @@ const response: Response = await client.send(new CreateTopupT |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -946,9 +1512,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| @@ -961,36 +1530,44 @@ 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 + 6179, # amount: 支払い額 + description="たい焼き(小倉)", # 取引履歴に表示する説明文 + metadata="{\"key\":\"value\"}", # 取引メタデータ + products=[{"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, + "is_discounted": False, + "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, "quantity": 1, - "is_discounted": false, - "other":"{}"}], // 商品情報データ - 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", # 支払い時の残高消費方式 + coupon_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # クーポンID +)) ``` ### Parameters -**`shop_id`** - - +#### `shop_id` 店舗IDです。 送金先の店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -998,13 +1575,16 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 送金元のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1012,13 +1592,16 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1026,13 +1609,16 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`amount`** - +
+#### `amount` マネー額です。 送金するマネー額を指定します。 +
+スキーマ + ```json { "type": "integer", @@ -1040,13 +1626,16 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -1054,13 +1643,16 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1068,9 +1660,9 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -1082,6 +1674,9 @@ const response: Response = await client.send(new CreatePaymen - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -1091,14 +1686,18 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +
+スキーマ ```json { @@ -1107,6 +1706,47 @@ 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" + ] +} +``` + +
+ +#### `coupon_id` +支払いに対して適用するクーポンのIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ 成功したときは @@ -1116,11 +1756,15 @@ 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|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |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| @@ -1128,8 +1772,13 @@ const response: Response = await client.send(new CreatePaymen |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -1146,9 +1795,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| @@ -1161,47 +1813,36 @@ const response: Response = await client.send(new CreatePaymen 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", +```PYTHON +response = client.send(pp.CreateCpmTransaction( + "Q0st0t7yJcv8GqBqgGEHaf", # cpm_token: CPMトークン + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID + 1056.0, # amount: 取引金額 + description="たい焼き(小倉)", # 取引説明文 + metadata="{\"key\":\"value\"}", # 店舗側メタデータ + products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, "quantity": 1, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "quantity": 1, - "is_discounted": false, - "other":"{}"}, {"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" # 支払い時の残高消費方式 +)) ``` ### Parameters -**`cpm_token`** - - +#### `cpm_token` エンドユーザーによって作られ、アプリなどに表示され、店舗に対して提示される22桁の文字列です。 エンドユーザーによって許可された取引のスコープを持っています。 +
+スキーマ + ```json { "type": "string", @@ -1210,13 +1851,16 @@ const response: Response = await client.send(new CreateCpmTra } ``` -**`shop_id`** - +
+#### `shop_id` 店舗IDです。 支払いやチャージを行う店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1224,26 +1868,32 @@ const response: Response = await client.send(new CreateCpmTra } ``` -**`amount`** - +
+#### `amount` 取引金額を指定します。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` 取引説明文です。 エンドユーザーアプリの取引履歴などに表示されます。 +
+スキーマ + ```json { "type": "string", @@ -1251,13 +1901,16 @@ const response: Response = await client.send(new CreateCpmTra } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に店舗側から指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1265,9 +1918,9 @@ const response: Response = await client.send(new CreateCpmTra } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -1279,6 +1932,9 @@ const response: Response = await client.send(new CreateCpmTra - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -1288,14 +1944,18 @@ const response: Response = await client.send(new CreateCpmTra } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +
+スキーマ ```json { @@ -1304,6 +1964,32 @@ 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 +1999,21 @@ 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|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |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| @@ -1331,8 +2021,13 @@ const response: Response = await client.send(new CreateCpmTra |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -1343,7 +2038,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 +2046,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| @@ -1363,29 +2061,29 @@ 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 + 9777.0, # amount: 送金額 + metadata="{\"key\":\"value\"}", # 取引メタデータ + description="たい焼き(小倉)", # 取引履歴に表示する説明文 + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID +)) ``` ### Parameters -**`sender_id`** - - +#### `sender_id` エンドユーザーIDです。 送金元のエンドユーザー(送り主)を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1393,13 +2091,16 @@ const response: Response = await client.send(new CreateTransf } ``` -**`receiver_id`** - +
+#### `receiver_id` エンドユーザーIDです。 送金先のエンドユーザー(受け取り人)を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1407,13 +2108,16 @@ const response: Response = await client.send(new CreateTransf } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1421,13 +2125,16 @@ const response: Response = await client.send(new CreateTransf } ``` -**`amount`** - +
+#### `amount` マネー額です。 送金するマネー額を指定します。 +
+スキーマ + ```json { "type": "number", @@ -1435,13 +2142,16 @@ const response: Response = await client.send(new CreateTransf } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1449,13 +2159,16 @@ const response: Response = await client.send(new CreateTransf } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -1463,14 +2176,18 @@ const response: Response = await client.send(new CreateTransf } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +
+スキーマ ```json { @@ -1479,6 +2196,8 @@ const response: Response = await client.send(new CreateTransf } ``` +
+ 成功したときは @@ -1488,13 +2207,17 @@ 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|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |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| @@ -1502,8 +2225,13 @@ const response: Response = await client.send(new CreateTransf |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -1514,7 +2242,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 +2250,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,23 +2263,24 @@ 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", + 8017, + description="k7uydClg9A7an27PrVxBqiE9YWo8xjmzBGJVwTTanAXyFjLag3gPPvlq0FFntKGY10p27NPGQTdAXKNGuLNgDO4Ma1ptA22IkyjkgPuZUMAq2NjJocNYKTrm2m1ssPqyT3XyCFCrR8uZnHFgU1ZOwuoeukDxIIOg9CcbCgtxt4qQAP06TDLYKBc2zP", + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID +)) ``` ### Parameters -**`user_id`** - +#### `user_id` +
+スキーマ ```json { @@ -1557,9 +2289,12 @@ const response: Response = await client.send(new CreateExchan } ``` -**`sender_private_money_id`** - +
+ +#### `sender_private_money_id` +
+スキーマ ```json { @@ -1568,9 +2303,12 @@ const response: Response = await client.send(new CreateExchan } ``` -**`receiver_private_money_id`** - +
+ +#### `receiver_private_money_id` +
+スキーマ ```json { @@ -1579,9 +2317,12 @@ const response: Response = await client.send(new CreateExchan } ``` -**`amount`** - +
+#### `amount` + +
+スキーマ ```json { @@ -1590,9 +2331,12 @@ const response: Response = await client.send(new CreateExchan } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -1601,14 +2345,18 @@ const response: Response = await client.send(new CreateExchan } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +
+スキーマ ```json { @@ -1617,6 +2365,8 @@ const response: Response = await client.send(new CreateExchan } ``` +
+ 成功したときは @@ -1626,17 +2376,21 @@ 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|同じマネーとの交換はできません|| |422|can_not_exchange_between_users|異なるユーザー間での交換は出来ません|| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| |422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|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,8 +2400,14 @@ 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|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| -|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -1658,6 +2418,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,22 +2430,23 @@ 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 +)) ``` ### Parameters -**`transaction_id`** - - +#### `transaction_id` 取引IDです。 フィルターとして使われ、指定した取引IDの取引を取得します。 +
+スキーマ + ```json { "type": "string", @@ -1692,6 +2454,8 @@ const response: Response = await client.send(new GetTransacti } ``` +
+ 成功したときは @@ -1713,20 +2477,21 @@ 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-12-03T10:58:46.000000Z" # 返却ポイントの有効期限 +)) ``` ### Parameters -**`transaction_id`** - +#### `transaction_id` +
+スキーマ ```json { @@ -1735,9 +2500,12 @@ const response: Response = await client.send(new RefundTransa } ``` -**`description`** - +
+#### `description` + +
+スキーマ ```json { @@ -1746,11 +2514,14 @@ const response: Response = await client.send(new RefundTransa } ``` -**`returning_point_expires_at`** - +
+#### `returning_point_expires_at` ポイント支払いを含む支払い取引をキャンセルする際にユーザへ返却されるポイントの有効期限です。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -1758,6 +2529,8 @@ const response: Response = await client.send(new RefundTransa } ``` +
+ 成功したときは @@ -1773,22 +2546,23 @@ 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 +)) ``` ### Parameters -**`request_id`** - - +#### `request_id` 取引作成時にクライアントが生成し指定するリクエストIDです。 リクエストIDに対応する取引が存在すればその取引を返し、無ければNotFound(404)を返します。 +
+スキーマ + ```json { "type": "string", @@ -1796,6 +2570,8 @@ const response: Response = await client.send(new GetTransacti } ``` +
+ 成功したときは @@ -1810,21 +2586,22 @@ 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 +)) ``` ### Parameters -**`bulk_transaction_id`** - - +#### `bulk_transaction_id` バルク取引ジョブIDです。 バルク取引ジョブ登録時にレスポンスに含まれます。 +
+スキーマ + ```json { "type": "string", @@ -1832,6 +2609,8 @@ const response: Response = await client.send(new GetBulkTransac } ``` +
+ 成功したときは @@ -1846,23 +2625,24 @@ 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ページ分の取得数 +)) ``` ### Parameters -**`bulk_transaction_id`** - - +#### `bulk_transaction_id` バルク取引ジョブIDです。 バルク取引ジョブ登録時にレスポンスに含まれます。 +
+スキーマ + ```json { "type": "string", @@ -1870,11 +2650,14 @@ const response: Response = await client.send(new Li } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -1882,11 +2665,14 @@ const response: Response = await client.send(new Li } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -1894,6 +2680,8 @@ const response: Response = await client.send(new Li } ``` +
+ 成功したときは @@ -1924,22 +2712,23 @@ 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: 集計期間の終了時刻 +)) ``` ### Parameters -**`from`** - - +#### `from` 集計する期間の開始時刻をISO8601形式で指定します。 時刻は現在時刻、及び `to` で指定する時刻以前である必要があります。 +
+スキーマ + ```json { "type": "string", @@ -1947,12 +2736,15 @@ const response: Response = await client.send(new RequestUser } ``` -**`to`** - +
+#### `to` 集計する期間の終了時刻をISO8601形式で指定します。 時刻は現在時刻、及び `from` で指定する時刻の間である必要があります。 +
+スキーマ + ```json { "type": "string", @@ -1960,6 +2752,8 @@ const response: Response = await client.send(new RequestUser } ``` +
+ 成功したときは @@ -1973,7 +2767,61 @@ const response: Response = await client.send(new RequestUser |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|invalid_promotional_operation_user|ユーザーの指定に不正な値が含まれています|Invalid user data is specified| |422|invalid_promotional_operation_status|不正な処理ステータスです|Invalid operation status is specified| -|503|user_stats_operation_service_unavailable|一時的にユーザー統計サービスが利用不能です|User stats service is temporarily unavailable| + + + +--- + + + +## 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..7bcef70 100644 --- a/docs/transfer.md +++ b/docs/transfer.md @@ -1,28 +1,35 @@ # Transfer +送金取引明細を表すデータです。 +マネー(Private Money)のウォレット間の送金記録を取得します。 +取引(Transaction)は複数の送金明細(Transfer)で構成されています。 +送金明細には送金元・送金先のアカウント情報、マネー額、ポイント額などが含まれます。 +取引種別として、payment, topup, campaign-topup, transfer, exchange, refund-payment, refund-topup, cashback, expire等があります。 + ## 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="2025-09-28T23:34:37.000000Z", # 集計期間の開始時刻 + to="2020-01-29T09:55:25.000000Z", # 集計期間の終了時刻 + transfer_types=["topup", "payment"] # 取引明細種別 (複数指定可) +)) ``` ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 ここで指定したウォレットIDの取引明細レベルでの集計を取得します。 +
+スキーマ + ```json { "type": "string", @@ -30,9 +37,12 @@ const response: Response = await client.send(new GetAcco } ``` -**`from`** - +
+#### `from` + +
+スキーマ ```json { @@ -41,9 +51,12 @@ const response: Response = await client.send(new GetAcco } ``` -**`to`** - +
+ +#### `to` +
+スキーマ ```json { @@ -52,9 +65,9 @@ const response: Response = await client.send(new GetAcco } ``` -**`transfer_types`** - +
+#### `transfer_types` 取引明細の種別でフィルターします。 以下の種別を指定できます。 @@ -83,6 +96,9 @@ const response: Response = await client.send(new GetAcco - refund-exchange-outflow 交換による他マネーへの流出取引に対するキャンセル取引 +
+スキーマ + ```json { "type": "array", @@ -106,6 +122,8 @@ const response: Response = await client.send(new GetAcco } ``` +
+ 成功したときは @@ -120,31 +138,32 @@ 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-03-08T15:54:23.000000Z", + to="2025-08-27T16:07:48.000000Z", + page=9840, + per_page=5407, + shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + shop_name="lTKcMPi", + customer_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + customer_name="JX3LNKTomMc8wnROYRP673oHx5N3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX05IlCZ5tUd", + transaction_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + is_modified=True, + transaction_types=["exchange", "topup", "transfer", "cashback"], + transfer_types=["cashback", "transfer", "campaign", "coupon", "exchange"], # 取引明細の種類でフィルターします。 + description="店頭QRコードによる支払い" # 取引詳細説明文 +)) ``` ### Parameters -**`from`** - +#### `from` +
+スキーマ ```json { @@ -153,9 +172,12 @@ const response: Response = await client.send(new ListTransfe } ``` -**`to`** - +
+ +#### `to` +
+スキーマ ```json { @@ -164,9 +186,12 @@ const response: Response = await client.send(new ListTransfe } ``` -**`page`** - +
+#### `page` + +
+スキーマ ```json { @@ -175,9 +200,12 @@ const response: Response = await client.send(new ListTransfe } ``` -**`per_page`** - +
+ +#### `per_page` +
+スキーマ ```json { @@ -186,9 +214,12 @@ const response: Response = await client.send(new ListTransfe } ``` -**`shop_id`** - +
+#### `shop_id` + +
+スキーマ ```json { @@ -197,9 +228,12 @@ const response: Response = await client.send(new ListTransfe } ``` -**`shop_name`** - +
+ +#### `shop_name` +
+スキーマ ```json { @@ -208,9 +242,12 @@ const response: Response = await client.send(new ListTransfe } ``` -**`customer_id`** - +
+ +#### `customer_id` +
+スキーマ ```json { @@ -219,9 +256,12 @@ const response: Response = await client.send(new ListTransfe } ``` -**`customer_name`** - +
+#### `customer_name` + +
+スキーマ ```json { @@ -230,9 +270,12 @@ const response: Response = await client.send(new ListTransfe } ``` -**`transaction_id`** - +
+ +#### `transaction_id` +
+スキーマ ```json { @@ -241,9 +284,12 @@ const response: Response = await client.send(new ListTransfe } ``` -**`private_money_id`** - +
+#### `private_money_id` + +
+スキーマ ```json { @@ -252,9 +298,12 @@ const response: Response = await client.send(new ListTransfe } ``` -**`is_modified`** - +
+ +#### `is_modified` +
+スキーマ ```json { @@ -262,9 +311,12 @@ const response: Response = await client.send(new ListTransfe } ``` -**`transaction_types`** - +
+#### `transaction_types` + +
+スキーマ ```json { @@ -283,9 +335,9 @@ const response: Response = await client.send(new ListTransfe } ``` -**`transfer_types`** - +
+#### `transfer_types` 取引明細の種類でフィルターします。 以下の種類を指定できます。 @@ -311,6 +363,9 @@ const response: Response = await client.send(new ListTransfe 7. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -330,13 +385,16 @@ const response: Response = await client.send(new ListTransfe } ``` -**`description`** - +
+#### `description` 取引詳細を指定の取引詳細説明文でフィルターします。 取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -344,6 +402,8 @@ const response: Response = await client.send(new ListTransfe } ``` +
+ 成功したときは @@ -354,6 +414,7 @@ const response: Response = await client.send(new ListTransfe |status|type|ja|en| |---|---|---|---| |403|NULL|NULL|NULL| +|503|temporarily_unavailable||Service Unavailable| @@ -363,36 +424,37 @@ 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="VCnlZj6NtOwX2FI8Wr1369uaTF42abkgSmtEHAWzKVmwmqN4ax1Q1Fha0o1JxRbdO7sJMkOiIt9zNKCX0VzisXLLiEpULitiIsW57odiOHhS8DsZfAQRFK6oTTeP8tTTuInowX2TMHi2v", # 店舗名 + customer_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # エンドユーザーID + customer_name="Kbmu86aUF4jypKaAY4yQaiw0JpUpNfjrUKaUCU4cuncfOgZgC0vnz9vdHX3zI21M9POKUqkrXtAeLmERqX5bwDROtzb2hizqeaCyQXA4kt1s5IzgftNOCeiOWbpouk4VaYSYsKX6oU3L46cfTNsJ74FdhPrGorQztiuURWZ5r1OnryKkdpmMzmoITgipjScgSjEKE", # エンドユーザー名 + transaction_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 取引ID + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + is_modified=True, # キャンセルフラグ + transaction_types=["expire", "transfer"], # 取引種別 (複数指定可)、チャージ=topup、支払い=payment + next_page_cursor_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 次ページへ遷移する際に起点となるtransferのID + prev_page_cursor_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 前ページへ遷移する際に起点となるtransferのID + per_page=50, # 1ページ分の取引数 + transfer_types=["expire", "coupon", "payment", "campaign", "cashback", "exchange"], # 取引明細種別 (複数指定可) + description="店頭QRコードによる支払い", # 取引詳細説明文 + start="2023-09-05T22:11:46.000000Z", # 開始日時 + to="2022-08-09T13:51:58.000000Z" # 終了日時 +)) ``` ### Parameters -**`shop_id`** - - +#### `shop_id` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -400,13 +462,16 @@ const response: Response = await client.send(new ListTrans } ``` -**`shop_name`** - +
+#### `shop_name` 店舗名です。 フィルターとして使われ、入力された名前に部分一致する店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -414,13 +479,16 @@ const response: Response = await client.send(new ListTrans } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -428,13 +496,16 @@ const response: Response = await client.send(new ListTrans } ``` -**`customer_name`** - +
+#### `customer_name` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -442,13 +513,16 @@ const response: Response = await client.send(new ListTrans } ``` -**`transaction_id`** - +
+#### `transaction_id` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -456,13 +530,16 @@ const response: Response = await client.send(new ListTrans } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 指定したマネーでの取引が一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -470,23 +547,26 @@ const response: Response = await client.send(new ListTrans } ``` -**`is_modified`** - +
+#### `is_modified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`transaction_types`** - +
+#### `transaction_types` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -513,6 +593,9 @@ const response: Response = await client.send(new ListTrans 6. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -530,15 +613,18 @@ const response: Response = await client.send(new ListTrans } ``` -**`next_page_cursor_id`** - +
+#### `next_page_cursor_id` 次ページへ遷移する際に起点となるtransferのID(前ページの末尾要素のID)です。 本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 next_page_cursor_idのtransfer自体は次のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -546,9 +632,9 @@ next_page_cursor_idのtransfer自体は次のページには含まれません } ``` -**`prev_page_cursor_id`** - +
+#### `prev_page_cursor_id` 前ページへ遷移する際に起点となるtransferのID(次ページの先頭要素のID)です。 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 @@ -556,6 +642,9 @@ UUIDである場合は前のページが存在することを意味し、このp prev_page_cursor_idのtransfer自体は前のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -563,13 +652,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -578,9 +670,9 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`transfer_types`** - +
+#### `transfer_types` 取引明細の種類でフィルターします。 以下の種類を指定できます。 @@ -606,6 +698,9 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません 7. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -625,13 +720,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`description`** - +
+#### `description` 取引詳細を指定の取引詳細説明文でフィルターします。 取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -639,13 +737,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`from`** - +
+#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -653,13 +754,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -667,6 +771,8 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` +
+ 成功したときは @@ -677,6 +783,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..884d17d 100644 --- a/docs/user.md +++ b/docs/user.md @@ -1,29 +1,8 @@ # 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| - - - ---- +ユーザを表すデータです。 +エンドユーザー(Customer)と店舗ユーザー(Merchant)の2種類が存在します。 +エンドユーザーは認証の主体であり、マネー毎にウォレットを持ちます。 +店舗ユーザーは組織に所属し、同じくマネー毎にウォレットを持ちます。 diff --git a/docs/user_device.md b/docs/user_device.md index e6ad387..c660703 100644 --- a/docs/user_device.md +++ b/docs/user_device.md @@ -3,24 +3,24 @@ UserDeviceはユーザー毎のデバイスを管理します。 あるユーザーが使っている端末を区別する必要がある場合に用いられます。 これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。 - ## CreateUserDevice: ユーザーのデバイス登録 ユーザーのデバイスを新規に登録します -```typescript -const response: Response = await client.send(new CreateUserDevice({ - user_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ユーザーID - metadata: "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}" // ユーザーデバイスのメタデータ -})); +```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\"}" # ユーザーデバイスのメタデータ +)) ``` ### Parameters -**`user_id`** - +#### `user_id` +
+スキーマ ```json { @@ -29,12 +29,14 @@ const response: Response = await client.send(new CreateUserDevice({ } ``` -**`metadata`** - +
+#### `metadata` ユーザーのデバイス用の情報をメタデータを保持するために用います。 例: 端末の固有情報やブラウザのUser-Agent +
+スキーマ ```json { @@ -43,6 +45,8 @@ const response: Response = await client.send(new CreateUserDevice({ } ``` +
+ 成功したときは @@ -53,7 +57,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,18 +68,19 @@ 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 +)) ``` ### Parameters -**`user_device_id`** - +#### `user_device_id` +
+スキーマ ```json { @@ -84,6 +89,8 @@ const response: Response = await client.send(new GetUserDevice({ } ``` +
+ 成功したときは @@ -99,19 +106,19 @@ const response: Response = await client.send(new GetUserDevice({ ## ActivateUserDevice: デバイスの有効化 指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。 - -```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 +)) ``` ### Parameters -**`user_device_id`** - +#### `user_device_id` +
+スキーマ ```json { @@ -120,6 +127,8 @@ const response: Response = await client.send(new ActivateUserDevice( } ``` +
+ 成功したときは diff --git a/docs/webhook.md b/docs/webhook.md index 03c4152..ba34eb8 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -3,25 +3,25 @@ Webhookは特定のワーカータスクでの処理が完了した事を通知 WebHookにはURLとタスク名、有効化されているかを設定することが出来ます。 通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。 - ## 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ページ分の取得数 +)) ``` ### Parameters -**`page`** - - +#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -29,11 +29,14 @@ const response: Response = await client. } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -41,6 +44,8 @@ const response: Response = await client. } ``` +
+ 成功したときは @@ -63,21 +68,22 @@ 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: タスク名 + "Bixe" # url: URL +)) ``` ### Parameters -**`task`** - - +#### `task` ワーカータスク名を指定します +
+スキーマ + ```json { "type": "string", @@ -88,17 +94,22 @@ const response: Response = await client.send(new } ``` -**`url`** - +
+#### `url` 通知先のURLを指定します +
+スキーマ + ```json { "type": "string" } ``` +
+ 成功したときは @@ -120,20 +131,21 @@ 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 +)) ``` ### Parameters -**`webhook_id`** - - +#### `webhook_id` 削除するWebhookのIDです。 +
+スキーマ + ```json { "type": "string", @@ -141,6 +153,8 @@ const response: Response = await client.send(new } ``` +
+ 成功したときは @@ -156,23 +170,24 @@ 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="wgO", # URL + is_active=False, # 有効/無効 + task="bulk_shops" # タスク名 +)) ``` ### Parameters -**`webhook_id`** - - +#### `webhook_id` 更新するWebhookのIDです。 +
+スキーマ + ```json { "type": "string", @@ -180,33 +195,42 @@ const response: Response = await client.send(new } ``` -**`url`** - +
+#### `url` 変更するURLを指定します +
+スキーマ + ```json { "type": "string" } ``` -**`is_active`** - +
+#### `is_active` trueならWebhookによる通知が有効になり、falseなら無効になります +
+スキーマ + ```json { "type": "boolean" } ``` -**`task`** - +
+#### `task` 指定したタスクが終了したときにWebhookによる通知がされます +
+スキーマ + ```json { "type": "string", @@ -217,6 +241,8 @@ trueならWebhookによる通知が有効になり、falseなら無効になり } ``` +
+ 成功したときは diff --git a/partner.yaml b/partner.yaml index 3ecb963..f7e3e9a 100644 --- a/partner.yaml +++ b/partner.yaml @@ -7,56 +7,151 @@ openapi: '3.0.1' info: description: >- Partner APIs + title: Partner APIs - version: 0.0.0 + version: 24.3.26 tags: - name: Transaction + description: | + 取引を表すデータです。 + マネー(Private Money)のウォレット間の送金を記録し、キャンセルなどで状態が更新されることがあります。 + 取引種類として以下が存在します。 + + - topup: チャージ。Merchant => Customer送金 + - payment: 支払い。Customer => Merchant送金 + - transfer: 個人間譲渡。Customer => Customer送金 + - exchange: マネー間交換。1ユーザのウォレット間の送金(交換) + - expire: 退会時失効。退会時の払戻を伴わない残高失効履歴 + - cashback: 退会時払戻。退会時の払戻金額履歴 - name: Transfer - - name: Check description: | + 送金取引明細を表すデータです。 + マネー(Private Money)のウォレット間の送金記録を取得します。 + 取引(Transaction)は複数の送金明細(Transfer)で構成されています。 + 送金明細には送金元・送金先のアカウント情報、マネー額、ポイント額などが含まれます。 + 取引種別として、payment, topup, campaign-topup, transfer, exchange, refund-payment, refund-topup, cashback, expire等があります。 + - name: Check + description: |- 店舗ユーザが発行し、エンドユーザーがポケペイアプリから読み取ることでチャージ取引が発生するQRコードです。 チャージQRコードを解析すると次のようなURLになります(URLは環境によって異なります)。 `https://www-sandbox.pokepay.jp/checks/xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` - QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注意: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 + QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) + 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 - name: Bill - description: 支払いQRコード - - name: Cashtray description: | + 支払いQRコード(トークン)を表すデータです。 + URL文字列のまま利用されるケースとQR画像化して利用されるケースがあります。 + ログイン済みユーザアプリで読込むことで、支払い取引を作成します。 + 設定される支払い金額(amount)は、固定値とユーザによる自由入力の2パターンがあります。 + amountが空の場合は、ユーザによる自由入力で受け付けた金額で支払いを行います。 + 有効期限は比較的長命で利用される事例が多いです。 + + 複数マネー対応支払いQRコードについて: + オプショナルで複数のマネーを1つの支払いQRコードに設定可能です。 + その場合ユーザ側でどのマネーで支払うか指定可能です。 + 複数マネー対応支払いQRコードにはデフォルトのマネーウォレットを設定する必要があり、ユーザがマネーを明示的に選択しなかった場合はデフォルトのマネーによる支払いになります。 + - name: Cashtray + description: |- Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。 + 店舗ユーザはCashtrayの状態を監視することができ、取引の成否やエラー事由を知ることができます。 Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。 Cashtrayはワンタイムで、一度読み取りに成功するか、取引エラーになると失効します。 また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 - name: Customer + description: | + エンドユーザー(顧客)のウォレット情報を管理するためのAPIです。 + エンドユーザーのウォレット(アカウント)の作成・更新・取得を行います。 + ウォレットにはマネー残高(有償バリュー)とポイント残高(無償バリュー)があり、 + 有効期限別に金額が管理されています。 + また、外部システム連携用のexternal_idやメタデータを設定することも可能です。 + - name: CreditSession + description: | + クレジットカード決済セッションを管理するためのAPIです。 + Veritrans(決済ゲートウェイ)との連携でクレジットカード決済を実現します。 + セッションには有効期限があり、セッション作成後に取引の実行や売上確定(キャプチャ)を行います。 + 3Dセキュア認証にも対応しています。 - name: Organization + description: | + 組織(発行体・加盟店組織)を表すデータです。 + Pokepay上でマネーを発行する発行体や、店舗を束ねる加盟店組織を管理します。 + 組織には組織コード、組織名、本社情報などが含まれます。 + 組織配下に複数の店舗(Shop)を持つことができます。 - name: Shop + description: | + 店舗(加盟店)を表すデータです。 + Pokepayプラットフォーム上で支払いを受け取る店舗ユーザーを管理します。 + 店舗は組織(Organization)に所属し、店舗ごとにウォレットを持ちます。 + 店舗情報には住所、電話番号、メールアドレス、外部連携用IDなどが含まれます。 + 店舗ステータス(active/disabled)の管理も可能です。 - name: User + description: | + ユーザを表すデータです。 + エンドユーザー(Customer)と店舗ユーザー(Merchant)の2種類が存在します。 + エンドユーザーは認証の主体であり、マネー毎にウォレットを持ちます。 + 店舗ユーザーは組織に所属し、同じくマネー毎にウォレットを持ちます。 - name: Account + description: | + ウォレットを表すデータです。 + CustomerもMerchantも所有し、ウォレット間の送金は取引として記録されます。 + Customerのウォレットはマネー残高(有償バリュー)、ポイント残高(無償バリュー)の2種類の残高をもちます。 + また有効期限別で金額管理しており、有効期限はチャージ時のコンテキストによって決定されます。 + ユーザはマネー別に複数のウォレットを保有することが可能です。 + ただし1マネー1ウォレットのみであり、同一マネーのウォレットを複数所有することはできません。 - name: Private Money + description: | + Pokepay上で発行する電子マネーを表すデータです。 + 電子マネーは1つの発行体(Organization)によって発行されます。 + 電子マネーはCustomerやMerchantが所有するウォレット間を送金されます。 + 電子マネー残高はユーザが有償で購入するマネーと無償で付与されるポイントの2種類のバリューで構成され、 + それぞれ有効期限決定ロジックは電子マネーの設定に依存します。 - name: Bulk + description: | + 一括取引処理を表すデータです。 + CSVファイルのアップロードにより、複数件の取引をバッチ処理する非同期APIを提供します。 + 一括処理のステータス(submitted, examining, queued, processing, error, done)を監視できます。 + 処理完了時にコールバックURLへの通知も可能です。 + また、スケジュール実行時刻を指定して将来の時点で処理を実行することもできます。 - name: Event + description: | + 外部決済イベント(ExternalTransaction)を表すデータです。 + Pokepay外の決済(現金決済、クレジットカード決済等)を記録し、ポケペイのポイント還元を実現します。 + 外部決済イベントを作成することで、キャンペーン連動によるポイント付与が可能になります。 + イベントのキャンセル(返金)にも対応しており、紐付いたポイント還元も同時にキャンセルされます。 + リクエストIDによる羃等性の担保もサポートしています。 - name: Campaign - - name: Webhook description: | + 自動ポイント還元ルールの設定を表すデータです。 + Pokepay管理画面やPartnerSDK経由でルール登録、更新が可能です。 + 取引(Transaction)または外部決済イベント(ExternalTransaction)の内容によって還元するポイント額を計算し、自動で付与するルールを設定可能です。 + targetとして取引または外部決済イベントを選択して個別設定します。 + - name: Webhook + description: |- Webhookは特定のワーカータスクでの処理が完了した事を通知します。 WebHookにはURLとタスク名、有効化されているかを設定することが出来ます。 通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。 - name: Coupon description: | - Couponは支払い時に指定し、支払い処理の前にCouponに指定の方法で値引き処理を行います。 - Couponは特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 + 割引クーポンを表すデータです。 + クーポンをユーザが明示的に利用することによって支払い決済時の割引(固定金額 or 割引率)が適用されます。 + クーポンは支払い時に指定し、支払い処理の前にクーポンに指定の方法で値引き処理を行います。 + クーポン原資を負担する発行店舗を設定したり、配布先を指定することも可能です。 + また、特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 - name: UserDevice - description: | + description: |- UserDeviceはユーザー毎のデバイスを管理します。 あるユーザーが使っている端末を区別する必要がある場合に用いられます。 これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。 - name: BankPay - description: | + description: |- BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + - name: SevenBankATMSession + description: |- + セブンATMチャージの取引内容を照会するAPIを提供しています。 components: schemas: @@ -75,6 +170,57 @@ components: pattern: '^ok$' message: type: string + CreditSession: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + expires_at: + type: string + description: 有効期限 + format: date-time + CapturedCreditSession: + x-pokepay-schema-type: "response" + properties: + session_id: + type: string + format: uuid + description: キャプチャされたセッションのID + CreditSessionTransactionResult: + x-pokepay-schema-type: "response" + description: クレジットセッション取引の結果。Veritrans microserviceから返されたレスポンス。 + type: object + UserCard: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + title: 'カード識別子' + description: 'カードの一意識別子(UUID)' + card_number: + type: string + title: 'マスク済みカード番号' + description: 'マスクされたカード番号(例: 411111********11)' + registered_at: + type: string + format: date-time + title: '登録日時' + description: 'カードが登録された日時' + PaginatedUserCards: + x-pokepay-schema-type: "response" + properties: + rows: + type: array + items: + $ref: '#/components/schemas/UserCard' + count: + type: integer + title: '総件数' + description: 'フィルタ条件に一致する全カードの件数' + pagination: + $ref: '#/components/schemas/Pagination' Pagination: x-pokepay-schema-type: "response" properties: @@ -123,68 +269,137 @@ components: type: string format: uuid title: 'ウォレットID' + description: 'ウォレットID' name: type: string title: 'ウォレット名' + description: 'ウォレット名' is_suspended: type: boolean title: 'ウォレットが凍結されているかどうか' + description: |- + 管理者によってユーザのウォレットが凍結されているかどうかのフラグです。 + statusがsuspendedかどうかと同義です。 status: type: string enum: [active, suspended, pre-closed, closed] + title: 'ウォレット状態' + description: |- + ウォレットの状態です。active状態以外のウォレットでは取引が失敗します。 + + - active: 有効状態 + - suspended: 凍結状態。管理者によって凍結されている状態です。 + - pre-closed: 退会準備状態。退会の前にこの状態を経る必要があります。 + - closed: 退会状態。この状態では残高が0になっています。 private_money: $ref: '#/components/schemas/PrivateMoney' title: '設定マネー情報' + description: 'ウォレットが取り扱うマネーです。1つのウォレットが取り扱えるマネーは1つのみです。' AccountWithUser: x-pokepay-schema-type: "response" properties: id: type: string format: uuid + title: 'ウォレットID' + description: 'ウォレットID' name: type: string + title: 'ウォレット名' + description: 'ウォレット名' is_suspended: type: boolean + title: 'ウォレットが凍結されているかどうか' + description: |- + 管理者によってユーザのウォレットが凍結されているかどうかのフラグです。 + statusがsuspendedかどうかと同義です。 status: type: string enum: [active, suspended, pre-closed, closed] + title: 'ウォレット状態' + description: |- + ウォレットの状態です。active状態以外のウォレットでは取引が失敗します。 + + - active: 有効状態 + - suspended: 凍結状態。管理者によって凍結されている状態です。 + - pre-closed: 退会準備状態。退会の前にこの状態を経る必要があります。 + - closed: 退会状態。この状態では残高が0になっています。 private_money: $ref: '#/components/schemas/PrivateMoney' + title: '設定マネー情報' + description: 'ウォレットが取り扱うマネーです。1つのウォレットが取り扱えるマネーは1つのみです。' user: $ref: '#/components/schemas/User' + title: 'ユーザ情報' + description: 'ウォレットを所持しているユーザ情報です。' AccountDetail: x-pokepay-schema-type: "response" properties: id: type: string format: uuid + title: 'ウォレットID' + description: 'ウォレットID' name: type: string + title: 'ウォレット名' + description: 'ウォレット名' is_suspended: type: boolean + title: 'ウォレットが凍結されているかどうか' + description: |- + 管理者によってユーザのウォレットが凍結されているかどうかのフラグです。 + statusがsuspendedかどうかと同義です。 status: type: string enum: [active, suspended, pre-closed, closed] + title: 'ウォレット状態' + description: |- + ウォレットの状態です。active状態以外のウォレットでは取引が失敗します。 + + - active: 有効状態 + - suspended: 凍結状態。管理者によって凍結されている状態です。 + - pre-closed: 退会準備状態。退会の前にこの状態を経る必要があります。 + - closed: 退会状態。この状態では残高が0になっています。 balance: type: number format: decimal + title: '総残高' + description: 'ウォレットに入っている総残高です(マネー残高 + ポイント残高)。' money_balance: type: number format: decimal + title: 'マネー残高' + description: 'ウォレットに入っているマネー残高です。' point_balance: type: number format: decimal + title: 'ポイント残高' + description: 'ウォレットに入っているポイント残高です。' point_debt: type: number format: decimal + title: 'ポイント負債' + description: |- + ポイント負債とは、支払いによってポイントを消費した後で、それ以前のポイント付与取引をキャンセルした場合に生じる負のポイントです。 + 次回以降のポイント付与からポイント負債分が差し引かれます。 private_money: $ref: '#/components/schemas/PrivateMoney' + title: '設定マネー情報' + description: 'ウォレットが取り扱うマネーです。1つのウォレットが取り扱えるマネーは1つのみです。' user: $ref: '#/components/schemas/User' + title: 'ユーザ情報' + description: 'ウォレットを所持しているユーザ情報です。' external_id: type: string nullable: true maxLength: 50 + title: '外部ID' + description: |- + ウォレットに対して設定されている外部IDです。 + 外部IDはポケペイ外のシステムで発番されるもので、ポケペイのウォレットと紐付けて管理したい場合に使用されます。 + 任意で設定される項目で、最大50桁の文字列が指定できます。 ShopAccount: x-pokepay-schema-type: "response" properties: @@ -257,6 +472,10 @@ components: token: type: string title: 支払いQRコードを解析したときに出てくるURL + created_at: + type: string + format: date-time + title: 支払いQRコードの作成日時 Check: x-pokepay-schema-type: "response" properties: @@ -566,7 +785,7 @@ components: type: type: string title: '取引種別' - description: | + description: |- 各取引種別の値の意味は以下の通りです。 - topup: チャージ - payment: 支払い @@ -580,13 +799,13 @@ components: title: '返金された取引かどうか' sender: $ref: '#/components/schemas/User' - title: '送金者情報' + title: '送金ユーザ情報' sender_account: $ref: '#/components/schemas/Account' title: '送金ウォレット情報' receiver: $ref: '#/components/schemas/User' - title: '受取者情報' + title: '受取ユーザ情報' receiver_account: $ref: '#/components/schemas/Account' title: '受取ウォレット情報' @@ -599,7 +818,7 @@ components: point_amount: type: number title: '取引ポイント額(キャンペーン付与ポイント合算)' - description: | + description: |- 取引のポイント額です。 キャンペーンによるポイント付与額との合算値なので、元々の取引のポイント額のみを取り出したいときは `raw_point_amount` を参照してください。 チャージ取引の場合、point_amount = raw_point_amount + campaign_point_amount @@ -608,21 +827,28 @@ components: raw_point_amount: type: number title: '取引ポイント額' - description: | + description: |- 取引のポイント額です。 - キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 + 支払いの場合、キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 nullable: true campaign_point_amount: type: number title: 'キャンペーンによるポイント付与額' + description: |- + ポケペイのキャンペーン機能により付与されたポイント額です。 + 支払い取引、チャージ取引のどちらでもポイント付与される可能性があり、本来の支払い金額/チャージ金額と分離するためのフィールドです。 nullable: true done_at: type: string format: date-time title: '取引日時' + description: |- + 取引が起こった日時です。 description: type: string title: '取引説明文' + description: |- + 取引の説明文です。 TransactionDetail: x-pokepay-schema-type: "response" properties: @@ -633,7 +859,7 @@ components: type: type: string title: '取引種別' - description: | + description: |- 各取引種別の値の意味は以下の通りです。 - topup: チャージ - payment: 支払い @@ -647,13 +873,13 @@ components: title: '返金された取引かどうか' sender: $ref: '#/components/schemas/User' - title: '送金者情報' + title: '送金ユーザ情報' sender_account: $ref: '#/components/schemas/Account' title: '送金ウォレット情報' receiver: $ref: '#/components/schemas/User' - title: '受取者情報' + title: '受取ユーザ情報' receiver_account: $ref: '#/components/schemas/Account' title: '受取ウォレット情報' @@ -666,7 +892,7 @@ components: point_amount: type: number title: '取引ポイント額(キャンペーン付与ポイント合算)' - description: | + description: |- 取引のポイント額です。 キャンペーンによるポイント付与額との合算値なので、元々の取引のポイント額のみを取り出したいときは `raw_point_amount` を参照してください。 チャージ取引の場合、point_amount = raw_point_amount + campaign_point_amount @@ -675,23 +901,65 @@ components: raw_point_amount: type: number title: '取引ポイント額' - description: | + description: |- 取引のポイント額です。 - キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 + 支払いの場合、キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 campaign_point_amount: type: number title: 'キャンペーンによるポイント付与額' + description: |- + ポケペイのキャンペーン機能により付与されたポイント額です。 + 支払い取引、チャージ取引のどちらでもポイント付与される可能性があり、本来の支払い金額/チャージ金額と分離するためのフィールドです。 done_at: type: string format: date-time title: '取引日時' + description: |- + 取引が起こった日時です。 description: type: string title: '取引説明文' + description: |- + 取引の説明文です。 transfers: type: array items: $ref: '#/components/schemas/Transfer' + title: '取引明細一覧' + description: |- + 取引の内訳を表す取引明細の一覧です。 + 元々の取引に加えて、キャンペーンによるポイント付与や、キャンセル取引などが該当します。 + TransactionGroup: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + title: 'トランザクショングループID' + name: + type: string + maxLength: 64 + title: 'トランザクショングループ名' + created_at: + type: string + format: date-time + title: '作成日時' + updated_at: + type: string + format: date-time + title: '更新日時' + transactions: + type: array + items: + $ref: '#/components/schemas/Transaction' + title: 'グループに属する取引一覧' + BillTransaction: + x-pokepay-schema-type: "response" + properties: + transaction: + $ref: '#/components/schemas/Transaction' + bill: + $ref: '#/components/schemas/Bill' ShopWithMetadata: x-pokepay-schema-type: "response" properties: @@ -819,6 +1087,11 @@ components: type: string format: date-time title: バルク取引が更新された日時 + scheduled_at: + type: string + format: date-time + nullable: true + title: バルク取引の予約実行日時 BulkTransactionJob: x-pokepay-schema-type: "response" properties: @@ -921,33 +1194,74 @@ components: id: type: string format: uuid + title: '取引明細ID' + description: '取引明細IDです。' sender_account: $ref: '#/components/schemas/AccountWithoutPrivateMoneyDetail' + title: '送金元ウォレット' + description: '送金元ウォレット情報です。' receiver_account: $ref: '#/components/schemas/AccountWithoutPrivateMoneyDetail' + title: '送金先ウォレット' + description: '送金先ウォレット情報です。' amount: type: number format: decimal minimum: 0 + title: '送金総額 (マネー額 + ポイント額)' + description: '取引明細の送金総額です (マネー額 + ポイント額)。' money_amount: type: number format: decimal minimum: 0 + title: '送金マネー額' + description: '取引明細のマネーのみの送金額です。' point_amount: type: number format: decimal minimum: 0 + title: '送金ポイント額' + description: '取引明細のポイントのみの送金額です。' done_at: type: string format: date-time + title: '送金日時' + description: |- + 送金が起こった日時です。 + 1つの取引の中でも、ポイント付与やキャンセルは遅れて行なわれるため、親取引の取引日時とは異なることがあります。 type: type: string enum: [topup, payment, refund-topup, refund-payment, transfer, exchange-inflow, exchange-outflow, refund-exchange-inflow, refund-exchange-outflow, campaign-topup, refund-campaign, use-coupon, refund-coupon, cashback, expire] + title: '取引明細種別' + description: |- + 各取引明細種別の値の意味は以下の通りです。 + - topup: チャージ + - payment: 支払い + - refund-topup: チャージ取引に対するキャンセル + - refund-payment: 支払い取引に対するキャンセル + - transfer: 個人間送金 + - exchange-inflow: マネー間交換 (他マネーのウォレットからの流入) + - exchange-outflow: マネー間交換 (他マネーのウォレットへのの流出) + - refund-exchange-inflow: マネー間交換のキャンセル (他マネーのウォレットからの流入のキャンセル) + - refund-exchange-outflow: マネー間交換のキャンセル (他マネーのウォレットへのの流出のキャンセル) + - campaign-topup: キャンペーンによるポイント付与 + - refund-campaign-topup: キャンペーンによるポイント付与のキャンセル + - use-coupon: クーポンによる値引き処理 + - cashback: ウォレット退会時の払い戻し処理 + - expire: ウォレット退会時の残高失効処理 description: type: string + title: '取引明細説明文' + description: |- + 取引明細の説明文です。 transaction_id: type: string format: uuid + title: '親取引ID' + description: |- + 親取引のIDです。 + 取引明細(Transfer)は親取引(Transaction)に対して複数存在します。 + ExternalTransaction: x-pokepay-schema-type: "response" properties: @@ -1016,7 +1330,7 @@ components: $ref: '#/components/schemas/TransactionDetail' nullable: true title: 関連ポケペイ取引詳細 - description: | + description: |- ポケペイ外取引と連動して作られたポケペイ取引の取引詳細です。 例えば、キャンペーンによるポイント付与取引やキャンセル状況などの情報が含まれます。 ポケペイ取引が存在しない場合はnullが設定されます。 @@ -1279,6 +1593,10 @@ components: type: integer minimum: 0 + BankDeleted: + x-pokepay-schema-type: "response" + properties: {} + PaginatedTransaction: x-pokepay-schema-type: "response" properties: @@ -1318,6 +1636,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: @@ -1647,7 +1991,7 @@ components: is_hidden: type: boolean title: 'クーポン一覧に掲載されるかどうか' - description: | + description: |- アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 is_public: @@ -1663,6 +2007,20 @@ components: token: type: string title: 'クーポンを特定するためのトークン' + num_recipients_cap: + type: integer + nullable: true + title: 'クーポンを受け取ることができるユーザ数上限' + description: |- + クーポンを受け取ることができるユーザ数の上限が設定されているクーポンに対してのみ正の整数が返され、 + 上限が設定されていないクーポンではnullが返されます。 + num_recipients: + type: integer + nullable: true + title: 'クーポンを受け取ったユーザ数' + description: |- + クーポンを受け取ることができるユーザ数の上限が設定されているクーポンに対してのみ、受け取り済みのユーザ数が表示されます。 + 上限が設定されていないクーポンではnullが返されます。 CouponDetail: x-pokepay-schema-type: "response" properties: @@ -1721,7 +2079,7 @@ components: is_hidden: type: boolean title: 'クーポン一覧に掲載されるかどうか' - description: | + description: |- アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 is_public: @@ -1749,6 +2107,20 @@ components: private_money: $ref: '#/components/schemas/PrivateMoney' title: 'クーポンのマネー' + num_recipients_cap: + type: integer + nullable: true + title: 'クーポンを受け取ることができるユーザ数上限' + description: |- + クーポンを受け取ることができるユーザ数の上限が設定されているクーポンに対してのみ正の整数が返され、 + 上限が設定されていないクーポンではnullが返されます。 + num_recipients: + type: integer + nullable: true + title: 'クーポンを受け取ったユーザ数' + description: |- + クーポンを受け取ることができるユーザ数の上限が設定されているクーポンに対してのみ、受け取り済みのユーザ数が表示されます。 + 上限が設定されていないクーポンではnullが返されます。 PaginatedCoupons: x-pokepay-schema-type: "response" properties: @@ -1774,6 +2146,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: @@ -1951,6 +2356,12 @@ components: application/json: schema: $ref: '#/components/schemas/Conflict' + TemporarilyUnavailable: + description: Temporarily unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/TemporarilyUnavailable' UserStatsOperationServiceUnavailable: description: User stats operation service is temporarily unavailable content: @@ -1990,58 +2401,243 @@ paths: $ref: '#/components/schemas/Echo' '400': $ref: '#/components/responses/BadRequest' - /user: - get: + /credit-sessions: + post: + x-pokepay-operator-name: "PostCreditSession" + x-pokepay-allow-server-side: true tags: - - User + - CreditSession + summary: Create credit session + operationId: createCreditSession + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - customer_id + - private_money_id + - card_id + - expires_at + properties: + customer_id: + type: string + format: uuid + private_money_id: + type: string + format: uuid + card_id: + type: string + format: uuid + expires_at: + type: string + format: date-time + description: |- + セッション有効期限 + 制約: リクエスト時刻から30日以内 + 例: "2024-01-15T10:30:00+00:00" + request_id: + type: string + format: uuid + description: |- + 冪等性キー + 同一のrequest_idを持つリクエストは冪等に処理されます。 responses: '200': - description: OK + description: Credit session created content: application/json: schema: - $ref: '#/components/schemas/AdminUserWithShopsAndPrivateMoneys' - /users/{user_id}/accounts: - get: - tags: - - Account - summary: 'エンドユーザー、店舗ユーザーのウォレット一覧を表示する' - description: ユーザーIDを指定してそのユーザーのウォレット一覧を取得します。 - x-pokepay-operator-name: "ListUserAccounts" + $ref: '#/components/schemas/CreditSession' + '400': + $ref: '#/components/responses/BadRequest' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' + /credit-sessions/{session_id}/transactions: + post: + x-pokepay-operator-name: "CreateCreditSessionTransaction" x-pokepay-allow-server-side: true + tags: + - CreditSession + summary: Create transaction with credit session + description: |- + クレジットセッションを使用して取引を作成します。 + セッションIDと取引金額を指定します。 + operationId: createCreditSessionTransaction parameters: - in: path - name: user_id + name: session_id required: true schema: type: string format: uuid - title: 'ユーザーID' + title: 'クレジットセッションID' description: |- - ユーザーIDです。 + クレジットセッションID - 指定したユーザーIDのウォレット一覧を取得します。パートナーキーと紐づく組織が発行しているマネーのウォレットのみが表示されます。 + 事前に作成されたクレジットセッションのIDを指定します。 requestBody: required: true content: application/json: schema: + type: object + required: ["amount"] properties: - page: - type: integer - minimum: 1 - title: 'ページ番号' - description: 取得したいページ番号です。デフォルト値は1です。 - per_page: - type: integer - minimum: 1 - title: '1ページ分の取引数' - description: 1ページ当たりのウォレット数です。デフォルト値は50です。 - responses: - '200': - description: OK - content: - application/json: + amount: + type: number + minimum: 0 + description: |- + 取引金額 + 支払い金額を指定します。 + shop_id: + type: string + format: uuid + description: |- + 店舗ID + 支払いを行う店舗のIDを指定します。 + description: + type: string + maxLength: 200 + default: "" + description: |- + 取引説明 + 取引の説明や備考を指定します。省略時は空文字列になります。 + request_id: + type: string + format: uuid + description: |- + 冪等性キー + 同一のrequest_idを持つリクエストは冪等に処理されます。 + responses: + '200': + description: Transaction created successfully + content: + application/json: + schema: + $ref: '#/components/schemas/CreditSessionTransactionResult' + '400': + $ref: '#/components/responses/BadRequest' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' + /credit-sessions/{session_id}/capture: + post: + x-pokepay-operator-name: "CaptureCreditSession" + x-pokepay-allow-server-side: true + tags: + - CreditSession + summary: Capture credit session + description: |- + クレジットセッションの売上確定(キャプチャ)を行います。 + セッション内で行われた支払いの合計金額をクレジットカードに請求します。 + operationId: captureCreditSession + parameters: + - in: path + name: session_id + required: true + schema: + type: string + format: uuid + title: 'クレジットセッションID' + description: |- + クレジットセッションID + + キャプチャ対象のクレジットセッションのIDを指定します。 + requestBody: + required: false + content: + application/json: + schema: + type: object + properties: + request_id: + type: string + format: uuid + description: |- + 冪等性キー + 同一のrequest_idを持つリクエストは冪等に処理されます。 + responses: + '200': + description: Credit session captured successfully + content: + application/json: + schema: + $ref: '#/components/schemas/CapturedCreditSession' + '400': + $ref: '#/components/responses/BadRequest' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' + /user: + get: + tags: + - User + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/AdminUserWithShopsAndPrivateMoneys' + /users/{user_id}/accounts: + get: + tags: + - Account + summary: 'エンドユーザー、店舗ユーザーのウォレット一覧を表示する' + description: ユーザーIDを指定してそのユーザーのウォレット一覧を取得します。 + x-pokepay-operator-name: "ListUserAccounts" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: user_id + required: true + schema: + type: string + format: uuid + title: 'ユーザーID' + description: |- + ユーザーIDです。 + + 指定したユーザーIDのウォレット一覧を取得します。パートナーキーと紐づく組織が発行しているマネーのウォレットのみが表示されます。 + requestBody: + required: true + content: + application/json: + schema: + properties: + page: + type: integer + minimum: 1 + title: 'ページ番号' + description: 取得したいページ番号です。デフォルト値は1です。 + per_page: + type: integer + minimum: 1 + title: '1ページ分の取引数' + description: 1ページ当たりのウォレット数です。デフォルト値は50です。 + responses: + '200': + description: OK + content: + application/json: schema: $ref: '#/components/schemas/PaginatedAccountDetails' '400': @@ -2856,7 +3452,9 @@ paths: nullable: true format: decimal title: '支払い額' - description: 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + description: |- + 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 private_money_id: type: string format: uuid @@ -2885,6 +3483,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 +3544,7 @@ paths: nullable: true format: decimal title: '支払い額' - description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 description: type: string maxLength: 200 @@ -2958,7 +3588,7 @@ paths: minimum: 0 format: decimal title: '付与マネー額' - description: | + description: |- チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 point_amount: @@ -2966,7 +3596,7 @@ paths: minimum: 0 format: decimal title: '付与ポイント額' - description: | + description: |- チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 account_id: @@ -2981,7 +3611,7 @@ paths: is_onetime: type: boolean title: 'ワンタイムかどうかのフラグ' - description: | + description: |- チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 @@ -2989,7 +3619,7 @@ paths: type: integer nullable: true title: 'ワンタイムでない場合の最大読み取り回数' - description: | + description: |- 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 デフォルト値はNULLです。 @@ -2998,7 +3628,7 @@ paths: type: string format: date-time title: 'チャージQRコード自体の失効日時' - description: | + description: |- チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 @@ -3006,7 +3636,7 @@ paths: type: string format: date-time title: 'チャージQRコードによって付与されるポイント残高の有効期限' - description: | + description: |- チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 @@ -3014,7 +3644,7 @@ paths: type: integer minimum: 1 title: 'チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)' - description: | + description: |- チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 @@ -3023,7 +3653,7 @@ paths: type: string format: uuid title: 'ポイント額を負担する店舗のウォレットID' - description: | + description: |- ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 responses: @@ -3065,7 +3695,7 @@ paths: type: string format: uuid title: 'マネーID' - description: | + description: |- チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 organization_code: type: string @@ -3078,48 +3708,48 @@ paths: type: string format: date-time title: '有効期限の期間によるフィルター(開始時点)' - description: | + description: |- 有効期限の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 expires_to: type: string format: date-time title: '有効期限の期間によるフィルター(終了時点)' - description: | + description: |- 有効期限の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 created_from: type: string format: date-time title: '作成日時の期間によるフィルター(開始時点)' - description: | + description: |- 作成日時の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 created_to: type: string format: date-time title: '作成日時の期間によるフィルター(終了時点)' - description: | + description: |- 作成日時の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 issuer_shop_id: type: string format: uuid title: '発行店舗ID' - description: | + description: |- チャージQRコードを発行した店舗IDによってフィルターします。 デフォルトでは未指定です。 description: type: string title: 'チャージQRコードの説明文' - description: | + description: |- チャージQRコードの説明文(description)によってフィルターします。 部分一致(前方一致)したものを表示します。 デフォルトでは未指定です。 is_onetime: type: boolean title: 'ワンタイムのチャージQRコードかどうか' - description: | + description: |- チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 `true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 未指定の場合はフィルターしません。 @@ -3127,7 +3757,7 @@ paths: is_disabled: type: boolean title: '無効化されたチャージQRコードかどうか' - description: | + description: |- チャージQRコードが無効化されているかどうかでフィルターします。 `true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 未指定の場合はフィルターしません。 @@ -3204,7 +3834,7 @@ paths: minimum: 0 format: decimal title: '付与マネー額' - description: | + description: |- チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 point_amount: @@ -3212,21 +3842,21 @@ paths: minimum: 0 format: decimal title: '付与ポイント額' - description: | + description: |- チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 description: type: string maxLength: 200 title: 'チャージQRコードの説明文' - description: | + description: |- チャージQRコードの説明文です。 チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 example: 'test check' is_onetime: type: boolean title: 'ワンタイムかどうかのフラグ' - description: | + description: |- チャージQRコードが一度の読み取りで失効するときに`true`にします。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 @@ -3234,7 +3864,7 @@ paths: type: integer nullable: true title: 'ワンタイムでない場合の最大読み取り回数' - description: | + description: |- 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 @@ -3242,7 +3872,7 @@ paths: type: string format: date-time title: 'チャージQRコード自体の失効日時' - description: | + description: |- チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 @@ -3251,7 +3881,7 @@ paths: format: date-time nullable: true title: 'チャージQRコードによって付与されるポイント残高の有効期限' - description: | + description: |- チャージQRコードによって付与されるポイント残高の有効起源を指定します。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 @@ -3260,7 +3890,7 @@ paths: minimum: 1 nullable: true title: 'チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)' - description: | + description: |- チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 @@ -3270,12 +3900,12 @@ paths: type: string format: uuid title: 'ポイント額を負担する店舗のウォレットID' - description: | + description: |- ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 is_disabled: type: boolean title: '無効化されているかどうかのフラグ' - description: | + description: |- チャージQRコードを無効化するときに`true`にします。 `false`の場合は無効化されているチャージQRコードを再有効化します。 responses: @@ -3535,6 +4165,76 @@ paths: $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/UnprocessableEntity' + /transaction-groups: + post: + tags: + - Transaction + summary: 'トランザクショングループを作成する' + description: |- + 複数の取引を1つのグループとして管理できるようにします。 + x-pokepay-operator-name: "CreateTransactionGroup" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - name + properties: + name: + type: string + maxLength: 64 + description: |- + 作成するトランザクショングループの名称です。 + "pokepay" で始まる文字列は予約済みのため使用できません。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionGroup' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /transaction-groups/{uuid}: + get: + tags: + - Transaction + summary: 'トランザクショングループを取得する' + description: 指定したトランザクショングループの詳細を返します。 + x-pokepay-operator-name: "ShowTransactionGroup" + x-pokepay-allow-server-side: true + parameters: + - name: uuid + in: path + required: true + schema: + type: string + format: uuid + description: 取得したいトランザクショングループID + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionGroup' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' /transactions-v2: get: tags: @@ -3713,6 +4413,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 +4672,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -3833,7 +4692,7 @@ paths: tags: - Check summary: 'チャージQRコードを読み取ることでチャージする' - description: | + description: |- 通常チャージQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがチャージQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 エンドユーザーから受け取ったチャージ用QRコードのIDをエンドユーザーIDと共に渡すことでチャージ取引が作られます。 @@ -3872,6 +4731,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -3893,7 +4753,7 @@ paths: tags: - Transaction summary: '支払いする' - description: | + description: |- 支払取引を作成します。 支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 x-pokepay-operator-name: "CreatePaymentTransaction" @@ -3956,8 +4816,97 @@ paths: 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 example: |- {"key":"value"} - products: - $ref: '#/components/schemas/Products' + products: + $ref: '#/components/schemas/Products' + 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] + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + example: 'point-preferred' + coupon_id: + type: string + format: uuid + title: 'クーポンID' + description: |- + 支払いに対して適用するクーポンのIDを指定します。 + 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 @@ -3968,7 +4917,22 @@ 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] + 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 +4944,8 @@ paths: $ref: '#/components/responses/BadRequest' '403': $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' /transactions/cpm: @@ -3987,7 +4953,7 @@ paths: tags: - Transaction summary: 'CPMトークンによる取引作成' - description: | + description: |- CPMトークンにより取引を作成します。 CPMトークンに設定されたスコープの取引を作ることができます。 x-pokepay-operator-name: "CreateCpmTransaction" @@ -4054,7 +5020,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,12 +5105,94 @@ 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: - Transaction summary: '個人間送金' - description: | + description: |- エンドユーザー間での送金取引(個人間送金)を作成します。 個人間送金で送れるのはマネーのみで、ポイントを送ることはできません。送金元のマネー残高のうち、有効期限が最も遠いものから順に送金されます。 x-pokepay-operator-name: "CreateTransferTransaction" @@ -4203,6 +5265,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -4255,6 +5318,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -4333,6 +5397,37 @@ paths: title: 'マネーID' description: |- マネーIDです。 マネーを指定します。 + callback_url: + type: string + nullable: true + format: url + title: コールバックURL + description: |- + 一括取引タスクが終了したときに通知されるコールバックURLです。これはオプショナルなパラメータで、未指定の場合は通知されません。 + + 指定したURLに対して、以下の内容のリクエストがPOSTメソッドで送信されます。 + + リクエスト例: + { + "bulk_transaction_id": "c9a0b2c0-e8d0-4a7f-9b1d-2f0c3e1a8b7a", + "request_id": "1640e29f-157a-46e2-af05-c402726cbf2b", + "completed_at": "2025-09-26T14:30:00Z", + "status": "done", + "success_count": 98, + "total_count": 100 + } + + - bulk_transaction_id: 一括取引タスクのタスクID + - request_id: 本APIにクライアント側から指定したrequest_id + - completed_at: 完了時刻 + - status: 終了時の状態。done (完了状態) か error (エラー) のいずれか + - success_count: 成功件数 + - total_count: 総件数 + + リトライ戦略について: + 対象URLにPOSTした結果、500, 502, 503, 504エラーを受け取ったとき、またはタイムアウト (10秒)したときに、最大3回までリトライします。 + 成功通知が複数回送信されることもありえるため、request_idで排他処理を行なってください。 + responses: '200': description: OK @@ -4470,7 +5565,7 @@ paths: tags: - Event summary: 'ポケペイ外部取引を作成する' - description: | + description: |- ポケペイ外部取引を作成します。 ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。 @@ -4549,6 +5644,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 @@ -5100,14 +6203,14 @@ paths: pattern: '^[a-zA-Z0-9-]*$' maxLength: 32 title: '組織コード' - description: | + description: |- このパラメータを渡すとその組織の店舗のみが返され、省略すると加盟店も含む店舗が返されます。 example: 'pocketchange' private_money_id: type: string format: uuid title: 'マネーID' - description: | + description: |- このパラメータを渡すとそのマネーのウォレットを持つ店舗のみが返されます。 name: type: string @@ -5115,44 +6218,44 @@ paths: maxLength: 256 title: '店舗名' example: 'oxスーパー三田店' - description: | + description: |- このパラメータを渡すとその名前の店舗のみが返されます。 postal_code: type: string pattern: '^[0-9]{3}-?[0-9]{4}$' title: '店舗の郵便番号' - description: | + description: |- このパラメータを渡すとその郵便番号が登録された店舗のみが返されます。 address: type: string maxLength: 256 title: '店舗の住所' example: '東京都港区芝...' - description: | + description: |- このパラメータを渡すとその住所が登録された店舗のみが返されます。 tel: type: string pattern: '^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$' title: '店舗の電話番号' - description: | + description: |- このパラメータを渡すとその電話番号が登録された店舗のみが返されます。 email: type: string format: email maxLength: 256 title: '店舗のメールアドレス' - description: | + description: |- このパラメータを渡すとそのメールアドレスが登録された店舗のみが返されます。 external_id: type: string maxLength: 36 title: '店舗の外部ID' - description: | + description: |- このパラメータを渡すとその外部IDが登録された店舗のみが返されます。 with_disabled: type: boolean title: '無効な店舗を含める' - description: | + description: |- このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。 page: type: integer @@ -5631,6 +6734,54 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' + /customers/{customer_id}/cards: + get: + tags: + - Customer + summary: 'エンドユーザーのクレジットカード一覧を取得する' + description: |- + エンドユーザーのクレジットカード一覧を取得します。 + 3D Secure認証済みのカードのみが返されます。 + idはcredit-sessions作成時に使用できます。 + x-pokepay-operator-name: "GetCustomerCards" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: customer_id + required: true + schema: + type: string + format: uuid + title: 'エンドユーザーID' + description: エンドユーザーのIDです。 + requestBody: + required: true + content: + application/json: + schema: + properties: + page: + type: integer + minimum: 1 + title: 'ページ番号' + description: 取得したいページ番号です。デフォルト値は1です。 + per_page: + type: integer + minimum: 1 + maximum: 100 + title: '1ページ分の要素数' + description: 1ページ当たりの要素数です。デフォルト値は30です。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedUserCards' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' /customers/transactions: get: tags: @@ -5823,7 +6974,7 @@ paths: tags: - Cashtray summary: 'Cashtrayを作る' - description: | + description: |- Cashtrayを作成します。 エンドユーザーに対して支払いまたはチャージを行う店舗の情報(店舗ユーザーIDとマネーID)と、取引金額が必須項目です。 @@ -6076,7 +7227,7 @@ paths: tags: - Campaign summary: 'ポイント付与キャンペーンを作る' - description: | + description: |- ポイント付与キャンペーンを作成します。 x-pokepay-operator-name: "CreateCampaign" x-pokepay-allow-server-side: true @@ -6086,6 +7237,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 +7511,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 +7680,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 +8063,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ページ分の取得数' @@ -6955,7 +8127,7 @@ paths: tags: - Campaign summary: 'ポイント付与キャンペーンを更新する' - description: | + description: |- ポイント付与キャンペーンを更新します。 x-pokepay-operator-name: "UpdateCampaign" x-pokepay-allow-server-side: true @@ -6976,6 +8148,8 @@ paths: content: application/json: schema: + x-pokepay-conditional-parameters: + xor: [applicable_shop_ids, blacklisted_shop_ids] properties: name: title: 'キャンペーン名' @@ -7238,6 +8412,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 +8585,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 +8981,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" @@ -7975,7 +9211,7 @@ paths: type: string format: json title: ユーザーデバイスのメタデータ - description: | + description: |- ユーザーのデバイス用の情報をメタデータを保持するために用います。 例: 端末の固有情報やブラウザのUser-Agent example: '{"user_agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"}' @@ -8032,7 +9268,7 @@ paths: tags: - UserDevice summary: デバイスの有効化 - description: | + description: |- 指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。 parameters: - in: path @@ -8067,7 +9303,7 @@ paths: tags: - BankPay summary: 銀行口座の登録 - description: | + description: |- 銀行口座の登録を始めるAPIです。レスポンスに含まれるredirect_urlをユーザーの端末で開き銀行を登録します。 ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。 @@ -8167,6 +9403,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 +9479,10 @@ paths: type: string format: uuid title: '銀行ID' + receiver_user_id: + type: string + format: uuid + title: '受け取りユーザーID (デフォルトは自身)' request_id: type: string format: uuid @@ -8242,41 +9522,41 @@ paths: type: string format: uuid title: '対象クーポンのマネーID' - description: | + description: |- 対象クーポンのマネーIDです(必須項目)。 存在しないマネーIDを指定した場合はprivate_money_not_foundエラー(422)が返ります。 coupon_id: type: string title: 'クーポンID' - description: | + description: |- 指定されたクーポンIDで結果をフィルターします。 部分一致(前方一致)します。 coupon_name: type: string title: 'クーポン名' - description: | + description: |- 指定されたクーポン名で結果をフィルターします。 issued_shop_name: type: string title: '発行店舗名' - description: | + description: |- 指定された発行店舗で結果をフィルターします。 available_shop_name: type: string title: '利用可能店舗名' - description: | + description: |- 指定された利用可能店舗で結果をフィルターします。 available_from: type: string format: date-time title: '利用可能期間 (開始日時)' - description: | + description: |- 利用可能期間でフィルターします。フィルターの開始日時をISO8601形式で指定します。 available_to: type: string format: date-time title: '利用可能期間 (終了日時)' - description: | + description: |- 利用可能期間でフィルターします。フィルターの終了日時をISO8601形式で指定します。 page: type: integer @@ -8360,7 +9640,7 @@ paths: is_hidden: type: boolean title: 'クーポン一覧に掲載されるかどうか' - description: | + description: |- アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 is_public: @@ -8394,6 +9674,10 @@ paths: format: uuid title: "ストレージID" description: "Storage APIでアップロードしたクーポン画像のStorage IDを指定します" + num_recipients_cap: + type: integer + minimum: 1 + title: 'クーポンを受け取ることができるユーザ数上限' responses: '200': description: OK @@ -8505,7 +9789,7 @@ paths: is_hidden: type: boolean title: 'クーポン一覧に掲載されるかどうか' - description: | + description: |- アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 is_public: @@ -8537,6 +9821,10 @@ paths: format: uuid title: "ストレージID" description: "Storage APIでアップロードしたクーポン画像のStorage IDを指定します" + num_recipients_cap: + type: integer + minimum: 1 + title: 'クーポンを受け取ることができるユーザ数上限' responses: '200': description: OK @@ -8552,3 +9840,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..1cadbac 100644 --- a/pokepay/__init__.py +++ b/pokepay/__init__.py @@ -7,12 +7,15 @@ from pokepay.response.response import * from pokepay.request.get_ping import * from pokepay.request.send_echo import * +from pokepay.request.post_credit_session import * +from pokepay.request.create_credit_session_transaction import * +from pokepay.request.capture_credit_session import * 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 +25,25 @@ 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.create_transaction_group import * +from pokepay.request.show_transaction_group 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 +52,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 * @@ -51,20 +65,43 @@ from pokepay.request.get_private_moneys import * from pokepay.request.get_private_money_organization_summaries import * from pokepay.request.get_private_money_summary import * +from pokepay.request.get_customer_cards import * from pokepay.request.list_customer_transactions import * 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.credit_session import * +from pokepay.response.captured_credit_session import * +from pokepay.response.credit_session_transaction_result import * +from pokepay.response.user_card import * +from pokepay.response.paginated_user_cards import * from pokepay.response.pagination import * from pokepay.response.admin_user_with_shops_and_private_moneys import * from pokepay.response.account import * @@ -75,6 +112,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 +122,31 @@ from pokepay.response.organization import * from pokepay.response.transaction import * from pokepay.response.transaction_detail import * +from pokepay.response.transaction_group 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 +160,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/capture_credit_session.py b/pokepay/request/capture_credit_session.py new file mode 100644 index 0000000..eb3524e --- /dev/null +++ b/pokepay/request/capture_credit_session.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.captured_credit_session import CapturedCreditSession + + +class CaptureCreditSession(PokepayRequest): + def __init__(self, session_id, **rest_args): + self.path = "/credit-sessions" + "/" + session_id + "/capture" + 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 = CapturedCreditSession 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_credit_session_transaction.py b/pokepay/request/create_credit_session_transaction.py new file mode 100644 index 0000000..43a1687 --- /dev/null +++ b/pokepay/request/create_credit_session_transaction.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.credit_session_transaction_result import CreditSessionTransactionResult + + +class CreateCreditSessionTransaction(PokepayRequest): + def __init__(self, session_id, amount, **rest_args): + self.path = "/credit-sessions" + "/" + session_id + "/transactions" + self.method = "POST" + self.body_params = {"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 = CreditSessionTransactionResult 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_group.py b/pokepay/request/create_transaction_group.py new file mode 100644 index 0000000..060af1c --- /dev/null +++ b/pokepay/request/create_transaction_group.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.transaction_group import TransactionGroup + + +class CreateTransactionGroup(PokepayRequest): + def __init__(self, name): + self.path = "/transaction-groups" + self.method = "POST" + self.body_params = {"name": name} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = TransactionGroup 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_customer_cards.py b/pokepay/request/get_customer_cards.py new file mode 100644 index 0000000..276493b --- /dev/null +++ b/pokepay/request/get_customer_cards.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.paginated_user_cards import PaginatedUserCards + + +class GetCustomerCards(PokepayRequest): + def __init__(self, customer_id, **rest_args): + self.path = "/customers" + "/" + customer_id + "/cards" + 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 = PaginatedUserCards 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/post_credit_session.py b/pokepay/request/post_credit_session.py new file mode 100644 index 0000000..b4e5736 --- /dev/null +++ b/pokepay/request/post_credit_session.py @@ -0,0 +1,18 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.credit_session import CreditSession + + +class PostCreditSession(PokepayRequest): + def __init__(self, customer_id, private_money_id, card_id, expires_at, **rest_args): + self.path = "/credit-sessions" + self.method = "POST" + self.body_params = {"customer_id": customer_id, + "private_money_id": private_money_id, + "card_id": card_id, + "expires_at": expires_at} + self.body_params.update(rest_args) + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = CreditSession 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/show_transaction_group.py b/pokepay/request/show_transaction_group.py new file mode 100644 index 0000000..bdb4349 --- /dev/null +++ b/pokepay/request/show_transaction_group.py @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.request.request import PokepayRequest +from pokepay.response.transaction_group import TransactionGroup + + +class ShowTransactionGroup(PokepayRequest): + def __init__(self, uuid): + self.path = "/transaction-groups" + "/" + uuid + self.method = "GET" + self.body_params = {} + + if 'start' in self.body_params: + self.body_params['from'] = self.body_params.pop('start') + self.response_class = TransactionGroup 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.py b/pokepay/response/bill.py index e624232..ab8ffa8 100644 --- a/pokepay/response/bill.py +++ b/pokepay/response/bill.py @@ -14,6 +14,7 @@ def __init__(self, response, response_body): self.account = response_body['account'] self.is_disabled = response_body['is_disabled'] self.token = response_body['token'] + self.created_at = response_body['created_at'] def id(self): return self.id @@ -39,3 +40,6 @@ def is_disabled(self): def token(self): return self.token + def created_at(self): + return self.created_at + 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/bulk_transaction.py b/pokepay/response/bulk_transaction.py index efc7f3a..d83019a 100644 --- a/pokepay/response/bulk_transaction.py +++ b/pokepay/response/bulk_transaction.py @@ -15,6 +15,7 @@ def __init__(self, response, response_body): self.error_lineno = response_body['error_lineno'] self.submitted_at = response_body['submitted_at'] self.updated_at = response_body['updated_at'] + self.scheduled_at = response_body['scheduled_at'] def id(self): return self.id @@ -43,3 +44,6 @@ def submitted_at(self): def updated_at(self): return self.updated_at + def scheduled_at(self): + return self.scheduled_at + 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/captured_credit_session.py b/pokepay/response/captured_credit_session.py new file mode 100644 index 0000000..3cac451 --- /dev/null +++ b/pokepay/response/captured_credit_session.py @@ -0,0 +1,13 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class CapturedCreditSession(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.session_id = response_body['session_id'] + + def session_id(self): + return self.session_id + 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..32fa0e1 --- /dev/null +++ b/pokepay/response/coupon.py @@ -0,0 +1,93 @@ +# 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'] + self.num_recipients_cap = response_body['num_recipients_cap'] + self.num_recipients = response_body['num_recipients'] + + 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 num_recipients_cap(self): + return self.num_recipients_cap + + def num_recipients(self): + return self.num_recipients + diff --git a/pokepay/response/coupon_detail.py b/pokepay/response/coupon_detail.py new file mode 100644 index 0000000..4e7c802 --- /dev/null +++ b/pokepay/response/coupon_detail.py @@ -0,0 +1,105 @@ +# 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'] + self.num_recipients_cap = response_body['num_recipients_cap'] + self.num_recipients = response_body['num_recipients'] + + 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 + + def num_recipients_cap(self): + return self.num_recipients_cap + + def num_recipients(self): + return self.num_recipients + diff --git a/pokepay/response/credit_session.py b/pokepay/response/credit_session.py new file mode 100644 index 0000000..0109c82 --- /dev/null +++ b/pokepay/response/credit_session.py @@ -0,0 +1,17 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class CreditSession(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.id = response_body['id'] + self.expires_at = response_body['expires_at'] + + def id(self): + return self.id + + def expires_at(self): + return self.expires_at + diff --git a/pokepay/response/credit_session_transaction_result.py b/pokepay/response/credit_session_transaction_result.py new file mode 100644 index 0000000..10e38c0 --- /dev/null +++ b/pokepay/response/credit_session_transaction_result.py @@ -0,0 +1,11 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class CreditSessionTransactionResult(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + + + 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/paginated_user_cards.py b/pokepay/response/paginated_user_cards.py new file mode 100644 index 0000000..820ef07 --- /dev/null +++ b/pokepay/response/paginated_user_cards.py @@ -0,0 +1,21 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class PaginatedUserCards(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/transaction_group.py b/pokepay/response/transaction_group.py new file mode 100644 index 0000000..fb4ecdd --- /dev/null +++ b/pokepay/response/transaction_group.py @@ -0,0 +1,29 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class TransactionGroup(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.id = response_body['id'] + self.name = response_body['name'] + self.created_at = response_body['created_at'] + self.updated_at = response_body['updated_at'] + self.transactions = response_body['transactions'] + + def id(self): + return self.id + + def name(self): + return self.name + + def created_at(self): + return self.created_at + + def updated_at(self): + return self.updated_at + + def transactions(self): + return self.transactions + diff --git a/pokepay/response/user_card.py b/pokepay/response/user_card.py new file mode 100644 index 0000000..e0c6b11 --- /dev/null +++ b/pokepay/response/user_card.py @@ -0,0 +1,21 @@ +# DO NOT EDIT: File is generated by code generator. + +from pokepay.response.response import PokepayResponse + + +class UserCard(PokepayResponse): + def __init__(self, response, response_body): + super().__init__(response, response_body) + self.id = response_body['id'] + self.card_number = response_body['card_number'] + self.registered_at = response_body['registered_at'] + + def id(self): + return self.id + + def card_number(self): + return self.card_number + + def registered_at(self): + return self.registered_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/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'] diff --git a/tests/create_new_customer_with_account_test.py b/tests/create_new_customer_with_account_test.py new file mode 100644 index 0000000..6d3aa0a --- /dev/null +++ b/tests/create_new_customer_with_account_test.py @@ -0,0 +1,67 @@ +# 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 testCreateNewCustomerWithAccount(self): + user_name = "user-name" + tests.util.random_string(6) + account_name = "account-name" + tests.util.random_string(6) + customer_account = client.send(pp.CreateCustomerAccount( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + user_name: user_name, + account_name: account_name + )) + self.assertEqual(user_name, customer_account.user.name) + self.assertEqual(account_name, customer_account.name) + shop_name = "shop-name" + tests.util.random_string(6) + shop = client.send(pp.CreateShopV2( + shop_name, + private_money_ids: ["4b138a4c-8944-4f98-a5c4-96d3c1c415eb"], + can_topup_private_money_ids: ["4b138a4c-8944-4f98-a5c4-96d3c1c415eb"] + )) + topup_transaction = client.send(pp.CreateTopupTransaction( + shop.id, + customer_account.user.id, + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + money_amount: 1000, + point_amount: 1000 + )) + self.assertEqual(topup_transaction.type, "topup") + payment_transaction = client.send(pp.CreatePaymentTransaction( + shop.id, + customer_account.user.id, + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + 100 + )) + bill = client.send(pp.CreateBill( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + shop.id + )) + bill_updated = client.send(pp.UpdateBill( + bill.id, + amount: 200.0 + )) + bill_payment = client.send(pp.CreatePaymentTransactionWithBill( + bill.id, + customer_account.user.id + )) + self.assertEqual(payment_transaction.type, "payment") + self.assertEqual(bill_payment.type, "payment") + transactions = client.send(pp.ListTransactionsV2(private_money_id: "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + shop_id: shop.id, + customer_id: customer_account.user.id + )) + bill_transactions = client.send(pp.ListBillTransactions(private_money_id: "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + shop_id: shop.id, + customer_id: customer_account.user.id + )) + self.assertEqual(transactions.count, 3) + self.assertEqual(bill_transactions.count, 1) diff --git a/tests/create_organization_test.py b/tests/create_organization_test.py new file mode 100644 index 0000000..473f8b5 --- /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 = "blackhole@pokepay.jp" + member_admin_user_email = "blackhole@pokepay.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 = "blackhole@pokepay.jp" + member_admin_user_email = "blackhole@pokepay.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/register_bank_account.py b/tests/register_bank_account.py new file mode 100644 index 0000000..266c9e9 --- /dev/null +++ b/tests/register_bank_account.py @@ -0,0 +1,44 @@ +# 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 testRegisterBankAccount(self): + customer_name = "customer-name" + tests.util.random_string(6) + account_name = "account-name" + tests.util.random_string(6) + customer = client.send(pp.CreateCustomerAccount( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + user_name: customer_name, + account_name: account_name + )) + user_device_metadata = "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}" + user_device = client.send(pp.CreateUserDevice( + customer.user.id, + metadata: user_device_metadata + )) + get_user_device_response = client.send(pp.GetUserDevice( + user_device.id + )) + self.assertEqual(get_user_device_response.is_active, False) + user_device_activated = client.send(pp.ActivateUserDevice( + get_user_device_response.id + )) + self.assertEqual(user_device_activated.is_active, True) + create_bank = client.send(pp.CreateBank( + get_user_device_response.id, + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + "dummy", + "ポケペイタロウ" + )) + bank_accounts_listed = client.send(pp.ListBanks( + get_user_device_response.id + )) + self.assertEqual(bank_accounts_listed.count, 0) 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..37fb485 100644 --- a/tests/test_request_validation.py +++ b/tests/test_request_validation.py @@ -20,7 +20,73 @@ 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) + + def test_post_credit_session_0(self): + response = client.send(pp.PostCreditSession( + "f7badafa-54a1-4511-b337-e4aa1c1fe652", + "7c419418-aa59-4e5c-bbdc-7d8d6bf88c31", + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "2024-03-08T03:04:44.000000Z" + )) + self.assertNotEqual(response.status_code, 400) + + def test_post_credit_session_1(self): + response = client.send(pp.PostCreditSession( + "f7badafa-54a1-4511-b337-e4aa1c1fe652", + "7c419418-aa59-4e5c-bbdc-7d8d6bf88c31", + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "2024-03-08T03:04:44.000000Z", + request_id="cc450cba-668f-4380-854c-2e6dae6d9426" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_credit_session_transaction_0(self): + response = client.send(pp.CreateCreditSessionTransaction( + "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e", + 9780.0 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_credit_session_transaction_1(self): + response = client.send(pp.CreateCreditSessionTransaction( + "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e", + 9780.0, + request_id="2c826d8b-e412-4dbe-a759-328251097330" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_credit_session_transaction_2(self): + response = client.send(pp.CreateCreditSessionTransaction( + "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e", + 9780.0, + description="BddIYIaGsnHTfyj3vGhpYs6lE3PVxThCRcEAVa4JmfjoJZ9ajsO39BqxPDSP5BpfA0dYcuMmHpa4aDHWm32hBFhI0DxRhz83lKq4Wp1hKlNvpHM0s7Dd9Uu6qWqC0qUtLag9adxARTcCtKjz1M2kusM3cVDMOGMtpxWNvKR6Gcp6PWCiN", + request_id="637c48af-86f9-48ed-82e1-99558a467bfe" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_credit_session_transaction_3(self): + response = client.send(pp.CreateCreditSessionTransaction( + "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e", + 9780.0, + shop_id="4d1e7adb-31c9-4ea0-b5b6-7310d8249eec", + description="IyVNDYRttS46oTXBYnbHbMuAdnXANiixumuncg7egxc7L05i8jkZ1Waa6h6AAgB9jXehhbgsnyiHZ1n3qwk3r3QhfSXAhy6Q6NsE0G4ETHn0hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUg", + request_id="3c19993c-6f8f-4de2-b2ae-9871bf5118f1" + )) + self.assertNotEqual(response.status_code, 400) + + def test_capture_credit_session_0(self): + response = client.send(pp.CaptureCreditSession( + "40765da0-f6f2-41cc-b413-655243e97309" + )) + self.assertNotEqual(response.status_code, 400) + + def test_capture_credit_session_1(self): + response = client.send(pp.CaptureCreditSession( + "40765da0-f6f2-41cc-b413-655243e97309", + request_id="ff18fd70-52a7-4b0f-9227-95a7c5dcd5cd" )) self.assertNotEqual(response.status_code, 400) @@ -31,463 +97,463 @@ def test_get_user_0(self): def test_list_user_accounts_0(self): response = client.send(pp.ListUserAccounts( - "a0cca592-bf22-4263-8ecd-026754ff855d" + "580852da-986e-4146-8a04-b74de803cf9c" )) 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 + "580852da-986e-4146-8a04-b74de803cf9c", + per_page=6774 )) 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 + "580852da-986e-4146-8a04-b74de803cf9c", + page=4049, + per_page=405 )) 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" + "53a50385-11f5-46f5-a3d9-62a90c8a29c4", + "6cddcb78-7848-485a-a46e-a0ab2dc39ee9" )) 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", + "53a50385-11f5-46f5-a3d9-62a90c8a29c4", + "6cddcb78-7848-485a-a46e-a0ab2dc39ee9", 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", + "53a50385-11f5-46f5-a3d9-62a90c8a29c4", + "6cddcb78-7848-485a-a46e-a0ab2dc39ee9", + external_id="kAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6", 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", + "53a50385-11f5-46f5-a3d9-62a90c8a29c4", + "6cddcb78-7848-485a-a46e-a0ab2dc39ee9", + name="Qi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfddKJfLPJmxAhDpkltxfpGBgKzLBW", + external_id="M", metadata="{\"key1\":\"foo\",\"key2\":\"bar\"}" )) self.assertNotEqual(response.status_code, 400) + def test_delete_account_0(self): + response = client.send(pp.DeleteAccount( + "6e0f5443-faad-451b-9992-5ce9c4e4ae3a" + )) + self.assertNotEqual(response.status_code, 400) + + def test_delete_account_1(self): + response = client.send(pp.DeleteAccount( + "6e0f5443-faad-451b-9992-5ce9c4e4ae3a", + cashback=False + )) + self.assertNotEqual(response.status_code, 400) + def test_get_account_0(self): response = client.send(pp.GetAccount( - "ce82075e-0d91-419b-b5bc-31458306bc55" + "659420e6-ccd8-47bd-9f80-4444609cfe97" )) self.assertNotEqual(response.status_code, 400) def test_update_account_0(self): response = client.send(pp.UpdateAccount( - "9d4a4a80-c7f0-40db-a450-36e946e1971a" + "95c86f58-0405-4529-92d0-94c33ae0c1e2" )) self.assertNotEqual(response.status_code, 400) def test_update_account_1(self): response = client.send(pp.UpdateAccount( - "9d4a4a80-c7f0-40db-a450-36e946e1971a", + "95c86f58-0405-4529-92d0-94c33ae0c1e2", can_transfer_topup=False )) self.assertNotEqual(response.status_code, 400) def test_update_account_2(self): response = client.send(pp.UpdateAccount( - "9d4a4a80-c7f0-40db-a450-36e946e1971a", - status="suspended", + "95c86f58-0405-4529-92d0-94c33ae0c1e2", + 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", + "95c86f58-0405-4529-92d0-94c33ae0c1e2", 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" + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf" )) self.assertNotEqual(response.status_code, 400) def test_list_account_balances_1(self): response = client.send(pp.ListAccountBalances( - "fe9ba5e6-5a43-4eb0-a1f4-973999643afe", + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf", direction="asc" )) 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", + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf", + expires_at_to="2024-07-17T16:43:47.000000Z", direction="asc" )) 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" + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf", + expires_at_from="2021-04-06T08:41:06.000000Z", + expires_at_to="2023-06-02T11:51:13.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", + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf", + per_page=4634, + expires_at_from="2024-01-18T23:56:06.000000Z", + expires_at_to="2021-12-10T18:32:08.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", + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf", + page=5372, + per_page=1503, + expires_at_from="2021-10-12T09:36:01.000000Z", + expires_at_to="2023-11-12T04:37:14.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" + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f" )) 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" + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f", + 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", + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f", + expires_at_to="2020-05-12T06:39:28.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" + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f", + expires_at_from="2021-08-10T22:28:30.000000Z", + expires_at_to="2022-01-02T23:11:37.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" + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f", + per_page=4714, + expires_at_from="2020-04-19T21:07:10.000000Z", + expires_at_to="2023-01-28T20:39:36.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", - direction="asc" + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f", + page=2353, + per_page=7193, + expires_at_from="2025-03-14T13:29:46.000000Z", + expires_at_to="2021-07-19T10:26:05.000000Z", + direction="desc" )) self.assertNotEqual(response.status_code, 400) def test_update_customer_account_0(self): response = client.send(pp.UpdateCustomerAccount( - "84b859aa-f0d3-4f6c-a841-282e9f5ab662" + "2b9a8465-d8cb-48e1-87c5-c9f23ead12af" )) self.assertNotEqual(response.status_code, 400) def test_update_customer_account_1(self): response = client.send(pp.UpdateCustomerAccount( - "84b859aa-f0d3-4f6c-a841-282e9f5ab662", + "2b9a8465-d8cb-48e1-87c5-c9f23ead12af", 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", + "2b9a8465-d8cb-48e1-87c5-c9f23ead12af", + external_id="wIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fcKm", 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", + "2b9a8465-d8cb-48e1-87c5-c9f23ead12af", + account_name="GRUw7sMhCFW8ODbHkZSUPXBsmObvnHUjDTSSciw3PX7IImkvl5vCAHh7QD95u0YIcm0Sp2RluFOAxJTKKlkJp5ENq52OLTcJlnsa7zuy1tusdwen7Z1wrrgdxWfKkML", + external_id="wrBpORQ9LHlnKRmCd4nadmeyKnqGyqpn3W7S36l", 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", + "2b9a8465-d8cb-48e1-87c5-c9f23ead12af", status="suspended", - account_name="tEhHNUjZJEl7H6aHeFVmJSAKrLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5BuCe0yTSEIanUYTV2eUYLa0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf7GbuKVO", - external_id="o81owGN6i0XTT33lqYdKQ0h3ghVZk7eO", + account_name="4SSSOxW72gqSjd8QPzbjt0rt7UmerReZGbvGgvAZbyLJ1Lea6an4", + external_id="P1AnQALadFsAzgfKjbtuXg", 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" + "2784c798-d5ac-46da-8465-d2dbc213a805" )) 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"] + "2784c798-d5ac-46da-8465-d2dbc213a805", + transfer_types=["use-coupon"] )) 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"] + "2784c798-d5ac-46da-8465-d2dbc213a805", + to="2023-02-07T22:58:38.000000Z", + transfer_types=["refund-exchange-outflow", "exchange-outflow", "refund-campaign", "refund-exchange-inflow", "payment", "refund-payment", "campaign-topup", "topup", "refund-coupon", "refund-topup", "use-coupon"] )) 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"] + "2784c798-d5ac-46da-8465-d2dbc213a805", + start="2023-09-02T11:04:26.000000Z", + to="2023-04-29T14:54:57.000000Z", + transfer_types=["payment", "refund-coupon", "campaign-topup", "refund-exchange-outflow", "topup", "refund-campaign"] )) self.assertNotEqual(response.status_code, 400) def test_get_customer_accounts_0(self): response = client.send(pp.GetCustomerAccounts( - "c41f5bb2-749b-44ef-829d-581a94e833f3" + "0e4e7760-d0c1-43f4-8192-1c94876e3f07" )) 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" + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", + email="fcLabY2vDz@XzQx.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" + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", + tel="0386914", + email="9VFC5bo0KX@fPAS.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" + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", + external_id="w8jPQ0hMJ4nPgNJOUuVI3xkUSOX0v", + tel="0074-316-0237", + email="pl9MWii2ex@Aarz.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" + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", + status="active", + external_id="UllrgsQZQAnUYeKIbZQuPYAKNLvTyMc", + tel="039-279393", + email="z5jRHNPv9L@O3Mt.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" + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", + is_suspended=False, + status="active", + external_id="yt1wTnktL8AY", + tel="004073-175", + email="ncONv8Kje2@pUTW.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", + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", + created_at_to="2022-04-21T04:20:10.000000Z", is_suspended=False, - status="pre-closed", - external_id="kkEIImb7878ag0GpEoXRZP9Tuo6i", - tel="0402-724", - email="2arbhJouxW@Q6Fl.com" + status="suspended", + external_id="NDe87", + tel="045226365", + email="Usk6umIdkj@ysmB.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, + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", + created_at_from="2022-05-05T01:50:52.000000Z", + created_at_to="2024-03-10T11:23:04.000000Z", + is_suspended=True, status="suspended", - external_id="k1iTzlm9ILQGKVJoUCSY35cdkgvsbAY", - tel="0584488892", - email="yLz0xsJRhR@VsB9.com" + external_id="Cy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg2", + tel="0343-6615", + email="wFZHEg2RF0@uEHw.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", + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", + per_page=2583, + created_at_from="2022-08-10T17:00:59.000000Z", + created_at_to="2023-09-15T19:26:54.000000Z", is_suspended=False, - status="pre-closed", - external_id="fWzO75yHWR5FLMa9CO3GmqQepv7", - tel="080779634", - email="vLJkkZMMdE@ANfW.com" + status="suspended", + external_id="Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5", + tel="0416-7601-378", + email="rq2HjQnZoV@WhOd.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", - is_suspended=True, - status="suspended", - external_id="Aje3PJg4zkA5dwRQrAEDCEBzCTk0p", - tel="07714864-9146", - email="6QjLE9oTv9@S3Zg.com" + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", + page=9504, + per_page=992, + created_at_from="2024-11-26T21:23:31.000000Z", + created_at_to="2023-09-05T02:41:52.000000Z", + is_suspended=False, + status="active", + external_id="EjTApY38vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzF", + tel="06-385030", + email="DlS2m5Kv5I@bgTW.com" )) self.assertNotEqual(response.status_code, 400) def test_create_customer_account_0(self): response = client.send(pp.CreateCustomerAccount( - "45dccf34-6a82-40cf-8035-99e4f021f54b" + "835f1a89-8691-4df3-aab7-584d1e24c526" )) 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" + "835f1a89-8691-4df3-aab7-584d1e24c526", + external_id="nGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkO" )) 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" + "835f1a89-8691-4df3-aab7-584d1e24c526", + account_name="NNAjB", + external_id="CYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3a" )) 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" + "835f1a89-8691-4df3-aab7-584d1e24c526", + user_name="JmzxxuQUVBryDZ", + account_name="3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoa", + external_id="LlrJk6" )) self.assertNotEqual(response.status_code, 400) def test_get_shop_accounts_0(self): response = client.send(pp.GetShopAccounts( - "3418e411-a25d-4ec8-9b49-3e30dff9f6fa" + "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d" )) self.assertNotEqual(response.status_code, 400) def test_get_shop_accounts_1(self): response = client.send(pp.GetShopAccounts( - "3418e411-a25d-4ec8-9b49-3e30dff9f6fa", - is_suspended=False + "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d", + is_suspended=True )) 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", + "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d", + created_at_to="2021-10-31T16:57:13.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", - is_suspended=False + "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d", + created_at_from="2023-11-06T02:31:37.000000Z", + created_at_to="2024-07-07T08:34:30.000000Z", + is_suspended=True )) 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", + "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d", + per_page=6667, + created_at_from="2023-12-12T11:10:42.000000Z", + created_at_to="2023-11-10T03:08:06.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 + "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d", + page=7903, + per_page=1435, + created_at_from="2021-06-16T10:57:24.000000Z", + created_at_to="2020-01-11T14:03:41.000000Z", + is_suspended=True )) self.assertNotEqual(response.status_code, 400) @@ -504,471 +570,747 @@ def test_list_bills_1(self): def test_list_bills_2(self): response = client.send(pp.ListBills( - upper_limit_amount=3835, + upper_limit_amount=9364, 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, + lower_limit_amount=9372, + upper_limit_amount=5960, is_disabled=False )) 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="0c7a21e5-557f-4a6d-955b-517b3dd30ee8", + lower_limit_amount=209, + upper_limit_amount=816, 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="CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5L", + shop_id="ef7517ac-5c42-4f95-a261-57ac8b4cab9d", + lower_limit_amount=8117, + upper_limit_amount=3441, 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, + created_to="2021-01-15T02:18:17.000000Z", + shop_name="iTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuIVqRIEU93kljq1Q8TjukgNdos", + shop_id="63703d90-5372-48e3-8528-95733bb1fe11", + lower_limit_amount=5799, + upper_limit_amount=2746, is_disabled=False )) 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="2023-03-11T09:56:39.000000Z", + created_to="2022-01-02T12:50:41.000000Z", + shop_name="qVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8Vy", + shop_id="4a5bbff5-1352-4de5-9689-46c39d5f9223", + lower_limit_amount=472, + upper_limit_amount=7168, 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="5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41mu", + created_from="2022-11-06T08:17:48.000000Z", + created_to="2021-10-05T03:28:27.000000Z", + shop_name="IO2q9f6dQ5BvDAnz25uvrmGGKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g71", + shop_id="c5f38ba3-1edd-465f-b7ab-d342a8f1472a", + lower_limit_amount=569, + upper_limit_amount=971, 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="-wrS-x6H6C--D5S6--8xd364V-k1D", + description="8An", + created_from="2021-08-02T04:48:29.000000Z", + created_to="2026-03-31T19:26:43.000000Z", + shop_name="Xtmv8LerXQe8LjF8Q6qvpD5ZbBwXFvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSIaxZ8O9N2SLzG35Urh2rbZx2aArvrK", + shop_id="11c21346-1c20-4c45-97b0-4d63dd5b2e16", + lower_limit_amount=1476, + upper_limit_amount=6237, + 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="7d8ed6ae-e2ee-4471-afcf-359032470bfa", + organization_code="7e7--S-GJ--", + description="WZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteVH8YLvoUoraYyVUvoHuSd1", + created_from="2025-02-08T09:21:17.000000Z", + created_to="2020-02-24T05:50:44.000000Z", + shop_name="4X7ZEq8UGlMat7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7QMs", + shop_id="8c4a540c-459f-4a9b-89bb-6ea95f12aa89", + lower_limit_amount=3066, + upper_limit_amount=2822, 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, - is_disabled=False + bill_id="Aj1G", + private_money_id="be0c1d0a-ab85-41f3-a160-3a9c3dabefd3", + organization_code="gY3T1--v-G724-7qs-0fqD1J46-L1", + description="mGpF3omDB92rueqlmfnAfu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKve", + created_from="2020-01-04T22:32:40.000000Z", + created_to="2026-04-17T19:20:22.000000Z", + shop_name="Ax7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5Boy", + shop_id="fa04874c-0a31-41cd-a767-5f6afeb7ae90", + lower_limit_amount=995, + upper_limit_amount=1524, + is_disabled=True )) 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=5149, + bill_id="isLu", + private_money_id="b5add359-e405-4b3c-9f6f-b34091566a9d", + organization_code="0Ef8---6-h9A-B04pr7qE03-8Er", + description="RpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxg", + created_from="2022-09-16T13:13:50.000000Z", + created_to="2026-03-08T20:38:43.000000Z", + shop_name="pyfoekUtYXnQ6dyRqDX", + shop_id="889cbfe2-7198-46ef-9508-9f925e36be83", + lower_limit_amount=7658, + upper_limit_amount=6257, + 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, + page=6125, + per_page=7897, + bill_id="fgL13rI1k", + private_money_id="28cad1dd-7622-4ccd-86d9-982968d0191d", + organization_code="cIqFB-D2n-1J-sq9---", + description="uh", + created_from="2025-03-01T18:48:34.000000Z", + created_to="2022-03-18T01:11:12.000000Z", + shop_name="XqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55WYfHfvN0QEBe9OUmuQoNyAxdhT65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf", + shop_id="ee4753b2-daf0-444c-826e-bd5ca9677601", + lower_limit_amount=7925, + upper_limit_amount=4911, is_disabled=True )) 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" + "794c20bc-1906-4d88-bd33-86b6abc81954", + "bb621659-4ed0-4b01-a727-d9927d63b1f8" )) 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" + "794c20bc-1906-4d88-bd33-86b6abc81954", + "bb621659-4ed0-4b01-a727-d9927d63b1f8", + description="zfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2HyY5rxBRsFTyEv" )) 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" + "794c20bc-1906-4d88-bd33-86b6abc81954", + "bb621659-4ed0-4b01-a727-d9927d63b1f8", + amount=6894.0, + description="ewbYd4rNZJsCq7m7arw2NKYH12xHXaAOFqIwxr" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_bill_0(self): + response = client.send(pp.GetBill( + "f4d9da76-e6f8-43eb-b8a0-859dcc71eadb" )) self.assertNotEqual(response.status_code, 400) def test_update_bill_0(self): response = client.send(pp.UpdateBill( - "c16a938b-9ef2-44bd-8e6f-2b8a65b0e2b2" + "f1fe0077-5bde-4dfe-9e56-f45905168e42" )) self.assertNotEqual(response.status_code, 400) def test_update_bill_1(self): response = client.send(pp.UpdateBill( - "c16a938b-9ef2-44bd-8e6f-2b8a65b0e2b2", + "f1fe0077-5bde-4dfe-9e56-f45905168e42", 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 + "f1fe0077-5bde-4dfe-9e56-f45905168e42", + description="QiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1", + 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", + "f1fe0077-5bde-4dfe-9e56-f45905168e42", + amount=7574.0, + description="pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDr", + is_disabled=False + )) + 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=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_2(self): + response = client.send(pp.ListChecks( + is_onetime=False, + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_3(self): + response = client.send(pp.ListChecks( + description="fzykU4q", + is_onetime=True, + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_4(self): + response = client.send(pp.ListChecks( + issuer_shop_id="9478d451-18bf-4c29-9ea3-091a8cdc7857", + description="w", + 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="2021-10-09T06:04:28.000000Z", + issuer_shop_id="08b7f8b9-4517-4616-9c84-aa52e68be7c2", + description="7JkqQ2DDr", + is_onetime=True, + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_6(self): + response = client.send(pp.ListChecks( + created_from="2021-07-05T05:18:46.000000Z", + created_to="2025-06-23T13:13:01.000000Z", + issuer_shop_id="44a152a6-d22c-4251-8ce6-2018e38b7238", + description="K7SBxet", + is_onetime=True, + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_7(self): + response = client.send(pp.ListChecks( + expires_to="2020-09-13T10:46:13.000000Z", + created_from="2022-03-22T01:22:02.000000Z", + created_to="2022-11-20T12:48:14.000000Z", + issuer_shop_id="a49f033e-a6f2-4534-a41c-d8422fcd3f0b", + description="WzD3", + is_onetime=True, + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_8(self): + response = client.send(pp.ListChecks( + expires_from="2024-03-07T03:20:07.000000Z", + expires_to="2021-04-28T05:09:39.000000Z", + created_from="2020-11-14T02:15:23.000000Z", + created_to="2023-12-11T22:57:24.000000Z", + issuer_shop_id="e4041ec1-3ff6-4cda-b41a-d00c53918013", + description="Cmt", + is_onetime=False, is_disabled=False )) self.assertNotEqual(response.status_code, 400) + def test_list_checks_9(self): + response = client.send(pp.ListChecks( + organization_code="viHLHO", + expires_from="2023-10-26T03:41:58.000000Z", + expires_to="2023-11-20T13:20:43.000000Z", + created_from="2020-10-22T15:12:02.000000Z", + created_to="2024-08-20T05:41:56.000000Z", + issuer_shop_id="743d4d48-dd6f-41cc-88da-43351f400f17", + description="yso5u9Osj", + is_onetime=False, + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_10(self): + response = client.send(pp.ListChecks( + private_money_id="a8d4befd-6ce9-4d13-9b82-476164205cde", + organization_code="h3ovwp1QqOYhJfTJv94bnDyHKg", + expires_from="2023-09-22T17:10:02.000000Z", + expires_to="2023-09-15T18:04:15.000000Z", + created_from="2023-05-05T01:01:26.000000Z", + created_to="2020-09-09T12:46:47.000000Z", + issuer_shop_id="b58f1754-6152-4142-bb2e-b711156ec6c4", + description="srb62i", + is_onetime=False, + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_11(self): + response = client.send(pp.ListChecks( + per_page=5222, + private_money_id="3102ac99-a5ba-4b61-8edc-045b62537585", + organization_code="35TYhQYVT6897JBIT", + expires_from="2025-12-27T13:29:28.000000Z", + expires_to="2022-06-06T20:44:53.000000Z", + created_from="2024-03-06T12:19:45.000000Z", + created_to="2023-06-06T02:55:25.000000Z", + issuer_shop_id="766d6533-8af6-4102-8f1c-8fa29159f769", + description="nJbC3RzxM", + is_onetime=False, + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_checks_12(self): + response = client.send(pp.ListChecks( + page=3144, + per_page=5781, + private_money_id="c1af4784-46d4-4052-9fd1-04a3fa8985d6", + organization_code="b", + expires_from="2022-11-13T17:46:10.000000Z", + expires_to="2025-01-29T07:54:44.000000Z", + created_from="2024-04-09T01:37:21.000000Z", + created_to="2021-02-06T09:15:31.000000Z", + issuer_shop_id="4674ab91-9e4b-44c6-b69a-0d9676ea4a66", + description="7wc", + 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 + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=7137.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" + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=3000.0, + description="VmM7LxaafZsEiZ4h1k" )) 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" + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=8692.0, + is_onetime=True, + description="ESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS9wkdOXw" )) 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" + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=7913.0, + usage_limit=766, + is_onetime=False, + description="pfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgUm73I2kFchNQksZB6ByT3lVRQ7O823WFeX" )) 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" + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=707.0, + expires_at="2020-02-20T03:38:17.000000Z", + usage_limit=2547, + is_onetime=False, + description="fveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXXM3Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2" )) 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, + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=3214.0, + point_expires_at="2021-05-14T01:48:23.000000Z", + expires_at="2021-01-25T10:08:38.000000Z", + usage_limit=8143, is_onetime=True, - description="VQAOjB0XTIEf" + description="NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1f" )) 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, - is_onetime=False, - description="NvwAf7hOlSBfFEUcOQMXEYHzF8m9cIjwUyTMaVMoVAP5OP1Cjryz" + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=2889.0, + point_expires_in_days=8207, + point_expires_at="2022-03-24T09:03:50.000000Z", + expires_at="2024-08-13T00:51:46.000000Z", + usage_limit=4594, + is_onetime=True, + description="xHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1c" )) 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, - is_onetime=False, - description="Z0UkOPXKep1jFsPNeua1jB7" + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=4823.0, + bear_point_account="223b1d3f-a13b-4daf-8e44-4bdf5306ef13", + point_expires_in_days=6083, + point_expires_at="2020-10-05T01:19:10.000000Z", + expires_at="2023-12-14T16:51:02.000000Z", + usage_limit=7574, + is_onetime=True, + description="RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHN" )) 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 + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=1356.0, + point_amount=4644.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" + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=3214.0, + point_amount=5521.0, + description="W2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqC" )) 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, + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=5704.0, + point_amount=7923.0, is_onetime=True, - description="TjjuPniB6yr4Okg2Udv9iXSqMQb8J3iQSJeJic2mGuJKmsKLeWViwh5Xh0Ohe1EHst26OluNAixs6BC1rh1DjTMJERyJtkUyg63OuNEg3mOoFwMhlx1RPa6KY" + description="k71kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPr" )) 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" + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=7337.0, + point_amount=9105.0, + usage_limit=1004, + is_onetime=True, + description="rzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5Az" )) 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, + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=9132.0, + point_amount=465.0, + expires_at="2025-10-17T16:55:52.000000Z", + usage_limit=453, is_onetime=False, - description="YctoKArmPX6ICAqae4Gsnk7CCks4Hk5SfM8qCg753Xc8sxEuuaOPh40uyY7zIQa1dLLxrHG11vw1vq47MweLd7PEXecikrpiqy8sfzPeC95z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1gAPOZCWBu1LN9FJ0cnlAGNGx" + description="VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63d" )) 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" + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=8402.0, + point_amount=4676.0, + point_expires_at="2020-01-03T06:38:53.000000Z", + expires_at="2024-10-27T18:00:02.000000Z", + usage_limit=1314, + is_onetime=True, + description="KNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPn" )) 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, + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=8068.0, + point_amount=7340.0, + point_expires_in_days=4011, + point_expires_at="2023-12-25T07:37:14.000000Z", + expires_at="2022-01-26T19:51:28.000000Z", + usage_limit=5610, is_onetime=False, - description="2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOjNPScM2HIOB9HTAlispEbZ0nm2AG9fUViptAmbz3OlMcIwPiDhPvFVPSC9IO8VxniaFu09a6CuuEqXlxnf5GR396SeNDqXXKEJV0JkE3TjLaqeZO" + description="rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfM" )) 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, + "138fb349-8997-453b-a971-2e2ecc860766", + money_amount=7615.0, + point_amount=9234.0, + bear_point_account="4d45d42b-ee3e-497a-ba3f-c344a1dbe433", + point_expires_in_days=7804, + point_expires_at="2023-11-15T22:47:23.000000Z", + expires_at="2020-07-29T13:40:35.000000Z", + usage_limit=1294, is_onetime=False, - description="SAD7vVGJBWjZfkSD8toOPMhnrU8KE3wpUrjUs8sizjd1z2FtADy5Q3C5jNeYsU9MpL2cFyrblmxyYFjVJ1ksDCEql8" + description="e9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQYSSoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2DsC" )) 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 + "138fb349-8997-453b-a971-2e2ecc860766", + point_amount=2870.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" + "138fb349-8997-453b-a971-2e2ecc860766", + point_amount=2714.0, + description="IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkDTFwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4uwaN6FqKGuMQEbIhSKLSxcJDAAH0jwIPbM" )) 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" + "138fb349-8997-453b-a971-2e2ecc860766", + point_amount=4190.0, + is_onetime=False, + description="hYlMMXruKsOetb8P3w3wpAlq46MRF" )) 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, - is_onetime=True, - description="lsFCHOKfiqVfddqZXHyl9FtM3BiAbJG4RFalUDm4QOG36z0pAjeCTeiy225IXwhDEUvB4npxY9ubMTI7cGyilStc03UjxERdVoe6HFhJgKELPhJZ4V6jG807jn4" + "138fb349-8997-453b-a971-2e2ecc860766", + point_amount=1512.0, + usage_limit=7490, + is_onetime=False, + description="a1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3xaXPio5o0q9x0iUyrfJ" )) 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, + "138fb349-8997-453b-a971-2e2ecc860766", + point_amount=2783.0, + expires_at="2022-11-13T19:30:23.000000Z", + usage_limit=2253, is_onetime=False, - description="fSZTliY3BcoO0R3ofHxO79PyMPuNxlOm9TssUDzbSN9easDT5qaXE9oVV6dzFzoMTL1nMwdKXWkN1V7WK5N3KEyrv8oYx3uFnGQ6ZUjkvuDzL1kINhlYHLw7e" + description="PlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1w2" )) 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, + "138fb349-8997-453b-a971-2e2ecc860766", + point_amount=7367.0, + point_expires_at="2020-12-25T01:08:39.000000Z", + expires_at="2021-10-11T08:20:56.000000Z", + usage_limit=4894, is_onetime=False, - description="z2mwFW2G7CePrEb6qc1vzC0TUXZ7gJxmZbR4QIZxkVF44SiHUuKLea6KXKMTxnuRpjgiKiTeKThsCVHvt0FegcXhZNGhoP3dbXW7imuFIarDCIG12cWukEiPRDcMrsI69et7tZGcxsWh3x4WMFG9JtXGOrRTCDsNsdOxykdQVM02fdP8dPWgv17" + description="QxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7" )) 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, + "138fb349-8997-453b-a971-2e2ecc860766", + point_amount=6335.0, + point_expires_in_days=4722, + point_expires_at="2025-05-19T09:14:33.000000Z", + expires_at="2021-07-18T06:17:14.000000Z", + usage_limit=2129, is_onetime=False, - description="VKZ2Yg2XW7z7bqKh4VDMi81vkZfIvFF2aVGBrt4d4BQcmvC7IyShbMWHW8OrxkY" + description="IVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0" )) 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, + "138fb349-8997-453b-a971-2e2ecc860766", + point_amount=521.0, + bear_point_account="5c2be323-a64c-46a4-8579-5a2b6c80295a", + point_expires_in_days=667, + point_expires_at="2020-05-04T10:41:03.000000Z", + expires_at="2020-03-06T08:42:24.000000Z", + usage_limit=4806, + is_onetime=True, + description="79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxl" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_check_0(self): + response = client.send(pp.GetCheck( + "5d27308d-4189-4d7d-94fd-39a062a0f115" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_0(self): + response = client.send(pp.UpdateCheck( + "af65ed67-ae3d-4d08-8e61-462c32d126e0" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_1(self): + response = client.send(pp.UpdateCheck( + "af65ed67-ae3d-4d08-8e61-462c32d126e0", + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_2(self): + response = client.send(pp.UpdateCheck( + "af65ed67-ae3d-4d08-8e61-462c32d126e0", + bear_point_account="a821411e-8d83-473d-b313-2202285c59fc", + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_3(self): + response = client.send(pp.UpdateCheck( + "af65ed67-ae3d-4d08-8e61-462c32d126e0", + point_expires_in_days=1225, + bear_point_account="d5e8da31-5131-4d8d-9a15-48fc0cb29793", + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_4(self): + response = client.send(pp.UpdateCheck( + "af65ed67-ae3d-4d08-8e61-462c32d126e0", + point_expires_at="2021-05-08T21:26:00.000000Z", + point_expires_in_days=3032, + bear_point_account="ac399477-b9aa-4f74-9bde-6ca5cb2f91b0", + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_5(self): + response = client.send(pp.UpdateCheck( + "af65ed67-ae3d-4d08-8e61-462c32d126e0", + expires_at="2023-09-01T12:20:55.000000Z", + point_expires_at="2025-05-27T22:50:51.000000Z", + point_expires_in_days=2628, + bear_point_account="b9b9a686-e33d-4377-b4c6-f35c3f307a3e", + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_6(self): + response = client.send(pp.UpdateCheck( + "af65ed67-ae3d-4d08-8e61-462c32d126e0", + usage_limit=1673, + expires_at="2023-04-16T12:54:39.000000Z", + point_expires_at="2022-02-13T02:37:05.000000Z", + point_expires_in_days=9552, + bear_point_account="650ee885-3fb0-4c11-9829-5a35660013e0", + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_7(self): + response = client.send(pp.UpdateCheck( + "af65ed67-ae3d-4d08-8e61-462c32d126e0", + is_onetime=True, + usage_limit=724, + expires_at="2025-02-15T12:58:38.000000Z", + point_expires_at="2021-01-08T07:46:15.000000Z", + point_expires_in_days=7877, + bear_point_account="24873215-c062-4581-ba1f-47d11e7f6e04", + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_8(self): + response = client.send(pp.UpdateCheck( + "af65ed67-ae3d-4d08-8e61-462c32d126e0", + description="aFv4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqybT3XFSWXNEvBDebROkI568yn", + is_onetime=False, + usage_limit=6556, + expires_at="2020-03-24T17:53:25.000000Z", + point_expires_at="2024-03-18T09:29:58.000000Z", + point_expires_in_days=2338, + bear_point_account="4a714c3c-dc8d-4d76-8164-2d67637a06b2", + is_disabled=False + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_9(self): + response = client.send(pp.UpdateCheck( + "af65ed67-ae3d-4d08-8e61-462c32d126e0", + point_amount=6522.0, + description="E6cQfJbdKVhYmdIeaGtyZiVBF", is_onetime=True, - description="wz6QVslbgmox4sylqaj0m4" + usage_limit=8545, + expires_at="2026-04-13T18:16:19.000000Z", + point_expires_at="2022-07-03T08:06:41.000000Z", + point_expires_in_days=2183, + bear_point_account="b3825056-ce06-4cc5-b57d-9c351e22f5fd", + is_disabled=True + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_check_10(self): + response = client.send(pp.UpdateCheck( + "af65ed67-ae3d-4d08-8e61-462c32d126e0", + money_amount=6092.0, + point_amount=6321.0, + description="IKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmP", + is_onetime=False, + usage_limit=3159, + expires_at="2026-04-03T13:44:55.000000Z", + point_expires_at="2022-11-06T22:56:44.000000Z", + point_expires_in_days=5504, + bear_point_account="6334aaa8-498c-499f-81e5-80ba972ad034", + is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_get_cpm_token_0(self): response = client.send(pp.GetCpmToken( - "NHRO5ZxO4O3NjLEysHxuDJ" + "3BTjYiVtdGDmgs4Vk2VUx2" )) self.assertNotEqual(response.status_code, 400) @@ -979,226 +1321,238 @@ def test_list_transactions_0(self): def test_list_transactions_1(self): response = client.send(pp.ListTransactions( - description="z86s8rMyDwBbVQMVNIv43CsGJ1N1Ty1LpoGWtPPIzjjzRC7Vh9LObliCnClJEf5Qg177zO5rb" + description="tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQPcXHRn98CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DA" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_2(self): response = client.send(pp.ListTransactions( types=["cashback"], - description="EpgsB3u1k6p1M3AaDCD8U2M3hy0vfxtwSmqJp6yKARh5ZRW3Kxq9vutzMeQNTZUuVlFabCqRikwgbBJfMhTrHTPQaRFRzLrLpSH0GqkthOAKJR8VBFpRQxxKQe" + description="8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_3(self): response = client.send(pp.ListTransactions( - is_modified=True, - types=["expire"], - description="TlRS" + is_modified=False, + types=["exchange_inflow", "payment", "topup", "cashback", "expire"], + description="sdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mh" )) 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="aac8be8c-c6d6-40c6-9497-597797080b35", + is_modified=True, + types=["exchange_inflow", "payment", "cashback", "expire"], + description="emCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k" )) 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", - is_modified=True, - types=[], - description="uCdyUUls75UdwXdZijuTLMB27QQHu" + organization_code="Q1--MYcX6--VwOC4A-8B-7-9r6", + private_money_id="7e847f87-3aba-46e0-9c0f-eef1dfd1264e", + is_modified=False, + types=["expire", "cashback", "topup", "payment", "exchange_outflow"], + description="hBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiT" )) 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="dRlgPR", + organization_code="--VY6Id6z7n97wgzf9-s--sp05F6Y-", + private_money_id="01cd2823-f49d-4319-860d-5d38c6713e46", + is_modified=True, + types=["exchange_outflow", "cashback", "expire", "topup", "payment", "exchange_inflow"], + description="68uiy2IBQsKNbECUonyUv3nTPZ701h3V5Qywi2pn04JUSx27eVHz2" )) 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", - is_modified=True, - types=[], - description="gB5z5qrK2mXuD0UWST9ldTa29xEBfE4jaoCgaw81ksIPXpJoHnKZwzgtMuSjmXprQOJIDMtkxUA3CwMowYwsohy6o54EyGXhKAybq9is4L00eclCf6ygQgmzcLUKbT5feGtXeOgCjHXo5HdhOmdyoXuDdYfk0Kl5lQobWMeUr" + terminal_id="50301b5d-b077-4bfb-9460-9f8913af16cf", + transaction_id="9gOffBCzd", + organization_code="k-6HA3IhSPF--Ue-", + private_money_id="fd9468c8-4057-4105-b30b-a7daf1ae3c8a", + is_modified=False, + types=["cashback", "expire"], + description="770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1t" )) 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="h3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXDkJqy1UyPaGHVkyMSdmemZcovbEUc9TiM3DTSa7pJlo8JS6mIVfCl8O6XTpGUPEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7z", + terminal_id="1ea2c4d1-3a66-457f-b46a-45b1bf3c8d58", + transaction_id="61iQEXBdw", + organization_code="JjmR--3L-TjzF-zK----T-74", + private_money_id="7f613023-c282-4c4a-9f4e-bc629cf016b4", is_modified=False, - types=[], - description="HzepSQlFXs1g1p8h9cEw94TVm3QEXbRfQ4MBKBqC3S2iDFnRE3SwskPWs7mGvsLBFz2ikalm5QIcpZb2q5YnZ6axCoTTIbjOEPBaRli2lUAMJ7CyG5TMfzsA0CzHGei6FNa5iNHS8ae3s1VgKjc7Q8j7Z0S" + types=["exchange_outflow", "cashback"], + description="VKNsj3zA7Dw0uibv6O0nFaLFwVLIZnC6rDyYuuG1XnlSIVa" )) 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", - is_modified=False, - types=["expire", "cashback", "exchange_outflow", "payment", "exchange_inflow", "topup"], - description="oiZ9sjCAHNKHbkDV7xD9UgYkUYCn38T5jddnt" + customer_id="c886ca86-59bb-4598-bba9-8ba267d61a1c", + customer_name="CTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYv", + terminal_id="686f83c8-1ae9-4867-a4c2-0116c175ee8a", + transaction_id="vKVDdotVds", + organization_code="7M3P8q02", + private_money_id="70ea2ec1-893a-457e-80d9-46e08442b79d", + is_modified=True, + types=["expire", "exchange_inflow", "exchange_outflow", "payment", "cashback", "topup"], + description="lwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbPQzPRirLmp7HiQajpl09d6QIiaL5c40GPi4ivB" )) 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", - is_modified=True, - types=[], - description="v51Dnx9WEjtPQeVvIzNJybaWd5nDKgnWgGOF388caTufq1V8gMtPEUm5qxAkXQdgmA6Ox4Cr60" + shop_id="b882c6e9-4b0a-4fb3-a57f-d04a01d40e68", + customer_id="a7014444-49e7-4e0d-aba1-a1419a9feb69", + customer_name="Q5RhXwEfmyakwCi2K41MKrJ8u3Jt", + terminal_id="5870e200-4d0b-4d07-99a8-754a3dad4fc8", + transaction_id="13BJLqUR", + organization_code="N--5--S-U-HMttdi4E-wKXMT-3Et--m", + private_money_id="b34265ce-d986-4100-ba83-04d792014d83", + is_modified=False, + types=["expire", "cashback", "payment", "exchange_outflow", "exchange_inflow"], + description="tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZt" )) 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=5060, + shop_id="4846108f-77bd-4f00-b506-3b8ea77d2ca8", + customer_id="00c97760-2579-4a5e-b0ed-a638c4074c97", + customer_name="U2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8ZrqfNGAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiol", + terminal_id="f7bf186e-218b-450a-9b95-c641b19c379b", + transaction_id="0O5", + organization_code="-3", + private_money_id="c0640bf2-7117-4510-8fc0-cf5f1dc538f1", + is_modified=True, + types=["payment"], + description="4GA8B6QEvmEtQTqfIDfhF08aWAgYKgMRg4eijui0x4AzukqXii06wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrO" )) 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=5680, + per_page=827, + shop_id="00049ade-ade9-444d-8747-9122696c945c", + customer_id="dc55bfaa-471f-4283-84aa-02a4d2b0d72f", + customer_name="xwkBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyBab", + terminal_id="2e629744-356a-45b1-b35f-b0a3029ae291", + transaction_id="7k6dP6L13j", + organization_code="li3----Zu-i-H11Q-R52-81-htQ52", + private_money_id="c248bbde-0606-47b9-95c3-e2629885ed94", + is_modified=True, + types=["topup", "cashback", "exchange_inflow", "expire"], + description="Yx5YXiYOW0oa5SUOR88F7Ubd6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK775FUjJKUwWsCFULHC5xu9xwKzEEFrv0p5VC2XFSxIKMXYPxeKc6v3uyZaCEMZ2Ju8UbXHSU9E0Qlg3gebvAwjzG8U" )) 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="2020-02-22T02:35:10.000000Z", + page=1890, + per_page=173, + shop_id="3b32c0db-0b70-4604-ae1d-cee7b99decbb", + customer_id="51915b97-e7c1-4c25-b444-a258653799ce", + customer_name="jsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5qYfKc", + terminal_id="19ef2b64-89f0-4145-a293-cca999f1d695", + transaction_id="ZoGgQ8JT7n", + organization_code="AVbaS-p-1i-rU6H0r5jHe2-", + private_money_id="e27953ca-b36e-4328-a087-794b05667db3", is_modified=False, - types=["exchange_outflow", "cashback", "expire", "topup"], - description="DzJGZ9TM0TySjAlV" + types=["exchange_outflow", "cashback", "exchange_inflow", "expire", "topup"], + description="Kkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KD" )) 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="2023-02-22T08:12:40.000000Z", + to="2026-02-26T18:38:28.000000Z", + page=8391, + per_page=9470, + shop_id="c7a92b6d-84c4-4214-b96b-0e25be84d3e2", + customer_id="171a1e62-d6c0-4814-ac27-471e244e13fb", + customer_name="i1vOnH69EFivIjA6JE", + terminal_id="d2fb73c8-5ec3-41c3-9b75-62cb9e97eeff", + transaction_id="nfNVTWFT", + organization_code="-HW-", + private_money_id="a90820a0-e168-40bf-b9ec-c17084730006", is_modified=False, - types=["expire", "topup", "exchange_outflow", "exchange_inflow"], - description="C2YnEIi9qrFhHU4UChBktVJM6Ehoat5RskjtjMRgfY9KAojiVjkW" + types=["cashback", "expire", "exchange_inflow", "payment"], + description="KPABZdrgh98RslDBuoJSIFUrTRne91u8KmONYXCce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDR" )) 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" + "aa4073e2-9dc6-4c5e-8a78-519a4030fcb9", + "08a9f6be-8871-465b-99b9-5f10792038eb", + "1ac5aa42-69b8-4f6b-96c4-8a3ddfe17a71" )) 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" + "aa4073e2-9dc6-4c5e-8a78-519a4030fcb9", + "08a9f6be-8871-465b-99b9-5f10792038eb", + "1ac5aa42-69b8-4f6b-96c4-8a3ddfe17a71", + description="Mjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZh" )) 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" + "aa4073e2-9dc6-4c5e-8a78-519a4030fcb9", + "08a9f6be-8871-465b-99b9-5f10792038eb", + "1ac5aa42-69b8-4f6b-96c4-8a3ddfe17a71", + point_expires_at="2024-01-28T03:14:03.000000Z", + description="71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vig" )) 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" + "aa4073e2-9dc6-4c5e-8a78-519a4030fcb9", + "08a9f6be-8871-465b-99b9-5f10792038eb", + "1ac5aa42-69b8-4f6b-96c4-8a3ddfe17a71", + point_amount=6524, + point_expires_at="2021-08-05T12:36:40.000000Z", + description="Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtq" )) 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" + "aa4073e2-9dc6-4c5e-8a78-519a4030fcb9", + "08a9f6be-8871-465b-99b9-5f10792038eb", + "1ac5aa42-69b8-4f6b-96c4-8a3ddfe17a71", + money_amount=3304, + point_amount=6052, + point_expires_at="2024-11-30T20:49:17.000000Z", + description="y1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7WZium" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_transaction_group_0(self): + response = client.send(pp.CreateTransactionGroup( + "uB2TNJcJGvSmks" + )) + self.assertNotEqual(response.status_code, 400) + + def test_show_transaction_group_0(self): + response = client.send(pp.ShowTransactionGroup( + "dcbc6f41-35b1-494d-b557-1f9e19df89b1" )) self.assertNotEqual(response.status_code, 400) @@ -1209,920 +1563,1161 @@ def test_list_transactions_v2_0(self): def test_list_transactions_v2_1(self): response = client.send(pp.ListTransactionsV2( - per_page=728 + per_page=895 )) 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="9affe42e-34c1-42b7-b9d3-11491cb41aba", + per_page=445 )) 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="e26dedd6-861e-4206-beab-759129b1b634", + prev_page_cursor_id="620a6ca7-ccd1-44f5-97e3-c6e1a6c15726", + per_page=556 )) 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="2025-02-25T12:27:47.000000Z", + next_page_cursor_id="7ffcabd4-7449-42af-8ca2-6ff5972a7718", + prev_page_cursor_id="0d8671fc-1777-45db-84a1-66707e512f13", + per_page=24 )) 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="2021-03-03T05:47:58.000000Z", + to="2020-11-02T16:14:51.000000Z", + next_page_cursor_id="5f117fa6-3e34-4da6-bc7d-d3d08df7e3ac", + prev_page_cursor_id="bae54b8c-9995-45e1-bf53-9cc2847fe62c", + per_page=860 )) 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", "topup", "exchange_outflow"], + start="2023-07-24T18:46:56.000000Z", + to="2022-03-23T22:27:59.000000Z", + next_page_cursor_id="d519a162-609d-466a-ba4e-fd18636df3a9", + prev_page_cursor_id="e902a551-3556-4057-b368-fb1421a993d0", + per_page=541 )) 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 + types=["expire", "payment", "cashback", "exchange_inflow", "exchange_outflow", "topup"], + start="2020-05-13T23:03:12.000000Z", + to="2025-08-29T18:46:22.000000Z", + next_page_cursor_id="6f98c972-bfce-4433-9186-7f1d34f50fc5", + prev_page_cursor_id="6b8e915b-602a-4b6d-a3b7-d371ab41c6c0", + per_page=517 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_8(self): response = client.send(pp.ListTransactionsV2( - transaction_id="Leg5dXf", + transaction_id="Sj", 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_outflow", "topup", "payment", "expire", "cashback"], + start="2020-11-04T02:56:26.000000Z", + to="2023-09-10T14:14:48.000000Z", + next_page_cursor_id="83daabba-7f3a-415e-a937-9dd2cc555249", + prev_page_cursor_id="9c7ea24b-7f24-493e-a192-0316d7217482", + per_page=443 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_9(self): response = client.send(pp.ListTransactionsV2( - description="dHtUdWqjwNZ6SqXcjRYXWjjppT0r9xvCuvBOfsidrDI9VlsfxLxW5axZvNGABU1Kq4dKF1bCFldqrEeXCX83UsZSPbix6b1Za3ly7V", - transaction_id="1xEB", + description="gDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8M", + transaction_id="f", 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 + types=["exchange_inflow", "expire"], + start="2020-06-26T21:56:37.000000Z", + to="2026-01-29T12:56:30.000000Z", + next_page_cursor_id="6d4851ee-065e-4463-9562-4cdcee0c9c37", + prev_page_cursor_id="348a8c70-58f2-404b-b129-a1d7470e3bd8", + per_page=201 )) 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", - 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 + customer_name="SFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf", + description="0ILh1FnEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeT", + transaction_id="hLpK", + 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_11(self): response = client.send(pp.ListTransactionsV2( - customer_id="01138506-06f8-4697-973a-73c5b9fe2fec", - customer_name="SvEGfkoczpVf2XfhCesDbLNG0um3YX4ee6SkSSSI0RCCs8xN6z62EIsVi251R9OVM6dJXfTSVkQAgLF0UCGkzWfvHQLNpl08", - description="kirPvpqWe6LFMxqHgshQQxZyXH54xcjjzE4jf3bC1uhrBdvXqhm8jwzIEhcNYML2OSzpp2xgjGNFVHJxj8ajHmdLScmLSMjxtIdUuX8NpagwVisjQjWa0Ga7Mr0", - transaction_id="bte93", + customer_id="3d45a502-0ba2-4239-858d-9efd2324260f", + customer_name="uR54ZsbCHGDImjW34z4jE8W9hhkpYWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4UwDxtqXzHNdytk1inQrWiktMK0FH", + description="nvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G", + transaction_id="nC3SW8MP", 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 + types=["exchange_inflow", "topup", "expire", "exchange_outflow", "cashback"], + start="2024-09-16T01:46:53.000000Z", + to="2024-02-07T12:05:40.000000Z", + next_page_cursor_id="c866fddf-cea8-470d-99ac-6a545802c7b7", + prev_page_cursor_id="b06a63e5-0ca1-4445-9983-0428cd7f6c4c", + per_page=793 )) 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="d7bb6f77-8414-4876-bec8-75dea7222451", + customer_id="029093aa-5ac6-434b-84c9-e10ded77c411", + customer_name="mV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJ", + description="bgCOpN2", + transaction_id="1EzYv53", 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", "payment", "expire"], + start="2025-01-03T08:38:25.000000Z", + to="2021-08-16T18:19:56.000000Z", + next_page_cursor_id="7bddf736-ba3a-42a9-9e6e-f53e73568008", + prev_page_cursor_id="aeded85e-d8e8-4533-a89f-ad623478ee6f", + per_page=322 )) 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="3cd9dab1-77ba-459b-96aa-a161c81a23d8", + terminal_id="6335e551-3171-46de-a3d9-d09128c4527c", + customer_id="2087837a-83a3-48b4-8d19-7a37c03d9bc8", + customer_name="v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXUyJ1", + description="0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro", + transaction_id="4JT6XY3Y", 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=["exchange_inflow", "expire", "topup", "cashback", "payment", "exchange_outflow"], + start="2020-03-20T10:29:34.000000Z", + to="2021-10-14T07:48:59.000000Z", + next_page_cursor_id="a8bb84db-b83a-4ffb-8fb4-64a7c675590e", + prev_page_cursor_id="e8b7d8a5-c526-4f80-a100-9797c38e1368", + per_page=577 )) 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="ZeHPeECe-6-HB--3w4", + shop_id="bb876e5f-5434-4de3-a35d-add4cbcdcdf1", + terminal_id="4d70948e-0eee-4106-8e8d-bc6649c47b53", + customer_id="0cbf603e-3c5e-4002-9269-f7d8605c8206", + customer_name="Lw6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3jya01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gp", + description="54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5m", + transaction_id="etJol0", 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=["expire", "payment", "exchange_outflow"], + start="2023-02-13T13:35:12.000000Z", + to="2022-07-05T19:38:37.000000Z", + next_page_cursor_id="31667f56-64f7-4942-8253-e9aed876eec2", + prev_page_cursor_id="d8ef2bb9-b5ce-428e-9175-dac73b92770b", + per_page=829 )) 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="e73cf57f-963b-4109-8714-7494db69d531", + organization_code="-k-TLZ-3-6n9g5", + shop_id="24a53edd-cd97-4e48-a748-be3d12090788", + terminal_id="30f33c71-622f-42b4-8156-2e90dc65cf89", + customer_id="d0f57343-9d1e-462a-be02-9ed058b5ef07", + customer_name="pFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5", + description="ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2i", + transaction_id="LhkB0", + is_modified=True, + types=["expire", "payment", "exchange_inflow", "cashback"], + start="2024-06-20T05:25:25.000000Z", + to="2022-04-12T16:41:10.000000Z", + next_page_cursor_id="cc6f73f7-d93c-4eac-a334-38d98eac5466", + prev_page_cursor_id="eb83cc8f-73ee-4e13-ba2b-97b5bd45e765", + per_page=993 )) 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=820 )) 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="ecc38f62-6f3e-4dea-81d8-10adeff09dcb", + per_page=237 )) 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="4170e63c-0264-48c1-a9ce-7e47bd1a73fa", + prev_page_cursor_id="3a0a4353-a697-49da-a534-8c39c0b6c597", + per_page=894 )) self.assertNotEqual(response.status_code, 400) - def test_create_topup_transaction_4(self): + def test_list_bill_transactions_4(self): + response = client.send(pp.ListBillTransactions( + to="2023-04-12T05:22:34.000000Z", + next_page_cursor_id="13829b2d-9390-4cf1-8e8c-2acb9202ad3b", + prev_page_cursor_id="59790e56-f29a-42bf-bf31-3df29bb11f80", + per_page=105 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_5(self): + response = client.send(pp.ListBillTransactions( + start="2026-01-29T13:58:46.000000Z", + to="2021-12-14T11:57:15.000000Z", + next_page_cursor_id="a234dbec-dc4c-4c28-ac8a-a5a3f83b86a4", + prev_page_cursor_id="794b9bee-aa66-47ff-8841-d86789c47f2f", + per_page=191 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_6(self): + response = client.send(pp.ListBillTransactions( + is_modified=True, + start="2024-07-17T12:09:59.000000Z", + to="2020-10-20T14:02:40.000000Z", + next_page_cursor_id="46fe7a14-2193-4d92-8e4a-617e946bb1cb", + prev_page_cursor_id="a8341a80-407b-4e2e-891e-4fc44e197f2c", + per_page=325 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_7(self): + response = client.send(pp.ListBillTransactions( + bill_id="1ae7eb0f-fd81-4245-9aea-ab75d3ae1824", + is_modified=True, + start="2021-03-01T23:36:30.000000Z", + to="2020-12-25T17:50:11.000000Z", + next_page_cursor_id="a16f420f-2ffc-43ed-8fba-c4dffcc846a9", + prev_page_cursor_id="620254c5-9e0b-409d-949a-108e9bf39950", + per_page=86 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_8(self): + response = client.send(pp.ListBillTransactions( + transaction_id="ce61ce4c-bc02-4205-b62c-4bd420b1b5c4", + bill_id="796c8452-7991-4319-9b11-022d1c42470f", + is_modified=True, + start="2023-11-05T13:13:38.000000Z", + to="2024-04-14T09:45:32.000000Z", + next_page_cursor_id="39570a02-854e-410b-ad6a-bd9ab8f9a9dd", + prev_page_cursor_id="551e9a4b-5dd7-4914-9011-4cc4447069bc", + per_page=710 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_9(self): + response = client.send(pp.ListBillTransactions( + description="en9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04aLs4hmy4C28WnCRfz2leovb1R7O6QOg", + transaction_id="464a1e5f-9fe2-479e-98dc-366ff5c8bfd7", + bill_id="7c39ceb2-8013-48fa-b087-0a63a3364514", + is_modified=False, + start="2025-02-10T02:46:35.000000Z", + to="2026-02-19T14:08:12.000000Z", + next_page_cursor_id="baeebc9d-7097-467b-bd78-8c3d5c97b9af", + prev_page_cursor_id="e4a7d261-29b2-4c23-9193-62dae29ee18e", + per_page=110 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_10(self): + response = client.send(pp.ListBillTransactions( + terminal_id="662ca6e1-68a2-4d8c-803c-9caa61162d92", + description="CRo8nyJO9Y3f9djMgk8QSZwJ1udEIb7zDJ6KZTEk0mDRGqd8jGihF2z", + transaction_id="a15dc3ef-3aa6-4b80-b2c7-a5ff6501f219", + bill_id="4309bea3-b6ce-4b8e-b39d-227b06ecaf87", + is_modified=False, + start="2026-03-20T09:05:04.000000Z", + to="2020-05-20T13:27:53.000000Z", + next_page_cursor_id="a4d3bc44-891f-4eff-bc9f-bf83700c66ad", + prev_page_cursor_id="2b4a49c7-f836-4803-8da6-d22837d6948c", + per_page=324 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_11(self): + response = client.send(pp.ListBillTransactions( + customer_name="S1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQl4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM", + terminal_id="e5421b33-0285-45e9-bf5f-9c60fb8726db", + description="dWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0y", + transaction_id="b197b1f9-901d-4a36-b372-eb1f540fbc52", + bill_id="4b6a223c-2015-467b-975a-d2cef1d66243", + is_modified=False, + start="2024-03-10T12:43:12.000000Z", + to="2023-10-06T03:37:06.000000Z", + next_page_cursor_id="d334641c-b42e-4b11-9d14-415967b86728", + prev_page_cursor_id="d790db16-c802-4fca-95a7-93213eaba246", + per_page=344 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_12(self): + response = client.send(pp.ListBillTransactions( + customer_id="074a46f0-0634-44af-934a-25dd9e9970c4", + customer_name="d9Vw0ghvUwHY4GPMgqa4p3NBV6jn", + terminal_id="cfe7b1c4-a33a-4545-886d-314e6efa50e0", + description="nmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIU", + transaction_id="1b90ab64-46ea-4fdf-ae32-94dfa5cdae26", + bill_id="38d30c4a-03db-4abc-ac5b-8ecd729285d3", + is_modified=True, + start="2024-02-17T06:31:24.000000Z", + to="2020-01-06T20:38:41.000000Z", + next_page_cursor_id="fd5c0336-0e2b-4b9d-9638-32dcfd82b697", + prev_page_cursor_id="20c77311-67e4-498b-afd2-c8084e7e59d9", + per_page=852 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_13(self): + response = client.send(pp.ListBillTransactions( + shop_id="1d9fc0c6-2685-4144-a967-90e726f66873", + customer_id="865779e1-74f3-4934-8ea1-a82262fefb22", + customer_name="4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc", + terminal_id="114e8fb0-c375-41a2-99b6-c78085b74174", + description="zaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaLr1", + transaction_id="c81a0cc2-7c07-4a5f-9e8b-8ecc4a7031d9", + bill_id="db01c22d-6011-4ce4-a38d-62e775c56e73", + is_modified=True, + start="2021-04-19T08:23:15.000000Z", + to="2021-07-28T17:50:55.000000Z", + next_page_cursor_id="ee18f7c2-650e-403c-b78e-85bbb96db46e", + prev_page_cursor_id="b003dee6-a704-45b3-80fa-58b70bcb60a7", + per_page=763 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_14(self): + response = client.send(pp.ListBillTransactions( + organization_code="Ff795oru--w13-dL-Oj6-T77-Qk-f", + shop_id="8dce3908-94bc-4793-b211-760788136513", + customer_id="b6611fff-d137-455d-b92d-73a858c514d6", + customer_name="YZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76H", + terminal_id="c315d379-c01d-404b-a614-51116253548d", + description="k1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIc", + transaction_id="db29433c-de4e-4c19-8972-5746dac8432e", + bill_id="9e5d8b40-ce76-4413-9e1d-41ec043b69d1", + is_modified=True, + start="2023-07-15T01:25:26.000000Z", + to="2024-08-27T17:34:23.000000Z", + next_page_cursor_id="9daa6049-0d0c-44d8-945e-bfb196edc93f", + prev_page_cursor_id="4e776bca-9fc2-4a8b-a725-f85d67b0e3ee", + per_page=243 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_15(self): + response = client.send(pp.ListBillTransactions( + private_money_id="406e7215-c344-46b1-9c0b-5dc00ce938f9", + organization_code="Jt-r-c9-5P-", + shop_id="bde368f4-2f80-4e8b-acb3-22bb0dea780d", + customer_id="8d6dd469-3e81-48ec-bece-8d90242c2ccf", + customer_name="PpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rWW", + terminal_id="8481e464-8ecb-439a-b2f9-a6101006bce2", + description="DtXJiikZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSe", + transaction_id="e6de3d91-f66f-4eff-aafa-360b778e8a1a", + bill_id="1dc33a4f-c11c-48a0-a4da-c95a743c5826", + is_modified=True, + start="2021-07-20T01:44:32.000000Z", + to="2023-02-10T23:39:25.000000Z", + next_page_cursor_id="0671362b-dc4c-49f8-af4f-e314ef033097", + prev_page_cursor_id="be8d6000-a333-44f8-a30f-993654746af2", + per_page=6 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_0(self): + response = client.send(pp.CreateTopupTransaction( + "a84f0731-371b-40a3-969e-ef824e3ef7af", + "2827cc83-fe69-4e1d-87ad-fda1b6cb102c", + "f57266bb-9b0d-4491-a060-e55e4bbb9607" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_1(self): + response = client.send(pp.CreateTopupTransaction( + "a84f0731-371b-40a3-969e-ef824e3ef7af", + "2827cc83-fe69-4e1d-87ad-fda1b6cb102c", + "f57266bb-9b0d-4491-a060-e55e4bbb9607", + request_id="0143ecf5-322f-4dcf-95ee-1b731791829d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_2(self): + response = client.send(pp.CreateTopupTransaction( + "a84f0731-371b-40a3-969e-ef824e3ef7af", + "2827cc83-fe69-4e1d-87ad-fda1b6cb102c", + "f57266bb-9b0d-4491-a060-e55e4bbb9607", + metadata="{\"key\":\"value\"}", + request_id="0644ba22-0470-4c8e-8e61-418ce868a7bb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_3(self): + response = client.send(pp.CreateTopupTransaction( + "a84f0731-371b-40a3-969e-ef824e3ef7af", + "2827cc83-fe69-4e1d-87ad-fda1b6cb102c", + "f57266bb-9b0d-4491-a060-e55e4bbb9607", + description="l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5h", + metadata="{\"key\":\"value\"}", + request_id="543a9457-5a0d-45d2-af8a-a58bf61638f0" + )) + 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", + "a84f0731-371b-40a3-969e-ef824e3ef7af", + "2827cc83-fe69-4e1d-87ad-fda1b6cb102c", + "f57266bb-9b0d-4491-a060-e55e4bbb9607", + point_expires_at="2022-03-09T14:17:42.000000Z", + description="q8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQ", metadata="{\"key\":\"value\"}", - request_id="d487cff9-f3e6-4eb5-9112-3064cda241fc" + request_id="ad91f067-28d4-4a3f-801f-218c69e677b1" )) 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", + "a84f0731-371b-40a3-969e-ef824e3ef7af", + "2827cc83-fe69-4e1d-87ad-fda1b6cb102c", + "f57266bb-9b0d-4491-a060-e55e4bbb9607", + point_amount=5703, + point_expires_at="2020-10-04T20:13:31.000000Z", + description="boXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2b", metadata="{\"key\":\"value\"}", - request_id="f1ee1412-40fb-491d-b13a-170163f455a8" + request_id="edbae305-a4f4-40bc-ba15-fdc9185c09b2" )) 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", + "a84f0731-371b-40a3-969e-ef824e3ef7af", + "2827cc83-fe69-4e1d-87ad-fda1b6cb102c", + "f57266bb-9b0d-4491-a060-e55e4bbb9607", + money_amount=2038, + point_amount=6281, + point_expires_at="2020-11-07T11:06:40.000000Z", + description="aIy1dRKuzOlLMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXq", metadata="{\"key\":\"value\"}", - request_id="9024ecbb-e800-453b-a6e2-b45d82161f75" + request_id="f531c559-4269-47c4-91d0-4413c42e0e0a" )) 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", + "a84f0731-371b-40a3-969e-ef824e3ef7af", + "2827cc83-fe69-4e1d-87ad-fda1b6cb102c", + "f57266bb-9b0d-4491-a060-e55e4bbb9607", + bear_point_shop_id="041237fe-a7c6-4876-b2f8-0ac9f086f0d8", + money_amount=9545, + point_amount=6068, + point_expires_at="2026-01-21T21:53:20.000000Z", + description="lPvyiodipyOhBLvJd18F7msVClYIZ6Bq4ZCm153p", metadata="{\"key\":\"value\"}", - request_id="457a8c16-41f4-473d-a56a-e67baa506a4f" + request_id="a10018c1-5477-48e9-9ee4-0073c832b9cb" )) 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" + "f0633e4d-d331-483a-98be-447b673f72a6", + "c79db70b-a7da-47a7-b028-e468addb2a70" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_with_check_1(self): + response = client.send(pp.CreateTopupTransactionWithCheck( + "f0633e4d-d331-483a-98be-447b673f72a6", + "c79db70b-a7da-47a7-b028-e468addb2a70", + request_id="ccb032cc-5785-44bc-bd03-2068b7925976" )) 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 + "eb8931b7-33ce-4f49-af2c-781480def284", + "004ebc8f-5d87-4c02-9c03-510929e65c8c", + "c9763900-a871-4e8f-9ced-6a873a7d90dc", + 8365 )) 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" + "eb8931b7-33ce-4f49-af2c-781480def284", + "004ebc8f-5d87-4c02-9c03-510929e65c8c", + "c9763900-a871-4e8f-9ced-6a873a7d90dc", + 8365, + coupon_id="033fc6ba-191f-4d6c-92ca-d5af03e4dadf" )) 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, + "eb8931b7-33ce-4f49-af2c-781480def284", + "004ebc8f-5d87-4c02-9c03-510929e65c8c", + "c9763900-a871-4e8f-9ced-6a873a7d90dc", + 8365, + strategy="money-only", + coupon_id="f0b54270-18fa-4b4b-8fde-8926e52c359c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_3(self): + response = client.send(pp.CreatePaymentTransaction( + "eb8931b7-33ce-4f49-af2c-781480def284", + "004ebc8f-5d87-4c02-9c03-510929e65c8c", + "c9763900-a871-4e8f-9ced-6a873a7d90dc", + 8365, + request_id="7686cd8d-850f-4f59-8002-0524f841d81f", + strategy="point-preferred", + coupon_id="c5bba549-991d-4b73-927c-4674804909c6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_4(self): + response = client.send(pp.CreatePaymentTransaction( + "eb8931b7-33ce-4f49-af2c-781480def284", + "004ebc8f-5d87-4c02-9c03-510929e65c8c", + "c9763900-a871-4e8f-9ced-6a873a7d90dc", + 8365, 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, - "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="05388d2b-f3b9-40f8-b87c-085f945b4738", + strategy="money-only", + coupon_id="f5ac7b5f-1240-4c83-9a11-a5c898483ce3" )) self.assertNotEqual(response.status_code, 400) - def test_create_payment_transaction_3(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, + "eb8931b7-33ce-4f49-af2c-781480def284", + "004ebc8f-5d87-4c02-9c03-510929e65c8c", + "c9763900-a871-4e8f-9ced-6a873a7d90dc", + 8365, 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, - "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="38ea6024-15d4-4d61-8a86-423af8ea204f" + request_id="1594e7da-d63c-4b58-a00b-da9cf09ab84e", + strategy="money-only", + coupon_id="f3d1f611-f033-4658-a128-b0b73f8534a5" )) self.assertNotEqual(response.status_code, 400) - def test_create_payment_transaction_4(self): + def test_create_payment_transaction_6(self): response = client.send(pp.CreatePaymentTransaction( - "66b1b6e3-f490-444d-9c3c-7f52a4ee1dbc", - "4a6f0990-2205-4e7a-bfef-08f7dd62f10a", - "1070e59d-0123-45bf-a02e-32724a291586", - 9028, - description="MMolvbDp36ZS9Ve1qo3bvmXucCaFZQN2ap2j3Mr8o8HkBWUUKfQKZC3BSMS3hsgpJcO", + "eb8931b7-33ce-4f49-af2c-781480def284", + "004ebc8f-5d87-4c02-9c03-510929e65c8c", + "c9763900-a871-4e8f-9ced-6a873a7d90dc", + 8365, + description="o7nFXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsa", metadata="{\"key\":\"value\"}", products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "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="9ac4e641-90e4-45b6-958c-8f6f147822fc" + request_id="4b3fafb8-9781-46d4-b261-ddacb933a947", + strategy="point-preferred", + coupon_id="1e32187f-185b-48b0-9c50-ddbbcfa5867d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_with_bill_0(self): + response = client.send(pp.CreatePaymentTransactionWithBill( + "f1f108ae-d050-4b36-b4ee-2726df63f8f1", + "fa068c0c-0448-4810-ae0a-e3756bdb906f" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_with_bill_1(self): + response = client.send(pp.CreatePaymentTransactionWithBill( + "f1f108ae-d050-4b36-b4ee-2726df63f8f1", + "fa068c0c-0448-4810-ae0a-e3756bdb906f", + strategy="point-preferred" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_with_bill_2(self): + response = client.send(pp.CreatePaymentTransactionWithBill( + "f1f108ae-d050-4b36-b4ee-2726df63f8f1", + "fa068c0c-0448-4810-ae0a-e3756bdb906f", + request_id="bdba6293-2a55-47c9-90cc-bb0e05e7d04f", + strategy="point-preferred" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_with_bill_3(self): + response = client.send(pp.CreatePaymentTransactionWithBill( + "f1f108ae-d050-4b36-b4ee-2726df63f8f1", + "fa068c0c-0448-4810-ae0a-e3756bdb906f", + metadata="{\"key\":\"value\"}", + request_id="990f50e9-ecfa-497f-b666-78015480b78b", + strategy="point-preferred" )) 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 + "bTrh0kbVP56HQVtzlq6MKo", + "0c64a624-5fc2-440c-a0fd-d7be02777ae5", + 7183.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" + "bTrh0kbVP56HQVtzlq6MKo", + "0c64a624-5fc2-440c-a0fd-d7be02777ae5", + 7183.0, + strategy="point-preferred" )) 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, + "bTrh0kbVP56HQVtzlq6MKo", + "0c64a624-5fc2-440c-a0fd-d7be02777ae5", + 7183.0, + request_id="26621fbf-7522-4d9c-ba53-ba5a348aec47", + strategy="point-preferred" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_cpm_transaction_3(self): + response = client.send(pp.CreateCpmTransaction( + "bTrh0kbVP56HQVtzlq6MKo", + "0c64a624-5fc2-440c-a0fd-d7be02777ae5", + 7183.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, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="808d1e8e-3cc7-48b7-b0ca-c83dbd739c4d" + request_id="1427dde8-cf8b-4cb8-9e6b-04edb3819e33", + strategy="money-only" )) 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, + "bTrh0kbVP56HQVtzlq6MKo", + "0c64a624-5fc2-440c-a0fd-d7be02777ae5", + 7183.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, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="ba2c2be2-340e-4b01-921c-5988aceb9053" + request_id="bcd57ad0-3440-4d41-9d1a-9c141202f1ba", + strategy="point-preferred" )) self.assertNotEqual(response.status_code, 400) - def test_create_cpm_transaction_4(self): + def test_create_cpm_transaction_5(self): response = client.send(pp.CreateCpmTransaction( - "cE4mBLmKXcPupi77r56oXC", - "69188c4e-2113-4363-8325-43334faeaae4", - 4786.0, - description="mw5RMuvJN6cdbvg50QHlnDydRn68KboUvDsNqKoorksWBQ398rR59EiVvlwAljCUfIeXX8HLaAA7O7c9AzboPOcXU3N4H4mDJ", + "bTrh0kbVP56HQVtzlq6MKo", + "0c64a624-5fc2-440c-a0fd-d7be02777ae5", + 7183.0, + description="UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0", metadata="{\"key\":\"value\"}", products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="353709dd-b35b-4569-8024-fa4bb00b0e71" + request_id="4d22d5e4-023d-482e-b9cc-6b15486bcb6d", + strategy="money-only" )) 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 + def test_create_transaction_with_cashtray_0(self): + response = client.send(pp.CreateTransactionWithCashtray( + "542ed235-0186-498d-86b7-3dd871b2be6d", + "a468cf70-156f-4b60-a271-9ee6ccbb7683" )) 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" + def test_create_transaction_with_cashtray_1(self): + response = client.send(pp.CreateTransactionWithCashtray( + "542ed235-0186-498d-86b7-3dd871b2be6d", + "a468cf70-156f-4b60-a271-9ee6ccbb7683", + request_id="412ec21b-b050-4986-ad49-d472952b1b0d" )) 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" + def test_create_transaction_with_cashtray_2(self): + response = client.send(pp.CreateTransactionWithCashtray( + "542ed235-0186-498d-86b7-3dd871b2be6d", + "a468cf70-156f-4b60-a271-9ee6ccbb7683", + strategy="money-only", + request_id="0d8098a4-f2c7-4a56-8fe8-ccbddcc6e9f3" )) self.assertNotEqual(response.status_code, 400) - def test_create_transfer_transaction_3(self): + def test_create_transfer_transaction_0(self): + response = client.send(pp.CreateTransferTransaction( + "1e1d09fc-0c4c-4d4a-95e9-cdf136984c08", + "a14cb589-43fb-4c27-a2ba-25fccaa61c51", + "e8e1861c-f233-4d4d-91a1-cd8c56b4ad04", + 1583.0 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_transfer_transaction_1(self): + response = client.send(pp.CreateTransferTransaction( + "1e1d09fc-0c4c-4d4a-95e9-cdf136984c08", + "a14cb589-43fb-4c27-a2ba-25fccaa61c51", + "e8e1861c-f233-4d4d-91a1-cd8c56b4ad04", + 1583.0, + request_id="b697a6ff-a3a4-4039-8394-ad8bf8342980" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_transfer_transaction_2(self): + response = client.send(pp.CreateTransferTransaction( + "1e1d09fc-0c4c-4d4a-95e9-cdf136984c08", + "a14cb589-43fb-4c27-a2ba-25fccaa61c51", + "e8e1861c-f233-4d4d-91a1-cd8c56b4ad04", + 1583.0, + description="ltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4", + request_id="8fa2ccf3-ad27-42c9-9158-38667f3cbc42" + )) + 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, + "1e1d09fc-0c4c-4d4a-95e9-cdf136984c08", + "a14cb589-43fb-4c27-a2ba-25fccaa61c51", + "e8e1861c-f233-4d4d-91a1-cd8c56b4ad04", + 1583.0, metadata="{\"key\":\"value\"}", - description="9HnlNHLuA0aOdVgj6K1GxL1yIWWOf6rndacFLJTT1b61igwFwXc9Xw81AcLgJ7HUPLZ2JY3PzdziozZN0eUlnWAmEdaqY8pJTyG58WWoVkTIofZ63ZHIa2ZaoOg0V0uaqelttkE7ehROL4XrOdkUWUyHCGGZhBjhjuTKoJ3qmoFsOI4faRjWQ8", - request_id="064416e7-5085-495b-930e-ee4ba9e6144f" + description="ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQq", + request_id="584643f6-fe36-42af-94b7-2c1b4a64f38a" )) 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 + "9be537e5-bcc9-4a7e-a151-2a20fcf15d8d", + "1d352358-cf82-4648-aa81-564a68328ea8", + "c7e97add-7de4-4938-9328-c1166703b8a9", + 2325 )) 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" + "9be537e5-bcc9-4a7e-a151-2a20fcf15d8d", + "1d352358-cf82-4648-aa81-564a68328ea8", + "c7e97add-7de4-4938-9328-c1166703b8a9", + 2325, + request_id="c5916917-f2ee-42a3-b0ce-7dd0aea3beee" )) 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" + "9be537e5-bcc9-4a7e-a151-2a20fcf15d8d", + "1d352358-cf82-4648-aa81-564a68328ea8", + "c7e97add-7de4-4938-9328-c1166703b8a9", + 2325, + description="9WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sP", + request_id="04be2bd9-39d7-4a41-8bc9-f12ba415a99a" )) self.assertNotEqual(response.status_code, 400) def test_bulk_create_transaction_0(self): response = client.send(pp.BulkCreateTransaction( - "FvGq64q", - "mrZJcpF", - "iWZHeIfQdHdvs4v2aUitPGe5J3m0ryc2OEvF" + "aPAnl", + "G8mho7qK", + "jeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3W" )) 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" + "aPAnl", + "G8mho7qK", + "jeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3W", + callback_url="https://nRoU2x23.example.com" )) 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" + "aPAnl", + "G8mho7qK", + "jeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3W", + private_money_id="5df20958-f57e-4f1e-89cb-fb66c92d6f41", + callback_url="https://MBShU6I6.example.com" + )) + self.assertNotEqual(response.status_code, 400) + + def test_bulk_create_transaction_3(self): + response = client.send(pp.BulkCreateTransaction( + "aPAnl", + "G8mho7qK", + "jeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3W", + description="bRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9", + private_money_id="535c522f-0b58-42c9-88ba-058db9b2844e", + callback_url="https://J3Yd9vs5.example.com" )) self.assertNotEqual(response.status_code, 400) def test_get_transaction_0(self): response = client.send(pp.GetTransaction( - "da124937-e649-4c71-982a-a6e301d6ef86" + "0a5d469c-cf3a-4bd2-ae35-d7769da3f599" )) self.assertNotEqual(response.status_code, 400) def test_refund_transaction_0(self): response = client.send(pp.RefundTransaction( - "62bfd79c-c5c6-48bb-be08-8badf5722a1e" + "64640ad2-00e5-4f94-bfcd-bde28f7ec3a8" )) 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" + "64640ad2-00e5-4f94-bfcd-bde28f7ec3a8", + returning_point_expires_at="2023-09-13T10:24:34.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" + "64640ad2-00e5-4f94-bfcd-bde28f7ec3a8", + description="VX8HS4JwKvfQBXbwG5FfObbKUS2", + returning_point_expires_at="2026-01-19T23:15:03.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" + "c654a24f-43b8-46a3-8a55-f2d39711832c" )) 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 + "553a7336-5e54-4563-a64d-d64e39223304", + "76d52777-b79c-44a4-a606-29e0c53f202c", + "4cdf86f5-f82a-4ce4-9a64-62849749343c", + 7324 )) 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" + "553a7336-5e54-4563-a64d-d64e39223304", + "76d52777-b79c-44a4-a606-29e0c53f202c", + "4cdf86f5-f82a-4ce4-9a64-62849749343c", + 7324, + done_at="2023-03-29T02:30:18.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" + "553a7336-5e54-4563-a64d-d64e39223304", + "76d52777-b79c-44a4-a606-29e0c53f202c", + "4cdf86f5-f82a-4ce4-9a64-62849749343c", + 7324, + request_id="d7b7cecf-38e3-41c4-8e22-df7d1d6de3b2", + done_at="2020-09-20T15:46:07.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\"}", + "553a7336-5e54-4563-a64d-d64e39223304", + "76d52777-b79c-44a4-a606-29e0c53f202c", + "4cdf86f5-f82a-4ce4-9a64-62849749343c", + 7324, 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="de5c335d-825d-4494-91b6-ab9cc8abf1fb", + done_at="2025-01-31T09:51:04.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", + "553a7336-5e54-4563-a64d-d64e39223304", + "76d52777-b79c-44a4-a606-29e0c53f202c", + "4cdf86f5-f82a-4ce4-9a64-62849749343c", + 7324, metadata="{\"key\":\"value\"}", products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": False, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": False, + "other":"{}"}], + request_id="e9b029c5-f8ab-4dda-adce-3a4ab67ea118", + done_at="2022-12-25T12:20:04.000000Z" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_external_transaction_5(self): + response = client.send(pp.CreateExternalTransaction( + "553a7336-5e54-4563-a64d-d64e39223304", + "76d52777-b79c-44a4-a606-29e0c53f202c", + "4cdf86f5-f82a-4ce4-9a64-62849749343c", + 7324, + description="fvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX0", + metadata="{\"key\":\"value\"}", + products=[{"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="30d75c89-25bb-4deb-a7f1-509062af654f" + request_id="6b8ad335-c41a-4024-90a4-d77fb1d4dc55", + done_at="2023-12-08T20:29:56.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_refund_external_transaction_0(self): response = client.send(pp.RefundExternalTransaction( - "84cf16a2-3d66-4e04-9885-aa03d2c00a45" + "190f1039-7271-4171-a000-100280ebfb54" )) 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" + "190f1039-7271-4171-a000-100280ebfb54", + description="XnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANn" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_external_transaction_by_request_id_0(self): + response = client.send(pp.GetExternalTransactionByRequestId( + "d922fea5-5a0e-481b-abef-33e558fd7524" )) self.assertNotEqual(response.status_code, 400) @@ -2133,176 +2728,176 @@ def test_list_transfers_0(self): def test_list_transfers_1(self): response = client.send(pp.ListTransfers( - description="vkZ0hBxHL8DiEhh2VnZoTnDJVFMsrvforwTxS8CU7xfi8Z8k0xTZqtjlnCMFHx8TKGI2xE1Bu" + description="l9aDgdNSfmE5De5" )) 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=["transfer", "cashback", "coupon", "campaign", "payment"], + description="MyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe" )) 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=["topup", "exchange", "transfer", "payment"], + transfer_types=["exchange", "expire"], + description="dlLHNNlbd" )) 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=["payment", "transfer"], + transfer_types=["exchange", "coupon", "transfer"], + description="DSiyltrhPzNi7jenj4X3xdXKxR7POl5XLE" )) 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", + private_money_id="87baa706-3d0b-4742-bfb6-5b8432c06672", is_modified=True, - transaction_types=[], - transfer_types=["payment", "expire", "campaign", "cashback", "transfer", "coupon", "exchange"], - description="pu0MDWpiDvc0yH6ElFsXXAu1ggrDUCau2gnuJ4JjDHOBMd26S3mihK7Gc9ouBdfj9baUMO0QAZUEFS2BtlR4VIQVU2y1HqZTEweuiw2lLR54hFsTWRshdiadwR5IXzLVIyr3tVtLqZwSGR9" + transaction_types=["cashback", "topup"], + transfer_types=["topup", "expire", "transfer", "cashback"], + description="RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8Zx" )) 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", + transaction_id="0018a14c-b826-4e35-af6f-2381c0c4b41f", + private_money_id="6fe238c2-5291-40fe-bc43-20d5ddb2bca6", is_modified=False, - transaction_types=["exchange", "payment", "expire"], - transfer_types=["exchange", "topup"], - description="VkjkAmAursWmY8lUcPFFH8OBO0gTOPvALkgMJawdwCaYZ0f5A4WuoS1IAZgM9FDFzPlCr68wDPzP1uu5pUlr0e255o067YSY4rtLpQIhTsQtfNlHNUlxPCHvPHeZ4gCJRD87F5OLspmSpFUbvNXpSViDBWfAPmGs" + transaction_types=["expire"], + transfer_types=["topup", "expire", "cashback", "payment", "coupon", "campaign", "transfer", "exchange"], + description="PdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2U" )) 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="ftf3KLiOm0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb", + transaction_id="daaeea9e-7aa7-4d1f-b81c-7b64f570c134", + private_money_id="8a6c025c-e4c4-4be3-a13a-7826fbd72535", is_modified=False, - transaction_types=[], - transfer_types=["payment", "cashback", "transfer"], - description="zT4JKnzi5L8cpHHMwXcAIRcjNLk0uNWeNHUqo3XUcSS2VsZS4Lj4GkDI0oXRDtBJxvb11fmeXANYMff4lfRrFSD2GU0U0YSAX1Q89ssC5bpXwoj13v0TL4xfkZtGKmcVmh1Ev4M51rbMFUU1jVlGa8RcO6wCBU9Eja3cVhwcSD6iDQwph5T" + transaction_types=["payment", "topup", "exchange"], + transfer_types=["campaign"], + description="X6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uC" )) 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", + customer_id="3169cd47-3ebd-4a43-8964-f3a069e56f1a", + customer_name="3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUz", + transaction_id="a6ca7fe5-71e5-47e6-a5c5-cc0176e4ee40", + private_money_id="ced47b8c-c33c-44be-b65e-409f59544f55", is_modified=False, - transaction_types=["payment", "transfer"], - transfer_types=["expire", "transfer", "campaign"], - description="SC89X69cCxk1lmjrE2LQn8WVW3m44epc5OJWLmTr626o4XX2rICXAhNDPHxc5nbxE6dOS7QbkrsxeFRrdV1gQxduyB3Z9uLKn8CBvuRo159rPRsnfNPsYuS9nBNol3v7" + transaction_types=["cashback", "transfer", "payment", "expire", "exchange"], + transfer_types=["campaign", "expire", "transfer", "payment", "coupon", "exchange", "cashback", "topup"], + description="YVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3" )) 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", + shop_name="gW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgx", + customer_id="457d80bc-fed9-4e6c-9646-809a30b6a25a", + customer_name="zBuHZ8tjsh68ScZg3aAMErPcV9o", + transaction_id="ffbf5030-1754-4000-8285-77636e4fd8c7", + private_money_id="fd6f07a7-b84a-4124-a026-46072c485deb", is_modified=False, - transaction_types=["transfer", "payment", "expire", "cashback"], - transfer_types=[], - description="vZavHGIwQGFD3y3WQcOQ77GqTbykQNeXwfkirPrCHC6oGX762VWlOvBKRDnWwJ1RB1Xf0sJSNdUIy9UNPxEn8d7PVOwf2KxYZgpwkatfDXh6wjcpgPghclYC1sotThNzacMPGRW9XLUFYLKH2dLAXy2plAkroUr6KjPvdUwWdZh0L8" + transaction_types=["transfer", "expire", "payment", "topup"], + transfer_types=["payment", "exchange"], + description="4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2" )) 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="3e86fff0-413f-4d87-9298-5aab9d755a3d", + shop_name="NpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSH", + customer_id="2a22e2f9-d169-4646-ab22-c66fbdcf9ef3", + customer_name="eHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwi", + transaction_id="33ab2f79-747b-4a85-9905-e31c010d7ef6", + private_money_id="4c4abf9c-aeb4-440b-bcf6-206c5939d492", is_modified=False, - transaction_types=[], - transfer_types=["payment", "cashback", "expire", "transfer"], - description="FmlvrlMvNLwEsnbNKTS2h75GF8UpjoAlQvJzCU8IgWIQfnPgb4T4DEkgPLD0xZMd5yjnHtiPzKYB9uBkIh8qvqswUq9MIMd1v50tEiK5VU8URPZftDXY7iH91521L9iCZDgOHv8ccbKA9zaXWI" + transaction_types=["transfer"], + transfer_types=["topup", "expire", "exchange", "transfer", "cashback", "campaign", "payment", "coupon"], + description="BVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K" )) 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=7793, + shop_id="ae7837a3-6a6c-4c4b-b581-04eb9385a89b", + shop_name="4zON6lsKCXAkk07Q9YuV27x", + customer_id="b00d410c-8982-4432-9a85-ac3f6c37d4da", + customer_name="JNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vUL", + transaction_id="188ab9d3-7196-41bf-b931-04c6bfcd2689", + private_money_id="205201cb-d2e4-432b-94bb-47745571078c", + is_modified=False, + transaction_types=["transfer", "expire", "exchange", "cashback", "topup", "payment"], + transfer_types=["expire"], + description="nRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRR" )) 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=3406, + per_page=1180, + shop_id="d7ba0e1b-438a-47f9-92aa-a4301e4c8d6e", + shop_name="Qkh8Zz7eaFGoiOPKR0rUW9UTcnGDB", + customer_id="b720cf85-3603-44f3-a414-b25aeb465af5", + customer_name="fABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYT", + transaction_id="5b075671-e598-4d9a-a5c9-1dcebd21f698", + private_money_id="027c2a39-b2fd-436a-9a14-393ca85b7701", is_modified=True, - transaction_types=["expire"], - transfer_types=["expire", "coupon", "campaign"], - description="qC0B7Kcw0qagkhJ7wfZWTULKa8VECsBZr3IToxXjdyKGc7ZzHUV5fOm8mtNakhvcdUzoLcA59nUhEAXqtCyQcPmsvpgfmd8PIAhkngoJScrC1WRA" + transaction_types=["cashback", "topup", "exchange", "expire"], + transfer_types=["transfer", "expire", "campaign", "cashback"], + description="QigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5" )) 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", - is_modified=True, - transaction_types=["payment", "exchange", "expire", "transfer", "topup"], - transfer_types=["transfer", "exchange", "campaign", "cashback"], - description="gBjKxJ1kVUP7sJk9W7sPqDCWwYS94nlMA9QMeCafNqHwyMdjdwcWi3JTYLChkb6TlitzWaW4uPhPny3cB55XyFtx17QBRLdwgp38D246YReej2SSevahES9poV0ViKFLpI4REDYg" + to="2022-12-02T08:09:19.000000Z", + page=6008, + per_page=5712, + shop_id="c67cda06-5267-43b5-bd33-3f9f5dd89e1e", + shop_name="j3Qic0iyKLnZxaZi9iCa2kj9IDD4", + customer_id="6ca6e0c6-0d1a-4d3c-8c5b-b95d262f4f55", + customer_name="53H4cTCafuN856J50SdiADG37eydGENMPuSUGC", + transaction_id="98531b50-bebf-43ce-9f15-e45cd718d7c8", + private_money_id="0ef2a7e9-665d-4a9d-8604-4170ac388c30", + is_modified=False, + transaction_types=["transfer", "cashback", "expire"], + transfer_types=["expire"], + description="e1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79f" )) 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="2020-09-02T10:41:44.000000Z", + to="2020-01-31T13:42:33.000000Z", + page=9045, + per_page=1007, + shop_id="1a45853b-126e-4196-8b7b-bb8d62f5047a", + shop_name="7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjlt", + customer_id="2b1f1d71-6f7c-43ff-8402-ede1dbaa7d59", + customer_name="hp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlw", + transaction_id="eaf161be-51ef-498e-9dfa-0f0c5d8f8762", + private_money_id="7df5eb4d-5bbd-4fb8-8842-470b6866cd49", is_modified=True, - transaction_types=["cashback", "payment", "topup", "exchange"], - transfer_types=["expire", "campaign", "cashback", "exchange", "payment"], - description="RysjIT" + transaction_types=["cashback"], + transfer_types=["coupon", "exchange", "transfer", "expire", "topup"], + description="3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjs" )) self.assertNotEqual(response.status_code, 400) @@ -2313,322 +2908,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="2022-09-30T13:09:05.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="2025-01-01T14:42:30.000000Z", + to="2026-01-31T05:05:42.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="cSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3veb", + start="2021-05-18T23:25:30.000000Z", + to="2021-12-22T07:02:58.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=["coupon", "payment", "topup"], + description="YRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQW", + start="2022-01-16T22:09:15.000000Z", + to="2025-07-01T02:52:37.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=184, + transfer_types=["transfer", "topup", "coupon", "campaign", "cashback", "payment", "exchange", "expire"], + description="irXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr", + start="2021-07-02T05:33:38.000000Z", + to="2023-10-27T23:36:07.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="a2cc6573-b7b4-4e5f-b2c1-91823ba84b3c", + per_page=42, + transfer_types=["payment", "exchange", "expire", "campaign"], + description="ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24", + start="2024-02-28T21:56:51.000000Z", + to="2022-02-21T18:05:52.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="a2367379-e412-4e23-a463-9a317438881d", + prev_page_cursor_id="24f61f6b-59f5-4f73-8e37-cdf1cb399a57", + per_page=179, + transfer_types=["transfer", "exchange", "payment", "topup"], + description="bHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4H", + start="2025-10-08T16:32:42.000000Z", + to="2025-04-02T03:47:52.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=["transfer"], + next_page_cursor_id="97ea2819-df07-4519-83f3-63a720ee8158", + prev_page_cursor_id="122e8a27-5452-4cdb-8890-9627e781493c", + per_page=789, + transfer_types=["transfer", "coupon", "expire", "payment", "topup"], + description="7cpIh03BvqB7CzLjYHo", + start="2026-04-08T12:42:55.000000Z", + to="2021-12-26T17:11:14.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" + is_modified=True, + transaction_types=["topup", "exchange", "cashback", "transfer", "payment", "expire"], + next_page_cursor_id="751a26db-7736-4c9b-b503-760b3b4e43a1", + prev_page_cursor_id="0a11a4ab-8d85-4182-ac07-db9648d43e9b", + per_page=854, + transfer_types=["coupon", "campaign", "payment", "topup", "expire", "exchange", "cashback"], + description="MCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9", + start="2021-05-28T07:42:51.000000Z", + to="2020-12-04T08:07:53.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="3f422c34-2019-48e3-ae03-e3ac71afdc8c", + is_modified=True, + transaction_types=["payment", "topup", "expire", "exchange", "transfer"], + next_page_cursor_id="faef1bf0-faa5-4d52-9a1c-852b4ce75635", + prev_page_cursor_id="cc333498-2b10-4e29-8ed8-401dbf0cb11f", + per_page=183, + transfer_types=["cashback", "expire", "campaign", "exchange", "topup", "coupon", "payment"], + description="ODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3j", + start="2020-08-07T01:24:26.000000Z", + to="2024-07-26T09:24:28.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="5357c6c6-1cd9-4d6f-b70f-538fbb7bae32", + private_money_id="f66abfd9-8aea-4aa6-9035-950ba45a59be", 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", "exchange"], + next_page_cursor_id="901c0c2a-bbe1-4186-8c43-9cdafce40a08", + prev_page_cursor_id="4d8ecf54-a96d-498b-86a6-fecc433493f8", + per_page=575, + transfer_types=["transfer"], + description="rupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6Blopu", + start="2021-06-26T17:20:42.000000Z", + to="2021-09-14T06:46:03.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", - 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" + customer_name="mJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZ", + transaction_id="6d4afccf-6ec7-4acb-8cd3-f8651115c809", + private_money_id="f7d4aeab-9b8b-4677-a8f6-8a2e0d484bca", + is_modified=True, + transaction_types=["payment", "transfer", "cashback", "topup"], + next_page_cursor_id="57dec94f-53db-43e2-95a6-374ed99b9d15", + prev_page_cursor_id="d247a33b-a3d1-415a-9ab0-76c1aa4806b0", + per_page=265, + transfer_types=["campaign", "transfer", "topup"], + description="omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqv", + start="2026-04-29T19:22:15.000000Z", + to="2026-03-11T23:48:00.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="ca09a488-8831-49ff-ba5a-f915f1f54057", + customer_name="5gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j", + transaction_id="b0f677bd-8836-4a20-aeb4-8596b1249c07", + private_money_id="beb453b3-0189-4824-86c1-eac9184b7a0c", + is_modified=False, + transaction_types=["expire", "topup", "transfer"], + next_page_cursor_id="d79b19c0-a482-4b6b-8af9-2df1d7b53938", + prev_page_cursor_id="e6154807-a091-4022-bedf-6351682f65c8", + per_page=600, + transfer_types=["payment", "campaign", "topup", "cashback", "coupon", "expire", "transfer", "exchange"], + description="Nric3MBQYWsKtvnxoQJLloM94TQVFchkaV", + start="2021-10-18T03:34:36.000000Z", + to="2025-10-31T10:58:03.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", - 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" + shop_name="KXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd", + customer_id="bcfe39a0-cbb3-4ef7-a30f-2187c8bb6c1c", + customer_name="CesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi", + transaction_id="f9c3a7b6-afa9-4d66-985e-e760452f39b0", + private_money_id="6eb81e93-f8e3-452f-ac75-bc8269196c12", + is_modified=True, + transaction_types=["payment", "expire", "cashback", "exchange", "transfer", "topup"], + next_page_cursor_id="2adc712b-964c-467d-b49b-478c9b8aec99", + prev_page_cursor_id="d6b1e789-9743-4396-bdc8-9bc331e9e0fb", + per_page=238, + transfer_types=["topup", "exchange", "payment", "cashback", "expire", "campaign", "coupon"], + description="yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5N", + start="2021-09-22T22:18:08.000000Z", + to="2025-04-21T19:49:39.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="ef055748-b020-455f-89ca-aa2cb0902cb7", + shop_name="bc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAnlFEgMmyi8jmBN0T80aLvrKoRyTXgPVT4Az", + customer_id="e60cfb65-025c-41ef-9a45-3e1759e3633b", + customer_name="OYuu1RyqlWwyCNVezTDDCUN00F2V", + transaction_id="585e6c88-d2de-4d11-afe8-42fd31b35ba8", + private_money_id="ee5834ee-7929-4e10-9890-c95e409e9333", + is_modified=True, + transaction_types=["payment", "cashback", "expire", "transfer"], + next_page_cursor_id="a68f30d3-46cd-4ec4-bcfa-29baa739e82c", + prev_page_cursor_id="36c856ae-4765-4245-844b-d41c64191763", + per_page=463, + transfer_types=["exchange", "transfer", "topup"], + description="y90lbfxByyLgJll", + start="2022-10-15T14:49:05.000000Z", + to="2025-04-18T14:30:12.000000Z" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_0(self): + response = client.send(pp.ListOrganizations( + "400c2df9-e2d3-40aa-b065-8bf83c598a6f" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_1(self): + response = client.send(pp.ListOrganizations( + "400c2df9-e2d3-40aa-b065-8bf83c598a6f", + code="ZwnX2Y3" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_2(self): + response = client.send(pp.ListOrganizations( + "400c2df9-e2d3-40aa-b065-8bf83c598a6f", + name="kSKFu78", + code="D" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_3(self): + response = client.send(pp.ListOrganizations( + "400c2df9-e2d3-40aa-b065-8bf83c598a6f", + per_page=8015, + name="i0gh", + code="qRiHI" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_4(self): + response = client.send(pp.ListOrganizations( + "400c2df9-e2d3-40aa-b065-8bf83c598a6f", + page=7822, + per_page=7148, + name="wLQAi0", + code="orDHLBFs4p" )) 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" + "FpuxUcIrb43", + "g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", + ["5e84e6eb-ef77-4707-b43d-3417ee2e4874", "8359d186-5292-4630-a520-af409e38c1be", "ec2981c5-1f39-4719-b9b6-9a2f55541f16", "70ac9782-5c76-4b5a-82a6-f170f2286cbd", "2e4e3030-e0fa-4588-ba28-b0f7dc7f45d0", "853d3d96-6920-4460-8eb5-e182b24505a1", "704bd4c4-1893-443a-9efe-ac60ecee9e2d"], + "Ihcy9tg03X@eu2U.com", + "N5sKl9fYJx@maO8.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" + "FpuxUcIrb43", + "g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", + ["5e84e6eb-ef77-4707-b43d-3417ee2e4874", "8359d186-5292-4630-a520-af409e38c1be", "ec2981c5-1f39-4719-b9b6-9a2f55541f16", "70ac9782-5c76-4b5a-82a6-f170f2286cbd", "2e4e3030-e0fa-4588-ba28-b0f7dc7f45d0", "853d3d96-6920-4460-8eb5-e182b24505a1", "704bd4c4-1893-443a-9efe-ac60ecee9e2d"], + "Ihcy9tg03X@eu2U.com", + "N5sKl9fYJx@maO8.com", + contact_name="WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MIK7GdyM50XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a" )) 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" + "FpuxUcIrb43", + "g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", + ["5e84e6eb-ef77-4707-b43d-3417ee2e4874", "8359d186-5292-4630-a520-af409e38c1be", "ec2981c5-1f39-4719-b9b6-9a2f55541f16", "70ac9782-5c76-4b5a-82a6-f170f2286cbd", "2e4e3030-e0fa-4588-ba28-b0f7dc7f45d0", "853d3d96-6920-4460-8eb5-e182b24505a1", "704bd4c4-1893-443a-9efe-ac60ecee9e2d"], + "Ihcy9tg03X@eu2U.com", + "N5sKl9fYJx@maO8.com", + bank_account_holder_name="(", + contact_name="hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTF" )) 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" + "FpuxUcIrb43", + "g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", + ["5e84e6eb-ef77-4707-b43d-3417ee2e4874", "8359d186-5292-4630-a520-af409e38c1be", "ec2981c5-1f39-4719-b9b6-9a2f55541f16", "70ac9782-5c76-4b5a-82a6-f170f2286cbd", "2e4e3030-e0fa-4588-ba28-b0f7dc7f45d0", "853d3d96-6920-4460-8eb5-e182b24505a1", "704bd4c4-1893-443a-9efe-ac60ecee9e2d"], + "Ihcy9tg03X@eu2U.com", + "N5sKl9fYJx@maO8.com", + bank_account="268897", + bank_account_holder_name="5", + contact_name="zR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw" )) 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", + "FpuxUcIrb43", + "g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", + ["5e84e6eb-ef77-4707-b43d-3417ee2e4874", "8359d186-5292-4630-a520-af409e38c1be", "ec2981c5-1f39-4719-b9b6-9a2f55541f16", "70ac9782-5c76-4b5a-82a6-f170f2286cbd", "2e4e3030-e0fa-4588-ba28-b0f7dc7f45d0", "853d3d96-6920-4460-8eb5-e182b24505a1", "704bd4c4-1893-443a-9efe-ac60ecee9e2d"], + "Ihcy9tg03X@eu2U.com", + "N5sKl9fYJx@maO8.com", bank_account_type="current", - bank_account="", - bank_account_holder_name="ク", - contact_name="ACMY5nowhDUZD5IZKMp0STmYDwTtHP0EcP6hogkn6nAjgTjLkVtsanieCAlqrCK8PwmGod9YcEsgY2DC2Vj8cKXwgERagqK" + bank_account="2050", + bank_account_holder_name="/", + contact_name="3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31" )) 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", - bank_account_holder_name="(", - contact_name="nCdyvxKvSOqTvlYodFyg21jiUhByaB66BNcapTyLZWxad9qMqfjUCaVImVTzD7ogGgbbuuhXvkkv63jx716j9qYeQTBsHYxIvY8A2kLLFzDvGgwT6RWA89QL9Vp03GIkTp5cuONNVFc9v9gdz5hWfe1" + "FpuxUcIrb43", + "g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", + ["5e84e6eb-ef77-4707-b43d-3417ee2e4874", "8359d186-5292-4630-a520-af409e38c1be", "ec2981c5-1f39-4719-b9b6-9a2f55541f16", "70ac9782-5c76-4b5a-82a6-f170f2286cbd", "2e4e3030-e0fa-4588-ba28-b0f7dc7f45d0", "853d3d96-6920-4460-8eb5-e182b24505a1", "704bd4c4-1893-443a-9efe-ac60ecee9e2d"], + "Ihcy9tg03X@eu2U.com", + "N5sKl9fYJx@maO8.com", + bank_branch_code="973", + bank_account_type="current", + bank_account="14640", + bank_account_holder_name="ノ", + contact_name="IDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4Dl" )) 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", + "FpuxUcIrb43", + "g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", + ["5e84e6eb-ef77-4707-b43d-3417ee2e4874", "8359d186-5292-4630-a520-af409e38c1be", "ec2981c5-1f39-4719-b9b6-9a2f55541f16", "70ac9782-5c76-4b5a-82a6-f170f2286cbd", "2e4e3030-e0fa-4588-ba28-b0f7dc7f45d0", "853d3d96-6920-4460-8eb5-e182b24505a1", "704bd4c4-1893-443a-9efe-ac60ecee9e2d"], + "Ihcy9tg03X@eu2U.com", + "N5sKl9fYJx@maO8.com", + bank_branch_name="EfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJ", bank_branch_code="", - bank_account_type="other", - bank_account="047167", - bank_account_holder_name="Z", - contact_name="vsUjS1TQRpGXwusKVKoDVo20K4pvhym0ixofoZrqcO9xmrGI7Yq8b7zKf4Zjq1K3jlOjYQfsbEScihoRIGPs251h35D6RqOUv7GYFIehbCx0by4HajPsFnZyPkDxfEbj7EZcJNWpppH7JtG7uLWNnv9bkjUCUVfq92VQxP0FMeHm2Gc8mWOktzQrw5GjJ8uGQSasHDUHsEK1qalH" + bank_account_type="saving", + bank_account="28", + bank_account_holder_name="0", + contact_name="sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMy" )) 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", + "FpuxUcIrb43", + "g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", + ["5e84e6eb-ef77-4707-b43d-3417ee2e4874", "8359d186-5292-4630-a520-af409e38c1be", "ec2981c5-1f39-4719-b9b6-9a2f55541f16", "70ac9782-5c76-4b5a-82a6-f170f2286cbd", "2e4e3030-e0fa-4588-ba28-b0f7dc7f45d0", "853d3d96-6920-4460-8eb5-e182b24505a1", "704bd4c4-1893-443a-9efe-ac60ecee9e2d"], + "Ihcy9tg03X@eu2U.com", + "N5sKl9fYJx@maO8.com", bank_code="", - bank_branch_name="wNsBFFvhBAfKd9pYjNXINvRo8XrSFeFKEUniweS0acjh4qrH7klovo9x1qmkFFjd", - bank_branch_code="189", + bank_branch_name="oZArmvOOmVqy7LHITpCS", + bank_branch_code="504", bank_account_type="other", - bank_account="", - bank_account_holder_name="V", - contact_name="dCsP" + bank_account="0522759", + bank_account_holder_name="「", + contact_name="GfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPE" )) 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" + "FpuxUcIrb43", + "g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", + ["5e84e6eb-ef77-4707-b43d-3417ee2e4874", "8359d186-5292-4630-a520-af409e38c1be", "ec2981c5-1f39-4719-b9b6-9a2f55541f16", "70ac9782-5c76-4b5a-82a6-f170f2286cbd", "2e4e3030-e0fa-4588-ba28-b0f7dc7f45d0", "853d3d96-6920-4460-8eb5-e182b24505a1", "704bd4c4-1893-443a-9efe-ac60ecee9e2d"], + "Ihcy9tg03X@eu2U.com", + "N5sKl9fYJx@maO8.com", + bank_name="wHED0KtmDzxLUbUeg", + bank_code="7188", + bank_branch_name="cIU7UKhxLe1FMHoh3041czvU7tiT", + bank_branch_code="475", + bank_account_type="current", + bank_account="3", + bank_account_holder_name="H", + contact_name="ps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzz" )) self.assertNotEqual(response.status_code, 400) @@ -2639,355 +3274,386 @@ def test_list_shops_0(self): def test_list_shops_1(self): response = client.send(pp.ListShops( - per_page=2911 + per_page=803 )) self.assertNotEqual(response.status_code, 400) def test_list_shops_2(self): response = client.send(pp.ListShops( - page=3096, - per_page=7801 + page=8607, + per_page=3175 )) 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=True, + page=8730, + per_page=3318 )) 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="fzgMS7DAxRVXjpoYOkLYbJM", + with_disabled=True, + page=1207, + per_page=2632 )) 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="KDJVQANtfU@dHVc.com", + external_id="X3xI9CHdZGkENDSkRyfWKAx", + with_disabled=True, + page=2445, + per_page=5157 )) 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="08-32820603", + email="qmENfDor1z@gwF9.com", + external_id="ZsR", + with_disabled=False, + page=227, + per_page=7757 )) 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="PhH3FEHzbfU4cD6smAeqngifjNikqDE3OudXpYhNwFWUAKOnWlhna0lYNQbEnbMVdbi9G5aE3q4", + tel="04633-271", + email="1FfneXYRV1@FBu9.com", + external_id="VqwmK2QWEkaIk3Nf304AeRoMBnYR", + with_disabled=True, + page=14, + per_page=2035 )) 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="8603349", + address="XtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5", + tel="0789-198", + email="PmjRDk75J7@79k3.com", + external_id="q", + with_disabled=True, + page=6352, + per_page=3126 )) 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="t2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJxS2dp", + postal_code="556-7640", + address="3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoG", + tel="00-85086149", + email="9WdfwN1GBX@rbSD.com", + external_id="YZlYLOis5s", + with_disabled=True, + page=5644, + per_page=451 )) 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="393e67d2-7085-4008-bc56-5b02e14e6afe", + name="50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmfQbT09Lp665rg0d7eGITtIklkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvR", + postal_code="2073936", + address="mPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rqwGDVRdojGjigHpZl8InHQBhMIrdZJT9MnQgGfElkSct56tB3QvYjy8mUgDyXQYOSshpGMCke10fApKjBHnAmdlKiUj9JqianI8FqIXqzelGZDONUAJfl2HMto7yaW0Gkt1pOBZosxcU6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKruisPGcjRxKz0h", + tel="01647056-955", + email="10sMn1hLqg@Z4Sc.com", + external_id="2Jdjznj", + with_disabled=True, + page=6783, + per_page=9712 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_shops_11(self): + response = client.send(pp.ListShops( + organization_code="-6Ev0k", + private_money_id="95de72fa-49cb-450e-a909-4879e24374ea", + name="3BEvYp1TbuySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7AaoLGt4pe6BC2S", + postal_code="5210914", + address="OC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L7gW6pVOxZ4jRFNa6hoBOihdHvejLf7HUNUhMpEnczyOhMWAPbHXyt", + tel="0595-784", + email="em2rgSzz35@aQ4D.com", + external_id="94kR9S0XTdmHcC0", + with_disabled=False, + page=9416, + per_page=3143 )) self.assertNotEqual(response.status_code, 400) def test_create_shop_0(self): response = client.send(pp.CreateShop( - "txsN8hQh23jWL68GyttBaIaA6bT2oimSP8aDw1fwYQo1a8Jvio1NlXmWokT3fCZ0aqdulZZGglvs1mmHvcGJdXuMvjofsG8E4KIFxs3y0EBuTM1S0iPJraQIMtAPJ1JN9CtWW30Uo4UAg9arJ4XCMrwN15cIxDvF6fUC0OQCualYkGbJ73b3nYCrV9uDJehyXJGfZSkx4G3NTiGEBvJP8jVkcC8" + "AfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgsc" )) 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" + "AfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgsc", + organization_code="0-B--E-tS5lGDc-" )) 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--" + "AfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgsc", + shop_external_id="O2FCZ7wQECuEigH9T54l9E", + organization_code="xvD-t-OV1Fe0q1JPtvM29M0s" )) 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" + "AfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgsc", + shop_email="WuULLQB3hz@ZG35.com", + shop_external_id="7PPnWlMQlOO65IFrI1BJMiWPv5dAbUB", + organization_code="s-3I524AF---y1---V-f-Mo" )) 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-" + "AfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgsc", + shop_tel="034-1270-132", + shop_email="NW44x5lpiz@elx6.com", + shop_external_id="Zw3ANkreMSnigb4", + organization_code="vM-vbVso1r--0-mnj-QB-q00-" )) 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" + "AfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgsc", + shop_address="0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3hyN01xWKpyfSJX1OiNUbqHXuSEWeM8VLmM8qznKIn9uBoqN3XKkwmXFnLL0vhZmz7rucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34hD1uxIbudPgK", + shop_tel="041-6723425", + shop_email="JrsgVxWy0P@irB5.com", + shop_external_id="cKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08u", + organization_code="h7Z23r" )) 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----" + "AfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgsc", + shop_postal_code="278-5684", + shop_address="DL0EY9Dfg2K2KSBJ32yceHkpeJS53rQYrIERvl0KriuNlhP5RwfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F279GcsdDtM3uSEYbuaOy1AtJbZFvX4DTrnYj6rE9HuWGm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBI", + shop_tel="014679-426", + shop_email="riMMqT8Y2w@PxWW.com", + shop_external_id="XEUoqg0zXsuvc8LF4mbP1hyPDbNVj", + organization_code="-ujaka8-1H-9-0vw--e2vqh0-Gg25" )) self.assertNotEqual(response.status_code, 400) def test_create_shop_v2_0(self): response = client.send(pp.CreateShopV2( - "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur" + "hhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o" )) 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"] + "hhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o", + can_topup_private_money_ids=["bc37e435-39bc-4452-85a0-00dced83ba5e"] )) 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=[] + "hhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o", + private_money_ids=["3f0c3a63-7609-4839-beb6-ec777868edbb", "9446e466-316d-478a-96f2-80d7a18222f2", "66970e4b-b664-44b8-a0da-f4e3d9459a6b", "5bb7156e-d760-47e4-9697-7c50b5aa6e6e", "386caa1c-1a70-409e-9fb3-c8eedf172dbf", "f11d0128-b7a5-4c12-92db-c413478bbb91"], + can_topup_private_money_ids=["ee599681-43e5-44af-82ec-f8e5a34ee48e", "f262e4b3-ee70-451b-b0cf-8ca88ae07d62", "e11db238-b276-4022-bfcf-5bc19abb9c2a", "16010acc-3905-42e5-bd43-5461a3c3b49b"] )) 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"] + "hhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o", + organization_code="L1S-6-My-ugRm15-k0063JgZ-9YY-J-", + private_money_ids=["04b09ca0-85fe-4d76-b392-6dcf01f374f6", "fd4ac81c-fb6e-4fb3-9325-4c7e657a77c8", "acd11ab7-a216-4d8b-acea-762093b1c829", "6f27410c-3771-4807-8564-c47064ccf4ba", "e50a2107-50aa-4d2a-b143-229794b8e2e3", "b61d89d0-a22c-4ccf-bd05-cf70cdb65b57"], + can_topup_private_money_ids=["e4f6e225-426a-452c-af69-01f6fcbc0302", "71abfcaa-caa9-4aef-8fee-68a90089222b", "3383df97-eb19-4783-8676-1964adfae4f7", "90411aa5-17dc-4b85-8786-873c5ebcf9dd", "1dccfb2a-782f-4530-8bd9-15bbea979086", "cbe99a17-ac76-4c7d-ace4-4c3b5e7dbab3"] )) 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"] + "hhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o", + external_id="eJyhTlRgTT", + organization_code="b--IR9EUA-adUi-iea0n-Y0r-5a-8", + private_money_ids=["b2e8c3cb-277b-40ce-8f81-f93079eb7bae", "71779ffa-2395-43f1-9649-90430d948686", "85ecf905-d23b-4c90-9274-9fc06bc89d13", "7c5d9fb7-8c42-4650-857b-7328890cbfc9", "4b2c7a89-a0a6-497e-8d16-7e01a9d486ff", "ff19d13e-32f3-4315-a0c8-db1c10293429", "b6737377-b239-4e2f-8cac-53e9591c09e1", "a56f2fa8-54df-4a2d-8888-21788c278461", "20d36aad-b093-412c-907a-99fc4395981a", "4bbdd7ef-ec21-4d61-bb44-079c0eb9b376"], + can_topup_private_money_ids=["04b3f203-60d5-459f-b6d3-f958ef5d16cc", "cc9aa06b-f198-42fb-8d11-8b1f476067c0", "1a265180-572f-4d17-88e1-3314fff80864", "6a783a8e-8bb9-4963-8f90-a90e769bd2ae", "4454222f-9b53-4e22-803c-9b239ee6f9d2", "72cd44e5-9a91-43ea-b199-ccd48ea232f7"] )) 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"] + "hhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o", + email="b2rvpiwJLS@yhoq.com", + external_id="6ZnwMWmZEdo3TtkAPfziyB2HYx", + organization_code="g--cy--8-P---Q-y9To", + private_money_ids=["67b7f47b-56ff-4eef-b8b0-73d2c3d35606"], + can_topup_private_money_ids=["ef518714-53fa-4cd7-ba2c-1e0da5cf3467", "2b9a7b01-d54a-4608-b819-e67188f4ae21"] )) 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"] + "hhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o", + tel="08047565", + email="shIHzbucfD@hID3.com", + external_id="qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug", + organization_code="bAZ--Z-2pBj4T3--k", + private_money_ids=["0fd11a58-03b8-42d7-973e-33e24d0606eb", "466b4978-315f-475d-8a62-70d757e2bf54"], + can_topup_private_money_ids=[] )) 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"] + "hhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o", + address="66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6GGJ1GXo5UPiFJuScrEGcY5I6vYJqEcansSsP2ceIvKP9bgYanQbVQM9Z6RG0kCsPdzwEr5mXGzuLW3Fk", + tel="0998-61056361", + email="XVJNN81LI4@4xL3.com", + external_id="frFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImB", + organization_code="E", + private_money_ids=["623585b1-d741-4253-b490-a6c99206b282", "f952f318-4e78-49f6-b05b-2822ebe5c546", "01dc5801-f39b-46d0-bca8-9847a78ce3ae", "15a36082-8a61-4024-a054-d18710b3e8a0", "b9a8661a-09c6-4c18-bd36-0ba7479d6b29", "80e89067-18ad-4058-a074-0cdbbf9b3264", "270f1533-b398-4c12-8bee-dfbdd5cc43ca"], + can_topup_private_money_ids=["2bb2b1f9-0910-47ce-a5b7-68dfa5baeebe", "4cab17b4-cf51-4f5c-a715-44c0ab30f4b2", "5b4da297-9c18-4afb-9000-51e2c8b08476", "5f4ac0a3-dcba-4785-a6de-e946919ea774", "99eed397-6ee0-4fc4-af81-bd6bc48a3601", "caaf65ae-3af5-4f25-af64-ba0c1156adfa", "68c06994-dfd0-4507-9fd3-38810804a9b7", "38b7981e-9550-460e-924a-67300ec6d1fd", "662b7185-57b9-4c95-8b99-3b7701740329"] )) 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"] + "hhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o", + postal_code="8264326", + address="MKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE1hEG2EkkP2VIPy7HW7Ee7skB", + tel="0089281933", + email="lE0n87A30l@6vsp.com", + external_id="NWH9u8x4Yq2mxjIub5W9d4fa79SnO", + organization_code="Y2a-t0-L", + private_money_ids=["c646f284-8614-409f-ab10-ee8d46d030ff", "5f07daa2-0f0b-4576-a7f7-f24da1c66764", "0a3ffcfd-7f43-4336-99f3-a41a64c3c9a5", "0e6ebc85-941b-4a51-962a-3506fa317942", "37057106-964d-4406-b682-c33186778905", "786d25b5-b842-4d53-82cc-ae5222df5154", "675ac042-2fb4-449c-b09c-3d689daa9bf0", "4ce7836a-ff62-46de-b402-e7018b5851b6"], + can_topup_private_money_ids=["22c7329d-8dab-491d-91fd-d5849fa8b21c", "440b88ff-2ba0-4dc8-970e-6365cf4ab4af", "2b09da44-002e-4da8-8bac-b58320d33981", "77b88c78-bbde-4bd8-96e4-081f1feb6bc5", "dc6a7fe7-e426-4f8a-a0b3-574fa019c6ff", "86b32d97-e378-4efb-a8df-4647f63b846c", "94418ef3-8e5a-46e1-9624-9d53c0a80e3f"] )) self.assertNotEqual(response.status_code, 400) def test_get_shop_0(self): response = client.send(pp.GetShop( - "c7d33c82-4db4-47b3-b0de-f09941ac0ce3" + "f45fd670-adaf-4805-889d-245ddb803b8f" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_0(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985" + "66ce191b-101a-44ea-af3b-198f9a59d417" )) 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"] + "66ce191b-101a-44ea-af3b-198f9a59d417", + status="disabled" )) 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=[] + "66ce191b-101a-44ea-af3b-198f9a59d417", + can_topup_private_money_ids=["442dd001-17e6-455d-a659-c3c1294d4b65", "2d766b5f-e5ab-4480-b615-0904d647966b", "ffc98dbb-be70-4a2e-9ad8-197c7e1d193e", "021f00e9-9587-4dc3-9469-7953c7fb8a42", "99beac55-06c9-4865-b52d-b269489eb4db", "d1b54a71-d5c9-4b06-9a4d-4d4fc8924f63"], + status="active" )) 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"] + "66ce191b-101a-44ea-af3b-198f9a59d417", + private_money_ids=["e07457f1-0c05-4ac2-9f3b-1d4b7a733dec", "2813e653-a446-41c7-bc60-188a81ef5c4c", "5b7d6e20-b3f5-4f24-bd2c-d498ebdf7517", "bfef2df1-30bc-4744-96ee-df9116df73b2", "4dbcb46f-d195-4d4d-86fd-96402ab6bc59", "ebfdc2d2-6713-490c-86a4-529d1a6f98c6", "c1c72685-0a68-4baa-b8fe-9ba12b2fd0ab", "270ba663-4c71-426e-96b2-b45b4870f8bc", "8dcc41f3-b2f0-4e91-86ef-c9cb29e8b562"], + can_topup_private_money_ids=["5f1622b7-3260-4821-aa59-6b67d481c378", "8176e191-12b3-462d-a313-e1e7bdd6ab54", "8bb88620-32ca-45cb-ac08-b3f925599a0d", "af1b7736-3e8c-4b19-a490-4e8b805d1dfe", "f0b7e49c-07c2-4abf-8e07-c7fc0fc5e721", "a064a981-46e2-4f33-b9eb-fa9e47479b07", "5b5dda7b-ef1d-49ad-9989-4ad96b5a8356", "833c55d2-cc5a-4194-b46a-a787c85a4d64", "6e25439c-0cab-4cf9-8614-af6690a87921", "1be16b25-efc4-4a13-bd47-1459c80255d1"], + 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"] + "66ce191b-101a-44ea-af3b-198f9a59d417", + external_id="0QPCC60HT399N8hkxoSQFYDUU0HuG332kY", + private_money_ids=["a2fb8281-2ed2-41c5-919f-b6253a1ca59a", "fe85b4c3-1e0f-4fb3-9db9-0f01a1e76160", "61cffda2-ae97-438c-bb6e-00da2d4de684", "fd90c942-d255-4e76-b415-ff0796416346"], + can_topup_private_money_ids=["8aa40edf-eede-4003-8bca-0ddd6539b922", "85395937-f655-46af-97fa-ccf96ccd7806", "d2239192-e6bc-4e0f-9bc4-1b9e0028b33b", "51788907-e97b-4bd9-8576-40dc222afb27", "0a1f9329-aab7-42e2-a390-ebf4dddd63af", "9bf7fde3-186d-4e10-8971-cfe4c95b2ba7", "7c3b3998-13ed-49c0-b61f-a9a067fa75ba", "a08f82d4-973c-4356-b89e-e4d2ffbbc042"], + 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"] + "66ce191b-101a-44ea-af3b-198f9a59d417", + email="p0gixsKZWo@UeOR.com", + external_id="98QDv9TW3tonr", + private_money_ids=["4d0bbbf5-94b5-4fc4-bd01-5f2e0cd2aef8", "298c9e78-bf9b-4f52-a78d-9d97d973c19d", "5d9e9522-cedc-4f07-b12e-566b95479d96", "0b12ef22-297d-4008-a952-99b4cd651564", "cac44b61-04d4-40d3-8454-4db475d3759f", "580cb13f-4830-4631-bb93-265e2d5a4280"], + can_topup_private_money_ids=["1e1861d9-ceba-49bc-9539-cfadcb22fd05", "8caaf4df-014f-42b5-bb21-c0e26947f9ed", "4e3b75f8-c5bd-448b-a5a6-aaefc5e87889", "394a5004-7635-4603-9c20-cffc7017fa52", "98c96cb8-8c25-4a94-92c8-2d5b34cc1c2b", "1e7339c4-7965-4721-8972-8be7a483cd33", "d973ea08-2cb8-4a3b-9429-df556027307b", "2ca06944-05dc-4b69-b8a1-ccdeb00d7f52", "d65cf7fb-5d82-405e-9120-8a9fc0c46d1f", "9e88ef95-1593-46a1-8f19-9a60092bc3f3"], + status="disabled" )) 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"] + "66ce191b-101a-44ea-af3b-198f9a59d417", + tel="08981164082", + email="sSLi4FAWjv@NFlM.com", + external_id="GhO7M", + private_money_ids=["57527f0a-d005-4fef-8d9f-45ae768bb684", "cc5754a9-a046-48e9-884c-6ca252efadf4", "0a61a44e-620d-4739-99bb-43f1a5f9db79", "fbc3dfb7-0fa0-418d-92de-2ab5ad53f953", "090a782d-dbe5-4c98-ae7b-b36c936e8fb4", "10f9b122-ff7c-4df2-b1ea-e4714663db44", "a3dff4b6-0bed-4824-9d42-ff32c81d0a67", "044736be-d3ab-43a9-baab-3e28296fac19", "78f87e28-1030-4446-89e4-0dce77b26453", "eab16da9-e480-4ce2-bc9d-bf8f8753099c"], + can_topup_private_money_ids=["bd5a0a9d-bc40-47f2-acd8-3e4fe356ef42", "0cfa3b2c-1e1e-4e04-9def-afb12ed3c65e", "914750c9-ca89-4533-a0a8-291846d3fa72", "414d35a2-bdbe-4484-a4c0-526b79f486cc", "976ff242-ba84-4093-b599-43f60a85af75", "20ee3f55-3851-416c-88c8-4ed70d9f61bd", "e20bf32c-a801-419d-a848-95e4d432ef8b", "901c577b-007e-4ce6-8a07-e07c4e8de54b", "a04921ca-0d0c-461f-87ca-09cfcb35e45b"], + 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"] + "66ce191b-101a-44ea-af3b-198f9a59d417", + address="4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWI", + tel="083590-6687", + email="Upt9fM2Thd@FR4Z.com", + external_id="GmC", + private_money_ids=["d18d0d9c-fb6c-45d9-9a53-b6dc71855f64", "00fcae6b-a27e-40d2-ace4-04bd45af2c49", "55ec36c8-2e6c-43c2-afb7-e490a1081ce9"], + can_topup_private_money_ids=["94aa6ff3-6fa8-4397-ac2e-4191001a3a51", "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846", "5e95c68e-8c3d-46be-bd43-69d0f2fcdc36", "6e35aee2-23ef-4eca-bfa3-cbbd97650c2c", "e6a0c518-3f13-4dbc-9fe0-d1eb6e8c9cc1", "07852ea4-e28d-4abb-8e45-5f895413d2bc", "3ccc7586-33d7-4a5a-b0f8-05bc4634a087"], + status="disabled" )) 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"] + "66ce191b-101a-44ea-af3b-198f9a59d417", + postal_code="321-5428", + address="tXdkjCZ6KXkiMx1kHTVbpRx79qoFTViWGk7rsKgu2ihoMxDsfU3TC1A8fV5nkzyaMo6HNFjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOB", + tel="094-7289-6615", + email="oe2X9mQJiE@ELVl.com", + external_id="cfdA0", + private_money_ids=["f433346e-7daa-4f31-8add-f9702791768b", "a9c8f290-ec39-4b63-b442-35093890c276", "5eb4e058-13f2-495f-b8ea-777307269e70"], + can_topup_private_money_ids=["22be79e7-8632-4ca4-8aca-6b6fb3b31e66", "f8677082-1d94-41e2-ada5-d311492d1de6", "84ffed64-0405-43b8-bc6c-719944102ec9", "9abef437-11e3-4461-b32f-a9ef8b86a379", "4099be51-b99f-4d51-8973-d8007b011212"], + status="active" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_shop_9(self): + response = client.send(pp.UpdateShop( + "66ce191b-101a-44ea-af3b-198f9a59d417", + name="l3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si7WktomTSIs3sss0bSZ1cR5rMDg0iBD2et6R89vRehYIZbMh6MfShA8D4Ev7O7TGT70LQ2epx", + postal_code="8386836", + address="rqwCwzvGv5tXB9341AdQSvr2jD2CPBEg6qDXhSH8hafJy0sDTnMPtA7T3E2nC8JZcqIcqZB2nkh", + tel="056-4829817", + email="QZz14xB891@rPV7.com", + external_id="cdDeB61", + private_money_ids=["b9077163-01ff-473a-a4a2-e4cfa9d764da", "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"], + can_topup_private_money_ids=["68a6389d-c0cb-46ec-ae73-231e924dfd47"], + status="active" )) self.assertNotEqual(response.status_code, 400) @@ -2998,497 +3664,535 @@ def test_get_private_moneys_0(self): def test_get_private_moneys_1(self): response = client.send(pp.GetPrivateMoneys( - per_page=4872 + per_page=8896 )) self.assertNotEqual(response.status_code, 400) def test_get_private_moneys_2(self): response = client.send(pp.GetPrivateMoneys( - page=7705, - per_page=7080 + page=3119, + per_page=4100 )) 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="Y-7-y6eKqD-6O52--P-5--tUjL", + page=2296, + per_page=4413 )) 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" + "91eb071f-46ef-4569-b3b4-3f33614c8f0c" )) 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 + "91eb071f-46ef-4569-b3b4-3f33614c8f0c", + page=4926 )) 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 + "91eb071f-46ef-4569-b3b4-3f33614c8f0c", + per_page=2183, + page=278 )) 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" + "91eb071f-46ef-4569-b3b4-3f33614c8f0c", + start="2025-03-19T09:46:16.000000Z", + to="2024-06-04T22:14:39.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 + "91eb071f-46ef-4569-b3b4-3f33614c8f0c", + start="2026-01-10T13:47:58.000000Z", + to="2024-05-13T23:47:00.000000Z", + page=4105 )) 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 + "91eb071f-46ef-4569-b3b4-3f33614c8f0c", + start="2021-12-15T13:06:09.000000Z", + to="2020-12-24T09:18:39.000000Z", + per_page=1578, + page=1166 )) self.assertNotEqual(response.status_code, 400) def test_get_private_money_summary_0(self): response = client.send(pp.GetPrivateMoneySummary( - "1b466ba8-55d0-40a0-8b9b-3c4e820dad5f" + "ce507f58-ca88-49a7-b727-306f1ce20970" )) 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" + "ce507f58-ca88-49a7-b727-306f1ce20970", + to="2025-12-17T21:21:57.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" + "ce507f58-ca88-49a7-b727-306f1ce20970", + start="2024-07-29T13:04:33.000000Z", + to="2025-11-26T16:08:05.000000Z" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_customer_cards_0(self): + response = client.send(pp.GetCustomerCards( + "9e8bfb23-2c37-486c-9a10-75cff4671a2e" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_customer_cards_1(self): + response = client.send(pp.GetCustomerCards( + "9e8bfb23-2c37-486c-9a10-75cff4671a2e", + per_page=54 + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_customer_cards_2(self): + response = client.send(pp.GetCustomerCards( + "9e8bfb23-2c37-486c-9a10-75cff4671a2e", + page=6062, + per_page=57 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_0(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01" + "607f33c1-fe3d-4222-bce5-31b6195ae2a8" )) 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 + "607f33c1-fe3d-4222-bce5-31b6195ae2a8", + per_page=2665 )) 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 + "607f33c1-fe3d-4222-bce5-31b6195ae2a8", + page=1365, + per_page=6306 )) 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 + "607f33c1-fe3d-4222-bce5-31b6195ae2a8", + to="2023-08-24T10:54:42.000000Z", + page=4138, + per_page=9067 )) 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 + "607f33c1-fe3d-4222-bce5-31b6195ae2a8", + start="2022-05-23T01:16:18.000000Z", + to="2025-10-01T14:46:26.000000Z", + page=6142, + per_page=4539 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_5(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", + "607f33c1-fe3d-4222-bce5-31b6195ae2a8", 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 + start="2021-11-10T15:21:50.000000Z", + to="2023-05-26T09:49:11.000000Z", + page=2575, + per_page=6633 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_6(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", + "607f33c1-fe3d-4222-bce5-31b6195ae2a8", type="payment", 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="2024-07-04T20:26:59.000000Z", + to="2025-02-14T02:10:32.000000Z", + page=5528, + per_page=4303 )) 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", + "607f33c1-fe3d-4222-bce5-31b6195ae2a8", + receiver_customer_id="219a7cd3-5da7-4c15-9528-115516a36881", + type="cashback", 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 + start="2021-01-20T15:57:16.000000Z", + to="2021-11-11T08:09:26.000000Z", + page=1733, + per_page=716 )) 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", + "607f33c1-fe3d-4222-bce5-31b6195ae2a8", + sender_customer_id="90f9a9d0-3aa2-4c07-8f76-132d0e6819f9", + receiver_customer_id="28a54c8b-57ab-4119-8f6b-86a10020c2f4", type="transfer", 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="2024-08-01T12:57:01.000000Z", + to="2025-04-04T12:50:09.000000Z", + page=4130, + per_page=8036 )) self.assertNotEqual(response.status_code, 400) def test_get_bulk_transaction_0(self): response = client.send(pp.GetBulkTransaction( - "8300a4b9-cfd7-4739-abb1-07e548bc1afd" + "4058c719-9d18-4cba-975d-77c32101eff9" )) self.assertNotEqual(response.status_code, 400) def test_list_bulk_transaction_jobs_0(self): response = client.send(pp.ListBulkTransactionJobs( - "1e4cffcb-fa3a-4e0b-889d-159adda948b7" + "9dbeb801-b407-4dbe-bd3f-7f7d483130cb" )) 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 + "9dbeb801-b407-4dbe-bd3f-7f7d483130cb", + per_page=8245 )) 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 + "9dbeb801-b407-4dbe-bd3f-7f7d483130cb", + page=7669, + per_page=584 )) 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 + "1a1137dd-1432-481b-867a-8ae5747a7c03", + "a596cdae-6adf-46d7-9878-65d0cb368b4e", + 6454.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 + "1a1137dd-1432-481b-867a-8ae5747a7c03", + "a596cdae-6adf-46d7-9878-65d0cb368b4e", + 6454.0, + expires_in=3790 )) 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 + "1a1137dd-1432-481b-867a-8ae5747a7c03", + "a596cdae-6adf-46d7-9878-65d0cb368b4e", + 6454.0, + description="hZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwi", + expires_in=3403 )) 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( + "bb4e92cb-dab6-47cd-9f69-b2739f337750" )) 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( + "69b319a8-cdd4-4e81-983b-6d76803a14fe" )) self.assertNotEqual(response.status_code, 400) def test_update_cashtray_0(self): response = client.send(pp.UpdateCashtray( - "eb79417e-11ba-41b0-97ba-a66dfab9dd91" + "c04999ca-f5b9-4a99-8150-d93e5d3423bc" )) 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 + "c04999ca-f5b9-4a99-8150-d93e5d3423bc", + expires_in=6440 )) 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 + "c04999ca-f5b9-4a99-8150-d93e5d3423bc", + description="Vf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4", + expires_in=6036 )) 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 + "c04999ca-f5b9-4a99-8150-d93e5d3423bc", + amount=9104.0, + description="XHkBbxR0RnLtirGJS2N5S6EEO5B", + expires_in=7064 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_0(self): + response = client.send(pp.ListCampaigns( + "3fb793a2-13f0-4eac-b054-5989a9523461" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_1(self): + response = client.send(pp.ListCampaigns( + "3fb793a2-13f0-4eac-b054-5989a9523461", + per_page=34 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_2(self): + response = client.send(pp.ListCampaigns( + "3fb793a2-13f0-4eac-b054-5989a9523461", + page=2958, + per_page=26 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_3(self): + response = client.send(pp.ListCampaigns( + "3fb793a2-13f0-4eac-b054-5989a9523461", + available_to="2021-05-19T19:14:12.000000Z", + page=1165, + per_page=18 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_4(self): + response = client.send(pp.ListCampaigns( + "3fb793a2-13f0-4eac-b054-5989a9523461", + available_from="2024-03-31T17:02:17.000000Z", + available_to="2020-03-25T02:02:42.000000Z", + page=8894, + per_page=37 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_5(self): + response = client.send(pp.ListCampaigns( + "3fb793a2-13f0-4eac-b054-5989a9523461", + is_ongoing=False, + available_from="2022-04-06T01:18:58.000000Z", + available_to="2025-01-14T20:14:59.000000Z", + page=1806, + per_page=15 )) 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" + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + applicable_shop_ids=["0d8070bd-87ea-4905-b39b-73ff5c1e13e5", "c32b7607-0bae-415e-ad82-3a3bb8332164", "ca3c8a93-f22c-4c44-a39b-d27034eacbda", "a102ab75-85ff-475d-9db9-39e94355d38e", "16fde4e9-8b8f-40c0-850a-051ce02296f7", "d7eeab09-c6e3-466f-ab6e-890c6a3cd3e5", "f5427be5-1b9e-43a2-84d1-0633483129b6"] )) 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, + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, "payment", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + applicable_shop_ids=["c4570fce-b3d2-4d25-b22c-cc4921b9ace0"], + bear_point_shop_id="94dd02ea-81bc-45e8-b9bf-aac2e6bd7634" )) 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, + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, "payment", - dest_private_money_id="7dc078ac-b404-48ed-9777-fb30237911c5", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + applicable_shop_ids=["d8127ba7-09db-45be-b6cb-6610df9c93ac", "9a924809-1b3b-49d1-9db7-bd3c19de3622", "5ea9989b-0be3-47bc-870b-aeecc9e0c491", "0004b86f-11b7-4610-bb53-67f2f1592143", "f4dee46a-46e9-486d-a47b-0eec9d59d767"], + description="wn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG76qE4T1vOrKA4IwgS5AgijWRyxneekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJAVzV6vyI6ywfpyKilj5zg8pn57kF", + bear_point_shop_id="b199c1b0-7316-407f-bfa8-62a8c15753c4" )) 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, + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, "payment", - max_total_point_amount=8487, - dest_private_money_id="6d324518-06fc-4623-aa6e-34e4b0a25291", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + applicable_shop_ids=["64681762-cfd0-4acc-988c-456a0cf82f01", "91708575-69db-4777-83f2-7970ec98f3a5", "c2a01f65-2c44-439d-bca2-89b084495808", "06e3e241-1aa1-4abe-b949-68c4bc615459", "d3b74708-1a50-4034-a13c-57f32f1438fb", "a8878d11-5fc1-4a69-86ce-d9a3235af198", "64140b77-ee21-4be1-9961-8e635f474639", "c51e0ba8-58dc-46a1-b2b9-e7476ccfe6c2", "90fce3bf-5ffb-4127-b115-12e8d136531f", "a3482e1b-327d-4ab0-94d3-018d14462a56"], + status="disabled", + description="9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7p", + bear_point_shop_id="b58d0b03-57a8-4d46-b0ee-cfed8c5f834c" )) 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, + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, "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" - } + applicable_shop_ids=["73c81adc-16ee-4307-ab49-e3af6fae341c", "cde1e159-42d4-4710-bbd1-f7648f03267e", "3d66de1e-50ba-4c9b-b192-4c837014ccbc", "b58e551d-f0c8-4100-bf24-634a9fb397da", "1094b925-6ab8-45d7-896e-b6c0b19c0844", "abdd9b18-5d48-4a8f-85bc-abd6ff3a35be", "19c4f3a6-c066-4b01-a7dc-3870d1b7c4c9"], + point_expires_at="2020-02-04T17:28:30.000000Z", + status="enabled", + description="tEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8", + bear_point_shop_id="14352341-1522-45b7-ad65-32a2a431bd92" )) 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, + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, "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" - } + applicable_shop_ids=["d62a8cc4-f52b-4adb-aaa6-ac3daf629f84", "0cd1ffcf-c403-45c1-ab03-9a98f25ab157", "faab7cab-4a11-41e5-afef-8015ccbbf4c4", "93cbeaf0-5465-4013-86df-1ee02152fa0b", "9c291036-f803-41f6-a353-b3f9319ef67b", "347fb41b-40e7-4c1c-b1ce-1e39146e7b91"], + point_expires_in_days=3477, + point_expires_at="2020-04-04T19:45:48.000000Z", + status="disabled", + description="7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyN", + bear_point_shop_id="98ba5b71-1432-45a0-bcd0-8ad732e9339d" )) 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, + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, "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" - } + applicable_shop_ids=["5de441e5-aed0-495a-8f48-6687d0fc785f", "d0f8885c-3eb1-46d6-b136-dc986e597f0c", "354f2844-9ae0-4aec-a383-124518b4bf35", "658a58db-7f87-426d-9b7b-c772052f6809", "506ee6b4-a098-4114-89ad-f77bdfe59db9", "fead532d-0809-4dfe-b15d-e3c3e175cad0", "eacb74dd-15f1-42bf-8631-449a72ac22eb", "0022356c-abfe-4125-8e7d-cb29e970cad0", "4e347a1a-180f-4d86-99c9-bb8503a74be9", "2d72f7b4-5d7e-4366-9c67-a25a321df47a"], + is_exclusive=True, + point_expires_in_days=7356, + point_expires_at="2021-12-22T07:55:57.000000Z", + status="enabled", + description="f9vCRDU8J59OtcokEMMVhmKz2iBoGU1OxUmIl7jlWxrfEKMQ8FCs062PLb59yfzniw8Z7TrjWh0BQdrr7bOC0AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb", + bear_point_shop_id="3a471235-8831-4b9c-8372-4751b560cc3b" )) 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, + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, "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" - } + applicable_shop_ids=["56d37e94-21a7-44af-96a1-7504f67699dc", "bb483dd6-5383-4a01-af8c-b1f275ccf7cd", "852d67b8-0fb0-4a98-9a12-41ea41d5b582", "ea6de88a-8c41-4e6e-9be2-73cc6f30ca2f", "fb2b0a98-ef80-463c-a325-178e9424abb9", "5feddbf0-39c6-46b2-be41-c5ba7a1c4ee9", "5ded926a-e959-49e6-a938-890a878290f9"], + subject="money", + is_exclusive=False, + point_expires_in_days=5500, + point_expires_at="2025-07-24T02:31:00.000000Z", + status="enabled", + description="4HI", + bear_point_shop_id="08389dd1-e32a-4734-81e0-5c1aa6fd076e" )) 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, + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, "payment", - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" + applicable_shop_ids=["fe95a700-3112-41d7-80d0-411f127c16fa", "112903ae-4211-4b1a-841b-b43fee6c4939", "c37d37c3-3fcd-4730-af8d-d0de7393193c", "5f13a588-566f-45cc-8c2f-f49143c3a613", "087b53df-6336-4461-bf04-ea20829b94bb", "0ae2c6fe-fceb-44b4-b4a6-23d66df3efbd", "a07a1c5d-7061-4d06-a694-227d784daa42", "ba3c9300-0dec-496b-9145-f095c7a652bd", "1caae1f4-c6e1-40c5-870e-42b86e89c4f8", "9a63712e-148f-4a62-9954-eb709d9abbe4"], + 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 }], - 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="money", + is_exclusive=False, + point_expires_in_days=6865, + point_expires_at="2021-06-16T04:38:01.000000Z", + status="disabled", + description="wS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJ", + bear_point_shop_id="89df4c5f-0749-462e-8a78-c7373257113f" )) 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, + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, "payment", + applicable_shop_ids=["1b95ec7f-4d9f-4c60-b9a8-69f0f5f0fed5", "a896a0ea-3575-49dd-8c7d-c3d1b990262a", "4f9f124c-aad7-4cad-b30b-580af0d891ca", "0fa512d1-9515-4ac1-88ec-fce3225aea29", "5f65c8b0-fc6d-4cae-9778-ca5b53392e5b", "08dc75e6-e591-460c-a192-c84967e2888b", "0fab2f42-7dc0-419b-8511-0e28c9b1bf3f"], product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -3513,99 +4217,57 @@ 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 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules=[{ + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[1, 2, 3, 1], - 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 }, { - "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" - }], - 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, @@ -3620,6 +4282,32 @@ def test_create_campaign_12(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=9062, + point_expires_at="2023-02-18T05:09:05.000000Z", + status="disabled", + description="VzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DH", + bear_point_shop_id="33196868-ff57-4d49-91b2-cd863b90b261" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_10(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + applicable_shop_ids=["df59f792-f5e7-40b7-9570-0057231d1ebc", "bf434d9e-0235-43a6-b488-5acce330a2bd", "78b084c4-1682-4bd3-8c33-89dcf518993e", "be6120fe-9a98-4cae-857c-03d0024e177f", "83b5dd59-32fb-4f05-9876-a79829a407dc", "794de84d-be2b-4b8f-9864-f4ac12b576fc", "5e47b749-2558-4ddc-86f8-b7dfcf5c33c7"], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], product_based_point_rules=[{ "point_amount": 5, @@ -3657,50 +4345,25 @@ def test_create_campaign_12(self): "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 - }], - applicable_days_of_week=[2], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }], - 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", @@ -3711,26 +4374,61 @@ def test_create_campaign_13(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 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=7442, + point_expires_at="2024-05-09T17:02:01.000000Z", + status="disabled", + description="dDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6R", + bear_point_shop_id="0c7dc5dc-f5af-4a46-b64c-df79c8d0980c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_11(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + applicable_shop_ids=["9a50aaa7-5217-42c2-810f-391aa56832a6", "f9dbfff8-7406-49af-902c-8ace16b3b43b", "bc361d83-a6f2-4241-9ed3-8f4442ae166a", "67092ddb-55b9-4856-877b-cbf267d63bb6", "eff4d9f2-c851-4c15-bed7-96858764e02b", "90c8a766-40ac-4145-a8d0-55fb3cc80401", "ce45eb37-7773-4f97-96b2-1566e51f1c19", "574ae9b7-559d-4b66-b5f2-c40a2dc9a354", "5fe091a0-4534-4e0f-a78f-54eeeb3d497b"], + applicable_days_of_week=[2, 4, 0, 6, 4, 0, 0, 5, 2, 5], + blacklisted_product_rules=[{ "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_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -3754,61 +4452,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 +4471,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 +4517,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=True, + point_expires_in_days=6799, + point_expires_at="2024-07-02T04:50:57.000000Z", + status="disabled", + description="XNoucyBbEpxFX7PDggrznNWBV", + bear_point_shop_id="58460209-a4b0-4f5d-85f0-3e0ff31826b9" )) 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, + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, "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=[], + applicable_shop_ids=["864321c2-1dc2-480f-942c-4a540fa189f0", "913d92ab-5d29-40b6-9cc1-dfc737e084f0", "9203a94d-be9a-430e-82cd-96222b68eaa3", "4c5e3ae0-d28f-4b9d-becf-109e950b447e", "e1244e3d-9e81-4133-a274-d0c09da3ff48", "9deddaad-bf59-4ca3-9c17-e94719d439e9", "3a28f5aa-2dc2-4528-94b4-fb987930df2d", "53cc070a-2a1b-40d1-a1ec-a002d40a1b75", "1662b1b6-af03-429c-8012-789e3c0c4263"], applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4031,51 +4564,54 @@ 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=[2, 3, 2, 4, 6, 2, 0, 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", - "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 +4629,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=5043, + point_expires_at="2022-07-05T03:26:27.000000Z", + status="disabled", + description="vmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9n", + bear_point_shop_id="2f6e9e9b-7d4f-498c-a574-b3a9cb2afbfc" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_13(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + applicable_shop_ids=["27b23fbb-c402-4c13-9de9-3a18cace5180", "1aaf4460-def5-4bbf-94d3-83f8087a2570", "a9fd872d-66b7-4294-a9a8-e33118b4dcf2", "0989f72a-9f1d-4ce3-a1e3-2ad2abc4d47d"], + minimum_number_of_products=4012, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4117,70 +4670,17 @@ def test_create_campaign_17(self): }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids=[], - minimum_number_for_combination_purchase=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=[5, 5, 0, 5, 1, 2], + 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,7 +4743,58 @@ def test_create_campaign_18(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[], + 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=True, + point_expires_in_days=4759, + point_expires_at="2021-05-19T06:14:02.000000Z", + status="enabled", + description="vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK", + bear_point_shop_id="61b6a42b-2411-44be-b5cb-269c5c40f20c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_14(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + applicable_shop_ids=["8e56fdde-3185-4152-98f2-5eadb2a3a833", "07d7b329-8516-4228-8668-b0fb8e43c48e", "507dbdb8-4065-4467-8e46-66cd448c57d9", "21b19c55-9890-4bc3-8eb7-1614cae1d03a", "8fdf1bd1-1abc-4a05-8ab0-d640046a0651", "a72b5a9f-722a-47fc-bc07-0e07fe0b49a1", "3bd93917-045c-4c81-976c-44017a891881"], + minimum_number_of_amount=3960, + minimum_number_of_products=6861, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4256,187 +4807,119 @@ def test_create_campaign_18(self): }, { "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=["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" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_7(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" + applicable_days_of_week=[1, 4, 6, 3, 3, 3, 1, 3, 4], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "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 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }], - 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" - } + 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=2548, + point_expires_at="2023-10-10T18:05:25.000000Z", + status="enabled", + description="BXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8P", + bear_point_shop_id="75e2aca7-85bc-4e78-881f-a2e9ada790d0" )) 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], + def test_create_campaign_15(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + applicable_shop_ids=["3522581a-01f7-41c3-be6c-7dc73dead11c", "3f55109a-9c25-47da-b1cb-15a2f267bdcf", "6d877ec7-a909-4ce7-8532-e1dca3d2cef3", "41f5346a-a18e-47fd-8f37-4a3d710a31db", "5b1a3dc8-2475-4436-974b-2e09586e2da1", "8d95eab5-fd0c-402c-9ccd-ed035c8bba82", "c56495a2-eebc-4222-9f88-033747504985", "51f3546e-7cdd-49a2-b0fb-e912ce37af85", "87969e5b-7c67-4ef5-a3af-a2e81a6e43b6", "c835528c-0af3-4e24-b24a-9c3674a986b7"], + minimum_number_for_combination_purchase=1666, + minimum_number_of_amount=7097, + minimum_number_of_products=9583, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4453,21 +4936,23 @@ def test_update_campaign_8(self): "from": "12:00", "to": "23:59" }], - 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", + applicable_days_of_week=[6, 0, 1, 5, 5, 5, 3, 6], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -4480,39 +4965,14 @@ 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 + }], + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, @@ -4537,21 +4997,47 @@ def test_update_campaign_10(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=6454, + point_expires_at="2022-11-28T13:25:06.000000Z", + status="disabled", + description="mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVP", + bear_point_shop_id="a028813e-26a4-40f1-b436-bc40ed8305c7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_16(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + applicable_shop_ids=["fd7517c9-ff50-4625-ac4a-58edc7157023", "301e9538-37e1-4cdc-a39d-5c282dfba459", "2c731eaa-34e2-419d-971d-f6faf0fe2334", "bec20b4b-5a33-4cc9-8138-5cca6836ba82", "dc3ab37d-baac-4826-8059-bad5851924e0"], + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=1741, + minimum_number_of_amount=4088, + minimum_number_of_products=9157, + 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" + }], + applicable_days_of_week=[0, 0, 0, 1, 1, 4, 1, 0, 4, 3], + 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, @@ -4614,7 +5100,36 @@ 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], + 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_17(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + 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"], + max_point_amount=9466, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=9256, + minimum_number_of_amount=1676, + minimum_number_of_products=5565, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4633,52 +5148,34 @@ def test_update_campaign_10(self): }, { "from": "12:00", "to": "23:59" + }], + applicable_days_of_week=[1, 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" + "product_code": "4912345678904", + "classification_code": "c123" }], - 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=[{ + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules=[{ + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -4690,60 +5187,40 @@ def test_update_campaign_11(self): "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" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { - "from": "12:00", - "to": "23:59" - }], - 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", - "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 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 }, { @@ -4752,8 +5229,31 @@ def test_update_campaign_12(self): "subject_more_than_or_equal": 1000, "subject_less_than": 5000 }], - product_based_point_rules=[], - applicable_days_of_week=[4, 2, 6], + subject="money", + is_exclusive=True, + point_expires_in_days=9886, + point_expires_at="2022-08-26T14:46:48.000000Z", + status="enabled", + description="9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPK", + bear_point_shop_id="b4ff792a-232d-4877-baa4-00a908414d8a" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_18(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + applicable_shop_ids=["c29ae68a-30f7-44fa-be72-58623f39b9d6", "cfb9bc59-c163-499e-b0dd-d1ae527e49aa", "c92cdd04-c893-403d-803e-62921ff66984"], + max_total_point_amount=8310, + max_point_amount=2233, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=349, + minimum_number_of_amount=4021, + minimum_number_of_products=845, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4769,37 +5269,43 @@ def test_update_campaign_12(self): }, { "from": "12:00", "to": "23:59" + }], + applicable_days_of_week=[0, 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 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }], - 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=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -4840,9 +5346,88 @@ 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=6474, + point_expires_at="2025-06-18T02:42:27.000000Z", + status="disabled", + description="DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51Au", + bear_point_shop_id="ffadecd5-d9fd-44c0-bbbc-85bdfeba7a3c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_19(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + applicable_shop_ids=["cf97f8ee-eb79-4248-9d76-3e35b1f9945d", "922b6637-de72-49a6-84e2-a399c3c390f6", "6a0d631d-241a-4eed-b5bf-348cddebc04c", "5ef02a0f-309a-4537-8271-3b59367794e4", "09b701b2-6638-48d9-996c-d104d020ba71", "d3205ead-a305-4534-a4d0-49d4b40e7652"], + dest_private_money_id="f128a25b-206c-44ec-b8b6-112a23642fb0", + max_total_point_amount=2331, + max_point_amount=1176, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=6627, + minimum_number_of_amount=6917, + minimum_number_of_products=8918, + 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, 5, 6, 5, 1, 4, 0, 6, 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 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_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 +5435,48 @@ def test_update_campaign_13(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=2878, + point_expires_at="2020-02-02T05:33:30.000000Z", + status="enabled", + description="KaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4V", + bear_point_shop_id="1137580e-2d48-4194-be91-35bec81945ff" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_20(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + applicable_shop_ids=["8995daf0-9d19-425e-a78a-39843168135b", "36b29397-0855-4c2e-a1ea-e89b9d5707cc", "dfad5f87-896d-43be-bbc4-95db49dc2d39", "1205df85-129b-4c2e-ad10-5ae3231c622d", "ac8537a0-2943-4ae9-9fbf-0de0b0d6ea6d", "8d8baaaa-159a-4250-9219-1ebd1e35d923", "416c3ca7-17f7-4643-b9ab-c0b7703844cc", "31ecc495-2ac8-47bc-86d7-092dd4960ae1", "173cae53-8b5b-42cf-ae49-4813d3eca943"], + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="b74c1a25-6788-4c0a-ba08-bc225a5bc4c2", + max_total_point_amount=2414, + max_point_amount=3587, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=3772, + minimum_number_of_amount=1165, + minimum_number_of_products=4464, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 0, 2, 5, 6], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], product_based_point_rules=[{ "point_amount": 5, @@ -4857,34 +5484,13 @@ 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" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }], - 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", @@ -4921,13 +5527,65 @@ def test_update_campaign_14(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 + subject="money", + is_exclusive=False, + point_expires_in_days=3271, + point_expires_at="2020-04-20T18:01:33.000000Z", + status="disabled", + description="47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLAp", + bear_point_shop_id="7e8d24d6-772e-4277-ba4e-e028e5cd30d9" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_21(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + applicable_shop_ids=["5100e3a2-3d7a-4cea-8b27-b9c9f85980c5", "eba17a64-2088-42f1-bf5e-e4fbd1a423c0", "2a8f7e15-7987-463a-bbd4-281936ad9bda", "fdd4abc3-0875-4c44-bf10-1cac35aa04ef", "a576517b-b3f4-4f93-8ef3-ba36e7a93a19", "dd375f6f-e022-497e-9acf-4af0bd1e4e55", "2948b319-2b0d-4008-8c6e-5d8314d81c92"], + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="cbf452d8-65b5-4170-a165-b586c41d9aa6", + max_total_point_amount=3879, + max_point_amount=9459, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=600, + minimum_number_of_amount=9589, + minimum_number_of_products=6865, + 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, 2, 4, 1, 3, 5, 5, 4], + 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", @@ -4940,7 +5598,67 @@ def test_update_campaign_14(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[4, 5, 5, 4, 6, 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=2619, + point_expires_at="2020-10-12T00:40:50.000000Z", + status="enabled", + description="3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRH", + bear_point_shop_id="75dca12e-ecfd-4246-90bd-c68e86f9d170" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_22(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + applicable_shop_ids=["5bd3f93c-24c8-4226-9354-74543d418917", "6edf1a96-e853-4cfb-bea5-a5a127e365c6", "b429839f-9578-4d3e-aea2-f9766d4d663b"], + budget_caps_amount=1051936979, + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="33ba4cf7-84ea-4686-9b33-b1a88b66a1a9", + max_total_point_amount=4688, + max_point_amount=8162, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=6708, + minimum_number_of_amount=5878, + minimum_number_of_products=1565, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4950,30 +5668,37 @@ def test_update_campaign_14(self): }, { "from": "12:00", "to": "23:59" + }], + applicable_days_of_week=[2, 1, 4, 5, 0], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "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 }], - 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,12 +5744,180 @@ 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=6627, + point_expires_at="2024-02-08T02:57:33.000000Z", + status="disabled", + description="hOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKLeGCgLyc", + bear_point_shop_id="cab177b3-e688-4a21-98ad-f99963da74e3" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_23(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["6e4de225-2b46-4099-8f59-d7ad15dbd770", "7db664c1-76c1-46ac-8748-42817a95d5a9"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_24(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["395d030d-a6d9-42cb-b97a-f886ac355137", "f8d8c53b-8685-40b3-8b75-3ef8ce761944", "1822eb50-8f7c-460a-b210-d4957d495569", "0ac19606-b763-4bf4-a9a8-84f8a2a939d9", "9467fc3a-9cd3-4afe-9730-b14195a86593", "13abc983-2fdb-4f0f-aeaf-f1ecb7955ffe", "2dd5cf0e-5a27-47ca-b907-c15b5e154fd1", "a123c896-ec34-45ef-8267-4f2687be246a", "cd69a8d1-fcfd-4267-a23d-0dea05318a93", "8b0d529e-fd5f-417e-9eb8-47602191d69d"], + bear_point_shop_id="f4338b1a-2edc-46fd-bc50-9a52c5506966" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_25(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["6e82cc24-a14e-4501-bced-a28e152527b4", "4c2d5af6-ff7e-41df-ab8d-1354aa99e04a", "62d656b8-af6a-45ad-906f-dfff5c9f6579"], + description="HmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBt", + bear_point_shop_id="ee6bc4d2-0b5f-427b-ad2a-46687146c830" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_26(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["e0178961-1bdd-4d76-97ef-f8ac011241ed", "90ec9e37-fe03-4c2e-9b69-f3532eeaed92", "88c7fc25-518e-4a5c-bcc6-ef9d5c316fc9", "0f5f5081-79cf-44b4-b55a-d3640da3c890", "3c7ec724-2774-470b-8a80-4b475d42776e", "b50d44b6-3d48-40bc-9c24-bf57236b4791", "911dab9b-1a25-4ccc-9d3c-53ab375e7c42"], + status="enabled", + description="7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3A", + bear_point_shop_id="0b9657e4-cac5-4573-a4fb-a20eaeac5935" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_27(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["5b8acc47-6621-4514-84c4-a4cca00e1089", "e35cca7b-2260-4575-9a06-b519fcb0fa61", "1404cc53-a53e-48f0-8607-c4591ff76d6c", "155166b1-cad4-4024-9dc7-8e7b9d06412b", "f97a1045-c6fe-459a-a482-59ba99ec180a", "c4dfcd13-c984-49e9-b585-39675b4b5e83", "4f78f167-1e17-456c-8b78-582b207ccd22", "f5516989-cc4a-4b10-8a42-d2c718fd4792", "184ecaff-c79d-4d74-b0fc-3fe4d5317a2c"], + point_expires_at="2023-11-01T01:24:50.000000Z", + status="disabled", + description="tQc4uSkk26uSRwX6Rx7fOEoFSQiDYpTTg", + bear_point_shop_id="4dc513de-ee72-4588-b980-8d1485ba9df7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_28(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["90053e6b-3783-439d-aca3-4e05fd9a2502", "d3222d56-3fc4-4401-aa09-f7ba1698c58b", "92bb9c1c-a6b4-4d6d-95be-7c20c57025c5"], + point_expires_in_days=2381, + point_expires_at="2024-08-20T22:00:05.000000Z", + status="enabled", + description="dQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3eTBlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4XfUae14Wbt93t26Li", + bear_point_shop_id="d18e0851-5e11-44c1-87ac-c94dc123dc42" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_29(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["40b7522d-c878-46b0-b537-587cde872183", "b582b89a-9c41-44ef-bb42-b7f75edc9e2e", "0a385acc-12e5-44f2-b94e-dee55703841a", "4bfb5390-6cfe-4663-b503-d4828ced02c9", "bd10e51c-1768-449e-95c2-e7d844c78d88", "f5038c52-3051-439f-9152-d9ab4464b65e", "bdfaed43-762f-4576-bfeb-06d3217d8405", "0b4cbac8-1bf3-46c0-ac6d-dc07cbdb5d0c", "f799ce9e-ac7e-4c44-a2fc-7526c3dbe4a0", "d67557cd-603c-4ed5-ad3b-d78fa75a8f7c"], + is_exclusive=False, + point_expires_in_days=6570, + point_expires_at="2022-06-22T06:13:54.000000Z", + status="disabled", + description="4aVyZLcCNEj4KngWmPwy7k0E27omWruIW", + bear_point_shop_id="601f0073-eb81-4d03-a634-bdd4e7b329c1" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_30(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["809a57af-4e10-4047-8566-605e9affbc71"], + subject="all", + is_exclusive=False, + point_expires_in_days=9471, + point_expires_at="2025-10-05T12:02:45.000000Z", + status="enabled", + description="TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHG", + bear_point_shop_id="2e86f1a0-90cf-4ef2-9bf3-b961fdcabd19" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_31(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["b623cfa8-eb2e-48c9-8bbf-b1737dcb7a51", "39793d31-f4b1-4f8f-910e-27aaebbee62d", "826f0cc1-adb0-4f3a-ba66-dd3f8b3fbd35", "6ff06122-0a2e-489c-a25f-27ff0d214e26"], + 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=9866, + point_expires_at="2026-03-11T05:22:54.000000Z", + status="disabled", + description="cKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3z", + bear_point_shop_id="05bccf09-a9c5-4639-9b71-ae84dc27918d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_32(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["b57a17bf-810f-450e-885d-c806cfe7e384", "6acffbc1-cf9f-4917-b6ca-1b6ca45d3aa3", "f8634200-31de-4f9e-aa81-53f1117e3976", "5169047d-2554-4e6f-addb-2f60db2565f3", "a9c2f6fc-f203-4f80-b7be-ac1f8716c7a9", "d9af4f0c-fad3-4ff2-afde-bb97cbe8962c", "b54916c9-da41-40bc-88ec-82e408c3858e", "cca934db-580d-428e-9028-9badbd567835", "60413d3d-890d-41af-9e74-0d6190092d7e", "0ecae419-4b44-4261-bf68-3ff6110df607"], product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -5080,35 +5973,6 @@ def test_update_campaign_15(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[3, 3, 0, 2, 1, 2, 6, 0], - applicable_time_ranges=[{ - "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=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -5119,36 +5983,32 @@ 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=3687, + point_expires_at="2023-02-26T21:37:27.000000Z", + status="disabled", + description="H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhY", + bear_point_shop_id="bf8b73ed-e26f-4e6b-aece-d0b1347e2d17" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_33(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + 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"], + 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 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_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", + "classification_code": "c123" }], product_based_point_rules=[{ "point_amount": 5, @@ -5199,48 +6059,72 @@ 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" + "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=["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="money", + is_exclusive=False, + point_expires_in_days=7424, + point_expires_at="2025-03-01T15:23:29.000000Z", + status="enabled", + description="G8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3", + bear_point_shop_id="607d3fa6-3d5b-456f-ba1a-08fb23eaac12" )) 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, - is_exclusive=False, - subject="money", + def test_create_campaign_34(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["abef2a19-7ced-4feb-b8b8-c6098b728b79", "73d66759-69fe-4c2c-aae0-33521600beea", "24d755fe-8397-4ab6-b070-ee93647cb923", "babbc04a-074c-4217-9098-1beec70df76c", "91366a2d-9b65-44e3-b803-e3cac10f072d"], + applicable_days_of_week=[0, 5, 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 + }], amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -5251,39 +6135,51 @@ def test_update_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 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], - applicable_days_of_week=[4, 5, 3, 3], + subject="all", + is_exclusive=True, + point_expires_in_days=8523, + point_expires_at="2024-02-12T19:22:27.000000Z", + status="disabled", + description="OCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZt", + bear_point_shop_id="4862b1f2-899b-44bc-89c1-1d0174f93c18" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_35(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["9f962550-eab3-42c2-a0b3-fb0b258d163c", "e1643f6e-c3ad-45b1-9d09-023e2c377e6d", "77ee6b34-900a-4f35-b182-840834a06c6d", "4204ff94-a70e-4703-9082-a29b4cb0e2fb", "4ac21c2e-8e55-43dd-be38-0d64f552e33a", "43296e54-2509-4f44-a6b7-eb9698d64710", "c3fd01e2-3a3d-4bee-a2bb-df0ff9d7f1d8", "2d66b091-6908-4431-8d72-9f3805800196", "398cac6c-5f81-499d-b3fc-48680c10a5c3", "8839f9f7-ca36-4c11-93ee-a5a7d709c22b"], applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -5311,34 +6207,27 @@ def test_update_campaign_17(self): }, { "from": "12:00", "to": "23:59" + }], + applicable_days_of_week=[0, 0, 5, 6, 6, 3, 4, 0, 5, 3], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_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", @@ -5381,57 +6270,19 @@ def test_update_campaign_18(self): "product_code": "4912345678904", "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" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }], - 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,6 +6303,71 @@ def test_update_campaign_19(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=4824, + point_expires_at="2026-02-14T18:43:12.000000Z", + status="disabled", + description="k1AXf6CZi", + bear_point_shop_id="71cf2bbd-8ca3-4045-9d4a-556da4f335e7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_36(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["cd2f5ac9-7caf-4d7d-889c-86443ec735cf"], + minimum_number_of_products=3113, + 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=[4, 6, 5, 0, 0, 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_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], product_based_point_rules=[{ "point_amount": 5, @@ -5471,44 +6387,69 @@ def test_update_campaign_19(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 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], - applicable_days_of_week=[5, 3, 1, 1, 3, 3], + subject="money", + is_exclusive=True, + point_expires_in_days=1421, + point_expires_at="2021-03-11T05:39:31.000000Z", + status="enabled", + description="qS572AEF2Ig4ikrPHEQKtfhnULf", + bear_point_shop_id="5a57b6eb-5290-4d21-acd3-cfc24db91e38" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_37(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["73508bd6-5dd6-4752-a8a6-a15a932cf485", "bed50f0a-b2e7-4511-b318-5a213d10d3bf", "6469822b-0686-4730-bbd3-0868cd415c44", "45d49b25-20c1-4d31-a091-92d4ce894394", "6c51449c-4926-4f1f-ac22-63be39547c7e", "6947eeb4-3a94-4121-956b-8d08d2cd2678", "94709bc2-8224-4a68-9f03-54f610c9e731", "09223b41-7ca0-41a1-8e11-6f9e351fadcf", "0c9a36f9-71ff-4e0b-970a-55b07b9a8209"], + minimum_number_of_amount=19, + minimum_number_of_products=7587, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -5527,50 +6468,101 @@ def test_update_campaign_19(self): }, { "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=["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", - amount_based_point_rules=[{ + applicable_days_of_week=[1, 2, 0, 0, 3, 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_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", + "product_code": "4912345678904", + "is_multiply_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 }], - product_based_point_rules=[], - applicable_days_of_week=[5, 6, 5, 6, 5, 4, 5], + subject="all", + is_exclusive=True, + point_expires_in_days=4094, + point_expires_at="2023-08-02T07:04:23.000000Z", + status="disabled", + description="QjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk", + bear_point_shop_id="a1d9ff31-3230-4c1c-8fb1-f0426663101b" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_38(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["94ccb95d-5f69-480e-8267-8efbd8d04d08", "081501fe-c2ef-4e85-b63a-a4d5a5d49fdb", "c5769839-b880-41b9-9e52-af9803519f4f", "e9444af3-1354-4e14-9a5f-754b3ff01a2f", "dc04a936-a7b5-463f-bad1-c2cf82ae8ea1"], + minimum_number_for_combination_purchase=873, + minimum_number_of_amount=4586, + minimum_number_of_products=3565, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -5580,7 +6572,106 @@ def test_update_campaign_20(self): }, { "from": "12:00", "to": "23:59" + }], + applicable_days_of_week=[0, 2, 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 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_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="all", + is_exclusive=True, + point_expires_in_days=2558, + point_expires_at="2024-11-29T07:43:04.000000Z", + status="disabled", + description="pPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZB", + bear_point_shop_id="0ddd2161-974c-4f39-9c85-ee8cca1cad24" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_39(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["7c402791-4bd0-4ba2-84dd-4f0cb1a42097", "6c29d3ef-d045-470c-b5d0-d616df168c8f", "7c26bc6e-854f-4660-9278-f0539e9e769f", "b7881859-5499-4012-9dfd-4e2ec6ab65c9", "cf7c4296-f0de-4f24-82a6-d7161b35d982", "41c90251-a604-4655-9a4d-a6a85518b68e", "5e363597-9d77-49d1-bb45-361e256766a1", "49c0be4b-f411-4285-ae08-8ed1f387eb0e"], + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=6513, + minimum_number_of_amount=9533, + minimum_number_of_products=606, + applicable_time_ranges=[{ "from": "12:00", "to": "23:59" }, { @@ -5602,43 +6693,52 @@ 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=[{ + applicable_days_of_week=[5, 5, 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_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 + }], + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, @@ -5679,20 +6779,30 @@ def test_update_campaign_21(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 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 - }], - applicable_days_of_week=[5, 5, 0], + subject="all", + is_exclusive=True, + point_expires_in_days=4902, + point_expires_at="2023-04-05T01:55:42.000000Z", + status="enabled", + description="32uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9", + bear_point_shop_id="385bf1a5-ee75-4558-8a99-3de545d4c639" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_40(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["eaa15f52-0fbd-4dc2-8e47-351b32843f99", "2241a146-50e9-4b0c-bed8-f7e2829afe17"], + max_point_amount=3474, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=7713, + minimum_number_of_amount=1040, + minimum_number_of_products=2879, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -5711,26 +6821,6412 @@ 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=[3, 5, 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 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=3792, + point_expires_at="2020-08-02T10:43:25.000000Z", + status="disabled", + description="RvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68", + bear_point_shop_id="b1d86a9d-d896-4e2f-aa2a-736a2a505dff" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_41(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["e0c1e1fd-7d66-4d09-b11c-2e1288c8ff8a", "e40b8ccc-d76c-449b-9ba8-5430319c39dc", "fbb7331c-dbcf-4f34-b409-5838a638339f", "490839f9-413f-48a1-aca0-5880830441f5", "904032b2-ffd9-4aab-99b3-446056fa3619", "d6d260bc-99e1-400b-9f8b-f20747e0a518", "f900f26d-fbe3-4ee2-bb5a-87902cd7121d"], + max_total_point_amount=3027, + max_point_amount=663, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=1348, + minimum_number_of_amount=153, + minimum_number_of_products=7428, + 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=[5, 6, 4, 4, 3], + 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="all", + is_exclusive=True, + point_expires_in_days=7196, + point_expires_at="2026-02-08T11:15:25.000000Z", + status="disabled", + description="foqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv", + bear_point_shop_id="2955a6b4-295b-4bed-a0f8-1269fe9a968a" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_42(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["f3f64e79-21e2-4518-8e4c-ff53be2b48fa"], + dest_private_money_id="13245ad4-e5aa-4bc7-96e8-025b24dc5d48", + max_total_point_amount=670, + max_point_amount=7415, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=9552, + minimum_number_of_amount=4826, + minimum_number_of_products=6726, + 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, 6, 3, 0, 3, 6, 0, 6, 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_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 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=2933, + point_expires_at="2022-08-26T23:39:38.000000Z", + status="disabled", + description="19", + bear_point_shop_id="59750709-cbe1-491a-a6b5-295245af3000" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_43(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["6a0e2cf0-2779-4199-a4c2-5328bf60d2a3", "2e8fac1f-22e4-48e8-845d-7066d43378c4", "3d8fb2f4-aedd-4e8d-8081-016d588cec99", "938590fb-1c97-4509-b04d-e8fc4186880e", "ad9ccfe7-f15f-4f78-8903-cc577b5d88b5", "07d9d26c-6323-488b-8d92-8aeaf17c0cae"], + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="f03527c9-a436-4124-8979-afe6d3fe3b67", + max_total_point_amount=8847, + max_point_amount=2961, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=3221, + minimum_number_of_amount=955, + minimum_number_of_products=1583, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[6, 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 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_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=False, + point_expires_in_days=1492, + point_expires_at="2025-05-22T20:00:47.000000Z", + status="enabled", + description="lGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJ", + bear_point_shop_id="42bfbe0c-02e0-4408-a94c-c37f5347f03c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_44(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["6a0a7952-a17b-4fad-a64e-e4846f33dd7d", "41d80622-75fa-493c-b55d-2cd32c940c74", "c039acc4-948c-4eac-9aaf-c112a6a1dcc8", "05e39af0-4d00-44b5-8d3f-f0f60bf31cfc", "667288a3-b068-4c1a-ba2f-4be6afbfbe62", "89910ccd-9743-446f-8ab9-847c5ebbc218", "7377185d-25de-429e-b1be-0c2d6b64dc90", "19b86012-79f9-4661-81d2-ddf800c07ff4", "e324fd3e-d85d-4b21-9aa1-d75f3be3bc14"], + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="4b107df1-f60f-4ffb-bb9a-9ce7f8d657dd", + max_total_point_amount=6723, + max_point_amount=8758, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=5493, + minimum_number_of_amount=4149, + minimum_number_of_products=8956, + 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, 0, 4, 5, 3, 2, 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 + }], + 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=6219, + point_expires_at="2021-03-01T08:40:11.000000Z", + status="enabled", + description="ytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kc", + bear_point_shop_id="4cf53ce6-f530-4303-9fe8-edf24b046ba6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_45(self): + response = client.send(pp.CreateCampaign( + "xXXwjFaRAeTxfe0YQCHzm8OG8zcqkO", + "01ded6f8-5e49-4188-87e3-06bc781d43d7", + "2020-07-14T19:10:27.000000Z", + "2024-07-06T21:51:22.000000Z", + 4330, + "payment", + blacklisted_shop_ids=["022cb2b4-83e1-4433-b250-1089c1de1ae7", "cf8efa54-b1e8-4320-9e8d-fd8e9b23ba96"], + budget_caps_amount=1004578204, + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="bfc5bba4-bb53-4eb8-80ab-6a9bdd23054b", + max_total_point_amount=2116, + max_point_amount=3920, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=1581, + minimum_number_of_amount=2907, + minimum_number_of_products=6265, + 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=[3], + 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 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=3478, + point_expires_at="2020-04-19T14:49:03.000000Z", + status="disabled", + description="NvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0P", + bear_point_shop_id="d1d15088-a827-4540-9579-ca383f63295f" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_campaign_0(self): + response = client.send(pp.GetCampaign( + "951e944a-bcf9-4d98-9adc-23604cd79af1" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_0(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["1b628a55-b655-465c-b072-675d52b2d802"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_1(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["7ad4c1d9-450f-40b2-b252-8ec0c485a364", "39a182b1-68b0-42e2-ae44-7745166fb186", "3811c850-3920-414b-bba8-cbfebf88ddef", "f1f983d3-5285-4f47-926e-36cd7353ba34", "2bc8f1fd-7cae-4222-b0c1-9d3b3578f18c", "af2cd220-db18-4fc0-865d-4b64f6fa9f02", "39e65e62-e824-4526-b20b-08841a0d3aec", "6da41cf3-4b93-4aa3-888d-958d72048dc6", "da6d4fc2-884e-4a89-a64c-93b0854484e9", "0b0fa9a8-e584-4965-9cef-636745c01eee"], + name="ilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_2(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["6827a1c5-ecf9-4298-9848-444d2eb3e358", "71a9edc2-8b9a-4999-972c-bf6a51fc4cb8", "5be83b26-d80d-4325-af74-4693279c11c5", "5d4e6e88-d6a3-49af-8196-7c63f6b9dd5e", "f399ffa1-7446-4eaa-b9b5-2f12618b356f", "af157eef-f058-4def-a517-8f02bea15958", "20581ffd-0375-487a-9d0e-930bb34e88fc"], + starts_at="2023-12-03T15:19:08.000000Z", + name="RpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_3(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["4b4a6be5-3e00-42e8-b23f-b008918404ad", "b8c373aa-9a9b-411a-b67d-f05a8b1db1df"], + ends_at="2025-02-10T14:56:13.000000Z", + starts_at="2023-04-10T09:38:52.000000Z", + name="WkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_4(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["3f735a66-e117-4fca-b128-857bf25dd5d3"], + priority=9027, + ends_at="2023-06-12T22:47:32.000000Z", + starts_at="2023-01-06T20:49:31.000000Z", + name="uFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7b" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_5(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["fa7ef807-6316-44bc-a863-e3e41e6ab806", "d6a686ad-a849-4161-b62c-95126ad01ebc", "3df0fff3-b3dc-44aa-a132-f80970d15613", "c16f8b96-7d4f-41ad-9e82-3cfffe978c69", "2acdd953-e4b4-4929-b497-735e52177dc0", "f8df46fc-51b8-4fab-ba59-d311353d81a7", "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", "82247ed6-d967-4d74-b578-98f0791dfadf", "5fb8278d-0e54-452a-8521-dbbdfc9a53e8", "0d83c071-eeeb-4478-a80b-507c1fdf15d7"], + event="topup", + priority=9038, + ends_at="2021-11-13T04:29:40.000000Z", + starts_at="2020-11-20T04:54:35.000000Z", + name="kYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtgl" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_6(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["e4689d39-0e1f-4409-a082-71b9b72e7426", "3cb50104-90cf-46ee-b107-9861cd2d65e6", "090c2a35-8069-4f11-a299-2cd4604aea78", "05779e29-abe1-48cb-a740-27c831db2f2b", "c788b722-4df4-42b4-af9d-5548205621d8", "f06a08ab-45bb-4278-bf89-cef0f66598cd"], + description="z5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58u", + event="topup", + priority=7678, + ends_at="2020-07-23T05:23:35.000000Z", + starts_at="2024-02-09T00:09:18.000000Z", + name="hjJEVfg4kmmGr3fEZnBlmzkrtoy" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_7(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["072a9dcb-d31b-446d-832b-ffba08e01633", "337f3438-21db-4842-9ba1-e97bcbc85b28", "49bfe527-58c4-4679-b509-136a92bd665f", "55f938b1-2223-40bc-9594-f9314b9e6d35", "14eddf09-f740-4469-8204-8e5cf2824c85", "701f182b-89b0-4b85-9691-cfd6650bcd18", "e3b39a0b-fc55-48a0-9fd2-fe481261a4a0", "06f33b7e-36af-4dce-8354-6a2f00ce138d"], + status="enabled", + description="SkvCAJ", + event="payment", + priority=8274, + ends_at="2022-07-22T17:58:41.000000Z", + starts_at="2023-12-28T18:59:14.000000Z", + name="0xc8v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_8(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["63bcfdf8-acba-4336-8e8a-be184572af43", "a78765c0-8d0c-4b86-addd-2679f7a5e09c", "8ebb133a-ef0d-42d0-8f5e-0ffe42e5a3f6", "2a46a61c-6923-4d4d-b482-e11257cd05ef", "ab333a99-5106-4aa9-bc55-4c2c28c5c149", "340d93a1-c4c4-4559-85d4-755bc5b8d154", "cb0a96e2-b539-4159-8f07-0ecc3d78097e"], + point_expires_at="2021-09-17T15:10:54.000000Z", + status="disabled", + description="ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk", + event="payment", + priority=4091, + ends_at="2023-02-02T19:41:41.000000Z", + starts_at="2025-04-30T07:20:36.000000Z", + name="TC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCP" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_9(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["98c5fb81-3b7e-4941-873a-85b5f7db1e54", "c575a55b-12fb-47e1-980d-63cfaba154d3", "3db83ea9-8003-4e4a-a472-24c647114cf7", "52486c0f-d495-4254-b6c9-28dc1101e5cd", "d4fb6bd3-69d4-49d1-a9df-aae053cae1d1", "39593504-bd44-4533-a1da-74d3315d9c4c", "bf3b3975-0556-4ee0-a3ba-ce27ccd4a835", "c619bc4b-23c0-4a8d-a32b-32768da807dd"], + point_expires_in_days=8507, + point_expires_at="2025-06-06T16:39:05.000000Z", + status="disabled", + description="CMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4EL", + event="payment", + priority=1802, + ends_at="2022-04-07T06:10:26.000000Z", + starts_at="2023-03-19T04:36:40.000000Z", + name="yBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_10(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["46c3a21f-1784-4bdc-80b9-37b242acff7f", "ea18c5af-0ed0-4dd8-9770-0182dc69a240", "0d43d8cc-e9a1-4fde-bebf-b2975066581b"], + is_exclusive=True, + point_expires_in_days=4398, + point_expires_at="2020-09-12T01:57:33.000000Z", + status="enabled", + description="FM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn", + event="topup", + priority=944, + ends_at="2024-09-24T22:43:01.000000Z", + starts_at="2022-05-31T23:13:42.000000Z", + name="An0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqc" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_11(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["882f56a1-2fdc-491c-9157-2c04db33b74e", "d0350e9c-a3a7-454a-9686-91f21dc4464e", "03a214ae-85a4-44d4-89be-34f331f08f76", "d76396b2-0184-444c-ac65-30f8915e8bb1"], + subject="all", + is_exclusive=False, + point_expires_in_days=6123, + point_expires_at="2021-05-14T05:27:35.000000Z", + status="enabled", + description="2ugzGxu81Sx50Yf2M71M8zENOSGl", + event="external-transaction", + priority=3180, + ends_at="2024-07-17T21:59:32.000000Z", + starts_at="2020-10-16T03:18:18.000000Z", + name="3P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcf" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_12(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["28ffee1f-1aa7-46ba-b487-dfebd10cf1c2"], + 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=1767, + point_expires_at="2022-07-23T00:13:10.000000Z", + status="enabled", + description="uYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQ", + event="topup", + priority=1740, + ends_at="2022-02-18T23:19:59.000000Z", + starts_at="2021-04-05T15:28:28.000000Z", + name="0ebUOhv3B3t2DzpE8reI7vFyo7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_13(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["1446af4d-a034-465b-82ae-3de4a70906ce", "7d0d3406-03c8-472a-97b2-bc35a8fbf4ee", "da5fe8fe-72a1-4d86-8bca-88bdb5f55359", "655036bf-0c44-4f76-9d7a-a7cdbc02d5b0", "96201726-30b0-4f15-b4d1-b1e0b8209327", "413b8cd3-c8d9-4164-ab7b-4de526e6a663"], + 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 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=3403, + point_expires_at="2024-04-20T09:16:55.000000Z", + status="enabled", + description="brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wp", + event="topup", + priority=2466, + ends_at="2021-10-02T15:46:29.000000Z", + starts_at="2020-02-16T09:57:03.000000Z", + name="3" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_14(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["a749f2cf-3968-4aa3-aa90-ffdf992a4d27", "80c48b63-4982-4a62-8928-ff461e2e74ba", "ebecbdf9-8c21-4f05-9db0-1d0c17f5db3f", "346c22b0-d1e2-44c8-a62d-90d07b3a0274", "f9bcca41-5fc4-48f2-a1fd-a048dd725abb"], + 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", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_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=7939, + point_expires_at="2025-07-22T17:48:39.000000Z", + status="enabled", + description="VQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG", + event="topup", + priority=4281, + ends_at="2022-12-21T17:30:45.000000Z", + starts_at="2024-08-19T23:50:12.000000Z", + name="cH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_15(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["c565441d-3c86-4f2c-ad34-2964740fd031", "158e6920-4144-48d5-b13a-5c4383e5970a", "7156ed21-0d18-4109-95c4-436d830a6057", "87b96209-4ef1-43cd-a788-058384a4756d", "b7e71dcd-091b-4420-8c39-cfc95cddfed9"], + applicable_days_of_week=[2, 1, 0, 4, 1, 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 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_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=False, + point_expires_in_days=453, + point_expires_at="2022-11-09T00:50:59.000000Z", + status="disabled", + description="O01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEnc", + event="payment", + priority=2424, + ends_at="2020-10-31T02:24:29.000000Z", + starts_at="2026-04-10T08:12:26.000000Z", + name="hrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMo" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_16(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["7d8be9e4-fd6c-4775-8b88-a02f6899f63f", "f4292915-09f6-42cc-84f7-6c30ae3438f2", "c0b6fd1b-890f-4a82-a9c9-46158364b8cf", "37dcdce1-7c25-4dec-9568-f4dd06c8d8d3"], + 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, 3, 2, 0, 4, 6, 5, 3, 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 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=8800, + point_expires_at="2025-08-01T14:06:40.000000Z", + status="disabled", + description="QaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6", + event="external-transaction", + priority=2518, + ends_at="2024-08-11T12:07:17.000000Z", + starts_at="2022-12-09T14:07:48.000000Z", + name="m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUd" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_17(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["c6d0d973-139b-46cc-8b0c-5462a63d439f", "756426bc-294b-4da8-8e7c-82fe5055221a", "859b443e-9ce0-46db-85cc-d663496e72e1", "b37f62d6-74c0-4436-ae12-99488f9e2f8d", "94f9cbde-3f18-4f40-b189-123852afee29", "4ea75c5c-f95b-4a57-a35a-140fdb2eee83", "3cb9e006-e5e9-4064-abf6-cdbbb02c095a"], + minimum_number_of_products=5547, + 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=[5, 5, 1, 5, 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_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=7791, + point_expires_at="2023-04-23T15:17:01.000000Z", + status="disabled", + description="zCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GH", + event="payment", + priority=7721, + ends_at="2023-05-08T01:43:29.000000Z", + starts_at="2021-08-17T15:03:53.000000Z", + name="Vctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtX" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_18(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["8c77767e-b027-4d4c-8e49-64540647cd47"], + minimum_number_of_amount=2618, + minimum_number_of_products=7702, + 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=[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_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 + }, { + "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=2546, + point_expires_at="2024-05-06T11:11:52.000000Z", + status="disabled", + description="x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTH", + event="payment", + priority=3281, + ends_at="2020-02-03T08:08:11.000000Z", + starts_at="2021-07-19T23:53:06.000000Z", + name="QTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyj" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_19(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["a99f6b12-67fb-4ca1-a44b-c104de8ece5f", "29d79568-bfd7-451d-8e00-11067dcb6fa5", "ed210646-c87a-4b5c-b26f-c6c627b3ebca", "e583393f-c51e-42fd-a65e-1babbc817e67", "d6a46cb0-53fa-44c3-a55f-856930ed2c0b", "4aface85-43a1-4f68-9fae-870ce3209ab9", "51d6f1f1-ada6-4748-b53d-86b85208258c"], + minimum_number_for_combination_purchase=6831, + minimum_number_of_amount=4789, + minimum_number_of_products=1590, + 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=[0, 6, 6, 1, 1, 0, 1, 1, 0, 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_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 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=6148, + point_expires_at="2021-06-02T18:36:30.000000Z", + status="enabled", + description="jVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24", + event="external-transaction", + priority=5733, + ends_at="2025-03-26T21:38:15.000000Z", + starts_at="2020-08-28T01:35:33.000000Z", + name="QvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8Wbqqwj" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_20(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["d75d203f-9890-47e6-b7fd-b24effa23b50", "b04d4bad-fe56-4ee5-9942-cbef95a13120", "e19a2704-44b8-4eb8-a5a7-992ac0eb972e", "26959dbd-d0e7-41c6-b58a-175d6a9f98ec"], + exist_in_each_product_groups=False, + 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="2024-12-29T22:59:22.000000Z", + name="bbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuh" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_21(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["f82f835d-1578-4d4e-b687-74e87197dd78", "ba1ce9ea-7cd0-4be6-afe4-cda4ffef0fcc", "60796d7b-9211-4401-a6c3-c71432fcb315", "fe2a98bb-4a7c-4214-9ccd-f626dc71cb03"], + max_point_amount=8107, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=9610, + minimum_number_of_amount=497, + minimum_number_of_products=2983, + 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, 0, 6, 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_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 + }, { + "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=5205, + point_expires_at="2022-12-25T00:28:43.000000Z", + status="enabled", + description="9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElm", + event="payment", + priority=1729, + ends_at="2022-02-08T19:49:08.000000Z", + starts_at="2022-02-25T05:07:56.000000Z", + name="TaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_22(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["fb574e91-731f-4522-8f95-78c8c778183f", "3c4ac67a-60ce-4511-ad24-5bb8bb74ec20", "6f7bd277-0ce4-45cb-b673-a6424630efad", "f58bc30f-ca0f-44b9-8873-55f5d7dfef1e", "a4df3b1e-9243-446c-940c-5ce1e4442404", "3f6e044b-19f8-44b3-9ec1-43e6a7d482fa", "a17bf85b-f704-4f56-9161-1914ecaff5b9"], + max_total_point_amount=2432, + max_point_amount=3939, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=1061, + minimum_number_of_amount=9972, + minimum_number_of_products=767, + 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=[6], + 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 + }], + 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=8191, + point_expires_at="2021-02-25T23:08:37.000000Z", + status="enabled", + description="KMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32M", + event="topup", + priority=7566, + ends_at="2020-11-05T20:04:12.000000Z", + starts_at="2022-06-28T17:46:00.000000Z", + name="afz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICS" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_23(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["5078fbdc-d73f-45dc-8c2f-c9ca260f7964", "9d130bfc-7691-4413-adc5-65ff9a1aed56", "2fee701e-8694-415a-a16f-e64adc174b42"], + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=9602, + max_point_amount=9257, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=7957, + minimum_number_of_amount=435, + minimum_number_of_products=4843, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[5, 6, 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_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 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=4849, + point_expires_at="2023-06-09T04:27:47.000000Z", + status="enabled", + description="9TezTj3A085y5hWQ3gdeDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dA", + event="topup", + priority=9602, + ends_at="2023-09-27T17:27:45.000000Z", + starts_at="2023-03-30T03:01:03.000000Z", + name="0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_24(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["93474849-5c18-4977-86c0-4a5f78328d8f", "9da77e8a-b5fe-482d-a24d-a4d8dd56f115", "be9949c7-3ea1-4775-908b-18c35b7a0708", "f31c6472-e36d-4364-95a9-163b315dd0c4", "69c689db-e078-4906-9a2b-0add0de0a42d"], + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=7912, + max_point_amount=6284, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=8598, + minimum_number_of_amount=2726, + minimum_number_of_products=9894, + 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=[5, 5, 1, 6, 2, 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_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 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=3760, + point_expires_at="2022-04-01T21:35:33.000000Z", + status="disabled", + description="8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUq", + event="external-transaction", + priority=1721, + ends_at="2021-05-28T05:19:31.000000Z", + starts_at="2022-01-07T10:26:12.000000Z", + name="IhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCT" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_25(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + applicable_shop_ids=["c48f5809-ab37-479e-a327-17e39f636e5f", "03a3ed95-8049-44ed-bea6-856a89e6e52c", "08bea42a-2a67-470f-a35c-d07bd2a0adbc", "01cca2d0-3d08-4fed-8feb-1607d5b05141", "06b430c5-9315-455e-bd75-0e26391f7189", "ee1f006d-ff1d-4dd2-a765-c2b35a72d261", "249835a5-4d88-437d-aa6a-e0cd038318e7", "fc5052fd-de26-44b8-a0d6-0dae5f93db25"], + budget_caps_amount=1594570312, + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=1860, + max_point_amount=2225, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=8596, + minimum_number_of_amount=5965, + minimum_number_of_products=5245, + 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=[5, 2, 0, 1, 5, 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_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=9113, + point_expires_at="2023-08-17T17:06:58.000000Z", + status="disabled", + description="NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBf", + event="external-transaction", + priority=1074, + ends_at="2020-11-21T21:18:17.000000Z", + starts_at="2022-08-28T18:58:30.000000Z", + name="UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_26(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["f8bb7abe-f186-42c0-9c0f-e6d6e5890085", "bbc296da-0fa9-4b41-873c-0a2b939df102", "c02eb2e0-6574-42bf-9ac9-adc2a7c475c4", "ba501e50-92ef-4810-9c3f-343ebeb5067b", "f92105c8-2ace-48ec-b589-abee1860dd9e", "d38739b6-7bc0-4a2c-b449-c43e184c93a6"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_27(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["fe18c4b4-86b4-4f2a-8be0-e319926b4921", "8f0a17b0-b0f0-4f67-9277-e8be2f193efd", "7ac82071-f9e0-4e4b-a3f7-1f950fdab599", "efd622cc-81d2-4140-b005-608c533f832d", "a09eaf95-4ef9-4989-9d9f-3792fb9ecb66", "26abba68-391b-4876-93bd-de3bd6b8149e"], + name="p3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Nt" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_28(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["f30ee015-6ce5-48c0-b983-9c9b9b8b3149", "5e51bea1-bba7-4bf1-8fe9-d0d6aa0378da", "cae39235-8cae-4e5f-ad8d-b09e5e3dbf3f", "3bbdd135-5323-4fe5-93f9-df1035292cde"], + starts_at="2020-05-14T11:35:26.000000Z", + name="ekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3X" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_29(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["16bd433e-a3d4-48cf-adeb-394676876d23", "07651799-e8c4-4cc6-8458-a62a57c05588"], + ends_at="2023-03-07T02:41:32.000000Z", + starts_at="2025-08-26T17:03:39.000000Z", + name="JRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_30(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["50404823-639d-4381-9ef0-dd7f6d16d5ff", "039a3977-62cf-4e2b-ba00-e7eddfe9bf70", "6dc4b2cc-2979-4e0f-a4be-a8192a2388e6", "8a8300aa-19e3-4add-9e2a-3d40579e9692", "cc73b29e-d0bc-47ee-b652-f15f00647032", "9df67434-3c65-4813-a9eb-5e6e8941b70f"], + priority=9236, + ends_at="2024-07-22T04:09:08.000000Z", + starts_at="2022-03-02T09:17:51.000000Z", + name="SEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1C" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_31(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["3d5ae2d2-a147-4c09-b848-6bd4a05e59cf"], + event="external-transaction", + priority=1446, + ends_at="2021-04-05T19:00:47.000000Z", + starts_at="2020-04-06T16:44:06.000000Z", + name="vp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4OovF1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRl" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_32(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["ca02b9e5-64cf-4266-ae39-b82816d8c986"], + description="KOkq0RFzjJHwRArvOU", + event="topup", + priority=9069, + ends_at="2022-06-15T08:51:43.000000Z", + starts_at="2022-02-12T02:41:14.000000Z", + name="Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0kXmsTMdugDsmRtGnF7L4kFCWrbFqt27c2GHcIyayD2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFt" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_33(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["23a2589e-ad4f-4142-bd0f-eeae89a467dc", "0ba0a91c-274b-4960-818e-f2d05ac40269", "e294af76-5022-48e4-b569-861f158b204a", "08d852ce-5672-4f14-a40e-8471e65f6cdd", "7c780741-fff5-4d54-b806-4e790f9125c2", "f1a7a230-421f-457e-8614-1a9bc12a555f", "94094087-180a-4fac-8fbe-493ec1ebfe41", "106d4133-5a57-490a-a3fc-13d856753a8b", "eb331211-3300-4bb2-8585-fbe39a8e8455"], + status="enabled", + description="92jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsMYGbxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwe", + event="payment", + priority=3196, + ends_at="2022-12-22T09:12:17.000000Z", + starts_at="2024-08-09T21:41:59.000000Z", + name="u8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0XdBqvz2LZqSb1Cr9GvJk1u6JVnb04lQy4ktenk93ttYPJhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1t" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_34(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["78309214-43ff-4273-b30f-2d0f3490f2fa", "aa411245-4a3d-4bb3-b28a-861bb5dffb8e"], + point_expires_at="2020-12-18T00:46:35.000000Z", + status="enabled", + description="4Ceen1NSjytDUp3byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPSNst44xBM1tMMoOyW", + event="external-transaction", + priority=4207, + ends_at="2023-03-30T16:00:42.000000Z", + starts_at="2025-05-08T04:42:41.000000Z", + name="qWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR3LjzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_35(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["4c3bae55-865b-42c2-99e6-1937b98c65d8", "6db089a5-b47a-4896-9c8d-a13d86776b45", "d39dabbe-8a1d-477c-b0b3-50e3298e7ade", "75319c5e-747b-41fd-8611-c0dba3f160cd", "d28bbdcf-f0fd-4865-afef-c851f4940f49", "b61fcc74-3ee2-461f-8f94-be16ac2922bf", "a724f6ca-c91a-4e0c-81f0-b84e87c4cc91", "3b0bd29b-18c6-4e9b-8ee2-ac69b800007a", "efc3865a-e4f1-4b13-93c5-94dbd85b344b"], + point_expires_in_days=4365, + point_expires_at="2026-04-22T07:26:07.000000Z", + status="enabled", + description="vNBsiLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0af", + event="external-transaction", + priority=1848, + ends_at="2024-08-01T15:36:42.000000Z", + starts_at="2021-11-23T13:28:52.000000Z", + name="mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQw" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_36(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["18f9f52c-1491-4e32-b136-e890c26e0875"], + is_exclusive=True, + point_expires_in_days=5904, + point_expires_at="2023-07-09T02:02:53.000000Z", + status="disabled", + description="6WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS", + event="external-transaction", + priority=1005, + ends_at="2025-04-25T22:13:21.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( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + 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="2026-04-28T11:39:00.000000Z", + status="disabled", + description="p7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GF", + event="external-transaction", + priority=7617, + ends_at="2021-03-02T01:36:44.000000Z", + starts_at="2023-04-16T16:18:34.000000Z", + name="N2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN6p0E72qWtOk3QUVbESEWPtcFyu37VMAkI2ylOPtFPfUfw5cNQlmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFrJK4NHPvl4VhqOdqyKHcIOPhbvogj2mEA" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_38(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["5f92119b-4121-4daa-9f54-aab9e88dc66b", "4b1d0718-5451-4689-a5a4-a86b0ec58c81", "8669159c-1e94-413c-832e-a18852f38f27", "caa5ecf8-5798-41dd-9838-80b00c0f6eaf", "540f3c3b-3041-412e-92ef-9c66edcf5fe4", "7487faf0-55a7-48fc-89f3-1f18df3c286f", "b3258369-83d8-4d9f-9665-c2c2a720a2f8", "1df83b1a-4a46-41f5-87c6-6003167f7bb7"], + 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=920, + point_expires_at="2024-05-31T12:26:35.000000Z", + status="disabled", + description="cbHgR3", + event="external-transaction", + priority=1952, + ends_at="2026-02-14T05:38:44.000000Z", + starts_at="2022-07-17T12:43:05.000000Z", + name="gsuZbSsGmFYxkuLr" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_39(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["8c1ed551-1f4d-4d26-8307-76e8d9c6812d", "91032fe9-46f7-4bf7-b315-8352ffcd6685", "98ef6d0f-da84-4c92-aa59-0e43319506c9", "0fc9e025-d786-4d8d-a2c3-b8b935fd5070", "ac88b940-7a85-4e04-aa82-435bb73a488c", "bb884166-feb8-45d7-800a-a72301a64e28", "380ad011-967a-4ce7-adb4-84dfc10182e3", "32f32d68-aa01-4224-9311-626f51ab0d69", "72ca8787-3297-4772-b980-60b62e9209c0"], + 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 + }, { + "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=6069, + point_expires_at="2023-08-13T20:47:24.000000Z", + status="enabled", + description="wBbHbRE9tWUhNPatHCN", + event="payment", + priority=3999, + ends_at="2023-04-19T18:37:39.000000Z", + starts_at="2023-02-03T08:11:04.000000Z", + name="tx4oloda" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_40(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["a46f7eb7-ddeb-4db1-b276-0f83fa19c04d"], + 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 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=5741, + point_expires_at="2020-03-15T09:52:34.000000Z", + status="enabled", + description="KSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGSkB9sMClBaFjZtZBNIprWMfHv0Adc0Cr3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkL", + event="external-transaction", + priority=24, + ends_at="2021-08-13T14:06:58.000000Z", + starts_at="2025-09-21T22:33:50.000000Z", + name="hPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCi" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_41(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["860b6a7b-f2e0-48b5-9787-5be237e1d8f1", "983fc45e-b0ae-4249-b351-fa2562bd8a3f", "e25b4890-467e-45d9-b660-c6e42cbb4a1a", "e2b0b46d-7828-4f26-809d-484887b0e263", "10b7a7c5-ccbd-4433-a699-8e2cc0f13d6b", "02d08be7-6b90-401f-b688-017ec309315d", "52f088af-c911-4237-a04d-8b7046e15bb0", "322c40aa-32bc-4443-ba89-067b5ec0d66a", "0890e0cf-4988-4f7a-9be6-1c7b9381ed19", "7b740727-9e91-4774-8ef5-adc5b69852d4"], + applicable_days_of_week=[2, 1, 6, 0, 0, 3, 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_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 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=750, + point_expires_at="2020-10-01T06:43:56.000000Z", + status="enabled", + description="fKJhNI2H30SlKK1O1UKOiryeoJ2KHqioForPYYFDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVupSap8p4f5efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3G", + event="external-transaction", + priority=3089, + ends_at="2021-11-07T11:48:01.000000Z", + starts_at="2021-11-18T23:53:18.000000Z", + name="vnIS00nrMnQNFRYYqQB2LOvvxaJWdM6RyNE08AoCyr23XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0zvPKHwlN5cgpKhTDjrt62aO0gTJKvsFX8pCgUNdYXQChONhwWGHDaQRstzyfCMC6r4ZI5zg9bDUlUJBBIg9Fd6Y7e4aTjbZiLOaWRsEnzqZ6lGrz0tQnP1Co4x4AXMvzQhY1JlrHqbdULcyqcFghqKIiyi3aAuG" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_42(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["824c6cd7-5bf3-4c4e-9715-0a261067a40e", "af427112-aae4-489e-a8f9-aa7d762f631f", "ad9e2a57-d087-4f20-804a-542dc1eb43a3", "6e436d90-a5f9-4b71-b294-0502c80c5d03", "b973f47d-64d0-4599-814b-27ed7f2de36d", "233626da-4e47-45da-8a4e-f243bc05860a", "621bb187-67b4-4c6a-baab-39329f767161", "fcd53418-e15b-4c07-bc9c-e315f8e69cdc", "08cc25f7-c248-4fd8-adec-c1db4150862b"], + 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=[0, 2, 1, 1, 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_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=9743, + point_expires_at="2023-03-26T05:18:03.000000Z", + status="disabled", + description="AxfU8HIO6LO5Dd5XiFWL9oU011XoGoCpelXPpOt9Y3msxtcs0WRQEq2AUltkkF5RV8aSNO9GQnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328xFuBm", + event="payment", + priority=4484, + ends_at="2025-05-28T23:38:07.000000Z", + starts_at="2023-04-29T19:29:53.000000Z", + name="H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6wIXIQbTWkewXW1RgDvxeuhtqc0lVuVevBpKZFsUJPsCckORoCtdXbeAqJmttYcSXDoCgwypQnQUsnW" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_43(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["2a5b84cf-38bc-42cb-81cd-f16093aa0fda", "b757bb33-b3ae-4072-8a38-d707b66e8be1", "9a2ae052-21dc-4bdd-8e47-9df711e8155e", "9afea618-e3fa-4416-b656-de447260221e", "f9ce47f1-c032-40a9-abcc-13d67998c9b7"], + minimum_number_of_products=4911, + 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=[2, 0, 6, 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_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 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=2019, + point_expires_at="2025-06-15T21:06:19.000000Z", + status="enabled", + description="QeMGWU46l1ev23Q5PTPgtt4yAIzCwP1Z0JVfF9RSrf0Q1pmhWHNJvae7Ej", + event="payment", + priority=8350, + ends_at="2025-01-07T06:04:56.000000Z", + starts_at="2020-05-19T06:33:32.000000Z", + name="kQNn9" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_44(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["af79e9a2-e1d7-4bec-8b86-43b9815f0813", "43e51fca-cb2d-4775-a201-ca1e50f8375e", "a0720e6e-941e-4cd0-a521-9d00c4cddfe0", "166eab79-1e66-4d74-91dc-03f7d49df2ab", "c7746267-447c-4a39-9d73-3adaa86da636", "6edf08c5-96cf-4458-ad8e-2c1adec2017a"], + minimum_number_of_amount=9135, + minimum_number_of_products=2548, + 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, 5, 4, 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, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_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=199, + point_expires_at="2021-11-20T08:12:05.000000Z", + status="enabled", + description="3UtKdNP5TLVhbhll0GP4QAkQeOPrTAo5HhYx5jCaGbLEuJCfBO4W1IV2UViZVHRWPkdj3cWX27LHxVCRXJ7RR9vhNIu31vkGd5KFMjSHWQRA9E535lViSyzzCHjVEE", + event="topup", + priority=5511, + ends_at="2023-09-09T01:43:22.000000Z", + starts_at="2021-02-08T11:14:04.000000Z", + name="SpYDFFDY1quxNkSS1vmCLOUldc17zrM7imjJVYnMFmZVKb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_45(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["fee846db-36af-407f-91a0-6f73485d9beb", "9ddec24a-a11d-4c34-93ca-40bc6fd2619e"], + minimum_number_for_combination_purchase=3203, + minimum_number_of_amount=9818, + minimum_number_of_products=7739, + 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=[5], + 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 + }], + 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=9422, + point_expires_at="2021-01-31T17:18:34.000000Z", + status="disabled", + description="sH9rlpcWw1Vg5A3jIY5TVDn7VAyGhf1a2i4Xb006Y5FN9bW9vksFBm8sMwbh1WFtpEmCrFqNwdLZ15QmFMvlNaa2goLZ5E9OEvOUIiBwbJ5GuqfgOe9nVnbOf1mc", + event="payment", + priority=8664, + ends_at="2020-03-15T08:22:58.000000Z", + starts_at="2023-05-20T13:29:31.000000Z", + name="MKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8UioFkI4pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L6y5R" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_46(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["bb61ae9a-410d-4087-ab1f-ec1511a118a3", "57f8584e-76c8-4027-92cd-6a5c8466b858", "12c2b418-c02e-4dd1-83d4-3a7a8bc23f1d", "81a059d7-0d0c-48b1-963d-c4a5faf343e9", "961b84c2-970f-4969-9ed5-9cfd93dc2020"], + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=281, + minimum_number_of_amount=4893, + minimum_number_of_products=4777, + 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=[2, 6, 2, 0, 0, 5, 1, 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_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 + }, { + "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=96, + point_expires_at="2023-03-27T23:22:36.000000Z", + status="enabled", + description="WvNvuZ2zOymd6UzJ163lry8C4rDtJNzcEFdrvo427ISByum8M", + event="payment", + priority=4041, + ends_at="2024-10-14T21:26:10.000000Z", + starts_at="2021-08-02T22:23:28.000000Z", + name="ugVBfTif3qpXYgZnZ3LJOu3iwipHdsS3ShjnA4Sr1gSN2PelpywqnkqJGFUWWcs7OK2a7LaTGiSi2nVCa3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsFLw1OF89AbrhaWMPvJ4w9BbWGLWxTOnqHU20ukx1FDQpVqtvlq3pwtYNpqFJFhJ6HuYWnqyIUhAD4rpz6whWSFAXMqy8Udu" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_47(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["09b5e603-6913-4d18-a3e4-105182534d96", "81a09d8b-822e-4bb5-8918-fbde16904406"], + max_point_amount=6111, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=6318, + minimum_number_of_amount=9265, + minimum_number_of_products=5461, + 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=[0, 3, 1, 4, 5, 1, 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 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_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=9628, + point_expires_at="2024-08-28T06:43:02.000000Z", + status="enabled", + description="206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3muyUE26kL", + event="external-transaction", + priority=329, + ends_at="2025-12-24T10:15:59.000000Z", + starts_at="2021-02-26T19:54:31.000000Z", + name="LEQafbBqwyhczkUDSv0LkIzc" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_48(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["b49db35a-e518-48e2-9e11-fbee883d7190", "ca9f3743-0ded-4db3-8439-298476634c9c", "e9722436-7cad-46fb-a696-f55e2bd0816b", "1f9fe373-39bf-4ff3-b4d7-c1774900a75d", "604fc77d-0245-43cd-8f76-9e867b2a9dbc", "9ec2799e-fc25-4e49-bdfb-e649cf8edeb6", "d7870df8-a0aa-4d75-ab3d-0bd222a1a1ef"], + max_total_point_amount=1697, + max_point_amount=6851, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=2231, + minimum_number_of_amount=3530, + minimum_number_of_products=537, + 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, 3, 2, 0, 5, 4, 2, 6, 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 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_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=8582, + point_expires_at="2022-03-25T02:47:23.000000Z", + status="disabled", + description="fbhpjo6CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP", + event="external-transaction", + priority=8895, + ends_at="2022-08-14T00:49:47.000000Z", + starts_at="2025-05-06T02:15:36.000000Z", + name="UhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEEKedrMwdHukpCicHBj64f1DT6D6Mien3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4S8a9Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouPF8sE" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_49(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["3906b764-970e-4fa9-bf9b-3bb375accc6c", "fc7e3d8b-ca42-4af4-8e82-96eca1103530", "db6f4d4a-112f-43c2-8932-2c2aec0efa81", "5cdaa402-498f-45af-ad64-bb143ef8523b", "b0bf6cc0-f998-40cb-b8a9-6b0af563492e", "1d7844d6-0f1d-4bf2-acbf-55589bdb214c", "af83f7c5-bd6f-4aee-8310-0b182d5eae8d", "bf5f0440-bd31-42cb-b3a8-7094aa2a12ef", "d0122710-41ba-4e1d-8500-cdd2b46c1f3b", "02bcc509-19a4-4624-9445-5e8d72884f3e"], + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=4628, + max_point_amount=3551, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=2995, + minimum_number_of_amount=3461, + minimum_number_of_products=6611, + 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=[1, 3, 0, 3, 6, 5, 2, 6, 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_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=False, + point_expires_in_days=8279, + point_expires_at="2025-08-18T18:14:29.000000Z", + status="enabled", + description="dOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi", + event="external-transaction", + priority=8835, + ends_at="2024-03-09T14:06:01.000000Z", + starts_at="2024-08-14T23:28:24.000000Z", + name="WH287FkS1" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_50(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["cf26bee4-b96f-4593-9a0f-44a506b0abed", "8930e4ff-4472-4ae0-bb8a-47a5ddd48e8f"], + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=4621, + max_point_amount=5106, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=2775, + minimum_number_of_amount=428, + minimum_number_of_products=8018, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[6, 0, 0, 1, 1, 0, 4, 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_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 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_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=6763, + point_expires_at="2023-04-29T21:10:43.000000Z", + status="disabled", + description="AsfsowmrnytFnDNPErJC0T6j8TSBN1GRIxfJ3UGUUM2jHDzbRjTfUU5d5AtOipE6L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnB", + event="topup", + priority=8588, + ends_at="2023-03-20T10:30:55.000000Z", + starts_at="2021-04-16T21:27:26.000000Z", + name="fV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNRasJ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_51(self): + response = client.send(pp.UpdateCampaign( + "8e524a0d-1db3-4f6f-8f98-7266bcb3390c", + blacklisted_shop_ids=["10d813f1-008b-4592-bc97-22c1cf173fe5", "1c211b61-5b46-4b68-b03c-9f2c2567c70e"], + budget_caps_amount=228260846, + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=6993, + max_point_amount=7561, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=4765, + minimum_number_of_amount=650, + minimum_number_of_products=3320, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[2, 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 + }], + 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=False, + point_expires_in_days=2249, + point_expires_at="2021-02-22T00:30:05.000000Z", + status="disabled", + description="rzFx85stT5X2fdTsebRuLVbzPU8r1TG2yJEOhnrWkQVh8G8vXFKeuF0FhTncNlMmgEuaHAHntz60OEH7JgjiAw3cGaLL5KHpinnRK5y0OzJ9Hvf2cVYRMoN8ciCbZWnzcDnK4LA4gWzsFxrEWGQmIqwq80GWYOCdqp3aMw45RftnlC", + event="external-transaction", + priority=4184, + ends_at="2020-07-12T10:43:25.000000Z", + starts_at="2020-02-15T07:23:57.000000Z", + name="nZ0CKAQudtFEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00" + )) + self.assertNotEqual(response.status_code, 400) + + def test_request_user_stats_0(self): + response = client.send(pp.RequestUserStats( + "2024-11-11T16:42:52.000000Z", + "2025-10-07T02:45:42.000000Z" + )) + self.assertNotEqual(response.status_code, 400) + + def test_terminate_user_stats_0(self): + response = client.send(pp.TerminateUserStats( + "97717c12-ee37-4351-ad70-bacfe88fb856" + )) + 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=1661 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_webhooks_2(self): + response = client.send(pp.ListWebhooks( + page=2626, + per_page=1188 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_webhook_0(self): + response = client.send(pp.CreateWebhook( + "process_user_stats_operation", + "MePtYYSm" + )) + self.assertNotEqual(response.status_code, 400) + + def test_delete_webhook_0(self): + response = client.send(pp.DeleteWebhook( + "5eaf13fd-4004-4a33-8fcc-1f33d805513d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_webhook_0(self): + response = client.send(pp.UpdateWebhook( + "ec4dfad7-4c42-4680-8e13-fc8af920f0be" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_webhook_1(self): + response = client.send(pp.UpdateWebhook( + "ec4dfad7-4c42-4680-8e13-fc8af920f0be", + task="bulk_shops" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_webhook_2(self): + response = client.send(pp.UpdateWebhook( + "ec4dfad7-4c42-4680-8e13-fc8af920f0be", + is_active=True, + task="process_user_stats_operation" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_webhook_3(self): + response = client.send(pp.UpdateWebhook( + "ec4dfad7-4c42-4680-8e13-fc8af920f0be", + url="YIGLXh", + 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( + "8922d2b0-5f44-4ffc-b6cd-50cc2c45aef8" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_user_device_1(self): + response = client.send(pp.CreateUserDevice( + "8922d2b0-5f44-4ffc-b6cd-50cc2c45aef8", + 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( + "ae833c91-0df6-4cf5-846a-00828f1eb184" + )) + self.assertNotEqual(response.status_code, 400) + + def test_activate_user_device_0(self): + response = client.send(pp.ActivateUserDevice( + "d11fb09a-bb4a-4ffb-9ee6-affb5ec166ca" + )) + self.assertNotEqual(response.status_code, 400) + + def test_delete_bank_0(self): + response = client.send(pp.DeleteBank( + "72ea8af8-f9e5-45e5-842b-bf3aea3525f3", + "87768f3f-1e18-444b-9a6b-667729ff17e2" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_banks_0(self): + response = client.send(pp.ListBanks( + "bd0c50c5-ad8d-4ac8-b8eb-66ce434663fb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_banks_1(self): + response = client.send(pp.ListBanks( + "bd0c50c5-ad8d-4ac8-b8eb-66ce434663fb", + private_money_id="b18242e9-2067-4379-a3e3-74d23dcf9656" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_0(self): + response = client.send(pp.CreateBank( + "591ba175-3e58-4995-a115-7af867234b99", + "bf1bdd05-a6c8-4341-81a3-077c9f292f5d", + "ztkflrbX507aitxdTcYjjCJVatXW3s3mbWjjaocKJS9JHlwFlJcsltjjmodDQEUxDaghv7DnSC5Rfu0C0uKFwmpPkPjblE3KxRrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0Mu", + "Lswx" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_1(self): + response = client.send(pp.CreateBank( + "591ba175-3e58-4995-a115-7af867234b99", + "bf1bdd05-a6c8-4341-81a3-077c9f292f5d", + "ztkflrbX507aitxdTcYjjCJVatXW3s3mbWjjaocKJS9JHlwFlJcsltjjmodDQEUxDaghv7DnSC5Rfu0C0uKFwmpPkPjblE3KxRrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0Mu", + "Lswx", + birthdate="V9drg" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_2(self): + response = client.send(pp.CreateBank( + "591ba175-3e58-4995-a115-7af867234b99", + "bf1bdd05-a6c8-4341-81a3-077c9f292f5d", + "ztkflrbX507aitxdTcYjjCJVatXW3s3mbWjjaocKJS9JHlwFlJcsltjjmodDQEUxDaghv7DnSC5Rfu0C0uKFwmpPkPjblE3KxRrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0Mu", + "Lswx", + email="RKhLSvZ2KQ@ORxM.com", + birthdate="HroQo6j" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_topup_transaction_0(self): + response = client.send(pp.CreateBankTopupTransaction( + "f8057baa-96a0-46a5-8022-a2fb67cfc04d", + "30bef6db-eb83-47b6-b68c-da8003b4ffd7", + 7219, + "cd17db79-cbb8-4504-abcb-ecf27fa755ad", + "64033d16-30da-4a38-a5f8-26dffd1c47cd" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_topup_transaction_1(self): + response = client.send(pp.CreateBankTopupTransaction( + "f8057baa-96a0-46a5-8022-a2fb67cfc04d", + "30bef6db-eb83-47b6-b68c-da8003b4ffd7", + 7219, + "cd17db79-cbb8-4504-abcb-ecf27fa755ad", + "64033d16-30da-4a38-a5f8-26dffd1c47cd", + receiver_user_id="804cc96c-321b-47ce-9de1-886c07457af6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_0(self): + response = client.send(pp.ListCoupons( + "7a3c1e57-f261-47f3-8c96-2799054104ea" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_1(self): + response = client.send(pp.ListCoupons( + "7a3c1e57-f261-47f3-8c96-2799054104ea", + per_page=797 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_2(self): + response = client.send(pp.ListCoupons( + "7a3c1e57-f261-47f3-8c96-2799054104ea", + page=4481, + per_page=1671 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_3(self): + response = client.send(pp.ListCoupons( + "7a3c1e57-f261-47f3-8c96-2799054104ea", + available_to="2022-01-05T19:46:05.000000Z", + page=5669, + per_page=9436 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_4(self): + response = client.send(pp.ListCoupons( + "7a3c1e57-f261-47f3-8c96-2799054104ea", + available_from="2023-10-01T20:44:13.000000Z", + available_to="2023-09-08T01:04:56.000000Z", + page=5492, + per_page=6947 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_5(self): + response = client.send(pp.ListCoupons( + "7a3c1e57-f261-47f3-8c96-2799054104ea", + available_shop_name="14", + available_from="2023-05-19T09:12:03.000000Z", + available_to="2020-09-23T06:35:43.000000Z", + page=3708, + per_page=7084 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_6(self): + response = client.send(pp.ListCoupons( + "7a3c1e57-f261-47f3-8c96-2799054104ea", + issued_shop_name="J", + available_shop_name="7e4Q", + available_from="2025-07-29T20:42:33.000000Z", + available_to="2024-04-24T17:44:47.000000Z", + page=1992, + per_page=8644 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_7(self): + response = client.send(pp.ListCoupons( + "7a3c1e57-f261-47f3-8c96-2799054104ea", + coupon_name="yL2v9u", + issued_shop_name="3mWzZw", + available_shop_name="xz", + available_from="2023-08-07T00:22:19.000000Z", + available_to="2026-01-21T11:54:29.000000Z", + page=9488, + per_page=316 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_8(self): + response = client.send(pp.ListCoupons( + "7a3c1e57-f261-47f3-8c96-2799054104ea", + coupon_id="rUlm", + coupon_name="KRdRX", + issued_shop_name="ieY6Am", + available_shop_name="38W", + available_from="2025-03-09T14:27:15.000000Z", + available_to="2026-04-27T03:40:25.000000Z", + page=1050, + per_page=4016 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_0(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=5742 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_1(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=2282, + num_recipients_cap=5417 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_2(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=2025, + storage_id="f9b1e139-004a-4bd3-af68-13c85ad1fc4d", + num_recipients_cap=7608 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_3(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=6884, + min_amount=5104, + storage_id="83ec7c09-d7c8-4a62-95e8-c9852ac98d29", + num_recipients_cap=4103 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_4(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=9325, + usage_limit=7034, + min_amount=7021, + storage_id="4b1be79b-6f97-4d97-84ad-e813eaa18fbd", + num_recipients_cap=1727 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_5(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=1543, + code="suxdQFF", + usage_limit=1411, + min_amount=6754, + storage_id="a4914f90-a202-447c-8a5b-2cbb35a3b02e", + num_recipients_cap=4807 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_6(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=4263, + is_public=True, + code="SxNRhY3", + usage_limit=4500, + min_amount=9027, + storage_id="70a77f65-967c-4995-a8c7-d227041db507", + num_recipients_cap=3769 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_7(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=1843, + is_hidden=True, + is_public=False, + code="ff0GWufJQM", + usage_limit=1077, + min_amount=2133, + storage_id="87d3d771-3e92-481c-94c7-d1b47f1bfcb0", + num_recipients_cap=7848 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_8(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=1748, + is_disabled=True, + is_hidden=False, + is_public=True, + code="H1YOyXeD", + usage_limit=7223, + min_amount=7660, + storage_id="799e7e3d-cebe-46f0-b309-8be83b3a187f", + num_recipients_cap=8855 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_9(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=772, + display_ends_at="2024-04-14T02:40:59.000000Z", + is_disabled=True, + is_hidden=True, + is_public=True, + code="7i", + usage_limit=6100, + min_amount=3482, + storage_id="427b4255-fbe4-4ff4-992b-7a584b082b4d", + num_recipients_cap=5147 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_10(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=9948, + display_starts_at="2020-03-18T23:32:44.000000Z", + display_ends_at="2021-03-15T09:55:03.000000Z", + is_disabled=False, + is_hidden=True, + is_public=True, + code="YN7", + usage_limit=1358, + min_amount=274, + storage_id="f92b9e11-6ee3-4a16-a890-02a355278b15", + num_recipients_cap=6340 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_11(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=1092, + discount_upper_limit=2558, + display_starts_at="2023-07-15T16:12:08.000000Z", + display_ends_at="2023-09-12T08:49:04.000000Z", + is_disabled=False, + is_hidden=False, + is_public=True, + code="1", + usage_limit=912, + min_amount=4541, + storage_id="834bb5bc-6904-4b9c-9be9-277b791b28a6", + num_recipients_cap=8123 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_12(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=5046, + description="dE59eFWe4P", + discount_upper_limit=5139, + display_starts_at="2022-05-26T14:47:41.000000Z", + display_ends_at="2026-04-15T15:11:55.000000Z", + is_disabled=True, + is_hidden=True, + is_public=False, + code="6PRO", + usage_limit=3069, + min_amount=2074, + storage_id="88af51af-8162-4fbf-913a-5fa762805178", + num_recipients_cap=8574 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_13(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=1, + is_shop_specified=False, + available_shop_ids=["01dba697-4c66-4f34-9577-9b28487779b8", "fe01ccc5-19ec-4f2b-8934-a7486fb6a085", "e2b949c0-8c04-4dc7-a7e6-ca49cfc8565b", "4554bd6e-0555-465c-b5da-3a16931f3f9c"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_14(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=2261, + is_shop_specified=True, + available_shop_ids=["e016e1af-92e3-42a8-bf64-5ad89638e5ab", "812c334a-804b-4a6c-ac7c-8d01224ea208"], + num_recipients_cap=1501 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_15(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=4719, + is_shop_specified=True, + available_shop_ids=["66536d75-99f6-40b9-be54-3cc16189f804", "30ffd75b-4497-4b32-9858-3713adf283ad", "c561af48-0dfc-4552-aaa7-ef1de7444e58"], + storage_id="a4f42428-f22c-44ef-a340-5d4ce7579030", + num_recipients_cap=4147 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_16(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=6597, + is_shop_specified=True, + available_shop_ids=["dd077b9b-417c-420e-aa25-36271f3e010f"], + min_amount=2417, + storage_id="4afb6480-c02c-4a34-99e4-62ebecead7ca", + num_recipients_cap=6721 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_17(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=9287, + is_shop_specified=False, + available_shop_ids=["370afdc6-4260-426d-a5dc-aa9e34c65898", "71daca4b-fa8f-41d4-85c9-f85b724e2a41", "18410389-5bb1-424d-9ea7-f9c1127c1766", "5b99c8ad-41b2-4b16-8867-f8e5529fa38c", "54f88c81-1663-4749-ab87-736c477bd537", "71ca3f2b-e2b4-4746-b9d2-c09d39e96e10", "678c1e53-4154-44a0-839e-4115438bcfb7", "992d981c-8253-4563-afae-38e6a51090a0"], + usage_limit=3297, + min_amount=7913, + storage_id="1d3cde0a-8412-42d8-8930-9f61ea093670", + num_recipients_cap=2396 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_18(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=2024, + is_shop_specified=False, + available_shop_ids=["20710018-11ee-4ba5-babb-b9d1122fc114", "8f88cf70-20ed-4109-a145-d9c8ef53ffb4", "887dc31b-2536-4e9c-84ca-6f9507078cdd", "172e3470-d678-47cd-a61f-f50bda8eae16", "9bcb66f7-3742-4a3f-959b-775726469cc2", "b15d76b6-37b6-487e-8ede-8788e06ce5f4", "389ad72b-c8f7-4f55-bf04-4a58db7cb161", "04cd617a-0f70-48db-816a-d601ae98ec95"], + code="xE", + usage_limit=8357, + min_amount=6406, + storage_id="301c8d52-3845-4784-aafe-7e8bfb009dbb", + num_recipients_cap=6130 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_19(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=1583, + is_shop_specified=False, + available_shop_ids=["b71d8280-679e-4ca0-a7df-7da0b7ac8171", "5fb260ca-1c3b-4f92-abdb-d0c5febeff64", "ab2565e6-e382-486b-9ebf-2ed9faa51aa1", "99b05f8d-7cad-4720-a396-831a1eb855a7", "3f89c576-ba7c-45bc-9569-89a092e4d94d", "92631867-2286-4ba6-be42-f9708687f65a", "0a47aadc-41c1-45d9-82aa-1562dda1aae3", "38d4fc76-35d2-4a11-9b5a-4c7a3aabbd89", "17eabea4-4b61-4915-8933-dc8f3b417fb7", "87efc471-72eb-488c-b5bb-31a970bd77d1"], + is_public=False, + code="l", + usage_limit=7820, + min_amount=9884, + storage_id="2f3d65c7-cafa-4329-b37f-dffee3a73736", + num_recipients_cap=5199 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_20(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=7064, + is_shop_specified=True, + available_shop_ids=["4d2d07d7-4e12-475a-9cd8-311c2322ef11", "9a09cc0d-7eac-46a6-93c5-fabf8457abdd", "3e5ec730-3c49-42f2-8b64-5108d1d0efde", "8b091770-a5de-4cfa-b0c6-842cbf92a958"], + is_hidden=True, + is_public=False, + code="twLws", + usage_limit=2344, + min_amount=9910, + storage_id="e5bf217c-1650-4ea1-a86c-af76db763418", + num_recipients_cap=8720 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_21(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=3403, + is_shop_specified=False, + available_shop_ids=["b3078853-95ae-4024-b719-cdbd51222e8a", "8bbe65fa-f69a-47eb-b612-20db47ea6a95", "17378328-8ca6-4f05-8048-026f75de3bfb", "24e2cf69-38b0-42ef-ae21-1411d64899e5", "774a88c1-d4d4-4628-9ab0-594e5503cd2f", "7e739f7d-bb0e-401e-bb57-e445fc20578a", "b179747b-f077-49c2-9345-dd545fccfba4"], + is_disabled=True, + is_hidden=False, + is_public=False, + code="nBy6crZ", + usage_limit=8686, + min_amount=2563, + storage_id="5282d079-82a2-4d74-acce-1767847cad39", + num_recipients_cap=1310 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_22(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=1625, + is_shop_specified=True, + available_shop_ids=["f4f1412d-a77e-427b-a04d-67e0c72078f2", "318362bb-df00-4b14-b7e1-61c73cf9541a", "c98a6a0e-aba5-4ca8-86a0-95f12020a2ae", "b4c3fc99-4a58-4733-9df7-1f65dc7586dc", "dd33e6e0-e367-43df-8c2e-e0532e3f674b"], + display_ends_at="2023-06-10T05:30:54.000000Z", + is_disabled=True, + is_hidden=False, + is_public=True, + code="pqS", + usage_limit=9635, + min_amount=8323, + storage_id="4e0cf7fd-b6f7-4ee0-904c-b4573fddabd4", + num_recipients_cap=2722 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_23(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=688, + is_shop_specified=True, + available_shop_ids=["9d72ae05-00c2-4fb0-b89e-f9c0c991409c", "716f7ba6-deb8-43bd-a3c6-d304d7ccb210", "79e9fe0f-c646-46e0-a5e6-9cce75e87315", "64860d5a-7101-4406-ba1b-7c6e98e77072", "d6d7a092-9663-40cc-bd39-9da8f93e8a03", "c017da2e-b0be-48c1-9063-1913d44edba1", "d0017415-eaa4-4dbf-84a4-35811ce3ec8e", "8d552868-dd23-4594-868f-f6d68af52bd8"], + display_starts_at="2025-04-05T19:59:25.000000Z", + display_ends_at="2025-07-26T05:31:41.000000Z", + is_disabled=False, + is_hidden=False, + is_public=False, + code="JBKStcO3wB", + usage_limit=6526, + min_amount=220, + storage_id="100d21b3-87b0-475c-b497-d04aa13a7299", + num_recipients_cap=238 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_24(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=7835, + is_shop_specified=False, + available_shop_ids=["88900b68-9c26-4ee7-8ab0-14f2ce783b11", "3d5ade4e-2ce9-4f3e-904f-af063f3a60b7", "89ee3901-a041-4fad-ae26-d1a0e8dfe50a", "17715863-04df-4171-b3e2-8eb1999d5bbb", "3bc41758-c80e-4d2e-b8dc-3c2ede37751c", "93fc686f-5a1b-4d00-8e51-4dada6810e85"], + discount_upper_limit=7564, + display_starts_at="2023-04-30T04:15:38.000000Z", + display_ends_at="2021-08-12T16:17:09.000000Z", + is_disabled=False, + is_hidden=False, + is_public=True, + code="f9SU4WjL", + usage_limit=1597, + min_amount=6816, + storage_id="57cf5bbc-2056-4b28-8054-1e3ac9ee907f", + num_recipients_cap=4097 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_25(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_amount=2714, + is_shop_specified=True, + available_shop_ids=["7416c51e-7747-45c5-8446-1b276606c6ec", "3ad21380-1da9-4b9e-affa-bb30053c9b3e", "f4d1431c-277d-46b9-914b-6416a42ea035"], + description="FuC5JXRVayFf6oyQZu56A1wWzKTTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6cvEGDQNsufa", + discount_upper_limit=3356, + display_starts_at="2026-03-28T02:20:03.000000Z", + display_ends_at="2025-11-22T12:20:13.000000Z", + is_disabled=True, + is_hidden=True, + is_public=False, + code="x2VVAwQqeQ", + usage_limit=7263, + min_amount=7765, + storage_id="2c64f408-1182-4501-828a-3fce49265ed1", + num_recipients_cap=2756 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_26(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=9214.0 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_27(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=6915.0, + num_recipients_cap=3807 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_28(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=4532.0, + storage_id="aeb8e607-a40d-4f35-b91d-dba0b1ea3c79", + num_recipients_cap=94 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_29(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=5201.0, + min_amount=980, + storage_id="29a008c0-fa88-4cec-ae39-58773114ffd4", + num_recipients_cap=9134 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_30(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=4567.0, + usage_limit=5820, + min_amount=6028, + storage_id="a07ef95c-505d-416d-926a-1a5a88467557", + num_recipients_cap=977 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_31(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=1260.0, + code="WstjkwC6ll", + usage_limit=167, + min_amount=4917, + storage_id="68a6d684-b73a-4466-aafa-e94399c10b48", + num_recipients_cap=3264 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_32(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=6000.0, + is_public=True, + code="04A", + usage_limit=3932, + min_amount=6486, + storage_id="2b49b39a-da45-49a7-aa15-b246ec88715c", + num_recipients_cap=3182 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_33(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=6120.0, + is_hidden=False, + is_public=False, + code="Du605XK", + usage_limit=9451, + min_amount=3395, + storage_id="f85dc9bb-a8e2-4404-9614-49ad915a1b73", + num_recipients_cap=4364 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_34(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=2382.0, + is_disabled=False, + is_hidden=False, + is_public=True, + code="qV", + usage_limit=2089, + min_amount=2773, + storage_id="a79ea89a-1c08-4cdd-84a9-f02d451ef179", + num_recipients_cap=8701 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_35(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=3272.0, + display_ends_at="2023-12-10T09:00:11.000000Z", + is_disabled=False, + is_hidden=True, + is_public=False, + code="VHz", + usage_limit=3332, + min_amount=7468, + storage_id="1e07e604-6b3d-4808-91c6-63a1fdfbc015", + num_recipients_cap=6220 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_36(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=3935.0, + display_starts_at="2020-02-13T07:54:50.000000Z", + display_ends_at="2020-05-07T06:49:03.000000Z", + is_disabled=False, + is_hidden=True, + is_public=False, + code="oZQYdD", + usage_limit=8697, + min_amount=7226, + storage_id="7fbd8791-57ba-4140-bed5-42eb8a97b441", + num_recipients_cap=9740 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_37(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=5894.0, + discount_upper_limit=44, + display_starts_at="2025-10-20T19:30:16.000000Z", + display_ends_at="2025-12-28T03:00:29.000000Z", + is_disabled=True, + is_hidden=True, + is_public=False, + code="TYcusA1RK", + usage_limit=5989, + min_amount=8881, + storage_id="7086e5ec-cfe4-4a69-b082-130b32eb9bc3", + num_recipients_cap=702 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_38(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=8869.0, + description="oQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8B2QPQ9Y2Rpsj0heI1pcWBx1T31cQtfbPCATbfETgM8KooCtS8z1fc4bmpdjKCTfj1GK9RSuRp80", + discount_upper_limit=71, + display_starts_at="2026-01-30T06:29:29.000000Z", + display_ends_at="2021-05-03T06:51:18.000000Z", + is_disabled=True, + is_hidden=True, + is_public=True, + code="z", + usage_limit=21, + min_amount=8099, + storage_id="e567f5d1-0e4a-4a1a-9a3f-50f51d369d09", + num_recipients_cap=7114 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_39(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=984.0, + is_shop_specified=True, + available_shop_ids=["dc9e9652-5ab7-458d-af62-cb5af812f496", "6a35e6c5-f96f-4847-8c91-baf6a5bcfff9", "4d20ffdb-4b72-4fd9-9253-d4dbe4e22ce5", "62a3e5d0-0e4c-471f-957b-bb8483522f18", "ebfc7aea-37c0-4957-8a9f-927d0713f71a", "a0f9336d-8253-4b2b-8797-d2b111af2ad6", "414458e0-24a8-4666-9916-2c6501697e34", "0be0fdaf-8bf2-4f46-b148-170534b6b40f"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_40(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=3058.0, + is_shop_specified=True, + available_shop_ids=["70f1ddf0-b975-4a8f-a835-308c255ef411", "dfb306fa-359a-4aeb-a5a6-f062b9015fc8", "509563c3-1af1-49c1-a8e2-057c215d093c", "d32a24be-5bf6-4ebd-8461-806aaccaa8b0", "2706462c-2138-4854-b600-8dc149375371", "80f34cfc-dda2-4ce6-9692-8a8bd020b219", "bd117222-b5d5-4e0b-b99e-b1d6844af104", "8cb758c3-6139-4007-93b6-06639e81f249"], + num_recipients_cap=8878 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_41(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=2322.0, + is_shop_specified=True, + available_shop_ids=["9b330abb-ee49-4465-8572-e3c9945d42fd"], + storage_id="1050083c-a5f4-44c9-bd4e-dbc0bf30bc57", + num_recipients_cap=4330 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_42(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=1569.0, + is_shop_specified=False, + available_shop_ids=["c0163a21-fd74-4104-86e4-13dececd203e", "524e26b5-12e6-4b14-b7c1-5e9f648dbb11", "87dbbb83-c13d-4e3f-b845-0b08133c0f22", "f130d86d-bd7b-4ffb-8cc1-5058c0c80dc3", "d21c7475-55a3-4ee1-842d-92eb0742a2b4", "cfa7424f-80e5-42cf-994d-3ce40e600727"], + min_amount=7990, + storage_id="1d7cb5b3-d686-4436-a658-dd86cbd269ec", + num_recipients_cap=7250 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_43(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=3949.0, + is_shop_specified=True, + available_shop_ids=["dbeac70b-ce39-487a-b285-e19909b191ba", "6c6c9192-e215-4d62-8bae-4dab0d10916e", "1d976a05-b956-445d-b346-e045d2d6b189", "d948143f-9ad6-447c-a1e0-814fd1db3c97", "c90c2040-e44d-4c4d-bc20-aacfa5c74e60", "c886cc2b-7dee-45ac-a3e7-3ddbcab898a0", "70a39782-f653-4567-a63b-0c70ed80d36e", "fb7e9cad-642c-44ed-83b2-22cb6c323a09", "d1eb8dbf-6175-4b58-b9d2-d367bc0e6c98"], + usage_limit=2267, + min_amount=9106, + storage_id="661a04c7-98ba-45e6-95e6-a910283af44e", + num_recipients_cap=4294 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_44(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=352.0, + is_shop_specified=False, + available_shop_ids=["143987bc-dbf2-4b09-bd44-097595f4ebbc", "164818b8-2cd4-4831-8a93-ec2b95eecbb2"], + code="ZjgzjmCRB6", + usage_limit=4930, + min_amount=8877, + storage_id="5b329ce2-1087-4ce4-9753-48de1b59debc", + num_recipients_cap=9911 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_45(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=6560.0, + is_shop_specified=True, + available_shop_ids=["728ee8a1-dc1d-4715-86c9-5df5715071ce", "98504bad-b62c-4895-a4fc-cb35514deb0a", "1c8c664f-1a8d-48c6-8ef2-89da2103688e", "15d3ec15-0658-47c5-9d52-a4adaed35b40"], + is_public=True, + code="72Qa", + usage_limit=3468, + min_amount=8306, + storage_id="87c9a0da-0ef0-4f7a-97a7-51d92c5a6f84", + num_recipients_cap=6064 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_46(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=2218.0, + is_shop_specified=True, + available_shop_ids=["58cb3006-a986-4463-9416-6fd406bfaa01", "9a3ecb44-3a78-488d-9580-1577e3fca495", "56178a69-71e4-40ae-af4b-140b6d6bd178", "c563db28-0f3e-4568-a7c8-19343644ebde"], + is_hidden=False, + is_public=True, + code="44", + usage_limit=7600, + min_amount=6566, + storage_id="a652b184-0203-4936-b8c0-b9e94dd0dde5", + num_recipients_cap=2860 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_47(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=793.0, + is_shop_specified=True, + available_shop_ids=["f1753180-4c03-48c0-adac-cdf4e9ea0d86", "fb14762d-898a-4d5d-8d21-c65c7ff66cc2", "04fd7392-f097-4997-9317-b2822e337102", "a6b15bb7-5638-4c99-9738-8fe9399d52a1", "fed9156c-b1dd-4860-9c7b-d7ac721e962d", "1924e5a8-8bb7-4ed5-859f-5b71ec9da953"], + is_disabled=True, + is_hidden=True, + is_public=False, + code="9xJxJq4hHb", + usage_limit=5711, + min_amount=856, + storage_id="798bd59e-b602-4b16-aad9-e460e8af52d6", + num_recipients_cap=1212 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_48(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=615.0, + is_shop_specified=True, + available_shop_ids=["b37db7ea-54cb-4edd-99fa-3c46d0ef4d68", "fe038c25-2101-4960-ad78-4ff53dd4aa26", "a37b8929-7a5b-46d9-80a1-7994d0b21fd6", "052e0d36-b634-4671-97e5-d800a4b55684", "f04914b5-fd90-432f-9d03-7c02d0e69813", "95bcb3ef-57b2-4f42-b2cf-aea01341c8ff", "f4aa5f20-5a6c-4e12-8cad-c625cdaa22d8"], + display_ends_at="2021-08-02T15:25:53.000000Z", + is_disabled=True, + is_hidden=True, + is_public=False, + code="k5kJbuw4", + usage_limit=9884, + min_amount=281, + storage_id="44865add-d23f-4a4a-a22e-2caf00c567a7", + num_recipients_cap=3322 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_49(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=2276.0, + is_shop_specified=True, + available_shop_ids=["98b9d43a-d68a-40f7-9a2e-08db5b99c3c0", "9f367774-5f2f-4dfe-b77c-05e51f208182", "31caace1-adeb-4c44-b967-56ab0f58a014", "bd52c624-0805-450c-9d30-211b720c8002", "d239da54-8846-4a21-bfa9-d5be33d32cf3"], + display_starts_at="2023-07-10T01:38:52.000000Z", + display_ends_at="2020-05-26T22:23:22.000000Z", + is_disabled=False, + is_hidden=True, + is_public=True, + code="uj", + usage_limit=9924, + min_amount=5571, + storage_id="bbdbe48d-0f69-49d4-818c-1c5b9bc107c2", + num_recipients_cap=2337 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_50(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=3457.0, + is_shop_specified=True, + available_shop_ids=["f1f9625b-c580-4482-a6c9-ba901146cddb", "1330505e-bc9a-4de8-b068-7a07c009ebc6", "4d744674-28fe-448c-a091-8bb9060c7cfb", "f4ec7dcd-c0ae-4dba-9ffb-7fbde1b438da", "3b1974fc-55c8-4a97-8b17-98012850321b"], + discount_upper_limit=6836, + display_starts_at="2026-03-16T06:19:24.000000Z", + display_ends_at="2023-08-15T05:21:46.000000Z", + is_disabled=True, + is_hidden=True, + is_public=False, + code="sJ424DF7", + usage_limit=7064, + min_amount=8043, + storage_id="d51ff0e5-7ed0-41bb-9418-33988b8e2311", + num_recipients_cap=2979 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_51(self): + response = client.send(pp.CreateCoupon( + "5f14e3ab-5271-4e01-875a-aaa3b42212d1", + "Ned5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUML", + "2024-01-21T03:50:09.000000Z", + "2021-11-30T16:50:07.000000Z", + "35cbff32-1ac0-431a-b01f-69f9b8d54085", + discount_percentage=3824.0, + is_shop_specified=True, + available_shop_ids=["7c36891b-ae4a-4075-8771-3b85421fc95f", "cd74960c-2d86-48d8-8a0e-29cc0bbd5bc3"], + description="9DlGjqYc53kHtf9cD7bpNKlOmIqFEpEzlkbZX", + discount_upper_limit=2850, + display_starts_at="2020-06-11T04:43:48.000000Z", + display_ends_at="2025-04-03T22:02:06.000000Z", + is_disabled=True, + is_hidden=True, + is_public=True, + code="eK96R7zZj", + usage_limit=4847, + min_amount=7512, + storage_id="85dffd6f-3119-4b2e-ae8a-1bff0b2e5d25", + num_recipients_cap=3442 + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_coupon_0(self): + response = client.send(pp.GetCoupon( + "46de7ab4-fb3c-4c01-bec2-42016a8e0aaf" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_0(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=9526 + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_1(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=4760, + name="chHwOSBaSPaNKx" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_2(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=2065, + description="M4bPYPan8UYIRAISeS032nbwP9uwXrTBWthKP8SFB1epaCsenfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXB", + name="f9of2MaByNhkorzLzXS7sax7iYOPlAj5UlMDxo6iDarlMDzJC7wMAkFYNemk" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_3(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=346, + discount_upper_limit=6128, + description="Dvog0lglLv2T90aOF7qLZJG6mWFW8mYG8iBpA9wK7FerKmMDJDN9kjnEAtWkM10yTZC3mt5NbCfjtxFXhJHyZxe38yvM1SEczLfO3bcMSuKdq3FslGbkHo1PhxbbT2umORVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77PuYo1FVSdDE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQHQhhRs2PIaofbMQ1Wyxx6iPX8", + name="wNVpCNUyiEzApKM66ZkEOto1oTpzcZyDOIWVw" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_4(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=6438, + starts_at="2025-04-30T11:06:46.000000Z", + discount_upper_limit=1745, + description="cmGYbDKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXH", + name="Gq2ofRToY5BXgCjIyZIJEzX" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_5(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=4862, + ends_at="2021-12-10T04:12:43.000000Z", + starts_at="2025-10-22T22:17:17.000000Z", + discount_upper_limit=1694, + description="EMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZsgSDOAS6m6W4ycEKeHr4636lRXTr2iPpZt0j1CI3l", + name="6J30qBjXV2f99mPOolq1eiW9RuNHXLsbYmrfHwiW6AehvKLu9jSykyDMxjQhXv" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_6(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=1649, + display_starts_at="2020-05-09T16:04:03.000000Z", + ends_at="2020-05-10T13:16:42.000000Z", + starts_at="2021-10-24T20:42:54.000000Z", + discount_upper_limit=1365, + description="pnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD62pEennAfXO8IbuWWi93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMiAoASOIgsAFMRnA6RqJv3Yoi1HNQ6SUUxfHdkFZrSjoj4E906hjOODSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyxQz7D46SGfEdpD0URVkFLT", + name="lxp8SI9cXescrmSD5nkp7THGlyH3t2HB4wHFbCGx0Xzqx2wtaKpu1qdmiKn22F3ctIsxTTV24W3iMjgCaf4v1F7zb24TvVYyzGoNYLIXxqonkM" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_7(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=71, + display_ends_at="2023-01-20T20:50:05.000000Z", + display_starts_at="2023-10-28T20:30:16.000000Z", + ends_at="2020-08-01T05:21:48.000000Z", + starts_at="2025-02-06T00:43:54.000000Z", + discount_upper_limit=664, + description="JRQwp9nn9cv0p2uygmHKqGnnOeMtFto3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwm", + name="x9H0OP7RXsy9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTKy9baAXpUrNxQgJv2d1RjRDvxxlQFhM2eopmIl" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_8(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=8991, + is_disabled=False, + display_ends_at="2023-10-13T19:37:48.000000Z", + display_starts_at="2020-01-21T03:41:42.000000Z", + ends_at="2026-02-03T18:38:37.000000Z", + starts_at="2023-09-08T02:37:37.000000Z", + discount_upper_limit=3322, + description="qnGOYbg6rdqjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfah", + name="EqSWpbWk8lIjmXf3crokuVBQQl" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_9(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=4664, + is_hidden=True, + is_disabled=True, + display_ends_at="2022-11-28T08:23:43.000000Z", + display_starts_at="2020-09-16T06:09:57.000000Z", + ends_at="2020-02-28T02:54:38.000000Z", + starts_at="2022-06-11T18:26:34.000000Z", + discount_upper_limit=8544, + description="UMuDqspHuPmGiUoPte", + name="a9Foxx3GETJuunMNM7JUVu7YgDI0zSm63cU49za1QJALcpDZJ7YKoaGZqFQRMYj7eI0OiTgfPr68fP2A8RCqVjIMZulltZtjgMfuDxn3QgsidEuf2NvBHeZX8hY" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_10(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=75, + is_public=False, + is_hidden=True, + is_disabled=False, + display_ends_at="2024-10-21T19:01:06.000000Z", + display_starts_at="2024-09-24T09:02:23.000000Z", + ends_at="2020-01-16T12:22:18.000000Z", + starts_at="2024-02-28T23:05:46.000000Z", + discount_upper_limit=3107, + description="WptMhyWUi64YZbGeyCSFHt3mcrC", + name="B8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0KtoQaeaW3v7wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltqUbvpNyoJI0vq" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_11(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=4554, + code="n0oUjQYsK", + is_public=False, + is_hidden=True, + is_disabled=False, + display_ends_at="2020-01-09T04:36:16.000000Z", + display_starts_at="2022-03-25T11:35:50.000000Z", + ends_at="2021-01-17T05:06:59.000000Z", + starts_at="2023-04-12T08:05:51.000000Z", + discount_upper_limit=2517, + description="cY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3EykNpjwCPjAkzyY2kmUe2JJ53U3N6F0e26pbO3HttlG4eyiatMI7VF3d", + name="tu" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_12(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=1815, + usage_limit=2387, + code="Q3", + is_public=True, + is_hidden=False, + is_disabled=False, + display_ends_at="2020-07-23T20:56:28.000000Z", + display_starts_at="2021-01-23T04:39:42.000000Z", + ends_at="2024-08-05T04:29:49.000000Z", + starts_at="2021-09-02T12:37:10.000000Z", + discount_upper_limit=8030, + description="ovXNsgFsW05W19aXuGVVRQlUVJv9CZ2ZsBhmJBENJ2Jp2YLnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ9bvTSzMBL1Qigyh", + name="2R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8NITOunWJGeGMfsCgwJ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_13(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=243, + min_amount=8254, + usage_limit=4506, + code="v", + is_public=False, + is_hidden=True, + is_disabled=True, + display_ends_at="2025-10-13T03:44:34.000000Z", + display_starts_at="2022-07-16T11:55:28.000000Z", + ends_at="2024-07-13T03:22:24.000000Z", + starts_at="2024-01-28T09:17:38.000000Z", + discount_upper_limit=8694, + description="MuqT6yOdp5xmnGGOh8", + name="3wD" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_14(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=5721, + is_shop_specified=False, + min_amount=1173, + usage_limit=3929, + code="1DlU5", + is_public=True, + is_hidden=False, + is_disabled=True, + display_ends_at="2023-11-30T00:54:44.000000Z", + display_starts_at="2020-02-17T17:16:24.000000Z", + ends_at="2022-05-09T20:58:20.000000Z", + starts_at="2026-01-24T02:49:05.000000Z", + discount_upper_limit=4912, + description="0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSuhWGSp4IuNXEvAYv341undTljbWPhfpiwPMjupC65xVDn", + name="AJbsKD6b895iftqbY67Ut2zsAKH6lKT6gJXbaEK" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_15(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=449, + available_shop_ids=["e7d9f464-fbac-4f6f-8ea5-d0d5398696cd", "0aa7de2d-47dd-4b22-b043-06dc2515f31a", "bb373e1e-5b52-43fc-a0de-8c1565f1f1ad", "2b4017e4-fc61-4253-ad2d-d6444efc2fa7", "c7bebf65-b96f-4140-911c-475ecedecf2f"], + is_shop_specified=False, + min_amount=6180, + usage_limit=8940, + code="XELG9oQdg", + is_public=True, + is_hidden=False, + is_disabled=False, + display_ends_at="2022-12-06T01:52:28.000000Z", + display_starts_at="2021-07-19T21:13:48.000000Z", + ends_at="2021-06-01T10:33:43.000000Z", + starts_at="2021-07-22T11:20:05.000000Z", + discount_upper_limit=8451, + description="81VvpXr3HeuSevupI3Lg6cydG4CQY3zROLCcC3cDzGwCmJXHiF5C2aKJupg0Hph0EUCWBeCDLYnE6HiVXoG09ihrRj4aejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEv", + name="8PGaDArnv6F3HhJclpvEl0kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCNCl989Inr9h5bKrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtO" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_16(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=4890, + storage_id="c988f8ee-eda0-4be2-8d00-f31ef727125a", + available_shop_ids=["586357b8-5f9b-41be-a828-d1ca7aca6ff3", "2de9d486-0a74-4d87-b3fc-84cf342d25e3", "f24bb5f8-acf7-4623-8fa8-3db532c461a9", "7f452d50-fe96-45bc-af61-d474370f04be", "3c2b8d63-5646-409c-9830-6cd46b64a7d5", "67fb7fb5-7757-4e40-a735-bcbf2f75bbef", "773ca38c-266d-4e14-9206-cebd8ec8bf7d"], + is_shop_specified=True, + min_amount=2265, + usage_limit=7579, + code="jF", + is_public=False, + is_hidden=True, + is_disabled=False, + display_ends_at="2025-07-03T10:01:08.000000Z", + display_starts_at="2024-06-06T09:10:54.000000Z", + ends_at="2020-11-12T09:01:13.000000Z", + starts_at="2022-10-10T02:03:17.000000Z", + discount_upper_limit=1031, + description="VX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc2ISnCuuu6HEZICTUsFd55cysKpzPw06buTFvYo4vEubGw6jVHah2jNyPqoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZ", + name="azm0l" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_17(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=5847, + num_recipients_cap=7377, + storage_id="a34538d4-250c-4326-9b18-d65aa756ce84", + available_shop_ids=["30a02537-1007-452d-a566-e92c34ea3824", "7352d828-e83b-49c8-9683-1214a716b70e"], + is_shop_specified=True, + min_amount=1543, + usage_limit=1844, + code="Du6", + is_public=True, + is_hidden=False, + is_disabled=True, + display_ends_at="2025-05-01T05:38:30.000000Z", + display_starts_at="2024-02-29T15:30:15.000000Z", + ends_at="2020-09-23T00:44:59.000000Z", + starts_at="2020-08-01T04:29:49.000000Z", + discount_upper_limit=8112, + description="9hNDIpWOGRlL4QDCIWrLzYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCFjnlF5wS89FXtStGks", + name="JSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCisIe5qHDsMdG7wbTKEpXzySqqc4sXP" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_18(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=1889, + discount_percentage=6953.0 + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_19(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=5134, + discount_percentage=9623.0, + name="uwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZF" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_20(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=2557, + discount_percentage=9278.0, + description="SWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREfojZVoiIjURbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9", + name="Yg2CBY3rucfBues6uHoyn0kY9tu08AkjC0WPKbQvYow9FaOH3zD7SQmRuyNCMpGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpW" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_21(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=228, + discount_percentage=9269.0, + discount_upper_limit=5018, + description="yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4IlVfzKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45i", + name="mQzjXEIrL5tEVsPccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_22(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=2223, + discount_percentage=8307.0, + starts_at="2025-01-22T10:34:52.000000Z", + discount_upper_limit=7286, + description="2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8qJaf", + name="cwBDpLTRN1a" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_23(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=6301, + discount_percentage=48.0, + ends_at="2020-06-05T02:31:14.000000Z", + starts_at="2021-05-02T07:31:07.000000Z", + discount_upper_limit=3105, + description="cvmWk6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5PsH9YtmnNiOZyV9AO3DnB1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoE", + name="qJ4uimGtF4vDevDABoV1497oKjyplKXUyjuZoAdZa" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_24(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=361, + discount_percentage=5122.0, + display_starts_at="2024-01-08T03:40:14.000000Z", + ends_at="2022-06-30T15:35:01.000000Z", + starts_at="2026-01-15T21:23:52.000000Z", + discount_upper_limit=636, + description="sjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51", + name="W0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8rNkq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVm" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_25(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=9930, + discount_percentage=6887.0, + display_ends_at="2023-05-27T12:36:56.000000Z", + display_starts_at="2023-06-09T15:48:02.000000Z", + ends_at="2021-08-14T06:57:34.000000Z", + starts_at="2023-02-23T02:32:06.000000Z", + discount_upper_limit=4456, + description="spBOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQkIPmfa5YJsZSIV5H0hKFZRjFJ", + name="sBJwxE5ymHkkfvwj75uGxXyxLiKvyAHQ0Cmh0GR2iNpQgbrTS2HEffP70DHCUohT" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_26(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=6322, + discount_percentage=3894.0, + is_disabled=False, + display_ends_at="2026-04-03T00:06:34.000000Z", + display_starts_at="2023-02-17T01:05:19.000000Z", + ends_at="2024-10-18T17:00:44.000000Z", + starts_at="2024-12-10T09:48:13.000000Z", + discount_upper_limit=335, + description="DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBp", + name="MRk3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKE" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_27(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=1349, + discount_percentage=6644.0, + is_hidden=False, + is_disabled=False, + display_ends_at="2023-12-13T17:13:39.000000Z", + display_starts_at="2023-07-15T04:22:42.000000Z", + ends_at="2025-06-27T00:38:56.000000Z", + starts_at="2020-08-20T05:53:09.000000Z", + discount_upper_limit=3433, + description="AHJ2sW9FitjutUJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsET", + name="vex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3Hc5Mr" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_28(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=3652, + discount_percentage=7635.0, + is_public=False, + is_hidden=True, + is_disabled=True, + display_ends_at="2023-09-16T00:17:36.000000Z", + display_starts_at="2022-02-21T22:37:08.000000Z", + ends_at="2024-04-27T19:49:45.000000Z", + starts_at="2021-11-04T02:10:54.000000Z", + discount_upper_limit=9472, + description="mTFD8MK4LhwIRladKEnUCUBMTsHjSLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXy", + name="gJfyBJl1nws6Ne3S7kdpHli9FCf9vj51i" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_29(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=2443, + discount_percentage=8234.0, + code="5vVkai7fMi", + is_public=True, + is_hidden=True, + is_disabled=True, + display_ends_at="2021-01-10T15:54:10.000000Z", + display_starts_at="2025-07-28T12:43:44.000000Z", + ends_at="2024-06-15T15:36:12.000000Z", + starts_at="2020-05-01T05:11:47.000000Z", + discount_upper_limit=3436, + description="kchJ2ELHNBkuEPtWGn6U1tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxa", + name="I0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sbw0fi8" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_30(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=290, + discount_percentage=9108.0, + usage_limit=3308, + code="MiezY", + is_public=False, + is_hidden=True, + is_disabled=False, + display_ends_at="2025-12-02T17:28:36.000000Z", + display_starts_at="2025-06-03T14:54:05.000000Z", + ends_at="2021-11-09T23:06:45.000000Z", + starts_at="2021-02-12T16:19:21.000000Z", + discount_upper_limit=2345, + description="NO2HkiJUlQ4dKgR3uo3pyHQKCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z9k4WtlP60t1pGDCB7WpLioRLUylhwp3jBXylmnzTDYQPTQEhEDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KE", + name="eqmGGreSt4nt1ybC0Y" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_31(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=4612, + discount_percentage=6285.0, + min_amount=5345, + usage_limit=6839, + code="y1", + is_public=True, + is_hidden=False, + is_disabled=True, + display_ends_at="2024-02-09T05:47:23.000000Z", + display_starts_at="2025-04-02T21:20:20.000000Z", + ends_at="2021-07-05T18:01:34.000000Z", + starts_at="2020-12-29T17:02:25.000000Z", + discount_upper_limit=4437, + description="zYlQVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxqLSG8S4aP0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kBu7DCNg4aU7BlWsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomWl", + name="A8y2vwAsTNYaeLyV7CWdrmk7DRyx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4xhz7DzBywKIciMlN0S7L0N0" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_32(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=32, + discount_percentage=6160.0, + is_shop_specified=False, + min_amount=3519, + usage_limit=5802, + code="BHj0xIlmI", + is_public=False, + is_hidden=False, + is_disabled=False, + display_ends_at="2020-08-27T20:22:36.000000Z", + display_starts_at="2020-05-25T04:35:30.000000Z", + ends_at="2025-04-09T06:56:02.000000Z", + starts_at="2024-11-01T16:12:39.000000Z", + discount_upper_limit=8807, + description="iJmBq8x2BMoiejWmPY8qwKCFWRUhTWJtrSHM5KvGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wpFlmsWusC8RGaBKUJdHLf9kwaxRbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1By6vGk0FuWZ3ptkSy", + name="Bcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9VDX3NEhsO0rjGagOIQ6x9sSfu0zX8" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_33(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=2575, + discount_percentage=8570.0, + available_shop_ids=["67bd478d-16e4-4c43-aee9-d45d682b793c", "d8c518a3-1f2e-4e54-b772-2120ec089d09", "04d28f0b-5717-4fe2-b0b4-db01c5803b0d", "2a44e82b-93a8-461d-9211-2264ccb2daab"], + is_shop_specified=False, + min_amount=1094, + usage_limit=3861, + code="8jzLLX07", + is_public=False, + is_hidden=True, + is_disabled=False, + display_ends_at="2023-11-09T22:57:36.000000Z", + display_starts_at="2026-04-01T18:34:34.000000Z", + ends_at="2024-05-29T17:02:24.000000Z", + starts_at="2023-02-01T18:50:39.000000Z", + discount_upper_limit=6983, + description="mRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZhOiq9TM1kLnMOaPoayQ1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIECbUavopCer6amUqWii2uDVrmTki6pq", + name="O0f8cnptMkBRjmpnnbeCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSblk7QSMdkkKPrtzfsCSKaR3OFn1WKJz5hhBZBCZgSERTDaoK9IqITw9RXh5VLaBXSS3E" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_34(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=8826, + discount_percentage=3071.0, + storage_id="e55b6e5c-0ca4-41f3-b285-e78dc424e0cd", + available_shop_ids=["268110f0-b440-4eea-ab98-7012c1d8d7ad", "d6c8beb8-0fac-41c7-9110-d6297988202d", "910735c2-ec8f-450b-a0c9-b4f95d7a3cca", "367782e1-2152-45f9-b7e5-ee75cc3147aa", "f32ee516-eb8e-4047-8bf9-db83fe7f5132", "d3c0fc8f-ef2c-4f6e-98a9-76cec4e02134", "4737667d-0abe-4555-82d0-98775be63d2a", "3ee00aad-e847-4cc0-9139-ce5b6589420b"], + is_shop_specified=False, + min_amount=8296, + usage_limit=2811, + code="Lr7QQxCiR", + is_public=True, + is_hidden=True, + is_disabled=True, + display_ends_at="2022-05-16T22:33:46.000000Z", + display_starts_at="2025-04-22T09:26:08.000000Z", + ends_at="2020-08-03T16:17:24.000000Z", + starts_at="2022-12-31T14:16:31.000000Z", + discount_upper_limit=726, + description="GQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq6VpVqu1DpFd0JaBsPBEjjxsN82R5bV74h6MclFLskpVJhF8OvhWGp3gTZC60RTw4fZ8zWBqSC3vDIMcnooU2vsEkhFzbMP7H4x70jy8CyXSjsNQfhm4J", + name="diSR8LU0sAxVpKo9Pr8tnCR4b3VVcnR7ySa" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_35(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_amount=785, + discount_percentage=7251.0, + num_recipients_cap=2381, + storage_id="2e962295-b6de-40ba-98e1-c3d22b37b262", + available_shop_ids=["8d0ccde1-7ccf-4e43-8c59-09b92d54a1c8", "f5a58859-828e-4a9d-bd8f-8530ba1798a7", "8089149a-c399-4966-97e1-e6ca6416d8cd", "56c19aa1-2c0f-4300-9684-23e3980f7cd2", "4064849d-cb8d-47f3-be5a-c6aa2da21a2e", "a4756d33-a17e-4514-b480-16e6866f2a7f", "71ff55ac-6b2b-4b18-aeb1-ab087e63d8a6"], + is_shop_specified=False, + min_amount=1117, + usage_limit=6564, + code="dpY2gOVz", + is_public=True, + is_hidden=True, + is_disabled=True, + display_ends_at="2023-06-16T21:20:50.000000Z", + display_starts_at="2026-03-20T00:57:48.000000Z", + ends_at="2022-10-05T16:52:43.000000Z", + starts_at="2023-03-31T03:38:41.000000Z", + discount_upper_limit=7816, + description="FcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt7JZTknlcSLOAfgHki7iE", + name="UUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOlUDO" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_36(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=7949.0 + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_37(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=5541.0, + name="BSRiyqeameMaY0bgN8gTUkelv3hkGmk4iWQ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_38(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=4059.0, + description="AVafOlabiOcEnloh2DXft8ZR3ZIT5H8aSOl3MDXnG9yHqEAThwDuq1zewsMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDIn3iuFQrrgeXzyNXNrNkeWa9hWsLSo6RhlRrNdm", + name="MatyDW12s5SKsd06fYHa9pHdUJ2NkpD9XRln1g4q1" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_39(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=649.0, + discount_upper_limit=3516, + description="AmzenaBAIYsPX5BEVEkSwN7Jl7UfMqNeIWxDQ5mYkDBp76i", + name="Plz0WyF7I2Snzg8" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_40(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=5984.0, + starts_at="2024-02-27T08:16:35.000000Z", + discount_upper_limit=8611, + description="d0lMhCHFE2kwBpe", + name="HriIaXxYmUfe" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_41(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=8742.0, + ends_at="2022-10-26T02:15:14.000000Z", + starts_at="2023-03-08T05:14:07.000000Z", + discount_upper_limit=7425, + description="3BKTCZPKhRk3w9r2MS5qnBpeG29hBWbNKIGuoyWD3BHeU5bcdtREmG3PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5", + name="Rw62VEObOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1P" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_42(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=4381.0, + display_starts_at="2021-03-09T14:44:23.000000Z", + ends_at="2023-03-24T12:29:56.000000Z", + starts_at="2025-04-13T14:07:21.000000Z", + discount_upper_limit=7553, + description="qpxNAcB7XJ2PMH0HA7mMCxlziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9q8fRCMt2pzYekawpU", + name="ouvYHKlj0GUL0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgD" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_43(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=3140.0, + display_ends_at="2025-08-18T18:22:56.000000Z", + display_starts_at="2026-01-05T23:46:25.000000Z", + ends_at="2023-07-22T02:51:40.000000Z", + starts_at="2025-11-23T03:39:05.000000Z", + discount_upper_limit=3669, + description="9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLKUg3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFc", + name="t3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7mxn7kYGzShazSiZH6DDfNqfsVRi3zxzsVzVJLxp" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_44(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=1030.0, + is_disabled=True, + display_ends_at="2022-01-21T10:21:24.000000Z", + display_starts_at="2023-02-28T05:03:02.000000Z", + ends_at="2025-07-13T04:46:00.000000Z", + starts_at="2024-04-13T07:05:15.000000Z", + discount_upper_limit=5817, + description="CjOUSNMH9fWh27PiOpr3HMMXsb4Lh4b0Gko8iE0P3Cu0AOaTlKzyVFYYoK00acoGlEqYYGWZUMgU5LJ8nedbEkL6VCbZlYCZFu0YjXrvick1kbCzvMElbl", + name="aTUskxDWTi4syFdijXY" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_45(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=1498.0, + is_hidden=True, + is_disabled=True, + display_ends_at="2021-10-09T11:26:59.000000Z", + display_starts_at="2026-03-30T21:23:02.000000Z", + ends_at="2024-10-11T14:33:42.000000Z", + starts_at="2024-08-07T02:39:28.000000Z", + discount_upper_limit=1193, + description="v2rObj5KP7CaX5R9O7hnOQMfDj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq2k3ETquM3SQujWFDE153B47G8gAIFr9zY1A", + name="G4Q6S1AZ81ee9F1zaeUGprRtPpZgZzOhvmvIjVKe7aM7QiN4LuTtB8ZF5mN9clYyKl8" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_46(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=8722.0, + is_public=True, + is_hidden=True, + is_disabled=False, + display_ends_at="2024-07-20T21:10:59.000000Z", + display_starts_at="2024-10-02T07:40:05.000000Z", + ends_at="2025-08-15T16:51:37.000000Z", + starts_at="2023-10-19T18:12:03.000000Z", + discount_upper_limit=6233, + description="8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSBniTvgiFcfFWfXoobW27D2zSsjxSJQCC2TKE3m70u0i2E7e3WCog3HknLh", + name="4mGHjaX24jJAlJFQ82MhyQQoipgFNSux0jeobdQD1VXjUggH7qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627Al" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_47(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=3613.0, + code="JYf", + is_public=True, + is_hidden=False, + is_disabled=True, + display_ends_at="2020-12-09T18:35:50.000000Z", + display_starts_at="2020-04-16T12:20:46.000000Z", + ends_at="2023-05-11T12:38:33.000000Z", + starts_at="2021-09-26T21:03:13.000000Z", + discount_upper_limit=348, + description="c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcsFhnnSlOPQSKVW980GqQVfPuvUPiEFV6mDyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5x", + name="iIJ7Q1Cipp2CPMRifbrHbdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_48(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=5565.0, + usage_limit=9011, + code="aEMSDM7", + is_public=False, + is_hidden=False, + is_disabled=True, + display_ends_at="2025-04-11T00:07:18.000000Z", + display_starts_at="2023-06-10T08:18:12.000000Z", + ends_at="2021-05-26T01:22:19.000000Z", + starts_at="2024-09-12T01:01:17.000000Z", + discount_upper_limit=9072, + description="VCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClPPAh3ydu7j", + name="MaO7kqGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM8ZY9e" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_49(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=6186.0, + min_amount=5517, + usage_limit=1477, + code="BD", + is_public=True, + is_hidden=True, + is_disabled=True, + display_ends_at="2020-04-23T19:47:09.000000Z", + display_starts_at="2023-02-02T14:54:25.000000Z", + ends_at="2022-07-02T15:59:27.000000Z", + starts_at="2021-11-19T13:15:40.000000Z", + discount_upper_limit=8158, + description="jFI18oRpgCoDiEOfsuO3LMtzPm5pmHiztzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2Z23Mwd98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoO", + name="NY9mYcjUD" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_50(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=4915.0, + is_shop_specified=True, + min_amount=7310, + usage_limit=1751, + code="N3hpObB", + is_public=True, + is_hidden=False, + is_disabled=True, + display_ends_at="2024-10-30T19:55:07.000000Z", + display_starts_at="2022-12-12T12:31:34.000000Z", + ends_at="2022-01-02T02:25:02.000000Z", + starts_at="2023-04-05T01:56:52.000000Z", + discount_upper_limit=1978, + description="WPCuqh90wnUEefdvvGn56xgqcINC0MaOVTzOYUS4YiFzadS1dG4VhCAXdvLcusNkP92lEHAtBr5uMSg7mI2h9L5UgNjF9pGXPoR6V6EH9oG2E8mJwg74tJdyJ5Llab29gfUQ6hTQL306GhITMLHDmfb2965KcWooPsLAa0LofoeILq2j1", + name="bokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV0L" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_51(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=2267.0, + available_shop_ids=["df29966e-00af-4e7f-b003-908e32d80544", "2a95c208-fa93-4736-a075-c9317b7ae561", "39306c71-7222-4858-bdd5-966769253ccc"], + is_shop_specified=True, + min_amount=7702, + usage_limit=844, + code="q", + is_public=True, + is_hidden=True, + is_disabled=True, + display_ends_at="2022-12-03T09:52:33.000000Z", + display_starts_at="2022-04-02T10:33:39.000000Z", + ends_at="2024-10-29T23:33:38.000000Z", + starts_at="2024-11-06T14:24:48.000000Z", + discount_upper_limit=9272, + description="Q0rfHosccmXhG1yeE5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JEew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVUwFU1amkd1FBZBysFgH8TiyAaF4dUSAbqyi68iyJ302sQl", + name="33vCftoqwC5tymvF1K23X2uYu46ypSW9PxtiaID1SUCfz9yEelM" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_52(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=9368.0, + storage_id="5883faef-8790-4387-86ab-8d39bd803961", + available_shop_ids=["54b4cc17-f1b6-492b-a70d-fbbf953096a3", "3f3a67e3-ceb2-4252-a0cc-b54893f80bfa", "677c8113-3c51-4cd7-acbb-f68fb1fc4c2c"], + is_shop_specified=False, + min_amount=2012, + usage_limit=4131, + code="4", + is_public=True, + is_hidden=True, + is_disabled=False, + display_ends_at="2023-02-05T13:50:39.000000Z", + display_starts_at="2025-12-14T00:47:08.000000Z", + ends_at="2025-06-19T21:12:18.000000Z", + starts_at="2024-10-04T16:44:28.000000Z", + discount_upper_limit=3982, + description="o0g8SXRzZ3pUKHHeXuuwg12Ygg3AsTOryINKyRmJ3gWCDcmsuvkMrJePtGFhv4aIw1aGtGR3fEQezBo8XnXONHGXDMcl8tuhVdB5KkP8PHvZEmmcBKkGsr9sdEDTBkey7pr4d2jpaf36YY6mrG9Y2ztoKUUUx5B1bSO8xEgnoe60dnWTC", + name="mm3x115QsBZT6dCGgqZsePkl6iY0bdXM6Nza2rTctUJQmh0gNd3qkWY4lVW5zCUF3zWzIdrHm6OsiyHBxsWBtx4" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_53(self): + response = client.send(pp.UpdateCoupon( + "1cc243e6-bd70-4f88-b33b-0902d85782a4", + discount_percentage=9655.0, + num_recipients_cap=1380, + storage_id="b9b283cc-9bbe-46d6-a983-3987b378454d", + available_shop_ids=["88ab70be-4340-4179-8326-f2c27c78554e", "cd4e87af-2bfa-48e3-99c4-3ec3c06428be", "ff9f5981-370c-4984-98b5-8b5d994dd6ff"], + is_shop_specified=False, + min_amount=2530, + usage_limit=2402, + code="PzVU", + is_public=False, + is_hidden=False, + is_disabled=True, + display_ends_at="2022-07-18T21:01:56.000000Z", + display_starts_at="2024-12-08T05:22:25.000000Z", + ends_at="2024-08-27T15:30:58.000000Z", + starts_at="2022-05-05T08:50:05.000000Z", + discount_upper_limit=1291, + description="BWp2XUNEsAtEjlivj0NhalsavWYZduuXynvh05rJdAnnKPkjJzRbGyuQYyb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qpLKYfd3JbJX5QcdKyJ1DmsToKu4w1tRUaP7awM87Mt7bWysOyzqkBrGaMjb1sugqjEee", + name="k3DeIDBfKsRBbYLkU" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_seven_bank_atm_session_0(self): + response = client.send(pp.GetSevenBankAtmSession( + "TfJ" )) 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)