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..7916468 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=1980, # ページ番号 + per_page=682 # 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="7V605lzcBixerwgOsZo2yFQXiifPwyEPkMTjwK5UmBamQcUvvHD25XYGaGoRmlkWpVKSQYACWhdJgT5oXIAxp1c5Q2vG7By91KC2xkwbMvROWfUAhh6XnZz0yJYgRGAM6oTzljbZYS9b6qmrSFaDiVxdn1z0", # ウォレット名 + external_id="uA7dLQ8GnuuGnm3um0ZKY", # 外部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..0d3ebbc 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="TvYgQYDODN@TX3Y.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 + 6708, # 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..e6ca31a 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=2182, # ページ番号 + per_page=2526, # 1ページの表示数 + bill_id="bNc2E2Nk", # 支払いQRコードのID + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + organization_code="HyC-a5DK7", # 組織コード + description="test bill", # 取引説明文 + created_from="2025-12-12T10:30:10.000000Z", # 作成日時(起点) + created_to="2020-12-14T07:47:25.000000Z", # 作成日時(終点) + shop_name="bill test shop1", # 店舗名 + shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID + lower_limit_amount=2249, # 金額の範囲によるフィルタ(下限) + upper_limit_amount=6359, # 金額の範囲によるフィルタ(上限) + is_disabled=False # 支払い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=2554.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=9064.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..5092158 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( + "APfacx4ba4pxXiFCicQd3QQrdt", # name: 一括取引タスク名 + "pp5IlW", # content: 取引する情報のCSV + "8KnTaroT8w3801ZxeZpTa0FFkkUFLVCDKp9T", # request_id: リクエストID + description="vCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7EhkzGk22yYle2ZOPXJOiEYcNwwBKhoxCdqw8SDS6L7O6ohLm8HBuYz7E9ZuYBAHz0vH45u4SHdXpfYeqMtcfd8wxcygIW1k", # 一括取引の説明 + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + callback_url="https://AzyAHjkW.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..7986dca 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="2025-01-10T13:20:46.000000Z", # 指定された日時以降に適用可能期間が含まれているか + available_to="2022-03-23T15:33:52.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,102 +142,84 @@ 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: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 -}, { +```PYTHON +response = client.send(pp.CreateCampaign( + "slSf8NaBTyV6GBT8tDHI0zWcr0sMpkdiHOOwl5xIQiAP4UplfuFUQK5yc0JqyEbk4xV1Elw", # name: キャンペーン名 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + "2023-09-21T06:48:47.000000Z", # starts_at: キャンペーン開始日時 + "2025-10-25T23:34:34.000000Z", # ends_at: キャンペーン終了日時 + 7766, # priority: キャンペーンの適用優先度 + "topup", # event: イベント種別 + bear_point_shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント負担先店舗ID + description="OgCs3REJLXlOpH9qH3TntlxmPSv0sqeMHVeJGZnQaE4lp3S7TMyfZKpPybiZ1Lwce18e7Eq5OqWuTabdRaaHOyfGqVUncXzhjskeGyZxmbEy050Zlv3tzVr8", # キャンペーンの説明文 + status="disabled", # キャンペーン作成時の状態 + point_expires_at="2022-03-08T12:46:09.000000Z", # ポイント有効期限(絶対日時指定) + point_expires_in_days=9557, # ポイント有効期限(相対日数指定) + is_exclusive=True, # キャンペーンの重複設定 + subject="money", # ポイント付与の対象金額の種別 + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 -}, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 -}], // 取引金額ベースのポイント付与ルール - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 -}, { +}], # 取引金額ベースのポイント付与ルール + 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" -}], // 商品情報ベースのキャンペーンで除外対象にする商品リスト - applicable_days_of_week: [4, 0, 1], // キャンペーンを適用する曜日 (複数指定) - applicable_time_ranges: [{ +}], # 商品情報ベースのキャンペーンで除外対象にする商品リスト + applicable_days_of_week=[1], # キャンペーンを適用する曜日 (複数指定) + applicable_time_ranges=[{ "from": "12:00", "to": "23:59" }, { "from": "12:00", "to": "23:59" -}, { - "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", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象となる店舗IDのリスト + blacklisted_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + minimum_number_of_products=9292, # キャンペーンを適用する1会計内の商品個数の下限 + minimum_number_of_amount=5908, # キャンペーンを適用する1会計内の商品総額の下限 + minimum_number_for_combination_purchase=4089, # 複数種類の商品を同時購入するときの商品種別数の下限 + exist_in_each_product_groups=False, # 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + max_point_amount=2621, # キャンペーンによって付与されるポイントの上限 + max_total_point_amount=7197, # キャンペーンによって付与されるの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=157687380 # キャンペーン予算上限 +)) ``` ### Parameters -**`name`** - - +#### `name` キャンペーン名です(必須項目)。 ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 +
+スキーマ + ```json { "type": "string", @@ -221,11 +227,14 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`private_money_id`** - +
+#### `private_money_id` キャンペーン対象のマネーのIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -233,13 +242,16 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`starts_at`** - +
+#### `starts_at` キャンペーン開始日時です(必須項目)。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -247,13 +259,16 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`ends_at`** - +
+#### `ends_at` キャンペーン終了日時です(必須項目)。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -261,23 +276,26 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`priority`** - +
+#### `priority` キャンペーンの適用優先度です。 優先度が大きいものから順に適用判定されていきます。 キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 +
+スキーマ + ```json { "type": "integer" } ``` -**`event`** - +
+#### `event` キャンペーンのトリガーとなるイベントの種類を指定します(必須項目)。 以下のいずれかを指定できます。 @@ -289,6 +307,9 @@ const response: Response = await client.send(new CreateCampaign({ 3. external-transaction ポケペイ外の取引(現金決済など) +
+スキーマ + ```json { "type": "string", @@ -300,12 +321,15 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`bear_point_shop_id`** - +
+#### `bear_point_shop_id` ポイントを負担する店舗のIDです。デフォルトではマネー発行体の本店が設定されます。 ポイント負担先店舗は後から更新することはできません。 +
+スキーマ + ```json { "type": "string", @@ -313,11 +337,14 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`description`** - +
+#### `description` キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 +
+スキーマ + ```json { "type": "string", @@ -325,9 +352,9 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`status`** - +
+#### `status` キャンペーン作成時の状態を指定します。デフォルトではenabledです。 以下のいずれかを指定できます。 @@ -337,6 +364,9 @@ const response: Response = await client.send(new CreateCampaign({ 2. disabled 無効 +
+スキーマ + ```json { "type": "string", @@ -347,12 +377,15 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`point_expires_at`** - +
+#### `point_expires_at` キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -360,12 +393,15 @@ const response: Response = await client.send(new CreateCampaign({ } ``` -**`point_expires_in_days`** - +
+#### `point_expires_in_days` キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "integer", @@ -373,23 +409,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 +441,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) 注意: event を topup にしたときはポイントの付与に対しても適用されます +
+スキーマ + ```json { "type": "string", @@ -412,9 +454,9 @@ all を指定すると決済額全体を対象にします (「ポイント」 } ``` -**`amount_based_point_rules`** - +
+#### `amount_based_point_rules` 金額をベースとしてポイント付与を行うルールを指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 @@ -438,6 +480,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し ] ``` +
+スキーマ + ```json { "type": "array", @@ -447,9 +492,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 +541,9 @@ event が payment か external-transaction の時のみ有効です。 ] ``` +
+スキーマ + ```json { "type": "array", @@ -505,13 +553,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`blacklisted_product_rules`** - +
+#### `blacklisted_product_rules` 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 除外対象の商品コード、または分類コードのパターンの配列として指定します。 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 +
+スキーマ + ```json { "type": "array", @@ -521,13 +572,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicable_days_of_week`** - +
+#### `applicable_days_of_week` キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) +
+スキーマ + ```json { "type": "array", @@ -539,13 +593,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicable_time_ranges`** - +
+#### `applicable_time_ranges` キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 +
+スキーマ + ```json { "type": "array", @@ -555,12 +612,15 @@ fromとtoは両方必要です。 } ``` -**`applicable_shop_ids`** - +
+#### `applicable_shop_ids` キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 +
+スキーマ + ```json { "type": "array", @@ -571,11 +631,34 @@ fromとtoは両方必要です。 } ``` -**`minimum_number_of_products`** - +
+ +#### `blacklisted_shop_ids` +キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 +このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 +blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 + +
+スキーマ +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +
+ +#### `minimum_number_of_products` このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -583,11 +666,14 @@ fromとtoは両方必要です。 } ``` -**`minimum_number_of_amount`** - +
+#### `minimum_number_of_amount` このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -595,9 +681,9 @@ fromとtoは両方必要です。 } ``` -**`minimum_number_for_combination_purchase`** - +
+#### `minimum_number_for_combination_purchase` 複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。デフォルトでは未指定で、指定する場合は1以上の整数を指定します。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 @@ -670,6 +756,9 @@ fromとtoは両方必要です。 } ``` +
+スキーマ + ```json { "type": "integer", @@ -677,9 +766,9 @@ fromとtoは両方必要です。 } ``` -**`exist_in_each_product_groups`** - +
+#### `exist_in_each_product_groups` 複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 @@ -760,19 +849,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 +875,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`max_total_point_amount`** - +
+#### `max_total_point_amount` キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 +
+スキーマ + ```json { "type": "integer", @@ -795,9 +893,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`dest_private_money_id`** - +
+#### `dest_private_money_id` キャンペーンを駆動するイベントのマネーとは「別のマネー」に対してポイントを付けたいときに、そのマネーIDを指定します。 ポイント付与先のマネーはキャンペーンを駆動するイベントのマネーと同一発行体が発行しているものに限ります。その他のマネーIDが指定された場合は private_money_not_found (422) が返ります。 @@ -808,6 +906,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 別マネーに対するポイント付与は別のtransactionとなります。 RefundTransaction で元のイベントをキャンセルしたときはポイント付与のtransactionもキャンセルされ、逆にポイント付与のtransactionをキャンセルしたときは連動して元のイベントがキャンセルされます。 +
+スキーマ + ```json { "type": "string", @@ -815,9 +916,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`applicable_account_metadata`** - +
+#### `applicable_account_metadata` ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 @@ -844,15 +945,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`applicable_transaction_metadata`** - +
+#### `applicable_transaction_metadata` 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 @@ -879,20 +983,26 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`budget_caps_amount`** - +
+#### `budget_caps_amount` キャンペーンの予算上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 +
+スキーマ + ```json { "type": "integer", @@ -901,6 +1011,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+ 成功したときは @@ -913,11 +1025,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 +1042,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 +1066,8 @@ const response: Response = await client.send(new GetCampaign({ } ``` +
+ 成功したときは @@ -968,27 +1083,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: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 -}, { +```PYTHON +response = client.send(pp.UpdateCampaign( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # campaign_id: キャンペーンID + name="0Vs3OlIrdnx7rU9Fte9Z959oBy13mtel3d8TfJ3Ol39ScasZnA58jo0hnztlMdM7BVfn4iFYyJJXfrDUn2Z5dTBMhYMOaLFSQqsldJHk3l4cpZ7fJl29A3O6y0fQnXOgwkIth5yMWiTVYzb9YasuIp7v4EzACicWq4Ul0bBBFnJwjrPu", # キャンペーン名 + starts_at="2020-10-22T17:57:20.000000Z", # キャンペーン開始日時 + ends_at="2021-03-09T15:48:28.000000Z", # キャンペーン終了日時 + priority=5556, # キャンペーンの適用優先度 + event="payment", # イベント種別 + description="M5cyeftMbZhJuNsCdqVbAgLZQKQXblhvdQVC38rMOaKHSf5htPpycWdWsbduWBxtfg1Kliu47KITpvwbo61t0xPHohZAfXS5WAq97VI0kJjyO9S00lRKqhRSKyv4aeUNiX5kIXisF2lvLdWFAH9CECfmZyvOgcw2bcIoYI3B409", # キャンペーンの説明文 + status="enabled", # キャンペーン作成時の状態 + point_expires_at="2023-06-26T02:29:37.000000Z", # ポイント有効期限(絶対日時指定) + point_expires_in_days=8599, # ポイント有効期限(相対日数指定) + is_exclusive=False, # キャンペーンの重複設定 + subject="money", # ポイント付与の対象金額の種別 + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, @@ -998,64 +1107,60 @@ 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" -}], // 商品情報ベースのキャンペーンで除外対象にする商品リスト - applicable_days_of_week: [6, 5, 5], // キャンペーンを適用する曜日 (複数指定) - applicable_time_ranges: [{ +}], # 商品情報ベースのキャンペーンで除外対象にする商品リスト + applicable_days_of_week=[0, 6], # キャンペーンを適用する曜日 (複数指定) + applicable_time_ranges=[{ "from": "12:00", "to": "23:59" -}, { - "from": "12:00", - "to": "23:59" -}, { - "from": "12:00", - "to": "23:59" -}], // キャンペーンを適用する時間帯 (複数指定) - applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト - minimum_number_of_products: 3479, // キャンペーンを適用する1会計内の商品個数の下限 - minimum_number_of_amount: 261, // キャンペーンを適用する1会計内の商品総額の下限 - minimum_number_for_combination_purchase: 5057, // 複数種類の商品を同時購入するときの商品種別数の下限 - exist_in_each_product_groups: false, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - max_point_amount: 3581, // キャンペーンによって付与されるポイントの上限 - max_total_point_amount: 1690, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 - applicable_account_metadata: { +}], # キャンペーンを適用する時間帯 (複数指定) + applicable_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象となる店舗IDのリスト + blacklisted_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + minimum_number_of_products=3028, # キャンペーンを適用する1会計内の商品個数の下限 + minimum_number_of_amount=6937, # キャンペーンを適用する1会計内の商品総額の下限 + minimum_number_for_combination_purchase=6964, # 複数種類の商品を同時購入するときの商品種別数の下限 + exist_in_each_product_groups=True, # 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + max_point_amount=8783, # キャンペーンによって付与されるポイントの上限 + max_total_point_amount=7773, # キャンペーンによって付与されるの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=1474608668 # キャンペーン予算上限 +)) ``` ### Parameters -**`campaign_id`** - - +#### `campaign_id` キャンペーンIDです。 指定したIDのキャンペーンを更新します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -1063,13 +1168,16 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`name`** - +
+#### `name` キャンペーン名です。 ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 +
+スキーマ + ```json { "type": "string", @@ -1077,13 +1185,16 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`starts_at`** - +
+#### `starts_at` キャンペーン開始日時です。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -1091,13 +1202,16 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`ends_at`** - +
+#### `ends_at` キャンペーン終了日時です。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -1105,23 +1219,26 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`priority`** - +
+#### `priority` キャンペーンの適用優先度です。 優先度が大きいものから順に適用判定されていきます。 キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 +
+スキーマ + ```json { "type": "integer" } ``` -**`event`** - +
+#### `event` キャンペーンのトリガーとなるイベントの種類を指定します。 以下のいずれかを指定できます。 @@ -1133,6 +1250,9 @@ const response: Response = await client.send(new UpdateCampaign({ 3. external-transaction ポケペイ外の取引(現金決済など) +
+スキーマ + ```json { "type": "string", @@ -1144,11 +1264,14 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`description`** - +
+#### `description` キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 +
+スキーマ + ```json { "type": "string", @@ -1156,9 +1279,9 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`status`** - +
+#### `status` キャンペーン作成時の状態を指定します。デフォルトではenabledです。 以下のいずれかを指定できます。 @@ -1168,6 +1291,9 @@ const response: Response = await client.send(new UpdateCampaign({ 2. disabled 無効 +
+スキーマ + ```json { "type": "string", @@ -1178,12 +1304,15 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`point_expires_at`** - +
+#### `point_expires_at` キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -1191,12 +1320,15 @@ const response: Response = await client.send(new UpdateCampaign({ } ``` -**`point_expires_in_days`** - +
+#### `point_expires_in_days` キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "integer", @@ -1204,23 +1336,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 +1368,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) 注意: event を topup にしたときはポイントの付与に対しても適用されます +
+スキーマ + ```json { "type": "string", @@ -1243,9 +1381,9 @@ all を指定すると決済額全体を対象にします (「ポイント」 } ``` -**`amount_based_point_rules`** - +
+#### `amount_based_point_rules` 金額をベースとしてポイント付与を行うルールを指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 @@ -1269,6 +1407,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し ] ``` +
+スキーマ + ```json { "type": "array", @@ -1278,9 +1419,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 +1468,9 @@ event が payment か external-transaction の時のみ有効です。 ] ``` +
+スキーマ + ```json { "type": "array", @@ -1336,13 +1480,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`blacklisted_product_rules`** - +
+#### `blacklisted_product_rules` 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 除外対象の商品コード、または分類コードのパターンの配列として指定します。 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 +
+スキーマ + ```json { "type": "array", @@ -1352,13 +1499,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicable_days_of_week`** - +
+#### `applicable_days_of_week` キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) +
+スキーマ + ```json { "type": "array", @@ -1370,13 +1520,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicable_time_ranges`** - +
+#### `applicable_time_ranges` キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 +
+スキーマ + ```json { "type": "array", @@ -1386,12 +1539,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 +1578,14 @@ fromとtoは両方必要です。 } ``` -**`minimum_number_of_products`** - +
+#### `minimum_number_of_products` このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -1414,11 +1593,14 @@ fromとtoは両方必要です。 } ``` -**`minimum_number_of_amount`** - +
+#### `minimum_number_of_amount` このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -1426,9 +1608,9 @@ fromとtoは両方必要です。 } ``` -**`minimum_number_for_combination_purchase`** - +
+#### `minimum_number_for_combination_purchase` 複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 @@ -1501,6 +1683,9 @@ fromとtoは両方必要です。 } ``` +
+スキーマ + ```json { "type": "integer", @@ -1508,9 +1693,9 @@ fromとtoは両方必要です。 } ``` -**`exist_in_each_product_groups`** - +
+#### `exist_in_each_product_groups` 複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 @@ -1591,19 +1776,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 +1802,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`max_total_point_amount`** - +
+#### `max_total_point_amount` キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 +
+スキーマ + ```json { "type": "integer", @@ -1626,9 +1820,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`applicable_account_metadata`** - +
+#### `applicable_account_metadata` ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 @@ -1655,15 +1849,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`applicable_transaction_metadata`** - +
+#### `applicable_transaction_metadata` 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 @@ -1690,15 +1887,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`budget_caps_amount`** - +
+#### `budget_caps_amount` キャンペーンの予算上限を指定します。 キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 @@ -1706,6 +1906,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。 キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。 +
+スキーマ + ```json { "type": "integer", @@ -1714,6 +1917,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+ 成功したときは diff --git a/docs/cashtray.md b/docs/cashtray.md index d81b5ce..01ced51 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="point-preferred", # 支払い時の残高消費方式 + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID +)) +``` + + + +### Parameters +#### `cashtray_id` +Cashtray用QRコードのIDです。 + +QRコード生成時に送金元店舗のウォレット情報や、金額などが登録されています。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `customer_id` +エンドユーザーIDです。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `strategy` +支払い時に残高がどのように消費されるかを指定します。 +チャージの場合は無効です。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +
+スキーマ + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + +
+ +#### `request_id` +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。 +指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。 +もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|account_not_found|アカウントが見つかりません|The account is not found| +|422|cashtray_not_found|決済QRコードが見つかりません|Cashtray is not found| +|422|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 + 7721.0, # amount: 金額 + description="たい焼き(小倉)", # 取引履歴に表示する説明文 + expires_in=2713 # 失効時間(秒) +)) ``` ### 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=1256.0, # 金額 + description="たい焼き(小倉)", # 取引履歴に表示する説明文 + expires_in=2996 # 失効時間(秒) +)) ``` ### 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..47d74f4 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=7625, # ページ番号 + per_page=50, # 1ページの表示数 + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + organization_code="SuEUpdPie9qQ2GFfC", # 組織コード + expires_from="2023-12-05T15:20:16.000000Z", # 有効期限の期間によるフィルター(開始時点) + expires_to="2020-10-07T03:33:08.000000Z", # 有効期限の期間によるフィルター(終了時点) + created_from="2024-12-28T15:40:46.000000Z", # 作成日時の期間によるフィルター(開始時点) + created_to="2023-01-10T14:21:30.000000Z", # 作成日時の期間によるフィルター(終了時点) + issuer_shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 発行店舗ID + description="n8", # チャージQRコードの説明文 + is_onetime=False, # ワンタイムのチャージQRコードかどうか + is_disabled=False # 無効化されたチャージ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=7460.0, # 付与マネー額 + point_amount=2182.0, # 付与ポイント額 + description="test check", # 説明文(アプリ上で取引の説明文として表示される) + is_onetime=False, # ワンタイムかどうかのフラグ + usage_limit=1015, # ワンタイムでない場合の最大読み取り回数 + expires_at="2023-12-25T22:28:26.000000Z", # チャージQRコード自体の失効日時 + point_expires_at="2023-08-14T22:56:22.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=284.0, # 付与マネー額 + point_amount=5577.0, # 付与ポイント額 + description="test check", # チャージQRコードの説明文 + is_onetime=True, # ワンタイムかどうかのフラグ + usage_limit=5091, # ワンタイムでない場合の最大読み取り回数 + expires_at="2022-02-11T07:16:05.000000Z", # チャージQRコード自体の失効日時 + point_expires_at="2022-01-19T19:09:13.000000Z", # チャージQRコードによって付与されるポイント残高の有効期限 + point_expires_in_days=60, # チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + bear_point_account="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント額を負担する店舗のウォレットID + is_disabled=True # 無効化されているかどうかのフラグ +)) ``` ### 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..6799b2a 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="S", # クーポンID + coupon_name="qnjQBF0gN", # クーポン名 + issued_shop_name="y", # 発行店舗名 + available_shop_name="aBHzjlA", # 利用可能店舗名 + available_from="2025-07-23T14:34:12.000000Z", # 利用可能期間 (開始日時) + available_to="2023-10-04T07:00:48.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", + "XU9fbl4BElEfYJcTmiRof0lbldCRsSSTgoxqh3aCnDQum7xlHp8mSoN73gaH3XPju", + "2020-04-27T02:01:24.000000Z", + "2025-02-09T09:50:52.000000Z", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # issued_shop_id: 発行元の店舗ID + description="NgffostplBJ13qPcXVXQ9E7OqefuC0zsB8aQbgel1VXLZNhM7VCGfzH0E", + discount_amount=7025, + discount_percentage=5441.0, + discount_upper_limit=2852, + display_starts_at="2021-11-13T19:49:20.000000Z", # クーポンの掲載期間(開始日時) + display_ends_at="2020-04-19T05:00:25.000000Z", # クーポンの掲載期間(終了日時) + is_disabled=True, # 無効化フラグ + is_hidden=True, # クーポン一覧に掲載されるかどうか + is_public=False, # アプリ配信なしで受け取れるかどうか + code="4baZPNR", # クーポン受け取りコード + usage_limit=2092, # ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount=9813, # クーポン適用可能な最小取引額 + 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=6714 # クーポンを受け取ることができるユーザ数上限 +)) ``` `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="QNhB3KMhlAuhO2DrrEN6v7h6DIeIXBVaS0Zi07XrJykFEWCqS7fIGsgSUetvzhcyY8O4aW8dVGclxW2nJI1LDT3BhMLUADblZz6ydgd6gv", + description="eWK49xDzlQxtC3xLL1ERUl6NhqKkDSvghab5bsImY7PcHPZH7mHIXsOqC2xcKBYhL1xCfnaEpDLcNgoBzsuiKajpcQf4nuECfdVUoATZ0pZ1FEusk3svdOIWNVHFft", + discount_amount=6970, + discount_percentage=5069.0, + discount_upper_limit=3249, + starts_at="2022-05-31T22:33:30.000000Z", + ends_at="2025-05-22T09:20:05.000000Z", + display_starts_at="2025-12-13T13:18:25.000000Z", # クーポンの掲載期間(開始日時) + display_ends_at="2024-07-02T19:51:44.000000Z", # クーポンの掲載期間(終了日時) + is_disabled=True, # 無効化フラグ + is_hidden=False, # クーポン一覧に掲載されるかどうか + is_public=False, # アプリ配信なしで受け取れるかどうか + code="s", # クーポン受け取りコード + usage_limit=2660, # ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount=8083, # クーポン適用可能な最小取引額 + 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=6724 # クーポンを受け取ることができるユーザ数上限 +)) ``` @@ -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..edc1589 --- /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", + "2025-08-23T10:11:57.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 + 3183.0, # amount: 取引金額 + shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID + description="si4OQ6jQwMdVQzET3CTZR3naadmHoO937wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5QfKEnNvZa51B6RuNHWw3kkEIImb7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxW", # 取引説明 + 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..7cd9bcc 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=False # 返金有無 +)) ``` ### 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=True, # ウォレットが凍結されているかどうか + 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=3752, # ページ番号 + per_page=8184, # 1ページ分の取引数 + expires_at_from="2022-01-10T12:39:23.000000Z", # 有効期限の期間によるフィルター(開始時点) + expires_at_to="2022-08-18T08:15:18.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=7878, # ページ番号 + per_page=2541, # 1ページ分の取引数 + expires_at_from="2025-11-14T10:35:21.000000Z", # 有効期限の期間によるフィルター(開始時点) + expires_at_to="2024-09-03T05:46:25.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="pre-closed", # ウォレット状態 + account_name="EVyTrbdyJqmh3WRfGT9d54NzUibZax1gbEqwtEhHNUjZJEl7H6aHeFVmJSAKrLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5BuCe0yTSEIanUYTV2eUYLa0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf7GbuKVOo81owGN6i0XTT33lqYdKQ0h3ghVZk7eOE9tcwx8MOKl5MRsa1MFEYPOVzvPSXDUkbgX2oBsh", # アカウント名 + external_id="UtXGZ9lfp9TwgYPOmismihXWyqdhqoMR6", # 外部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=7187, # ページ番号 + per_page=5181, # 1ページ分のウォレット数 + created_at_from="2021-06-03T21:15:54.000000Z", # ウォレット作成日によるフィルター(開始時点) + created_at_to="2024-06-18T18:05:35.000000Z", # ウォレット作成日によるフィルター(終了時点) + is_suspended=False, # ウォレットが凍結状態かどうかでフィルターする + status="active", # ウォレット状態 + external_id="5yPsPRTmUYdZdYDDGZDuZ", # 外部ID + tel="020521-1451", # エンドユーザーの電話番号 + email="4tSh13qLZD@YdRT.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="bMgZiB4q5yXIKvcyeytZUeCO" # 外部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=7349, # ページ番号 + per_page=8376, # 1ページ分のウォレット数 + created_at_from="2025-06-03T12:25:53.000000Z", # ウォレット作成日によるフィルター(開始時点) + created_at_to="2024-05-12T16:35:49.000000Z", # ウォレット作成日によるフィルター(終了時点) + is_suspended=True # ウォレットが凍結状態かどうかでフィルターする +)) ``` ### 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=3075, # ページ番号 + per_page=94 # 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="transfer", # 取引種別 + is_modified=False, # キャンセル済みかどうか + start="2023-09-01T00:49:46.000000Z", # 開始日時 + to="2022-07-02T01:36:54.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..f030bc0 100644 --- a/docs/event.md +++ b/docs/event.md @@ -1,4 +1,10 @@ # Event +外部決済イベント(ExternalTransaction)を表すデータです。 +Pokepay外の決済(現金決済、クレジットカード決済等)を記録し、ポケペイのポイント還元を実現します。 +外部決済イベントを作成することで、キャンペーン連動によるポイント付与が可能になります。 +イベントのキャンセル(返金)にも対応しており、紐付いたポイント還元も同時にキャンセルされます。 +リクエストIDによる羃等性の担保もサポートしています。 + ## CreateExternalTransaction: ポケペイ外部取引を作成する @@ -6,48 +12,37 @@ ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。 - -```typescript -const response: Response = await client.send(new CreateExternalTransaction({ - shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - amount: 2106, // 取引額 - products: [{"jan_code":"abc", +```PYTHON +response = client.send(pp.CreateExternalTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + 8343, # 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 + done_at="2025-12-09T07:30:11.000000Z" # ポケペイ外部取引の実施時間 +)) ``` ### Parameters -**`shop_id`** - - +#### `shop_id` 店舗IDです。 ポケペイ外部取引が行なう店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -55,13 +50,16 @@ const response: Response = await client.send(new Crea } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 エンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -69,13 +67,16 @@ const response: Response = await client.send(new Crea } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -83,11 +84,14 @@ const response: Response = await client.send(new Crea } ``` -**`amount`** - +
+#### `amount` 取引金額です。 +
+スキーマ + ```json { "type": "integer", @@ -95,13 +99,16 @@ const response: Response = await client.send(new Crea } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -109,13 +116,16 @@ const response: Response = await client.send(new Crea } ``` -**`metadata`** - +
+#### `metadata` ポケペイ外部取引作成時に指定され、取引と紐付けられるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSONで指定します。 +
+スキーマ + ```json { "type": "string", @@ -123,9 +133,9 @@ const response: Response = await client.send(new Crea } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -137,6 +147,9 @@ const response: Response = await client.send(new Crea - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -146,15 +159,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 +178,25 @@ const response: Response = await client.send(new Crea } ``` +
+ +#### `done_at` +ポケペイ外部取引が実際に起こった時間です。 +時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。 +デフォルトではCreateExternalTransactionがリクエストされた時間になります。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ 成功したときは @@ -173,21 +208,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 +236,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 +250,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 +268,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 +290,12 @@ const response: Response = await client.send(new Refu } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -254,6 +304,8 @@ const response: Response = await client.send(new Refu } ``` +
+ 成功したときは @@ -271,18 +323,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 +344,8 @@ const response: Response = await client.send(new GetE } ``` +
+ 成功したときは diff --git a/docs/organization.md b/docs/organization.md index 842404b..dfa9c02 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="6F", # 組織名 + code="lBm7k1i" # 組織コード +)) ``` ### 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"], # private_money_ids: 加盟店組織で有効にするマネーIDの配列 + "zlm9ILQGKV@JoUC.com", # issuer_admin_user_email: 発行体担当者メールアドレス + "SY35cdkgvs@bAYC.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..3ce75c5 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-09-11T04:09:16.000000Z", # 開始日時(toと同時に指定する必要有) + to="2020-02-27T17:28:11.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="2022-06-01T02:45:28.000000Z", # 開始日時 + to="2023-01-14T14:30:46.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..f6ecf66 --- /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( + "qGQBWGD" # 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..9ae08af 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="1584854", # 店舗の郵便番号 + address="東京都港区芝...", # 店舗の住所 + tel="02892-7083", # 店舗の電話番号 + email="JRhRVsB9Hj@zBAZ.com", # 店舗のメールアドレス + external_id="fWzO75yHWR5FLMa", # 店舗の外部ID + with_disabled=False, # 無効な店舗を含める + 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="193-3711", # 店舗の郵便番号 + shop_address="東京都港区芝...", # 店舗の住所 + shop_tel="067-80077", # 店舗の電話番号 + shop_email="ZI2VSDvLJk@kZMM.com", # 店舗のメールアドレス + shop_external_id="EANfWVavAje3PJg4zkA5", # 店舗の外部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="847-2102", # 店舗の郵便番号 + address="東京都港区芝...", # 店舗の住所 + tel="043-34007718", # 店舗の電話番号 + email="kj3y6QjLE9@oTv9.com", # 店舗のメールアドレス + external_id="3Zg4O5dK9OBTn3gY0HIw", # 店舗の外部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", "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="258-6828", # 店舗の郵便番号 + address="東京都港区芝...", # 店舗の住所 + tel="0901-7557615", # 店舗の電話番号 + email="2tvIBnMyMg@4CnT.com", # 店舗のメールアドレス + external_id="j7ORUTt4jEgn4792da7Q", # 店舗の外部ID + private_money_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗で有効にするマネーIDの配列 + can_topup_private_money_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗でチャージ可能にするマネーIDの配列 + status="disabled" # 店舗の状態 +)) ``` ### 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..fcabd65 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( + "9uaTF42abkgSmtEHAWzKVm" # 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="2025-02-26T05:13:27.000000Z", # 開始日時 + to="2024-10-26T13:23:57.000000Z", # 終了日時 + page=1, # ページ番号 + per_page=50, # 1ページ分の取引数 + shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID + customer_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # エンドユーザーID + customer_name="太郎", # エンドユーザー名 + terminal_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 端末ID + transaction_id="N4", # 取引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=5624, + point_amount=1537, + point_expires_at="2020-03-29T07:08:16.000000Z", # ポイント有効期限 + description="1Q1Fha0o1JxRbdO7sJMkOiIt9zNKCX0VzisXLLiEpULitiIsW57odiOHhS8DsZfAQRFK6oTTeP8tTTuInowX2TMHi2vDKbmu8" +)) ``` ### 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( + "aUF4jypKaAY4yQaiw0JpUpNfjrUKaUCU4cuncfOgZgC0vnz9vdHX3zI" # 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="1M9", # 取引ID + is_modified=True, # キャンセルフラグ + types=["topup", "payment"], # 取引種別 (複数指定可)、チャージ=topup、支払い=payment + start="2025-05-15T21:40:32.000000Z", # 開始日時 + to="2025-03-21T09:34:05.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="2024-12-08T11:17:35.000000Z", # 開始日時 + to="2021-12-13T09:11:39.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=3589, # マネー額 + point_amount=6741, # ポイント額 + point_expires_at="2023-11-04T21:20:00.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,50 @@ 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 + 6810, # 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":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, + "is_discounted": False, + "other":"{}"}], # 商品情報データ + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # リクエストID + strategy="point-preferred", # 支払い時の残高消費方式 + coupon_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # クーポンID +)) ``` ### Parameters -**`shop_id`** - - +#### `shop_id` 店舗IDです。 送金先の店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -998,13 +1581,16 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 送金元のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1012,13 +1598,16 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1026,13 +1615,16 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`amount`** - +
+#### `amount` マネー額です。 送金するマネー額を指定します。 +
+スキーマ + ```json { "type": "integer", @@ -1040,13 +1632,16 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -1054,13 +1649,16 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1068,9 +1666,9 @@ const response: Response = await client.send(new CreatePaymen } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -1082,6 +1680,9 @@ const response: Response = await client.send(new CreatePaymen - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -1091,14 +1692,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 +1712,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 +1762,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 +1778,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 +1801,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 +1819,42 @@ 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", - "name":"name1", - "unit_price":100, - "price": 100, - "quantity": 1, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", +```PYTHON +response = client.send(pp.CreateCpmTransaction( + "qkrXtAeLmERqX5bwDROtzb", # cpm_token: CPMトークン + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID + 6834.0, # 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 + strategy="point-preferred" # 支払い時の残高消費方式 +)) ``` ### Parameters -**`cpm_token`** - - +#### `cpm_token` エンドユーザーによって作られ、アプリなどに表示され、店舗に対して提示される22桁の文字列です。 エンドユーザーによって許可された取引のスコープを持っています。 +
+スキーマ + ```json { "type": "string", @@ -1210,13 +1863,16 @@ const response: Response = await client.send(new CreateCpmTra } ``` -**`shop_id`** - +
+#### `shop_id` 店舗IDです。 支払いやチャージを行う店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1224,26 +1880,32 @@ const response: Response = await client.send(new CreateCpmTra } ``` -**`amount`** - +
+#### `amount` 取引金額を指定します。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` 取引説明文です。 エンドユーザーアプリの取引履歴などに表示されます。 +
+スキーマ + ```json { "type": "string", @@ -1251,13 +1913,16 @@ const response: Response = await client.send(new CreateCpmTra } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に店舗側から指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1265,9 +1930,9 @@ const response: Response = await client.send(new CreateCpmTra } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -1279,6 +1944,9 @@ const response: Response = await client.send(new CreateCpmTra - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -1288,14 +1956,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 +1976,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 +2011,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 +2033,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 +2050,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 +2058,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 +2073,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 + 6376.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 +2103,16 @@ const response: Response = await client.send(new CreateTransf } ``` -**`receiver_id`** - +
+#### `receiver_id` エンドユーザーIDです。 送金先のエンドユーザー(受け取り人)を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1407,13 +2120,16 @@ const response: Response = await client.send(new CreateTransf } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1421,13 +2137,16 @@ const response: Response = await client.send(new CreateTransf } ``` -**`amount`** - +
+#### `amount` マネー額です。 送金するマネー額を指定します。 +
+スキーマ + ```json { "type": "number", @@ -1435,13 +2154,16 @@ const response: Response = await client.send(new CreateTransf } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1449,13 +2171,16 @@ const response: Response = await client.send(new CreateTransf } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -1463,14 +2188,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 +2208,8 @@ const response: Response = await client.send(new CreateTransf } ``` +
+ 成功したときは @@ -1488,13 +2219,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 +2237,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 +2254,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 +2262,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 +2275,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", + 4234, + description="aCyQXA4kt1s5IzgftNOCeiOWbpouk4VaYSYsKX6oU3L46cfTNsJ74FdhPrGorQztiuURWZ5r1OnryKkdpmMzmoITgipjScgSjEKEvn", + request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID +)) ``` ### Parameters -**`user_id`** - +#### `user_id` +
+スキーマ ```json { @@ -1557,9 +2301,12 @@ const response: Response = await client.send(new CreateExchan } ``` -**`sender_private_money_id`** - +
+ +#### `sender_private_money_id` +
+スキーマ ```json { @@ -1568,9 +2315,12 @@ const response: Response = await client.send(new CreateExchan } ``` -**`receiver_private_money_id`** - +
+ +#### `receiver_private_money_id` +
+スキーマ ```json { @@ -1579,9 +2329,12 @@ const response: Response = await client.send(new CreateExchan } ``` -**`amount`** - +
+#### `amount` + +
+スキーマ ```json { @@ -1590,9 +2343,12 @@ const response: Response = await client.send(new CreateExchan } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -1601,14 +2357,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 +2377,8 @@ const response: Response = await client.send(new CreateExchan } ``` +
+ 成功したときは @@ -1626,17 +2388,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 +2412,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 +2430,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 +2442,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 +2466,8 @@ const response: Response = await client.send(new GetTransacti } ``` +
+ 成功したときは @@ -1713,20 +2489,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="2025-06-23T00:54:17.000000Z" # 返却ポイントの有効期限 +)) ``` ### Parameters -**`transaction_id`** - +#### `transaction_id` +
+スキーマ ```json { @@ -1735,9 +2512,12 @@ const response: Response = await client.send(new RefundTransa } ``` -**`description`** - +
+#### `description` + +
+スキーマ ```json { @@ -1746,11 +2526,14 @@ const response: Response = await client.send(new RefundTransa } ``` -**`returning_point_expires_at`** - +
+#### `returning_point_expires_at` ポイント支払いを含む支払い取引をキャンセルする際にユーザへ返却されるポイントの有効期限です。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -1758,6 +2541,8 @@ const response: Response = await client.send(new RefundTransa } ``` +
+ 成功したときは @@ -1773,22 +2558,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 +2582,8 @@ const response: Response = await client.send(new GetTransacti } ``` +
+ 成功したときは @@ -1810,21 +2598,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 +2621,8 @@ const response: Response = await client.send(new GetBulkTransac } ``` +
+ 成功したときは @@ -1846,23 +2637,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 +2662,14 @@ const response: Response = await client.send(new Li } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -1882,11 +2677,14 @@ const response: Response = await client.send(new Li } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -1894,6 +2692,8 @@ const response: Response = await client.send(new Li } ``` +
+ 成功したときは @@ -1924,22 +2724,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 +2748,15 @@ const response: Response = await client.send(new RequestUser } ``` -**`to`** - +
+#### `to` 集計する期間の終了時刻をISO8601形式で指定します。 時刻は現在時刻、及び `from` で指定する時刻の間である必要があります。 +
+スキーマ + ```json { "type": "string", @@ -1960,6 +2764,8 @@ const response: Response = await client.send(new RequestUser } ``` +
+ 成功したときは @@ -1973,7 +2779,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..fe698c0 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="2021-03-03T15:53:24.000000Z", # 集計期間の開始時刻 + to="2025-11-12T00:36:16.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="2024-04-08T03:11:39.000000Z", + to="2020-01-16T17:51:37.000000Z", + page=427, + per_page=5876, + shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + shop_name="fEeEirDJBvMOLUpWvpkfaBwAHAugbJ1KgmPImdwaTBcNwqaqeRCH16a6zzUqrHdosHdbmLywqukvEUDGTtuu5mLHhGQ9yekqoyNLKN2h7BNq3rRMob2yqEgXsKX0DNjA5LloLW2ZGwTADg0EGo2tY0BvAArU4c3Hcr3rYtMZs1", + customer_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + customer_name="hEQlphw1DkmThPoIdPA7X1r8JTPyIk7mw82VAIRkHcNMgqN77FQwuiGtQW4pnFSkfz0ZAYuHKErS89ga8rAwXpAiqw", + transaction_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + is_modified=False, + transaction_types=["cashback", "expire", "transfer", "exchange", "payment"], + transfer_types=["expire", "exchange", "topup", "transfer", "cashback"], # 取引明細の種類でフィルターします。 + 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="wWzmkMDA4SVfWD13Zj3L9DQPYajb0tVdWEdtL2ujHb", # 店舗名 + customer_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # エンドユーザーID + customer_name="A770c9iXi2Q1VWdznJovLhT0BrHHw3tEdBOJZocfpIFBg2EP1IMpzVlOR0ZjHbJ4pIYeH1mIjK91BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2IgQjODYIDOJbPEulQIvNSkQALktsxpQNr6y6a2", # エンドユーザー名 + transaction_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 取引ID + private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + is_modified=False, # キャンセルフラグ + transaction_types=["topup", "exchange", "payment", "transfer", "expire"], # 取引種別 (複数指定可)、チャージ=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=["coupon", "cashback", "payment", "expire", "topup", "transfer"], # 取引明細種別 (複数指定可) + description="店頭QRコードによる支払い", # 取引詳細説明文 + start="2025-10-29T21:02:36.000000Z", # 開始日時 + to="2026-02-04T01:59:46.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..825a4e6 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: タスク名 + "CgQheyC" # 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="SnP", # 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..e579095 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-02-22T09:56:17.000000Z", + shop_name="7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5Boy", + 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="2022-07-03T08:06:41.000000Z", + point_expires_at="2025-03-07T03:35:34.000000Z", + point_expires_in_days=4183, + bear_point_account="fa06ce06-7cc5-4cf5-bd35-f5fd3dfd8e6a", + 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="2022-11-06T22:56:44.000000Z", + point_expires_at="2022-11-07T07:40:47.000000Z", + point_expires_in_days=2445, + bear_point_account="8fed199f-b9c1-46e5-ba34-c9296ebef7b3", + is_disabled=False )) self.assertNotEqual(response.status_code, 400) def test_get_cpm_token_0(self): response = client.send(pp.GetCpmToken( - "NHRO5ZxO4O3NjLEysHxuDJ" + "BTjYiVtdGDmgs4Vk2VUx2t" )) 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="I5N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_2(self): response = client.send(pp.ListTransactions( - types=["cashback"], - description="EpgsB3u1k6p1M3AaDCD8U2M3hy0vfxtwSmqJp6yKARh5ZRW3Kxq9vutzMeQNTZUuVlFabCqRikwgbBJfMhTrHTPQaRFRzLrLpSH0GqkthOAKJR8VBFpRQxxKQe" + types=["payment", "cashback", "expire", "topup"], + description="UmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQPcXHRn98CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL" )) 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=["topup", "expire", "cashback", "exchange_inflow"], + description="AVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mhVFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfw" )) 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", + private_money_id="df268cd2-ffae-4ca1-afeb-cd51301da2a6", is_modified=False, - types=["expire", "payment", "cashback"], - description="FQKcrRJGtyzouTG0fNi1SBzVwDCpwO7mzwiIebwBbgsjluVjYrLryI60OsM6yKV" + types=["exchange_outflow", "exchange_inflow", "topup", "expire", "cashback", "payment"], + description="s7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_5(self): response = client.send(pp.ListTransactions( - organization_code="NiR4y3oI6DDGG-8-2bm99nV4-6", - private_money_id="810867ad-d660-425c-8f8f-9b012eadea00", + organization_code="gzf9-s--", + private_money_id="f2799588-2032-40c4-8f22-01a004da92ea", is_modified=True, - types=[], - description="uCdyUUls75UdwXdZijuTLMB27QQHu" + types=["cashback", "payment", "expire", "topup", "exchange_outflow", "exchange_inflow"], + description="FZcru468uiy2IBQsKNbECUonyUv3nTPZ701h3V5Qywi2pn04JUSx27eVH" )) 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", + transaction_id="wOx", + organization_code="2mo7-c--6k-6HA3IhSPF--Ue-xT-4af", + private_money_id="89d58316-8711-4ff4-9ad8-f03910cfe9b7", is_modified=False, - types=["exchange_inflow", "topup", "expire", "exchange_outflow"], - description="N4lU5sMlhBuyia62bkzzlqIc0ydT6mqiA8RNdj3U" + types=["payment", "topup", "exchange_outflow", "expire", "cashback"], + description="SO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXDkJqy1UyPaGHVkyMSdmemZcovbEUc9TiM3DTSa7pJlo8JS" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_7(self): response = client.send(pp.ListTransactions( - terminal_id="803db879-0d54-4a71-8821-93559b8743f2", - transaction_id="wecpoFXApI", - organization_code="-3-5n-r--7-0B--g4l-p-2M-z2-s", - private_money_id="19ab3ea3-5c42-45bf-a247-5a075756b9a1", + terminal_id="56f95536-769a-4d0e-92a6-4e14103c7aab", + transaction_id="IVfCl8", + organization_code="V-xiY1-NW-B", + private_money_id="b180e8a3-cf92-4a2d-9c8a-8a414a4d5fc9", is_modified=True, - types=[], - description="gB5z5qrK2mXuD0UWST9ldTa29xEBfE4jaoCgaw81ksIPXpJoHnKZwzgtMuSjmXprQOJIDMtkxUA3CwMowYwsohy6o54EyGXhKAybq9is4L00eclCf6ygQgmzcLUKbT5feGtXeOgCjHXo5HdhOmdyoXuDdYfk0Kl5lQobWMeUr" + types=["exchange_outflow", "exchange_inflow", "payment", "expire", "topup", "cashback"], + description="7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw" )) 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", - is_modified=False, - types=[], - description="HzepSQlFXs1g1p8h9cEw94TVm3QEXbRfQ4MBKBqC3S2iDFnRE3SwskPWs7mGvsLBFz2ikalm5QIcpZb2q5YnZ6axCoTTIbjOEPBaRli2lUAMJ7CyG5TMfzsA0CzHGei6FNa5iNHS8ae3s1VgKjc7Q8j7Z0S" + customer_name="uibv6O0nFaLFwVLIZnC6rDyYuuG1XnlSIVaCTCoBzc3Polsdb", + terminal_id="8251487b-9e72-4017-8a12-4778f3610255", + transaction_id="bpTkQ", + organization_code="---", + private_money_id="1778578f-32ea-4c7e-ad67-17a0a8794508", + is_modified=True, + types=["cashback", "topup", "payment", "exchange_outflow"], + description="0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigdB" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_9(self): response = client.send(pp.ListTransactions( - customer_id="bbb9b557-aa05-42df-8d3f-53cca7d69395", - customer_name="nzw7xhca7VuCPQn3tgDKKsPg1tK8tF9sjwQnBp1nMIeAnY6Xeri5tCJDZsGcVm09iZYX0jHs0ds3Y41lK02B8JXAbkOFKSHaiDX11U4V4mzkiQ9KgdufJCOqQoqEQic9b7rjANNhMIW5uX0nomeRn6xi8YDAJH7HJXNF3Oy8VhKyGvyermibojKhVPIvz1I1HvcbolySSXeAcLtwR", - terminal_id="f8abfb31-45b1-413a-a4f8-7c0bcaa3c7c4", - transaction_id="AJrx0pv", - organization_code="L2-kAk10H", - private_money_id="e428bf44-d697-4b39-9345-02bb98291d91", + customer_id="580e0116-ee8a-4f59-ab76-cb11d030654b", + customer_name="VDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbPQzPR", + terminal_id="62638e2b-75e9-49a4-b298-354c01ca9e86", + transaction_id="7", + organization_code="km-", + private_money_id="be5049b5-d4e3-4db4-9e3a-452b180f6db0", is_modified=False, - types=["expire", "cashback", "exchange_outflow", "payment", "exchange_inflow", "topup"], - description="oiZ9sjCAHNKHbkDV7xD9UgYkUYCn38T5jddnt" + types=["topup", "cashback"], + description="ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8" )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_10(self): response = client.send(pp.ListTransactions( - shop_id="565d6596-9682-4c21-8cfc-05fdab2294df", - customer_id="336ec650-2cb9-4f90-abc0-a2fc4ae562f7", - customer_name="vyYD1qoSVwF6tpYAPGi6YnBQDM8MlLw6WNmhQ1XbNNNiRTERN1SPoqCbHjtLPWoEeyLYkaItEzRnlzKYkySdT2Gi04uqdwqTzZvD1PwMG5sUToLzAoDfdSJfprAXytppmaGjNfTvZeWlNcmFKOSukr", - terminal_id="3c8bd2dc-622f-46d0-b0e1-b4539f4ca774", - transaction_id="C08Ccb", - organization_code="-F-0F-30--u8E-UjA1yE-86h-", - private_money_id="53bd51c1-5eed-4b95-8af9-31db853099f5", + shop_id="1de6c588-dfa3-484b-865e-feae8a6fa84a", + customer_id="7dfe169c-70df-42c4-8c46-272fa46f19c8", + customer_name="DE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8ZrqfNGAkbzmAIScfq8JbwsUjFhr3NwoE", + terminal_id="bf580021-7e25-46f9-a167-3f3221ec8814", + transaction_id="fuJi", + organization_code="5w55X0-w-37", + private_money_id="e8cea510-6f0f-41c0-9ff1-e00e866e54a1", is_modified=True, - types=[], - description="v51Dnx9WEjtPQeVvIzNJybaWd5nDKgnWgGOF388caTufq1V8gMtPEUm5qxAkXQdgmA6Ox4Cr60" + types=["exchange_outflow", "expire", "payment", "exchange_inflow", "cashback"], + description="GA8B6QEvmEtQTqfIDfhF08aWAgY" )) 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", + per_page=4428, + shop_id="912678e7-2bcd-40bc-92e7-b1be4e34f2b4", + customer_id="7b5f97ac-1b5c-4be5-a96a-c6f5cb228d19", + customer_name="i0x4AzukqXii06wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0P", + terminal_id="87fcfd6b-5fb5-49b5-9cdb-6529a6653d70", + transaction_id="u", + organization_code="1B6TGi28--mZp5aG-9--MmO6457298O", + private_money_id="50ebae31-2c49-4182-aeaf-302ea04a3be9", is_modified=False, - types=["topup", "cashback", "expire", "exchange_outflow"], - description="7shqF2iDJgp3ZW8SpDn16YEfYX3JUUHHD0kbha6rpojFdIy8Lev3F8En8X" + types=["cashback", "exchange_outflow", "expire"], + description="bDj1sJ7k6dP6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR88F7Ubd6EIlmfb" )) 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", + page=1958, + per_page=5918, + shop_id="ea1dd1c2-c9ea-4b85-bf71-c4310d5bccbe", + customer_id="d79a5203-5e2c-403c-a822-26fdf23dfb3c", + customer_name="3aM3MFSn6Z9Xp0dYAIwKPnm62HiK7", + terminal_id="f1c2eeb7-2535-44a0-8655-b1ea851422ca", + transaction_id="wWsCFU", + organization_code="LYQf-X-6--oZ", + private_money_id="4591de5a-0210-4461-a6c3-1e458e9de94d", is_modified=False, - types=["expire", "topup", "exchange_inflow", "cashback"], - description="Qy1efJIm6p2nFeDatBkmxJUfJ8iWJ5x76ilzTFGw7NqxtlVIVfYnX2Qn7EnOChsUwktnh8VjRFve7MdNMBgFvJyEEmkecVySQ3ucJUKFqVhyrEcw3WNc5IXHiI2Hhl1OjgN6fFukYqihBSq8D0896GNWlaYQ8akcWxDZkhO" + types=["exchange_outflow", "payment", "expire"], + description="u8UbXHSU9E0Qlg3gebv" )) 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="2025-06-19T11:13:05.000000Z", + page=1400, + per_page=2910, + shop_id="99f5f76a-c87c-4afa-9147-8c38e0fb7e55", + customer_id="3becd959-5e87-4e1d-9e03-476113e3c0ac", + customer_name="pgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5qYfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua2WPHw1UTjf1quigD2l2JnK33Y2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQdZo", + terminal_id="5a8ebae6-9552-4955-8fd5-633fbf8ebc2f", + transaction_id="AciXV", + organization_code="--", + private_money_id="75fb9307-fdd0-4d59-8fb9-a22971b56b51", is_modified=False, - types=["exchange_outflow", "cashback", "expire", "topup"], - description="DzJGZ9TM0TySjAlV" + types=["topup", "payment", "expire", "exchange_outflow", "exchange_inflow", "cashback"], + description="AAaWngq9PQfQxKRvEszf3mWAEHwNafu" )) 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", - is_modified=False, - types=["expire", "topup", "exchange_outflow", "exchange_inflow"], - description="C2YnEIi9qrFhHU4UChBktVJM6Ehoat5RskjtjMRgfY9KAojiVjkW" + start="2022-12-21T04:32:06.000000Z", + to="2021-05-03T15:40:54.000000Z", + page=7782, + per_page=7533, + shop_id="dca73902-114f-44d5-bc27-9e37e6a00d27", + customer_id="ae71c378-8bc3-4f07-aec1-5cf92603cc15", + customer_name="i0eUz4xXH5OLhVoB1lIuiOfxpiSD0u", + terminal_id="13a621fc-8c7b-4fe1-82ec-36a4709f1555", + transaction_id="Mr1a", + organization_code="IFW4----yit4z-C0m-1I-WP89UGA", + private_money_id="52332b04-0896-42f6-8920-41a04a07f125", + is_modified=True, + types=["payment", "exchange_inflow", "cashback", "expire"], + description="JEHCCuKl" )) 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" + "1a939b17-6eee-4066-95ce-fcae5000d78a", + "28bdaed6-3a54-4457-95c6-721c586a45d4", + "fd0d2c04-e3fc-4f7b-ab68-bb3499b44e59" )) 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" + "1a939b17-6eee-4066-95ce-fcae5000d78a", + "28bdaed6-3a54-4457-95c6-721c586a45d4", + "fd0d2c04-e3fc-4f7b-ab68-bb3499b44e59", + description="ZxFDhr8QjYlB42oGAhylpmFOwCdKPABZdrgh98RslDBuoJSIFUrTRne91u8KmONYX" )) 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" + "1a939b17-6eee-4066-95ce-fcae5000d78a", + "28bdaed6-3a54-4457-95c6-721c586a45d4", + "fd0d2c04-e3fc-4f7b-ab68-bb3499b44e59", + point_expires_at="2021-11-14T15:24:08.000000Z", + description="ce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzry" )) 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" + "1a939b17-6eee-4066-95ce-fcae5000d78a", + "28bdaed6-3a54-4457-95c6-721c586a45d4", + "fd0d2c04-e3fc-4f7b-ab68-bb3499b44e59", + point_amount=130, + point_expires_at="2025-06-18T15:39:58.000000Z", + description="kAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCY" )) 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" + "1a939b17-6eee-4066-95ce-fcae5000d78a", + "28bdaed6-3a54-4457-95c6-721c586a45d4", + "fd0d2c04-e3fc-4f7b-ab68-bb3499b44e59", + money_amount=3668, + point_amount=5770, + point_expires_at="2025-06-26T13:43:49.000000Z", + description="HrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_transaction_group_0(self): + response = client.send(pp.CreateTransactionGroup( + "2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0Q" + )) + self.assertNotEqual(response.status_code, 400) + + def test_show_transaction_group_0(self): + response = client.send(pp.ShowTransactionGroup( + "a18c8629-4a06-4576-99be-329f4638590b" )) self.assertNotEqual(response.status_code, 400) @@ -1209,920 +1563,1281 @@ def test_list_transactions_v2_0(self): def test_list_transactions_v2_1(self): response = client.send(pp.ListTransactionsV2( - per_page=728 + per_page=209 )) 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="ae340a84-f2c3-4cd2-bbb5-49490f0c4d13", + per_page=746 )) 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="45f16d8c-a59f-4807-80a0-a9a1e07dc659", + prev_page_cursor_id="f77259bc-6c5a-493f-a87b-05d8e4b5747d", + per_page=824 )) 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="2023-06-06T23:22:21.000000Z", + next_page_cursor_id="65edf831-fbf1-4c78-ac78-fcc3bbabddc4", + prev_page_cursor_id="b59cb597-c346-447d-aa5e-abd741577908", + per_page=775 )) 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-24T06:14:31.000000Z", + to="2021-09-02T07:54:10.000000Z", + next_page_cursor_id="b42c93ba-8b73-4ff3-a2b8-cf0c05f6ad36", + prev_page_cursor_id="a069e5c4-b57f-4ea4-b996-25d8c6009908", + per_page=859 )) 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", "cashback", "payment", "exchange_outflow"], + start="2024-04-03T00:36:24.000000Z", + to="2022-05-10T12:31:10.000000Z", + next_page_cursor_id="7414e088-3838-47ea-a497-ed327b80edbe", + prev_page_cursor_id="07004b09-bfe6-4ea2-bc90-285046235c10", + per_page=3 )) 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=["exchange_inflow", "topup", "expire", "cashback", "payment"], + start="2021-02-08T10:41:26.000000Z", + to="2021-09-13T06:51:27.000000Z", + next_page_cursor_id="ac4868e8-bd8b-40a2-8452-94782b20001b", + prev_page_cursor_id="c44cd7dd-c063-4c65-9f1e-b281f266f42f", + per_page=930 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_8(self): response = client.send(pp.ListTransactionsV2( - transaction_id="Leg5dXf", - 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 + transaction_id="psSsdec", + is_modified=False, + types=["topup", "cashback", "payment", "exchange_inflow", "exchange_outflow", "expire"], + start="2022-04-26T07:38:34.000000Z", + to="2022-11-29T02:34:18.000000Z", + next_page_cursor_id="2aa71041-3949-4e4d-8be0-6280b6b3f6b8", + prev_page_cursor_id="d2baf7ea-05f5-42ac-b914-2fb87d379458", + per_page=39 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_9(self): response = client.send(pp.ListTransactionsV2( - description="dHtUdWqjwNZ6SqXcjRYXWjjppT0r9xvCuvBOfsidrDI9VlsfxLxW5axZvNGABU1Kq4dKF1bCFldqrEeXCX83UsZSPbix6b1Za3ly7V", - transaction_id="1xEB", + description="f3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaB", + transaction_id="WWGJs", 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=["cashback", "payment", "expire"], + start="2020-10-02T01:49:13.000000Z", + to="2022-09-01T03:18:59.000000Z", + next_page_cursor_id="e6c97ac9-7e26-465e-b575-a3ed6c39bacd", + prev_page_cursor_id="d60a13d6-f664-4a16-ac01-df9fba2ae897", + per_page=948 )) 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="leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKj", + description="G53Xpalhw5eupOSaoLetupiL", + transaction_id="JGKA08kU", + is_modified=False, + types=["exchange_inflow", "expire", "exchange_outflow", "topup", "cashback", "payment"], + start="2025-06-11T12:05:01.000000Z", + to="2023-02-19T03:46:06.000000Z", + next_page_cursor_id="74b367c7-0671-469a-b2b0-8d899d871c43", + prev_page_cursor_id="d158ea20-3aa8-4e63-a3f1-7f59d9c42d4f", + per_page=711 )) 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="098d70f4-a17b-489e-a8f1-8ce8b0b1ea5d", + customer_name="MLy1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7WZiumuB2TNJcJGvSmksA1M", + description="W1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZ", + transaction_id="PDhn3kvKQd", 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=["topup", "expire", "cashback", "exchange_outflow"], + start="2023-10-20T23:33:41.000000Z", + to="2022-01-08T03:04:03.000000Z", + next_page_cursor_id="0e49c8b7-e08c-4398-8a47-3ae1946de85d", + prev_page_cursor_id="64b00ee8-d0cd-4c0f-8e1f-14304acc2b70", + per_page=19 )) 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", - 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 + terminal_id="01dfef27-6473-41f0-ad2e-dc6de44fffdc", + customer_id="c07f96a2-2d21-4135-9640-a042c6851c24", + customer_name="WaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBG", + description="Wwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4z", + transaction_id="LyYmVuu", + is_modified=False, + types=["expire", "exchange_inflow", "cashback", "topup"], + start="2024-12-02T16:14:21.000000Z", + to="2024-06-09T17:54:46.000000Z", + next_page_cursor_id="985c2180-8c40-4753-8f21-2766712bd439", + prev_page_cursor_id="054b129a-6230-46c9-8c4c-84680a7074ba", + per_page=562 )) self.assertNotEqual(response.status_code, 400) def test_list_transactions_v2_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="734ec046-c66e-47bd-8586-e53b5f3a5494", + terminal_id="d49733f6-ec35-4660-aa40-ba1385f75670", + customer_id="10e4a5c3-bb76-4eb1-ba02-5721ddf7118f", + customer_name="tILSktq1cNxb1w0fAXCRcSE6z5QHSLVITc", + description="WyXkWwNeThLpKI1N6RIM", + transaction_id="7t0u9TuR54", 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_outflow", "cashback", "payment", "exchange_inflow", "topup"], + start="2025-11-26T10:25:31.000000Z", + to="2021-11-30T00:27:22.000000Z", + next_page_cursor_id="79df1319-06ab-4d13-971b-79acff87f4b3", + prev_page_cursor_id="88947cb4-8c7a-42b4-a9ae-d385698651aa", + per_page=491 )) 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="lE7cp", + shop_id="53835712-0259-4162-a134-f1b2542f9274", + terminal_id="3589c597-9888-4f2f-8bb1-785d703938fb", + customer_id="b6a36845-afd4-4797-9adf-bad67cd0e5fd", + customer_name="imXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4UwDxtqXzHNdytk1inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeF", + description="KTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7", + transaction_id="7plclcWB", is_modified=False, - types=[], - start="2022-01-01T10:12:21.000000+09:00", - to="2019-06-09T05:22:32.000000+09:00", - next_page_cursor_id="690f4903-a5f1-41dc-adf9-4e3875a63e1a", - prev_page_cursor_id="d423ded4-7964-4fa7-b052-f7cf4a704a52", - per_page=529 + types=["payment", "exchange_inflow"], + start="2025-12-08T18:05:57.000000Z", + to="2025-03-18T23:39:01.000000Z", + next_page_cursor_id="0e519b30-ab91-49a8-ad4c-1fc168d917c2", + prev_page_cursor_id="cc95feab-f98f-4bbe-befa-488e0690ec94", + per_page=205 )) 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", + private_money_id="9631cc03-ad53-4db5-9cc1-adbe67647abf", + organization_code="5-v2-2F-d8--1w988-c", + shop_id="3478ee6f-3141-4ab1-ba9b-f9d6ebd695aa", + terminal_id="dea6a161-23d8-4551-b1de-9123c2817dd9", + customer_id="33acd091-527c-437a-a3b4-c98de9263119", + customer_name="H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXU", + description="J1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08", + transaction_id="bIXfaz", 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 + types=["payment", "exchange_inflow", "expire", "exchange_outflow", "cashback"], + start="2023-04-19T22:43:44.000000Z", + to="2023-10-27T04:21:48.000000Z", + next_page_cursor_id="f0993d78-1b9b-4901-8a89-e69eca0938ce", + prev_page_cursor_id="3cd22d45-151e-4d97-88a5-016658b99028", + per_page=718 )) 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=145 )) 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="9bad5eff-b837-445a-9f5d-3e1333fdd870", + per_page=361 )) 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="ad773a45-c0fa-4adf-b825-400bea1a7236", + prev_page_cursor_id="ebd43688-17b2-439d-a604-5db849b66cc6", + per_page=975 )) self.assertNotEqual(response.status_code, 400) - def test_create_topup_transaction_4(self): - response = client.send(pp.CreateTopupTransaction( - "4b9b2098-1ea7-4b7d-94b6-42385c3006aa", - "1fdefda8-8f90-479c-b3b5-04a02d3d9534", - "2b085fef-414f-404e-b30c-07caf16f239c", - point_expires_at="2022-08-02T22:15:07.000000+09:00", - description="1fxLB1", - metadata="{\"key\":\"value\"}", - request_id="d487cff9-f3e6-4eb5-9112-3064cda241fc" + def test_list_bill_transactions_4(self): + response = client.send(pp.ListBillTransactions( + to="2021-08-20T09:35:54.000000Z", + next_page_cursor_id="1405e00e-41dc-4d61-aa2e-c644530c2dde", + prev_page_cursor_id="fd911c65-54ec-48b7-b219-846f216e4c3e", + per_page=256 )) 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", + def test_list_bill_transactions_5(self): + response = client.send(pp.ListBillTransactions( + start="2023-05-14T22:58:22.000000Z", + to="2024-08-02T01:38:06.000000Z", + next_page_cursor_id="d4c3a297-b1b4-4aac-be9d-409928ed6bca", + prev_page_cursor_id="766a7154-aa36-4a1f-98d9-3b7b3b702882", + per_page=308 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_6(self): + response = client.send(pp.ListBillTransactions( + is_modified=True, + start="2026-03-30T08:16:25.000000Z", + to="2024-03-01T01:04:29.000000Z", + next_page_cursor_id="623d4cb3-c895-4484-9133-0e857719255d", + prev_page_cursor_id="8204c597-4165-4a0e-abdb-b83a72fceffb", + per_page=784 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_7(self): + response = client.send(pp.ListBillTransactions( + bill_id="25acd5b4-64a7-490e-a526-ff8016803be1", + is_modified=True, + start="2023-06-19T15:47:35.000000Z", + to="2021-11-21T07:25:28.000000Z", + next_page_cursor_id="de3f27f8-2e40-4aed-b312-97f2e3a6d8da", + prev_page_cursor_id="33a76fca-6319-4950-a697-8a1c6049173e", + per_page=99 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_8(self): + response = client.send(pp.ListBillTransactions( + transaction_id="bd666eb5-253c-4d42-83b1-1c4b0aca1db9", + bill_id="7a90f05a-5ccc-4a02-8afe-fbea67755dec", + is_modified=False, + start="2024-05-26T16:41:53.000000Z", + to="2021-06-30T14:21:46.000000Z", + next_page_cursor_id="ddd2b872-67e3-40c7-b4e3-7e46024f6100", + prev_page_cursor_id="5df4745f-a378-4b8d-b939-b630b229ff44", + per_page=310 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_9(self): + response = client.send(pp.ListBillTransactions( + description="go4dBLdUCSZVd4cTqnNfSRiXLw6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3jya01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYS", + transaction_id="a6eed09a-5fc9-4143-b4d9-98e39c4639e2", + bill_id="36843490-b6c8-487b-9c6c-898a6c9018b2", + is_modified=False, + start="2021-07-17T12:35:26.000000Z", + to="2021-02-22T11:45:47.000000Z", + next_page_cursor_id="c2194274-76c6-46bc-9c31-b219b80dd136", + prev_page_cursor_id="f4a270e7-4d70-4761-90b5-601e471e8eb4", + per_page=546 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_10(self): + response = client.send(pp.ListBillTransactions( + terminal_id="5ca26798-e961-49a2-be74-9f280eac043a", + description="tROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmym", + transaction_id="81750f73-e519-4764-95fa-6fa3c7967340", + bill_id="cf7ee2a5-16f6-4f7d-a89d-a4d591595b99", + is_modified=True, + start="2020-04-18T09:40:20.000000Z", + to="2022-07-30T05:15:25.000000Z", + next_page_cursor_id="e42f5f72-3a63-49b2-9f9f-e831144d69b0", + prev_page_cursor_id="931efb81-3fe0-4f56-af97-cc7a9d623959", + per_page=300 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_11(self): + response = client.send(pp.ListBillTransactions( + customer_name="z4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCp", + terminal_id="3bd7c974-9472-4640-be99-cc381d65782b", + description="X3OQSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNca", + transaction_id="90413dc9-b976-49b4-8b3a-8f9507c8d8c3", + bill_id="fbd4c9f9-d310-4732-9b84-843b8cb39107", + is_modified=False, + start="2023-06-26T06:54:14.000000Z", + to="2022-09-28T11:35:33.000000Z", + next_page_cursor_id="87299469-9047-45ce-a553-6e943edae044", + prev_page_cursor_id="89c443ca-edf5-40e5-9217-f1d7831c09a9", + per_page=900 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_12(self): + response = client.send(pp.ListBillTransactions( + customer_id="83f2784e-3421-498a-a7a2-d27d371280a7", + customer_name="AF2iLhk", + terminal_id="a2b5b6c2-0583-4f30-b8ed-5a8e7481bc57", + description="oSEw4Yfnz5e3bjXKldANGzSZe", + transaction_id="d1fd6234-8c39-4597-bd1a-9b2dee7d9390", + bill_id="1ba10cf1-6e8e-4e8c-8b3b-0e567bdbf29a", + is_modified=False, + start="2022-09-20T16:42:39.000000Z", + to="2024-03-06T07:44:50.000000Z", + next_page_cursor_id="9bb11f80-2868-4696-af9b-dbec304adc4c", + prev_page_cursor_id="f5cb8c28-83ac-4a8a-a3a4-9beec31baa66", + per_page=585 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_13(self): + response = client.send(pp.ListBillTransactions( + shop_id="bc547d41-d867-4f2f-beae-94f0f88bd397", + customer_id="71830d00-7a14-4193-92ce-2b4a51ab617e", + customer_name="DDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04aLs4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZma6CRo8nyJO9Y3f9djMgk8QSZwJ1udEIb", + terminal_id="b5d99fa9-4089-4498-b73e-777aa0278abf", + description="DJ6KZTEk", + transaction_id="0f3dd314-0f30-4d3a-886d-a827168a35c4", + bill_id="22d3be7f-8452-4b47-b1bf-6564a3e61a38", + is_modified=True, + start="2024-06-30T15:41:11.000000Z", + to="2025-05-20T12:31:12.000000Z", + next_page_cursor_id="d06e9347-04e9-4b68-8632-23298ca3f192", + prev_page_cursor_id="0e9cec5c-70fa-43ef-a680-acb2a134a2c7", + per_page=512 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_14(self): + response = client.send(pp.ListBillTransactions( + organization_code="mKJ--75s7gz-M48E-18OL1oy-", + shop_id="508dfc0b-9993-4e4c-8ff3-ab36127350a5", + customer_id="60fe0e50-aba1-4233-bb7c-2964f54d34af", + customer_name="LhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQl4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1", + terminal_id="ddce7143-94a8-4ecf-b588-b3a82e876a08", + description="FyNt", + transaction_id="2e34a86f-8929-4e70-b1c9-4d3f50cb8fbf", + bill_id="31547cbb-d9b6-4be2-8000-9a432a0f4b2a", + is_modified=True, + start="2025-01-02T09:10:10.000000Z", + to="2025-06-28T13:47:42.000000Z", + next_page_cursor_id="805e28c4-0e83-4ee0-a72c-66af1745b151", + prev_page_cursor_id="d0da3b3d-8d54-4590-a9c2-787a5111fdb8", + per_page=489 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_bill_transactions_15(self): + response = client.send(pp.ListBillTransactions( + private_money_id="9402a5e0-6e8c-4aae-af70-42baffae7dec", + organization_code="mkK4-0T5lf-2dLNw-ZD6890", + shop_id="b4a5bfe9-4a5e-48c1-8bce-dd64b15b9c4d", + customer_id="85b60b1a-641b-4abd-8eb0-16f9b197b1f9", + customer_name="6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH", + terminal_id="19a91c59-b734-4147-80d0-a82a1224a44d", + description="gqa4p3NBV6jnDEmNin", + transaction_id="2eb7b49f-ffed-4618-99fc-e4e0ce656897", + bill_id="3c306e03-fc9f-4742-819e-76eb7dc7271d", + is_modified=False, + start="2022-05-20T09:18:53.000000Z", + to="2021-11-16T00:34:46.000000Z", + next_page_cursor_id="3bbe96ec-b0d7-48f1-8264-4c34b76d1456", + prev_page_cursor_id="d8a356a7-f6e7-4af4-a0e1-d1d40a999d97", + per_page=568 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_0(self): + response = client.send(pp.CreateTopupTransaction( + "9a25518a-000b-42ee-bc05-46f80f9fca39", + "2d49628f-4b18-4524-aec3-c4280977728e", + "b9fbe043-ad9e-4183-933f-5fc7705dc2cf" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_1(self): + response = client.send(pp.CreateTopupTransaction( + "9a25518a-000b-42ee-bc05-46f80f9fca39", + "2d49628f-4b18-4524-aec3-c4280977728e", + "b9fbe043-ad9e-4183-933f-5fc7705dc2cf", + request_id="fef94827-693b-4ad9-9199-e5be51599088" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_2(self): + response = client.send(pp.CreateTopupTransaction( + "9a25518a-000b-42ee-bc05-46f80f9fca39", + "2d49628f-4b18-4524-aec3-c4280977728e", + "b9fbe043-ad9e-4183-933f-5fc7705dc2cf", + metadata="{\"key\":\"value\"}", + request_id="4f723471-7a27-4cfb-b380-52712d49bf59" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_3(self): + response = client.send(pp.CreateTopupTransaction( + "9a25518a-000b-42ee-bc05-46f80f9fca39", + "2d49628f-4b18-4524-aec3-c4280977728e", + "b9fbe043-ad9e-4183-933f-5fc7705dc2cf", + description="PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7", + metadata="{\"key\":\"value\"}", + request_id="5d230825-d691-48e5-b19f-7244281dfb2e" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_4(self): + response = client.send(pp.CreateTopupTransaction( + "9a25518a-000b-42ee-bc05-46f80f9fca39", + "2d49628f-4b18-4524-aec3-c4280977728e", + "b9fbe043-ad9e-4183-933f-5fc7705dc2cf", + point_expires_at="2020-03-04T00:48:10.000000Z", + description="RmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco", + metadata="{\"key\":\"value\"}", + request_id="93e24f33-673e-430c-8bf7-322aa8b400e8" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_5(self): + response = client.send(pp.CreateTopupTransaction( + "9a25518a-000b-42ee-bc05-46f80f9fca39", + "2d49628f-4b18-4524-aec3-c4280977728e", + "b9fbe043-ad9e-4183-933f-5fc7705dc2cf", + point_amount=5418, + point_expires_at="2025-01-08T05:08:58.000000Z", + description="qpMqyENnnotJKNM2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjkso", metadata="{\"key\":\"value\"}", - request_id="f1ee1412-40fb-491d-b13a-170163f455a8" + request_id="a64e2c11-725c-48ea-8292-da34e265a650" )) 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", + "9a25518a-000b-42ee-bc05-46f80f9fca39", + "2d49628f-4b18-4524-aec3-c4280977728e", + "b9fbe043-ad9e-4183-933f-5fc7705dc2cf", + money_amount=2964, + point_amount=6870, + point_expires_at="2023-07-10T01:28:25.000000Z", + description="BfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5t", metadata="{\"key\":\"value\"}", - request_id="9024ecbb-e800-453b-a6e2-b45d82161f75" + request_id="852c0429-a3fe-49cc-86ce-5727f9c573a3" )) 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", + "9a25518a-000b-42ee-bc05-46f80f9fca39", + "2d49628f-4b18-4524-aec3-c4280977728e", + "b9fbe043-ad9e-4183-933f-5fc7705dc2cf", + bear_point_shop_id="444916de-ffe0-4dd5-a805-dd93aafbe210", + money_amount=3196, + point_amount=7516, + point_expires_at="2020-01-31T01:57:52.000000Z", + description="CyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4", metadata="{\"key\":\"value\"}", - request_id="457a8c16-41f4-473d-a56a-e67baa506a4f" + request_id="6f42adc8-4988-4fac-b37e-164c7813ba65" )) 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" + "f1e586c9-105d-4b63-bc4e-7c19612f9089", + "b8670c72-5746-432e-8076-7413282439de" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_topup_transaction_with_check_1(self): + response = client.send(pp.CreateTopupTransactionWithCheck( + "f1e586c9-105d-4b63-bc4e-7c19612f9089", + "b8670c72-5746-432e-8076-7413282439de", + request_id="838b601d-41ec-49d1-8286-2d1f9daa6049" )) 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 + "74340d0c-b4d8-4d14-9eb1-c93f4e776bca", + "d67b9fc2-0a8b-46e7-a55d-e3eecfca28f2", + "406e7215-c344-46b1-9c0b-5dc00ce938f9", + 6283 )) 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" + "74340d0c-b4d8-4d14-9eb1-c93f4e776bca", + "d67b9fc2-0a8b-46e7-a55d-e3eecfca28f2", + "406e7215-c344-46b1-9c0b-5dc00ce938f9", + 6283, + coupon_id="26143e4c-e6c6-4c08-aca2-394c50221b80" )) 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, + "74340d0c-b4d8-4d14-9eb1-c93f4e776bca", + "d67b9fc2-0a8b-46e7-a55d-e3eecfca28f2", + "406e7215-c344-46b1-9c0b-5dc00ce938f9", + 6283, + strategy="money-only", + coupon_id="48674ba8-69b5-4911-a9eb-f162943f059c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_3(self): + response = client.send(pp.CreatePaymentTransaction( + "74340d0c-b4d8-4d14-9eb1-c93f4e776bca", + "d67b9fc2-0a8b-46e7-a55d-e3eecfca28f2", + "406e7215-c344-46b1-9c0b-5dc00ce938f9", + 6283, + request_id="043b0ae7-34f3-409c-9d20-a2bcfa14071e", + strategy="point-preferred", + coupon_id="5a4354a9-70f8-4e09-951a-6711f783635f" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_4(self): + response = client.send(pp.CreatePaymentTransaction( + "74340d0c-b4d8-4d14-9eb1-c93f4e776bca", + "d67b9fc2-0a8b-46e7-a55d-e3eecfca28f2", + "406e7215-c344-46b1-9c0b-5dc00ce938f9", + 6283, products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="b06d8cdc-54b4-4bed-9248-b320dcf58d8a" + request_id="d4b7aae7-fb78-421a-9fe6-6c89d4e54735", + strategy="money-only", + coupon_id="e677d114-55f3-4ccf-9091-29ef9151f440" )) 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, + "74340d0c-b4d8-4d14-9eb1-c93f4e776bca", + "d67b9fc2-0a8b-46e7-a55d-e3eecfca28f2", + "406e7215-c344-46b1-9c0b-5dc00ce938f9", + 6283, metadata="{\"key\":\"value\"}", products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", + "other":"{}"}], + request_id="c6225166-7859-4b73-a2e5-9121b1d0274f", + strategy="money-only", + coupon_id="bde368f4-2f80-4e8b-acb3-22bb0dea780d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_6(self): + response = client.send(pp.CreatePaymentTransaction( + "74340d0c-b4d8-4d14-9eb1-c93f4e776bca", + "d67b9fc2-0a8b-46e7-a55d-e3eecfca28f2", + "406e7215-c344-46b1-9c0b-5dc00ce938f9", + 6283, + description="lNOPpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rWWdK2ybDtXJiikZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO1", + 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":"{}"}], - request_id="38ea6024-15d4-4d61-8a86-423af8ea204f" - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_payment_transaction_4(self): - response = client.send(pp.CreatePaymentTransaction( - "66b1b6e3-f490-444d-9c3c-7f52a4ee1dbc", - "4a6f0990-2205-4e7a-bfef-08f7dd62f10a", - "1070e59d-0123-45bf-a02e-32724a291586", - 9028, - description="MMolvbDp36ZS9Ve1qo3bvmXucCaFZQN2ap2j3Mr8o8HkBWUUKfQKZC3BSMS3hsgpJcO", - 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="9ac4e641-90e4-45b6-958c-8f6f147822fc" + request_id="c4a0fd3f-764b-4d68-9946-4ef2a11efaeb", + strategy="point-preferred", + coupon_id="671c9df8-6c3b-4183-98a5-d221063aa569" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_with_bill_0(self): + response = client.send(pp.CreatePaymentTransactionWithBill( + "c5ddf8d6-7c52-439f-8112-880f6d63b987", + "ad880f97-ba2e-4ca8-9124-d1a4895588b6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_with_bill_1(self): + response = client.send(pp.CreatePaymentTransactionWithBill( + "c5ddf8d6-7c52-439f-8112-880f6d63b987", + "ad880f97-ba2e-4ca8-9124-d1a4895588b6", + strategy="point-preferred" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_with_bill_2(self): + response = client.send(pp.CreatePaymentTransactionWithBill( + "c5ddf8d6-7c52-439f-8112-880f6d63b987", + "ad880f97-ba2e-4ca8-9124-d1a4895588b6", + request_id="19d96b46-016a-40fa-b199-3f5e9456f677", + strategy="point-preferred" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_payment_transaction_with_bill_3(self): + response = client.send(pp.CreatePaymentTransactionWithBill( + "c5ddf8d6-7c52-439f-8112-880f6d63b987", + "ad880f97-ba2e-4ca8-9124-d1a4895588b6", + metadata="{\"key\":\"value\"}", + request_id="de1bbe8a-b48a-42ee-9713-342b94b4fa2b", + 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 + "IRjO9MofqJJncHBCR1qP1z", + "1db9cac9-d29a-41ff-a424-d22bfeaf383a", + 8500.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" + "IRjO9MofqJJncHBCR1qP1z", + "1db9cac9-d29a-41ff-a424-d22bfeaf383a", + 8500.0, + strategy="money-only" )) self.assertNotEqual(response.status_code, 400) def test_create_cpm_transaction_2(self): response = client.send(pp.CreateCpmTransaction( - "cE4mBLmKXcPupi77r56oXC", - "69188c4e-2113-4363-8325-43334faeaae4", - 4786.0, + "IRjO9MofqJJncHBCR1qP1z", + "1db9cac9-d29a-41ff-a424-d22bfeaf383a", + 8500.0, + request_id="8cf8c7ed-f7ad-434c-801f-0fca103434c3", + strategy="point-preferred" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_cpm_transaction_3(self): + response = client.send(pp.CreateCpmTransaction( + "IRjO9MofqJJncHBCR1qP1z", + "1db9cac9-d29a-41ff-a424-d22bfeaf383a", + 8500.0, products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, - "other":"{}"}, {"jan_code":"abc", + "other":"{}"}], + request_id="7045fba6-eb17-4f48-9f70-c300315bac4f", + strategy="money-only" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_cpm_transaction_4(self): + response = client.send(pp.CreateCpmTransaction( + "IRjO9MofqJJncHBCR1qP1z", + "1db9cac9-d29a-41ff-a424-d22bfeaf383a", + 8500.0, + metadata="{\"key\":\"value\"}", + products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "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="808d1e8e-3cc7-48b7-b0ca-c83dbd739c4d" + request_id="0286d79d-2ceb-4de8-a19a-b961be44b788", + strategy="money-only" )) self.assertNotEqual(response.status_code, 400) - def test_create_cpm_transaction_3(self): + def test_create_cpm_transaction_5(self): response = client.send(pp.CreateCpmTransaction( - "cE4mBLmKXcPupi77r56oXC", - "69188c4e-2113-4363-8325-43334faeaae4", - 4786.0, + "IRjO9MofqJJncHBCR1qP1z", + "1db9cac9-d29a-41ff-a424-d22bfeaf383a", + 8500.0, + description="WI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMMEyVApkaDe", metadata="{\"key\":\"value\"}", products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": False, - "other":"{}"}], - request_id="ba2c2be2-340e-4b01-921c-5988aceb9053" - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_cpm_transaction_4(self): - response = client.send(pp.CreateCpmTransaction( - "cE4mBLmKXcPupi77r56oXC", - "69188c4e-2113-4363-8325-43334faeaae4", - 4786.0, - description="mw5RMuvJN6cdbvg50QHlnDydRn68KboUvDsNqKoorksWBQ398rR59EiVvlwAljCUfIeXX8HLaAA7O7c9AzboPOcXU3N4H4mDJ", - metadata="{\"key\":\"value\"}", - products=[{"jan_code":"abc", - "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":"{}"}, {"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="a0379ef5-e483-45cf-b4c2-e70fa544546f", + strategy="point-preferred" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_transaction_with_cashtray_0(self): + response = client.send(pp.CreateTransactionWithCashtray( + "e255d3c3-2e5a-4510-a7e3-c5b47ca3b6e7", + "049bfca9-5bf7-4a24-a31b-133838a69505" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_transaction_with_cashtray_1(self): + response = client.send(pp.CreateTransactionWithCashtray( + "e255d3c3-2e5a-4510-a7e3-c5b47ca3b6e7", + "049bfca9-5bf7-4a24-a31b-133838a69505", + request_id="8df4c3df-7b52-47d3-a287-a510658bfd2c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_transaction_with_cashtray_2(self): + response = client.send(pp.CreateTransactionWithCashtray( + "e255d3c3-2e5a-4510-a7e3-c5b47ca3b6e7", + "049bfca9-5bf7-4a24-a31b-133838a69505", + strategy="money-only", + request_id="5b735d37-1442-4fb5-b7dd-b70b2db0b421" )) 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 + "e06ac073-4771-49ae-be80-3d22da0e76a3", + "fb8163fe-84e6-4108-99c1-dbad82fc94be", + "0042e76b-d368-43ef-b58f-5579f184439d", + 9935.0 )) self.assertNotEqual(response.status_code, 400) def test_create_transfer_transaction_1(self): response = client.send(pp.CreateTransferTransaction( - "579126f3-0f29-45ad-a048-4009f35287c2", - "2e2195b9-fa97-433b-9ad0-1dad04e0857d", - "55aab81a-51ca-4470-acf1-631f9bf8851e", - 6914.0, - request_id="aa555288-f7fb-4168-9a4d-d822fea51059" + "e06ac073-4771-49ae-be80-3d22da0e76a3", + "fb8163fe-84e6-4108-99c1-dbad82fc94be", + "0042e76b-d368-43ef-b58f-5579f184439d", + 9935.0, + request_id="bd46d7b5-a545-430a-91ae-f847f0343a27" )) 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" + "e06ac073-4771-49ae-be80-3d22da0e76a3", + "fb8163fe-84e6-4108-99c1-dbad82fc94be", + "0042e76b-d368-43ef-b58f-5579f184439d", + 9935.0, + description="pb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3", + request_id="8aec88bd-e1e0-4286-91fe-402f1aa877ea" )) 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, + "e06ac073-4771-49ae-be80-3d22da0e76a3", + "fb8163fe-84e6-4108-99c1-dbad82fc94be", + "0042e76b-d368-43ef-b58f-5579f184439d", + 9935.0, metadata="{\"key\":\"value\"}", - description="9HnlNHLuA0aOdVgj6K1GxL1yIWWOf6rndacFLJTT1b61igwFwXc9Xw81AcLgJ7HUPLZ2JY3PzdziozZN0eUlnWAmEdaqY8pJTyG58WWoVkTIofZ63ZHIa2ZaoOg0V0uaqelttkE7ehROL4XrOdkUWUyHCGGZhBjhjuTKoJ3qmoFsOI4faRjWQ8", - request_id="064416e7-5085-495b-930e-ee4ba9e6144f" + description="rUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N", + request_id="d451c3b4-5675-493e-a295-504cdd1ea2d8" )) 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 + "bcc78665-1270-4d70-8f93-c6966cee859a", + "cb6f60c4-5858-4dda-b961-ae7131a109a5", + "b0a02ea9-57b2-45f0-99bd-ff9c48dc2a75", + 5912 )) 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" + "bcc78665-1270-4d70-8f93-c6966cee859a", + "cb6f60c4-5858-4dda-b961-ae7131a109a5", + "b0a02ea9-57b2-45f0-99bd-ff9c48dc2a75", + 5912, + request_id="bf0a8e5f-5b0c-4e2b-a774-33876b4bfe23" )) 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" + "bcc78665-1270-4d70-8f93-c6966cee859a", + "cb6f60c4-5858-4dda-b961-ae7131a109a5", + "b0a02ea9-57b2-45f0-99bd-ff9c48dc2a75", + 5912, + description="L7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj", + request_id="8cf63e31-a5f3-4502-9796-008843acd278" )) self.assertNotEqual(response.status_code, 400) def test_bulk_create_transaction_0(self): response = client.send(pp.BulkCreateTransaction( - "FvGq64q", - "mrZJcpF", - "iWZHeIfQdHdvs4v2aUitPGe5J3m0ryc2OEvF" + "tSyQgT1GkRhboXHY39x3Xs6KbKO", + "jU", + "QYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5" )) 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" + "tSyQgT1GkRhboXHY39x3Xs6KbKO", + "jU", + "QYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5", + callback_url="https://QOJx8zwW.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" + "tSyQgT1GkRhboXHY39x3Xs6KbKO", + "jU", + "QYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5", + private_money_id="5ba0dcff-e0d4-4a99-917f-2d0a3a90faf4", + callback_url="https://whgEUQrp.example.com" + )) + self.assertNotEqual(response.status_code, 400) + + def test_bulk_create_transaction_3(self): + response = client.send(pp.BulkCreateTransaction( + "tSyQgT1GkRhboXHY39x3Xs6KbKO", + "jU", + "QYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5", + description="qVtFI20RqU84wWVej7KjR7PO79YOuc", + private_money_id="5c21d623-cd5c-4a5d-b262-e3052e84a4f4", + callback_url="https://zI2HvKaI.example.com" )) self.assertNotEqual(response.status_code, 400) def test_get_transaction_0(self): response = client.send(pp.GetTransaction( - "da124937-e649-4c71-982a-a6e301d6ef86" + "616e7cf9-1e93-4db1-a4de-4a52dd19264b" )) self.assertNotEqual(response.status_code, 400) def test_refund_transaction_0(self): response = client.send(pp.RefundTransaction( - "62bfd79c-c5c6-48bb-be08-8badf5722a1e" + "5b9c0875-672f-4efa-bccf-0c6c8f12c82d" )) 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" + "5b9c0875-672f-4efa-bccf-0c6c8f12c82d", + returning_point_expires_at="2023-03-21T08:39:28.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" + "5b9c0875-672f-4efa-bccf-0c6c8f12c82d", + description="LMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLvJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzK", + returning_point_expires_at="2022-02-22T15:50:39.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" + "60d2eede-8926-459c-8d0f-7f59d5c63540" )) 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 + "83861802-0524-481f-a649-991d87e79b73", + "51970352-907c-4674-8646-8d2ba6b2f3b9", + "665510f8-5678-427c-9f38-3c47f5ac7b5f", + 4672 )) 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" + "83861802-0524-481f-a649-991d87e79b73", + "51970352-907c-4674-8646-8d2ba6b2f3b9", + "665510f8-5678-427c-9f38-3c47f5ac7b5f", + 4672, + done_at="2020-09-22T09:01:55.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" + "83861802-0524-481f-a649-991d87e79b73", + "51970352-907c-4674-8646-8d2ba6b2f3b9", + "665510f8-5678-427c-9f38-3c47f5ac7b5f", + 4672, + request_id="c13a3b1a-4911-45c8-a3ac-8faa58cddd02", + done_at="2022-12-19T20:26:02.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\"}", + "83861802-0524-481f-a649-991d87e79b73", + "51970352-907c-4674-8646-8d2ba6b2f3b9", + "665510f8-5678-427c-9f38-3c47f5ac7b5f", + 4672, products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": False, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="690fa3ad-e25a-4b53-9a69-767351df754b" + request_id="5fb4d820-860b-4a9c-8edd-f61187fff033", + done_at="2023-09-26T16:31:20.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", + "83861802-0524-481f-a649-991d87e79b73", + "51970352-907c-4674-8646-8d2ba6b2f3b9", + "665510f8-5678-427c-9f38-3c47f5ac7b5f", + 4672, 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", + "other":"{}"}], + request_id="11f2f128-b0b7-44a5-b0a4-0b6fa268acb7", + done_at="2020-12-22T06:57:50.000000Z" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_external_transaction_5(self): + response = client.send(pp.CreateExternalTransaction( + "83861802-0524-481f-a649-991d87e79b73", + "51970352-907c-4674-8646-8d2ba6b2f3b9", + "665510f8-5678-427c-9f38-3c47f5ac7b5f", + 4672, + description="FXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkP", + metadata="{\"key\":\"value\"}", + products=[{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": False, "other":"{}"}], - request_id="30d75c89-25bb-4deb-a7f1-509062af654f" + request_id="faae96b0-b10d-4050-a43d-682e36c35539", + done_at="2020-05-18T08:49:25.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_refund_external_transaction_0(self): response = client.send(pp.RefundExternalTransaction( - "84cf16a2-3d66-4e04-9885-aa03d2c00a45" + "486bcb6d-fc87-4235-868d-75c6905ca2b7" )) 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" + "486bcb6d-fc87-4235-868d-75c6905ca2b7", + description="poqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oit" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_external_transaction_by_request_id_0(self): + response = client.send(pp.GetExternalTransactionByRequestId( + "d31bf3c2-4c41-486d-87cb-953a077e788a" )) self.assertNotEqual(response.status_code, 400) @@ -2133,176 +2848,176 @@ def test_list_transfers_0(self): def test_list_transfers_1(self): response = client.send(pp.ListTransfers( - description="vkZ0hBxHL8DiEhh2VnZoTnDJVFMsrvforwTxS8CU7xfi8Z8k0xTZqtjlnCMFHx8TKGI2xE1Bu" + description="KeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf" )) 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=["campaign", "payment", "exchange", "transfer", "cashback"], + description="FI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jB" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_3(self): response = client.send(pp.ListTransfers( - transaction_types=["exchange"], - transfer_types=["payment", "exchange", "cashback", "transfer", "campaign", "coupon"], - description="JsJ" + transaction_types=["exchange", "transfer", "expire"], + transfer_types=["cashback", "payment", "campaign", "topup", "coupon", "transfer", "exchange"], + description="T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xG" )) 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=["exchange", "cashback", "topup"], + transfer_types=["payment", "exchange", "campaign", "expire", "topup"], + description="cfWhC" )) 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="02e6fd84-395d-4cfa-9f83-e1042bda63e9", is_modified=True, - transaction_types=[], - transfer_types=["payment", "expire", "campaign", "cashback", "transfer", "coupon", "exchange"], - description="pu0MDWpiDvc0yH6ElFsXXAu1ggrDUCau2gnuJ4JjDHOBMd26S3mihK7Gc9ouBdfj9baUMO0QAZUEFS2BtlR4VIQVU2y1HqZTEweuiw2lLR54hFsTWRshdiadwR5IXzLVIyr3tVtLqZwSGR9" + transaction_types=["payment", "exchange"], + transfer_types=["expire", "cashback", "exchange", "transfer", "topup"], + description="CqCpyLyZq50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbV" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_6(self): response = client.send(pp.ListTransfers( - transaction_id="d9dea1c1-4088-4174-9f53-a284a51dff44", - private_money_id="77e561b9-24e3-4392-8f5f-9996faf7d62b", - is_modified=False, - transaction_types=["exchange", "payment", "expire"], - transfer_types=["exchange", "topup"], - description="VkjkAmAursWmY8lUcPFFH8OBO0gTOPvALkgMJawdwCaYZ0f5A4WuoS1IAZgM9FDFzPlCr68wDPzP1uu5pUlr0e255o067YSY4rtLpQIhTsQtfNlHNUlxPCHvPHeZ4gCJRD87F5OLspmSpFUbvNXpSViDBWfAPmGs" + transaction_id="cdf887a9-a958-4d92-b829-5fc0be9f4428", + private_money_id="af1c3cc8-02d3-4bdf-bf34-be4a0fdc071d", + is_modified=True, + transaction_types=["exchange"], + transfer_types=["cashback", "exchange", "campaign", "payment", "coupon", "transfer", "topup", "expire"], + description="G5Ff" )) 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="bbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2V", + transaction_id="a5e8963d-27f6-4cb1-b1fb-6f453a23cf87", + private_money_id="46b2dd6e-df4b-42e3-a10b-27406575741e", is_modified=False, - transaction_types=[], - transfer_types=["payment", "cashback", "transfer"], - description="zT4JKnzi5L8cpHHMwXcAIRcjNLk0uNWeNHUqo3XUcSS2VsZS4Lj4GkDI0oXRDtBJxvb11fmeXANYMff4lfRrFSD2GU0U0YSAX1Q89ssC5bpXwoj13v0TL4xfkZtGKmcVmh1Ev4M51rbMFUU1jVlGa8RcO6wCBU9Eja3cVhwcSD6iDQwph5T" + transaction_types=["payment", "topup"], + transfer_types=["coupon", "payment", "topup", "transfer", "campaign"], + description="UD9qqTdXnkHVwtuWR" )) 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="8738f8d0-13a7-4c44-82ef-8a993416b632", + customer_name="vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tu", + transaction_id="73b3522e-a971-4803-b158-8faa0061bf8e", + private_money_id="dcd58139-6922-4f48-ad30-6c00417f0453", is_modified=False, - transaction_types=["payment", "transfer"], - transfer_types=["expire", "transfer", "campaign"], - description="SC89X69cCxk1lmjrE2LQn8WVW3m44epc5OJWLmTr626o4XX2rICXAhNDPHxc5nbxE6dOS7QbkrsxeFRrdV1gQxduyB3Z9uLKn8CBvuRo159rPRsnfNPsYuS9nBNol3v7" + transaction_types=["topup", "exchange", "payment", "transfer"], + transfer_types=["exchange", "cashback", "payment"], + description="xi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5rX0rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6n" )) 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="KVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJI", + customer_id="b7e07e29-abc2-4603-bb11-b2d70b40a50d", + customer_name="1vB1RC8WQ75Zq2CPEph5LyiHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLiOm0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvT", + transaction_id="cd1ed720-ed59-4f17-baad-4d483541707f", + private_money_id="1c628257-142a-42e8-8213-52de954959cd", is_modified=False, - transaction_types=["transfer", "payment", "expire", "cashback"], - transfer_types=[], - description="vZavHGIwQGFD3y3WQcOQ77GqTbykQNeXwfkirPrCHC6oGX762VWlOvBKRDnWwJ1RB1Xf0sJSNdUIy9UNPxEn8d7PVOwf2KxYZgpwkatfDXh6wjcpgPghclYC1sotThNzacMPGRW9XLUFYLKH2dLAXy2plAkroUr6KjPvdUwWdZh0L8" + transaction_types=["exchange", "topup", "transfer", "expire", "payment"], + transfer_types=["exchange", "campaign", "transfer", "topup", "expire", "cashback"], + description="xpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5" )) 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", - is_modified=False, - transaction_types=[], - transfer_types=["payment", "cashback", "expire", "transfer"], - description="FmlvrlMvNLwEsnbNKTS2h75GF8UpjoAlQvJzCU8IgWIQfnPgb4T4DEkgPLD0xZMd5yjnHtiPzKYB9uBkIh8qvqswUq9MIMd1v50tEiK5VU8URPZftDXY7iH91521L9iCZDgOHv8ccbKA9zaXWI" + shop_id="7a60bb9f-8ff9-4510-8d22-0b1a2fd8543a", + shop_name="1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2Srp", + customer_id="27e62651-5f03-4e90-a65d-34fdd4abea6d", + customer_name="Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcLSudPl4JIrQ", + transaction_id="384adeed-2918-4c7e-8c8b-67469fc8efd7", + private_money_id="2713e30f-9303-4b7f-9dca-ac1a63d4d0ba", + is_modified=True, + transaction_types=["exchange", "topup", "cashback", "expire", "payment", "transfer"], + transfer_types=["payment", "expire", "exchange", "topup", "cashback", "coupon", "transfer", "campaign"], + description="s" )) 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=5635, + shop_id="be9217cd-e054-4416-991c-e079847ba643", + shop_name="oOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rv", + customer_id="336fdde5-4431-41b6-9df1-28e5b882c9b5", + customer_name="Ua3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzee", + transaction_id="2b0387e6-bda5-41c5-8140-7b8c0481c33c", + private_money_id="d32674be-3176-415e-9f55-a8df74e6321c", + is_modified=False, + transaction_types=["topup", "exchange"], + transfer_types=["expire", "campaign", "cashback", "payment", "coupon"], + description="VFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSO" )) 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=3298, + per_page=830, + shop_id="bec4b37c-a98d-4c53-b31e-add5c5c62e6d", + shop_name="Y0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhub", + customer_id="98a4c9d9-d233-47fe-aad6-b0a88ba25d1c", + customer_name="hbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd", + transaction_id="4359471c-ea39-43ff-b2d2-a9a94e21d010", + private_money_id="fd40e4f2-93ea-45c4-a06d-6727b69232f3", is_modified=True, - transaction_types=["expire"], - transfer_types=["expire", "coupon", "campaign"], - description="qC0B7Kcw0qagkhJ7wfZWTULKa8VECsBZr3IToxXjdyKGc7ZzHUV5fOm8mtNakhvcdUzoLcA59nUhEAXqtCyQcPmsvpgfmd8PIAhkngoJScrC1WRA" + transaction_types=["exchange", "topup"], + transfer_types=["payment"], + description="e9U0GR2pRvNpUL" )) 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="2023-08-31T09:26:29.000000Z", + page=6926, + per_page=3440, + shop_id="c20b2c54-7972-4aff-b648-ca35a737fba0", + shop_name="p2Y5YBaOZdS1seolNILNbVpFGv", + customer_id="15fec9ba-715a-45b3-ad4e-a0b4bf53c8f8", + customer_name="uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYm", + transaction_id="3d3b5286-b925-4b72-83f2-529bdd1fded7", + private_money_id="1bb9987f-707e-42f7-81b7-37c9d64c6da2", + is_modified=False, + transaction_types=["cashback", "expire"], + transfer_types=["transfer"], + description="X9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumv" )) 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", - is_modified=True, - transaction_types=["cashback", "payment", "topup", "exchange"], - transfer_types=["expire", "campaign", "cashback", "exchange", "payment"], - description="RysjIT" + start="2020-05-02T02:10:38.000000Z", + to="2025-06-17T03:12:23.000000Z", + page=568, + per_page=188, + shop_id="5e561b31-f81d-496b-aed1-a8376174c89e", + shop_name="wZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKE", + customer_id="3d0f9a4f-1379-4b4d-8456-69b89e65a310", + customer_name="9HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIM", + transaction_id="ffab70fd-730b-47c7-8e52-7fa614f0aff8", + private_money_id="b4cdb19c-cc94-4517-9b5a-f2cc3d929c14", + is_modified=False, + transaction_types=["transfer", "cashback", "topup", "exchange", "payment"], + transfer_types=["cashback", "topup", "expire", "exchange", "campaign", "payment", "coupon", "transfer"], + description="rFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anuf" )) self.assertNotEqual(response.status_code, 400) @@ -2313,322 +3028,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="2023-11-15T22:30:19.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="2024-08-22T13:18:25.000000Z", + to="2024-02-09T18:28:57.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="6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41", + start="2025-02-09T16:07:43.000000Z", + to="2024-01-02T23:44:24.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_4(self): response = client.send(pp.ListTransfersV2( - transfer_types=["coupon", "expire", "campaign", "payment", "transfer", "topup"], - description="KWD0fiDnREQQDwR5XEyIFeG77xZhQ031Bv0fXxSyFQJeZ6rdQ8buBb1f9slLRuiYJe4XyJvTb23a", - start="2020-03-14T13:09:59.000000+09:00", - to="2018-07-19T14:11:21.000000+09:00" + transfer_types=["topup", "expire"], + description="Yw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZX", + start="2022-12-30T14:02:53.000000Z", + to="2025-03-10T18:23:28.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=645, + transfer_types=["coupon", "topup", "cashback", "payment"], + description="DiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H", + start="2020-11-13T16:39:05.000000Z", + to="2022-05-23T12:16:52.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="ce4f63a2-a763-4e54-8425-62c3458bbd61", + per_page=999, + transfer_types=["campaign", "expire", "topup", "transfer", "cashback", "exchange"], + description="6J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspd", + start="2024-11-21T03:33:19.000000Z", + to="2024-06-28T04:46:00.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="69c03ff0-a6cb-4b84-aee3-753c00b4d71f", + prev_page_cursor_id="43862ba0-fa08-41bd-bbc4-afc7ba9b48d5", + per_page=953, + transfer_types=["cashback", "transfer", "campaign", "topup", "expire"], + description="ATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITn", + start="2025-06-17T12:57:31.000000Z", + to="2023-06-09T19:50:46.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=["exchange"], + next_page_cursor_id="e6e3a937-362d-4057-a198-30c30768a1c1", + prev_page_cursor_id="ffc7a49b-5de9-4091-a39a-08d108f9ef64", + per_page=58, + transfer_types=["expire", "campaign", "transfer", "payment", "exchange", "coupon", "topup", "cashback"], + description="e88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhl", + start="2023-07-07T23:40:51.000000Z", + to="2020-05-12T18:00:29.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=["transfer", "cashback", "exchange", "payment", "expire", "topup"], + next_page_cursor_id="1f4ceb89-0398-4f6c-b63b-f4538f046c09", + prev_page_cursor_id="23f2948c-555e-4863-9e40-dd6ae17bf327", + per_page=23, + transfer_types=["exchange", "transfer", "campaign", "cashback", "expire", "payment", "coupon", "topup"], + description="WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBE", + start="2024-03-30T14:29:20.000000Z", + to="2021-11-18T01:25:23.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", + private_money_id="cfeda198-a6a0-44f2-9ec9-ced52e240542", 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" + transaction_types=["topup", "payment", "exchange", "cashback", "transfer", "expire"], + next_page_cursor_id="30175c7a-6f58-456e-8164-bbc4f6b1b872", + prev_page_cursor_id="7af290dc-8205-40d9-b95b-59828e008db6", + per_page=328, + transfer_types=["cashback", "topup"], + description="xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHR", + start="2024-02-01T20:45:14.000000Z", + to="2020-12-14T18:55:30.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="5fc1b3e2-2fd0-4052-bfe9-55e460f8aad6", + private_money_id="87951304-1e47-461f-b719-da29f2c9cac2", is_modified=True, - transaction_types=["expire", "transfer", "payment"], - next_page_cursor_id="49b96d65-7153-4c06-93f8-ae6282c39fac", - prev_page_cursor_id="db7ac25b-147f-4852-94f9-1e160b46cd36", - per_page=598, - transfer_types=["campaign", "transfer", "payment", "cashback", "coupon"], - description="6TRb2QsyUYaFBg0rLG7i", - start="2022-07-09T08:10:51.000000+09:00", - to="2024-10-28T00:32:14.000000+09:00" + transaction_types=["topup", "payment", "exchange", "expire", "cashback", "transfer"], + next_page_cursor_id="23a53747-233c-45ca-b2bb-a0860acb0229", + prev_page_cursor_id="952c428f-a31e-4a9b-8380-4bca8fd7f63e", + per_page=295, + transfer_types=["exchange", "payment", "cashback", "topup"], + description="YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7X", + start="2024-01-29T11:19:39.000000Z", + to="2022-05-02T13:11:26.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="oGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzp", + transaction_id="d7efcfe7-9b47-4dd5-98b4-61ed03a9b713", + private_money_id="e147b274-fe12-49a0-9f78-de6f166a3ee0", + is_modified=True, + transaction_types=["transfer"], + next_page_cursor_id="c0c4ac4e-81ca-4a47-9adc-a8a4fb07eb8c", + prev_page_cursor_id="d6665b09-2901-405b-972f-450bf9c7b022", + per_page=193, + transfer_types=["expire", "payment", "campaign"], + description="WIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dI", + start="2025-11-19T10:26:43.000000Z", + to="2021-04-14T09:28:08.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", + customer_id="88bb6f51-f901-4ecb-b41d-2ae73797c350", + customer_name="pt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnD", + transaction_id="c7e25fd9-18b4-4c9c-9339-0ee034d2d74e", + private_money_id="430e5e81-67b4-4388-833d-fb870f332248", 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" + transaction_types=["topup", "exchange", "payment", "transfer", "expire", "cashback"], + next_page_cursor_id="0ad6d1f2-ff27-4690-9907-a51914bb1ac3", + prev_page_cursor_id="b00606f3-63a7-4158-a752-1cdb09faa388", + per_page=145, + transfer_types=["expire"], + description="Y47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VE", + start="2025-02-28T01:08:36.000000Z", + to="2023-05-21T16:25:44.000000Z" )) self.assertNotEqual(response.status_code, 400) def test_list_transfers_v2_14(self): response = client.send(pp.ListTransfersV2( - shop_name="KagjGEM3GfsC9B0w8zKt6bQig1LgqOPtR6wzZdUh56Q0WZf8IPC7BRlPxu7PJAL2SSrdIkCx2w3UniyERaYjCV8kJefHmgXwlVomKPcnp5Z68uiRVcRs6iSVq6CAE1cykbPfFVTBynTVWrp1vTM1qsdO4ANmXuI4", - customer_id="d9defb96-653e-4070-acea-e661c4734461", - customer_name="jMjNf8XzKneiyaJFmKrTqfSFemIMfA7XBmcoIx81EXrZTOXzCYdt", - transaction_id="f564454e-8e63-49d3-a325-e3b5cf7b91b0", - private_money_id="ce716454-b5d2-49ad-9468-c276f58246bb", + shop_name="spW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rp", + customer_id="e03555ee-42b0-4c32-b29a-17fcfb38c1c8", + customer_name="3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMc", + transaction_id="933bee4b-259a-4bfc-abd8-f442138eefba", + private_money_id="697af85b-f88e-4bd7-8917-667b37d78588", is_modified=False, - transaction_types=["exchange", "topup", "expire", "transfer"], - next_page_cursor_id="b06f04e1-4cd9-4cf4-987e-d2785c82c77e", - prev_page_cursor_id="72fa7747-a9c8-4bbd-b210-00b518cb02a9", - per_page=579, - transfer_types=["coupon", "payment", "cashback"], - description="0CKWqFPB7cXogK3lXTpk1ACQL5MC28qImQU81piDFRyBs61QA64ubFmiSNGPB6PWeR4fjojaItl7qDDnWfDz83II3SsVbG", - start="2020-04-08T02:34:10.000000+09:00", - to="2024-05-07T09:48:34.000000+09:00" + transaction_types=["expire", "exchange"], + next_page_cursor_id="55e38aa8-5334-41d2-a10a-ca24e627ab53", + prev_page_cursor_id="f426906a-ad97-4778-a711-2560caadfcac", + per_page=452, + transfer_types=["cashback", "coupon", "exchange", "transfer", "topup"], + description="ob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5II", + start="2022-04-23T19:37:10.000000Z", + to="2022-11-20T15:57:22.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="5a0f9106-3e20-4821-ac61-51d27103b993", + shop_name="lpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQ", + customer_id="dbf2f57b-6f4c-4a79-b650-325f782fdbcf", + customer_name="3cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkAPBJ7wmgCWNKD", + transaction_id="6b032050-e8a7-44b1-a0a3-9e7fb78c04e5", + private_money_id="962a20ee-ee96-4821-b85d-da9a3ecf28c1", + is_modified=True, + transaction_types=["exchange", "topup", "cashback", "transfer", "payment"], + next_page_cursor_id="d05dc232-bd46-44e8-9bce-0fef023e6646", + prev_page_cursor_id="0279ba3b-279c-4adc-93da-4d2f142fcf8c", + per_page=972, + transfer_types=["payment", "expire", "topup", "campaign", "exchange", "cashback", "coupon", "transfer"], + description="oRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4k", + start="2022-06-17T05:08:16.000000Z", + to="2024-12-21T08:10:39.000000Z" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_0(self): + response = client.send(pp.ListOrganizations( + "fa68e40d-a621-490e-8521-3d8041986e79" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_1(self): + response = client.send(pp.ListOrganizations( + "fa68e40d-a621-490e-8521-3d8041986e79", + code="UJYr" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_2(self): + response = client.send(pp.ListOrganizations( + "fa68e40d-a621-490e-8521-3d8041986e79", + name="48UyLazcda", + code="g9" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_3(self): + response = client.send(pp.ListOrganizations( + "fa68e40d-a621-490e-8521-3d8041986e79", + per_page=694, + name="VUQzIG7", + code="r7fsBnFuG5" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_organizations_4(self): + response = client.send(pp.ListOrganizations( + "fa68e40d-a621-490e-8521-3d8041986e79", + page=4407, + per_page=629, + name="V", + code="Y" )) 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" + "vi9Z9lrbTGfh4QbdPS2DfLew9", + "svLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9fr", + ["d84350f0-ddf1-4d8d-af6c-54298f6f5572", "43db52c5-e154-4695-ae8d-255ce9ad55e7", "f9b47dfa-9833-43cf-9039-0ef7cba3540b", "00ae89ec-0a79-4d51-b013-e9d4b6d7e457", "4947b266-49d2-4386-a134-e694a4233cbe"], + "Gx21zM7WIQ@GDsP.com", + "sJyAShBlCJ@PjtV.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" + "vi9Z9lrbTGfh4QbdPS2DfLew9", + "svLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9fr", + ["d84350f0-ddf1-4d8d-af6c-54298f6f5572", "43db52c5-e154-4695-ae8d-255ce9ad55e7", "f9b47dfa-9833-43cf-9039-0ef7cba3540b", "00ae89ec-0a79-4d51-b013-e9d4b6d7e457", "4947b266-49d2-4386-a134-e694a4233cbe"], + "Gx21zM7WIQ@GDsP.com", + "sJyAShBlCJ@PjtV.com", + contact_name="6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2Kb" )) 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" + "vi9Z9lrbTGfh4QbdPS2DfLew9", + "svLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9fr", + ["d84350f0-ddf1-4d8d-af6c-54298f6f5572", "43db52c5-e154-4695-ae8d-255ce9ad55e7", "f9b47dfa-9833-43cf-9039-0ef7cba3540b", "00ae89ec-0a79-4d51-b013-e9d4b6d7e457", "4947b266-49d2-4386-a134-e694a4233cbe"], + "Gx21zM7WIQ@GDsP.com", + "sJyAShBlCJ@PjtV.com", + bank_account_holder_name=" ", + contact_name="8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4y" )) 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" + "vi9Z9lrbTGfh4QbdPS2DfLew9", + "svLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9fr", + ["d84350f0-ddf1-4d8d-af6c-54298f6f5572", "43db52c5-e154-4695-ae8d-255ce9ad55e7", "f9b47dfa-9833-43cf-9039-0ef7cba3540b", "00ae89ec-0a79-4d51-b013-e9d4b6d7e457", "4947b266-49d2-4386-a134-e694a4233cbe"], + "Gx21zM7WIQ@GDsP.com", + "sJyAShBlCJ@PjtV.com", + bank_account="320", + bank_account_holder_name="「", + contact_name="QPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHI" )) self.assertNotEqual(response.status_code, 400) def test_create_organization_4(self): response = client.send(pp.CreateOrganization( - "1LETy", - "ZPKAQBgMPUGbEnOIPDq2CLAbjX1Djn2XWSwjThwDAcCZY6YtawxId266BZVwZVmHyD1UpI6d83jiZ9uTzP4YjXFZyT5vOgrOJYvJ3LNaiOIeknn7RYaYRsrRINAXrIL7Vokdd5FDSOlHXvPdm6smgX4oL5ObnN7xsSw29hgwVKZ3q7f2G5Csbw765Up6rDPAvgZ3Lft7QdtUV0xBtYCY2peqF3OIROYkI2OmNuQfBQja", - ["0e3d9e11-0003-4ee2-8399-f215bd941cf5", "537efd5a-3cc1-4437-a016-4f49c457ec11", "b4acfe2e-625d-4bb2-abb7-fe505e1360d0", "0324324b-1a2e-4317-81d7-afbda5d2e56e", "d7832ebf-9c96-4f2b-a58e-e346f3c74013"], - "0PAVPIqlw5@xHvb.com", - "neEVFJO1vU@ShUN.com", - bank_account_type="current", - bank_account="", - bank_account_holder_name="ク", - contact_name="ACMY5nowhDUZD5IZKMp0STmYDwTtHP0EcP6hogkn6nAjgTjLkVtsanieCAlqrCK8PwmGod9YcEsgY2DC2Vj8cKXwgERagqK" + "vi9Z9lrbTGfh4QbdPS2DfLew9", + "svLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9fr", + ["d84350f0-ddf1-4d8d-af6c-54298f6f5572", "43db52c5-e154-4695-ae8d-255ce9ad55e7", "f9b47dfa-9833-43cf-9039-0ef7cba3540b", "00ae89ec-0a79-4d51-b013-e9d4b6d7e457", "4947b266-49d2-4386-a134-e694a4233cbe"], + "Gx21zM7WIQ@GDsP.com", + "sJyAShBlCJ@PjtV.com", + bank_account_type="other", + bank_account="2953", + bank_account_holder_name="/", + contact_name="xA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAnlFEgMmyi8jmBN0T80aLvrKoR" )) 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" + "vi9Z9lrbTGfh4QbdPS2DfLew9", + "svLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9fr", + ["d84350f0-ddf1-4d8d-af6c-54298f6f5572", "43db52c5-e154-4695-ae8d-255ce9ad55e7", "f9b47dfa-9833-43cf-9039-0ef7cba3540b", "00ae89ec-0a79-4d51-b013-e9d4b6d7e457", "4947b266-49d2-4386-a134-e694a4233cbe"], + "Gx21zM7WIQ@GDsP.com", + "sJyAShBlCJ@PjtV.com", + bank_branch_code="694", + bank_account_type="saving", + bank_account="484155", + bank_account_holder_name="\\", + contact_name="OYuu1RyqlWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcNHBIUBy90lbfxByy" )) 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", + "vi9Z9lrbTGfh4QbdPS2DfLew9", + "svLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9fr", + ["d84350f0-ddf1-4d8d-af6c-54298f6f5572", "43db52c5-e154-4695-ae8d-255ce9ad55e7", "f9b47dfa-9833-43cf-9039-0ef7cba3540b", "00ae89ec-0a79-4d51-b013-e9d4b6d7e457", "4947b266-49d2-4386-a134-e694a4233cbe"], + "Gx21zM7WIQ@GDsP.com", + "sJyAShBlCJ@PjtV.com", + bank_branch_name="gJllatyS0exoV", bank_branch_code="", - bank_account_type="other", - bank_account="047167", - bank_account_holder_name="Z", - contact_name="vsUjS1TQRpGXwusKVKoDVo20K4pvhym0ixofoZrqcO9xmrGI7Yq8b7zKf4Zjq1K3jlOjYQfsbEScihoRIGPs251h35D6RqOUv7GYFIehbCx0by4HajPsFnZyPkDxfEbj7EZcJNWpppH7JtG7uLWNnv9bkjUCUVfq92VQxP0FMeHm2Gc8mWOktzQrw5GjJ8uGQSasHDUHsEK1qalH" + bank_account_type="current", + bank_account="3634657", + bank_account_holder_name="「", + contact_name="D8Nsi0ghqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfa" )) 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", - bank_code="", - bank_branch_name="wNsBFFvhBAfKd9pYjNXINvRo8XrSFeFKEUniweS0acjh4qrH7klovo9x1qmkFFjd", - bank_branch_code="189", - bank_account_type="other", - bank_account="", - bank_account_holder_name="V", - contact_name="dCsP" + "vi9Z9lrbTGfh4QbdPS2DfLew9", + "svLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9fr", + ["d84350f0-ddf1-4d8d-af6c-54298f6f5572", "43db52c5-e154-4695-ae8d-255ce9ad55e7", "f9b47dfa-9833-43cf-9039-0ef7cba3540b", "00ae89ec-0a79-4d51-b013-e9d4b6d7e457", "4947b266-49d2-4386-a134-e694a4233cbe"], + "Gx21zM7WIQ@GDsP.com", + "sJyAShBlCJ@PjtV.com", + bank_code="1715", + bank_branch_name="hFbA6TsT4rGSzhCtzrrQIFe", + bank_branch_code="843", + bank_account_type="current", + bank_account="30775", + bank_account_holder_name="L", + contact_name="PGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cA" )) 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" + "vi9Z9lrbTGfh4QbdPS2DfLew9", + "svLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9fr", + ["d84350f0-ddf1-4d8d-af6c-54298f6f5572", "43db52c5-e154-4695-ae8d-255ce9ad55e7", "f9b47dfa-9833-43cf-9039-0ef7cba3540b", "00ae89ec-0a79-4d51-b013-e9d4b6d7e457", "4947b266-49d2-4386-a134-e694a4233cbe"], + "Gx21zM7WIQ@GDsP.com", + "sJyAShBlCJ@PjtV.com", + bank_name="yVZn4o55A5DSTN7FZ8Y8t8MIK7GdyM50XmxAy", + bank_code="", + bank_branch_name="ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfB", + bank_branch_code="633", + bank_account_type="saving", + bank_account="4452", + bank_account_holder_name="ヲ", + contact_name="BovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQp" )) self.assertNotEqual(response.status_code, 400) @@ -2639,856 +3394,935 @@ def test_list_shops_0(self): def test_list_shops_1(self): response = client.send(pp.ListShops( - per_page=2911 + per_page=582 )) self.assertNotEqual(response.status_code, 400) def test_list_shops_2(self): response = client.send(pp.ListShops( - page=3096, - per_page=7801 + page=808, + per_page=882 )) self.assertNotEqual(response.status_code, 400) def test_list_shops_3(self): response = client.send(pp.ListShops( - external_id="Rzzc4S4bskUY0GUghtLrKdmw4Mj2vrs21Q3Q", - page=7668, - per_page=1177 + with_disabled=False, + page=8193, + per_page=5281 )) 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="pXTryBWY7Y", + with_disabled=True, + page=9429, + per_page=3857 )) 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="tJYjps5n0F@jmTF.com", + external_id="O6PZjVX87PLzR29oTCv16fPXjhVlLpK", + with_disabled=False, + page=2179, + per_page=4756 )) 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="041-0981730", + email="Yx7KWs9Grf@kcGF.com", + external_id="x", + with_disabled=True, + page=8714, + per_page=5740 )) 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="TYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURM", + tel="0174419273", + email="Xl5Cw9ahtS@HvWH.com", + external_id="bu1GO", + with_disabled=False, + page=8569, + per_page=9630 )) 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="760-0329", + address="Q5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1", + tel="00-6335884", + email="CTdPwk2g7D@YhFu.com", + external_id="Wtax2gH7mosTYAgSjd1Lu4N1G", + with_disabled=True, + page=7064, + per_page=9537 )) 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="llEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQ", + postal_code="731-8060", + address="8uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDP", + tel="068-54-048", + email="mDzxLUbUeg@7w8c.com", + external_id="I", + with_disabled=False, + page=2124, + per_page=3305 )) 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="cbcd2189-7b9d-49fc-a1f8-5b4c29c3f5fd", + name="e1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJ", + postal_code="1576118", + address="fUdHVcsouxX3xI9CHdZGkENDSkRyfWKAxjQWjCB8nFcqmENfDor1zgwF9x3xZsR5bLJPhH3FEHzbfU4cD6smAeqngifjNikqDE3OudXpYhNwFWUAKOnWlhna0lYNQbEnbMVdbi9G5aE3q4gTN93gHJA1FfneXYRV1FBu9VqwmK2QWEkaIk3Nf304AeRoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgz", + tel="0046641874", + email="FeGZi1JIa9@NTrk.com", + external_id="MeAKNU2qNMrw4Jay2YBOfulEIF", + with_disabled=False, + page=7844, + per_page=2614 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_shops_11(self): + response = client.send(pp.ListShops( + organization_code="70xL--r5xsV3-1--B-1o", + private_money_id="b15322fa-4a67-4b8f-9de5-3cebb0b69a7e", + name="1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78J", + postal_code="843-1304", + address="ZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmfQbT09Lp665rg0d7eGITtIklk", + tel="064-2499243", + email="EOGALN8S7z@1KFo.com", + external_id="IQgwx8oosJLK5Rq67VXMpZGMSz7k", + with_disabled=True, + page=2640, + per_page=1920 )) self.assertNotEqual(response.status_code, 400) def test_create_shop_0(self): response = client.send(pp.CreateShop( - "txsN8hQh23jWL68GyttBaIaA6bT2oimSP8aDw1fwYQo1a8Jvio1NlXmWokT3fCZ0aqdulZZGglvs1mmHvcGJdXuMvjofsG8E4KIFxs3y0EBuTM1S0iPJraQIMtAPJ1JN9CtWW30Uo4UAg9arJ4XCMrwN15cIxDvF6fUC0OQCualYkGbJ73b3nYCrV9uDJehyXJGfZSkx4G3NTiGEBvJP8jVkcC8" + "HYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8E" )) 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" + "HYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8E", + organization_code="-SR-9-yT6X7OM-xW-pWW-w6-w20" )) 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--" + "HYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8E", + shop_external_id="3CmVmPz2", + organization_code="--4-eo--" )) 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" + "HYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8E", + shop_email="l8dtzcqD6r@qwGD.com", + shop_external_id="VRdojGjig", + organization_code="8-OH-76-" )) 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-" + "HYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8E", + shop_tel="053345-642", + shop_email="3QvYjy8mUg@DyXQ.com", + shop_external_id="YOSshpGMCke10fApKjBHnAmdlKiUj9JqianI", + organization_code="02na---BtXh-gQ----cb" )) 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" + "HYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8E", + shop_address="osxcU6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKruisPGcjRxKz0hnHtPEmOFzye10sMn1hLqgZ4Scflk2JdjznjOojFztUyYyUwwyS9B5htgNIDpUpzKyj3BEvYp1TbuySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L", + shop_tel="068726164", + shop_email="hoBOihdHve@jLf7.com", + shop_external_id="UNUhMpEnc", + organization_code="67-33BCRUoSl5Ty" )) 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----" + "HYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8E", + shop_postal_code="444-8330", + shop_address="GFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9Cc", + shop_tel="012-96-0117", + shop_email="wQECuEigH9@T54l.com", + shop_external_id="9EXWThBhNBtq0", + organization_code="qq1JPtvM29M0s-5-vmlUc2J-d5-" )) self.assertNotEqual(response.status_code, 400) def test_create_shop_v2_0(self): response = client.send(pp.CreateShopV2( - "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur" + "357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10G" )) 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"] + "357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10G", + can_topup_private_money_ids=["c9e06b62-7a39-4297-9f36-18cae73755fa"] )) 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=[] + "357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10G", + private_money_ids=["fffe155e-4ee5-467d-96e6-12b77a4cd326", "ce443c66-5dff-42a0-b3c8-042606c8253e", "afa90065-45de-46a8-befc-de315e0e78e6", "546784b0-1d1d-4ed1-993a-52dcee4a5c5f"], + can_topup_private_money_ids=["5d49efeb-a667-4aca-ae63-263399a0e969", "d2867d69-9b1f-4085-8093-a95da97ae1ae", "45c36340-9eca-4b0f-a233-024e96d5a240", "0d6c3544-789b-4423-9bd6-050f93e5f0c6", "f793221f-436b-403a-829b-244ecf935be0"] )) 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"] + "357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10G", + organization_code="H-5J--wZTom2Rx-7bjI", + private_money_ids=["259cc6ed-eb96-406c-8403-72b551df88df", "8fae0ca6-8481-4a2a-bf9d-dd4180191d27", "4fa170e7-683f-45dd-aeca-f434c6d9af03", "6c1dba40-9508-4c04-a484-5caeaa80a54f", "e88a5db8-7813-40bb-9645-05a1eafe2e60", "653b57a9-e299-413c-bea7-c41c68ef6d74", "1268aa33-8d14-40e8-b94e-c030a176b127", "07527f8b-175e-4eb1-b8d7-74a182d130cb"], + can_topup_private_money_ids=[] )) 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"] + "357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10G", + external_id="SJX1OiNUbqHXuSEWeM8VLmM8qznKIn", + organization_code="", + private_money_ids=["c2a63929-4572-493e-9204-09753cc2abe3", "b3ca396d-9ec6-40b8-ae01-c83803220bd6", "e03ec89d-e386-4eee-aac6-5c913f61025b", "d0fdefef-ccc5-4d89-bd73-4db5c4e163e6", "beed5eab-43bf-4a07-9e36-d908d20e9714", "163d2bb4-8809-4fed-b67c-6dd82ad2094b", "dba92a0e-03bd-4bc3-a330-a479760dccc9", "9968318b-422e-43e0-af3a-ef083364f713"], + can_topup_private_money_ids=["195a3644-5972-4ca2-8fed-ffa8d8d32866", "0d06d283-e618-40da-8e76-c6630fdd99e6", "6266c380-7643-4321-a57b-62e4a9c3fd26", "9852d914-b345-425b-93b8-dca15f403b48", "1bf8aaff-f5ff-4748-8aad-f96094ec44a3", "ae46d9dc-d41d-4508-be66-c4bc7a989435", "b2a9a4a4-0eb0-4cd4-9582-72df747d59c3", "81904a92-37b5-4b79-9c90-37b26d46d548", "6d8e4e09-16a2-4e13-8e81-ae1e8e0837f2"] )) 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"] + "357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10G", + email="P34hD1uxIb@udPg.com", + external_id="cAH4LqtvnYdJ", + organization_code="1-DbKQy-BV3-J-oH-5orX--J309v3", + private_money_ids=["55432eae-f6c2-44c0-b03e-271df1eaabfc", "78bca91e-838f-484a-84d3-7f5e6124acac", "150360f4-5928-4037-8b9a-61e872dd9d07", "d7d85cda-949c-4ead-8ecc-973646007363", "d71a1b76-59ff-46e3-bb89-bb3af40a8af1", "2bcc2bc2-656e-4c68-acc7-9feed5973527"], + can_topup_private_money_ids=["65694579-15d2-4b12-a273-10246a0fd1b1", "729f95da-8162-41e7-888d-ef45617a7e96", "c0125458-1634-45b6-8424-85cc31003eb0", "f882e65f-0f45-46a5-993b-febfdef2f39a", "0b86d4b9-a786-4814-8466-116727bfb9b2"] )) 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"] + "357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10G", + tel="032390-4325", + email="HkpeJS53rQ@YrIE.com", + external_id="vl0KriuNlhP5RwfRsdm", + organization_code="WJkX4I--SRcu6-64X-9", + private_money_ids=["fc9ec563-0e05-4b07-b364-b2108203d244", "cf9981f4-70bc-46a6-834d-d1b3c74ccdac", "c5c87499-e6f5-432c-97c0-408bc5a6a98c", "9eb27d88-aa5e-4c53-a11d-87c540654e59", "c1060862-d4f5-4d98-a17e-eeba284b644f", "3286cee0-dff9-42a7-b1c1-12973aca16f4", "3532624a-9219-4014-aa9c-16a002783062", "b9c14ea6-c410-4c7b-9ae0-088c402e9999"], + can_topup_private_money_ids=["1b3140f6-e985-4158-8c34-20440d9d74dc", "89c75ed4-05f2-45ff-a5db-d2807b407e6e", "bd9d470d-f19b-4b59-bcac-89ea1922f35b", "7d0459ff-ad9a-4710-b6bb-a3f2f35533c5", "a3efa5b9-d4e0-4348-b55e-1c93e807f32b", "3ebca7d7-9c3f-41c7-ad2c-ba350fb6eb07"] )) 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"] + "357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10G", + address="xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu", + tel="05486573661", + email="GLqQiqaG2p@9irV.com", + external_id="NMOOMEypf2sbMz5", + organization_code="3lX-VsAf-Z6--674a3-0w-oq38S3", + private_money_ids=["4f6d6ffc-e3cc-456f-8d24-9681099843e5", "92a594af-9002-4bec-a58e-e4b3f8dcee70"], + can_topup_private_money_ids=[] )) self.assertNotEqual(response.status_code, 400) def test_create_shop_v2_8(self): response = client.send(pp.CreateShopV2( - "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur", - postal_code="202-8400", - address="HCrQ2sJdGjdCNpP7vZgP6rij5EfD6DtnR73iSkAgC1lY6yupHUdfLL0DHjlwSaRnmrgoUZ8HPuG9MGiaGFzsfWWWy9Im8Ux", - tel="00-2655-826", - email="LEYZVZOefO@3wRM.com", - external_id="sdsI7UYvxBYHMaYiviU38jq", - organization_code="g-1K-mz-89-lch-1mHfb-Z-rLn8T6--4", - private_money_ids=["3109ea51-7edc-41cf-93ee-80c223f044af", "8bb000a1-1fce-451c-bb5f-46a60ebcbe78", "4e2a2e2a-b08b-4964-9003-679f22c4b63b", "ecb51cf5-cfaa-4f7e-b29c-224fc442c477"], - can_topup_private_money_ids=["17bc1437-dc67-44af-abea-2251c0436433", "5e8b6677-d5af-44f0-9c20-1fe5e481cf66", "d9e228ab-8ab7-46ab-84b2-559e6d54142f", "d07c4d8c-619c-4149-a921-6b6c1964d134", "c49decc5-6835-4fa5-9a88-42d7bb77c4f3", "e137b692-0e22-4b53-a565-e1e3a7a276f0", "87d74d99-cfdc-4f49-9b8e-ac71f881c3f2"] + "357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10G", + postal_code="8282155", + address="CaVZzJ21Wkjwh096vY0YkfqArkVOxtHaQbqrekxj6KVFbsIqYgBl99xXSIGv3Ovn3SH7ljqEdpqCcPOpWjivoOnvdw0Yvld3IeJyhTlRgTT2NxSiphZRlLoLjMmLSH", + tel="069-40-083", + email="e4tHPdlvKx@C8Qo.com", + external_id="jNK", + organization_code="-PmBnibTq1Ew3W", + private_money_ids=["603ff958-16cc-406b-98fb-018dc7644311", "35028b1f-67c0-4180-af17-b548768afbe1", "9e693314-0864-4a8e-b963-6e4f4cee3590", "b776a90e-d2ae-422f-9322-bd400428413c"], + can_topup_private_money_ids=["9ee6f9d2-44e5-4a91-aa31-b7999080ccd4", "8ea232f7-9362-4232-a104-1872d04f5f76", "04cd68f0-53e9-4f77-a0ca-9507221c3ca7"] )) self.assertNotEqual(response.status_code, 400) def test_get_shop_0(self): response = client.send(pp.GetShop( - "c7d33c82-4db4-47b3-b0de-f09941ac0ce3" + "49ecce4c-2d7c-4298-bbbc-ffd3b6821ef9" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_0(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985" + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6" )) 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"] + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6", + status="active" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_2(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985", - private_money_ids=["3ac1c52a-2056-4597-96e8-bca3475b9fe6"], - can_topup_private_money_ids=[] + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6", + can_topup_private_money_ids=["f38b3525-7117-474d-97ed-0fda48aeadc5", "cb2a538d-fee4-4a6f-b3d4-e93b7fd6d68b", "b93f9474-adeb-4041-8da4-c1e0708557d0", "8d68d91a-0a87-4a0a-8ce6-be26f09cfa7a", "4c0acee9-6686-40f9-a412-c3de35a3efff", "b6910004-413b-4ec2-b248-44a367de818d", "189d1959-0078-41e1-9312-e1f5e91a00aa"], + status="disabled" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_3(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985", - external_id="d3BmnZxBBpR9nxMbDW2W", - private_money_ids=["466c0391-85b9-49a5-aefe-bec9f17a6c41", "0a9003f5-717b-4776-8ab0-cab717da3083", "2754c912-b7d4-4f39-bd23-9c3c35fcc64b", "ff2e4aa7-26c8-45d4-aafd-2aa6e7071d92", "6f6ac7bd-3718-4516-875e-594b58e1659a", "dfc48ed8-a598-4a99-8911-5d39d2a6535d"], - can_topup_private_money_ids=["0ae9bcaf-542b-4fe3-972e-0022ffbf553c", "5dc42ffd-1427-4fb3-a230-756efae02d3b", "06011fd6-5a9a-4948-a426-0f644c452a6f"] + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6", + private_money_ids=["02d17783-3423-4465-8176-1c87b02d11e3", "94db257c-e7ea-40f3-b32b-d80c77441aaf", "e77cbc1f-d1af-4d55-b2d1-8feecb77e988", "7ed86303-ee5e-4938-b3e7-78db95ece3be", "48e97ed7-e916-4086-887f-073778c9a768", "dc8b24bc-86bd-4846-b0a6-450f6cee271f"], + can_topup_private_money_ids=["752ee902-be04-4b38-a703-d94e318ec768", "e1657c37-f865-48ef-9f5b-4b4fa1a7c0a9", "c8da8810-de17-45a8-ba18-c2b6089ace2a", "d8cd2f3a-acff-4519-a17c-d373760504bc"], + status="active" )) 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"] + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6", + external_id="Oox0RRzWzgJ8qllmxnkMgshIHzbucf", + private_money_ids=["fe464f9b-7468-41c9-a492-9ea38bcc6f7b", "6d32dd44-2400-4e33-bc21-0771f82c98e5", "2b936e9b-13bf-4b6d-ac6f-74034e06c412", "0a8a4537-790c-47ca-8dce-f60741d150a8"], + can_topup_private_money_ids=["24c6189b-ebdb-41d5-a50a-229e3f990415", "78c91002-0216-4abf-93a9-9eb8740a68df", "2090f68a-2fca-4bf4-b1ef-5266ca7c34cd", "a86cb702-7871-4d31-94f9-b946b89e1263", "4893f3d7-1c5d-4b30-a055-8ff5291366db", "6c69519c-629e-42bf-a323-61b53531887b", "cac225f5-bae7-4c91-be95-a532bb7497d3"], + 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"] + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6", + email="pDoeGryI5O@QQ9G.com", + external_id="oRe", + private_money_ids=["fd531d68-2410-42e1-9d00-eb895a4b7599", "51d9f9d3-fb2b-4a0d-b94f-dbfe8eac67b2", "0e76059c-551c-4b2f-8121-b3886d686809", "e97d96a6-4994-49cd-9ab3-81e6fe93b873", "88676ddb-e26b-49e0-8a71-1a58c40703b8", "044562d7-c197-413e-a2eb-4978dcce315f"], + can_topup_private_money_ids=["221b7562-70d7-4f54-b086-e2b654ab9fb6", "e0dc55af-9469-475b-876a-1cb1b0cf8b97", "ded3fe86-756c-48d2-927c-702fb445fa90", "2bd0d8b9-be58-427e-a0a8-c4f56b8ec07b", "8a5a5e4d-4856-402c-bbaa-e363c570cea5", "0fabff73-4d92-44b2-bf7a-558be9f188e5", "874db985-48d1-4705-9162-0d7f2c82ddd1", "cd8d18dc-662a-4ff7-a2bb-df35a61be5b1", "a25f57a5-46ba-451b-ba55-8544c176bcea", "aceb8e81-b166-48f9-a12a-0ec707888f02"], + status="active" )) self.assertNotEqual(response.status_code, 400) def test_update_shop_6(self): response = client.send(pp.UpdateShop( - "1bbb746a-5c11-4c71-b1cc-895e07238985", - address="3qtgKMvjDsKXEFhYl0BRpqUDYmqwBJzhV6dtnsmaJHCLyhHLjUCzekHgQwDCfsWS6JXTLuG14K9HQGpPICoaRhYRcaR59QCffGIaaiPRXQUB9KSDwnfHx9gXjCberbb7S8DARwQI05I6eJLYrFtVTc8XF6Iz7He5QYfhFsP0lBKY5Zym6qbNd5Gezpxyuuv2alBrKW", - tel="04008708731", - email="VHCWblj8QD@bDxz.com", - external_id="olTpcO7N2cnroE2", - private_money_ids=["e6126752-7bf0-44eb-8949-ff9894dfbbc9", "6c39f20a-07a3-4f76-9dad-ed9263274fe8", "93deb7b8-1aa3-4da4-a045-bfbf3386b98a", "53eb93f2-c521-496a-9d63-646c44ad88b3", "cfad8563-86fa-4b31-ae4e-aa5ed8a0f1ca", "4408da8d-2516-4663-885f-b65ee7f8ecf7", "8d41ae0b-acc8-466c-8e2c-5cd8ee9e689d", "9edc0770-2513-4f8d-97ea-dcc5a7b08728", "18083187-4ed5-4386-9178-340da1006446", "27998550-7798-431a-b95a-b49f34912262"], - can_topup_private_money_ids=["6d3278ce-e389-438a-b8fe-281a643b057d", "6d86dd52-0219-466e-9637-23bd5304ae88", "b262c417-fa9c-4d26-a451-dd938291a11c"] + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6", + tel="069258633", + email="d07Li3GyEd@t6GG.com", + external_id="J1", + private_money_ids=["96ebd3a2-a058-4e6f-b5e0-bd2ef3b70088", "285ae1ba-5a0f-47d5-9084-4da2e91cc72d", "163dd5ab-009f-4a00-8610-9c26429a09e9", "825a61c6-cf2d-47ca-aaf5-251a2e164ebe", "00997e53-b4e3-4172-85c7-c1e34632bf59", "2d5edcb5-f049-47b6-9d76-c92311cf33fe", "b27056bb-2759-43a1-bc4a-38aa5f77f094"], + can_topup_private_money_ids=["b7053e7f-bf7c-4b71-85e3-e261ad76eeee", "9369ca73-8853-4b73-90b2-f3633f4f2aa3", "e9cf0887-6517-470d-9ebd-00e5089b10fd", "10cd95c9-ad76-4b3b-8b1d-acd034109fb9", "8bdca693-3ae2-46df-9b67-11aee5b97cd9", "2845dee1-e5ae-4111-ae0f-01514eafcce2", "aaea48d6-893a-4494-91cd-07398f70a35a", "2b95aab6-6c86-4dd2-87b0-49ebf6138ebc"], + status="disabled" )) 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"] + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6", + address="sPdzwEr5mXGzuLW3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUB", + tel="07-691-579", + email="5lQKirhrBQ@ImBb.com", + external_id="FT", + private_money_ids=["ea8a56ac-98c7-4680-a372-69dbfe137e32", "a00f14b4-1506-4b11-b6a8-d62c4b3c3552", "e51fc35b-9dee-405e-b021-1f5611b3382f"], + can_topup_private_money_ids=["438843cb-0ded-453f-8b16-edbcf104e971"], + 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"] + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6", + postal_code="9805461", + address="S4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUB", + tel="051-1864-629", + email="hvlI4uoOEn@KraN.com", + external_id="jpsN9SjDxtxrgs7e0dkiAAa8jwX6FLC", + private_money_ids=["bd03b1df-cfdf-405b-b13e-ad18fec38858", "df324786-3dde-44dd-ac76-217ac2ccd605"], + can_topup_private_money_ids=["a61ecd11-4461-427a-be53-1fc346fbbc45", "71a2b028-c23d-45fb-ba9f-b7317661bbe8"], + status="disabled" )) self.assertNotEqual(response.status_code, 400) - def test_get_private_moneys_0(self): - response = client.send(pp.GetPrivateMoneys( + def test_update_shop_9(self): + response = client.send(pp.UpdateShop( + "d7fd66e8-27fc-46ef-b1d9-25608a54ecb6", + name="EG2EkkP2VIPy7HW7Ee7skB9BB1YNClE0n87A30l6vspNWH9u8x4Yq2mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XR", + postal_code="0830744", + address="vgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8", + tel="0831-945", + email="U0HuG332kY@dREQ.com", + external_id="C39nZBUv4F8J7UzyDYEv7bctcmIqdmvT", + private_money_ids=["f763ca38-899e-44d2-82fa-1aa383768899", "2a869d1a-425f-4d70-95de-ee08bcddb5b0", "3cda3380-46e7-47aa-a978-3bf3b2277304", "fed0e182-8b99-424b-9a10-a3d793bd386f", "cce72155-afab-4793-a54f-0152340a4a3a", "bbb4bacc-b1b9-4bff-9438-20a31ed476ad"], + can_topup_private_money_ids=["41be219f-1e3e-4d44-b639-405b1a248e54"], + status="active" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_private_moneys_0(self): + response = client.send(pp.GetPrivateMoneys( )) self.assertNotEqual(response.status_code, 400) def test_get_private_moneys_1(self): response = client.send(pp.GetPrivateMoneys( - per_page=4872 + per_page=7640 )) self.assertNotEqual(response.status_code, 400) def test_get_private_moneys_2(self): response = client.send(pp.GetPrivateMoneys( - page=7705, - per_page=7080 + page=5556, + per_page=6368 )) 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="qT09", + page=3771, + per_page=4922 )) 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" + "66fdcfad-fd05-44df-8fb5-3f3b31843821" )) 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 + "66fdcfad-fd05-44df-8fb5-3f3b31843821", + page=227 )) 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 + "66fdcfad-fd05-44df-8fb5-3f3b31843821", + per_page=1470, + page=9356 )) 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" + "66fdcfad-fd05-44df-8fb5-3f3b31843821", + start="2022-05-13T16:48:47.000000Z", + to="2023-02-21T05:41:29.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 + "66fdcfad-fd05-44df-8fb5-3f3b31843821", + start="2024-12-08T23:51:32.000000Z", + to="2021-10-19T23:39:33.000000Z", + page=5636 )) 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 + "66fdcfad-fd05-44df-8fb5-3f3b31843821", + start="2020-06-07T14:20:12.000000Z", + to="2021-02-21T21:48:16.000000Z", + per_page=4093, + page=3110 )) self.assertNotEqual(response.status_code, 400) def test_get_private_money_summary_0(self): response = client.send(pp.GetPrivateMoneySummary( - "1b466ba8-55d0-40a0-8b9b-3c4e820dad5f" + "1b9e5a94-2c92-44c8-9b2b-39c4e36d7965" )) 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" + "1b9e5a94-2c92-44c8-9b2b-39c4e36d7965", + to="2024-11-07T11:44:33.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" + "1b9e5a94-2c92-44c8-9b2b-39c4e36d7965", + start="2024-05-05T23:12:50.000000Z", + to="2024-11-07T07:31:51.000000Z" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_customer_cards_0(self): + response = client.send(pp.GetCustomerCards( + "a483cd33-ea08-4cb8-bb14-c829a7cbdf55" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_customer_cards_1(self): + response = client.send(pp.GetCustomerCards( + "a483cd33-ea08-4cb8-bb14-c829a7cbdf55", + per_page=69 + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_customer_cards_2(self): + response = client.send(pp.GetCustomerCards( + "a483cd33-ea08-4cb8-bb14-c829a7cbdf55", + page=1501, + per_page=34 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_0(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01" + "2011ccde-7f52-47fb-825e-7ed14b48fd20" )) 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 + "2011ccde-7f52-47fb-825e-7ed14b48fd20", + per_page=2720 )) 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 + "2011ccde-7f52-47fb-825e-7ed14b48fd20", + page=5524, + per_page=4432 )) 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 + "2011ccde-7f52-47fb-825e-7ed14b48fd20", + to="2020-02-27T07:00:41.000000Z", + page=6753, + per_page=1012 )) 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 + "2011ccde-7f52-47fb-825e-7ed14b48fd20", + start="2021-05-11T16:21:51.000000Z", + to="2024-07-23T19:26:48.000000Z", + page=7183, + per_page=7465 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_5(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", + "2011ccde-7f52-47fb-825e-7ed14b48fd20", 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="2026-02-02T12:49:57.000000Z", + to="2023-10-28T00:21:30.000000Z", + page=9362, + per_page=9122 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_6(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", - type="payment", - 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 + "2011ccde-7f52-47fb-825e-7ed14b48fd20", + type="cashback", + is_modified=False, + start="2025-10-19T23:31:42.000000Z", + to="2024-01-13T06:39:00.000000Z", + page=1120, + per_page=83 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_7(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", - receiver_customer_id="4bfeb1cd-a2fa-4fa5-93d0-2c0dd8c04ce0", - type="transfer", - is_modified=True, - start="2017-04-01T05:42:00.000000+09:00", - to="2025-04-17T22:34:09.000000+09:00", - page=8585, - per_page=5913 + "2011ccde-7f52-47fb-825e-7ed14b48fd20", + receiver_customer_id="3f1dbc06-17a8-45f3-8753-40ccce9c2a23", + type="payment", + is_modified=False, + start="2025-03-24T23:40:16.000000Z", + to="2020-04-01T03:56:25.000000Z", + page=7463, + per_page=1449 )) self.assertNotEqual(response.status_code, 400) def test_list_customer_transactions_8(self): response = client.send(pp.ListCustomerTransactions( - "05b16a54-5888-47c7-a866-6d99ba6a6c01", - sender_customer_id="60db07d8-5eb4-40c7-ba2a-a5211ac0bd0e", - receiver_customer_id="d8128818-e537-46c0-bdd4-3e371623cacf", - type="transfer", + "2011ccde-7f52-47fb-825e-7ed14b48fd20", + sender_customer_id="c22edb34-4f0a-4e46-9614-b4c1172415d7", + receiver_customer_id="56dd79de-24ea-4476-9aa3-ebce4538382f", + type="exchange", 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="2020-01-11T01:52:06.000000Z", + to="2025-04-08T02:14:04.000000Z", + page=259, + per_page=8654 )) self.assertNotEqual(response.status_code, 400) def test_get_bulk_transaction_0(self): response = client.send(pp.GetBulkTransaction( - "8300a4b9-cfd7-4739-abb1-07e548bc1afd" + "96a7a184-85a9-4c47-a81b-3acfd9304c00" )) self.assertNotEqual(response.status_code, 400) def test_list_bulk_transaction_jobs_0(self): response = client.send(pp.ListBulkTransactionJobs( - "1e4cffcb-fa3a-4e0b-889d-159adda948b7" + "58b02637-b0cd-476a-8a05-0fef731e5e0d" )) 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 + "58b02637-b0cd-476a-8a05-0fef731e5e0d", + per_page=2208 )) 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 + "58b02637-b0cd-476a-8a05-0fef731e5e0d", + page=1455, + per_page=5290 )) 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 + "1762a046-28e9-4448-8ca2-adf40a61a44e", + "19e6620d-8739-45d9-bbf1-db79fbc3dfb7", + 4000.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 + "1762a046-28e9-4448-8ca2-adf40a61a44e", + "19e6620d-8739-45d9-bbf1-db79fbc3dfb7", + 4000.0, + expires_in=398 )) 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 + "1762a046-28e9-4448-8ca2-adf40a61a44e", + "19e6620d-8739-45d9-bbf1-db79fbc3dfb7", + 4000.0, + description="5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j", + expires_in=8597 )) 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( + "88a621b2-9025-4d2d-8ee3-72478e799789" )) 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( + "832241f0-0764-4bb9-baeb-fed47ee46b3c" )) self.assertNotEqual(response.status_code, 400) def test_update_cashtray_0(self): response = client.send(pp.UpdateCashtray( - "eb79417e-11ba-41b0-97ba-a66dfab9dd91" + "53261b99-a567-4137-a608-723a046e6a7c" )) 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 + "53261b99-a567-4137-a608-723a046e6a7c", + expires_in=5923 )) 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 + "53261b99-a567-4137-a608-723a046e6a7c", + description="WuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEW", + expires_in=8185 )) 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 + "53261b99-a567-4137-a608-723a046e6a7c", + amount=1468.0, + description="ko5rtXdkjCZ6KXkiMx1kHTVbpRx79qoFTViWGk7rsKgu2ihoMxDsfU3TC1A8fV5nkzyaMo6HNFjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6D", + expires_in=7136 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_0(self): + response = client.send(pp.ListCampaigns( + "49f7e798-8e0b-4989-accc-69706d919796" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_1(self): + response = client.send(pp.ListCampaigns( + "49f7e798-8e0b-4989-accc-69706d919796", + per_page=39 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_2(self): + response = client.send(pp.ListCampaigns( + "49f7e798-8e0b-4989-accc-69706d919796", + page=6121, + per_page=38 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_3(self): + response = client.send(pp.ListCampaigns( + "49f7e798-8e0b-4989-accc-69706d919796", + available_to="2022-12-26T07:00:07.000000Z", + page=5408, + per_page=45 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_4(self): + response = client.send(pp.ListCampaigns( + "49f7e798-8e0b-4989-accc-69706d919796", + available_from="2023-08-04T18:04:06.000000Z", + available_to="2025-08-18T01:15:06.000000Z", + page=8108, + per_page=23 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_campaigns_5(self): + response = client.send(pp.ListCampaigns( + "49f7e798-8e0b-4989-accc-69706d919796", + is_ongoing=True, + available_from="2024-03-30T16:48:40.000000Z", + available_to="2023-11-15T06:19:27.000000Z", + page=8605, + per_page=50 )) 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" + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["a0b84fc5-d145-4a4c-ac14-c0d6eaf996fd", "ac0a94ba-acec-41f9-841d-b6e3f4fc265b", "b02ce98f-048e-4b66-9be4-9b7c54d5587e", "f280f724-3491-4da4-a8ae-2e8883f44c41", "667502b0-aa73-446e-aa31-0eca9bb30add", "ba11f970-768b-4290-b963-1374797bf942", "3bd73509-c276-4058-b25f-d278e2bdceea", "731d7773-9e70-4e6d-95e7-86325525cca4", "b684e18a-a0ca-4b6f-a682-1d94677441e2", "caddb8ad-d2a5-4311-a664-0405309043b8"] )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_1(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["44102ec9-f437-41e3-a1b3-742f18e5a9ef", "8b86a379-be51-499f-91c9-ba7347ccd800", "7b011212-ac9c-47d5-acb3-ccba639f38f2", "901290c3-c5cd-421f-9f04-f0b2afdb1310", "19fb3020-bd05-4dda-ab0e-ac4d55c2b9f0", "5af66ac5-3a34-4d18-9557-65c4e5aedc00", "ea75f9a5-2313-4cdb-af72-c9fbb6a3a834", "8f6b21a2-70c9-4041-8454-00486eb08096", "a6a9d58b-235f-4c64-94d0-50739dbb2310", "d8cd47ea-da68-470d-ad55-4c24280e130e"], + bear_point_shop_id="a29c39f3-3cbe-47d7-a275-2b3b0e15f01e" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_2(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - dest_private_money_id="7dc078ac-b404-48ed-9777-fb30237911c5", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["05acade8-8f07-4c6e-a292-953f5f995649", "b523a955-5746-47bb-ac28-e966991c9bc0", "969d3676-ca6f-4de2-a4cf-9220f27dd5df", "b7943d9b-0b94-4ce3-ba5d-c4eca288bbc6", "df6dc3d8-244b-4de6-b6a7-5111a927da5f", "b2deaee4-40d1-4c05-a9f6-1aafc14c52bc"], + description="3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si7WktomTSIs3sss0bSZ1cR5rMDg0iBD", + bear_point_shop_id="9fd44414-5312-4532-a518-dc74b6dccb11" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_3(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - max_total_point_amount=8487, - dest_private_money_id="6d324518-06fc-4623-aa6e-34e4b0a25291", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["9b22f78c-2105-4411-9238-9339386401f6", "eb6ac9d2-d282-4807-8165-a4e8e06f4559", "33bc1e49-0d5a-4ae2-bf7c-b9cd36ba6268", "89e1ee36-cf25-45cd-902f-49e6cff4f7bf", "3aa0f1a5-2803-43bb-bd1e-04aa7ebe5653", "3f825c68-8941-4db8-84b4-d940f7bde4e0", "175165c5-7cf6-42b7-8f1a-bf211aca37cf"], + status="enabled", + description="TGT70LQ2epxhXvfJrqwCwzvGv5tXB9341AdQSvr2jD2CPBEg6qDXhSH8hafJy0sDTnMPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14xB891rPV7FcdDeB61vcOZ1uNBAdr6lfzbfqKlnsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c", + bear_point_shop_id="edf0f317-b7b2-4476-b53c-c44edcaa7cf6" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_4(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - max_point_amount=3783, - max_total_point_amount=756, - dest_private_money_id="f424cefe-6014-483b-8788-4bf615716118", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["ed8cf352-efff-40d2-9b8f-5db1d5c2afef", "d45bfd0b-c4f6-4ad5-bb6f-421024b42053", "01569a4d-a614-40f8-8975-0b2b8f0408f7", "12c97414-113c-471f-af69-7e731ee57bb4", "c9443f33-8f0c-433d-8615-b1680bf7fbcb", "e853b0cf-778e-4574-8841-7bef4119283f"], + point_expires_at="2022-08-06T08:32:41.000000Z", + status="disabled", + description="7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nf", + bear_point_shop_id="8130aa50-845a-4b1e-b488-20fa58209747" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_5(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - exist_in_each_product_groups=False, - max_point_amount=6880, - max_total_point_amount=8168, - dest_private_money_id="08ffb985-f360-4626-92d0-f7f57c263d84", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["2534116e-fcd6-4088-8aa8-2ce2d72df77c", "4c536a74-87c3-441f-83ee-d773d6f1429a", "09fdb62f-b5e0-47ff-bce4-390d8b71a125", "b725312c-9246-4bbd-94d6-778f50674a2d", "5c4ffddf-ff63-4883-9cea-8fc66007ed78", "4180cc2e-a720-4df0-a0eb-068bb7f421ae"], + point_expires_in_days=7795, + point_expires_at="2024-11-24T16:27:49.000000Z", + status="disabled", + description="7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF", + bear_point_shop_id="ac0eb00d-c437-4da7-9048-852db8b91e39" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_6(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - minimum_number_for_combination_purchase=6296, - exist_in_each_product_groups=False, - max_point_amount=8551, - max_total_point_amount=3991, - dest_private_money_id="4d498f9b-cea5-452c-87d2-4a20d721f5e8", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["9a1df2fb-ae50-43bd-af2b-71292058d7b3", "c9bab7f1-36d2-48e2-9dd8-0cc35caa7a12", "f6195382-82b0-460e-bb21-e62bcc1a47b6", "c0fa9da8-76e8-4bc8-b5f1-632bfabf3eb5"], + is_exclusive=True, + point_expires_in_days=9180, + point_expires_at="2022-03-23T10:02:07.000000Z", + status="enabled", + description="rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO5B", + bear_point_shop_id="19099b97-93a2-43f0-acb0-91547f785989" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_7(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - applicable_shop_ids=["403a483d-212a-46d3-89ac-f82f59c6cede", "603c630b-0950-44bb-ab42-b73f6db31b0b", "a6654460-debb-4f19-8c0d-5f7f08dadd2d", "d2f5f88f-ff99-488c-860f-1bd6ddfd067e", "de38f153-87ef-45f4-a69f-dc67aedbbc0f", "85bb9caf-bea0-42fe-b96c-17e42ea048c0", "68f309ae-73ae-4a02-96d6-1f8e17f2756d", "baef9f61-e0d0-4078-bb26-ac8893c91881", "da85f1f8-376b-4f12-94f1-229f764a8ea8", "ec0c115b-e6a7-4cba-8fed-80c6310b45f2"], - minimum_number_for_combination_purchase=8647, - exist_in_each_product_groups=False, - max_point_amount=3302, - max_total_point_amount=1602, - dest_private_money_id="951d8947-e95c-41d7-bcb6-7aac1875fb74", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["f7e72d3d-afa1-4b8d-99a9-82846a8ee715", "59e2848c-fcbc-4291-99c2-bb72f0117693"], + subject="all", + is_exclusive=True, + point_expires_in_days=8894, + point_expires_at="2023-09-10T21:00:20.000000Z", + status="disabled", + description="CNxXXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYg", + bear_point_shop_id="90511989-a94d-485f-9328-60795b7812e4" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_8(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["2e2033e1-256c-4247-bb37-d8a9405419b6", "eeb8a802-aa71-45bc-ae94-2845ebb06b8f", "1887acb4-8501-48d4-b1f6-814f622fb7f2", "9529f90c-b482-49cb-8d41-fa1e85f34834", "154c8c49-e277-4aa5-84e7-f619a479e253", "9f49b3b5-10c1-4a01-a721-e0697fd30809"], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], - 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=True, + point_expires_in_days=9688, + point_expires_at="2021-10-13T16:35:30.000000Z", + status="disabled", + description="xneekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJAVzV6vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44B", + bear_point_shop_id="45e400ef-43a2-4df6-91ab-2780e2da8848" )) self.assertNotEqual(response.status_code, 400) def test_create_campaign_9(self): response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - applicable_days_of_week=[5, 3, 6], - applicable_time_ranges=[], - applicable_shop_ids=["054dde71-7a0a-4ec1-a34c-0ed03298acf7"], - minimum_number_for_combination_purchase=7240, - exist_in_each_product_groups=False, - max_point_amount=8545, - max_total_point_amount=9335, - dest_private_money_id="d70c4f1e-4cfd-4d48-a509-b2898d5e93db", - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_campaign_10(self): - response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["3d99363f-e089-4b2a-8bab-b8887e95e819", "a7dc8a71-bdd9-4f7a-abb7-9f127a759460"], product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -3513,98 +4347,43 @@ 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" - }, { - "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=["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", @@ -3621,19 +4400,42 @@ def test_create_campaign_12(self): "subject_more_than_or_equal": 1000, "subject_less_than": 5000 }], - product_based_point_rules=[{ - "point_amount": 5, - "point_amount_unit": "percent", + subject="all", + is_exclusive=False, + point_expires_in_days=7598, + point_expires_at="2022-01-12T23:51:33.000000Z", + status="disabled", + description="G1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTe", + bear_point_shop_id="836fff59-b075-4ae1-b544-3ef659b1110c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_10(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["881f8e4a-34f3-44ee-b8a7-74a6469c7dec", "863562e8-35c0-453b-8984-1055d08779a0", "aec26663-0a0d-407e-a7c9-39086b933f6b", "bd6950d9-59b0-4fae-af4e-4360c881a088", "5720cc84-068a-40a8-9512-9a3433c90e08", "2de60bfd-d3bb-4924-9240-cca42697b11b"], + blacklisted_product_rules=[{ "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "classification_code": "c123" }, { + "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", @@ -3645,7 +4447,72 @@ def test_create_campaign_12(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", + "subject_more_than_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=5358, + point_expires_at="2024-01-27T07:31:48.000000Z", + status="enabled", + description="N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E", + bear_point_shop_id="636c6696-a6fb-4631-9055-ded162d0b869" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_11(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["03175e2b-5175-4cd6-bffa-b03a8d34de8f", "49ec67fc-f792-4264-8d54-9b8003573026", "c3366816-945b-4c60-a1b2-7e0615eb5690", "482431be-8a59-41d6-963b-dbce1613d2a1", "79ced667-920b-431d-9d6b-d1687843dec7", "a23e5c5b-e23e-4789-bee9-73cf221091e1", "1321d024-494a-4f96-abb8-651269be73a4", "3cee3023-3d27-48c8-9757-4b9f66188be2", "9205f3d8-0c4f-461e-924d-de73a4e113f9", "5f3dbc1a-a4cd-4e8c-9ed6-8a903bc07c98"], + applicable_days_of_week=[3, 3, 1], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -3658,7 +4525,36 @@ def test_create_campaign_12(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[2], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=1162, + point_expires_at="2024-09-15T12:26:01.000000Z", + status="disabled", + description="FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4y", + bear_point_shop_id="96b2c940-5186-489a-92f2-a27102a600bb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_12(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["1935336c-49c9-482b-b3ed-9848d67af92a", "617aa2af-e60f-4a79-bbf6-f8ae957a7566", "839fec41-d93e-4def-b10f-9dbcbc2c935a", "24c65b99-f16b-4277-ab18-606462089fa4", "c7ec92b2-3001-42c1-aa17-01447935ed8d"], applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -3668,53 +4564,45 @@ def test_create_campaign_12(self): }, { "from": "12:00", "to": "23:59" + }], + applicable_days_of_week=[6, 1, 2, 0, 4, 0, 5, 1, 5, 0], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "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=["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=[{ + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules=[{ - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 @@ -3755,11 +4643,38 @@ def test_create_campaign_13(self): "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" + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=7321, + point_expires_at="2022-10-27T22:42:12.000000Z", + status="enabled", + description="E5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iBoGU1OxUmIl7jlWxrfEKMQ8FCs062PLb59yfzniw8Z7TrjWh0", + bear_point_shop_id="ff54fc91-7642-4ae0-919d-07e4e7d7a11f" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_13(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["c991800c-4272-42b7-9862-8a219c6aee0c", "4e580d4f-3220-47c3-8230-8624f60439c1", "52d1d955-4266-4a4a-971b-daee83aff97d"], + minimum_number_of_products=2455, + applicable_time_ranges=[{ "from": "12:00", "to": "23:59" }, { @@ -3771,44 +4686,25 @@ def test_create_campaign_13(self): }, { "from": "12:00", "to": "23:59" + }], + applicable_days_of_week=[0, 3, 5, 3, 6, 6, 6, 0], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }], - 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=[{ + product_based_point_rules=[{ "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", @@ -3827,7 +4723,53 @@ 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], + 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=7230, + point_expires_at="2025-04-05T19:13:01.000000Z", + status="enabled", + description="2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL0", + bear_point_shop_id="2172ef03-dd9f-4eb6-84f7-8d52a71836cf" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_14(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["fa6d1496-7cbf-4a5a-ab33-a817024b4d8e", "d3e5be33-ede4-481c-938a-7a623a471235"], + minimum_number_of_amount=2098, + minimum_number_of_products=2973, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -3840,49 +4782,64 @@ def test_create_campaign_14(self): }, { "from": "12:00", "to": "23:59" + }], + applicable_days_of_week=[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" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - 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=[{ + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_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 }, { @@ -3921,67 +4878,72 @@ 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], + subject="all", + is_exclusive=True, + point_expires_in_days=8098, + point_expires_at="2023-01-03T16:21:24.000000Z", + status="enabled", + description="orM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt", + bear_point_shop_id="9a5527a5-bca9-46b1-bc7a-b42ebc238254" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_15(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["9f96afed-3e35-4ade-be97-0cd1b0d3005b", "f5ae4ffb-9409-493f-b355-694a89df4c5f", "173e0749-662e-470a-b837-113fae85f586"], + minimum_number_for_combination_purchase=3488, + minimum_number_of_amount=6313, + minimum_number_of_products=8427, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids=["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" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_create_campaign_16(self): - response = client.send(pp.CreateCampaign( - "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs", - "a3dd2a8c-a0c8-4a92-9f88-255c868fa801", - "2019-03-03T02:07:28.000000+09:00", - "2023-07-26T09:59:50.000000+09:00", - 4686, - "payment", - status="enabled", - point_expires_at="2021-06-04T07:55:30.000000+09:00", - point_expires_in_days=9766, - is_exclusive=False, - subject="money", - amount_based_point_rules=[{ - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + applicable_days_of_week=[2, 4], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], product_based_point_rules=[{ "point_amount": 5, @@ -4001,8 +4963,47 @@ def test_create_campaign_16(self): "product_code": "4912345678904", "is_multiply_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 }], - applicable_days_of_week=[], + subject="all", + is_exclusive=False, + point_expires_in_days=7177, + point_expires_at="2025-12-13T15:02:04.000000Z", + status="disabled", + description="0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPr", + bear_point_shop_id="356bc146-caec-4ddd-af12-0c1b41434d28" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_16(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["5661efbe-1138-4e61-a33c-ca62d8394992"], + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=3349, + minimum_number_of_amount=4380, + minimum_number_of_products=9957, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4027,50 +5028,64 @@ def test_create_campaign_16(self): }, { "from": "12:00", "to": "23:59" + }], + applicable_days_of_week=[5], + 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" }], - 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=[{ + 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 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_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,75 +5108,12 @@ 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 - }], - applicable_days_of_week=[1, 4, 3, 1, 4, 3, 5, 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" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "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, @@ -4181,6 +5133,42 @@ def test_create_campaign_18(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=1761, + point_expires_at="2023-12-12T21:10:15.000000Z", + status="disabled", + description="FsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWI", + bear_point_shop_id="c88b97d1-e5b2-4d86-a15c-2d6c1ee2fc6a" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_17(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + 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"], + max_point_amount=5314, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=6201, + minimum_number_of_amount=7270, + minimum_number_of_products=4604, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[3, 4, 6, 5, 4, 4, 4, 0, 5, 5], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }], product_based_point_rules=[{ "point_amount": 5, @@ -4230,166 +5218,58 @@ def test_create_campaign_18(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", + "subject_more_than_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=[], - 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=["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", + subject="money", + is_exclusive=True, + point_expires_in_days=6519, + point_expires_at="2025-06-29T21:34:46.000000Z", + status="enabled", + description="UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQUyWa", + bear_point_shop_id="9608e256-2ae7-4bc2-8b61-9b4ccf302757" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_18(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["ba1d9ecd-9290-4e98-aa57-59f09d0fabde", "b8560974-6fea-47e7-bf66-cdb04bf643c6", "73af1f69-a15a-41da-8344-6193e5170c60", "1fa20991-44db-4d45-8aae-f3ba72b04596", "73f83ac5-c04f-45b2-bcfb-7050cc7526da", "0bdca3ad-03dc-40c1-a0b9-68e29a6de9e9", "18d9c289-baef-4484-912b-6e5fc1e4d7cd", "22906b88-0350-4247-9331-9f2b24ffac94", "450483c5-83b8-4bb1-ae6a-ce96e9939a2c", "1b9d918b-cac3-41c1-a0d2-29fd77437129"], + max_total_point_amount=7009, + max_point_amount=5821, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=5925, + minimum_number_of_amount=4733, + minimum_number_of_products=6840, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4414,60 +5294,30 @@ def test_update_campaign_7(self): }, { "from": "12:00", "to": "23:59" + }], + applicable_days_of_week=[3], + 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" - }], - applicable_shop_ids=["1c80cfcb-f8b7-4405-bdb6-50d6d4d3d48f", "3a88a31f-c87f-4cfe-b54d-7784abeac0cd", "419673af-3cd3-4c04-9d1c-97e85356e2aa", "189a11af-5032-4bc8-a1b6-13ebafbd1bb6", "ec808e82-f0b5-4789-94eb-cf67bf22437b", "9fe8d2d1-f093-451c-892c-4341a3150ac8"], - minimum_number_for_combination_purchase=5080, - exist_in_each_product_groups=True, - max_point_amount=7117, - max_total_point_amount=6957, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_8(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - applicable_days_of_week=[6, 6, 3, 5, 4, 4, 1, 6], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_shop_ids=["adc67640-ed95-4bc5-8c92-a9d6a1de17c6", "7b596a2a-1549-4dec-87a2-0dbc7db3109f", "2b78ff8a-e53b-4d69-8c5d-a41fdf3cbd08", "1fa80e1e-d3c7-472c-95eb-fafadb55251a", "50f25c44-9177-41f2-93f4-8a80a12c1944"], - minimum_number_for_combination_purchase=8825, - exist_in_each_product_groups=True, - max_point_amount=9265, - max_total_point_amount=5977, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_9(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -4480,33 +5330,13 @@ 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" + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }], - 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", @@ -4542,16 +5372,56 @@ def test_update_campaign_10(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=8058, + point_expires_at="2024-09-07T16:02:20.000000Z", + status="disabled", + description="xBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggr", + bear_point_shop_id="1218eafa-876e-43ce-978a-8cc2e76f0856" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_19(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["7379a4b0-2f5d-4205-b00f-26b9cc760a8d", "e1638b08-21c2-4dc2-8f54-752c66834a54", "0fa189f0-92ab-4d29-b69c-73c1bba5dfc7", "37e084f0-a94d-4e9a-8e82-55cd35039622", "2b68eaa3-3ae0-428f-9d3e-09cfdad7109e", "950b447e-4e3d-4e81-b3e2-17745dfcd0c0", "9da3ff48-daad-4f59-a39c-a61729d6e947", "19d439e9-f5aa-4dc2-a814-9fb42ad1fb98", "7930df2d-070a-4a1b-91e1-44ec248aa002", "d40a1b75-b1b6-4f03-9c00-85120c5d789e"], + dest_private_money_id="3c0c4263-0168-4627-ba3b-dca2a369adc4", + max_total_point_amount=792, + max_point_amount=7127, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=8481, + minimum_number_of_amount=6353, + minimum_number_of_products=5604, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "from": "12:00", + "to": "23:59" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[6, 1, 2, 3, 4], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], product_based_point_rules=[{ "point_amount": 5, @@ -4595,90 +5465,114 @@ def test_update_campaign_10(self): "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 - }, { + }], + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 - }], - applicable_days_of_week=[4, 2, 1, 4, 0, 1, 3, 5, 2], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], - 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" - } + subject="all", + is_exclusive=False, + point_expires_in_days=5912, + point_expires_at="2022-08-15T08:38:37.000000Z", + status="disabled", + description="3qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKI", + bear_point_shop_id="a1efb859-a897-41d2-816c-a331ffa8685d" )) 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=[{ + def test_create_campaign_20(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["b7f4f943-7a75-4ddc-93d1-b17b76ef6b79", "700af5e3-ddd7-4b67-9846-2f6ca99c995b", "ee279551-dcf2-4b94-9ec7-8a2f3e83bc2d", "23746f5b-a15c-4de4-9bd2-6e8f6939c371", "ee21a37f-b22d-4856-a433-42c386afe982", "c7c944fd-9649-4996-acc5-f8b359a968a0"], + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="9127d928-3be0-46ab-a4a5-c24ffbe3d5ac", + max_total_point_amount=3001, + max_point_amount=2249, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=8933, + minimum_number_of_amount=7550, + minimum_number_of_products=8066, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[3, 0, 1, 1, 3, 2, 1, 0, 5], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "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,55 +5584,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" + "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" - }], - 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", + "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 +5631,40 @@ 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=False, + point_expires_in_days=5608, + point_expires_at="2021-03-28T05:20:29.000000Z", + status="enabled", + description="K5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vg", + bear_point_shop_id="f4066ccc-1a9d-4791-88be-b03d73692afc" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_21(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["4ec18423-7318-4604-a66e-47b27e45a51d", "e3ad3080-0913-4c4f-a42d-3bfd6fd08b0f", "e85bb160-d910-461c-ace0-f7ad35dc5bf8", "b8acf4e7-55f8-4999-b703-113d670c33c6", "739a4832-6bb9-420a-a5d6-a3695fe54c26", "1a752f00-5300-43dd-b50e-76dc9092a377", "1774efcb-dd12-4aa6-b47e-026abf113df3", "dae269a3-7540-49a9-926a-867af3dc3ba2"], + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="d3bb04a4-331e-4729-9ff6-abaaec97c8e2", + max_total_point_amount=4800, + max_point_amount=2496, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=1423, + minimum_number_of_amount=5718, + minimum_number_of_products=4354, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -4781,61 +5692,59 @@ def test_update_campaign_12(self): }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - 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=[{ + applicable_days_of_week=[4, 1, 0, 2, 6, 6], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "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, @@ -4850,42 +5759,7 @@ def test_update_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 - }], - applicable_days_of_week=[2, 3, 1, 0, 6], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids=["ba85e3dc-a2f8-4fb2-8f20-27bbe9d8381d", "4bfedff2-8599-49ac-a3d6-66af40877bcd", "6ac00018-4574-4828-8d51-2f700aa67acc", "6b50d850-fd85-4f07-83e5-5a2ee60eded0", "b9731fa4-16b9-4064-bacc-4ef8f2002096", "b3952eb5-d0f4-45ad-bcad-9332e57f556c", "776a97dc-03e7-4fd7-8e3d-042e66fe28a8", "1189a76f-23ca-4ed1-996f-7bcf4c73b215", "58223f53-902d-476d-85c1-7f6353efd375", "7489cb9d-67cc-48c0-a996-bbaf46e92b56"], - minimum_number_for_combination_purchase=4129, - exist_in_each_product_groups=False, - max_point_amount=6898, - max_total_point_amount=5909, - applicable_account_metadata={ - "key": "sex", - "value": "male" - } - )) - self.assertNotEqual(response.status_code, 400) - - def test_update_campaign_14(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", - point_expires_at="2023-05-22T05:15:36.000000+09:00", - point_expires_in_days=3881, - is_exclusive=False, - subject="all", - amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, @@ -4910,16 +5784,71 @@ def test_update_campaign_14(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=99, + point_expires_at="2025-01-04T01:42:29.000000Z", + status="enabled", + description="E0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseLQBXI", + bear_point_shop_id="d748e101-7a1e-46d5-a985-4bbfa40aed59" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_22(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + applicable_shop_ids=["dc0f56f0-4292-460d-9e95-e39f0d6e24d4", "4e190d5b-0680-4476-a54e-659910eb3411", "8ff75a06-67e7-42e6-a0e1-f64b4808c611", "77d28e7c-6ebf-4d14-b3dc-e150f1b7616f", "9d14976f-5598-4677-b04b-50c1866495f8", "85603725-1e33-448f-9f6b-df0ff6aa8c24", "65a2c966-8d87-4841-b3b1-b5f7effa4c58", "4a41a964-2ab0-4334-9adf-1ca754506e92", "0223dba7-ca53-4e59-b187-132116bbf0cf"], + budget_caps_amount=2050904285, + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="c7048138-ce5d-4d10-9e3d-44bfea40c280", + max_total_point_amount=4028, + max_point_amount=2331, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=2445, + minimum_number_of_amount=3983, + minimum_number_of_products=2989, + 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" + }], + applicable_days_of_week=[6], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "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, @@ -4933,47 +5862,166 @@ def test_update_campaign_14(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 - }], - applicable_days_of_week=[4, 5, 5, 4, 6, 2], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" + "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=["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" - } + subject="all", + is_exclusive=True, + point_expires_in_days=8745, + point_expires_at="2025-01-09T08:05:15.000000Z", + status="enabled", + description="ye61uzmBIXd", + bear_point_shop_id="b029329b-46bc-446e-9f1a-e8c54d0890ce" )) self.assertNotEqual(response.status_code, 400) - def test_update_campaign_15(self): - response = client.send(pp.UpdateCampaign( - "80db920c-14b6-4bd6-a117-8ca291a457ff", + def test_create_campaign_23(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["fa3ba695-e2f3-4d29-8833-352ead2b6624", "bae15a8e-8ec0-4a0d-aaa6-d4c25a57b1df", "c25fad23-166c-4677-9a89-0f814a596d60", "247eccf2-a3c4-4c7f-92b7-acb21251a9e0", "33ba3d7c-ba16-48a3-84c2-7f8d1e982eb3", "10a25e24-52e0-4a37-a613-4307875daac3", "5dcc4e8b-fb52-4fbc-8074-98fb8ed0f4b8"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_24(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["75e2aca7-85bc-4e78-881f-a2e9ada790d0"], + bear_point_shop_id="b91348fe-8f49-481a-b7c3-cabe1efb146c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_25(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["3dead11c-109a-4c25-9a31-92cb2fed15a2", "f267bdcf-7ec7-4909-a7c5-0a32f7b0e1dc", "a3d2cef3-346a-418e-bd0f-0637a9fc4a3d", "710a31db-3dc8-4475-b6d7-ca4b744f2e09", "586e2da1-eab5-4d0c-acdc-ebcd34a3ed03", "5c8bba82-95a2-4ebc-a21f-7b8847ee0337", "47504985-546e-4cdd-a270-91fba70de912", "ce37af85-9e5b-4c67-b563-bbaf785aa2e8"], + description="s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwxF", + bear_point_shop_id="d9782dc2-1758-44a6-ae26-e7ba353b6a4a" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_26(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["a373a745-6e9d-4160-9bac-c3a20c08ad71", "c9acc803-0a36-4197-87e3-fe4e6eec6b50", "13fe81ae-fdc3-4820-929a-6f45e8d3b956", "cfaee0db-75fb-400f-903e-26a4c985a0f1", "8f76d4b4-4336-4c40-8764-17c9968aff50", "eb9b5625-c62c-484a-ad23-95386b5237e1"], + status="enabled", + description="Ybz4K3IA8JYUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8g", + bear_point_shop_id="b660694b-c0a4-4f77-ba61-aa6479b7e707" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_27(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["beafb8fb-f795-46de-b7b5-22e5ba51f2a0"], + point_expires_at="2023-10-19T11:23:47.000000Z", + status="disabled", + description="qfZdksVLOz", + bear_point_shop_id="8566d5e2-afed-4f57-89fb-304a5ee2533e" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_28(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["817eb5a9-4986-4720-bf61-0f7bb6aedc38", "568bcf17-ad59-4cba-876b-97d67fb945b1", "57570cb0-47d6-4db0-a37f-f32c5f3c6f35"], + point_expires_in_days=6633, + point_expires_at="2021-04-10T15:37:11.000000Z", + status="enabled", + description="f8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOest", + bear_point_shop_id="3e24cb0e-be2c-4e82-a6de-758753c3362a" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_29(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["b2c89020-2446-4615-8a75-9f269c468960", "a090236d-29c7-4dd1-96af-48e62cbcc9ad"], + is_exclusive=False, + point_expires_in_days=6936, + point_expires_at="2021-12-12T01:14:48.000000Z", status="disabled", - point_expires_at="2023-06-17T16:10:08.000000+09:00", - point_expires_in_days=5145, + description="sw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhL", + bear_point_shop_id="6847157e-0cf0-43c1-87b3-44760ce5bd94" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_30(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["7c0a7caa-7490-4313-9898-5ec90f586152", "77a97abd-7906-414d-9671-b35e721bafe2"], + subject="all", is_exclusive=True, - subject="money", + point_expires_in_days=849, + point_expires_at="2021-10-23T10:09:44.000000Z", + status="enabled", + description="PKwzwzrbVYc", + bear_point_shop_id="e932099e-7370-4add-aeaa-dd04a84fc893" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_31(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["840a6d3e-6292-4984-b5a4-88b80f42df25"], amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", @@ -4999,12 +6047,34 @@ def test_update_campaign_15(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { + }], + subject="money", + is_exclusive=True, + point_expires_in_days=733, + point_expires_at="2025-05-22T17:54:19.000000Z", + status="disabled", + description="xDTzMnM7RDpI6DZQ", + bear_point_shop_id="7de27390-4754-472a-90e6-7ec92732d161" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_32(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["5d76d5a3-0ac0-47d3-99c2-71ed0bfa0120", "c52f6b15-f857-4509-ba46-ce2eee852f26", "94819aa4-eebd-4402-8de2-0dd6e4282be6", "97810ae1-b1fe-41cc-b5ae-4bbd9d01a9ae", "ecd739cc-c854-4b0b-b2a8-dae3dca6a10e", "a03dc1d0-e6ea-4be3-b466-e812130140ac"], + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, @@ -5014,16 +6084,41 @@ def test_update_campaign_15(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=4957, + point_expires_at="2024-11-06T11:04:30.000000Z", + status="disabled", + description="A5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7M", + bear_point_shop_id="b821bbbd-5877-4d71-b13f-febaab2c88a6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_33(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["5e3eea03-b0df-460b-85e0-4d86aff129af"], + 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_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], product_based_point_rules=[{ "point_amount": 5, @@ -5080,48 +6175,64 @@ 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", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=8842, + point_expires_at="2026-03-26T12:00:34.000000Z", + status="disabled", + description="PpK6TParu", + bear_point_shop_id="22935bf5-9ea4-446c-a79f-10a09c2e1692" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_34(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["731709b1-e631-4e82-a72d-9d55778cbc0b", "f3007cdc-5409-4772-a593-dbe73a1567d7", "84745171-a7b5-4e31-bc8e-65c1c4359b9f", "f315867f-6618-44ac-b5d5-d9fd46e244c0", "b917ddbb-6cbc-45bd-bc9f-ff6f32dee10d", "868fd875-f8ee-4b79-88dd-da76910f3e35", "b1f9945d-6637-4e72-a6c4-2de27ed5a399", "c3c390f6-631d-441a-adf5-b9bffdea348c", "ddebc04c-2a0f-409a-b742-a871c7fe3b59"], + applicable_days_of_week=[2, 0, 1, 1, 4], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 }, { @@ -5150,25 +6261,38 @@ def test_update_campaign_16(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 + subject="money", + is_exclusive=True, + point_expires_in_days=2517, + point_expires_at="2022-02-26T16:37:38.000000Z", + status="disabled", + description="lx603bU9utxlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4", + bear_point_shop_id="e8ce142c-9029-460d-960e-2d481c5c0194" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_35(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["b46e35be-45ff-4a0d-98f0-9d19282db25e", "97431ca7-278a-4984-9b97-0855e4df2c2e"], + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" }, { - "point_amount": 5, - "point_amount_unit": "percent", + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[5, 6, 3, 4, 3, 1, 5, 3], + blacklisted_product_rules=[{ "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 - }, { + "classification_code": "c123" + }], + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -5192,14 +6316,33 @@ def test_update_campaign_16(self): "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 - }, { + }], + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], - applicable_days_of_week=[3, 0, 5, 4, 0], + subject="all", + is_exclusive=False, + point_expires_in_days=9664, + point_expires_at="2020-06-12T00:25:17.000000Z", + status="enabled", + description="PwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjK", + bear_point_shop_id="cc5e0f27-b9c9-40c5-a488-82f166aafc7f" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_36(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["2a8f7e15-7987-463a-bbd4-281936ad9bda"], + minimum_number_of_products=2166, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -5215,42 +6358,23 @@ def test_update_campaign_16(self): }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - 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" - } - )) - 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", - amount_based_point_rules=[{ - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + applicable_days_of_week=[4], + 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_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], product_based_point_rules=[{ "point_amount": 5, @@ -5276,69 +6400,85 @@ def test_update_campaign_17(self): "product_code": "4912345678904", "is_multiply_by_count": True, "required_count": 2 - }, { + }], + amount_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": True, - "required_count": 2 - }], - applicable_days_of_week=[4, 5, 3, 3], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "from": "12:00", - "to": "23:59" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { + "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=8048, + point_expires_at="2023-05-13T16:56:02.000000Z", + status="enabled", + description="OpUnX5paeprWtPSGZrL9UrmNU3v", + bear_point_shop_id="99604046-7767-425a-aa9e-0311b7118736" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_37(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["10663483-4388-4939-b677-03d85fc52ea5", "d3970612-2c00-43c9-8562-cb5f31ea96ca", "64b57fac-8d60-47b7-b9ac-0490cd2e38e0", "7738ddfb-e2ff-4f42-9132-ca071752f27e", "7f2a7475-abaf-4ea3-8e2f-49e0da8945c9", "cff1f762-45e4-4dd4-92dc-928e8988dff8", "d0346906-8dff-4fdb-af9c-a47f1aa8f704", "70ea7989-9636-4100-bea1-6294f11f1399", "af6d8233-935e-40e0-b45e-eb7c776e95a0"], + minimum_number_of_amount=1051, + minimum_number_of_products=4697, + applicable_time_ranges=[{ "from": "12:00", "to": "23:59" + }], + applicable_days_of_week=[0], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_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", @@ -5357,19 +6497,93 @@ def test_update_campaign_18(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", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_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=4031, + point_expires_at="2024-03-06T12:44:13.000000Z", + status="enabled", + description="WnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L9", + bear_point_shop_id="13bf04b5-b7e5-48bc-81e1-c0475200ed34" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_38(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["076d8a57-8ab0-4e48-983a-f45310185ab7", "f326f101-4a5f-480e-94fe-50a26de542b0", "6212d55f-10cf-4b20-a623-7e4a0ec59ccf", "28380455-091d-40fe-8bea-9e4b65ae8acc", "54cafae5-3b47-48dc-9dde-91c346d4b4e7", "eb58da4c-d411-417b-9ddb-541e2f16cd2e"], + minimum_number_for_combination_purchase=1305, + minimum_number_of_amount=9188, + minimum_number_of_products=9865, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[5, 1, 3, 1, 5, 6, 1, 1, 5], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -5382,7 +6596,40 @@ def test_update_campaign_18(self): "is_multiply_by_count": True, "required_count": 2 }], - applicable_days_of_week=[3, 4, 1, 4, 1], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=642, + point_expires_at="2025-08-17T11:02:01.000000Z", + status="disabled", + description="YK9z73uxDP2ict", + bear_point_shop_id="cff8f6e9-c4a8-44f8-993a-9cd32aa21afe" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_39(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["b1421830-b141-4593-83db-2f0f9673fa6e", "28bdacaf-f1ec-4ffe-8e27-17ca64c1e7f9", "4a911507-c15b-4fd1-9634-c5efe339ee02", "96be1e67-4f26-446a-91fd-0267b7258062", "34f1023d-0dea-4a93-9e5f-c17e9bde649e", "0356feb8-4760-469d-9adc-66fd664ba0fc", "0c661f50-9a52-4966-bf92-cc24a540a14e", "4c88f501-b2bc-4eed-8eb4-5af6150fff7e"], + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=6542, + minimum_number_of_amount=4949, + minimum_number_of_products=8267, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -5407,31 +6654,52 @@ def test_update_campaign_18(self): }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[1], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }], - applicable_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 +6720,69 @@ 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=7936, + point_expires_at="2021-01-01T14:24:30.000000Z", + status="enabled", + description="see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2", + bear_point_shop_id="7a1611af-a68e-43e7-afeb-653ef83eb23b" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_40(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["7bc0c43b-950a-4e63-93d0-b3045bb9110b"], + max_point_amount=1395, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=6624, + minimum_number_of_amount=7180, + minimum_number_of_products=9728, + 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=[1, 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_based_point_rules=[{ "point_amount": 5, @@ -5507,8 +6838,44 @@ def test_update_campaign_19(self): "product_code": "4912345678904", "is_multiply_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 }], - applicable_days_of_week=[5, 3, 1, 1, 3, 3], + subject="money", + is_exclusive=True, + point_expires_in_days=898, + point_expires_at="2022-05-16T15:32:05.000000Z", + status="enabled", + description="3wB7scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc4uSkk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3eTBlP1za1n7IcWMlrV1ey0F13qC7i", + bear_point_shop_id="e21c3cff-4dc1-4ff2-a877-b8e029368e7d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_41(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["96429a6d-6bb7-46a1-b680-6445085d3da7", "5c55ec9f-16bb-49a5-b38e-09ab56f31035", "12f32171-6aec-4b8b-9db4-65580378da05", "6b54f766-9255-4615-a165-2bc0557be331"], + max_total_point_amount=8664, + max_point_amount=3865, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=867, + minimum_number_of_amount=8855, + minimum_number_of_products=9779, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -5527,32 +6894,3914 @@ def test_update_campaign_19(self): }, { "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", + applicable_days_of_week=[4, 1, 1, 1, 1, 4, 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_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 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=6269, + point_expires_at="2022-12-06T01:23:38.000000Z", + status="disabled", + description="BwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWr", + bear_point_shop_id="0fe59e0e-b375-4bc9-9773-eb81f3958d03" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_42(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["16837334-bdd4-49c1-80af-4e10412c1047", "a0cddf05-8966-405e-b199-84b9f52324fe", "1eb04df5-7d65-4808-b8d4-98f60f4bbc04", "edea095a-b611-439b-b71b-8f3c009526d9", "31775f07-1f62-41bd-8d6e-698203466410", "92273df4-af2c-4423-bef9-d749c53ab9d0", "dbba41fa-bb02-4922-b112-ef9552c39341"], + dest_private_money_id="5c6e9989-e089-4d98-97c7-54a439fa219d", + max_total_point_amount=1762, + max_point_amount=8617, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=4651, + minimum_number_of_amount=1116, + minimum_number_of_products=1968, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 0, 3, 2, 3, 2, 3, 2, 5, 2], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "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="all", + is_exclusive=True, + point_expires_in_days=4336, + point_expires_at="2024-05-03T00:50:25.000000Z", + status="enabled", + description="s8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5", + bear_point_shop_id="e8b7a848-6587-43f4-b818-79a4dc7646c0" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_43(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["34994686-68cc-4d08-bb97-e82ee7c695ba", "4026c02a-c717-4e41-be16-d7aa056a8139", "32a34b67-afe8-4941-9386-0d5c7fef0fa5"], + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="fdf76a18-1843-46d4-9bab-0ccab78bc503", + max_total_point_amount=735, + max_point_amount=6099, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=3909, + minimum_number_of_amount=4308, + minimum_number_of_products=1421, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[0], + 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 + }], + 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=4925, + point_expires_at="2020-05-16T20:02:55.000000Z", + status="enabled", + description="NXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4d", + bear_point_shop_id="62d0be81-eed8-4c93-b54c-c18ce0451cb0" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_44(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["206e4c59-a0a3-4d73-81a7-69fafb582ce0", "59dae686-7591-4db4-9b33-53c0a9b79e9f", "8884b44d-53ed-4dc0-a8f8-7706ae995d92"], + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", "value": "male" - } + }, + dest_private_money_id="78407236-4968-4b09-92f6-bc3044393555", + max_total_point_amount=4493, + max_point_amount=6787, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=820, + minimum_number_of_amount=8219, + minimum_number_of_products=3901, + 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=[1, 6, 0, 6, 3, 1, 2, 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 + }, { + "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=7460, + point_expires_at="2021-07-31T14:27:56.000000Z", + status="disabled", + description="Mg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4q", + bear_point_shop_id="5d9ef626-2ea7-43c7-b866-66cb25cbe11c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_campaign_45(self): + response = client.send(pp.CreateCampaign( + "j035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2", + "9fe19cdc-1e60-4c06-98bd-e239c6d9412a", + "2022-12-05T17:53:05.000000Z", + "2024-05-30T23:26:35.000000Z", + 2334, + "external-transaction", + blacklisted_shop_ids=["5ca6c41f-54dd-4973-a92b-dcac54554bea", "5704305a-fcd4-411f-92b9-a2ad1015ba5e", "0508a541-3e43-4ae2-bc9b-920d75875428"], + budget_caps_amount=94494279, + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + dest_private_money_id="267d91e8-e383-4e91-8353-373a99e33a22", + max_total_point_amount=7722, + max_point_amount=8278, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=7216, + minimum_number_of_amount=3518, + minimum_number_of_products=3224, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[6, 0, 4, 1, 0, 3, 5, 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_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="all", + is_exclusive=True, + point_expires_in_days=2410, + point_expires_at="2024-12-12T18:32:42.000000Z", + status="enabled", + description="HOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZ", + bear_point_shop_id="d7ec2988-d7c8-43ab-96b0-2b15352749eb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_campaign_0(self): + response = client.send(pp.GetCampaign( + "7b7b7887-5009-4001-b02a-c10606b4be4e" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_0(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["48813b3c-7c36-44c9-918e-cf2d87e3888e", "97d8ce1c-aa92-40e8-90ee-013447f6ccbe", "fa131cd8-1288-4275-9aa0-40a9fd7d3eb2", "17e65a0d-c4bc-4632-8feb-d8f0a21a9b72", "80d10d2d-9568-407f-9b88-f4f10a23be99", "d94244e8-a7f7-4ff6-8e8f-8d019207fff0", "81f8974d-9cdb-4245-8d8c-f6ac1c8f405f", "74d2cd62-0e0d-43f0-936e-f61043ffd34c", "dac8ac75-3f6c-491b-b35e-7bd8c4c30fb8"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_1(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["79a6cadc-a556-4437-936e-64ca7dbd2384", "dcc62510-f43b-475b-81f7-ad1b84650126", "64f53896-9bcf-4454-abf3-ec0a03069643", "4632036f-13fa-496d-9f2f-5a36a47c887e", "7c51a93b-c5a9-4c5f-9c5b-fe0cd0e519fd"], + name="1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bnX1r8l3hCw6Snm" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_2(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["34b57a90-4b3f-42a8-ad7f-580ebbb6f7e6", "dacface3-7754-4c98-b5e3-9b4c2d2cc0d5", "e46476e8-97ff-4833-acb4-f7ec6cc692d7", "2b84e140-79d9-4308-a36b-f584545ad1b1", "8b962fbc-37c1-4a58-bae6-97b657ee7743", "565d55da-3395-4ee9-bda3-b045ad6f229d", "9cbdf34a-556d-45e7-aee0-5ac96f327caf", "82c88d7d-d5c8-489c-84cf-f9d543c00c28", "fc9ff9e4-acb6-4994-a66d-a81014002038", "5628af90-d396-4ee8-a287-1c025619166c"], + starts_at="2020-10-06T08:10:52.000000Z", + name="pqS572AEF2Ig4ikrPHEQ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_3(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["208c29e6-c518-42e8-98ee-5855d20ac9a3", "dc829d2b-0e96-4e88-a02b-33cc14890b7e", "5edcc466-b6eb-4290-a12c-5dd34cd2cfc2", "4db91e38-f30b-4ce8-96d6-c75299bb2ee8", "fa88b9a6-a15a-4485-8ae7-9511b6bac173"], + ends_at="2022-10-06T12:33:28.000000Z", + starts_at="2023-04-29T15:43:29.000000Z", + name="0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_4(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["94dff35a-3220-49f3-b22a-e83124fbf756"], + priority=8144, + ends_at="2023-06-11T18:38:58.000000Z", + starts_at="2020-05-05T11:24:26.000000Z", + name="7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBo" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_5(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["ccea3088-eaa7-457a-8037-e56036dbdc9f", "a2bb2661-32c2-4979-ab4c-1b0dc1dd8121", "33ab0101-fcc7-442f-b152-18fadb493947", "52bf049f-f92d-45ba-a906-dc4dd9abd27e"], + event="external-transaction", + priority=4333, + ends_at="2024-03-26T03:18:59.000000Z", + starts_at="2021-08-06T06:08:56.000000Z", + name="1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_6(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["c73f3736-d12c-4838-9d96-7e2fcddcf12a", "6881132a-736a-4dff-bd96-e1fd1fad7d66", "a0adfd09-5fb1-431c-928a-8ccc1999d76c"], + description="0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3p", + event="payment", + priority=2235, + ends_at="2025-06-19T16:59:44.000000Z", + starts_at="2025-06-06T06:38:34.000000Z", + name="hF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5R" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_7(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["0871bd9c-0fdb-4985-b079-21994579f524"], + status="enabled", + description="dhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXo", + event="payment", + priority=9861, + ends_at="2025-12-20T13:55:19.000000Z", + starts_at="2020-10-21T18:12:37.000000Z", + name="ustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbV" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_8(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["4cffa8b9-2a34-447f-9529-d5ddf85befbd", "04f69813-4ba5-4d64-83e8-24639db25751", "9e9908ed-3a5f-4f90-8ea2-96bd9a0c2d23"], + point_expires_at="2026-03-12T21:41:27.000000Z", + status="disabled", + description="ATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRN", + event="topup", + priority=7549, + ends_at="2020-12-24T00:56:02.000000Z", + starts_at="2025-12-14T06:19:38.000000Z", + name="uStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMB" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_9(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["a777bf56-b0d1-4cdc-bf21-97802e5b567a", "a146f889-fb30-4f09-9fb8-086cb1abd461", "30534a71-1932-48e2-a9f5-f9a42df7fb71", "4cbe0b6f-4e78-4881-823d-7e06644805db", "51260998-08e1-4b6f-93c3-b7fcf5a76a83", "106f01ce-7628-4070-b9d9-271cfc0331db"], + point_expires_in_days=2436, + point_expires_at="2021-05-10T10:37:11.000000Z", + status="disabled", + description="Le8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85eAINi4DCh9E1piomvY0y0iL", + event="payment", + priority=7015, + ends_at="2020-08-15T08:27:05.000000Z", + starts_at="2020-08-07T21:36:45.000000Z", + name="hsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPa" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_10(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["0f99f6f6-f0ca-4de1-ba24-fca9b7e6484f", "5cbcf863-8c8f-4755-a675-87c6bd3d7b83", "304cac48-2efa-4a4f-9b1c-27e7222d7a15", "2e757211-e767-4f5c-af67-afc90c344d24", "9fc7c3e2-6d0d-48b0-a865-c1a98cf9b4cf", "06bc929f-fcac-476c-b2e8-551fc6a58b96"], + is_exclusive=False, + point_expires_in_days=5841, + point_expires_at="2023-11-02T06:32:06.000000Z", + status="enabled", + description="iPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3of", + event="topup", + priority=9808, + ends_at="2026-01-19T17:35:17.000000Z", + starts_at="2023-12-26T04:32:28.000000Z", + name="rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMo" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_11(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["70370bf7-7d2b-476b-90dc-0d108e9146bf", "a259f2f8-0070-4753-b0f1-fa1141e79712", "5ed3a22b-6d2a-4da9-a828-ea4bb3a39a8b", "1e69134c-b680-44c4-8c29-b81f543ea5f2"], + subject="money", + is_exclusive=False, + point_expires_in_days=3389, + point_expires_at="2022-05-14T12:06:19.000000Z", + status="enabled", + description="RvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wq", + event="external-transaction", + priority=9440, + ends_at="2022-05-09T07:22:53.000000Z", + starts_at="2024-06-04T01:19:44.000000Z", + name="1LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_12(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["1d96f852-e995-4425-befd-6f596de13e9c", "56725ed4-1e66-4c85-b8dc-0c6746ce174d", "1b4ed1b2-c6d2-46a8-a10f-87eae32e373c", "3a8e368f-8b9f-49a9-a49e-f8cd275e108a", "14ab0d36-14f3-4851-9e25-8792154269bc", "e870310e-dabc-4c20-922f-88e737620d63", "3bb3db25-f416-4931-bad6-a1c5d113ecf9", "cf403298-ab58-4f48-8d58-edc246708b9a", "b5c3b999-4017-402c-aab8-3b260dafd80d", "54d90325-99ef-4274-93c5-6e8887b6d6a3"], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=7519, + point_expires_at="2021-11-30T08:28:17.000000Z", + status="enabled", + description="y5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZ", + event="topup", + priority=9317, + ends_at="2021-02-10T08:18:18.000000Z", + starts_at="2021-01-14T17:38:12.000000Z", + name="ym7n7CGmjd25iFSdn" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_13(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["71e5bb97-2bf9-4507-b272-36afd3582cd1", "a760a01b-9e53-4829-9b9e-3fff3e795fd0", "158cb1d5-5035-40a6-b426-0998f249503f", "c8f4e843-04ea-4756-bcf9-82b8fd5e0c43"], + 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 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=7923, + point_expires_at="2025-01-21T03:19:54.000000Z", + status="disabled", + description="Hs0hjVGtY7fD", + event="topup", + priority=3879, + ends_at="2023-12-12T17:28:09.000000Z", + starts_at="2025-08-21T10:53:57.000000Z", + name="M6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXh" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_14(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["0ca5096e-6c5d-4340-8d5a-48ba5bea51fa", "8f6b22e1-926d-4acf-9d08-b1527a49d5ed", "fd0a9fd7-e6e3-4773-b3a4-74cc9fb684ad", "dddc8009-93b2-4b11-a63d-eec68c6214c6"], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=5697, + point_expires_at="2021-11-06T01:08:04.000000Z", + status="enabled", + description="18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZ", + event="payment", + priority=146, + ends_at="2023-06-05T17:49:15.000000Z", + starts_at="2024-11-03T14:42:55.000000Z", + name="GXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4km" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_15(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["8e4f4a22-bb25-442d-a75f-089b286009fc", "c1ed436d-f68d-473d-be2e-47a7828ef89b", "254c3803-cbac-4c47-b2b3-2f258d1d743e", "f857fc66-02c5-475a-ae20-a789cc95dc7c", "44efa2c2-43bc-472d-aced-86faee3204ff", "f8bf37ad-daeb-4172-9daf-9b747c86a87e", "52cb68ef-ec21-4dbd-a0f9-d127072a9dcb", "46dbd31b-346d-4203-abba-1633337f3438", "eaf621db-5842-4d9b-a17b-5b2849bfe527", "297058c4-7679-4c75-896a-665f55f938b1"], + applicable_days_of_week=[4, 5, 4, 1], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_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 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=3677, + point_expires_at="2021-05-02T04:41:41.000000Z", + status="disabled", + description="VVURHNCTBSkvCAJURQ0xc8v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYm", + event="topup", + priority=326, + ends_at="2023-01-02T09:35:01.000000Z", + starts_at="2022-01-26T01:58:50.000000Z", + name="OLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuz" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_16(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["91d06d03-600a-48c2-9794-71b4e53a97f3", "90c7628e-b69e-4a74-abdb-a66f381793bf", "cf495e5c-1150-4163-a717-24b70dd30455", "73166003-c940-4a58-92a8-0a7967c5eaa2"], + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 6, 0, 5, 0, 2, 4, 6, 3, 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 + }], + 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=6454, + point_expires_at="2021-10-25T03:27:47.000000Z", + status="disabled", + description="mwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70", + event="external-transaction", + priority=3695, + ends_at="2024-01-05T08:27:29.000000Z", + starts_at="2021-04-17T01:15:54.000000Z", + name="JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1Pr" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_17(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["078edd01-194c-49f3-b4c0-2725f3d64ada", "192c0a5f-8dae-4cf1-b6f2-c6eabaf68da1", "ddc63f60-9046-44cb-be8b-aace91767094", "9aa71ac8-ae93-4491-95d0-846af9ddf85f", "49e09c38-61cf-4261-882d-a5cc874baa85", "c96980c4-2033-4714-a85c-aee9890e7a10", "e23fdc98-086e-4d0c-a5e3-d5210800d234", "18b65c80-1633-45b3-b35f-d6537ec779d7"], + minimum_number_of_products=509, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 3, 1, 2, 5], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=9749, + point_expires_at="2020-02-22T14:11:08.000000Z", + status="enabled", + description="YsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Y", + event="external-transaction", + priority=2444, + ends_at="2023-05-17T21:28:31.000000Z", + starts_at="2021-10-03T09:43:55.000000Z", + name="M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoW" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_18(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["42c8a733-c54b-44c3-ae6b-01577be5d83c", "6da8377a-9c2a-41fc-b9a7-06068ab0828e", "4aee8133-f6b8-4b63-831f-09a7ea23ed30", "aa11ee45-f5fd-4637-843f-3a6780eeb382", "394ba723-e4dd-4f28-b353-207b601c61c5"], + minimum_number_of_amount=1098, + minimum_number_of_products=4669, + 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, 3, 1, 3, 5, 2, 2, 3, 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 + }], + 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=3345, + point_expires_at="2020-11-12T14:18:29.000000Z", + status="disabled", + description="6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAod", + event="payment", + priority=7384, + ends_at="2023-10-31T15:36:39.000000Z", + starts_at="2021-07-06T08:59:24.000000Z", + name="OsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKH" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_19(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["95dcbb58-9a11-4592-b23e-bedd36446f90", "e3ca0033-c4c8-4ef7-944c-8c2e51251ceb", "d88ae702-a409-4e55-950a-bc16f2d56547", "d14208b7-eb3e-459c-a9fa-1278c499ad07", "017498f4-b7d1-4060-902c-78074eea86cc"], + minimum_number_for_combination_purchase=3975, + minimum_number_of_amount=2208, + minimum_number_of_products=2973, + 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=[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=6505, + point_expires_at="2021-04-30T10:02:38.000000Z", + status="enabled", + description="B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM004QSYdkecoFJzr3b", + event="topup", + priority=6397, + ends_at="2021-11-12T00:28:25.000000Z", + starts_at="2025-06-06T10:53:47.000000Z", + name="OZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5t" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_20(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["5499dfe5-b684-413c-9562-186b9a4f72b7", "2464f7b2-cee2-45ad-965b-fd6e4256e1f1", "c068bc35-3ed6-4b7f-b123-3ebfa49a53d0", "5259aa3d-dfae-4f59-b520-847928fdc713", "65d11a40-00ad-4415-9bd1-b77374412072", "e5338e87-2813-4ac3-bb5d-34e59d60b7e0", "6549b55a-3e76-426c-bc6b-f516beba855c", "7555326e-cd48-4077-a72b-eaf91541781a", "b2e7ff8e-01c3-4fd9-bb9b-221a280e5665", "2a2cef00-ec05-4aef-9447-cf1884c34cc4"], + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=9930, + minimum_number_of_amount=8934, + minimum_number_of_products=3309, + 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=[1, 0], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_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=2313, + point_expires_at="2025-01-28T02:43:44.000000Z", + status="enabled", + description="ZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdw", + event="payment", + priority=3154, + ends_at="2022-06-03T04:33:51.000000Z", + starts_at="2024-10-10T07:49:04.000000Z", + name="UBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcR" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_21(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["0a39c4bb-837c-4555-8307-d4e5fe2a048f", "d081b23d-3f63-4f98-9053-e606948eb642", "4e159e6a-8ba7-462d-8f09-f550adff7ddd", "c7c5cd61-f35e-43f2-997c-1655575ef5e6", "cf660fc1-5f18-4fdb-94e2-df1145f8a269", "832043ca-0c72-43eb-98ac-ea7e500002dd", "a053e980-25f8-4900-9545-f277d3e7a184", "1a47cd27-417c-4f8b-9433-9b993e0bd47e"], + max_point_amount=9881, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=7330, + minimum_number_of_amount=4154, + minimum_number_of_products=6441, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[0, 2, 0, 2, 4, 3, 6, 3, 6], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_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="all", + is_exclusive=False, + point_expires_in_days=1645, + point_expires_at="2023-10-23T20:06:16.000000Z", + status="disabled", + description="JPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEnc", + event="payment", + priority=2424, + ends_at="2020-10-31T02:24:29.000000Z", + starts_at="2021-09-21T03:23:53.000000Z", + name="hrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1I" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_22(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["8e3a0360-ff68-40bc-9501-f0cbc051fa8c", "90951735-880a-4673-bc4f-6f29fe229ae3", "267523cc-ca4d-478b-af53-e9e4ca33fd6c", "08f34775-ef0b-4888-af3f-2915af6209f6"], + max_total_point_amount=8909, + max_point_amount=5445, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=2320, + minimum_number_of_amount=7114, + minimum_number_of_products=1558, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[4, 5, 0, 5, 3, 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 + }], + 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=7935, + point_expires_at="2023-06-25T21:45:43.000000Z", + status="disabled", + description="J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ2", + event="topup", + priority=5900, + ends_at="2020-10-16T17:39:18.000000Z", + starts_at="2025-01-25T06:12:13.000000Z", + name="mVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVc" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_23(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["ae7b092a-52a7-407d-b188-08603e122098", "6ee00bee-c405-4030-8879-e59d7e52c182", "8463832c-358c-432a-acc2-fac53ed59bbe", "e3ac2320-0261-40d7-86fd-5199aecbf2a9", "d039e52d-d874-4c4b-ada0-374783f5a78f"], + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=3901, + max_point_amount=8946, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=143, + minimum_number_of_amount=7509, + minimum_number_of_products=9279, + 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=[0, 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 + }], + 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="money", + is_exclusive=True, + point_expires_in_days=3532, + point_expires_at="2020-01-05T22:03:26.000000Z", + status="enabled", + description="md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLN", + event="payment", + priority=9300, + ends_at="2023-05-04T13:08:23.000000Z", + starts_at="2022-11-02T13:06:01.000000Z", + name="ffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWm" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_24(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["850c2f35-675d-4974-bb11-82cce22ea804", "40bb59d2-a4e8-47d8-a6d0-7e747d0c8ae8", "e51963c6-7960-4d0d-b281-f6204d83ec84", "89be5054-7262-43f6-909c-23b8b7ab381b", "ff8530c0-6c30-4aca-8473-6960e566fd3c", "26d1c940-a334-4f00-80d4-9c4ceb795fc1"], + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=8792, + max_point_amount=376, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=2188, + minimum_number_of_amount=9718, + minimum_number_of_products=6977, + 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, 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="all", + is_exclusive=False, + point_expires_in_days=2502, + point_expires_at="2022-06-14T02:17:32.000000Z", + status="disabled", + description="wzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxp", + event="payment", + priority=1022, + ends_at="2025-10-10T23:26:25.000000Z", + starts_at="2023-09-11T14:05:41.000000Z", + name="sLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPx" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_25(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + applicable_shop_ids=["097fcfdc-0a87-4573-b064-6ab6731d777e", "4621d7d8-4532-45fb-a408-a1bdc84d4db4", "4f02b172-1665-42c7-8865-437c3e8a7924", "24034c51-5c24-40f6-81d0-2df1f5c2ec47", "85ee4a4d-f073-492d-8110-151feda439df", "b4320931-472d-42af-83f2-01a7e21fdfff", "1c15fb82-18a6-4f67-a650-231acbd11920", "50d3443f-67f5-4b34-830f-91ef1c203a24", "c05f31ec-bc5f-4d76-a798-723f2fce7643", "966d0a31-1924-4b07-8bc4-620fa987de44"], + budget_caps_amount=1842917551, + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=2118, + max_point_amount=3481, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=5214, + minimum_number_of_amount=4659, + minimum_number_of_products=3008, + 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=[5, 5, 1, 1, 6, 1, 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", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_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=5626, + point_expires_at="2023-07-04T15:47:08.000000Z", + status="disabled", + description="sjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508La", + event="external-transaction", + priority=3134, + ends_at="2022-05-18T09:50:05.000000Z", + starts_at="2025-04-05T00:58:54.000000Z", + name="xpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_26(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["448547db-6080-4614-932c-2e132b2d98b9", "0f4d24cf-9395-46af-9710-d14594a1d081", "6714bd60-827c-46f1-810d-eac90c8d4690", "211ca73a-d1d0-435e-9aef-457e87c93b7e"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_27(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["acd2a457-ef10-4da9-a873-70da492cc238", "cbdce431-2af0-4e30-8981-e2053a764399", "a1dac48d-6c05-4413-90a4-6ebd569d7544"], + name="THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_28(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["c6ddb306-23f2-41fe-8a50-a7cffdfa8673"], + starts_at="2025-08-26T12:33:14.000000Z", + name="D7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtV" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_29(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["73bc71ee-3788-4689-ba1c-e993505982a9", "34fbd791-4b03-4335-bec8-ec0761a1b412"], + ends_at="2020-07-08T10:43:41.000000Z", + starts_at="2021-11-24T12:11:37.000000Z", + name="6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgG" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_30(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["8a6604dd-3952-47ee-8664-39635863cc57", "7b3a3768-5904-40d3-a43c-e111ccdfb997", "9db89b7c-b824-4061-8a5e-93e6b0759aca", "b6d3fbb6-f90a-4130-8430-f6dd15469403", "89ada9c8-4c3a-45a7-b21c-a9d42b36bf24", "107f19b0-dc61-4f4b-8e8e-5619e8383d68"], + priority=2286, + ends_at="2022-11-09T05:37:49.000000Z", + starts_at="2023-04-12T14:15:30.000000Z", + name="3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZClko" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_31(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["aa9c8056-53e1-426a-bfaf-8f00ea201576", "4c745c75-6b8b-46c7-9f1a-7fb5afaa6efd"], + event="external-transaction", + priority=3612, + ends_at="2022-09-05T00:04:46.000000Z", + starts_at="2024-07-07T22:12:23.000000Z", + name="cBP5wA9GwSB8bfxMId7hFKERGvYa7v" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_32(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["c2fec760-fbc4-4b8f-b1e3-0ec98eb19479", "26ea35f7-be56-442d-b028-90bab2ba87bc", "6d94c698-7d58-4a7c-8def-a72300ec68e3"], + description="5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9TezTj3A085y5hWQ3gdeDOWFExGORRYNLJdsZ6n3IGoF44i049", + event="payment", + priority=9969, + ends_at="2021-08-07T21:47:35.000000Z", + starts_at="2025-06-28T23:19:59.000000Z", + name="musaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3B" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_33(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["19b98932-c408-4994-95c6-c3c7e10f3030", "38a6354e-a164-45ef-a205-9775c36a8af9", "dbbc0181-023d-40a3-a0a8-f143cbe603f1", "35a01b8e-92af-404b-82bf-5241fa385f05", "dc0dac03-a879-44c6-b812-d8d82b25071f", "bd41ce94-d67e-4897-82a4-a06c6ea4f76f", "ddcbb20c-84fd-4b48-9bfb-7bee8c917460", "420008b7-93ee-4155-84cd-31807a30db94", "f9ed3dbe-2437-446c-bd16-8b16e25295b9"], + status="disabled", + description="bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cIm", + event="external-transaction", + priority=4518, + ends_at="2020-01-20T08:35:54.000000Z", + starts_at="2025-04-06T18:21:32.000000Z", + name="gcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_34(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["40da58e2-ce22-4b7f-9a01-d3b12af00cb9", "c2d19c30-0858-4866-9fb2-83fb6f011b7c", "79b47ea2-1fa5-4df9-8813-bbde9fedce65", "4ec1e512-dec1-4f80-a3f9-8919124d8242", "afa408ff-283c-4efe-95f1-74c952df8217", "4868472e-72c9-473e-b953-c893d873e297", "78ac733a-4b4d-47df-a959-b5cc13c76a44"], + point_expires_at="2021-10-16T06:22:43.000000Z", + status="enabled", + description="kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz", + event="payment", + priority=9018, + ends_at="2021-10-11T07:50:17.000000Z", + starts_at="2024-11-27T15:18:52.000000Z", + name="vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxX" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_35(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["67be0311-4509-4701-b1ad-8b1f5edcaef9", "99c56286-ea65-49ab-9084-71b9627fb1fe", "1bbde8b5-8a93-4757-8624-9b2750dbd073", "f6b2f2f2-bb44-4bd4-9a0b-76732fb1fcd4", "a12c11a6-ca5c-48c8-a1cc-714dd938c17b", "e3f8d6a7-66c1-4dfb-82f8-69bb10ca9482", "4b304c2c-b2b4-40a8-9f8f-36f82ac17811", "d74b095d-3268-4da8-8523-32fd1063b24a"], + point_expires_in_days=412, + point_expires_at="2020-04-22T17:48:29.000000Z", + status="enabled", + description="Nb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndS", + event="payment", + priority=2183, + ends_at="2021-01-06T05:24:31.000000Z", + starts_at="2021-06-02T14:45:49.000000Z", + name="ijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5E" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_36(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["10526847-0c2e-46f4-9d1c-41d306a69d0b", "12e12992-23fb-417e-b143-8a103d5ae2d2", "53c8a147-bc09-4238-88d4-59cf39c4bce6", "7a2e45a6-7d5f-4b56-aef6-5870eab7eafc", "4cfeb285-2598-4e33-b1c7-965889a7c8ff"], + is_exclusive=True, + point_expires_in_days=8647, + point_expires_at="2021-02-26T23:48:18.000000Z", + status="disabled", + description="PHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFu", + event="payment", + priority=8648, + ends_at="2025-01-22T22:20:23.000000Z", + starts_at="2022-01-11T22:15:31.000000Z", + name="fSCeHqDX4OovF1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0kXmsTMdugDsmRtGnF7L4kFCW" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_37(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["3df79f19-6d8f-48f2-a29a-7b5bca6b5e5f", "dbf32b46-6516-49f1-b4df-43a79a3f33b2", "9aee2eb7-2d7c-4a2f-a332-ee47d6fc1b48", "17e35f20-c801-4828-8fe3-0649cab93103", "ad7ff8f9-c212-4209-8a83-c13e70b64ee1", "a620c2f9-aec0-47c4-9504-bd940ff8d932"], + subject="all", + is_exclusive=False, + point_expires_in_days=9707, + point_expires_at="2026-02-12T05:47:04.000000Z", + status="enabled", + description="NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsMYGbxzOIV2r2JtDEGxgzX90x", + event="external-transaction", + priority=2865, + ends_at="2020-10-18T23:39:20.000000Z", + starts_at="2022-03-19T01:40:50.000000Z", + name="EwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0XdBqvz2LZqSb1Cr9GvJk1u6JVnb04lQy4ktenk93ttYPJhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmp" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_38(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["630f6bd4-35bb-433a-86d1-17e5f2d7c948", "7ec0242b-a049-4050-b399-43dd7fb2df9b"], + 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="money", + is_exclusive=False, + point_expires_in_days=3269, + point_expires_at="2021-10-05T05:29:00.000000Z", + status="disabled", + description="oQ1t1s3zE32Vk24Ceen1NSjytDUp3byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPSNst4", + event="external-transaction", + priority=2965, + ends_at="2025-09-13T15:43:36.000000Z", + starts_at="2020-07-24T02:34:28.000000Z", + name="BM1tMMoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR3LjzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHOR" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_39(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["cec228ba-2293-49c2-b570-8b978631c998", "5210769b-52cb-4fbe-8080-1cc6a5d58732", "b528d34c-0247-44cc-97ec-983d0e80fbdf", "51e22cd7-4bab-4a52-b145-46aadbc3debd", "66287386-4955-48b1-92b3-81c819e99dd6", "8408c2e6-1a3b-4675-adca-52728445086b", "9c318e86-c521-402a-ba78-01c11fc9dc97", "cdd6b2b1-1d5f-4297-8da8-b197095f2d3a", "43ac4ed2-677c-4120-8268-366be6fb464a", "f1028c87-0f6e-4df2-8bee-f136a76264d4"], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "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=4803, + point_expires_at="2024-12-24T22:59:50.000000Z", + status="disabled", + description="zEp3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSD", + event="payment", + priority=482, + ends_at="2022-01-25T14:45:57.000000Z", + starts_at="2022-07-30T09:54:18.000000Z", + name="DSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo5GvBi" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_40(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["da62a326-48c8-454b-803f-59f7d58646ff", "eff0ef83-7ca3-403a-b3c9-4a3532503766", "baf0b600-44c0-44b5-b717-3b3edf72bcea", "c216d287-103e-487c-865d-980ab92422fc", "f1353a02-5318-4bfe-8523-7b345f92c1bb", "101a2511-1e35-4f3e-81c0-f67b47ccbee4", "32f1e7b3-261b-4cd0-9832-f131899596d0", "0d83cdfa-2b25-43e0-9f18-efaa3e0cfa78"], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=8753, + point_expires_at="2023-01-03T20:15:08.000000Z", + status="disabled", + description="dNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS5mnHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vao", + event="external-transaction", + priority=8043, + ends_at="2021-12-24T03:54:38.000000Z", + starts_at="2024-06-09T23:32:40.000000Z", + name="OQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxVOS8aVOpiS1EeKe2EnvF9kW30yXFj5pEZQNOtIwcrR2Tap7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsj" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_41(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["d24346fa-292d-4389-849c-48425b58f6fe", "b83a798e-4b33-4ad9-a5d0-9fb3ded1a9f7", "c6382130-c222-44b2-936a-aaaffdcb824d", "ff513f8f-c14e-4ba6-b670-7ab0211cabc5", "363171b7-3632-4371-97a1-33de1a94ea7d", "5a7cb39c-ac01-43f4-bdcf-a0bdca5af52a"], + applicable_days_of_week=[3, 2, 6, 5, 1, 0, 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 + }], + 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=6470, + point_expires_at="2021-11-30T17:03:15.000000Z", + status="disabled", + description="PtcFyu37VMAkI2ylOPtFPfUfw5cNQlmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9Fji", + event="payment", + priority=9000, + ends_at="2021-02-27T16:27:37.000000Z", + starts_at="2021-09-20T17:49:47.000000Z", + name="viUOicaOZqLE3MkcTFrJK4NHPvl4VhqOdqyKHcIOPhbvogj2mEAT9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_42(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["470ab8b9-5070-4940-8504-d92afa43ed82", "4651435b-488c-4166-b8d7-6d40496ee80a", "6daea723-4e28-4011-bae7-a6edd96bb1b4", "71a584df-82e3-4d68-8124-2d13bf503211"], + 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=[2, 1, 0, 6, 0, 6, 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_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=True, + point_expires_in_days=7721, + point_expires_at="2025-10-30T05:02:47.000000Z", + status="disabled", + description="BbHbRE9tWUhNPatH", + event="payment", + priority=9367, + ends_at="2020-09-15T03:27:32.000000Z", + starts_at="2022-09-12T16:22:21.000000Z", + name="Ygstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGSkB9sMClBaFjZtZBNIprWMfHv0Adc0Cr3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhPf4I7mVEEqd8S9trsTY1" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_43(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["b2435ed2-9559-4113-bddf-770f15f031b9", "dfc5dbf1-93b3-47c5-8983-39b501e4314b", "3ba0f69d-346c-498f-991d-2e058278103d", "f57e2205-9dc6-4431-9426-75ffb04c0a9d", "0edfefb9-c84f-444a-9dc8-315ada0fda69", "c12ce772-bf10-48cb-944b-b590d284a189", "60e7978e-f410-42a3-9905-f528fbd88392", "3c7ec0c3-8a27-4dbf-a949-6a7b4e1ff2e0"], + minimum_number_of_products=6326, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[2, 1, 6, 6, 1, 3, 1, 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 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_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=2587, + point_expires_at="2021-06-06T09:29:17.000000Z", + status="enabled", + description="HcE3kg67Mp0CzjOzftNuETzfXonmfKJhNI2H30S", + event="topup", + priority=8907, + ends_at="2020-07-23T04:00:11.000000Z", + starts_at="2025-09-18T22:58:57.000000Z", + name="O1UKOiryeoJ2KHqioFor" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_44(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["15ba9359-fe08-4693-bfbf-1ade484f089c"], + minimum_number_of_amount=2176, + minimum_number_of_products=5569, + 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, 4, 0, 2], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=358, + point_expires_at="2024-02-19T05:10:53.000000Z", + status="enabled", + description="1ZkiP3jHymN76Njiv2bjGekXOVbuSOvV", + event="payment", + priority=7303, + ends_at="2020-08-06T17:50:40.000000Z", + starts_at="2023-08-10T19:32:43.000000Z", + name="ap8p4f5efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3GWqnvnIS00nrMnQNFRYY" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_45(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["0973a8d1-d77e-4cc2-b24c-470f9008c6ab", "ed1cea87-3d4f-4776-b6f8-042e9dbb8c80"], + minimum_number_for_combination_purchase=1042, + minimum_number_of_amount=2136, + minimum_number_of_products=2342, + 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=[2, 1, 6, 5, 5, 2], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=4417, + point_expires_at="2023-04-08T23:20:35.000000Z", + status="enabled", + description="yr23XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqc", + event="payment", + priority=7765, + ends_at="2020-11-15T11:06:10.000000Z", + starts_at="2025-06-18T09:53:38.000000Z", + name="v4rpZxW6C1o0zvPKHwlN5cgpKhTDjrt62aO0gTJKvsFX8pCgUNdYXQChONhwWGHDaQRstzyfCMC6r4ZI5zg9bDUlUJBBIg9Fd6Y7e4aTjbZiLOaWRsEnzqZ6lGrz0tQnP1Co4x4AXMvzQhY1JlrHqbdULcyqcFghqKIiyi3aAuGXWsNdhyWJyqrPAKmmZGZJNC4j2awHXlJF9A7c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_46(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["d997711c-5418-423f-a228-22099033660e", "dcc33db6-f48b-459d-bec1-572f54a34d78", "6c0823a9-f2e6-4f86-8355-d515c36f23b8", "de357f97-4612-4bc8-89fe-c0cfe95e6436", "a1dcd085-25ff-4c4c-8f10-bbb583177ac4", "cdc8e564-1835-402f-8358-c48c14ce78ab"], + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=145, + minimum_number_of_amount=1161, + minimum_number_of_products=1807, + 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=[1], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_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 + }], + subject="money", + is_exclusive=False, + point_expires_in_days=188, + point_expires_at="2023-11-21T20:03:29.000000Z", + status="disabled", + description="XoGoCpelXPpOt9Y3msxtcs0WRQEq2AUltkkF5RV8aSNO9GQnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN", + event="external-transaction", + priority=3093, + ends_at="2024-05-07T06:09:15.000000Z", + starts_at="2023-02-19T01:07:02.000000Z", + name="IXIQbTWkewXW1RgDvxeuhtqc0lVuVevBpKZFsUJPsCckORoCtdXbeAqJmttYcSXDoCgwypQnQUsnWOKMZ3rJ8aRGwz6VDq2kLV7UR9Ys1BTbKj9QeMGWU46l1ev23Q5PTPgtt4yAIzCwP1Z0JVfF9RSrf0Q1pmhWHNJvae7EjBkQNn9uWl9JunPyftwg9sZ6EOXmzMsMVDhbzfFvUl3UtKdNP5TLVhbhll0GP4QAkQeOPrTAo5HhYx5j" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_47(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["247fbbe1-a17e-4a47-ab5d-6ee29605930a", "7c3c07cc-48c5-47c0-9c94-b9aa1eab4114", "eb5ba4f5-b54a-40af-ad7c-c4aebd3c3dae", "81fd8788-23c3-4266-bb05-bf4244ac132c"], + max_point_amount=1586, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=8591, + minimum_number_of_amount=9559, + minimum_number_of_products=2455, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[6, 1, 2, 6, 4, 0], + 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 + }], + subject="all", + is_exclusive=True, + point_expires_in_days=8830, + point_expires_at="2024-06-05T00:44:27.000000Z", + status="enabled", + description="3cWX27LHxVCRXJ7RR9vhNIu31vkGd5KFMjSHWQRA9E535lViSyzzCHjVEEg0SpYDFFDY1quxNkSS1vmCLOUldc17zrM7imjJVYnMFmZVKbnQskJ4SJWYdnxMjsH9r", + event="topup", + priority=7046, + ends_at="2021-12-12T21:13:46.000000Z", + starts_at="2020-11-12T10:55:56.000000Z", + name="w1Vg5A3jIY5TVDn7VAyGhf1a2i4Xb006Y5FN9bW9vksFBm8sMwbh1WFtpEmCrFqNwdLZ15QmFMvlNaa2goLZ5E9O" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_48(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["65e4e79b-78c5-4008-9abb-1d14454a0f3a", "91fb1e03-0313-4807-8192-27ba5d5966f6", "e9ac574f-9dd5-4913-8969-deaef3f6d342"], + max_total_point_amount=2879, + max_point_amount=888, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=6589, + minimum_number_of_amount=5018, + minimum_number_of_products=4269, + applicable_time_ranges=[{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_days_of_week=[0, 3, 1, 5, 6, 4], + blacklisted_product_rules=[{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + product_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "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=1239, + point_expires_at="2023-04-14T06:57:50.000000Z", + status="enabled", + description="f1mceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafb", + event="external-transaction", + priority=1608, + ends_at="2023-06-14T19:40:56.000000Z", + starts_at="2021-10-07T23:23:41.000000Z", + name="iTlinfVLWJIyGq0eGZ3LjtgQn48RP8UioFkI4pFJl8" )) self.assertNotEqual(response.status_code, 400) - def test_update_campaign_20(self): + def test_update_campaign_49(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, + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["45d482b4-05b9-4d26-8518-714b99612a30", "55e623d3-3008-4ae9-92d6-d0729014de2b"], + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=8901, + max_point_amount=3986, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=8046, + minimum_number_of_amount=3742, + minimum_number_of_products=4278, + 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=[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 + }], + 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=9078, + point_expires_at="2020-07-04T06:41:25.000000Z", + status="disabled", + description="8c0Kn6PzJQm77hC3byYhnk9L6y5R4kNHRMXQTzW1iBiUI5JGbGoEyKdo0WvNvuZ2zOymd6UzJ163lry8C4rDtJNzcEFdrvo427ISByum8MIrVugVBfTif3qpXYgZnZ3LJOu3iwipHdsS3ShjnA4Sr1gSN2Pelpywqnk", + event="payment", + priority=7976, + ends_at="2025-12-08T23:07:39.000000Z", + starts_at="2024-06-09T03:30:15.000000Z", + name="FUWWcs7OK2a7LaTGiSi2nVCa3OWfS" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_50(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["be9cd988-1741-4571-9c77-ddccef16c1ec", "a7fb13c8-0cdd-44d0-96e9-c7153b0cfe23", "60aafb3e-02cf-47c2-89b9-33f19ce46bed", "1431d081-0e46-42ea-8f50-59c614f04fcd", "8652a0d9-e75e-4ad1-8c11-6c1b12b8720b", "25f9c608-cc4b-4a85-a26a-f65d9839a45f", "d724b5a4-5771-4588-88b9-c760eac498a5", "acfea14b-0a87-43e0-a4f9-53e092ef941a"], + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=2215, + max_point_amount=1307, + exist_in_each_product_groups=False, + minimum_number_for_combination_purchase=4935, + minimum_number_of_amount=4301, + minimum_number_of_products=3250, + 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, 6, 0, 1, 1, 2, 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", @@ -5568,9 +10817,70 @@ def test_update_campaign_20(self): "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], - product_based_point_rules=[], - applicable_days_of_week=[5, 6, 5, 6, 5, 4, 5], + subject="all", + is_exclusive=False, + point_expires_in_days=390, + point_expires_at="2021-05-08T19:50:22.000000Z", + status="disabled", + description="MPvJ4w9BbWGLWxTOnqHU20ukx1FDQpVqtvlq3pwtYNpqFJFhJ6HuYWnqyIUhAD4rpz6whWSFAXMqy8UduAdQ5IH0TK2HSat5A6ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTk", + event="external-transaction", + priority=198, + ends_at="2023-11-27T10:08:56.000000Z", + starts_at="2021-08-11T06:44:40.000000Z", + name="l2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvII6xukRoB486IcnSrXwZGPsDFf" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_campaign_51(self): + response = client.send(pp.UpdateCampaign( + "925e7dcb-7343-4a82-b7e2-cd7b4b1b9e59", + blacklisted_shop_ids=["f7179c7c-1d2c-4024-9262-9983b2f72b3e", "9f7aa0e8-fe83-4f11-96bc-5a70158b1b6a", "2a11ce27-df83-479d-afb6-698133d23743", "2f94eff6-ddda-4c2c-ade9-687456e1ff5d", "11113726-9312-49b6-b347-78325a9d9dc0", "cf39c15d-ab0d-43b2-bd4c-0d3cd2cdf915", "f34a37a6-17d7-4d8e-bc81-e67058362b6c"], + budget_caps_amount=1730260677, + applicable_transaction_metadata={ + "key": "rank", + "value": "bronze" + }, + applicable_account_metadata={ + "key": "sex", + "value": "male" + }, + max_total_point_amount=9227, + max_point_amount=3042, + exist_in_each_product_groups=True, + minimum_number_for_combination_purchase=7401, + minimum_number_of_amount=4, + minimum_number_of_products=5713, applicable_time_ranges=[{ "from": "12:00", "to": "23:59" @@ -5602,55 +10912,60 @@ 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=[1, 5, 3, 5, 2, 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_based_point_rules=[{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": True, + "required_count": 2 + }], + amount_based_point_rules=[{ + "point_amount": 5, + "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 }, { @@ -5678,59 +10993,2091 @@ def test_update_campaign_21(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 - }], - applicable_days_of_week=[5, 5, 0], - applicable_time_ranges=[{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], - 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" - } + subject="all", + is_exclusive=False, + point_expires_in_days=8749, + point_expires_at="2025-01-23T13:40:57.000000Z", + status="disabled", + description="p4Qp4t6WiXGIWU4TxH2FAjM", + event="topup", + priority=798, + ends_at="2023-09-16T06:49:06.000000Z", + starts_at="2024-06-16T20:01:53.000000Z", + name="GeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XL" )) 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" + "2022-07-26T14:53:31.000000Z", + "2025-12-14T05:50:02.000000Z" + )) + self.assertNotEqual(response.status_code, 400) + + def test_terminate_user_stats_0(self): + response = client.send(pp.TerminateUserStats( + "057e8c9c-e051-4a8e-ba71-e7c70732ee87" + )) + 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=4601 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_webhooks_2(self): + response = client.send(pp.ListWebhooks( + page=9811, + per_page=9607 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_webhook_0(self): + response = client.send(pp.CreateWebhook( + "process_user_stats_operation", + "4ClCzU" + )) + self.assertNotEqual(response.status_code, 400) + + def test_delete_webhook_0(self): + response = client.send(pp.DeleteWebhook( + "7e0107f9-88f5-4bc9-9dc5-48d9cf2a8772" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_webhook_0(self): + response = client.send(pp.UpdateWebhook( + "8dc74b0e-6321-40d8-aaea-dd550044a4b1" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_webhook_1(self): + response = client.send(pp.UpdateWebhook( + "8dc74b0e-6321-40d8-aaea-dd550044a4b1", + task="bulk_shops" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_webhook_2(self): + response = client.send(pp.UpdateWebhook( + "8dc74b0e-6321-40d8-aaea-dd550044a4b1", + is_active=False, + task="process_user_stats_operation" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_webhook_3(self): + response = client.send(pp.UpdateWebhook( + "8dc74b0e-6321-40d8-aaea-dd550044a4b1", + url="l", + is_active=True, + task="bulk_shops" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_user_device_0(self): + response = client.send(pp.CreateUserDevice( + "f69f16b6-b910-41af-b6c6-7cb75f4fbcee" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_user_device_1(self): + response = client.send(pp.CreateUserDevice( + "f69f16b6-b910-41af-b6c6-7cb75f4fbcee", + 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( + "c2a02ab9-c863-4f57-a635-8ff320debec6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_activate_user_device_0(self): + response = client.send(pp.ActivateUserDevice( + "ea1f1e26-5b30-4c41-bf52-8a79dbf5a8cf" + )) + self.assertNotEqual(response.status_code, 400) + + def test_delete_bank_0(self): + response = client.send(pp.DeleteBank( + "95ef724b-2b5b-4cd0-a70e-a2bfdd2e2c33", + "64ec65ab-8fc8-4bc3-94d5-e2086800bf20" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_banks_0(self): + response = client.send(pp.ListBanks( + "b4dc443d-820d-4983-8c04-7310d9ea8e68" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_banks_1(self): + response = client.send(pp.ListBanks( + "b4dc443d-820d-4983-8c04-7310d9ea8e68", + private_money_id="b30ef6cf-93c5-4d64-a56a-78167b68888a" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_0(self): + response = client.send(pp.CreateBank( + "e997f130-1dc6-4876-854b-a42da7a23dfa", + "406592d7-ef4c-41a4-8fb0-735de59cf3ac", + "X17seRboXyaTp5fxFISfuSj9R4g3", + "InaFkgEEKedrMwdHukpCicHBj64" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_1(self): + response = client.send(pp.CreateBank( + "e997f130-1dc6-4876-854b-a42da7a23dfa", + "406592d7-ef4c-41a4-8fb0-735de59cf3ac", + "X17seRboXyaTp5fxFISfuSj9R4g3", + "InaFkgEEKedrMwdHukpCicHBj64", + birthdate="1DT6D6M" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_2(self): + response = client.send(pp.CreateBank( + "e997f130-1dc6-4876-854b-a42da7a23dfa", + "406592d7-ef4c-41a4-8fb0-735de59cf3ac", + "X17seRboXyaTp5fxFISfuSj9R4g3", + "InaFkgEEKedrMwdHukpCicHBj64", + email="ien3I4QpNg@QKGB.com", + birthdate="iEs2" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_topup_transaction_0(self): + response = client.send(pp.CreateBankTopupTransaction( + "a2e5d086-5cc6-4c0f-b3cd-97c7c54aca77", + "d5627e8c-a122-49e7-bfcc-fa5b73a76af6", + 8450, + "ce446fe5-17b3-4d54-a986-21dabf96810c", + "e949be46-404e-4620-adb4-fa5324be27b8" + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_bank_topup_transaction_1(self): + response = client.send(pp.CreateBankTopupTransaction( + "a2e5d086-5cc6-4c0f-b3cd-97c7c54aca77", + "d5627e8c-a122-49e7-bfcc-fa5b73a76af6", + 8450, + "ce446fe5-17b3-4d54-a986-21dabf96810c", + "e949be46-404e-4620-adb4-fa5324be27b8", + receiver_user_id="8ba87be1-d839-4485-9709-5b8975f79dbb" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_0(self): + response = client.send(pp.ListCoupons( + "ef67d090-cf7b-491f-a022-32c9737c746d" + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_1(self): + response = client.send(pp.ListCoupons( + "ef67d090-cf7b-491f-a022-32c9737c746d", + per_page=5860 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_2(self): + response = client.send(pp.ListCoupons( + "ef67d090-cf7b-491f-a022-32c9737c746d", + page=2030, + per_page=6411 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_3(self): + response = client.send(pp.ListCoupons( + "ef67d090-cf7b-491f-a022-32c9737c746d", + available_to="2022-12-19T17:30:35.000000Z", + page=6324, + per_page=4166 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_4(self): + response = client.send(pp.ListCoupons( + "ef67d090-cf7b-491f-a022-32c9737c746d", + available_from="2025-01-24T21:08:41.000000Z", + available_to="2023-01-05T19:52:54.000000Z", + page=9358, + per_page=4759 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_5(self): + response = client.send(pp.ListCoupons( + "ef67d090-cf7b-491f-a022-32c9737c746d", + available_shop_name="USqsC3A", + available_from="2025-06-25T13:37:23.000000Z", + available_to="2021-09-13T06:09:06.000000Z", + page=7795, + per_page=1898 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_6(self): + response = client.send(pp.ListCoupons( + "ef67d090-cf7b-491f-a022-32c9737c746d", + issued_shop_name="SwCEB0Kew5", + available_shop_name="ULKwo1", + available_from="2020-11-25T02:22:13.000000Z", + available_to="2021-11-10T00:42:51.000000Z", + page=8685, + per_page=4148 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_7(self): + response = client.send(pp.ListCoupons( + "ef67d090-cf7b-491f-a022-32c9737c746d", + coupon_name="Js1K", + issued_shop_name="uu0UegnQjK", + available_shop_name="K12MWv", + available_from="2021-01-09T17:10:41.000000Z", + available_to="2020-01-20T06:18:43.000000Z", + page=4215, + per_page=3002 + )) + self.assertNotEqual(response.status_code, 400) + + def test_list_coupons_8(self): + response = client.send(pp.ListCoupons( + "ef67d090-cf7b-491f-a022-32c9737c746d", + coupon_id="jpAvm", + coupon_name="S", + issued_shop_name="ouP", + available_shop_name="F", + available_from="2020-06-24T05:36:51.000000Z", + available_to="2024-04-25T06:28:35.000000Z", + page=6810, + per_page=5903 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_0(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=9299 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_1(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=269, + num_recipients_cap=1202 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_2(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=9852, + storage_id="7275e31e-e42c-4c41-a46f-b5939e32705a", + num_recipients_cap=1190 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_3(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=9471, + min_amount=1138, + storage_id="4255eae0-1dbb-488a-a58f-120c5c38ab2b", + num_recipients_cap=5106 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_4(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=9234, + usage_limit=2774, + min_amount=427, + storage_id="74451f51-ee1f-4270-b866-a340473423f0", + num_recipients_cap=3146 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_5(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=1392, + code="GNT32", + usage_limit=8204, + min_amount=5720, + storage_id="4a0cf1d8-a0bf-4a6a-939f-8765c0de1b41", + num_recipients_cap=1524 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_6(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=4591, + is_public=False, + code="nyt", + usage_limit=6318, + min_amount=7918, + storage_id="95d15dc4-274e-4cd0-8572-09ca035d6705", + num_recipients_cap=9619 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_7(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=6704, + is_hidden=True, + is_public=True, + code="6j8TSBN1GR", + usage_limit=8265, + min_amount=5240, + storage_id="378b6fe6-89ca-4eb3-a5d5-aa47d4d0f2d5", + num_recipients_cap=3229 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_8(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=1921, + is_disabled=False, + is_hidden=False, + is_public=True, + code="2jHDzbRjTf", + usage_limit=7637, + min_amount=1581, + storage_id="b2b47309-67d5-4335-a4b5-f1416646335e", + num_recipients_cap=1360 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_9(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=2829, + display_ends_at="2025-05-26T22:49:13.000000Z", + is_disabled=True, + is_hidden=True, + is_public=True, + code="E6L0lEeYX", + usage_limit=1491, + min_amount=1152, + storage_id="0ebd184c-528e-461a-9684-4ae73a3406a2", + num_recipients_cap=2478 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_10(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=5311, + display_starts_at="2023-07-12T03:52:55.000000Z", + display_ends_at="2022-04-15T16:23:40.000000Z", + is_disabled=True, + is_hidden=True, + is_public=True, + code="Gw", + usage_limit=5313, + min_amount=9060, + storage_id="cf7ec8e3-59b8-457a-ba95-c97a122a6054", + num_recipients_cap=75 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_11(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=2885, + discount_upper_limit=9062, + display_starts_at="2024-12-06T12:54:19.000000Z", + display_ends_at="2021-01-06T20:05:33.000000Z", + is_disabled=True, + is_hidden=False, + is_public=False, + code="MbaKIEh", + usage_limit=1057, + min_amount=1646, + storage_id="0dd151c2-59c8-418c-9f3e-3b92b1600fe6", + num_recipients_cap=7255 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_12(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=5284, + description="GM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNRasJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1TG2yJEOhnrWkQVh8G8vXFKeuF0FhTncNlMmgEuaHAHntz60O", + discount_upper_limit=41, + display_starts_at="2022-06-12T12:46:25.000000Z", + display_ends_at="2023-04-28T18:51:12.000000Z", + is_disabled=False, + is_hidden=True, + is_public=False, + code="jiAw3cGa", + usage_limit=1184, + min_amount=4661, + storage_id="448abc08-a5cb-4648-b069-d8263b77596e", + num_recipients_cap=3873 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_13(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=4078, + is_shop_specified=True, + available_shop_ids=["af66ca52-f3cb-45b5-b9ac-987fbbad6a30", "0077e34f-ad7a-4812-9c1f-d629fc31a285"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_14(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=4938, + is_shop_specified=True, + available_shop_ids=["18126348-21f6-4ee6-b2fc-6be326735e9d", "d9350256-0c7c-409c-9952-8b4d0cf3826f", "7a43334e-e0ff-4d2c-b8e3-cae928a3e696", "1b923143-2b62-4c40-9e04-d5da37d546d7", "c5e0cd28-ebfb-40fb-8eee-f68cfc6fa55d", "037e9c8a-e17a-401c-a31b-e183e3d61140", "a43432a1-ed44-40ee-8bb4-4d60ba5f4c4c", "34e69d05-8e9a-405d-81e0-430ce1f2061d", "fcdab3aa-09a1-4234-a7d7-bd7a1acbb6f3", "f2d2ecff-7d46-448d-b8f2-18db33cecac5"], + num_recipients_cap=2813 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_15(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=3287, + is_shop_specified=False, + available_shop_ids=["8b85522c-5a8b-4051-ad49-9d1f1899fcf1", "94c8bf8c-f68e-49f7-ae82-3ef1fed783b8", "63b56d05-5ab0-4281-81c7-3aa8ebb86c57", "c1fb2290-3659-41cf-83e4-517eed868114"], + storage_id="82adea71-dcab-4670-bcdb-d09c303c7cb3", + num_recipients_cap=2193 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_16(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=97, + is_shop_specified=False, + available_shop_ids=["a2588a3e-97ba-43a7-a90c-f20413d35e77", "fd97d5fb-9199-4b80-b4aa-19c0ba22db87"], + min_amount=4748, + storage_id="3af44235-131f-4152-a608-c61dba02b007", + num_recipients_cap=8687 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_17(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=1859, + is_shop_specified=True, + available_shop_ids=["7b89f138-1058-484d-8d4a-476ec5396791", "2c6d7a7c-9a5a-4388-a80e-69b0ffb8a90f", "26901695-b622-473e-834b-c5c11743271e", "8ddbb651-6021-4475-a4ad-2774164c3046", "85da6f45-98ce-4838-90a1-ff3cd84e2b2f", "1544d3b3-4355-4a7e-8bad-4220100d55b6", "3d58214b-ebca-4434-9d1b-36ab7f97cf07", "83f91fe0-c7a4-4021-b824-e9328f36ae23"], + usage_limit=8866, + min_amount=3953, + storage_id="a30ef7cc-24d7-475a-9531-9a3d2bafa1ec", + num_recipients_cap=7424 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_18(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=7252, + is_shop_specified=False, + available_shop_ids=["50affd42-a06f-43c5-b479-079f79ad36ec", "0d622e9c-f31d-4d41-b74c-9bdc318651e3", "8b00cb67-3656-4645-8fd9-3e3e8ec36c4e", "9d236942-9d7e-4988-8448-cd3fc6684a7b", "01e21f87-7085-4cb5-8a4b-1b47ac1bda6b", "dc2afb1e-239d-4069-9425-faae8417b2e5", "45f5ab3a-f147-4a01-b258-fe411285e06b", "44acaa64-2da2-4dec-bc7b-d291b672a306", "35223591-3c1c-425b-ad7b-12e2af87ebc4"], + code="PcxbP00", + usage_limit=4876, + min_amount=2762, + storage_id="97717c12-ee37-4351-ad70-bacfe88fb856", + num_recipients_cap=1661 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_19(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=2625, + is_shop_specified=False, + available_shop_ids=["a7afbeb7-ff4d-43e5-90f4-fcd9d5b25e93", "15c61318-4987-4680-9c21-281685e9363b", "12dc9f88-56d9-4353-adfd-4004f39eca33", "610f148f-1dcc-4f33-bdd7-4c423f9c3680", "3737910e-0e13-4c8a-be84-60aad4e6e7bd", "ca8fe3d5-8b59-4998-9b49-744771360ead"], + is_public=True, + code="Xh", + usage_limit=9461, + min_amount=4784, + storage_id="ec455f44-3ffc-4b76-8dcc-aef8ae833c91", + num_recipients_cap=3575 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_20(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=7413, + is_shop_specified=True, + available_shop_ids=["8f1eb184-b09a-4b4a-bbde-38e664b0affb", "5ec166ca-8af8-49e5-a504-ac2b812ebf3a", "ea3525f3-8f3f-4e18-8b9a-ef6b2a126677"], + is_hidden=True, + is_public=False, + code="xkNigyccR", + usage_limit=5718, + min_amount=8565, + storage_id="996a3e58-e995-4de1-95f8-4b99bf1bdd05", + num_recipients_cap=9929 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_21(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=9025, + is_shop_specified=False, + available_shop_ids=["dd9c077c-2f5d-4b8c-907a-b57e5de97974", "243d53eb-be66-426c-8810-bc0d81310aa9", "c90d1113-7272-4362-87a7-12d820c6dc94", "3e107aa8-7935-4fb0-b761-41abe0949aba"], + is_disabled=False, + is_hidden=False, + is_public=True, + code="dTcYjjCJV", + usage_limit=4514, + min_amount=8596, + storage_id="510d09e1-413e-4cac-b458-26d79ef4b0b3", + num_recipients_cap=6206 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_22(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=4083, + is_shop_specified=True, + available_shop_ids=["175456ed-2da1-4eac-a25b-3cd75028b5ea", "0b254b09-476a-4861-af7e-8ba608279663", "203ee590-d7dc-42cb-8ad3-3eb9da2c2dca", "1d365126-1a5d-4a92-881d-fb6cccb5e7f7"], + display_ends_at="2025-09-29T15:54:46.000000Z", + is_disabled=True, + is_hidden=False, + is_public=True, + code="sltj", + usage_limit=2154, + min_amount=959, + storage_id="5274ee9a-ceef-45e4-ae5e-3cbcacb1e521", + num_recipients_cap=8233 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_23(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=2500, + is_shop_specified=False, + available_shop_ids=["b4377603-5945-4d2b-861e-dc0f3db694bb", "61184407-70d5-4506-93db-be022af4f978"], + display_starts_at="2024-01-11T05:48:52.000000Z", + display_ends_at="2020-02-28T04:03:55.000000Z", + is_disabled=True, + is_hidden=False, + is_public=True, + code="DnSC5Rfu", + usage_limit=48, + min_amount=3165, + storage_id="74ef3e1e-1a43-4230-b517-eb22f6439aad", + num_recipients_cap=1043 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_24(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=9926, + is_shop_specified=True, + available_shop_ids=["779f7a77-93ed-4170-90eb-31d046ff3c3e", "9fd6a3ea-2687-41e2-bc6c-07454cf67389"], + discount_upper_limit=3466, + display_starts_at="2021-12-15T02:55:47.000000Z", + display_ends_at="2021-10-26T10:36:59.000000Z", + is_disabled=False, + is_hidden=True, + is_public=True, + code="UTF", + usage_limit=5786, + min_amount=2346, + storage_id="48e7d90f-c1d3-46f0-9e49-469421aaa985", + num_recipients_cap=6209 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_25(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_amount=4524, + is_shop_specified=True, + available_shop_ids=["0b3e0489-d26a-4819-b7ca-3ed57c361e60", "2c03df55-2d20-4278-b2a1-02555929a11b", "47e80363-5c24-4eb5-99ed-583a642a5f58", "ff1aff65-be6c-4e2b-9abe-e0dfb6f29432", "d21e0241-bab2-46ae-abde-4d30c6f7501e", "67248030-f52a-4f0c-a7ac-7cbc1777a51b", "e83b2e9a-fa82-4b56-8493-2636956e1115"], + description="FxYfWwCiS0MuCLswxDV9drgRKhLSvZ2KQORxMHroQo6jM66W2y8KrZ8xMlNalvWasLjNh8s14cZJ7e4Q9GCUyL2v9u3mWzZ", + discount_upper_limit=1538, + display_starts_at="2024-03-04T11:28:49.000000Z", + display_ends_at="2026-01-25T02:08:44.000000Z", + is_disabled=False, + is_hidden=True, + is_public=True, + code="jrUlmk", + usage_limit=459, + min_amount=7688, + storage_id="7d2be485-4d81-4752-bc2d-5f812b78a096", + num_recipients_cap=4197 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_26(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=9896.0 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_27(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=9176.0, + num_recipients_cap=5994 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_28(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=2940.0, + storage_id="d715657b-39d9-4836-a8c1-ffed9f6c0a4d", + num_recipients_cap=7519 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_29(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=421.0, + min_amount=406, + storage_id="77b656b8-483c-44d7-83a9-34a914248419", + num_recipients_cap=4016 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_30(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=9131.0, + usage_limit=4721, + min_amount=7681, + storage_id="ce078347-df5a-4aa3-91d7-624e7b1d8ba2", + num_recipients_cap=5006 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_31(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=7652.0, + code="BL6m65", + usage_limit=8599, + min_amount=3888, + storage_id="745095ee-245c-4530-92ed-11c063adf43e", + num_recipients_cap=930 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_32(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=6632.0, + is_public=False, + code="N", + usage_limit=4507, + min_amount=7084, + storage_id="adb61f7b-6f8e-40b1-9b01-6c3f6a9c10d1", + num_recipients_cap=6661 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_33(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=2886.0, + is_hidden=True, + is_public=False, + code="lICN", + usage_limit=7318, + min_amount=2185, + storage_id="657bb749-0865-4d65-9153-7867c68277e3", + num_recipients_cap=2726 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_34(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=8135.0, + is_disabled=True, + is_hidden=True, + is_public=False, + code="3PA5", + usage_limit=9773, + min_amount=8703, + storage_id="8b3ea4c2-c8cd-43d5-bf2a-0bb5696a9c3f", + num_recipients_cap=3279 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_35(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=2704.0, + display_ends_at="2022-11-22T23:56:58.000000Z", + is_disabled=True, + is_hidden=True, + is_public=False, + code="73Catn", + usage_limit=9579, + min_amount=8917, + storage_id="6fe69433-f951-45e9-a96a-c2164f8f5d58", + num_recipients_cap=1496 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_36(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=2479.0, + display_starts_at="2023-02-09T07:30:20.000000Z", + display_ends_at="2023-06-16T02:13:32.000000Z", + is_disabled=False, + is_hidden=False, + is_public=False, + code="6", + usage_limit=3599, + min_amount=3813, + storage_id="01ad37a8-b839-4e20-822a-81c96b2af3a7", + num_recipients_cap=3876 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_37(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=1088.0, + discount_upper_limit=4877, + display_starts_at="2024-10-01T02:36:11.000000Z", + display_ends_at="2024-02-09T20:30:52.000000Z", + is_disabled=False, + is_hidden=True, + is_public=True, + code="sxUMLq2", + usage_limit=6848, + min_amount=5663, + storage_id="08fe69f9-4085-466e-aa32-5528723b7a99", + num_recipients_cap=2026 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_38(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=8505.0, + description="ShHMs7dpHbhmzmDvsuxdQFF1b9FFVSxNRhY3CeG383Fyff0GWufJQM5UqG40T5H1YOyXeD7lp3h", + discount_upper_limit=6271, + display_starts_at="2020-01-22T08:11:02.000000Z", + display_ends_at="2023-10-04T13:09:24.000000Z", + is_disabled=False, + 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_39(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=9948.0, + is_shop_specified=True, + available_shop_ids=["fcb46ff9-a75a-4cf4-92d9-c98c59cb9c81", "9893ddce-d137-454e-9211-6ee3f3b87a16", "5206e128-2890-42a3-95c3-eae5aad70444", "935df521-c9fe-4458-80c9-8f25fbbb8484", "c54da7b0-7c95-4a31-90bd-b5bc64c96904", "94ce1b9c-ea5b-42e9-bba6-5fba1cf4acef", "5ce3bed4-93b6-4d09-a4c5-b73553a52e39", "5f6b0d18-0ee5-4c89-8657-62e5a6edfc13"] + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_40(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=2640.0, + is_shop_specified=True, + available_shop_ids=["f0606c90-9413-4307-8d4a-c9bb73174768", "f74a1fc8-094d-4703-b6ac-5bd0a5ff1a5d", "d2c13352-7dcf-4a5f-bd1a-51af27598162", "c6170fbf-2851-483a-a778-617df795fa00", "f23ba8a8-4001-4723-aa33-a6972f1c4c66", "cef2bf34-1c95-4b77-a8b8-ccc5dba619ec", "63021f2b-1809-4f34-8885-49c0c13b8c04", "bba2fdc7-3fe7-40e6-895b-bd6e0f750555", "489a165c-92f5-42da-969c-c8d53e6886da"], + num_recipients_cap=8624 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_41(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=4835.0, + is_shop_specified=True, + available_shop_ids=["ac255ad8-e5ab-434a-8b6c-8c6cc4dee87c", "73378d01-a208-4960-a4dc-7adc2842126f", "f73bb6c4-8b22-4d75-b6b9-bb7e213d6a54", "42513cc1-f804-475b-9732-3e9822591758", "ad733713-83ad-4f48-bc52-fcaa5c80a2a7"], + storage_id="8aaaef1d-4e58-4428-acef-e1e396bd7840", + num_recipients_cap=7501 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_42(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=4144.0, + is_shop_specified=False, + available_shop_ids=["28187b82-19c5-4f80-9c4e-1c00dd077b9b", "054a417c-120e-4fea-a527-010f0a11c971", "4afb6480-c02c-4a34-99e4-62ebecead7ca"], + min_amount=6720, + storage_id="bccfa447-4657-4a67-8660-026dafeb49a5", + num_recipients_cap=2525 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_43(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=6296.0, + is_shop_specified=False, + available_shop_ids=["0a7c66c5-33c9-485b-8189-5bb1b5ea024d", "9f6cab5e-16a7-49c1-a6ad-41b2728adb16", "57172c48-0667-48e5-8c81-1663d6a4c749", "619dfaab-8187-436c-b72b-e2b49d615746", "6790c1f9-d9d2-409d-9053-4154d115e4a0"], + usage_limit=6046, + min_amount=277, + storage_id="438bcfb7-981c-4253-a32f-33ae5c6138e6", + num_recipients_cap=4257 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_44(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=3297.0, + is_shop_specified=False, + available_shop_ids=["2173f2d8-46c9-4b30-a170-895bb1b4c7e8", "41f4138d-3087-4018-aea5-653aa07e87bb", "e5c1b9d1-c114-4f70-ad09-c4e11c881845"], + code="46JpxMwBW", + usage_limit=7362, + min_amount=5390, + storage_id="b31a7dde-8788-45f4-abf7-7f5569a5a87f", + num_recipients_cap=4101 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_45(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=2648.0, + is_shop_specified=False, + available_shop_ids=["0f2a48db-2301-456a-8195-a01dc4a9ebf1"], + is_public=True, + code="EREj", + usage_limit=9470, + min_amount=7611, + storage_id="3c5d17f1-462f-496d-bc79-8280a7e7679e", + num_recipients_cap=7329 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_46(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=5031.0, + is_shop_specified=False, + available_shop_ids=["b7ac8171-60ca-4c3b-926b-addb6d26d0c5"], + is_hidden=True, + is_public=True, + code="kYv", + usage_limit=1468, + min_amount=9621, + storage_id="d0302a69-89a0-494d-a786-dba61a0aedbe", + num_recipients_cap=450 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_47(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=8258.0, + is_shop_specified=True, + available_shop_ids=["dda1aae3-fc76-45d2-91db-175ad74d4c7a", "3aabbd89-bea4-4b61-9549-d5339400dc8f", "3b417fb7-c471-42eb-8cb5-15bb81fc31a9"], + is_disabled=False, + is_hidden=False, + is_public=True, + code="Gz36NQ", + usage_limit=7064, + min_amount=2007, + storage_id="ed094e12-c75a-491c-981c-ef119a09cc0d", + num_recipients_cap=5844 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_48(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=3525.0, + is_shop_specified=False, + available_shop_ids=["c8773c49-62f2-4a4b-a408-efde8b091770"], + display_ends_at="2020-12-12T04:58:34.000000Z", + is_disabled=True, + is_hidden=True, + is_public=True, + code="ntwLwsP6P", + usage_limit=3112, + min_amount=4460, + storage_id="471caf76-3418-4c06-8f74-4d4b80dd4097", + num_recipients_cap=9703 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_49(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=2131.0, + is_shop_specified=True, + available_shop_ids=["12a62cb7-3919-4dbd-8afa-f69a133bc7eb", "ba5f1db6-dd12-40db-9528-8ca6537edf05", "58eddbc0-d048-426f-bb69-38b0d1a3c2ef", "254c122e-1d21-4411-a5c1-d4d4f53fb628", "362e0f9a-3cb0-494e-af7d-bb0e5d4fe01e"], + display_starts_at="2024-07-20T17:13:31.000000Z", + display_ends_at="2023-11-10T23:18:47.000000Z", + is_disabled=False, + is_hidden=True, + is_public=False, + code="BSET0oVn", + usage_limit=3884, + min_amount=5826, + storage_id="fe8ec60f-8479-4eb6-a389-11f2d31e2eda", + num_recipients_cap=8687 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_50(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=2563.0, + is_shop_specified=False, + available_shop_ids=["a962fd74-f12c-46ce-a739-f23373f9451d", "622e317c-6fef-4659-a824-412da671a77e", "fec0f27b-7da0-4b4d-a0f2-62bbee08df00"], + discount_upper_limit=2836, + display_starts_at="2021-12-02T00:19:03.000000Z", + display_ends_at="2022-09-03T15:50:57.000000Z", + is_disabled=False, + is_hidden=True, + is_public=True, + code="FqX3we", + usage_limit=1756, + min_amount=9952, + storage_id="45efe367-73df-484c-ae53-674be678298e", + num_recipients_cap=5761 + )) + self.assertNotEqual(response.status_code, 400) + + def test_create_coupon_51(self): + response = client.send(pp.CreateCoupon( + "e751ffa9-a5bf-479b-b36c-3d8b3441ca42", + "Nl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH", + "2021-11-20T04:11:56.000000Z", + "2022-08-06T01:41:49.000000Z", + "b0153621-66b8-44ba-ba37-99fce7b1ae3e", + discount_percentage=2375.0, + is_shop_specified=True, + available_shop_ids=["ca4a4ff0-ad0b-42dc-b12c-b10b3f2bcb12", "fd9c8cd3-25a3-4c45-b51d-60834e0cf7fd", "7a6ab6f7-8ee0-4f90-8c57-abd407877a16"], + description="k07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB304Jmf05hgJ0rNiPO7A", + discount_upper_limit=8109, + display_starts_at="2025-04-08T05:35:42.000000Z", + display_ends_at="2023-08-30T21:20:32.000000Z", + is_disabled=True, + is_hidden=False, + is_public=False, + code="sb", + usage_limit=3761, + min_amount=7099, + storage_id="3bc41758-c80e-4d2e-b8dc-3c2ede37751c", + num_recipients_cap=6684 + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_coupon_0(self): + response = client.send(pp.GetCoupon( + "7e441d00-940e-4951-ad85-fe1661d8bf1c" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_0(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=3319 + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_1(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=9891, + name="f9SU4WjLK1VT02GEDFloz09QK5UFuC5JXRVayFf6oyQZu56A1wWzKTTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6cvEGDQNsufaSx2VVAwQqeQU" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_2(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=4482, + description="NQ", + name="Ci45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVE" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_3(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=6567, + discount_upper_limit=3181, + description="ehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4Xw", + name="IDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8B2QPQ9Y2Rpsj0heI1pcWBx1T31cQtfbPCATbfETgM8Ko" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_4(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=4003, + starts_at="2023-06-14T21:54:24.000000Z", + discount_upper_limit=5694, + description="CtS8z1fc4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIe", + name="rItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9z2bnV3FEVOMMOncgSgfpnmC2KuX" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_5(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=7122, + ends_at="2024-01-15T04:28:23.000000Z", + starts_at="2024-12-25T08:38:42.000000Z", + discount_upper_limit=1223, + description="fUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72QaNrZpzYfcTDxwidoKxhgH4IlA44068ievlutMBS788il7UEqSzLy9xJxJq4hHbOAXXYVgVjKzFhmxuYV64qe5o2B2OlLXdk5kJbuw4YuJbyUdwtweakDyg0TFsZujDlCiTABlfIhph", + name="Ft9MZHKK" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_6(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=6836, + display_starts_at="2026-03-16T06:19:24.000000Z", + ends_at="2023-08-15T05:21:46.000000Z", + starts_at="2023-10-25T08:42:32.000000Z", + discount_upper_limit=1711, + description="sJ424DF7dkePprAJuqXJLC9DlGjqYc53kHtf9cD7bpNKlOmIqFEpEzlkbZXsHeK96R7zZjofXop8q4Bfps6VchHwOSBaSPaNKxM4bPYPan8UYIRAISeS032nbwP9uwXrTBWthKP8SFB1epaCsenfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHv", + name="YhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2MaByNhkorzL" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_7(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=6972, + display_ends_at="2022-11-02T21:12:51.000000Z", + display_starts_at="2026-01-10T19:31:48.000000Z", + ends_at="2021-08-26T04:00:00.000000Z", + starts_at="2020-03-31T17:09:11.000000Z", + discount_upper_limit=2035, + description="ax7iYOPlAj5UlMDx", + name="6iDarlMDzJC7wMAkFYNemkzZpvDvog0lglLv2T90aOF7qLZJG6mWFW8mYG8iBpA9wK7FerKmMDJDN9kjnEAtWkM10yTZC3mt5NbCfjtxFXhJHyZx" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_8(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=8636, + is_disabled=False, + display_ends_at="2020-02-12T21:38:40.000000Z", + display_starts_at="2024-05-20T05:45:40.000000Z", + ends_at="2023-04-25T00:53:36.000000Z", + starts_at="2024-07-21T12:21:01.000000Z", + discount_upper_limit=7798, + description="1SEczLfO3bcMSuKdq3FslGbkHo1PhxbbT2umORVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq7", + name="PuYo1FVSdDE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQHQhhR" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_9(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=4355, + is_hidden=True, + is_disabled=True, + display_ends_at="2024-05-23T03:24:00.000000Z", + display_starts_at="2023-12-17T18:33:50.000000Z", + ends_at="2020-01-20T10:52:17.000000Z", + starts_at="2021-08-04T13:01:27.000000Z", + discount_upper_limit=2070, + description="ofbMQ1Wyxx6iPX8wNVpCNUyiEzApKM66ZkEOto1oTpzcZyDOIWVwoFQcmGYbDKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJ", + name="zXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZsgSDOAS6m6W4ycEKeHr4636lRXT" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_10(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=7666, + is_public=True, + is_hidden=False, + is_disabled=False, + display_ends_at="2024-06-03T20:24:40.000000Z", + display_starts_at="2025-05-20T13:36:41.000000Z", + ends_at="2024-08-01T13:44:31.000000Z", + starts_at="2021-12-07T14:15:41.000000Z", + discount_upper_limit=3243, + description="Zt0j1CI3l6J30qBjXV2f99mPOolq1eiW9RuNHXLsbYmrfHwiW6AehvKLu9jSykyDMxjQhXvqsNkUwpnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD6", + name="pEennAfXO8IbuWWi93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMiAoA" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_11(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=3746, + code="SOIgsA", + is_public=True, + is_hidden=False, + is_disabled=False, + display_ends_at="2022-07-14T06:51:47.000000Z", + display_starts_at="2020-01-15T08:50:26.000000Z", + ends_at="2020-09-06T17:39:58.000000Z", + starts_at="2023-07-23T19:23:45.000000Z", + discount_upper_limit=1559, + description="RqJv3Yoi1HNQ6SUUxfHdkFZrSjoj4E906hjOODSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyxQz7D46SGfEdpD0URVkFLTmlxp8SI9cXescrmSD5nkp7THGlyH3t2HB4w", + name="HFbCGx0Xzqx2wtaKpu1qdmiKn22F3ctIsxTTV24W3iMjgCa" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_12(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=3124, + usage_limit=2118, + code="7zb24T", + is_public=False, + is_hidden=True, + is_disabled=True, + display_ends_at="2024-11-14T05:44:54.000000Z", + display_starts_at="2021-01-09T20:44:21.000000Z", + ends_at="2021-12-30T11:36:57.000000Z", + starts_at="2020-09-22T10:52:41.000000Z", + discount_upper_limit=4104, + description="GoNYLIXxqonkMGqXlJpJRQwp9nn9cv0p2uygmHKqGnnOeMtFto3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH", + name="8h5Guqwmdx9H0OP7RXsy9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKe" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_13(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=2976, + min_amount=7835, + usage_limit=9800, + code="fPuDn8vt", + is_public=True, + is_hidden=True, + is_disabled=False, + display_ends_at="2020-03-10T14:16:27.000000Z", + display_starts_at="2024-09-16T20:57:00.000000Z", + ends_at="2025-12-11T19:10:35.000000Z", + starts_at="2020-12-17T06:20:55.000000Z", + discount_upper_limit=1450, + description="y9baAXpUrNxQgJv2d1RjRDvxxlQFhM2eopmIlmvqzqnGOYbg6rdqjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T5nZUMuDqspHuPmGiUoPteza9Foxx3GETJuunMNM7JUVu7YgDI0zSm63cU49za1QJALcpDZJ7YKoaGZqFQRMYj7e", + name="0OiTgfPr68fP2A8RCqVjIMZulltZtjgMfuDxn3QgsidEuf2NvBHeZX8hYKnrzJWptMhyWUi64Y" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_14(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=8366, + is_shop_specified=True, + min_amount=4834, + usage_limit=8337, + code="eyCSFHt3", + is_public=False, + is_hidden=False, + is_disabled=False, + display_ends_at="2024-04-05T13:47:52.000000Z", + display_starts_at="2024-04-02T04:41:22.000000Z", + ends_at="2023-03-28T01:13:39.000000Z", + starts_at="2025-06-15T02:56:59.000000Z", + discount_upper_limit=5698, + description="8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0KtoQaeaW3v7wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltqUbvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3Eyk", + name="pjwCPjAkzyY2kmUe2JJ53U3N6F0e26pbO3HttlG4eyiatMI7VF3dtugJSz1Q3vovXNsgFsW05W19aXu" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_15(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=6675, + available_shop_ids=["92ed140a-c656-4bd6-913d-d552e509cb3b", "013cdad1-553b-406c-95aa-5f074152c1d6", "49bfe727-3286-48fc-a34a-eff6ec7ada84", "a08b8605-dda8-4b9b-a139-61c368c387da", "5709b1b2-555a-46a9-8973-ccc2c794c4e8", "94fd045b-62ed-4560-af4a-95c25034330b", "5132dc84-81c5-46ce-9eca-1fb260978628", "bd07184a-1cf0-48b2-99cc-8e6e708ef750"], + is_shop_specified=False, + min_amount=1665, + usage_limit=8553, + code="t", + is_public=False, + is_hidden=True, + is_disabled=False, + display_ends_at="2023-02-03T20:11:13.000000Z", + display_starts_at="2022-11-17T14:42:10.000000Z", + ends_at="2025-06-05T06:13:39.000000Z", + starts_at="2022-07-24T03:45:05.000000Z", + discount_upper_limit=8919, + description="aFb8JKCZbl1FLUJSG0fudQ9bvTSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8NITOunWJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wD", + name="3YT1DlU5jqThl0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSu" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_16(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=2979, + storage_id="93535868-8a57-41c7-93c0-f90df5928ef0", + available_shop_ids=["326d4e49-ab1e-4ff5-8e58-b545783c370a", "4c03e276-fb7c-497b-81d9-358528a9e08a", "bd2ee3ab-9b06-49f6-91b3-24b4548e939e", "bc43a131-57f5-4dee-a7e4-f4d4e4822cec", "7db9826a-b95d-47e2-923e-76ab819b6caa"], + is_shop_specified=False, + min_amount=5551, + usage_limit=1000, + code="fp", + is_public=False, + is_hidden=False, + is_disabled=True, + display_ends_at="2025-01-23T09:18:05.000000Z", + display_starts_at="2023-04-23T02:13:17.000000Z", + ends_at="2022-05-16T06:17:59.000000Z", + starts_at="2023-12-06T10:07:44.000000Z", + discount_upper_limit=2442, + description="C65xVDnAJbsKD6b895iftqbY67Ut2zsAKH6lKT6gJXbaEKAddoUM0CRdaSDeoQ9lXXELG9oQdgpEse81VvpXr3HeuSevupI3Lg6cydG4CQY3zROLCcC3cDzGwCmJXHiF", + name="C2aKJupg0Hph0EUCWBeCDLYnE6HiVXoG09ihrRj4aejWMyEn4Q3X3B" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_17(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=5823, + num_recipients_cap=9029, + storage_id="71abd8f8-8720-413a-823b-7a9e86c427ca", + available_shop_ids=["df16e14a-c508-4b35-b42c-bc19f6e5b8b6", "0b2c5daf-ac05-4768-b3a8-f6493999fba2", "b6477450-d863-4682-bec2-1904877a84cb", "1439f991-b0d1-4e44-bd63-f406892ca861", "36083c3c-e988-43fb-a7c5-a2eb1d4227ad"], + is_shop_specified=False, + min_amount=2941, + usage_limit=9916, + code="F8iAC", + is_public=True, + is_hidden=True, + is_disabled=False, + display_ends_at="2025-02-20T14:31:07.000000Z", + display_starts_at="2026-01-18T02:59:18.000000Z", + ends_at="2022-09-21T21:07:45.000000Z", + starts_at="2023-01-25T01:45:09.000000Z", + discount_upper_limit=8182, + description="8PGaDArnv6F3HhJclpvEl0kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCNCl989Inr9h5bKrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtOnbZ68JstsOcxw5PoatcF0TU5W5omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc2ISnCuuu6HEZICTUsFd55cysKpzPw06buTFvYo4vEubGw6jV", + name="ah2jNyPqoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPTZ7efHVp4Du6" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_18(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=7266, + discount_percentage=519.0 + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_19(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=2272, + discount_percentage=9850.0, + name="0H9hNDIpWOGRlL4QDCIWrLzYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCFjnlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSc" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_20(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=1138, + discount_percentage=2888.0, + description="P7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCisIe5qHDsMdG7wbTKEpXzySqqc4sXPad6xuwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZFtSWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREfojZVoiI", + name="URbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3rucfBues6uHoyn0kY9tu08Akj" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_21(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=1731, + discount_percentage=6462.0, + discount_upper_limit=9648, + description="WPKbQvYow9FaOH3zD", + name="7SQmRuyNCMpGLg" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_22(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=9301, + discount_percentage=6475.0, + starts_at="2022-10-21T07:19:26.000000Z", + discount_upper_limit=6785, + description="K4AYX", + name="StTHGYGCT6FSvry2ciGzpWdg5yn158N5eaT" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_23(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=9265, + discount_percentage=9177.0, + ends_at="2021-05-29T19:20:42.000000Z", + starts_at="2021-09-09T22:21:47.000000Z", + discount_upper_limit=6869, + description="tPEMBFK5RCvbOFISTKPBIbnB4IlVfzKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsPccciqGzpCuGxgj", + name="tbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WR" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_24(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=4994, + discount_percentage=134.0, + display_starts_at="2020-01-27T15:27:02.000000Z", + ends_at="2023-11-08T18:40:30.000000Z", + starts_at="2024-03-27T21:20:11.000000Z", + discount_upper_limit=9992, + description="5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8qJafcwBDpLTRN1a0lar5cvmWk6HP3Edv56q9t5VGuIJJqB3hC6", + name="gJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5PsH9YtmnNiOZ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_25(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=470, + discount_percentage=8889.0, + display_ends_at="2023-06-11T03:38:41.000000Z", + display_starts_at="2021-03-22T05:10:39.000000Z", + ends_at="2024-03-19T17:04:51.000000Z", + starts_at="2022-10-06T23:32:23.000000Z", + discount_upper_limit=9198, + description="B1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeR", + name="a6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoK" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_26(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=3685, + discount_percentage=4630.0, + is_disabled=False, + display_ends_at="2024-09-26T03:49:24.000000Z", + display_starts_at="2021-09-11T19:31:16.000000Z", + ends_at="2021-09-28T09:08:21.000000Z", + starts_at="2025-09-23T09:12:41.000000Z", + discount_upper_limit=6473, + description="Vji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8rNkq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQkIPmfa5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uG", + name="XyxLiKvyAHQ0Cmh0GR2iNpQgbrTS2HEffP70DHCUohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBpAMRk3KT9aHDvn68" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_27(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=9007, + discount_percentage=5296.0, + is_hidden=True, + is_disabled=False, + display_ends_at="2024-09-08T23:16:47.000000Z", + display_starts_at="2020-02-17T04:24:52.000000Z", + ends_at="2022-03-12T22:50:54.000000Z", + starts_at="2021-10-07T19:22:41.000000Z", + discount_upper_limit=8534, + description="o61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9FitjutUJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSR", + name="H" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_28(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=3099, + discount_percentage=5643.0, + is_public=True, + is_hidden=True, + is_disabled=False, + display_ends_at="2025-03-31T08:49:04.000000Z", + display_starts_at="2025-09-06T10:46:28.000000Z", + ends_at="2020-04-22T12:17:31.000000Z", + starts_at="2020-11-24T22:48:34.000000Z", + discount_upper_limit=3668, + description="6CKr7da3Hc5MrDSrYQmTFD8MK4LhwIRladKEnUCUBMTsHjSLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl1nws6Ne3S7kdpHli9FCf9vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn6U1tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xO", + name="pACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQKCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z9k4WtlP60t1pGDCB7WpLio" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_29(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=8336, + discount_percentage=1746.0, + code="L", + is_public=False, + is_hidden=False, + is_disabled=True, + display_ends_at="2025-01-29T12:20:28.000000Z", + display_starts_at="2020-05-03T14:36:24.000000Z", + ends_at="2025-04-26T10:38:54.000000Z", + starts_at="2024-07-06T05:16:12.000000Z", + discount_upper_limit=4887, + description="wp3jBXylmnzTDYQPTQEhEDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3a7y1jkUDzYlQVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW", + name="sRaEhx8aJkSJHuUfzU3cxqLSG8S4aP0CNMNfb6VowWUVfzovzP7VL5ebc" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_30(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=7017, + discount_percentage=3050.0, + usage_limit=6947, + code="LtVhmlM6k", + is_public=False, + is_hidden=True, + is_disabled=True, + display_ends_at="2024-02-17T13:24:51.000000Z", + display_starts_at="2022-01-31T12:38:26.000000Z", + ends_at="2022-12-05T23:28:55.000000Z", + starts_at="2025-10-11T11:17:24.000000Z", + discount_upper_limit=8771, + description="Ng4aU7BlWsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomWlXA8y2vwAsTNYaeLyV7CWdrmk7DRyx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4xhz7DzBywKIciMlN0S7L0N0uBHj0xIl", + name="mI7crwjgiJmBq8" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_31(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=6107, + discount_percentage=6.0, + min_amount=1213, + usage_limit=4391, + code="2BMoiejWm", + is_public=False, + is_hidden=True, + is_disabled=False, + display_ends_at="2020-04-06T00:21:05.000000Z", + display_starts_at="2022-03-20T10:17:47.000000Z", + ends_at="2024-06-19T14:07:02.000000Z", + starts_at="2022-12-13T02:57:27.000000Z", + discount_upper_limit=2834, + description="CFWRUhTWJtrSHM5KvGCx3jvLeQXqJ7fOtRApW564YK", + name="0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wpFlmsWusC8RGaBKUJdHLf9kwaxRbmzAo5vzrqC43kvR" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_32(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=9811, + discount_percentage=7928.0, + is_shop_specified=False, + min_amount=9553, + usage_limit=9992, + code="k5qYm8", + is_public=True, + is_hidden=False, + is_disabled=False, + display_ends_at="2022-10-16T01:50:02.000000Z", + display_starts_at="2021-05-31T09:17:06.000000Z", + ends_at="2023-03-02T13:58:33.000000Z", + starts_at="2025-12-07T07:07:22.000000Z", + discount_upper_limit=689, + description="y6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9VDX3NEhsO0rjGagOIQ6x9sSfu0zX8zdCniT7rbp4RdF8jzLLX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZhOiq9TM1kLnMOaPoayQ1SL4LwXctk2uyuazqzF", + name="pngLk90ZBFe71DIECbUavopCer6amUqWii2uDVrmTki6pqO0f8cnptMkBRjmpnnbeCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSblk7QSMdkkKPrtzfsCSKaR3OFn" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_33(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=8449, + discount_percentage=1815.0, + available_shop_ids=["96ef7095-d957-4d12-8bbf-13ca124f4aae", "dc1eaefa-1b1b-4335-8692-7e685ffe6768"], + is_shop_specified=True, + min_amount=411, + usage_limit=2448, + code="ZBC", + is_public=True, + is_hidden=True, + is_disabled=False, + display_ends_at="2024-01-21T20:40:51.000000Z", + display_starts_at="2021-10-16T00:55:24.000000Z", + ends_at="2024-09-06T14:20:27.000000Z", + starts_at="2026-02-13T19:10:28.000000Z", + discount_upper_limit=5639, + description="TDaoK9IqITw9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq6VpVqu1DpFd0JaBsPBEjjxsN82R5bV74h6MclFLskpVJhF8OvhWGp3gT", + name="ZC" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_34(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=3126, + discount_percentage=944.0, + storage_id="807463d2-cb25-4fd4-b71b-15b492bca1e6", + available_shop_ids=["e0fabe5a-cea9-49aa-a02d-24a03ffa60b8", "c9125c7a-adbf-4157-8271-4cd3ecd8f227", "92de2143-9ca5-4d33-9a76-87448a625749", "2eab8704-469e-49a5-8b26-89a43de13fcd"], + is_shop_specified=False, + min_amount=4223, + usage_limit=893, + code="nooU", + is_public=True, + is_hidden=True, + is_disabled=False, + display_ends_at="2025-10-02T05:06:03.000000Z", + display_starts_at="2024-03-15T12:44:17.000000Z", + ends_at="2023-08-07T06:03:49.000000Z", + starts_at="2020-08-02T10:39:39.000000Z", + discount_upper_limit=4508, + description="hFzbMP7H4x70jy8CyXS", + name="jsNQfhm4JdiSR8LU0sAxVpKo9Pr8tnCR4b3VVcnR7ySaTJSLXaRbjFaOCY9HY0faJMcRsZ3tfn14pqdpY2gOVzxC2AMF" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_35(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_amount=266, + discount_percentage=349.0, + num_recipients_cap=7922, + storage_id="078a122a-c7a6-4874-ab13-d2fa51e3b13f", + available_shop_ids=["1c0aaf68-44fc-4c64-9301-ac66af793350", "db8416cb-b09a-4ee9-b939-b2a80c2f8bd3", "9286fa3d-ca45-4dd2-8d44-e9ae63d341d6", "0f908f0a-5d8c-46ee-b0e1-b99c7c5ce5d9"], + is_shop_specified=True, + min_amount=2444, + usage_limit=3739, + code="OvVB8b8Y5", + is_public=True, + is_hidden=True, + is_disabled=True, + display_ends_at="2020-12-07T12:57:03.000000Z", + display_starts_at="2023-12-11T21:44:52.000000Z", + ends_at="2022-04-27T12:21:29.000000Z", + starts_at="2023-04-11T10:06:09.000000Z", + discount_upper_limit=8431, + description="afvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42Xb", + name="KSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt7JZTknlcSLOAfgHki7iEUUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOl" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_36(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=5124.0 + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_37(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=9503.0, + name="UDOeBSRiyqeameMaY0bg" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_38(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=8068.0, + description="8gTUkelv3hkGmk4iWQZAVafOlabiOcEnloh2DXft8ZR3ZIT5H8aSOl3MDXnG9yHqEAThwDuq1zewsMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDIn3iuFQr", + name="rgeXzyNXNrNkeWa9hWsLSo6RhlRrNdm" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_39(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=6748.0, + discount_upper_limit=4371, + description="yDW12s5SKsd06fYHa9pHdUJ2NkpD9XRln1g4q1AmzenaBAIYsPX5BEVEkSwN7Jl7UfMqNeIWxDQ5mYkDBp76iPlz0WyF7I2Snzg812cd0lMhCHFE2kwBp", + name="HriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5qnBpeG29hBWbNKIGuoyWD3BHeU5bcdtREmG3PoPoUnVURoRDP0303M0EUzCR0XC7UBINw" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_40(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=1861.0, + starts_at="2020-07-26T12:02:57.000000Z", + discount_upper_limit=1744, + description="7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCxlziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9q8fRCM", + name="2pzYekawpUouvYHKlj0GUL0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_41(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=4826.0, + ends_at="2026-03-18T21:23:00.000000Z", + starts_at="2025-01-13T15:33:05.000000Z", + discount_upper_limit=6958, + description="VzLKUg3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7mxn7kYGzSha", + name="zSiZH6DDfNqfsVRi3zxzsVzVJLxpF9uCjOUS" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_42(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=6290.0, + display_starts_at="2022-07-13T02:58:22.000000Z", + ends_at="2020-09-17T21:51:27.000000Z", + starts_at="2024-04-09T21:22:13.000000Z", + discount_upper_limit=5709, + description="9fWh27PiOpr3HMMXsb4Lh4b0Gko8iE0P3Cu0AOaTlKzyVFYYoK00acoGlEqYYGWZUMgU5LJ8n", + name="edbEkL6VCbZlYCZ" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_43(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=3163.0, + display_ends_at="2023-05-21T11:48:05.000000Z", + display_starts_at="2020-04-20T01:14:51.000000Z", + ends_at="2023-04-12T16:33:29.000000Z", + starts_at="2020-04-23T08:59:22.000000Z", + discount_upper_limit=6104, + description="vick1kbCzvMElblaTUskxDWTi4syFdijXYZ6Fkp0v2rObj5KP7CaX5R9O7hnOQMfDj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq2k3ETquM3SQujW", + name="DE153B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1zaeUGprRtPpZgZzOhvmvIjVKe7aM7QiN4Lu" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_44(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=4651.0, + is_disabled=False, + display_ends_at="2024-09-01T02:53:23.000000Z", + display_starts_at="2022-09-12T03:14:51.000000Z", + ends_at="2025-10-12T06:38:12.000000Z", + starts_at="2025-06-12T16:49:21.000000Z", + discount_upper_limit=3887, + description="B8ZF5mN9clYyKl8cUsYw8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSBniTvgiFcfFWfXoobW27D2zSsjxSJQCC2TKE3m70u0i2E7e3WCog3HknLhb4mGHjaX24jJAlJFQ82MhyQQoipgFNSux0jeobdQD1VXjUggH7qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8", + name="I0c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcsFhnnSlOPQSKVW980GqQVfPuvUPiEF" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_45(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=8790.0, + is_hidden=True, + is_disabled=False, + display_ends_at="2021-12-09T04:12:44.000000Z", + display_starts_at="2021-11-09T05:44:36.000000Z", + ends_at="2024-02-17T04:24:25.000000Z", + starts_at="2022-02-11T12:17:46.000000Z", + discount_upper_limit=1662, + description="PC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1Cipp2CPMRifbrHbdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w3aEMSDM7H6DKpMVCMs6A", + name="PF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClPPAh3ydu7juMaO7kqGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9Wm" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_46(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=6795.0, + is_public=False, + is_hidden=True, + is_disabled=False, + display_ends_at="2025-02-23T15:47:12.000000Z", + display_starts_at="2022-03-28T10:47:48.000000Z", + ends_at="2024-06-14T02:07:12.000000Z", + starts_at="2024-02-21T08:58:12.000000Z", + discount_upper_limit=360, + description="svYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOfsuO3LMtzPm5pmHiztzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQ", + name="WfV62UhTGJS1L9KLOsA2" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_47(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=1617.0, + code="Z23", + is_public=False, + is_hidden=False, + is_disabled=True, + display_ends_at="2022-05-15T15:21:44.000000Z", + display_starts_at="2023-12-07T09:47:05.000000Z", + ends_at="2024-12-02T15:43:53.000000Z", + starts_at="2023-01-31T06:20:40.000000Z", + discount_upper_limit=5993, + description="pOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD", + name="BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcINC0MaOVTzOYUS" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_48(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=4825.0, + usage_limit=7017, + code="FzadS1", + is_public=True, + is_hidden=True, + is_disabled=True, + display_ends_at="2023-12-02T17:14:51.000000Z", + display_starts_at="2024-04-28T10:36:43.000000Z", + ends_at="2020-07-07T04:32:00.000000Z", + starts_at="2022-01-12T18:59:31.000000Z", + discount_upper_limit=2779, + description="G4VhCAXdvLcusNkP92lEHAtBr5uMSg7mI2h9L5UgNjF9pGXPoR6V6EH9oG2", + name="E8mJwg74tJdyJ5Llab29gfUQ6hTQL30" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_49(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=647.0, + min_amount=5046, + usage_limit=8903, + code="ITMLHDmfb", + is_public=True, + is_hidden=False, + is_disabled=False, + display_ends_at="2024-02-08T22:14:14.000000Z", + display_starts_at="2021-10-06T08:39:17.000000Z", + ends_at="2021-04-08T22:36:51.000000Z", + starts_at="2025-09-15T13:50:21.000000Z", + discount_upper_limit=8214, + description="WooPsLAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aRw08aQ0rfHosccmXhG1yeE5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVU", + name="V93tsgTE0JEew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVUwFU1amkd1FBZBysFgH8Ti" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_50(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=7929.0, + is_shop_specified=True, + min_amount=833, + usage_limit=2949, + code="F", + is_public=True, + is_hidden=False, + is_disabled=True, + display_ends_at="2025-12-22T05:39:17.000000Z", + display_starts_at="2022-02-23T18:07:17.000000Z", + ends_at="2022-08-31T01:53:10.000000Z", + starts_at="2024-09-18T01:37:23.000000Z", + discount_upper_limit=6300, + description="bqyi68iyJ302sQl233vCftoqwC5tymvF1K23X2uYu46ypSW9PxtiaID1SUCfz9yEelMoF9a26c2RLHzQWOO42l0o0g8SXRzZ3pUKHHeXuuwg12Ygg3AsTOryINKyRmJ3gWCDcmsuvkMrJePtGFhv4aIw1aGtGR3fEQezBo8XnXONHGXDMcl8tuhVdB5KkP8PHv", + name="ZEmmcBKkGsr9sdED" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_51(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=6547.0, + available_shop_ids=["9ae9308b-e6eb-42e5-b97c-13377d91f3f0", "1ee139f2-af34-4564-85b2-738731a811ea", "f0d7538a-273b-449b-b0e1-4126a0a3b1a0"], + is_shop_specified=True, + min_amount=832, + usage_limit=2337, + code="3", + is_public=True, + is_hidden=True, + is_disabled=False, + display_ends_at="2021-05-17T20:48:38.000000Z", + display_starts_at="2022-07-16T23:17:16.000000Z", + ends_at="2021-03-20T15:58:19.000000Z", + starts_at="2025-04-24T16:06:56.000000Z", + discount_upper_limit=5229, + description="G9Y2ztoKUUUx5B1bSO8xEgnoe60dnWTCVmm3x115QsBZT6dCGgqZsePkl6iY0bdXM6Nza2rTctUJQmh0gNd3qkWY4lVW5zCUF3zWzIdrHm6OsiyHBxsWBtx4G7cLViMByCBNzcDCX5bbsPzVUGeD2BWp2XUNEsAtEjlivj0NhalsavWYZduuXynvh05rJdAnnKPkjJzRbGyuQYyb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qp", + name="LKYfd3JbJX5QcdKyJ1DmsToKu4w1tRUaP7awM" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_52(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=7864.0, + storage_id="2a17ab37-e020-493a-801c-295d8bf25591", + available_shop_ids=["488e1d4d-faf4-42b7-bc62-87d733f0db96", "f9db6179-905b-420a-96bc-cd9de1a49605", "45e65ff3-af21-48cf-b914-5ffa9b2944ff", "3298f2f1-98eb-4642-a8ab-7472e86e982a", "e8f00047-7061-433a-8dea-ca0e91734396", "a8ad2a62-8fb1-46a6-b3f5-e7e782ccb271", "379d8215-32ea-410e-9bc5-1c9c42d13ae0", "a98e98e5-4165-4710-ab95-4633110a39c4"], + is_shop_specified=False, + min_amount=2244, + usage_limit=7362, + code="KsRBbYL", + is_public=False, + is_hidden=False, + is_disabled=True, + display_ends_at="2023-08-19T23:31:22.000000Z", + display_starts_at="2022-06-29T07:44:24.000000Z", + ends_at="2025-09-20T16:02:02.000000Z", + starts_at="2020-11-18T01:31:33.000000Z", + discount_upper_limit=6793, + description="qGFPReFsmxaxT8Xwuc649dznjsqwxML0aHpiMuFL917lUTrE8EACTMWkW53gnqE0TT1", + name="OD00WYy85d5RKAlbrPQ0st0t7yJcv8GqBqgGEHaf" + )) + self.assertNotEqual(response.status_code, 400) + + def test_update_coupon_53(self): + response = client.send(pp.UpdateCoupon( + "09e11d8c-0a6a-46ab-85b9-8f115c03335e", + discount_percentage=1056.0, + num_recipients_cap=9581, + storage_id="14046631-796a-434e-90b9-77ebeb96d937", + available_shop_ids=["8eb025f5-f7f9-45e4-8d2e-c27dcbbe2843"], + is_shop_specified=True, + min_amount=1639, + usage_limit=6713, + code="A7an27", + is_public=False, + is_hidden=True, + is_disabled=True, + display_ends_at="2023-05-28T09:15:38.000000Z", + display_starts_at="2022-11-15T06:03:25.000000Z", + ends_at="2020-03-13T07:32:02.000000Z", + starts_at="2024-06-03T16:39:50.000000Z", + discount_upper_limit=7824, + description="xBqiE9YWo8xjmzBGJVwTTanAXyFjLag3gPPvlq0FFntKGY10p27NPGQTdAXKNGuLNgDO4Ma1ptA22IkyjkgPuZUMAq2NjJocNYKTrm2m1ssPqyT3XyCFCrR8uZnHFgU1ZOwuoeukDxIIOg9CcbCgtxt4qQAP06TDLYKBc2zPf6wToG8lTKcMPiFJX3LNKTom", + name="c8wnROYRP673oHx5N3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX05IlCZ5tUdSwXVRIVCnlZj6NtOw" + )) + self.assertNotEqual(response.status_code, 400) + + def test_get_seven_bank_atm_session_0(self): + response = client.send(pp.GetSevenBankAtmSession( + "2FI8Wr136" )) 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)