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..3cf91b9 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=1213, # ページ番号
+ per_page=2164 # 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="uOeDw3ETEoYbDEhr0AwKkiQOHCQCIIRDiJ5EWSps1CcPm4CujuDviyaRPbQTt1c2CSzS35R", # ウォレット名
+ external_id="xVGrM7sDhsRor5EZrBgBnWdBpXW3vXZAsI", # 外部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..2a4877c 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="AFGDPhpBgK@NmzE.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
+ 4833, # 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..8b1f6c7 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=2130, # ページ番号
+ per_page=9443, # 1ページの表示数
+ bill_id="gel1VX", # 支払いQRコードのID
+ private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID
+ organization_code="C-P9EQ2mT-9R82--RibKp4-85-", # 組織コード
+ description="test bill", # 取引説明文
+ created_from="2020-12-20T08:19:19.000000Z", # 作成日時(起点)
+ created_to="2025-11-01T23:42:06.000000Z", # 作成日時(終点)
+ shop_name="bill test shop1", # 店舗名
+ shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID
+ lower_limit_amount=1675, # 金額の範囲によるフィルタ(下限)
+ upper_limit_amount=2166, # 金額の範囲によるフィルタ(上限)
+ 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=5096.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=9924.0, # 支払い額
+ description="test bill", # 説明文
+ is_disabled=False # 無効化されているかどうか
+))
```
### 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,180 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|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..74b4774 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(
+ "3OdV3od", # name: 一括取引タスク名
+ "lFFoKvu", # content: 取引する情報のCSV
+ "4lobeulXI7c3F9nyrjjRiAP0nDGe4yWdLtrR", # request_id: リクエストID
+ description="H47hbbDvB2dkQWYC4RWqJwsq2yT7AWpCDkyLBkYzAxemZaKow", # 一括取引の説明
+ private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID
+ callback_url="https://uUfekyaJ.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..97bdbb8 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=False, # 現在適用可能なキャンペーンかどうか
+ available_from="2021-05-27T12:48:05.000000Z", # 指定された日時以降に適用可能期間が含まれているか
+ available_to="2022-10-19T04:15:49.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,28 +142,22 @@ const response: Response = await client.send(new ListCampaig
## CreateCampaign: ポイント付与キャンペーンを作る
ポイント付与キャンペーンを作成します。
-
-```typescript
-const response: Response = await client.send(new CreateCampaign({
- name: "FWMml5EKRiDsWg9ZcujQMFmb4vZ2", // キャンペーン名
- private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
- starts_at: "2022-01-02T00:20:43.000000Z", // キャンペーン開始日時
- ends_at: "2022-02-12T08:10:50.000000Z", // キャンペーン終了日時
- priority: 3366, // キャンペーンの適用優先度
- event: "payment", // イベント種別
- bear_point_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント負担先店舗ID
- description: "HzNm8wdK6sB9HsuClaKx3AfzVa9lboQs", // キャンペーンの説明文
- status: "enabled", // キャンペーン作成時の状態
- point_expires_at: "2024-03-11T03:19:42.000000Z", // ポイント有効期限(絶対日時指定)
- point_expires_in_days: 6554, // ポイント有効期限(相対日数指定)
- is_exclusive: false, // キャンペーンの重複設定
- subject: "money", // ポイント付与の対象金額の種別
- amount_based_point_rules: [{
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
-}, {
+```PYTHON
+response = client.send(pp.CreateCampaign(
+ "hxZpopNYyv6dLAyty2EMgPVlahlWYdbEevpLkzdUFCwG4QGOnpUXmwhMFkO9ufFPOzF9Lvv7J", # name: キャンペーン名
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
+ "2022-05-31T18:39:06.000000Z", # starts_at: キャンペーン開始日時
+ "2024-04-11T18:34:49.000000Z", # ends_at: キャンペーン終了日時
+ 7501, # priority: キャンペーンの適用優先度
+ "topup", # event: イベント種別
+ bear_point_shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント負担先店舗ID
+ description="NGlwPY7w3AePumXzLvyF75pQlwzsKLA3j0RsOTGgnfI7tlICoQDpnLAiZiYSVIBpBUCCSgk4gnk7sP6E17lkMgQrA88yuG2X4KRlpHewo2CgFQkdXPF4V9XHbL6zY6vqwgcI7YPEPHgGnEdzhGAMty3evJwcetItJxO93cN0lVNG0lwTGLR8ci2cIIE66", # キャンペーンの説明文
+ status="disabled", # キャンペーン作成時の状態
+ point_expires_at="2021-06-04T23:44:38.000000Z", # ポイント有効期限(絶対日時指定)
+ point_expires_in_days=5481, # ポイント有効期限(相対日数指定)
+ is_exclusive=False, # キャンペーンの重複設定
+ subject="money", # ポイント付与の対象金額の種別
+ amount_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
"subject_more_than_or_equal": 1000,
@@ -149,71 +167,76 @@ const response: Response = await client.send(new CreateCampaign({
"point_amount_unit": "percent",
"subject_more_than_or_equal": 1000,
"subject_less_than": 5000
-}], // 取引金額ベースのポイント付与ルール
- product_based_point_rules: [{
+}], # 取引金額ベースのポイント付与ルール
+ product_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
"product_code": "4912345678904",
- "is_multiply_by_count": true,
+ "is_multiply_by_count": True,
"required_count": 2
}, {
"point_amount": 5,
"point_amount_unit": "percent",
"product_code": "4912345678904",
- "is_multiply_by_count": true,
+ "is_multiply_by_count": True,
"required_count": 2
}, {
"point_amount": 5,
"point_amount_unit": "percent",
"product_code": "4912345678904",
- "is_multiply_by_count": true,
+ "is_multiply_by_count": True,
"required_count": 2
-}], // 商品情報ベースのポイント付与ルール
- blacklisted_product_rules: [{
+}], # 商品情報ベースのポイント付与ルール
+ blacklisted_product_rules=[{
"product_code": "4912345678904",
"classification_code": "c123"
-}], // 商品情報ベースのキャンペーンで除外対象にする商品リスト
- applicable_days_of_week: [4, 0, 1], // キャンペーンを適用する曜日 (複数指定)
- applicable_time_ranges: [{
- "from": "12:00",
- "to": "23:59"
}, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+}, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+}], # 商品情報ベースのキャンペーンで除外対象にする商品リスト
+ applicable_days_of_week=[5, 6, 2], # キャンペーンを適用する曜日 (複数指定)
+ applicable_time_ranges=[{
"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", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)
+ minimum_number_of_products=3085, # キャンペーンを適用する1会計内の商品個数の下限
+ minimum_number_of_amount=1812, # キャンペーンを適用する1会計内の商品総額の下限
+ minimum_number_for_combination_purchase=1191, # 複数種類の商品を同時購入するときの商品種別数の下限
+ exist_in_each_product_groups=True, # 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ
+ max_point_amount=2686, # キャンペーンによって付与されるポイントの上限
+ max_total_point_amount=6089, # キャンペーンによって付与されるの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=1916017813 # キャンペーン予算上限
+))
```
### Parameters
-**`name`**
-
-
+#### `name`
キャンペーン名です(必須項目)。
ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -221,11 +244,14 @@ const response: Response = await client.send(new CreateCampaign({
}
```
-**`private_money_id`**
-
+
+#### `private_money_id`
キャンペーン対象のマネーのIDです(必須項目)。
+
+スキーマ
+
```json
{
"type": "string",
@@ -233,13 +259,16 @@ const response: Response = await client.send(new CreateCampaign({
}
```
-**`starts_at`**
-
+
+#### `starts_at`
キャンペーン開始日時です(必須項目)。
キャンペーン期間中のみポイントが付与されます。
開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -247,13 +276,16 @@ const response: Response = await client.send(new CreateCampaign({
}
```
-**`ends_at`**
-
+
+#### `ends_at`
キャンペーン終了日時です(必須項目)。
キャンペーン期間中のみポイントが付与されます。
開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -261,23 +293,26 @@ const response: Response = await client.send(new CreateCampaign({
}
```
-**`priority`**
-
+
+#### `priority`
キャンペーンの適用優先度です。
優先度が大きいものから順に適用判定されていきます。
キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。
+
+スキーマ
+
```json
{
"type": "integer"
}
```
-**`event`**
-
+
+#### `event`
キャンペーンのトリガーとなるイベントの種類を指定します(必須項目)。
以下のいずれかを指定できます。
@@ -289,6 +324,9 @@ const response: Response = await client.send(new CreateCampaign({
3. external-transaction
ポケペイ外の取引(現金決済など)
+
+スキーマ
+
```json
{
"type": "string",
@@ -300,12 +338,15 @@ const response: Response = await client.send(new CreateCampaign({
}
```
-**`bear_point_shop_id`**
-
+
+#### `bear_point_shop_id`
ポイントを負担する店舗のIDです。デフォルトではマネー発行体の本店が設定されます。
ポイント負担先店舗は後から更新することはできません。
+
+スキーマ
+
```json
{
"type": "string",
@@ -313,11 +354,14 @@ const response: Response = await client.send(new CreateCampaign({
}
```
-**`description`**
-
+
+#### `description`
キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -325,9 +369,9 @@ const response: Response = await client.send(new CreateCampaign({
}
```
-**`status`**
-
+
+#### `status`
キャンペーン作成時の状態を指定します。デフォルトではenabledです。
以下のいずれかを指定できます。
@@ -337,6 +381,9 @@ const response: Response = await client.send(new CreateCampaign({
2. disabled
無効
+
+スキーマ
+
```json
{
"type": "string",
@@ -347,12 +394,15 @@ const response: Response = await client.send(new CreateCampaign({
}
```
-**`point_expires_at`**
-
+
+#### `point_expires_at`
キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。
省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -360,12 +410,15 @@ const response: Response = await client.send(new CreateCampaign({
}
```
-**`point_expires_in_days`**
-
+
+#### `point_expires_in_days`
キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。
省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -373,23 +426,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 +458,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った
all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む)
注意: event を topup にしたときはポイントの付与に対しても適用されます
+
+スキーマ
+
```json
{
"type": "string",
@@ -412,9 +471,9 @@ all を指定すると決済額全体を対象にします (「ポイント」
}
```
-**`amount_based_point_rules`**
-
+
+#### `amount_based_point_rules`
金額をベースとしてポイント付与を行うルールを指定します。
amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。
各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。
@@ -438,6 +497,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し
]
```
+
+スキーマ
+
```json
{
"type": "array",
@@ -447,9 +509,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 +558,9 @@ event が payment か external-transaction の時のみ有効です。
]
```
+
+スキーマ
+
```json
{
"type": "array",
@@ -505,13 +570,16 @@ event が payment か external-transaction の時のみ有効です。
}
```
-**`blacklisted_product_rules`**
-
+
+#### `blacklisted_product_rules`
商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。
除外対象の商品コード、または分類コードのパターンの配列として指定します。
取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。
+
+スキーマ
+
```json
{
"type": "array",
@@ -521,13 +589,16 @@ event が payment か external-transaction の時のみ有効です。
}
```
-**`applicable_days_of_week`**
-
+
+#### `applicable_days_of_week`
キャンペーンを適用する曜日を指定します (複数指定)。
曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。
指定しなかった場合は全日を対象にします (曜日による適用条件なし)
+
+スキーマ
+
```json
{
"type": "array",
@@ -539,13 +610,16 @@ event が payment か external-transaction の時のみ有効です。
}
```
-**`applicable_time_ranges`**
-
+
+#### `applicable_time_ranges`
キャンペーンを適用する時間帯を指定します (複数指定可)。
時間帯はfromとtoからなるオブジェクトで指定します。
fromとtoは両方必要です。
+
+スキーマ
+
```json
{
"type": "array",
@@ -555,12 +629,35 @@ fromとtoは両方必要です。
}
```
-**`applicable_shop_ids`**
-
+
+#### `applicable_shop_ids`
キャンペーンを適用する店舗IDを指定します (複数指定)。
指定しなかった場合は全店舗が対象になります。
+
+スキーマ
+
+```json
+{
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid"
+ }
+}
+```
+
+
+
+#### `blacklisted_shop_ids`
+キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。
+このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。
+blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。
+
+
+スキーマ
+
```json
{
"type": "array",
@@ -571,11 +668,14 @@ fromとtoは両方必要です。
}
```
-**`minimum_number_of_products`**
-
+
+#### `minimum_number_of_products`
このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -583,11 +683,14 @@ fromとtoは両方必要です。
}
```
-**`minimum_number_of_amount`**
-
+
+#### `minimum_number_of_amount`
このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -595,9 +698,9 @@ fromとtoは両方必要です。
}
```
-**`minimum_number_for_combination_purchase`**
-
+
+#### `minimum_number_for_combination_purchase`
複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。デフォルトでは未指定で、指定する場合は1以上の整数を指定します。
このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。
@@ -670,6 +773,9 @@ fromとtoは両方必要です。
}
```
+
+スキーマ
+
```json
{
"type": "integer",
@@ -677,9 +783,9 @@ fromとtoは両方必要です。
}
```
-**`exist_in_each_product_groups`**
-
+
+#### `exist_in_each_product_groups`
複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。
このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。
@@ -760,19 +866,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 +892,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
-**`max_total_point_amount`**
-
+
+#### `max_total_point_amount`
キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。
このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。
累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -795,9 +910,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
-**`dest_private_money_id`**
-
+
+#### `dest_private_money_id`
キャンペーンを駆動するイベントのマネーとは「別のマネー」に対してポイントを付けたいときに、そのマネーIDを指定します。
ポイント付与先のマネーはキャンペーンを駆動するイベントのマネーと同一発行体が発行しているものに限ります。その他のマネーIDが指定された場合は private_money_not_found (422) が返ります。
@@ -808,6 +923,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
別マネーに対するポイント付与は別のtransactionとなります。 RefundTransaction で元のイベントをキャンセルしたときはポイント付与のtransactionもキャンセルされ、逆にポイント付与のtransactionをキャンセルしたときは連動して元のイベントがキャンセルされます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -815,9 +933,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
-**`applicable_account_metadata`**
-
+
+#### `applicable_account_metadata`
ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。
ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。
@@ -844,15 +962,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+
+スキーマ
+
```json
{
"type": "object"
}
```
-**`applicable_transaction_metadata`**
-
+
+#### `applicable_transaction_metadata`
取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。
取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。
@@ -879,20 +1000,26 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+
+スキーマ
+
```json
{
"type": "object"
}
```
-**`budget_caps_amount`**
-
+
+#### `budget_caps_amount`
キャンペーンの予算上限を指定します。デフォルトは未指定です。
このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。
一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -901,6 +1028,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+
+
成功したときは
@@ -913,11 +1042,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 +1059,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 +1083,8 @@ const response: Response = await client.send(new GetCampaign({
}
```
+
+
成功したときは
@@ -968,94 +1100,79 @@ 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
-}, {
- "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="vFGkJr1uo4NLstnS7EAbDgQaYkUrDsQyk3kwOisNW9XsMHBVPsrsYBnLGXRYzu4noxPXNWpdUvBBp2JsuVIINCRpxja7me48LNXqpqJtjZwJILsuUBm8J0tu2v6zDKp9iO7Ari3UHmo6XPE5Oqy1DljVh9nsqgzongKg5SFSpcaiWqMVEyXiabD2fPkrS1NvYbmwucdTPjBOMyHVeFGY5vB7gjE0J3rzoZQgeuXW4rw3Ob3VU", # キャンペーン名
+ starts_at="2020-06-10T16:30:09.000000Z", # キャンペーン開始日時
+ ends_at="2024-09-08T03:51:51.000000Z", # キャンペーン終了日時
+ priority=7392, # キャンペーンの適用優先度
+ event="external-transaction", # イベント種別
+ description="zDljJ6klDtciJUcw1wir4yYsQVBNqeXloDbzzGADkOfMAKTboQcaiYXr4rnNnjCoeQHMuXiGNUysmU86lvAOTbcLzXO1sbMRuBNUlL6K0ReLv75kg6qcs3cEpI1m3wABqtL3bdaVTKdkTjUxGpAh3awQs", # キャンペーンの説明文
+ status="enabled", # キャンペーン作成時の状態
+ point_expires_at="2020-05-22T00:56:03.000000Z", # ポイント有効期限(絶対日時指定)
+ point_expires_in_days=8167, # ポイント有効期限(相対日数指定)
+ is_exclusive=False, # キャンペーンの重複設定
+ subject="money", # ポイント付与の対象金額の種別
+ amount_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
"subject_more_than_or_equal": 1000,
"subject_less_than": 5000
-}], // 取引金額ベースのポイント付与ルール
- product_based_point_rules: [{
+}], # 取引金額ベースのポイント付与ルール
+ 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=[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"], // キャンペーン適用対象となる店舗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"], # キャンペーン適用対象となる店舗IDのリスト
+ blacklisted_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)
+ minimum_number_of_products=5653, # キャンペーンを適用する1会計内の商品個数の下限
+ minimum_number_of_amount=5978, # キャンペーンを適用する1会計内の商品総額の下限
+ minimum_number_for_combination_purchase=8470, # 複数種類の商品を同時購入するときの商品種別数の下限
+ exist_in_each_product_groups=True, # 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ
+ max_point_amount=7507, # キャンペーンによって付与されるポイントの上限
+ max_total_point_amount=1370, # キャンペーンによって付与されるの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=323964643 # キャンペーン予算上限
+))
```
### Parameters
-**`campaign_id`**
-
-
+#### `campaign_id`
キャンペーンIDです。
指定したIDのキャンペーンを更新します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1063,13 +1180,16 @@ const response: Response = await client.send(new UpdateCampaign({
}
```
-**`name`**
-
+
+#### `name`
キャンペーン名です。
ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1077,13 +1197,16 @@ const response: Response = await client.send(new UpdateCampaign({
}
```
-**`starts_at`**
-
+
+#### `starts_at`
キャンペーン開始日時です。
キャンペーン期間中のみポイントが付与されます。
開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1091,13 +1214,16 @@ const response: Response = await client.send(new UpdateCampaign({
}
```
-**`ends_at`**
-
+
+#### `ends_at`
キャンペーン終了日時です。
キャンペーン期間中のみポイントが付与されます。
開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1105,23 +1231,26 @@ const response: Response = await client.send(new UpdateCampaign({
}
```
-**`priority`**
-
+
+#### `priority`
キャンペーンの適用優先度です。
優先度が大きいものから順に適用判定されていきます。
キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。
+
+スキーマ
+
```json
{
"type": "integer"
}
```
-**`event`**
-
+
+#### `event`
キャンペーンのトリガーとなるイベントの種類を指定します。
以下のいずれかを指定できます。
@@ -1133,6 +1262,9 @@ const response: Response = await client.send(new UpdateCampaign({
3. external-transaction
ポケペイ外の取引(現金決済など)
+
+スキーマ
+
```json
{
"type": "string",
@@ -1144,11 +1276,14 @@ const response: Response = await client.send(new UpdateCampaign({
}
```
-**`description`**
-
+
+#### `description`
キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1156,9 +1291,9 @@ const response: Response = await client.send(new UpdateCampaign({
}
```
-**`status`**
-
+
+#### `status`
キャンペーン作成時の状態を指定します。デフォルトではenabledです。
以下のいずれかを指定できます。
@@ -1168,6 +1303,9 @@ const response: Response = await client.send(new UpdateCampaign({
2. disabled
無効
+
+スキーマ
+
```json
{
"type": "string",
@@ -1178,12 +1316,15 @@ const response: Response = await client.send(new UpdateCampaign({
}
```
-**`point_expires_at`**
-
+
+#### `point_expires_at`
キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。
省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1191,12 +1332,15 @@ const response: Response = await client.send(new UpdateCampaign({
}
```
-**`point_expires_in_days`**
-
+
+#### `point_expires_in_days`
キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。
省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1204,23 +1348,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 +1380,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った
all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む)
注意: event を topup にしたときはポイントの付与に対しても適用されます
+
+スキーマ
+
```json
{
"type": "string",
@@ -1243,9 +1393,9 @@ all を指定すると決済額全体を対象にします (「ポイント」
}
```
-**`amount_based_point_rules`**
-
+
+#### `amount_based_point_rules`
金額をベースとしてポイント付与を行うルールを指定します。
amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。
各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。
@@ -1269,6 +1419,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し
]
```
+
+スキーマ
+
```json
{
"type": "array",
@@ -1278,9 +1431,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 +1480,9 @@ event が payment か external-transaction の時のみ有効です。
]
```
+
+スキーマ
+
```json
{
"type": "array",
@@ -1336,13 +1492,16 @@ event が payment か external-transaction の時のみ有効です。
}
```
-**`blacklisted_product_rules`**
-
+
+#### `blacklisted_product_rules`
商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。
除外対象の商品コード、または分類コードのパターンの配列として指定します。
取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。
+
+スキーマ
+
```json
{
"type": "array",
@@ -1352,13 +1511,16 @@ event が payment か external-transaction の時のみ有効です。
}
```
-**`applicable_days_of_week`**
-
+
+#### `applicable_days_of_week`
キャンペーンを適用する曜日を指定します (複数指定)。
曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。
指定しなかった場合は全日を対象にします (曜日による適用条件なし)
+
+スキーマ
+
```json
{
"type": "array",
@@ -1370,13 +1532,16 @@ event が payment か external-transaction の時のみ有効です。
}
```
-**`applicable_time_ranges`**
-
+
+#### `applicable_time_ranges`
キャンペーンを適用する時間帯を指定します (複数指定可)。
時間帯はfromとtoからなるオブジェクトで指定します。
fromとtoは両方必要です。
+
+スキーマ
+
```json
{
"type": "array",
@@ -1386,12 +1551,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 +1590,14 @@ fromとtoは両方必要です。
}
```
-**`minimum_number_of_products`**
-
+
+#### `minimum_number_of_products`
このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1414,11 +1605,14 @@ fromとtoは両方必要です。
}
```
-**`minimum_number_of_amount`**
-
+
+#### `minimum_number_of_amount`
このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1426,9 +1620,9 @@ fromとtoは両方必要です。
}
```
-**`minimum_number_for_combination_purchase`**
-
+
+#### `minimum_number_for_combination_purchase`
複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。
このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。
@@ -1501,6 +1695,9 @@ fromとtoは両方必要です。
}
```
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1508,9 +1705,9 @@ fromとtoは両方必要です。
}
```
-**`exist_in_each_product_groups`**
-
+
+#### `exist_in_each_product_groups`
複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。
このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。
@@ -1591,19 +1788,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 +1814,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
-**`max_total_point_amount`**
-
+
+#### `max_total_point_amount`
キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。
このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。
累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1626,9 +1832,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
-**`applicable_account_metadata`**
-
+
+#### `applicable_account_metadata`
ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。
ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。
@@ -1655,15 +1861,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+
+スキーマ
+
```json
{
"type": "object"
}
```
-**`applicable_transaction_metadata`**
-
+
+#### `applicable_transaction_metadata`
取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。
取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。
@@ -1690,15 +1899,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+
+スキーマ
+
```json
{
"type": "object"
}
```
-**`budget_caps_amount`**
-
+
+#### `budget_caps_amount`
キャンペーンの予算上限を指定します。
キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。
@@ -1706,6 +1918,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。
キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1714,6 +1929,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+
+
成功したときは
diff --git a/docs/cashtray.md b/docs/cashtray.md
index d81b5ce..9c58d8d 100644
--- a/docs/cashtray.md
+++ b/docs/cashtray.md
@@ -1,9 +1,170 @@
# Cashtray
Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。
+店舗ユーザはCashtrayの状態を監視することができ、取引の成否やエラー事由を知ることができます。
Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。
Cashtrayはワンタイムで、一度読み取りに成功するか、取引エラーになると失効します。
また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。
+
+## CreateTransactionWithCashtray: CashtrayQRコードを読み取ることで取引する
+エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。
+
+通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。
+もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがCashtrayQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。
+
+```PYTHON
+response = client.send(pp.CreateTransactionWithCashtray(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # cashtray_id: Cashtray用QRコードのID
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーのID
+ strategy="money-only", # 支払い時の残高消費方式
+ request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID
+))
+```
+
+
+
+### Parameters
+#### `cashtray_id`
+Cashtray用QRコードのIDです。
+
+QRコード生成時に送金元店舗のウォレット情報や、金額などが登録されています。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `customer_id`
+エンドユーザーIDです。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `strategy`
+支払い時に残高がどのように消費されるかを指定します。
+チャージの場合は無効です。
+デフォルトでは point-preferred (ポイント優先)が採用されます。
+
+- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作)
+- money-only: マネー残高のみから消費され、ポイント残高は使われません
+
+マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "enum": [
+ "point-preferred",
+ "money-only"
+ ]
+}
+```
+
+
+
+#### `request_id`
+取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
+
+取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。
+指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
+
+リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。
+もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
+既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+
+
+成功したときは
+[TransactionDetail](./responses.md#transaction-detail)
+を返します
+
+### Error Responses
+|status|type|ja|en|
+|---|---|---|---|
+|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
+|422|account_not_found|アカウントが見つかりません|The account is not found|
+|422|cashtray_not_found|決済QRコードが見つかりません|Cashtray is not found|
+|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.|
+|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|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 +175,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
+ 3785.0, # amount: 金額
+ description="たい焼き(小倉)", # 取引履歴に表示する説明文
+ expires_in=3801 # 失効時間(秒)
+))
```
### Parameters
-**`private_money_id`**
-
-
+#### `private_money_id`
取引対象のマネーのIDです(必須項目)。
+
+スキーマ
+
```json
{
"type": "string",
@@ -40,11 +201,14 @@ const response: Response = await client.send(new CreateCashtray({
}
```
-**`shop_id`**
-
+
+#### `shop_id`
店舗のユーザーIDです(必須項目)。
+
+スキーマ
+
```json
{
"type": "string",
@@ -52,24 +216,30 @@ const response: Response = await client.send(new CreateCashtray({
}
```
-**`amount`**
-
+
+#### `amount`
マネー額です(必須項目)。
正の値を与えるとチャージになり、負の値を与えると支払いとなります。
+
+スキーマ
+
```json
{
"type": "number"
}
```
-**`description`**
-
+
+#### `description`
Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。
アプリや管理画面などの取引履歴に表示されます。デフォルトでは空文字になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -77,11 +247,14 @@ Cashtrayを読み取ったときに作られる取引の説明文です(最大20
}
```
-**`expires_in`**
-
+
+#### `expires_in`
Cashtrayが失効するまでの時間を秒単位で指定します(任意項目、デフォルト値は1800秒(30分))。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -89,6 +262,8 @@ Cashtrayが失効するまでの時間を秒単位で指定します(任意項
}
```
+
+
成功したときは
@@ -114,20 +289,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 +311,8 @@ const response: Response = await client.send(new CancelCashtray({
}
```
+
+
成功したときは
@@ -207,20 +385,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 +407,8 @@ const response: Response = await client.send(new GetCashtray
}
```
+
+
成功したときは
@@ -243,23 +424,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=8918.0, # 金額
+ description="たい焼き(小倉)", # 取引履歴に表示する説明文
+ expires_in=9698 # 失効時間(秒)
+))
```
### Parameters
-**`cashtray_id`**
-
-
+#### `cashtray_id`
更新対象のCashtrayのIDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -267,24 +449,30 @@ const response: Response = await client.send(new UpdateCashtray({
}
```
-**`amount`**
-
+
+#### `amount`
マネー額です(任意項目)。
正の値を与えるとチャージになり、負の値を与えると支払いとなります。
+
+スキーマ
+
```json
{
"type": "number"
}
```
-**`description`**
-
+
+#### `description`
Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。
アプリや管理画面などの取引履歴に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -292,11 +480,14 @@ Cashtrayを読み取ったときに作られる取引の説明文です(最大20
}
```
-**`expires_in`**
-
+
+#### `expires_in`
Cashtrayが失効するまでの時間を秒で指定します(任意項目、デフォルト値は1800秒(30分))。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -304,6 +495,8 @@ Cashtrayが失効するまでの時間を秒で指定します(任意項目、
}
```
+
+
成功したときは
diff --git a/docs/check.md b/docs/check.md
index 408def1..2ea5019 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=2407, # ページ番号
+ per_page=50, # 1ページの表示数
+ private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID
+ organization_code="stplBJ13qPcXVXQ9", # 組織コード
+ expires_from="2022-12-17T15:44:05.000000Z", # 有効期限の期間によるフィルター(開始時点)
+ expires_to="2021-11-06T14:10:02.000000Z", # 有効期限の期間によるフィルター(終了時点)
+ created_from="2021-05-11T01:14:38.000000Z", # 作成日時の期間によるフィルター(開始時点)
+ created_to="2020-06-09T07:56:39.000000Z", # 作成日時の期間によるフィルター(終了時点)
+ issuer_shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 発行店舗ID
+ description="Oqef", # チャージ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=195.0, # 付与マネー額
+ point_amount=9240.0, # 付与ポイント額
+ description="test check", # 説明文(アプリ上で取引の説明文として表示される)
+ is_onetime=True, # ワンタイムかどうかのフラグ
+ usage_limit=6058, # ワンタイムでない場合の最大読み取り回数
+ expires_at="2023-06-02T10:33:23.000000Z", # チャージQRコード自体の失効日時
+ point_expires_at="2020-03-08T03:23:38.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=2309.0, # 付与マネー額
+ point_amount=9917.0, # 付与ポイント額
+ description="test check", # チャージQRコードの説明文
+ is_onetime=True, # ワンタイムかどうかのフラグ
+ usage_limit=767, # ワンタイムでない場合の最大読み取り回数
+ expires_at="2024-10-12T07:49:47.000000Z", # チャージQRコード自体の失効日時
+ point_expires_at="2023-12-14T15:55:13.000000Z", # チャージQRコードによって付与されるポイント残高の有効期限
+ point_expires_in_days=60, # チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)
+ bear_point_account="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント額を負担する店舗のウォレットID
+ is_disabled=False # 無効化されているかどうかのフラグ
+))
```
### Parameters
-**`check_id`**
-
-
+#### `check_id`
更新対象のチャージQRコードのIDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -472,12 +526,14 @@ const response: Response = await client.send(new UpdateCheck({
}
```
-**`money_amount`**
-
+
+#### `money_amount`
チャージQRコードによって付与されるマネー額です。
`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。
+
+スキーマ
```json
{
@@ -487,12 +543,14 @@ const response: Response = await client.send(new UpdateCheck({
}
```
-**`point_amount`**
-
+
+#### `point_amount`
チャージQRコードによって付与されるポイント額です。
`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。
+
+スキーマ
```json
{
@@ -502,12 +560,14 @@ const response: Response = await client.send(new UpdateCheck({
}
```
-**`description`**
-
+
+#### `description`
チャージQRコードの説明文です。
チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。
+
+スキーマ
```json
{
@@ -516,13 +576,15 @@ const response: Response = await client.send(new UpdateCheck({
}
```
-**`is_onetime`**
-
+
+#### `is_onetime`
チャージQRコードが一度の読み取りで失効するときに`true`にします。
`false`の場合、複数ユーザによって読み取り可能なQRコードになります。
ただし、その場合も1ユーザにつき1回のみしか読み取れません。
+
+スキーマ
```json
{
@@ -530,13 +592,15 @@ const response: Response = await client.send(new UpdateCheck({
}
```
-**`usage_limit`**
-
+
+#### `usage_limit`
複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。
NULLに設定すると無制限に読み取り可能なチャージQRコードになります。
ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。
+
+スキーマ
```json
{
@@ -544,13 +608,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`expires_at`**
-
+
+#### `expires_at`
チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。
チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。
+
+スキーマ
```json
{
@@ -559,13 +625,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`point_expires_at`**
-
+
+#### `point_expires_at`
チャージQRコードによって付与されるポイント残高の有効起源を指定します。
チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。
+
+スキーマ
```json
{
@@ -574,14 +642,16 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`point_expires_in_days`**
-
+
+#### `point_expires_in_days`
チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。
1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。
`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。
`point_expires_at`と`point_expires_in_days`が両方NULLに設定されている場合は、マネーに設定されている残高の有効期限と同じになります。
+
+スキーマ
```json
{
@@ -590,11 +660,13 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`bear_point_account`**
-
+
+#### `bear_point_account`
ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。
+
+スキーマ
```json
{
@@ -603,12 +675,14 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`is_disabled`**
-
+
+#### `is_disabled`
チャージQRコードを無効化するときに`true`にします。
`false`の場合は無効化されているチャージQRコードを再有効化します。
+
+スキーマ
```json
{
@@ -616,6 +690,8 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
+
+
成功したときは
@@ -633,25 +709,25 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
エンドユーザーから受け取ったチャージ用QRコードのIDをエンドユーザーIDと共に渡すことでチャージ取引が作られます。
-
-```typescript
-const response: Response = await client.send(new CreateTopupTransactionWithCheck({
- check_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // チャージ用QRコードのID
- customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーのID
- request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID
-}));
+```PYTHON
+response = client.send(pp.CreateTopupTransactionWithCheck(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # check_id: チャージ用QRコードのID
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーのID
+ request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID
+))
```
### Parameters
-**`check_id`**
-
-
+#### `check_id`
チャージ用QRコードのIDです。
QRコード生成時に送金元店舗のウォレット情報や、送金額などが登録されています。
+
+スキーマ
+
```json
{
"type": "string",
@@ -659,13 +735,16 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な
}
```
-**`customer_id`**
-
+
+#### `customer_id`
エンドユーザーIDです。
送金先のエンドユーザーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -673,14 +752,18 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な
}
```
-**`request_id`**
-
+
+#### `request_id`
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
+既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。
+
+
+スキーマ
```json
{
@@ -689,6 +772,8 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な
}
```
+
+
成功したときは
@@ -698,13 +783,15 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|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 +799,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 +816,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 +824,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..816818a 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="lRg4qB", # クーポンID
+ coupon_name="0GRM", # クーポン名
+ issued_shop_name="kbzDn742", # 発行店舗名
+ available_shop_name="8m6fDAk", # 利用可能店舗名
+ available_from="2023-06-18T01:37:55.000000Z", # 利用可能期間 (開始日時)
+ available_to="2022-09-24T06:38:54.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",
+ "XCcjSnMwkyUVD7CNl",
+ "2020-08-09T20:34:27.000000Z",
+ "2024-02-04T15:25:38.000000Z",
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # issued_shop_id: 発行元の店舗ID
+ description="G8bUcu2404OwW2YlKo3D8R7F9uqtTYDUe0c6WMBb0vMyrrNo2CtAij6bFWlBc9nMouBhD3xaVyDbF9dQAdVbIjdKodnIqsg2hwfCC3ynrJLnPSb5d8avvWNGGZpHcQub7jyKGPEze4eDg0kaj205Q9Vfs",
+ discount_amount=3469,
+ discount_percentage=7196.0,
+ discount_upper_limit=668,
+ display_starts_at="2025-08-11T04:34:35.000000Z", # クーポンの掲載期間(開始日時)
+ display_ends_at="2023-01-04T09:03:52.000000Z", # クーポンの掲載期間(終了日時)
+ is_disabled=False, # 無効化フラグ
+ is_hidden=True, # クーポン一覧に掲載されるかどうか
+ is_public=True, # アプリ配信なしで受け取れるかどうか
+ code="dWlEYjRq", # クーポン受け取りコード
+ usage_limit=2909, # ユーザごとの利用可能回数(NULLの場合は無制限)
+ min_amount=5761, # クーポン適用可能な最小取引額
+ is_shop_specified=True, # 特定店舗限定のクーポンかどうか
+ available_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 利用可能店舗リスト
+ storage_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ストレージID
+ num_recipients_cap=8931 # クーポンを受け取ることができるユーザ数上限
+))
```
`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="8BVVabHLEG4agkq2G8IRGQBS0nc",
+ description="LLndRaY2NqmWOdlkOhTjC67yWAbgIrPt858HfVRa8DX5UPvkC2RO0Ka4lYXy6v8yeYaDtl3yxclWSiWAV8VoZ5q4f3l3OfQm9YtxuJKrD",
+ discount_amount=6681,
+ discount_percentage=3462.0,
+ discount_upper_limit=4621,
+ starts_at="2020-09-13T23:41:13.000000Z",
+ ends_at="2025-04-28T21:03:55.000000Z",
+ display_starts_at="2021-05-17T04:04:54.000000Z", # クーポンの掲載期間(開始日時)
+ display_ends_at="2025-12-15T14:59:27.000000Z", # クーポンの掲載期間(終了日時)
+ is_disabled=False, # 無効化フラグ
+ is_hidden=False, # クーポン一覧に掲載されるかどうか
+ is_public=True, # アプリ配信なしで受け取れるかどうか
+ code="AhF9Fs", # クーポン受け取りコード
+ usage_limit=6340, # ユーザごとの利用可能回数(NULLの場合は無制限)
+ min_amount=831, # クーポン適用可能な最小取引額
+ is_shop_specified=True, # 特定店舗限定のクーポンかどうか
+ available_shop_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 利用可能店舗リスト
+ storage_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ストレージID
+ num_recipients_cap=7178 # クーポンを受け取ることができるユーザ数上限
+))
```
@@ -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..406a9da
--- /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",
+ "2022-08-30T00:52:23.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
+ 6980.0, # amount: 取引金額
+ shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID
+ description="fb1wlkuiN7kKWKFoxKeA9tuL5LH4EHPGJy8", # 取引説明
+ 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..041ed3b 100644
--- a/docs/customer.md
+++ b/docs/customer.md
@@ -1,26 +1,33 @@
# Customer
+エンドユーザー(顧客)のウォレット情報を管理するためのAPIです。
+エンドユーザーのウォレット(アカウント)の作成・更新・取得を行います。
+ウォレットにはマネー残高(有償バリュー)とポイント残高(無償バリュー)があり、
+有効期限別に金額が管理されています。
+また、外部システム連携用のexternal_idやメタデータを設定することも可能です。
+
## DeleteAccount: ウォレットを退会する
ウォレットを退会します。一度ウォレットを退会した後は、そのウォレットを再び利用可能な状態に戻すことは出来ません。
-```typescript
-const response: Response = await client.send(new DeleteAccount({
- account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID
- cashback: false // 返金有無
-}));
+```PYTHON
+response = client.send(pp.DeleteAccount(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID
+ cashback=True # 返金有無
+))
```
### Parameters
-**`account_id`**
-
-
+#### `account_id`
ウォレットIDです。
指定したウォレットIDのウォレットを退会します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -28,17 +35,22 @@ const response: Response = await client.send(new DeleteAccount({
}
```
-**`cashback`**
-
+
+#### `cashback`
退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
+
+
成功したときは
@@ -54,22 +66,23 @@ const response: Response = await client.send(new DeleteAccount({
## GetAccount: ウォレット情報を表示する
ウォレットを取得します。
-```typescript
-const response: Response = await client.send(new GetAccount({
- account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID
-}));
+```PYTHON
+response = client.send(pp.GetAccount(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # account_id: ウォレットID
+))
```
### Parameters
-**`account_id`**
-
-
+#### `account_id`
ウォレットIDです。
フィルターとして使われ、指定したウォレットIDのウォレットを取得します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -77,6 +90,8 @@ const response: Response = await client.send(new GetAccount({
}
```
+
+
成功したときは
@@ -98,25 +113,26 @@ const response: Response = await client.send(new GetAccount({
エンドユーザーのウォレット情報更新には UpdateCustomerAccount が使用できます。
-```typescript
-const response: Response = await client.send(new UpdateAccount({
- account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID
- is_suspended: true, // ウォレットが凍結されているかどうか
- status: "suspended", // ウォレット状態
- can_transfer_topup: false // チャージ可能かどうか
-}));
+```PYTHON
+response = client.send(pp.UpdateAccount(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID
+ is_suspended=True, # ウォレットが凍結されているかどうか
+ status="active", # ウォレット状態
+ can_transfer_topup=True # チャージ可能かどうか
+))
```
### 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=2154, # ページ番号
+ per_page=9009, # 1ページ分の取引数
+ expires_at_from="2022-10-15T06:05:43.000000Z", # 有効期限の期間によるフィルター(開始時点)
+ expires_at_to="2025-09-03T17:37:28.000000Z", # 有効期限の期間によるフィルター(終了時点)
+ direction="asc" # 有効期限によるソート順序
+))
```
### 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=2459, # ページ番号
+ per_page=4765, # 1ページ分の取引数
+ expires_at_from="2020-04-12T05:09:13.000000Z", # 有効期限の期間によるフィルター(開始時点)
+ expires_at_to="2025-06-04T19:24:47.000000Z", # 有効期限の期間によるフィルター(終了時点)
+ direction="asc" # 有効期限によるソート順序
+))
```
### Parameters
-**`account_id`**
-
-
+#### `account_id`
ウォレットIDです。
フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -311,11 +357,14 @@ const response: Response = await client.send(new ListAc
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。デフォルト値は1です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -323,11 +372,14 @@ const response: Response = await client.send(new ListAc
}
```
-**`per_page`**
-
+
+#### `per_page`
1ページ分のウォレット残高数です。デフォルト値は30です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -335,11 +387,14 @@ const response: Response = await client.send(new ListAc
}
```
-**`expires_at_from`**
-
+
+#### `expires_at_from`
有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -347,11 +402,14 @@ const response: Response = await client.send(new ListAc
}
```
-**`expires_at_to`**
-
+
+#### `expires_at_to`
有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -359,11 +417,14 @@ const response: Response = await client.send(new ListAc
}
```
-**`direction`**
-
+
+#### `direction`
有効期限によるソートの順序を指定します。デフォルト値はdesc (降順)です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -374,6 +435,8 @@ const response: Response = await client.send(new ListAc
}
```
+
+
成功したときは
@@ -389,26 +452,27 @@ const response: Response = await client.send(new ListAc
## UpdateCustomerAccount: エンドユーザーのウォレット情報を更新する
エンドユーザーのウォレットの状態を更新します。
-```typescript
-const response: Response = await client.send(new UpdateCustomerAccount({
- account_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ウォレットID
- status: "suspended", // ウォレット状態
- account_name: "DDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAP", // アカウント名
- external_id: "GMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknj", // 外部ID
- metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" // ウォレットに付加するメタデータ
-}));
+```PYTHON
+response = client.send(pp.UpdateCustomerAccount(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID
+ status="suspended", # ウォレット状態
+ account_name="kFEWCqS7fIGsgSUetvzhcyY8O4aW8dVGclxW2nJI1LDT3BhMLUADblZz6ydgd6gveWK49xDzlQxtC3xLL1ERUl6NhqKkDSvghab5bsImY7PcHPZH7mHIXsOqC2xcKBYh", # アカウント名
+ external_id="1xCfnaEpDLcNg", # 外部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=9724, # ページ番号
+ per_page=5658, # 1ページ分のウォレット数
+ created_at_from="2024-12-22T01:47:18.000000Z", # ウォレット作成日によるフィルター(開始時点)
+ created_at_to="2025-07-25T06:11:48.000000Z", # ウォレット作成日によるフィルター(終了時点)
+ is_suspended=False, # ウォレットが凍結状態かどうかでフィルターする
+ status="pre-closed", # ウォレット状態
+ external_id="uiKajpcQf4nuECfdVUoATZ0pZ1FEusk3svdOIWNVH", # 外部ID
+ tel="055641510", # エンドユーザーの電話番号
+ email="sd7jOCTvYg@QYDO.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="NTX3Y" # 外部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=6708, # ページ番号
+ per_page=2567, # 1ページ分のウォレット数
+ created_at_from="2023-12-12T12:41:21.000000Z", # ウォレット作成日によるフィルター(開始時点)
+ created_at_to="2025-01-06T02:42:45.000000Z", # ウォレット作成日によるフィルター(終了時点)
+ is_suspended=False # ウォレットが凍結状態かどうかでフィルターする
+))
```
### Parameters
-**`private_money_id`**
-
-
+#### `private_money_id`
マネーIDです。
一覧するウォレットのマネーを指定します。このパラメータは必須です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -782,11 +903,14 @@ const response: Response = await client.send(new GetS
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。デフォルト値は1です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -794,11 +918,14 @@ const response: Response = await client.send(new GetS
}
```
-**`per_page`**
-
+
+#### `per_page`
1ページ分のウォレット数です。デフォルト値は30です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -806,11 +933,14 @@ const response: Response = await client.send(new GetS
}
```
-**`created_at_from`**
-
+
+#### `created_at_from`
ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -818,11 +948,14 @@ const response: Response = await client.send(new GetS
}
```
-**`created_at_to`**
-
+
+#### `created_at_to`
ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -830,17 +963,22 @@ const response: Response = await client.send(new GetS
}
```
-**`is_suspended`**
-
+
+#### `is_suspended`
このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
+
+
成功したときは
@@ -851,7 +989,81 @@ const response: Response = await client.send(new GetS
|status|type|ja|en|
|---|---|---|---|
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
-|422|private_money_not_found||Private money not found|
+|422|private_money_not_found|マネーが見つかりません|Private money not found|
+
+
+
+---
+
+
+
+## GetCustomerCards: エンドユーザーのクレジットカード一覧を取得する
+エンドユーザーのクレジットカード一覧を取得します。
+3D Secure認証済みのカードのみが返されます。
+idはcredit-sessions作成時に使用できます。
+
+```PYTHON
+response = client.send(pp.GetCustomerCards(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーID
+ page=9042, # ページ番号
+ per_page=67 # 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="expire", # 取引種別
+ is_modified=True, # キャンセル済みかどうか
+ start="2024-03-15T03:23:08.000000Z", # 開始日時
+ to="2023-05-23T20:04:39.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..6a6ac5f 100644
--- a/docs/error-response.csv
+++ b/docs/error-response.csv
@@ -1,20 +1,32 @@
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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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 +34,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 +52,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 +63,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 +89,12 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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 +102,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 +125,22 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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 +148,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 +165,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 +173,60 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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 +234,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 +250,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 +257,23 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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 +281,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 +297,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 +306,19 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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 +326,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 +343,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 +351,23 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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 +377,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 +395,21 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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 +417,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 +434,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 +442,87 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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 +532,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 +546,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 +555,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 +574,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 +633,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 +653,29 @@ 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,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 +693,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 +714,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 +756,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 +777,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 +804,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 +820,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 +838,28 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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 +869,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 +891,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 +921,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 +929,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 +955,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 +986,29 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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 +1016,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 +1034,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 +1042,112 @@ 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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,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..328eb9b 100644
--- a/docs/event.md
+++ b/docs/event.md
@@ -1,4 +1,10 @@
# Event
+外部決済イベント(ExternalTransaction)を表すデータです。
+Pokepay外の決済(現金決済、クレジットカード決済等)を記録し、ポケペイのポイント還元を実現します。
+外部決済イベントを作成することで、キャンペーン連動によるポイント付与が可能になります。
+イベントのキャンセル(返金)にも対応しており、紐付いたポイント還元も同時にキャンセルされます。
+リクエストIDによる羃等性の担保もサポートしています。
+
## CreateExternalTransaction: ポケペイ外部取引を作成する
@@ -6,48 +12,43 @@
ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。
-
-```typescript
-const response: Response = await client.send(new CreateExternalTransaction({
- shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID
- customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID
- private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
- amount: 2106, // 取引額
- products: [{"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "quantity": 1,
- "is_discounted": false,
- "other":"{}"}, {"jan_code":"abc",
+```PYTHON
+response = client.send(pp.CreateExternalTransaction(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーID
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID
+ 6473, # amount: 取引額
+ description="たい焼き(小倉)", # 取引説明文
+ metadata="{\"key\":\"value\"}", # ポケペイ外部取引メタデータ
+ products=[{"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
"quantity": 1,
- "is_discounted": false,
+ "is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
"quantity": 1,
- "is_discounted": false,
- "other":"{}"}], // 商品情報データ
- description: "たい焼き(小倉)", // 取引説明文
- metadata: "{\"key\":\"value\"}", // ポケペイ外部取引メタデータ
- request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID
-}));
+ "is_discounted": False,
+ "other":"{}"}], # 商品情報データ
+ request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # リクエストID
+ done_at="2020-02-02T10:12:03.000000Z" # ポケペイ外部取引の実施時間
+))
```
### Parameters
-**`shop_id`**
-
-
+#### `shop_id`
店舗IDです。
ポケペイ外部取引が行なう店舗を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -55,13 +56,16 @@ const response: Response = await client.send(new Crea
}
```
-**`customer_id`**
-
+
+#### `customer_id`
エンドユーザーIDです。
エンドユーザーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -69,13 +73,16 @@ const response: Response = await client.send(new Crea
}
```
-**`private_money_id`**
-
+
+#### `private_money_id`
マネーIDです。
マネーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -83,11 +90,14 @@ const response: Response = await client.send(new Crea
}
```
-**`amount`**
-
+
+#### `amount`
取引金額です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -95,13 +105,16 @@ const response: Response = await client.send(new Crea
}
```
-**`description`**
-
+
+#### `description`
取引説明文です。
任意入力で、取引履歴に表示される説明文です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -109,13 +122,16 @@ const response: Response = await client.send(new Crea
}
```
-**`metadata`**
-
+
+#### `metadata`
ポケペイ外部取引作成時に指定され、取引と紐付けられるメタデータです。
任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSONで指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -123,9 +139,9 @@ const response: Response = await client.send(new Crea
}
```
-**`products`**
-
+
+#### `products`
一つの取引に含まれる商品情報データです。
以下の内容からなるJSONオブジェクトの配列で指定します。
@@ -137,6 +153,9 @@ const response: Response = await client.send(new Crea
- `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean
- `other`: その他商品に関する情報。JSONオブジェクトで指定します。
+
+スキーマ
+
```json
{
"type": "array",
@@ -146,15 +165,18 @@ const response: Response = await client.send(new Crea
}
```
-**`request_id`**
-
+
+#### `request_id`
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -162,6 +184,25 @@ const response: Response = await client.send(new Crea
}
```
+
+
+#### `done_at`
+ポケペイ外部取引が実際に起こった時間です。
+時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。
+デフォルトではCreateExternalTransactionがリクエストされた時間になります。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "date-time"
+}
+```
+
+
+
成功したときは
@@ -173,21 +214,23 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|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 +240,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 +254,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 +272,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 +294,12 @@ const response: Response = await client.send(new Refu
}
```
-**`description`**
-
+
+#### `description`
+
+
+スキーマ
```json
{
@@ -254,6 +308,8 @@ const response: Response = await client.send(new Refu
}
```
+
+
成功したときは
@@ -271,18 +327,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 +348,8 @@ const response: Response = await client.send(new GetE
}
```
+
+
成功したときは
diff --git a/docs/organization.md b/docs/organization.md
index 842404b..520ee92 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="Z", # 組織名
+ code="oJ1k" # 組織コード
+))
```
### Parameters
-**`private_money_id`**
-
-
+#### `private_money_id`
マネーIDです。
このマネーに加盟している加盟組織がフィルターされます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -29,11 +35,14 @@ const response: Response = await client.send(new ListOrg
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -41,11 +50,14 @@ const response: Response = await client.send(new ListOrg
}
```
-**`per_page`**
-
+
+#### `per_page`
1ページ分の取引数です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -53,9 +65,12 @@ const response: Response = await client.send(new ListOrg
}
```
-**`name`**
-
+
+
+#### `name`
+
+スキーマ
```json
{
@@ -63,9 +78,12 @@ const response: Response = await client.send(new ListOrg
}
```
-**`code`**
-
+
+#### `code`
+
+
+スキーマ
```json
{
@@ -73,6 +91,8 @@ const response: Response = await client.send(new ListOrg
}
```
+
+
成功したときは
@@ -84,7 +104,7 @@ const response: Response = await client.send(new ListOrg
|---|---|---|---|
|400|invalid_parameters|項目が無効です|Invalid parameters|
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
-|422|private_money_not_found||Private money not found|
+|422|private_money_not_found|マネーが見つかりません|Private money not found|
@@ -94,30 +114,31 @@ const response: Response = await client.send(new ListOrg
## CreateOrganization: 新規加盟店組織を追加する
-```typescript
-const response: Response = await client.send(new CreateOrganization({
- code: "ox-supermarket", // 新規組織コード
- name: "oxスーパー", // 新規組織名
- private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 加盟店組織で有効にするマネーIDの配列
- issuer_admin_user_email: "iB0DiDGREm@ImyJ.com", // 発行体担当者メールアドレス
- member_admin_user_email: "DbbC2wEGBf@cAGc.com", // 新規組織担当者メールアドレス
- bank_name: "XYZ銀行", // 銀行名
- bank_code: "1234", // 銀行金融機関コード
- bank_branch_name: "ABC支店", // 銀行支店名
- bank_branch_code: "123", // 銀行支店コード
- bank_account_type: "saving", // 銀行口座種別 (普通=saving, 当座=current, その他=other)
- bank_account: "1234567", // 銀行口座番号
- bank_account_holder_name: "フクザワユキチ", // 口座名義人名
- contact_name: "佐藤清" // 担当者名
-}));
+```PYTHON
+response = client.send(pp.CreateOrganization(
+ "ox-supermarket", # code: 新規組織コード
+ "oxスーパー", # name: 新規組織名
+ ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # private_money_ids: 加盟店組織で有効にするマネーIDの配列
+ "FHQyhzGXer@HPOP.com", # issuer_admin_user_email: 発行体担当者メールアドレス
+ "DvrwRgeSOa@GF6s.com", # member_admin_user_email: 新規組織担当者メールアドレス
+ 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="佐藤清" # 担当者名
+))
```
### 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..0045266 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-02-21T01:41:27.000000Z", # 開始日時(toと同時に指定する必要有)
+ to="2024-03-12T09:17:23.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="2024-03-02T08:44:40.000000Z", # 開始日時
+ to="2021-02-12T01:52:44.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..924bc5e
--- /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(
+ "RJ" # 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..a7ac378 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="626-7118", # 店舗の郵便番号
+ address="東京都港区芝...", # 店舗の住所
+ tel="060-6252054", # 店舗の電話番号
+ email="rVxAUW7FWH@kKwd.com", # 店舗のメールアドレス
+ external_id="g6799FNaTUuVqVNtvvxMPy8uYVQrlAwBl", # 店舗の外部ID
+ with_disabled=True, # 無効な店舗を含める
+ page=1, # ページ番号
+ per_page=50 # 1ページ分の取引数
+))
```
### Parameters
-**`organization_code`**
-
-
+#### `organization_code`
このパラメータを渡すとその組織の店舗のみが返され、省略すると加盟店も含む店舗が返されます。
+
+スキーマ
```json
{
@@ -36,11 +42,13 @@ const response: Response = await client.send(new ListShops({
}
```
-**`private_money_id`**
-
+
+#### `private_money_id`
このパラメータを渡すとそのマネーのウォレットを持つ店舗のみが返されます。
+
+スキーマ
```json
{
@@ -49,11 +57,13 @@ const response: Response = await client.send(new ListShops({
}
```
-**`name`**
-
+
+#### `name`
このパラメータを渡すとその名前の店舗のみが返されます。
+
+スキーマ
```json
{
@@ -63,11 +73,13 @@ const response: Response = await client.send(new ListShops({
}
```
-**`postal_code`**
-
+
+#### `postal_code`
このパラメータを渡すとその郵便番号が登録された店舗のみが返されます。
+
+スキーマ
```json
{
@@ -76,11 +88,13 @@ const response: Response = await client.send(new ListShops({
}
```
-**`address`**
-
+
+#### `address`
このパラメータを渡すとその住所が登録された店舗のみが返されます。
+
+スキーマ
```json
{
@@ -89,11 +103,13 @@ const response: Response = await client.send(new ListShops({
}
```
-**`tel`**
-
+
+#### `tel`
このパラメータを渡すとその電話番号が登録された店舗のみが返されます。
+
+スキーマ
```json
{
@@ -102,11 +118,13 @@ const response: Response = await client.send(new ListShops({
}
```
-**`email`**
-
+
+#### `email`
このパラメータを渡すとそのメールアドレスが登録された店舗のみが返されます。
+
+スキーマ
```json
{
@@ -116,11 +134,13 @@ const response: Response = await client.send(new ListShops({
}
```
-**`external_id`**
-
+
+#### `external_id`
このパラメータを渡すとその外部IDが登録された店舗のみが返されます。
+
+スキーマ
```json
{
@@ -129,11 +149,13 @@ const response: Response = await client.send(new ListShops({
}
```
-**`with_disabled`**
-
+
+#### `with_disabled`
このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。
+
+スキーマ
```json
{
@@ -141,11 +163,14 @@ const response: Response = await client.send(new ListShops({
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -153,11 +178,14 @@ const response: Response = await client.send(new ListShops({
}
```
-**`per_page`**
-
+
+#### `per_page`
1ページ分の取引数です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -165,6 +193,8 @@ const response: Response = await client.send(new ListShops({
}
```
+
+
成功したときは
@@ -175,8 +205,9 @@ const response: Response = await client.send(new ListShops({
|status|type|ja|en|
|---|---|---|---|
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
-|422|private_money_not_found||Private money not found|
+|422|private_money_not_found|マネーが見つかりません|Private money not found|
|422|organization_not_found||Organization not found|
+|503|temporarily_unavailable||Service Unavailable|
@@ -187,24 +218,25 @@ const response: Response = await client.send(new ListShops({
## CreateShop: 【廃止】新規店舗を追加する
新規店舗を追加します。このAPIは廃止予定です。以降は `CreateShopV2` を使用してください。
-```typescript
-const response: Response = await client.send(new CreateShop({
- shop_name: "oxスーパー三田店", // 店舗名
- shop_postal_code: "003-6412", // 店舗の郵便番号
- shop_address: "東京都港区芝...", // 店舗の住所
- shop_tel: "0217-471262", // 店舗の電話番号
- shop_email: "WXvcqkH6OC@G8bj.com", // 店舗のメールアドレス
- shop_external_id: "s6Wxag7", // 店舗の外部ID
- organization_code: "ox-supermarket" // 組織コード
-}));
+```PYTHON
+response = client.send(pp.CreateShop(
+ "oxスーパー三田店", # shop_name: 店舗名
+ shop_postal_code="304-7822", # 店舗の郵便番号
+ shop_address="東京都港区芝...", # 店舗の住所
+ shop_tel="090-1520-565", # 店舗の電話番号
+ shop_email="d9b5MHdM8U@nuwQ.com", # 店舗のメールアドレス
+ shop_external_id="7jNoaulXZjgrVDfW2ufNp0gAs9phyFh2a", # 店舗の外部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="394-2516", # 店舗の郵便番号
+ address="東京都港区芝...", # 店舗の住所
+ tel="069-573-094", # 店舗の電話番号
+ email="dpylXeF6qv@GwUl.com", # 店舗のメールアドレス
+ external_id="ATMaf3NqLOcKmTPNREiEdfOxleMzyqb", # 店舗の外部ID
+ organization_code="ox-supermarket", # 組織コード
+ private_money_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗で有効にするマネーIDの配列
+ can_topup_private_money_ids=[] # 店舗でチャージ可能にするマネー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="5924681", # 店舗の郵便番号
+ address="東京都港区芝...", # 店舗の住所
+ tel="0737807473", # 店舗の電話番号
+ email="VD8anN0lX3@R6Ng.com", # 店舗のメールアドレス
+ external_id="h2OAi1BcnwfTRLJa4uoIhpR40nORwuC", # 店舗の外部ID
+ 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", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗でチャージ可能にするマネーIDの配列
+ status="active" # 店舗の状態
+))
```
### Parameters
-**`shop_id`**
-
+#### `shop_id`
+
+スキーマ
```json
{
@@ -536,13 +619,16 @@ const response: Response = await client.send(new UpdateShop({
}
```
-**`name`**
-
+
+#### `name`
店舗名です。
同一組織内に同名の店舗があった場合は`shop_name_conflict`エラーが返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -551,11 +637,14 @@ const response: Response = await client.send(new UpdateShop({
}
```
-**`postal_code`**
-
+
+#### `postal_code`
店舗住所の郵便番号(7桁の数字)です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -563,9 +652,12 @@ const response: Response = await client.send(new UpdateShop({
}
```
-**`address`**
-
+
+#### `address`
+
+
+スキーマ
```json
{
@@ -574,11 +666,14 @@ const response: Response = await client.send(new UpdateShop({
}
```
-**`tel`**
-
+
+#### `tel`
店舗の電話番号です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -586,11 +681,14 @@ const response: Response = await client.send(new UpdateShop({
}
```
-**`email`**
-
+
+#### `email`
店舗の連絡先メールアドレスです。明示的に空の値を設定するにはNULLを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -599,11 +697,14 @@ const response: Response = await client.send(new UpdateShop({
}
```
-**`external_id`**
-
+
+#### `external_id`
店舗の外部IDです(最大36文字)。明示的に空の値を設定するにはNULLを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -611,14 +712,17 @@ const response: Response = await client.send(new UpdateShop({
}
```
-**`private_money_ids`**
-
+
+#### `private_money_ids`
店舗で有効にするマネーIDの配列を指定します。
店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。
店舗が既にウォレットを持っている場合に、ここでそのウォレットのマネーIDを指定しないで更新すると、そのマネーのウォレットは凍結(無効化)されます。
+
+スキーマ
+
```json
{
"type": "array",
@@ -630,14 +734,17 @@ const response: Response = await client.send(new UpdateShop({
}
```
-**`can_topup_private_money_ids`**
-
+
+#### `can_topup_private_money_ids`
店舗でチャージ可能にするマネーIDの配列を指定します。
このパラメータは発行体のみが指定でき、発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。
省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。
+
+スキーマ
+
```json
{
"type": "array",
@@ -649,11 +756,14 @@ const response: Response = await client.send(new UpdateShop({
}
```
-**`status`**
-
+
+#### `status`
店舗の状態です。activeを指定すると有効となり、disabledを指定するとリスト表示から除外されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -664,6 +774,8 @@ const response: Response = await client.send(new UpdateShop({
}
```
+
+
成功したときは
diff --git a/docs/transaction.md b/docs/transaction.md
index e940f05..6d744ac 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(
+ "4UplfuFUQK5yc0JqyEbk4x" # 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="2021-10-10T16:41:58.000000Z", # 開始日時
+ to="2021-02-18T12:59:20.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="El", # 取引ID
+ organization_code="pocketchange", # 組織コード
+ private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID
+ is_modified=True, # キャンセルフラグ
+ 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=2436,
+ point_amount=1527,
+ point_expires_at="2023-09-21T06:48:47.000000Z", # ポイント有効期限
+ description="VpwOgCs3REJLXlOpH9qH3TntlxmPSv0sqeMHVeJGZnQaE4lp3S7TMyfZKpPybiZ1Lwce18e7Eq5OqWuTabdRaaHOyfGqVUncXzhjskeGyZxmbEy050Zlv3tzVr8aTPDqMKbxS0Vs3Ol"
+))
```
### 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,14 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|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 +504,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 +522,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 +534,91 @@ const response: Response = await client.send(new CreateTransa
+---
+
+
+
+## CreateTransactionGroup: トランザクショングループを作成する
+複数の取引を1つのグループとして管理できるようにします。
+
+```PYTHON
+response = client.send(pp.CreateTransactionGroup(
+ "rdnx7rU9Ft" # 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 +626,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="9Z959o", # 取引ID
+ is_modified=False, # キャンセルフラグ
+ types=["topup", "payment"], # 取引種別 (複数指定可)、チャージ=topup、支払い=payment
+ start="2024-09-29T17:47:46.000000Z", # 開始日時
+ to="2022-01-30T14:23:53.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 +664,16 @@ const response: Response = await client.send(new ListTra
}
```
-**`organization_code`**
-
+
+#### `organization_code`
組織コードです。
フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -506,13 +682,16 @@ const response: Response = await client.send(new ListTra
}
```
-**`shop_id`**
-
+
+#### `shop_id`
店舗IDです。
フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -520,13 +699,16 @@ const response: Response = await client.send(new ListTra
}
```
-**`terminal_id`**
-
+
+#### `terminal_id`
端末IDです。
フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -534,13 +716,16 @@ const response: Response = await client.send(new ListTra
}
```
-**`customer_id`**
-
+
+#### `customer_id`
エンドユーザーIDです。
フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -548,13 +733,16 @@ const response: Response = await client.send(new ListTra
}
```
-**`customer_name`**
-
+
+#### `customer_name`
エンドユーザー名です。
フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -562,13 +750,16 @@ const response: Response = await client.send(new ListTra
}
```
-**`description`**
-
+
+#### `description`
取引を指定の取引説明文でフィルターします。
取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。
+
+スキーマ
+
```json
{
"type": "string",
@@ -576,36 +767,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 +829,9 @@ const response: Response = await client.send(new ListTra
6. expire
退会時失効取引
+
+スキーマ
+
```json
{
"type": "array",
@@ -649,13 +849,16 @@ const response: Response = await client.send(new ListTra
}
```
-**`from`**
-
+
+#### `from`
抽出期間の開始日時です。
フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -663,13 +866,16 @@ const response: Response = await client.send(new ListTra
}
```
-**`to`**
-
+
+#### `to`
抽出期間の終了日時です。
フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -677,15 +883,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 +902,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 +912,9 @@ UUIDである場合は前のページが存在することを意味し、このp
prev_page_cursor_idのtransaction自体は前のページには含まれません。
+
+スキーマ
+
```json
{
"type": "string",
@@ -710,13 +922,16 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ
}
```
-**`per_page`**
-
+
+#### `per_page`
1ページ分の取引数です。
デフォルト値は50です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -725,6 +940,8 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ
}
```
+
+
成功したときは
@@ -735,6 +952,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=False, # キャンセルフラグ
+ start="2020-06-10T10:00:14.000000Z", # 開始日時
+ to="2024-12-10T21:59:15.000000Z", # 終了日時
+ next_page_cursor_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 次ページへ遷移する際に起点となるtransactionのID
+ prev_page_cursor_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 前ページへ遷移する際に起点となるtransactionのID
+ per_page=50 # 1ページ分の取引数
+))
+```
+
+
+
+### Parameters
+#### `private_money_id`
+マネー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 +1268,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=1645, # マネー額
+ point_amount=3060, # ポイント額
+ point_expires_at="2020-12-22T22:36:21.000000Z", # ポイント有効期限
+ description="初夏のチャージキャンペーン", # 取引履歴に表示する説明文
+ metadata="{\"key\":\"value\"}", # 取引メタデータ
+ request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID
+))
```
### Parameters
-**`shop_id`**
-
-
+#### `shop_id`
店舗IDです。
送金元の店舗を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -777,13 +1301,16 @@ const response: Response = await client.send(new CreateTopupT
}
```
-**`customer_id`**
-
+
+#### `customer_id`
エンドユーザーIDです。
送金先のエンドユーザーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -791,13 +1318,16 @@ const response: Response = await client.send(new CreateTopupT
}
```
-**`private_money_id`**
-
+
+#### `private_money_id`
マネーIDです。
マネーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -805,13 +1335,16 @@ const response: Response = await client.send(new CreateTopupT
}
```
-**`bear_point_shop_id`**
-
+
+#### `bear_point_shop_id`
ポイント支払時の負担店舗IDです。
ポイント支払い時に実際お金を負担する店舗を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -819,14 +1352,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 +1370,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 +1388,15 @@ const response: Response = await client.send(new CreateTopupT
}
```
-**`point_expires_at`**
-
+
+#### `point_expires_at`
ポイントをチャージした場合の、付与されるポイントの有効期限です。
省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -862,13 +1404,16 @@ const response: Response = await client.send(new CreateTopupT
}
```
-**`description`**
-
+
+#### `description`
取引説明文です。
任意入力で、取引履歴に表示される説明文です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -876,13 +1421,16 @@ const response: Response = await client.send(new CreateTopupT
}
```
-**`metadata`**
-
+
+#### `metadata`
取引作成時に指定されるメタデータです。
任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -890,14 +1438,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 +1458,8 @@ const response: Response = await client.send(new CreateTopupT
}
```
+
+
成功したときは
@@ -918,9 +1472,12 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|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 +1485,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 +1508,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 +1526,38 @@ 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
+ 1416, # amount: 支払い額
+ description="たい焼き(小倉)", # 取引履歴に表示する説明文
+ metadata="{\"key\":\"value\"}", # 取引メタデータ
+ products=[{"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
"quantity": 1,
- "is_discounted": false,
- "other":"{}"}], // 商品情報データ
- description: "たい焼き(小倉)", // 取引履歴に表示する説明文
- metadata: "{\"key\":\"value\"}", // 取引メタデータ
- request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID
-}));
+ "is_discounted": False,
+ "other":"{}"}], # 商品情報データ
+ request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # リクエストID
+ strategy="point-preferred", # 支払い時の残高消費方式
+ coupon_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # クーポンID
+))
```
### Parameters
-**`shop_id`**
-
-
+#### `shop_id`
店舗IDです。
送金先の店舗を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -998,13 +1565,16 @@ const response: Response = await client.send(new CreatePaymen
}
```
-**`customer_id`**
-
+
+#### `customer_id`
エンドユーザーIDです。
送金元のエンドユーザーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1012,13 +1582,16 @@ const response: Response = await client.send(new CreatePaymen
}
```
-**`private_money_id`**
-
+
+#### `private_money_id`
マネーIDです。
マネーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1026,13 +1599,16 @@ const response: Response = await client.send(new CreatePaymen
}
```
-**`amount`**
-
+
+#### `amount`
マネー額です。
送金するマネー額を指定します。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1040,13 +1616,16 @@ const response: Response = await client.send(new CreatePaymen
}
```
-**`description`**
-
+
+#### `description`
取引説明文です。
任意入力で、取引履歴に表示される説明文です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1054,13 +1633,16 @@ const response: Response = await client.send(new CreatePaymen
}
```
-**`metadata`**
-
+
+#### `metadata`
取引作成時に指定されるメタデータです。
任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1068,9 +1650,9 @@ const response: Response = await client.send(new CreatePaymen
}
```
-**`products`**
-
+
+#### `products`
一つの取引に含まれる商品情報データです。
以下の内容からなるJSONオブジェクトの配列で指定します。
@@ -1082,6 +1664,9 @@ const response: Response = await client.send(new CreatePaymen
- `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean
- `other`: その他商品に関する情報。JSONオブジェクトで指定します。
+
+スキーマ
+
```json
{
"type": "array",
@@ -1091,14 +1676,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 +1696,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 +1746,13 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|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 +1760,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 +1783,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 +1801,36 @@ const response: Response = await client.send(new CreatePaymen
CPMトークンにより取引を作成します。
CPMトークンに設定されたスコープの取引を作ることができます。
-
-```typescript
-const response: Response = await client.send(new CreateCpmTransaction({
- cpm_token: "TmEReE1YV9ebnUBpzD7d9D", // CPMトークン
- shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID
- amount: 8647.0, // 取引金額
- products: [{"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "quantity": 1,
- "is_discounted": false,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "quantity": 1,
- "is_discounted": false,
- "other":"{}"}, {"jan_code":"abc",
+```PYTHON
+response = client.send(pp.CreateCpmTransaction(
+ "3d8TfJ3Ol39ScasZnA58jo", # cpm_token: CPMトークン
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID
+ 8255.0, # amount: 取引金額
+ description="たい焼き(小倉)", # 取引説明文
+ metadata="{\"key\":\"value\"}", # 店舗側メタデータ
+ products=[{"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
"quantity": 1,
- "is_discounted": false,
- "other":"{}"}], // 商品情報データ
- description: "たい焼き(小倉)", // 取引説明文
- metadata: "{\"key\":\"value\"}", // 店舗側メタデータ
- request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID
-}));
+ "is_discounted": False,
+ "other":"{}"}], # 商品情報データ
+ request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # リクエストID
+ strategy="point-preferred" # 支払い時の残高消費方式
+))
```
### Parameters
-**`cpm_token`**
-
-
+#### `cpm_token`
エンドユーザーによって作られ、アプリなどに表示され、店舗に対して提示される22桁の文字列です。
エンドユーザーによって許可された取引のスコープを持っています。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1210,13 +1839,16 @@ const response: Response = await client.send(new CreateCpmTra
}
```
-**`shop_id`**
-
+
+#### `shop_id`
店舗IDです。
支払いやチャージを行う店舗を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1224,26 +1856,32 @@ const response: Response = await client.send(new CreateCpmTra
}
```
-**`amount`**
-
+
+#### `amount`
取引金額を指定します。
正の値を与えるとチャージになり、負の値を与えると支払いとなります。
+
+スキーマ
+
```json
{
"type": "number"
}
```
-**`description`**
-
+
+#### `description`
取引説明文です。
エンドユーザーアプリの取引履歴などに表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1251,13 +1889,16 @@ const response: Response = await client.send(new CreateCpmTra
}
```
-**`metadata`**
-
+
+#### `metadata`
取引作成時に店舗側から指定されるメタデータです。
任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1265,9 +1906,9 @@ const response: Response = await client.send(new CreateCpmTra
}
```
-**`products`**
-
+
+#### `products`
一つの取引に含まれる商品情報データです。
以下の内容からなるJSONオブジェクトの配列で指定します。
@@ -1279,6 +1920,9 @@ const response: Response = await client.send(new CreateCpmTra
- `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean
- `other`: その他商品に関する情報。JSONオブジェクトで指定します。
+
+スキーマ
+
```json
{
"type": "array",
@@ -1288,14 +1932,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 +1952,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 +1987,19 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|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 +2007,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 +2024,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 +2032,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 +2047,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
+ 7743.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 +2077,16 @@ const response: Response = await client.send(new CreateTransf
}
```
-**`receiver_id`**
-
+
+#### `receiver_id`
エンドユーザーIDです。
送金先のエンドユーザー(受け取り人)を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1407,13 +2094,16 @@ const response: Response = await client.send(new CreateTransf
}
```
-**`private_money_id`**
-
+
+#### `private_money_id`
マネーIDです。
マネーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1421,13 +2111,16 @@ const response: Response = await client.send(new CreateTransf
}
```
-**`amount`**
-
+
+#### `amount`
マネー額です。
送金するマネー額を指定します。
+
+スキーマ
+
```json
{
"type": "number",
@@ -1435,13 +2128,16 @@ const response: Response = await client.send(new CreateTransf
}
```
-**`metadata`**
-
+
+#### `metadata`
取引作成時に指定されるメタデータです。
任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1449,13 +2145,16 @@ const response: Response = await client.send(new CreateTransf
}
```
-**`description`**
-
+
+#### `description`
取引説明文です。
任意入力で、取引履歴に表示される説明文です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1463,14 +2162,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 +2182,8 @@ const response: Response = await client.send(new CreateTransf
}
```
+
+
成功したときは
@@ -1488,13 +2193,15 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|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 +2209,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 +2226,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 +2234,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 +2247,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",
+ 4457,
+ description="nztlMdM7BVfn4iFYyJJXfrDUn2Z5dTBMhYMOaLFSQqsldJHk3l4cpZ7fJl29A3O6y0fQnXOgwkIth5yMWiTVYzb9YasuIp7v4EzACicWq4Ul0bBBFnJwjrPufrwL5Z4qM5cy",
+ request_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID
+))
```
### Parameters
-**`user_id`**
-
+#### `user_id`
+
+スキーマ
```json
{
@@ -1557,9 +2273,12 @@ const response: Response = await client.send(new CreateExchan
}
```
-**`sender_private_money_id`**
-
+
+#### `sender_private_money_id`
+
+
+スキーマ
```json
{
@@ -1568,9 +2287,12 @@ const response: Response = await client.send(new CreateExchan
}
```
-**`receiver_private_money_id`**
-
+
+
+#### `receiver_private_money_id`
+
+スキーマ
```json
{
@@ -1579,9 +2301,12 @@ const response: Response = await client.send(new CreateExchan
}
```
-**`amount`**
-
+
+
+#### `amount`
+
+スキーマ
```json
{
@@ -1590,9 +2315,12 @@ const response: Response = await client.send(new CreateExchan
}
```
-**`description`**
-
+
+#### `description`
+
+
+スキーマ
```json
{
@@ -1601,14 +2329,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 +2349,8 @@ const response: Response = await client.send(new CreateExchan
}
```
+
+
成功したときは
@@ -1626,17 +2360,19 @@ 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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|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 +2382,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 +2400,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 +2412,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 +2436,8 @@ const response: Response = await client.send(new GetTransacti
}
```
+
+
成功したときは
@@ -1713,20 +2459,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="2024-06-28T08:22:54.000000Z" # 返却ポイントの有効期限
+))
```
### Parameters
-**`transaction_id`**
-
+#### `transaction_id`
+
+スキーマ
```json
{
@@ -1735,9 +2482,12 @@ const response: Response = await client.send(new RefundTransa
}
```
-**`description`**
-
+
+
+#### `description`
+
+スキーマ
```json
{
@@ -1746,11 +2496,14 @@ const response: Response = await client.send(new RefundTransa
}
```
-**`returning_point_expires_at`**
-
+
+#### `returning_point_expires_at`
ポイント支払いを含む支払い取引をキャンセルする際にユーザへ返却されるポイントの有効期限です。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1758,6 +2511,8 @@ const response: Response = await client.send(new RefundTransa
}
```
+
+
成功したときは
@@ -1773,22 +2528,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 +2552,8 @@ const response: Response = await client.send(new GetTransacti
}
```
+
+
成功したときは
@@ -1810,21 +2568,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 +2591,8 @@ const response: Response = await client.send(new GetBulkTransac
}
```
+
+
成功したときは
@@ -1846,23 +2607,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 +2632,14 @@ const response: Response = await client.send(new Li
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1882,11 +2647,14 @@ const response: Response = await client.send(new Li
}
```
-**`per_page`**
-
+
+#### `per_page`
1ページ分の取得数です。デフォルトでは 50 になっています。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1894,6 +2662,8 @@ const response: Response = await client.send(new Li
}
```
+
+
成功したときは
@@ -1924,22 +2694,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 +2718,15 @@ const response: Response = await client.send(new RequestUser
}
```
-**`to`**
-
+
+#### `to`
集計する期間の終了時刻をISO8601形式で指定します。
時刻は現在時刻、及び `from` で指定する時刻の間である必要があります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1960,6 +2734,8 @@ const response: Response = await client.send(new RequestUser
}
```
+
+
成功したときは
@@ -1973,7 +2749,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..dfbaf3f 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-02-17T19:07:32.000000Z", # 集計期間の開始時刻
+ to="2022-08-04T17:32:14.000000Z", # 集計期間の終了時刻
+ transfer_types=["topup", "payment"] # 取引明細種別 (複数指定可)
+))
```
### Parameters
-**`account_id`**
-
-
+#### `account_id`
ウォレットIDです。
ここで指定したウォレットIDの取引明細レベルでの集計を取得します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -30,9 +37,12 @@ const response: Response = await client.send(new GetAcco
}
```
-**`from`**
-
+
+#### `from`
+
+
+スキーマ
```json
{
@@ -41,9 +51,12 @@ const response: Response = await client.send(new GetAcco
}
```
-**`to`**
-
+
+
+#### `to`
+
+スキーマ
```json
{
@@ -52,9 +65,9 @@ const response: Response = await client.send(new GetAcco
}
```
-**`transfer_types`**
-
+
+#### `transfer_types`
取引明細の種別でフィルターします。
以下の種別を指定できます。
@@ -83,6 +96,9 @@ const response: Response = await client.send(new GetAcco
- refund-exchange-outflow
交換による他マネーへの流出取引に対するキャンセル取引
+
+スキーマ
+
```json
{
"type": "array",
@@ -106,6 +122,8 @@ const response: Response = await client.send(new GetAcco
}
```
+
+
成功したときは
@@ -120,31 +138,32 @@ const response: Response = await client.send(new GetAcco
## ListTransfers
-```typescript
-const response: Response = await client.send(new ListTransfers({
- from: "2023-11-06T15:31:02.000000Z",
- to: "2023-04-27T15:13:46.000000Z",
- page: 2519,
- per_page: 2166,
- shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- shop_name: "m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ",
- customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- customer_name: "55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEz",
- transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- is_modified: false,
- transaction_types: ["transfer", "exchange", "payment", "expire", "topup"],
- transfer_types: ["exchange", "expire", "topup", "payment", "coupon"], // 取引明細の種類でフィルターします。
- description: "店頭QRコードによる支払い" // 取引詳細説明文
-}));
+```PYTHON
+response = client.send(pp.ListTransfers(
+ start="2023-04-08T20:26:10.000000Z",
+ to="2020-03-15T15:46:34.000000Z",
+ page=6368,
+ per_page=1432,
+ shop_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ shop_name="hJuNsCdqVbAgLZQKQXblhvdQVC38rMOaKHSf5htPpy",
+ customer_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ customer_name="c",
+ transaction_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ is_modified=False,
+ transaction_types=["cashback", "payment", "transfer", "exchange"],
+ transfer_types=["coupon", "topup", "payment", "cashback", "transfer", "campaign"], # 取引明細の種類でフィルターします。
+ 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="WBxtfg1Kliu47KITpvwbo61t0xPHohZAfXS5WAq97VI0kJjyO9S00lRKqhRSKyv4aeUNiX5kIXisF2lvLdWFAH9CECfmZyvOgcw2bcIoYI3B409EBsOM5mHn7CA1SM3xNEFCgQheyCbSnP7P0SqnjQBF0gNpyvaBHzjlAdXU9fbl", # 店舗名
+ customer_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # エンドユーザーID
+ customer_name="BElEfYJcTmiRof0lbldCRsSSTgoxqh3aCnDQum7xlHp8mSoN73gaH", # エンドユーザー名
+ transaction_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 取引ID
+ private_money_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID
+ is_modified=False, # キャンセルフラグ
+ transaction_types=["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=["exchange", "topup", "payment", "expire", "coupon", "campaign", "cashback", "transfer"], # 取引明細種別 (複数指定可)
+ description="店頭QRコードによる支払い", # 取引詳細説明文
+ start="2024-11-27T06:37:01.000000Z", # 開始日時
+ to="2024-06-26T19:22:43.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..2f8c92f 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(
+ "process_user_stats_operation", # task: タスク名
+ "JcmLuj" # 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="s8", # 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..86634aa 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="2023-03-27T01:27:11.000000Z",
+ shop_name="Xtmv8LerXQe8LjF8Q6qvpD5ZbBwXFvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb",
+ shop_id="41f88eba-9698-4423-a2b9-8a275c0a7dd5",
+ lower_limit_amount=1376,
+ upper_limit_amount=1213,
+ 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="e524b9e9-e656-4cb0-a460-a3d88032a1c5",
+ organization_code="--4Lq-6K--3",
+ description="hS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4",
+ created_from="2020-05-27T09:17:50.000000Z",
+ created_to="2025-02-24T17:56:17.000000Z",
+ shop_name="hi0fX5dozKzovfXQ3PHUhjHLVEtSIaxZ8O9N2SLzG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4VkAmGgvgI7YgVKC9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteVH8YLvoUoraYyVUvoHuSd144X7ZEq8UGlMat7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1ogogHitDMic",
+ shop_id="c46a139e-285d-4f9e-b758-a4019eca8c0e",
+ lower_limit_amount=7563,
+ upper_limit_amount=9929,
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="oiIw8buB",
+ private_money_id="2ff8533c-3c66-4f17-8daa-2dc25095a6c3",
+ organization_code="Gm9s",
+ description="2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZfjz7mGpF3omDB92rueqlmfnAfu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VC",
+ created_from="2020-02-16T17:22:15.000000Z",
+ created_to="2022-08-27T05:24:32.000000Z",
+ shop_name="sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20dIuBp2e2",
+ shop_id="70dd47b5-a72e-4ea1-a121-53198a104210",
+ lower_limit_amount=8167,
+ upper_limit_amount=7700,
+ 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,
+ per_page=9466,
+ bill_id="Gickpe",
+ private_money_id="872faa5c-e67d-467a-a535-f6df164576d9",
+ organization_code="5rd-4V-O5",
+ description="G9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg9",
+ created_from="2022-05-12T08:08:41.000000Z",
+ created_to="2025-03-10T03:19:17.000000Z",
+ shop_name="B1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aor",
+ shop_id="2872a089-d604-424f-8fa0-4ef7b42c9746",
+ lower_limit_amount=9391,
+ upper_limit_amount=2946,
is_disabled=True
))
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=2926,
+ per_page=1054,
+ bill_id="s26",
+ private_money_id="f634f5c5-10c4-49fb-a680-8e6bc4abb1fa",
+ organization_code="04pr",
+ description="0UDl0RkGXqQRpkGArTG",
+ created_from="2024-09-24T23:45:46.000000Z",
+ created_to="2023-08-27T21:30:52.000000Z",
+ shop_name="UPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8",
+ shop_id="82d8beae-fee1-4575-aab8-82c4013341b4",
+ lower_limit_amount=4581,
+ upper_limit_amount=9493,
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"
+ "2dcc56f3-0653-4e8a-910a-39a8123fb9c8",
+ "e5dc5cbc-5479-4890-a425-1bb551b376b5"
))
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"
+ "2dcc56f3-0653-4e8a-910a-39a8123fb9c8",
+ "e5dc5cbc-5479-4890-a425-1bb551b376b5",
+ description="YfHfvN0QEBe9OUmuQoNyAxdhT65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zIxNZ"
))
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"
+ "2dcc56f3-0653-4e8a-910a-39a8123fb9c8",
+ "e5dc5cbc-5479-4890-a425-1bb551b376b5",
+ amount=4472.0,
+ description="4eE9mHPjq6XCvYjxbcuNA5AO"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_get_bill_0(self):
+ response = client.send(pp.GetBill(
+ "b646c0ad-f551-4248-be27-40fe598cda89"
))
self.assertNotEqual(response.status_code, 400)
def test_update_bill_0(self):
response = client.send(pp.UpdateBill(
- "c16a938b-9ef2-44bd-8e6f-2b8a65b0e2b2"
+ "94b551ba-7297-4792-b22f-e8f5014992b6"
))
self.assertNotEqual(response.status_code, 400)
def test_update_bill_1(self):
response = client.send(pp.UpdateBill(
- "c16a938b-9ef2-44bd-8e6f-2b8a65b0e2b2",
+ "94b551ba-7297-4792-b22f-e8f5014992b6",
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
+ "94b551ba-7297-4792-b22f-e8f5014992b6",
+ description="AXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D",
+ 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",
+ "94b551ba-7297-4792-b22f-e8f5014992b6",
+ amount=5940.0,
+ description="7J36mgyKf2pLnur",
+ is_disabled=True
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_checks_0(self):
+ response = client.send(pp.ListChecks(
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_checks_1(self):
+ response = client.send(pp.ListChecks(
+ is_disabled=True
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_checks_2(self):
+ response = client.send(pp.ListChecks(
+ is_onetime=True,
+ is_disabled=False
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_checks_3(self):
+ response = client.send(pp.ListChecks(
+ description="6TYP",
+ is_onetime=False,
+ is_disabled=False
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_checks_4(self):
+ response = client.send(pp.ListChecks(
+ issuer_shop_id="b7817627-d992-41f8-89a0-b9fad83d79e6",
+ description="irgwWn",
+ is_onetime=False,
+ is_disabled=False
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_checks_5(self):
+ response = client.send(pp.ListChecks(
+ created_to="2020-05-13T08:50:18.000000Z",
+ issuer_shop_id="39b13598-d34b-45f5-a7cd-6433bcc53d4f",
+ description="Qh2JH",
+ is_onetime=True,
+ is_disabled=True
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_checks_6(self):
+ response = client.send(pp.ListChecks(
+ created_from="2020-06-11T10:06:23.000000Z",
+ created_to="2021-07-09T00:59:36.000000Z",
+ issuer_shop_id="21cccb62-ec2c-467e-9a00-eae9fdbedf9f",
+ description="EM0oFGnnvK",
+ is_onetime=True,
+ is_disabled=True
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_checks_7(self):
+ response = client.send(pp.ListChecks(
+ expires_to="2025-11-09T11:24:54.000000Z",
+ created_from="2020-11-13T09:47:37.000000Z",
+ created_to="2022-02-27T02:45:01.000000Z",
+ issuer_shop_id="fd67d228-616d-4517-97b4-a61aa972a97b",
+ description="rHweV6",
+ 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="2023-08-23T01:32:05.000000Z",
+ expires_to="2025-04-19T12:44:14.000000Z",
+ created_from="2025-11-22T01:00:45.000000Z",
+ created_to="2025-05-18T05:44:36.000000Z",
+ issuer_shop_id="5f7dddf1-9d09-4984-bd20-913c9f326b92",
+ description="urm2HyY",
+ 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="rxBRsFTyEvnewbYd4rNZJs",
+ expires_from="2023-09-25T14:22:59.000000Z",
+ expires_to="2023-12-26T08:19:13.000000Z",
+ created_from="2020-02-23T09:10:09.000000Z",
+ created_to="2025-06-23T06:20:39.000000Z",
+ issuer_shop_id="8bdc0229-bbdb-49ed-9008-dfb7d0688061",
+ description="rw2N",
+ is_onetime=False,
+ is_disabled=False
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_checks_10(self):
+ response = client.send(pp.ListChecks(
+ private_money_id="32f640c8-2431-41a0-b207-6997a2d4ba81",
+ organization_code="HXaAOFqIwxrvxkxwVYBDQiRCy",
+ expires_from="2021-05-20T04:27:39.000000Z",
+ expires_to="2024-12-23T11:01:57.000000Z",
+ created_from="2025-04-26T02:21:18.000000Z",
+ created_to="2022-02-28T17:32:02.000000Z",
+ issuer_shop_id="a64038d2-613c-4a16-b32e-a509b3a77516",
+ description="czNd",
+ is_onetime=False,
+ is_disabled=False
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_checks_11(self):
+ response = client.send(pp.ListChecks(
+ per_page=1086,
+ private_money_id="20154902-5f94-4051-b94c-cf7a6031b019",
+ organization_code="iqjK5M",
+ expires_from="2026-01-15T02:58:44.000000Z",
+ expires_to="2025-08-24T13:19:13.000000Z",
+ created_from="2020-01-12T11:40:33.000000Z",
+ created_to="2023-05-01T02:22:18.000000Z",
+ issuer_shop_id="93a8b84d-013e-4d81-b9fb-98417e4544d2",
+ description="XVB9A32E",
+ is_onetime=False,
+ is_disabled=False
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_checks_12(self):
+ response = client.send(pp.ListChecks(
+ page=3368,
+ per_page=1729,
+ private_money_id="2bdf848e-aed6-4055-8bc0-6ebadbbe1dc5",
+ organization_code="1GN9JqLEvyRdA5j20",
+ expires_from="2023-01-31T10:00:28.000000Z",
+ expires_to="2021-01-20T11:16:07.000000Z",
+ created_from="2024-04-14T06:34:27.000000Z",
+ created_to="2022-03-01T00:27:53.000000Z",
+ issuer_shop_id="fbe1fbb4-a3a9-425a-9931-7c079fe3dd96",
+ description="n",
+ is_onetime=True,
is_disabled=False
))
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
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=2391.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"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=925.0,
+ description="KeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4"
))
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"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=6257.0,
+ is_onetime=True,
+ description="QWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv94bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT689"
))
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,
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=1833.0,
+ usage_limit=6408,
is_onetime=True,
- description="FgfnOa5xAhF9FsFDzTIAFGDPhp"
+ description="BIT98Ea3vOiHnJbC3RzxMsGYTRQVbbD"
))
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,
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=7755.0,
+ expires_at="2025-01-07T09:08:06.000000Z",
+ usage_limit=3738,
is_onetime=True,
- description="zEARJ1rvmqI1bSsRkkjQVB7WPQBN4OQef6ic8PJreX4akuWpKD9afhWN8gpYbk1UQRVGeT6q9QlLL4St0RhV6KdSsO2fKUxMoBriyYb61zvPjBcIHUY8RekKTAhSuM7Lo0VuZ1eCkX9fH"
+ description="r7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iMcrfILoN8ZP"
))
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,
- is_onetime=True,
- description="VQAOjB0XTIEf"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=1847.0,
+ point_expires_at="2021-05-19T07:52:10.000000Z",
+ expires_at="2023-04-23T01:28:23.000000Z",
+ usage_limit=42,
+ is_onetime=False,
+ description="JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj"
))
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"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=2362.0,
+ point_expires_in_days=8976,
+ point_expires_at="2025-06-19T03:56:17.000000Z",
+ expires_at="2022-01-15T21:12:06.000000Z",
+ usage_limit=1220,
+ is_onetime=True,
+ description="3qDkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgUm73I2kFchNQksZB6ByT3lVRQ7O823WFeXCs"
))
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,
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=6337.0,
+ bear_point_account="244a42c4-3a93-4406-aa5c-4e66155365f6",
+ point_expires_in_days=7979,
+ point_expires_at="2023-05-11T13:54:21.000000Z",
+ expires_at="2020-01-13T01:26:13.000000Z",
+ usage_limit=3879,
is_onetime=False,
- description="Z0UkOPXKep1jFsPNeua1jB7"
+ description="SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXXM3Y5XPxnjFhfkfYgvABxR"
))
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
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=4358.0,
+ point_amount=4267.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"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=5608.0,
+ point_amount=746.0,
+ description="7rXm6"
))
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,
- is_onetime=True,
- description="TjjuPniB6yr4Okg2Udv9iXSqMQb8J3iQSJeJic2mGuJKmsKLeWViwh5Xh0Ohe1EHst26OluNAixs6BC1rh1DjTMJERyJtkUyg63OuNEg3mOoFwMhlx1RPa6KY"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=8774.0,
+ point_amount=5814.0,
+ is_onetime=False,
+ description="nhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjb"
))
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"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=9592.0,
+ point_amount=507.0,
+ usage_limit=7327,
+ is_onetime=True,
+ description="6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46h"
))
self.assertNotEqual(response.status_code, 400)
def test_create_check_12(self):
response = client.send(pp.CreateCheck(
- "b0ded9e1-b593-4cd6-ba88-8079a453b844",
- money_amount=7863.0,
- point_amount=710.0,
- expires_at="2021-01-29T12:17:29.000000+09:00",
- usage_limit=4681,
- is_onetime=False,
- description="YctoKArmPX6ICAqae4Gsnk7CCks4Hk5SfM8qCg753Xc8sxEuuaOPh40uyY7zIQa1dLLxrHG11vw1vq47MweLd7PEXecikrpiqy8sfzPeC95z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1gAPOZCWBu1LN9FJ0cnlAGNGx"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=7185.0,
+ point_amount=7782.0,
+ expires_at="2024-05-05T17:58:52.000000Z",
+ usage_limit=883,
+ is_onetime=True,
+ description="F0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7"
))
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"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=2618.0,
+ point_amount=7070.0,
+ point_expires_at="2023-08-27T11:56:26.000000Z",
+ expires_at="2021-10-27T01:35:36.000000Z",
+ usage_limit=4677,
+ is_onetime=True,
+ description="ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xV"
))
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,
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=5489.0,
+ point_amount=3882.0,
+ point_expires_in_days=2311,
+ point_expires_at="2020-01-01T18:18:58.000000Z",
+ expires_at="2022-01-26T03:26:05.000000Z",
+ usage_limit=634,
is_onetime=False,
- description="2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOjNPScM2HIOB9HTAlispEbZ0nm2AG9fUViptAmbz3OlMcIwPiDhPvFVPSC9IO8VxniaFu09a6CuuEqXlxnf5GR396SeNDqXXKEJV0JkE3TjLaqeZO"
+ description="tPMLBX6YLvmDqPAbWtHJHRtQBqCHsxk71kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdS"
))
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,
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ money_amount=6131.0,
+ point_amount=7044.0,
+ bear_point_account="4803fc60-d215-471b-879e-1ed16a32a956",
+ point_expires_in_days=7633,
+ point_expires_at="2023-08-12T01:48:34.000000Z",
+ expires_at="2021-07-31T18:48:50.000000Z",
+ usage_limit=7337,
is_onetime=False,
- description="SAD7vVGJBWjZfkSD8toOPMhnrU8KE3wpUrjUs8sizjd1z2FtADy5Q3C5jNeYsU9MpL2cFyrblmxyYFjVJ1ksDCEql8"
+ description="ltrzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gB"
))
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
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ point_amount=528.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"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ point_amount=4212.0,
+ description="fr20CiDsCwyLdW5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNV"
))
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,
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ point_amount=8687.0,
is_onetime=True,
- description="V1aJM8EwjAmRBWR0j6oBZVp6NIn0X9ZNmVTX8mLedIikedmC30IadhoI72wGGaOUhWf0bdfCQE42KbdvTX1CfA4ud9qfvPOSoxFI1UweO2XRdO2hY0pCC8FQpyDiFdYn6ST7vY9DrqkrzPV8XVdQkJOO2v1m3A"
+ description="ewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6"
))
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,
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ point_amount=3155.0,
+ usage_limit=765,
is_onetime=True,
- description="lsFCHOKfiqVfddqZXHyl9FtM3BiAbJG4RFalUDm4QOG36z0pAjeCTeiy225IXwhDEUvB4npxY9ubMTI7cGyilStc03UjxERdVoe6HFhJgKELPhJZ4V6jG807jn4"
+ description="9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsT"
))
self.assertNotEqual(response.status_code, 400)
def test_create_check_20(self):
response = client.send(pp.CreateCheck(
- "b0ded9e1-b593-4cd6-ba88-8079a453b844",
- point_amount=3201.0,
- expires_at="2024-12-17T12:16:09.000000+09:00",
- usage_limit=6576,
- is_onetime=False,
- description="fSZTliY3BcoO0R3ofHxO79PyMPuNxlOm9TssUDzbSN9easDT5qaXE9oVV6dzFzoMTL1nMwdKXWkN1V7WK5N3KEyrv8oYx3uFnGQ6ZUjkvuDzL1kINhlYHLw7e"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ point_amount=7697.0,
+ expires_at="2021-10-08T12:20:58.000000Z",
+ usage_limit=8679,
+ is_onetime=True,
+ description="mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQYSSoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5"
))
self.assertNotEqual(response.status_code, 400)
def test_create_check_21(self):
response = client.send(pp.CreateCheck(
- "b0ded9e1-b593-4cd6-ba88-8079a453b844",
- point_amount=4039.0,
- point_expires_at="2021-10-21T07:15:29.000000+09:00",
- expires_at="2017-04-04T13:28:04.000000+09:00",
- usage_limit=2287,
- is_onetime=False,
- description="z2mwFW2G7CePrEb6qc1vzC0TUXZ7gJxmZbR4QIZxkVF44SiHUuKLea6KXKMTxnuRpjgiKiTeKThsCVHvt0FegcXhZNGhoP3dbXW7imuFIarDCIG12cWukEiPRDcMrsI69et7tZGcxsWh3x4WMFG9JtXGOrRTCDsNsdOxykdQVM02fdP8dPWgv17"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ point_amount=5554.0,
+ point_expires_at="2022-01-18T07:38:26.000000Z",
+ expires_at="2021-12-03T08:50:00.000000Z",
+ usage_limit=2201,
+ is_onetime=True,
+ description="r4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkDTFwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6Z"
))
self.assertNotEqual(response.status_code, 400)
def test_create_check_22(self):
response = client.send(pp.CreateCheck(
- "b0ded9e1-b593-4cd6-ba88-8079a453b844",
- point_amount=103.0,
- point_expires_in_days=1545,
- point_expires_at="2024-11-28T07:21:26.000000+09:00",
- expires_at="2020-08-26T07:40:31.000000+09:00",
- usage_limit=9070,
- is_onetime=False,
- description="VKZ2Yg2XW7z7bqKh4VDMi81vkZfIvFF2aVGBrt4d4BQcmvC7IyShbMWHW8OrxkY"
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ point_amount=2588.0,
+ point_expires_in_days=6373,
+ point_expires_at="2025-11-12T00:19:28.000000Z",
+ expires_at="2022-08-02T23:35:44.000000Z",
+ usage_limit=199,
+ is_onetime=True,
+ description="YhssMJ1c81K9V4uwaN6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTH"
))
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,
+ "30e003ea-f77f-4327-9a8a-05b82727e9f8",
+ point_amount=829.0,
+ bear_point_account="e3fef183-bbe0-4bc5-8f06-ef40e2b14318",
+ point_expires_in_days=479,
+ point_expires_at="2022-11-09T06:28:27.000000Z",
+ expires_at="2024-02-01T19:52:09.000000Z",
+ usage_limit=5088,
+ is_onetime=True,
+ description="dOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3xaXPio5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtK"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_get_check_0(self):
+ response = client.send(pp.GetCheck(
+ "b555b85d-884a-4f92-bab3-60d964d1b788"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_check_0(self):
+ response = client.send(pp.UpdateCheck(
+ "0da2a235-a61d-4fb0-895d-6bf9eae38e8e"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_check_1(self):
+ response = client.send(pp.UpdateCheck(
+ "0da2a235-a61d-4fb0-895d-6bf9eae38e8e",
+ is_disabled=True
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_check_2(self):
+ response = client.send(pp.UpdateCheck(
+ "0da2a235-a61d-4fb0-895d-6bf9eae38e8e",
+ bear_point_account="f3ece267-e6dd-4c26-bb9a-a2145b58b94f",
+ is_disabled=True
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_check_3(self):
+ response = client.send(pp.UpdateCheck(
+ "0da2a235-a61d-4fb0-895d-6bf9eae38e8e",
+ point_expires_in_days=7651,
+ bear_point_account="dc2a9537-2e25-428b-8c79-9759f46c2283",
+ is_disabled=False
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_check_4(self):
+ response = client.send(pp.UpdateCheck(
+ "0da2a235-a61d-4fb0-895d-6bf9eae38e8e",
+ point_expires_at="2022-06-23T02:48:50.000000Z",
+ point_expires_in_days=462,
+ bear_point_account="588f723f-b8d0-4356-a138-15ece3046a56",
+ is_disabled=False
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_check_5(self):
+ response = client.send(pp.UpdateCheck(
+ "0da2a235-a61d-4fb0-895d-6bf9eae38e8e",
+ expires_at="2025-02-12T01:08:23.000000Z",
+ point_expires_at="2025-03-25T06:00:44.000000Z",
+ point_expires_in_days=5220,
+ bear_point_account="426af580-05ff-4d4f-8f31-b1f703405d32",
+ is_disabled=False
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_check_6(self):
+ response = client.send(pp.UpdateCheck(
+ "0da2a235-a61d-4fb0-895d-6bf9eae38e8e",
+ usage_limit=6807,
+ expires_at="2021-10-11T08:20:56.000000Z",
+ point_expires_at="2024-03-14T23:38:51.000000Z",
+ point_expires_in_days=4895,
+ bear_point_account="36989ecd-ea2e-4586-9178-d41a6010f1d0",
+ is_disabled=True
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_check_7(self):
+ response = client.send(pp.UpdateCheck(
+ "0da2a235-a61d-4fb0-895d-6bf9eae38e8e",
+ is_onetime=False,
+ usage_limit=528,
+ expires_at="2021-06-28T16:46:16.000000Z",
+ point_expires_at="2022-04-18T04:46:18.000000Z",
+ point_expires_in_days=7522,
+ bear_point_account="dcc480ac-5d41-4298-b474-fb4dd4432d13",
+ is_disabled=True
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_check_8(self):
+ response = client.send(pp.UpdateCheck(
+ "0da2a235-a61d-4fb0-895d-6bf9eae38e8e",
+ description="t9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1",
+ is_onetime=False,
+ usage_limit=926,
+ expires_at="2022-11-29T22:15:30.000000Z",
+ point_expires_at="2023-07-27T03:52:53.000000Z",
+ point_expires_in_days=9891,
+ bear_point_account="0017f63e-2af1-4d56-b4bf-6b1950a35255",
+ is_disabled=True
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_check_9(self):
+ response = client.send(pp.UpdateCheck(
+ "0da2a235-a61d-4fb0-895d-6bf9eae38e8e",
+ point_amount=774.0,
+ description="a8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0eLyZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4Vsa",
is_onetime=True,
- description="wz6QVslbgmox4sylqaj0m4"
+ usage_limit=9429,
+ expires_at="2021-10-28T01:43:41.000000Z",
+ point_expires_at="2020-04-30T07:58:27.000000Z",
+ point_expires_in_days=4328,
+ bear_point_account="ac255a21-4c61-49b8-885e-2c3b5040773d",
+ is_disabled=False
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_check_10(self):
+ response = client.send(pp.UpdateCheck(
+ "0da2a235-a61d-4fb0-895d-6bf9eae38e8e",
+ money_amount=3664.0,
+ point_amount=7445.0,
+ description="Lfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27",
+ is_onetime=False,
+ usage_limit=2449,
+ expires_at="2020-08-03T06:46:10.000000Z",
+ point_expires_at="2021-03-26T22:06:24.000000Z",
+ point_expires_in_days=2622,
+ bear_point_account="a69aa3f1-6679-49e2-bfd4-193394ba5d95",
+ is_disabled=True
))
self.assertNotEqual(response.status_code, 400)
def test_get_cpm_token_0(self):
response = client.send(pp.GetCpmToken(
- "NHRO5ZxO4O3NjLEysHxuDJ"
+ "FSWXNEvBDebROkI568yn3v"
))
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="dg2WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32R"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_2(self):
response = client.send(pp.ListTransactions(
- types=["cashback"],
- description="EpgsB3u1k6p1M3AaDCD8U2M3hy0vfxtwSmqJp6yKARh5ZRW3Kxq9vutzMeQNTZUuVlFabCqRikwgbBJfMhTrHTPQaRFRzLrLpSH0GqkthOAKJR8VBFpRQxxKQe"
+ types=["exchange_outflow", "cashback", "expire", "payment", "exchange_inflow", "topup"],
+ description="DzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_3(self):
response = client.send(pp.ListTransactions(
- is_modified=True,
- types=["expire"],
- description="TlRS"
+ is_modified=False,
+ types=["exchange_outflow", "payment"],
+ description="UmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQP"
))
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="aa193c82-9a0d-4a02-9ee3-7b584ba8d1c8",
is_modified=False,
- types=["expire", "payment", "cashback"],
- description="FQKcrRJGtyzouTG0fNi1SBzVwDCpwO7mzwiIebwBbgsjluVjYrLryI60OsM6yKV"
+ types=["payment"],
+ description="CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_5(self):
response = client.send(pp.ListTransactions(
- organization_code="NiR4y3oI6DDGG-8-2bm99nV4-6",
- private_money_id="810867ad-d660-425c-8f8f-9b012eadea00",
- is_modified=True,
- types=[],
- description="uCdyUUls75UdwXdZijuTLMB27QQHu"
+ organization_code="88",
+ private_money_id="20b27c25-c3b9-4d4b-8880-685677f487f5",
+ is_modified=False,
+ types=["exchange_outflow", "payment", "cashback"],
+ description="Kt4lw9lRVMCAhIxw"
))
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="eHf4mhVFw",
+ organization_code="X-ht--D-8v77zAmT71--GS-Sh23-x-",
+ private_money_id="2e41e3ce-0b8e-45dc-975e-5a9f80c6650e",
is_modified=False,
- types=["exchange_inflow", "topup", "expire", "exchange_outflow"],
- description="N4lU5sMlhBuyia62bkzzlqIc0ydT6mqiA8RNdj3U"
+ types=["payment", "expire", "exchange_outflow", "exchange_inflow", "cashback", "topup"],
+ description="mOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQ"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_7(self):
response = client.send(pp.ListTransactions(
- terminal_id="803db879-0d54-4a71-8821-93559b8743f2",
- transaction_id="wecpoFXApI",
- organization_code="-3-5n-r--7-0B--g4l-p-2M-z2-s",
- private_money_id="19ab3ea3-5c42-45bf-a247-5a075756b9a1",
- is_modified=True,
- types=[],
- description="gB5z5qrK2mXuD0UWST9ldTa29xEBfE4jaoCgaw81ksIPXpJoHnKZwzgtMuSjmXprQOJIDMtkxUA3CwMowYwsohy6o54EyGXhKAybq9is4L00eclCf6ygQgmzcLUKbT5feGtXeOgCjHXo5HdhOmdyoXuDdYfk0Kl5lQobWMeUr"
+ terminal_id="abe82fa3-1058-4b4e-acb3-8cafc35ed927",
+ transaction_id="fMMea",
+ organization_code="6KS-3R--VY6Id6z7n97",
+ private_money_id="d35dcc20-07f6-4e6c-bde6-90d087e77b5a",
+ is_modified=False,
+ types=["topup", "exchange_inflow", "expire", "cashback"],
+ description="Rs2DjUex8FZcru468uiy2IBQsKNbECUonyUv3nTPZ701h3V5Qywi2pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DC"
))
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="6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXDkJqy1UyPaGHVkyMSdme",
+ terminal_id="430728ed-f65a-4efe-ae25-13a668e4d098",
+ transaction_id="covbEUc9",
+ organization_code="m--8-6yqH--v6f-2-N8a",
+ private_money_id="abaaad6e-6afb-495f-a252-64e190197b0a",
+ is_modified=True,
+ types=["cashback", "expire"],
+ description="KHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFw"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_9(self):
response = client.send(pp.ListTransactions(
- customer_id="bbb9b557-aa05-42df-8d3f-53cca7d69395",
- customer_name="nzw7xhca7VuCPQn3tgDKKsPg1tK8tF9sjwQnBp1nMIeAnY6Xeri5tCJDZsGcVm09iZYX0jHs0ds3Y41lK02B8JXAbkOFKSHaiDX11U4V4mzkiQ9KgdufJCOqQoqEQic9b7rjANNhMIW5uX0nomeRn6xi8YDAJH7HJXNF3Oy8VhKyGvyermibojKhVPIvz1I1HvcbolySSXeAcLtwR",
- terminal_id="f8abfb31-45b1-413a-a4f8-7c0bcaa3c7c4",
- transaction_id="AJrx0pv",
- organization_code="L2-kAk10H",
- private_money_id="e428bf44-d697-4b39-9345-02bb98291d91",
- is_modified=False,
- types=["expire", "cashback", "exchange_outflow", "payment", "exchange_inflow", "topup"],
- description="oiZ9sjCAHNKHbkDV7xD9UgYkUYCn38T5jddnt"
+ customer_id="0bb110d6-754c-4e8f-895a-361c6368ab20",
+ customer_name="nC6rD",
+ terminal_id="0c68d1f9-0059-4ef5-95f5-4d47e49c0fa8",
+ transaction_id="Xn",
+ organization_code="-2-2vc3u-SL-UVy-1J-4",
+ private_money_id="96962c2b-a843-425b-b078-4b4e72e0c1ac",
+ is_modified=True,
+ types=["cashback", "topup"],
+ description="usYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbPQzPRirLmp7HiQaj"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_10(self):
response = client.send(pp.ListTransactions(
- shop_id="565d6596-9682-4c21-8cfc-05fdab2294df",
- customer_id="336ec650-2cb9-4f90-abc0-a2fc4ae562f7",
- customer_name="vyYD1qoSVwF6tpYAPGi6YnBQDM8MlLw6WNmhQ1XbNNNiRTERN1SPoqCbHjtLPWoEeyLYkaItEzRnlzKYkySdT2Gi04uqdwqTzZvD1PwMG5sUToLzAoDfdSJfprAXytppmaGjNfTvZeWlNcmFKOSukr",
- terminal_id="3c8bd2dc-622f-46d0-b0e1-b4539f4ca774",
- transaction_id="C08Ccb",
- organization_code="-F-0F-30--u8E-UjA1yE-86h-",
- private_money_id="53bd51c1-5eed-4b95-8af9-31db853099f5",
- is_modified=True,
- types=[],
- description="v51Dnx9WEjtPQeVvIzNJybaWd5nDKgnWgGOF388caTufq1V8gMtPEUm5qxAkXQdgmA6Ox4Cr60"
+ shop_id="1f208b29-29aa-4618-b05e-d06c2b0d15b0",
+ customer_id="31d3b385-1539-4e26-95a7-0464e92e41b6",
+ customer_name="IiaL5c40GPi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr",
+ terminal_id="debfe830-8f46-4855-b3c4-d9eea2df1a57",
+ transaction_id="KqsDEee",
+ organization_code="-iW73r1Y-bvxv",
+ private_money_id="2c87a899-7567-45b2-b6a0-45c2556c6174",
+ is_modified=False,
+ types=["topup", "exchange_outflow", "expire", "payment"],
+ description="lEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8Z"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_11(self):
response = client.send(pp.ListTransactions(
- per_page=2636,
- shop_id="b460e2fc-852f-4293-bf34-3934c1710ae1",
- customer_id="6712c23b-2383-4130-b136-f2dfc8722833",
- customer_name="ByMdg32LG1oWyluqXLUpztzpGIdluCdFeopAnKzAxtAmMd124CMe44VQ69lqvNuxrP4SroQtmwf2SR0athJ6w5HZkze23HnekgXpUMEHxZW0",
- terminal_id="b235fe8f-b71b-42d4-8063-7f367e7f6c65",
- transaction_id="IuVp5e",
- organization_code="-F5d118kJX-",
- private_money_id="aa60ac47-38c9-4730-a4af-9fb95d54910c",
- is_modified=False,
- types=["topup", "cashback", "expire", "exchange_outflow"],
- description="7shqF2iDJgp3ZW8SpDn16YEfYX3JUUHHD0kbha6rpojFdIy8Lev3F8En8X"
+ per_page=7693,
+ shop_id="fbd6a0e0-3372-4d23-ab95-b071eef4d2bb",
+ customer_id="e9ff71e6-bb4e-4dbe-a7a4-8cffa2826d0d",
+ customer_name="GAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5Bazm",
+ terminal_id="dcc9becb-ce3e-47f1-897d-62a08961c648",
+ transaction_id="UlvI3TLRDU",
+ organization_code="1T54RprF9e",
+ private_money_id="9921668a-1c8c-4b66-a8c6-1f5b26c71db0",
+ is_modified=True,
+ types=["payment", "exchange_outflow", "cashback", "topup", "expire", "exchange_inflow"],
+ description="Rg4eijui0x4AzukqXii06wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyB"
))
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=5957,
+ per_page=1458,
+ shop_id="25a1b673-3f5f-40a3-914a-98fc7e5cba0a",
+ customer_id="e3566da9-311c-4e37-916b-d3b6fa03dae4",
+ customer_name="P6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR88F7Ubd6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK775FUjJKUwWsCFULHC5xu9xwKzEEFr",
+ terminal_id="8b340176-3230-4a84-86f0-96b569f2b4d6",
+ transaction_id="2XFS",
+ organization_code="80-tv9Fy1",
+ private_money_id="ffac6395-94ec-438f-9b99-6ee786500033",
is_modified=False,
- types=["expire", "topup", "exchange_inflow", "cashback"],
- description="Qy1efJIm6p2nFeDatBkmxJUfJ8iWJ5x76ilzTFGw7NqxtlVIVfYnX2Qn7EnOChsUwktnh8VjRFve7MdNMBgFvJyEEmkecVySQ3ucJUKFqVhyrEcw3WNc5IXHiI2Hhl1OjgN6fFukYqihBSq8D0896GNWlaYQ8akcWxDZkhO"
+ types=["topup", "exchange_inflow"],
+ description="jzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUt"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_13(self):
response = client.send(pp.ListTransactions(
- to="2017-06-15T20:11:56.000000+09:00",
- page=2800,
- per_page=6267,
- shop_id="3f07546b-e020-4dfa-91aa-75176d0dfc65",
- customer_id="fd14dc73-60f8-42b2-ad8c-c0ee944b4d65",
- customer_name="2LIVGGp8Vx16M91diHUGfol8Mhj42rW4z5Wjzvhmx48Q4mMZZBBUosSdONTSqEGwk1DyPJJ9VhetNR8hTecHZnx73cRhZIXdPCHq2mv2UAXA",
- terminal_id="2506d490-38f4-4fba-b13d-dd72ed30a710",
- transaction_id="kbL0z4gSPz",
- organization_code="--9-5jKh-66tZieYA7-E",
- private_money_id="3f07627c-77ba-473d-8747-2571b3e7f3e5",
+ to="2022-02-07T22:47:04.000000Z",
+ page=812,
+ per_page=771,
+ shop_id="8e5fd89b-2b53-49bb-b81f-9d5341ae038f",
+ customer_id="63f4bd61-127c-44de-b53e-1571a8764f09",
+ customer_name="YfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua",
+ terminal_id="8e1a411c-2bbb-45e0-855b-273288fccdd7",
+ transaction_id="PHw1U",
+ organization_code="99q-L-I7f5-U2--fa-Lleb-7e-5-",
+ private_money_id="de760078-73fb-4ab5-8577-64070047582e",
is_modified=False,
- types=["exchange_outflow", "cashback", "expire", "topup"],
- description="DzJGZ9TM0TySjAlV"
+ types=["exchange_inflow", "exchange_outflow", "payment", "expire", "cashback"],
+ description="5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiX"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_14(self):
response = client.send(pp.ListTransactions(
- start="2022-08-21T05:02:04.000000+09:00",
- to="2023-08-22T00:59:39.000000+09:00",
- page=7332,
- per_page=726,
- shop_id="bbfaa117-03a9-4fa4-8e3c-44e4ca9e2e88",
- customer_id="dfffc54f-10a5-4bc3-888e-a5167f459165",
- customer_name="kFyfPkq8IYlCnIEfVjyhIzvswfx06lwewFlBxBPgZymInLxkpSlp0CcXJpCFZzCR1WWP7a67366cHWhkYkA6trhbS9trPinjNzKWZdpxUSeeatx6TLoIfkctcu",
- terminal_id="8435a804-3c3d-4433-85d4-18eba3009519",
- transaction_id="D",
- organization_code="-4--jJ-64eW6-Tp-m-V0HjUu9-",
- private_money_id="95c84b40-9503-4a9a-bdf4-ff2d34fc2643",
+ start="2025-09-04T12:32:59.000000Z",
+ to="2025-10-28T02:35:46.000000Z",
+ page=723,
+ per_page=2710,
+ shop_id="4a4ab0f2-d9fc-4b30-be59-5496244cb9f4",
+ customer_id="a380ba3c-56b6-45ae-8fdf-ed9ddd0b2f6e",
+ customer_name="t0eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuKl",
+ terminal_id="1a939b17-6eee-4066-95ce-fcae5000d78a",
+ transaction_id="TWFTkh4",
+ organization_code="W-i-MgUl-7-e-2lbp47YIY-S-",
+ private_money_id="3d39693e-5973-446c-84bb-a724682b8804",
is_modified=False,
- types=["expire", "topup", "exchange_outflow", "exchange_inflow"],
- description="C2YnEIi9qrFhHU4UChBktVJM6Ehoat5RskjtjMRgfY9KAojiVjkW"
+ types=["exchange_outflow", "expire", "exchange_inflow", "payment", "topup"],
+ description="JS"
))
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"
+ "54834b5c-2549-4c46-95f2-4d29e2e821d4",
+ "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5",
+ "6dd14e7e-5638-4902-81cb-a0185959ff6d"
))
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"
+ "54834b5c-2549-4c46-95f2-4d29e2e821d4",
+ "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5",
+ "6dd14e7e-5638-4902-81cb-a0185959ff6d",
+ description="NYXCce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVD"
))
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"
+ "54834b5c-2549-4c46-95f2-4d29e2e821d4",
+ "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5",
+ "6dd14e7e-5638-4902-81cb-a0185959ff6d",
+ point_expires_at="2022-07-13T19:02:34.000000Z",
+ description="Mjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZh"
))
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"
+ "54834b5c-2549-4c46-95f2-4d29e2e821d4",
+ "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5",
+ "6dd14e7e-5638-4902-81cb-a0185959ff6d",
+ point_amount=9595,
+ point_expires_at="2021-06-05T21:04:24.000000Z",
+ description="71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vig"
))
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"
+ "54834b5c-2549-4c46-95f2-4d29e2e821d4",
+ "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5",
+ "6dd14e7e-5638-4902-81cb-a0185959ff6d",
+ money_amount=6524,
+ point_amount=4279,
+ point_expires_at="2025-07-18T02:38:31.000000Z",
+ description="Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSao"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_transaction_group_0(self):
+ response = client.send(pp.CreateTransactionGroup(
+ "etupiLJGKA08k"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_show_transaction_group_0(self):
+ response = client.send(pp.ShowTransactionGroup(
+ "d0d65bd5-d43d-4b83-8c74-e827e9efb944"
))
self.assertNotEqual(response.status_code, 400)
@@ -1209,920 +1563,1185 @@ def test_list_transactions_v2_0(self):
def test_list_transactions_v2_1(self):
response = client.send(pp.ListTransactionsV2(
- per_page=728
+ per_page=985
))
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="49cf10ed-2837-4fed-bec7-06713e29469a",
+ per_page=947
))
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="007df6b0-8d89-4c43-a0a8-ee63a90bceff",
+ prev_page_cursor_id="18220963-9ef1-4f59-8fc6-70f42ca0a17b",
+ per_page=159
))
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-03-11T13:10:00.000000Z",
+ next_page_cursor_id="923612f1-8ce8-4a5d-9fa4-994d4451164c",
+ prev_page_cursor_id="941a419c-cb79-4fb1-a69f-ab2798fbf624",
+ per_page=735
))
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-07-22T10:15:47.000000Z",
+ to="2026-02-02T07:49:06.000000Z",
+ next_page_cursor_id="2b1ca2cf-2e83-413b-a711-2207d10f2627",
+ prev_page_cursor_id="4df4117e-0612-4887-897e-e12b4b8efaa6",
+ per_page=774
))
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=["exchange_outflow", "expire"],
+ start="2020-03-25T16:19:15.000000Z",
+ to="2024-05-12T13:36:27.000000Z",
+ next_page_cursor_id="1c04bcee-625a-4532-9b6d-54f706e509ba",
+ prev_page_cursor_id="f88c7b11-fc9c-4b80-bba0-705472f62965",
+ per_page=37
))
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=["cashback", "payment", "topup", "expire", "exchange_outflow"],
+ start="2022-03-19T20:15:11.000000Z",
+ to="2020-01-06T14:33:42.000000Z",
+ next_page_cursor_id="375e7472-9863-4860-849e-595e067fbc3b",
+ prev_page_cursor_id="20198206-d74c-4837-abed-79efffeb87f3",
+ per_page=537
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_v2_8(self):
response = client.send(pp.ListTransactionsV2(
- transaction_id="Leg5dXf",
+ transaction_id="loW0gLyNig",
is_modified=True,
- types=[],
- start="2021-08-22T00:03:33.000000+09:00",
- to="2020-05-09T09:50:53.000000+09:00",
- next_page_cursor_id="59d05ac4-417f-4c10-8d1f-fd95efe040e4",
- prev_page_cursor_id="10b62b00-d792-47e2-b891-c453cf6b7021",
- per_page=746
+ types=["expire", "exchange_outflow"],
+ start="2020-04-15T13:30:37.000000Z",
+ to="2024-10-21T05:34:11.000000Z",
+ next_page_cursor_id="3f3af5fc-b959-40ba-b7c7-dc2cd36fe104",
+ prev_page_cursor_id="0986abb9-eae2-444c-be46-6ce6e4fb9348",
+ per_page=458
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_v2_9(self):
response = client.send(pp.ListTransactionsV2(
- description="dHtUdWqjwNZ6SqXcjRYXWjjppT0r9xvCuvBOfsidrDI9VlsfxLxW5axZvNGABU1Kq4dKF1bCFldqrEeXCX83UsZSPbix6b1Za3ly7V",
- transaction_id="1xEB",
+ description="bs98VpOgmc8pS7WZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9oA142xLkpis0qy5MfISyoLq",
+ transaction_id="EQKhMnAGB",
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=["payment", "exchange_inflow", "exchange_outflow", "expire"],
+ start="2025-01-11T01:31:49.000000Z",
+ to="2022-01-30T03:43:24.000000Z",
+ next_page_cursor_id="429c6fe5-ef89-4282-b02b-ddfe1275ae74",
+ prev_page_cursor_id="8af39680-feaf-420d-a0f2-2c2e14c0e8a5",
+ per_page=161
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_v2_10(self):
response = client.send(pp.ListTransactionsV2(
- customer_name="RceMuSvImdDq9y3aEus7kZPbP6pY7uTyJAbvra0dcpr2XBaxBtLUqtpR4s1JU0lVQ2OypewcGn6EYrIoiJUtnz4tPDjzGeH1vMI9teS2D85S1UHA16vfzALVhDfz",
- description="Jqhsy99eYUXwCEgrx3b6fZBGl5iNgWbOvie519sB5ATfDwJwr3eQ20YGcyYu0bMGv3vztYfqlxsbOENjEAJX3lDTAofzZK4Rxx8sLYfBb6BjvrBrNNM0rEDhKG45tzzgCXrxrouPH3h",
- transaction_id="I04AO4rgT",
+ customer_name="ugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEII",
+ description="prQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrL",
+ transaction_id="r4lrAg",
is_modified=True,
- types=["expire", "exchange_outflow", "payment", "cashback"],
- start="2024-07-26T20:01:43.000000+09:00",
- to="2020-08-20T21:42:17.000000+09:00",
- next_page_cursor_id="941ef2f1-9cea-47bd-87fb-4acc6bcb1c50",
- prev_page_cursor_id="1dde2b95-6a30-4fc4-82d5-0387e9a02e6e",
- per_page=456
+ types=["payment", "expire", "exchange_outflow", "topup", "exchange_inflow", "cashback"],
+ start="2024-01-21T19:12:21.000000Z",
+ to="2021-01-10T18:58:33.000000Z",
+ next_page_cursor_id="c7b3c8dc-0ae0-4312-8543-6cc47f989efc",
+ prev_page_cursor_id="9d55c712-30f0-4312-98b8-ba0201a288ce",
+ per_page=682
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_v2_11(self):
response = client.send(pp.ListTransactionsV2(
- customer_id="01138506-06f8-4697-973a-73c5b9fe2fec",
- customer_name="SvEGfkoczpVf2XfhCesDbLNG0um3YX4ee6SkSSSI0RCCs8xN6z62EIsVi251R9OVM6dJXfTSVkQAgLF0UCGkzWfvHQLNpl08",
- description="kirPvpqWe6LFMxqHgshQQxZyXH54xcjjzE4jf3bC1uhrBdvXqhm8jwzIEhcNYML2OSzpp2xgjGNFVHJxj8ajHmdLScmLSMjxtIdUuX8NpagwVisjQjWa0Ga7Mr0",
- transaction_id="bte93",
- is_modified=False,
- types=[],
- start="2023-12-05T01:05:41.000000+09:00",
- to="2025-07-15T18:47:09.000000+09:00",
- next_page_cursor_id="5112bfed-8bbd-45ba-8f09-c7c5be7e3368",
- prev_page_cursor_id="d93f74d8-963f-426e-8ef9-8a3e8a658155",
- per_page=930
+ customer_id="c13d55f9-6e22-465c-bb37-5845aebb53f8",
+ customer_name="zLyYmVuuwRZjnfSOf90ILh1FnEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34z4jE8W9hhkpYWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyI",
+ description="UvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHy",
+ transaction_id="E",
+ is_modified=True,
+ types=["expire", "topup", "exchange_outflow"],
+ start="2024-11-07T22:53:16.000000Z",
+ to="2021-02-26T06:23:07.000000Z",
+ next_page_cursor_id="ca458894-2b58-41f9-b97e-aaf71488fb0b",
+ prev_page_cursor_id="8a5feb78-129a-4d66-81f3-2291dac0ff9d",
+ per_page=887
))
self.assertNotEqual(response.status_code, 400)
def test_list_transactions_v2_12(self):
response = client.send(pp.ListTransactionsV2(
- terminal_id="6877d983-9c44-4572-b38c-f2b0646ed5d9",
- customer_id="150bea29-3953-4b8a-9408-acf986e34ee0",
- customer_name="NNnFCcwr1avxToYBT4VEV6evoILJv7tTWIqRKgT33Bi9tzz6Ttxk7d6FPiA0lsYPm9uy3bOLitkN0",
- description="KHj5fbn2v2B0UJuNrXCxgjdk6CWOkAWhJ0Lot3",
- transaction_id="toFslAl38",
+ terminal_id="a472b180-bb51-47a8-9177-18882eab105f",
+ customer_id="ebb2aa0b-77b8-409e-a51b-cd4ede4aaed8",
+ customer_name="tPfKAW4UwDxtqXzHNdytk1inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3S",
+ description="8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCO",
+ transaction_id="N",
is_modified=True,
- types=["exchange_inflow", "exchange_outflow", "cashback", "expire"],
- start="2021-06-30T14:29:44.000000+09:00",
- to="2023-04-27T20:48:19.000000+09:00",
- next_page_cursor_id="05eb8b06-89ea-44f9-b387-f2834ee3403c",
- prev_page_cursor_id="6f05a394-993e-4220-9eea-4e650951e99d",
- per_page=506
+ types=["payment", "topup", "exchange_inflow", "exchange_outflow", "expire"],
+ start="2021-02-13T12:38:49.000000Z",
+ to="2020-02-28T12:56:29.000000Z",
+ next_page_cursor_id="0d2dac1a-7af6-4a85-9798-1635fea7f992",
+ prev_page_cursor_id="5cd5b912-cbb3-492e-a2fd-bce59357db17",
+ per_page=569
))
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="0c1df943-2db6-4bb8-af67-f93ae96bc101",
+ terminal_id="930ecb4c-f736-4a3a-a95e-6f6ee76bf53e",
+ customer_id="73568008-d85e-48e8-b368-a89faca1ad62",
+ customer_name="A1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXUyJ1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9",
+ description="P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjo",
+ transaction_id="EVHRFL",
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=["topup", "exchange_outflow", "exchange_inflow", "expire"],
+ start="2023-04-29T14:33:02.000000Z",
+ to="2021-12-05T02:53:11.000000Z",
+ next_page_cursor_id="811db8ea-7040-40af-af9e-36564903187f",
+ prev_page_cursor_id="af4ff12c-de0e-4001-abb2-df9b284160a3",
+ per_page=99
))
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="YgJX--4",
+ shop_id="46348da0-6b21-49dc-b89b-19016100524a",
+ terminal_id="84a16789-e69e-48ce-851e-8d97c4390188",
+ customer_id="8b1d56a5-0166-4028-8d90-5effc90bb837",
+ customer_name="phEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTqnNfSRiXL",
+ description="6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3jya01cL7edhmrVi5NIsblUeDquiQL8YRre",
+ transaction_id="LAWMJ",
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=["exchange_inflow", "expire", "topup", "payment"],
+ start="2023-09-08T05:31:06.000000Z",
+ to="2025-05-31T17:47:53.000000Z",
+ next_page_cursor_id="99f1d143-eef4-4fd9-a3e2-34906092b6c8",
+ prev_page_cursor_id="a372187b-a3dc-4b6c-8ab2-952dd2e6ed8e",
+ per_page=108
))
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="c2194274-76c6-46bc-9c31-b219b80dd136",
+ organization_code="X0-yFm0--ko3w-u2",
+ shop_id="9739e1a5-4a55-4ef4-baed-740a4017c803",
+ terminal_id="b2081f79-0f19-4104-9920-ae6d81750f73",
+ customer_id="8773e519-2764-4495-baa3-7340cf7ee2a5",
+ customer_name="hUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD",
+ description="3BTnNcaIv4Cy2qiGNeSDJueWNAF2iLhkB08mWoSEw4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioe",
+ transaction_id="Bno",
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=["topup", "exchange_inflow", "expire", "exchange_outflow", "payment"],
+ start="2021-05-27T18:11:52.000000Z",
+ to="2025-05-29T15:00:44.000000Z",
+ next_page_cursor_id="29f2e505-1bee-4cf9-8e5a-6a354d01fb19",
+ prev_page_cursor_id="c4111f51-e59b-49bb-b716-0837403a998f",
+ per_page=470
))
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=172
))
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="d67b2b98-1a30-4bb4-a12c-e9de9b83b890",
+ per_page=294
))
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="89ee572d-fda9-4a17-8c11-9273ef9d6201",
+ prev_page_cursor_id="0d9b8916-d33d-4134-a86d-f4f9f7ea0b34",
+ per_page=196
))
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-04-14T18:52:15.000000Z",
+ next_page_cursor_id="9dd2b302-c0a0-4187-9a06-22386fc91c89",
+ prev_page_cursor_id="39bf743b-50a8-4640-970d-d209a59596ee",
+ per_page=768
))
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="2020-11-28T04:58:41.000000Z",
+ to="2022-11-18T14:31:31.000000Z",
+ next_page_cursor_id="37f29b9a-46d2-447c-a627-628c1213eafa",
+ prev_page_cursor_id="deb25a32-79ec-48ab-973d-4d654ae879fd",
+ per_page=40
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_bill_transactions_6(self):
+ response = client.send(pp.ListBillTransactions(
+ is_modified=False,
+ start="2025-08-10T22:47:43.000000Z",
+ to="2025-08-22T10:49:07.000000Z",
+ next_page_cursor_id="66054429-17f6-4f8f-a27b-4dafc20f462a",
+ prev_page_cursor_id="36dbd131-27d2-4fbf-b7cf-c8b6fe28e89d",
+ per_page=684
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_bill_transactions_7(self):
+ response = client.send(pp.ListBillTransactions(
+ bill_id="3af9f151-0d4f-46e7-9fe2-e79e1ba5e398",
+ is_modified=True,
+ start="2021-11-18T09:05:51.000000Z",
+ to="2023-01-28T04:13:11.000000Z",
+ next_page_cursor_id="7c39ceb2-8013-48fa-b087-0a63a3364514",
+ prev_page_cursor_id="ef3f7b13-878b-44e1-8c9d-7097cb72567b",
+ per_page=62
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_bill_transactions_8(self):
+ response = client.send(pp.ListBillTransactions(
+ transaction_id="92d57578-8c3d-49af-a1b2-dc23e2e92ed1",
+ bill_id="23541093-62da-418e-ade1-68a22cdecd8c",
+ is_modified=True,
+ start="2021-03-13T05:57:16.000000Z",
+ to="2024-08-01T12:20:58.000000Z",
+ next_page_cursor_id="61162d92-ba36-4f43-a4d2-cfefb551643a",
+ prev_page_cursor_id="58f1e9b8-ed11-4aee-b99a-304a8e4a549c",
+ per_page=336
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_bill_transactions_9(self):
+ response = client.send(pp.ListBillTransactions(
+ description="Y3f9djMgk8QSZwJ1udEIb7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPV",
+ transaction_id="14209eef-71f9-40eb-a274-c9c1bc96f8bf",
+ bill_id="068c6b04-1a2d-4f02-8136-989d80140309",
+ is_modified=True,
+ start="2023-12-17T23:24:39.000000Z",
+ to="2023-09-16T02:00:55.000000Z",
+ next_page_cursor_id="7450b440-f8c4-4161-b991-1b71f2bf20d1",
+ prev_page_cursor_id="4edd4acc-d841-46bb-870c-f6cb8b4e383e",
+ per_page=274
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_bill_transactions_10(self):
+ response = client.send(pp.ListBillTransactions(
+ terminal_id="d79fa2d8-890b-4579-bf84-e27d0077f4bd",
+ description="hWYdlIHfSBBKI1KQl4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ",
+ transaction_id="c6f3b7c0-8b3a-478e-b6ab-07cb21ef5869",
+ bill_id="0634d4f7-6f36-4730-85cb-448b9758798e",
+ is_modified=True,
+ start="2024-09-11T09:02:47.000000Z",
+ to="2022-12-05T08:51:58.000000Z",
+ next_page_cursor_id="fa08d446-49dd-4e5c-8c30-1c1c510010b5",
+ prev_page_cursor_id="2d65e7db-21c1-49d2-9916-3e538fbebde9",
+ per_page=83
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_bill_transactions_11(self):
+ response = client.send(pp.ListBillTransactions(
+ customer_name="2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1Lc",
+ terminal_id="954d58ca-1e9e-48cd-b9bb-4edde1d688b9",
+ description="jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7e1DJRmW",
+ transaction_id="ab7ef1c3-e088-445d-b626-062c3721cb7b",
+ bill_id="4d3fab91-09d8-4a21-9635-8e668164a183",
+ is_modified=False,
+ start="2020-05-06T02:19:08.000000Z",
+ to="2026-02-16T03:08:31.000000Z",
+ next_page_cursor_id="11a3288a-000e-4d4e-8dc6-3e788aa25108",
+ prev_page_cursor_id="b80e2d07-b6de-4e52-9e98-3392e0673887",
+ per_page=469
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_bill_transactions_12(self):
+ response = client.send(pp.ListBillTransactions(
+ customer_id="2c40e6a9-43d4-4cd7-8f23-b5beb0240214",
+ customer_name="Kh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM2DvQSu06FE8juzeNINZktFZU0JpHpSr",
+ terminal_id="697748f0-f84e-4a62-ab0f-7c4696650bb8",
+ description="3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ",
+ transaction_id="7d5b37b1-6194-49d9-9188-d3a6caa74dfb",
+ bill_id="b6cfc3e0-dfc1-4074-a602-59a051440527",
+ is_modified=True,
+ start="2024-05-10T15:20:18.000000Z",
+ to="2024-07-09T05:23:19.000000Z",
+ next_page_cursor_id="4024f1d0-c666-4f3e-8859-565b47449de5",
+ prev_page_cursor_id="94906c9c-a365-47ca-9716-1fe97ee0bdca",
+ per_page=960
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_bill_transactions_13(self):
+ response = client.send(pp.ListBillTransactions(
+ shop_id="67947e4c-41a5-4f84-aedc-50b17dc4491c",
+ customer_id="a98cca54-164f-4457-8856-ed4e469d1871",
+ customer_name="KCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkX",
+ terminal_id="917475d7-ce04-4c7c-83b5-d61bdf4870f4",
+ description="LFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompota",
+ transaction_id="5b5628ca-7396-47a0-a140-2b42c3c8c19e",
+ bill_id="f3655acc-a9fe-4288-b903-3abdaf342a3e",
+ is_modified=True,
+ start="2022-08-05T00:23:46.000000Z",
+ to="2020-01-19T03:57:44.000000Z",
+ next_page_cursor_id="f05a7acb-518d-4c4e-b137-35ba7a0e1d27",
+ prev_page_cursor_id="fb74bc66-724c-4bf8-908e-ec1a4f26a319",
+ per_page=86
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_bill_transactions_14(self):
+ response = client.send(pp.ListBillTransactions(
+ organization_code="-Y-n0l-P3xURH-0-im-5DoJ",
+ shop_id="b8670c72-5746-432e-8076-7413282439de",
+ customer_id="838b601d-41ec-49d1-8286-2d1f9daa6049",
+ customer_name="X1JBgnrD1yLFl",
+ terminal_id="e44619a2-394c-4b80-93a8-69b51090f911",
+ description="kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rWWdK2ybDtXJiikZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP",
+ transaction_id="2b76b1b1-d1fa-4ac9-9ae4-5e2474d4d22b",
+ bill_id="feaf383a-6134-4fa7-adad-334ccd261880",
+ is_modified=False,
+ start="2025-12-24T13:55:22.000000Z",
+ to="2020-02-09T14:22:59.000000Z",
+ next_page_cursor_id="447b65fa-5721-4ba6-9748-7e9f71904270",
+ prev_page_cursor_id="b07ac300-ac4f-4b1f-a79d-2ceb59a03de8",
+ per_page=226
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_bill_transactions_15(self):
+ response = client.send(pp.ListBillTransactions(
+ private_money_id="e56aca9a-b961-4788-b3bc-bd082f3113bf",
+ organization_code="-xF0G6-4Kh---h0Y-NWI--R",
+ shop_id="c005f66f-0eff-456a-ba0b-8a1a1dc33a4f",
+ customer_id="e65ac11c-e8a0-4c24-9a5a-582628570ef2",
+ customer_name="LxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMM",
+ terminal_id="1a62d289-be3b-4ec5-b90c-3ad6417afa9f",
+ description="ApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnL",
+ transaction_id="8255095a-392f-44a3-87d7-a16d1561ec22",
+ bill_id="0bd4240c-36c7-4b3a-b604-765484915971",
+ is_modified=False,
+ start="2020-07-01T03:03:44.000000Z",
+ to="2021-10-22T15:03:27.000000Z",
+ next_page_cursor_id="66f53588-544c-42a4-9bd1-0d7713368861",
+ prev_page_cursor_id="67d01e06-b05a-4602-b9f6-7dcf6d06ffee",
+ per_page=607
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_topup_transaction_0(self):
+ response = client.send(pp.CreateTopupTransaction(
+ "7d4139f6-fc36-49b7-b381-4a706a5a0bef",
+ "efa305d2-c76f-4a88-903c-901125c8bc0b",
+ "090cc8cb-ff55-4be7-be2f-24091ab63957"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_topup_transaction_1(self):
+ response = client.send(pp.CreateTopupTransaction(
+ "7d4139f6-fc36-49b7-b381-4a706a5a0bef",
+ "efa305d2-c76f-4a88-903c-901125c8bc0b",
+ "090cc8cb-ff55-4be7-be2f-24091ab63957",
+ request_id="df1f28f6-369b-4459-adab-d21be0eaf756"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_topup_transaction_2(self):
+ response = client.send(pp.CreateTopupTransaction(
+ "7d4139f6-fc36-49b7-b381-4a706a5a0bef",
+ "efa305d2-c76f-4a88-903c-901125c8bc0b",
+ "090cc8cb-ff55-4be7-be2f-24091ab63957",
+ metadata="{\"key\":\"value\"}",
+ request_id="f4479705-b513-4cbf-9da0-ea3e828591fe"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_topup_transaction_3(self):
+ response = client.send(pp.CreateTopupTransaction(
+ "7d4139f6-fc36-49b7-b381-4a706a5a0bef",
+ "efa305d2-c76f-4a88-903c-901125c8bc0b",
+ "090cc8cb-ff55-4be7-be2f-24091ab63957",
+ description="a3Gv9xbf",
+ metadata="{\"key\":\"value\"}",
+ request_id="a6c9f112-347a-4a82-9e28-90805408f6f6"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_topup_transaction_4(self):
+ response = client.send(pp.CreateTopupTransaction(
+ "7d4139f6-fc36-49b7-b381-4a706a5a0bef",
+ "efa305d2-c76f-4a88-903c-901125c8bc0b",
+ "090cc8cb-ff55-4be7-be2f-24091ab63957",
+ point_expires_at="2023-04-27T15:17:38.000000Z",
+ description="ScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7",
metadata="{\"key\":\"value\"}",
- request_id="f1ee1412-40fb-491d-b13a-170163f455a8"
+ request_id="4cd8ef50-160b-4b4f-bd1a-98fe93f2da19"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_topup_transaction_5(self):
+ response = client.send(pp.CreateTopupTransaction(
+ "7d4139f6-fc36-49b7-b381-4a706a5a0bef",
+ "efa305d2-c76f-4a88-903c-901125c8bc0b",
+ "090cc8cb-ff55-4be7-be2f-24091ab63957",
+ point_amount=7863,
+ point_expires_at="2023-10-13T06:04:51.000000Z",
+ description="9YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr2",
+ metadata="{\"key\":\"value\"}",
+ request_id="8b9f6fe0-4c3d-4d32-a05f-c8309c7dbbfe"
))
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",
+ "7d4139f6-fc36-49b7-b381-4a706a5a0bef",
+ "efa305d2-c76f-4a88-903c-901125c8bc0b",
+ "090cc8cb-ff55-4be7-be2f-24091ab63957",
+ money_amount=5492,
+ point_amount=9690,
+ point_expires_at="2020-04-09T13:01:51.000000Z",
+ description="ZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLvJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1",
metadata="{\"key\":\"value\"}",
- request_id="9024ecbb-e800-453b-a6e2-b45d82161f75"
+ request_id="e5beb83a-f718-45be-bba6-b70bfefea7da"
))
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",
+ "7d4139f6-fc36-49b7-b381-4a706a5a0bef",
+ "efa305d2-c76f-4a88-903c-901125c8bc0b",
+ "090cc8cb-ff55-4be7-be2f-24091ab63957",
+ bear_point_shop_id="d85337a7-0bf0-4828-a870-32cccc125785",
+ money_amount=1212,
+ point_amount=8573,
+ point_expires_at="2025-02-13T14:13:23.000000Z",
+ description="v7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7nFXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUIL",
metadata="{\"key\":\"value\"}",
- request_id="457a8c16-41f4-473d-a56a-e67baa506a4f"
+ request_id="94a3bb0e-d04f-4292-a9fa-197fa4d67076"
))
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"
+ "95ca9e66-7801-478b-8a0c-9662a40fb329",
+ "c91511d4-027c-41df-9b9a-9c980be0b22b"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_topup_transaction_with_check_1(self):
+ response = client.send(pp.CreateTopupTransactionWithCheck(
+ "95ca9e66-7801-478b-8a0c-9662a40fb329",
+ "c91511d4-027c-41df-9b9a-9c980be0b22b",
+ request_id="550a3192-3d72-40e8-90ae-50dc19d41c5c"
))
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
+ "fb747dfb-b882-4812-b01f-db6bc85e6b62",
+ "aac85084-7656-43d0-b501-17b6ab1d9e60",
+ "08736525-1748-4f51-969d-72749873fc29",
+ 634
))
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"
+ "fb747dfb-b882-4812-b01f-db6bc85e6b62",
+ "aac85084-7656-43d0-b501-17b6ab1d9e60",
+ "08736525-1748-4f51-969d-72749873fc29",
+ 634,
+ coupon_id="eede3abb-921a-47ec-b1b6-8a9589f647a0"
))
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,
+ "fb747dfb-b882-4812-b01f-db6bc85e6b62",
+ "aac85084-7656-43d0-b501-17b6ab1d9e60",
+ "08736525-1748-4f51-969d-72749873fc29",
+ 634,
+ strategy="money-only",
+ coupon_id="d304c1a5-c989-4e26-9dcb-d03c1a607c88"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_payment_transaction_3(self):
+ response = client.send(pp.CreatePaymentTransaction(
+ "fb747dfb-b882-4812-b01f-db6bc85e6b62",
+ "aac85084-7656-43d0-b501-17b6ab1d9e60",
+ "08736525-1748-4f51-969d-72749873fc29",
+ 634,
+ request_id="eeb50d6f-a624-4fc2-8c60-05fd87a9d7be",
+ strategy="money-only",
+ coupon_id="941a3e0a-b77a-421f-8f2a-1fbf86cb7522"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_payment_transaction_4(self):
+ response = client.send(pp.CreatePaymentTransaction(
+ "fb747dfb-b882-4812-b01f-db6bc85e6b62",
+ "aac85084-7656-43d0-b501-17b6ab1d9e60",
+ "08736525-1748-4f51-969d-72749873fc29",
+ 634,
products=[{"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}],
- request_id="b06d8cdc-54b4-4bed-9248-b320dcf58d8a"
+ request_id="3f59ba5a-ec47-48be-8a5a-78311427dde8",
+ strategy="money-only",
+ coupon_id="bb435cb8-8ede-4e6b-ad33-f76d5398a95b"
))
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,
+ "fb747dfb-b882-4812-b01f-db6bc85e6b62",
+ "aac85084-7656-43d0-b501-17b6ab1d9e60",
+ "08736525-1748-4f51-969d-72749873fc29",
+ 634,
metadata="{\"key\":\"value\"}",
products=[{"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}],
- request_id="38ea6024-15d4-4d61-8a86-423af8ea204f"
+ request_id="bcd57ad0-3440-4d41-9d1a-9c141202f1ba",
+ strategy="point-preferred",
+ coupon_id="954cb430-4355-41cd-9cfe-3c11b9b4215d"
))
self.assertNotEqual(response.status_code, 400)
- def test_create_payment_transaction_4(self):
+ def test_create_payment_transaction_6(self):
response = client.send(pp.CreatePaymentTransaction(
- "66b1b6e3-f490-444d-9c3c-7f52a4ee1dbc",
- "4a6f0990-2205-4e7a-bfef-08f7dd62f10a",
- "1070e59d-0123-45bf-a02e-32724a291586",
- 9028,
- description="MMolvbDp36ZS9Ve1qo3bvmXucCaFZQN2ap2j3Mr8o8HkBWUUKfQKZC3BSMS3hsgpJcO",
+ "fb747dfb-b882-4812-b01f-db6bc85e6b62",
+ "aac85084-7656-43d0-b501-17b6ab1d9e60",
+ "08736525-1748-4f51-969d-72749873fc29",
+ 634,
+ description="nnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh",
metadata="{\"key\":\"value\"}",
products=[{"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "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="f9d5e632-3ab7-41e3-a69d-9e1e7a0599d5",
+ strategy="point-preferred",
+ coupon_id="2cc88fcd-7223-4f75-9131-377b11b403ae"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_payment_transaction_with_bill_0(self):
+ response = client.send(pp.CreatePaymentTransactionWithBill(
+ "258443f4-4bb8-4809-bda9-ae2e55477d0d",
+ "45ffa480-268c-4cb3-a7a5-66fdc3f4296f"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_payment_transaction_with_bill_1(self):
+ response = client.send(pp.CreatePaymentTransactionWithBill(
+ "258443f4-4bb8-4809-bda9-ae2e55477d0d",
+ "45ffa480-268c-4cb3-a7a5-66fdc3f4296f",
+ strategy="point-preferred"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_payment_transaction_with_bill_2(self):
+ response = client.send(pp.CreatePaymentTransactionWithBill(
+ "258443f4-4bb8-4809-bda9-ae2e55477d0d",
+ "45ffa480-268c-4cb3-a7a5-66fdc3f4296f",
+ request_id="40bd1e98-2901-43e9-9a74-f3c2f1444c41",
+ strategy="money-only"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_payment_transaction_with_bill_3(self):
+ response = client.send(pp.CreatePaymentTransactionWithBill(
+ "258443f4-4bb8-4809-bda9-ae2e55477d0d",
+ "45ffa480-268c-4cb3-a7a5-66fdc3f4296f",
+ metadata="{\"key\":\"value\"}",
+ request_id="71d03407-a6cb-453a-8a43-e24b7fc35165",
+ 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
+ "Np7Z6KeHafoOKYuUs7zf9d",
+ "0dec9012-9dc9-4c3b-9573-51e99918ac9c",
+ 6134.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"
+ "Np7Z6KeHafoOKYuUs7zf9d",
+ "0dec9012-9dc9-4c3b-9573-51e99918ac9c",
+ 6134.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,
+ "Np7Z6KeHafoOKYuUs7zf9d",
+ "0dec9012-9dc9-4c3b-9573-51e99918ac9c",
+ 6134.0,
+ request_id="d7438724-dda8-47b1-af06-30763f8b0aae",
+ strategy="money-only"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_cpm_transaction_3(self):
+ response = client.send(pp.CreateCpmTransaction(
+ "Np7Z6KeHafoOKYuUs7zf9d",
+ "0dec9012-9dc9-4c3b-9573-51e99918ac9c",
+ 6134.0,
products=[{"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}],
- request_id="808d1e8e-3cc7-48b7-b0ca-c83dbd739c4d"
+ request_id="4438c018-d3ec-4cfa-b4f3-ad27f91542c9",
+ strategy="money-only"
))
self.assertNotEqual(response.status_code, 400)
- def test_create_cpm_transaction_3(self):
+ def test_create_cpm_transaction_4(self):
response = client.send(pp.CreateCpmTransaction(
- "cE4mBLmKXcPupi77r56oXC",
- "69188c4e-2113-4363-8325-43334faeaae4",
- 4786.0,
+ "Np7Z6KeHafoOKYuUs7zf9d",
+ "0dec9012-9dc9-4c3b-9573-51e99918ac9c",
+ 6134.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":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}],
- request_id="ba2c2be2-340e-4b01-921c-5988aceb9053"
+ request_id="c8fc3866-bc42-46b3-a515-4ba9cd6b6070",
+ strategy="money-only"
))
self.assertNotEqual(response.status_code, 400)
- def test_create_cpm_transaction_4(self):
+ def test_create_cpm_transaction_5(self):
response = client.send(pp.CreateCpmTransaction(
- "cE4mBLmKXcPupi77r56oXC",
- "69188c4e-2113-4363-8325-43334faeaae4",
- 4786.0,
- description="mw5RMuvJN6cdbvg50QHlnDydRn68KboUvDsNqKoorksWBQ398rR59EiVvlwAljCUfIeXX8HLaAA7O7c9AzboPOcXU3N4H4mDJ",
+ "Np7Z6KeHafoOKYuUs7zf9d",
+ "0dec9012-9dc9-4c3b-9573-51e99918ac9c",
+ 6134.0,
+ description="eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXH",
metadata="{\"key\":\"value\"}",
products=[{"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}],
- request_id="353709dd-b35b-4569-8024-fa4bb00b0e71"
+ request_id="66e9564a-8ea8-4add-a438-7bd368d4fa28",
+ strategy="point-preferred"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_transaction_with_cashtray_0(self):
+ response = client.send(pp.CreateTransactionWithCashtray(
+ "6703b8a9-8914-4917-aea3-c170dda134ce",
+ "bba87dd0-beee-40cf-b3a7-7eb917805157"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_transaction_with_cashtray_1(self):
+ response = client.send(pp.CreateTransactionWithCashtray(
+ "6703b8a9-8914-4917-aea3-c170dda134ce",
+ "bba87dd0-beee-40cf-b3a7-7eb917805157",
+ request_id="3757c0ce-465b-4588-9776-b7045e23fc7e"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_transaction_with_cashtray_2(self):
+ response = client.send(pp.CreateTransactionWithCashtray(
+ "6703b8a9-8914-4917-aea3-c170dda134ce",
+ "bba87dd0-beee-40cf-b3a7-7eb917805157",
+ strategy="money-only",
+ request_id="9abda0ea-61d8-49ec-8822-fa9262ac5ad5"
))
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
+ "1e0d3dde-f340-4ce8-ab9d-ecc3c7356a7d",
+ "59902949-ef48-4684-9f6b-355c81e616a7",
+ "1752d2e2-0017-470b-8c8c-bc9475007b51",
+ 5815.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"
+ "1e0d3dde-f340-4ce8-ab9d-ecc3c7356a7d",
+ "59902949-ef48-4684-9f6b-355c81e616a7",
+ "1752d2e2-0017-470b-8c8c-bc9475007b51",
+ 5815.0,
+ request_id="7b1b2e4b-093c-42cc-9cb6-81bf79eda4fd"
))
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"
+ "1e0d3dde-f340-4ce8-ab9d-ecc3c7356a7d",
+ "59902949-ef48-4684-9f6b-355c81e616a7",
+ "1752d2e2-0017-470b-8c8c-bc9475007b51",
+ 5815.0,
+ description="Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1V",
+ request_id="3bb6c4f3-00b1-4584-bb65-f16c54261501"
))
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,
+ "1e0d3dde-f340-4ce8-ab9d-ecc3c7356a7d",
+ "59902949-ef48-4684-9f6b-355c81e616a7",
+ "1752d2e2-0017-470b-8c8c-bc9475007b51",
+ 5815.0,
metadata="{\"key\":\"value\"}",
- description="9HnlNHLuA0aOdVgj6K1GxL1yIWWOf6rndacFLJTT1b61igwFwXc9Xw81AcLgJ7HUPLZ2JY3PzdziozZN0eUlnWAmEdaqY8pJTyG58WWoVkTIofZ63ZHIa2ZaoOg0V0uaqelttkE7ehROL4XrOdkUWUyHCGGZhBjhjuTKoJ3qmoFsOI4faRjWQ8",
- request_id="064416e7-5085-495b-930e-ee4ba9e6144f"
+ description="3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7",
+ request_id="244fa74c-f3ec-46af-a77d-e347e9dbe3da"
))
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
+ "4f38c6b5-0bec-48fe-b263-8e9cbffbb25f",
+ "b3b7723f-f996-4651-8c39-522fefcb0b58",
+ "7f25c2c9-6888-4bba-8d4e-984adc10ba33",
+ 7932
))
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"
+ "4f38c6b5-0bec-48fe-b263-8e9cbffbb25f",
+ "b3b7723f-f996-4651-8c39-522fefcb0b58",
+ "7f25c2c9-6888-4bba-8d4e-984adc10ba33",
+ 7932,
+ request_id="3f69575f-6d15-4b97-99e4-dcad2d27c3b9"
))
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"
+ "4f38c6b5-0bec-48fe-b263-8e9cbffbb25f",
+ "b3b7723f-f996-4651-8c39-522fefcb0b58",
+ "7f25c2c9-6888-4bba-8d4e-984adc10ba33",
+ 7932,
+ description="s5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKca",
+ request_id="d3b2f30b-2740-441e-b731-9af057f1d47a"
))
self.assertNotEqual(response.status_code, 400)
def test_bulk_create_transaction_0(self):
response = client.send(pp.BulkCreateTransaction(
- "FvGq64q",
- "mrZJcpF",
- "iWZHeIfQdHdvs4v2aUitPGe5J3m0ryc2OEvF"
+ "9vX",
+ "1",
+ "5UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjA"
))
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"
+ "9vX",
+ "1",
+ "5UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjA",
+ callback_url="https://KpCpIzZX.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"
+ "9vX",
+ "1",
+ "5UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjA",
+ private_money_id="f454603b-a687-426d-9603-f5f36c0ad220",
+ callback_url="https://oGSwaJTi.example.com"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_bulk_create_transaction_3(self):
+ response = client.send(pp.BulkCreateTransaction(
+ "9vX",
+ "1",
+ "5UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjA",
+ description="7OUK0vKQ13gfO1QSAIUcA7Aj",
+ private_money_id="9ce0ec85-8b8c-42d3-92d3-5a15b973ea4c",
+ callback_url="https://uHYzu2Ra.example.com"
))
self.assertNotEqual(response.status_code, 400)
def test_get_transaction_0(self):
response = client.send(pp.GetTransaction(
- "da124937-e649-4c71-982a-a6e301d6ef86"
+ "f3d53414-b9b1-4642-8d45-e672258d5f36"
))
self.assertNotEqual(response.status_code, 400)
def test_refund_transaction_0(self):
response = client.send(pp.RefundTransaction(
- "62bfd79c-c5c6-48bb-be08-8badf5722a1e"
+ "89cf97a2-7ee0-47a6-bdb2-5ba0b7f396e7"
))
self.assertNotEqual(response.status_code, 400)
def test_refund_transaction_1(self):
response = client.send(pp.RefundTransaction(
- "62bfd79c-c5c6-48bb-be08-8badf5722a1e",
- returning_point_expires_at="2023-02-22T09:28:07.000000+09:00"
+ "89cf97a2-7ee0-47a6-bdb2-5ba0b7f396e7",
+ returning_point_expires_at="2021-06-16T06:07:31.000000Z"
))
self.assertNotEqual(response.status_code, 400)
def test_refund_transaction_2(self):
response = client.send(pp.RefundTransaction(
- "62bfd79c-c5c6-48bb-be08-8badf5722a1e",
- description="0ufgYUkqe3kskveA2n2lBOE9H5VVR8QU7QjrIemlNkbreYYQh0DpuFWTXBEy8Kcs0g4R",
- returning_point_expires_at="2022-07-14T07:05:27.000000+09:00"
+ "89cf97a2-7ee0-47a6-bdb2-5ba0b7f396e7",
+ description="vnEoyfpAANnkoel9aDgdNSfmE5De5bTvM",
+ returning_point_expires_at="2022-08-29T20:00:57.000000Z"
))
self.assertNotEqual(response.status_code, 400)
def test_get_transaction_by_request_id_0(self):
response = client.send(pp.GetTransactionByRequestId(
- "07696302-af43-4e8a-9aca-20634c6a4d1d"
+ "8883efc8-e51b-4398-b0e4-a7128b8d91b2"
))
self.assertNotEqual(response.status_code, 400)
def test_create_external_transaction_0(self):
response = client.send(pp.CreateExternalTransaction(
- "6699706b-410e-43ca-a36e-330eccec726b",
- "262b2a8f-f5fb-4076-8097-38383791f262",
- "92b16c33-0b6c-43e0-9bfe-faa6606c8e84",
- 2437
+ "b9ccc053-f9a5-4330-9fd7-c18aa34315c4",
+ "82a6ad3b-5f9e-4625-92b3-3d4657514661",
+ "743fadf1-d302-4a5c-a88e-d78abd76b9d2",
+ 9419
))
self.assertNotEqual(response.status_code, 400)
def test_create_external_transaction_1(self):
response = client.send(pp.CreateExternalTransaction(
- "6699706b-410e-43ca-a36e-330eccec726b",
- "262b2a8f-f5fb-4076-8097-38383791f262",
- "92b16c33-0b6c-43e0-9bfe-faa6606c8e84",
- 2437,
- request_id="65e2794f-510c-497b-a41b-1fbde5317529"
+ "b9ccc053-f9a5-4330-9fd7-c18aa34315c4",
+ "82a6ad3b-5f9e-4625-92b3-3d4657514661",
+ "743fadf1-d302-4a5c-a88e-d78abd76b9d2",
+ 9419,
+ done_at="2021-01-20T14:26:10.000000Z"
))
self.assertNotEqual(response.status_code, 400)
def test_create_external_transaction_2(self):
response = client.send(pp.CreateExternalTransaction(
- "6699706b-410e-43ca-a36e-330eccec726b",
- "262b2a8f-f5fb-4076-8097-38383791f262",
- "92b16c33-0b6c-43e0-9bfe-faa6606c8e84",
- 2437,
- products=[],
- request_id="80129708-8e2d-48ea-9ddb-957e3e63c5a5"
+ "b9ccc053-f9a5-4330-9fd7-c18aa34315c4",
+ "82a6ad3b-5f9e-4625-92b3-3d4657514661",
+ "743fadf1-d302-4a5c-a88e-d78abd76b9d2",
+ 9419,
+ request_id="0d295f0a-5718-4ec1-bba1-bd1bd3e0dde7",
+ done_at="2021-07-07T14:28:23.000000Z"
))
self.assertNotEqual(response.status_code, 400)
def test_create_external_transaction_3(self):
response = client.send(pp.CreateExternalTransaction(
- "6699706b-410e-43ca-a36e-330eccec726b",
- "262b2a8f-f5fb-4076-8097-38383791f262",
- "92b16c33-0b6c-43e0-9bfe-faa6606c8e84",
- 2437,
- metadata="{\"key\":\"value\"}",
+ "b9ccc053-f9a5-4330-9fd7-c18aa34315c4",
+ "82a6ad3b-5f9e-4625-92b3-3d4657514661",
+ "743fadf1-d302-4a5c-a88e-d78abd76b9d2",
+ 9419,
products=[{"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
+ "is_discounted": False,
+ "other":"{}"}, {"jan_code":"abc",
+ "name":"name1",
+ "unit_price":100,
+ "price": 100,
+ "quantity": 1,
+ "is_discounted": False,
+ "other":"{}"}, {"jan_code":"abc",
+ "name":"name1",
+ "unit_price":100,
+ "price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}],
- request_id="690fa3ad-e25a-4b53-9a69-767351df754b"
+ request_id="9cd6ac45-48e0-428c-8770-8c4eb14fca4f",
+ done_at="2021-11-03T05:27:35.000000Z"
))
self.assertNotEqual(response.status_code, 400)
def test_create_external_transaction_4(self):
response = client.send(pp.CreateExternalTransaction(
- "6699706b-410e-43ca-a36e-330eccec726b",
- "262b2a8f-f5fb-4076-8097-38383791f262",
- "92b16c33-0b6c-43e0-9bfe-faa6606c8e84",
- 2437,
- description="JGtLxfbPFfaIRWKNMj5dtiKnG8zX8tvWqvm0QmTuUJdqTxvEdTrlIkQGkGEpBmPu4",
+ "b9ccc053-f9a5-4330-9fd7-c18aa34315c4",
+ "82a6ad3b-5f9e-4625-92b3-3d4657514661",
+ "743fadf1-d302-4a5c-a88e-d78abd76b9d2",
+ 9419,
metadata="{\"key\":\"value\"}",
products=[{"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
- "name":"name1",
- "unit_price":100,
- "price": 100,
- "is_discounted": False,
- "other":"{}"}, {"jan_code":"abc",
+ "other":"{}"}],
+ request_id="5cc6b28d-851d-4a2f-870c-9514a26762fa",
+ done_at="2023-02-04T17:31:35.000000Z"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_external_transaction_5(self):
+ response = client.send(pp.CreateExternalTransaction(
+ "b9ccc053-f9a5-4330-9fd7-c18aa34315c4",
+ "82a6ad3b-5f9e-4625-92b3-3d4657514661",
+ "743fadf1-d302-4a5c-a88e-d78abd76b9d2",
+ 9419,
+ description="WmNqL0QHxylFWlu94S8FVSDMY",
+ metadata="{\"key\":\"value\"}",
+ products=[{"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}, {"jan_code":"abc",
"name":"name1",
"unit_price":100,
"price": 100,
+ "quantity": 1,
"is_discounted": False,
"other":"{}"}],
- request_id="30d75c89-25bb-4deb-a7f1-509062af654f"
+ request_id="f87a8a35-9a42-4bd5-b75a-0918a11c1558",
+ done_at="2024-04-03T12:38:42.000000Z"
))
self.assertNotEqual(response.status_code, 400)
def test_refund_external_transaction_0(self):
response = client.send(pp.RefundExternalTransaction(
- "84cf16a2-3d66-4e04-9885-aa03d2c00a45"
+ "f8f0c0a8-7ad4-4de6-ae18-b7ce2227fedc"
))
self.assertNotEqual(response.status_code, 400)
def test_refund_external_transaction_1(self):
response = client.send(pp.RefundExternalTransaction(
- "84cf16a2-3d66-4e04-9885-aa03d2c00a45",
- description="l5C8v6PzPZ7WYdNdFH0K2AD1TKPyYWlsuXOaI"
+ "f8f0c0a8-7ad4-4de6-ae18-b7ce2227fedc",
+ description="oNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_get_external_transaction_by_request_id_0(self):
+ response = client.send(pp.GetExternalTransactionByRequestId(
+ "6ab4e738-e328-45ce-8f6f-b15220719c65"
))
self.assertNotEqual(response.status_code, 400)
@@ -2133,176 +2752,176 @@ def test_list_transfers_0(self):
def test_list_transfers_1(self):
response = client.send(pp.ListTransfers(
- description="vkZ0hBxHL8DiEhh2VnZoTnDJVFMsrvforwTxS8CU7xfi8Z8k0xTZqtjlnCMFHx8TKGI2xE1Bu"
+ description="5rX0rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUv"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_2(self):
response = client.send(pp.ListTransfers(
- transfer_types=["transfer", "coupon", "topup", "cashback", "campaign", "payment"],
- description="Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZtOtkEaR1q9tiLg6fzyprLRU7zHjv8AVBjeNyLKs5OWxHdcCIY8xfr6"
+ transfer_types=["expire", "payment", "exchange", "cashback", "campaign", "transfer", "topup", "coupon"],
+ description="6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_3(self):
response = client.send(pp.ListTransfers(
- transaction_types=["exchange"],
- transfer_types=["payment", "exchange", "cashback", "transfer", "campaign", "coupon"],
- description="JsJ"
+ transaction_types=["exchange", "payment", "topup"],
+ transfer_types=["topup"],
+ description="iHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLiOm0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQ"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_4(self):
response = client.send(pp.ListTransfers(
is_modified=True,
- transaction_types=["expire", "transfer", "exchange", "topup"],
- transfer_types=["cashback", "exchange"],
- description="Zx4bL3mKFhR8vX2cSSl7ObxLVY39aP4hWiGuhuMVGxVPfacjrslMZj02ZSv"
+ transaction_types=["transfer", "expire", "exchange"],
+ transfer_types=["topup"],
+ description="OOqdFvcvTYHWhMSc2JtDSCuxp"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_5(self):
response = client.send(pp.ListTransfers(
- private_money_id="7068670b-8849-46a0-9328-db3ec33dbddf",
- is_modified=True,
- transaction_types=[],
- transfer_types=["payment", "expire", "campaign", "cashback", "transfer", "coupon", "exchange"],
- description="pu0MDWpiDvc0yH6ElFsXXAu1ggrDUCau2gnuJ4JjDHOBMd26S3mihK7Gc9ouBdfj9baUMO0QAZUEFS2BtlR4VIQVU2y1HqZTEweuiw2lLR54hFsTWRshdiadwR5IXzLVIyr3tVtLqZwSGR9"
+ private_money_id="f0a0b8d8-0281-41be-8900-6bfd43bb1342",
+ is_modified=False,
+ transaction_types=["exchange"],
+ transfer_types=["exchange", "cashback", "transfer", "expire", "campaign", "coupon", "payment"],
+ description="WyJmxhctiEpL1KlL20SY28CEIpXv"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_6(self):
response = client.send(pp.ListTransfers(
- transaction_id="d9dea1c1-4088-4174-9f53-a284a51dff44",
- private_money_id="77e561b9-24e3-4392-8f5f-9996faf7d62b",
- is_modified=False,
- transaction_types=["exchange", "payment", "expire"],
- transfer_types=["exchange", "topup"],
- description="VkjkAmAursWmY8lUcPFFH8OBO0gTOPvALkgMJawdwCaYZ0f5A4WuoS1IAZgM9FDFzPlCr68wDPzP1uu5pUlr0e255o067YSY4rtLpQIhTsQtfNlHNUlxPCHvPHeZ4gCJRD87F5OLspmSpFUbvNXpSViDBWfAPmGs"
+ transaction_id="a932fdfb-c0c3-40fa-b292-31ecce8d1b58",
+ private_money_id="76e76eb0-23a7-40fd-97ac-fffd6363aec6",
+ is_modified=True,
+ transaction_types=["transfer", "cashback", "expire"],
+ transfer_types=["payment", "coupon", "transfer", "exchange", "topup"],
+ description="HOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_7(self):
response = client.send(pp.ListTransfers(
- customer_name="08EBxCdTJypI42Inu56VLkNyEIUSlWSa6lZGo7PhTYTGs3X1TO4wzYkyXyy6lwP0N21ySbpke",
- transaction_id="60074f6d-1b1f-4444-a504-27aa2e7e66cd",
- private_money_id="24efa45b-7e07-4a9f-aedb-9b1d7d493633",
+ customer_name="Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSV",
+ transaction_id="1dd7f004-8e48-44a5-bf52-cbd9617e87b4",
+ private_money_id="921a08d9-c01a-435a-a290-a80faec05664",
is_modified=False,
- transaction_types=[],
- transfer_types=["payment", "cashback", "transfer"],
- description="zT4JKnzi5L8cpHHMwXcAIRcjNLk0uNWeNHUqo3XUcSS2VsZS4Lj4GkDI0oXRDtBJxvb11fmeXANYMff4lfRrFSD2GU0U0YSAX1Q89ssC5bpXwoj13v0TL4xfkZtGKmcVmh1Ev4M51rbMFUU1jVlGa8RcO6wCBU9Eja3cVhwcSD6iDQwph5T"
+ transaction_types=["topup", "expire", "transfer", "cashback", "payment", "exchange"],
+ transfer_types=["cashback", "expire", "campaign", "coupon"],
+ description="lf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3Lnpb"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_8(self):
response = client.send(pp.ListTransfers(
- customer_id="91296555-1f19-4e1d-942d-facd4e64e6aa",
- customer_name="16YqrHAO8roW5GeUYrGDCf0i4xR1YeuarVLqKYaajZ",
- transaction_id="fd1f4784-b934-4335-8b6c-bbcd9822fbe2",
- private_money_id="60a989b2-ba45-4de4-aaf0-3af8f00db7dd",
- is_modified=False,
- transaction_types=["payment", "transfer"],
- transfer_types=["expire", "transfer", "campaign"],
- description="SC89X69cCxk1lmjrE2LQn8WVW3m44epc5OJWLmTr626o4XX2rICXAhNDPHxc5nbxE6dOS7QbkrsxeFRrdV1gQxduyB3Z9uLKn8CBvuRo159rPRsnfNPsYuS9nBNol3v7"
+ customer_id="eb02d47b-18a1-4872-9029-7cbc2c503613",
+ customer_name="kZnNjPWO55U7DSfY3L",
+ transaction_id="204f8012-d1e7-4a3f-bed7-59b58514e04d",
+ private_money_id="1baab15e-26a6-4bb2-8920-4040dcdf26f6",
+ is_modified=True,
+ transaction_types=["transfer", "exchange", "cashback", "topup"],
+ transfer_types=["transfer", "exchange", "campaign", "payment", "expire", "topup"],
+ description="eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_9(self):
response = client.send(pp.ListTransfers(
- shop_name="lVyt80jIUhEuqcVn523Q4baN0pPcQtGvFKDcSo8tIJSa9PEebkW1DkF2wmIfJ50Imwzo4spi93QyENqmwOx8YnV9T8kaR9yxV",
- customer_id="6cd1cfeb-e294-4b69-929a-62303eb65459",
- customer_name="h350uvTmXJ3taiP6zrMBCvrTp2KPzJXVVtSjH7KpG4W7WMlwVoyitMfaSwwyI0wlFPTcSqX1OcJJCpH4abwAvDfIYbVEzwXEzeX",
- transaction_id="7d14df37-d484-4d83-8036-a0c3f19900f5",
- private_money_id="2a68520d-1062-47dc-be42-d1ac557b2699",
- is_modified=False,
- transaction_types=["transfer", "payment", "expire", "cashback"],
- transfer_types=[],
- description="vZavHGIwQGFD3y3WQcOQ77GqTbykQNeXwfkirPrCHC6oGX762VWlOvBKRDnWwJ1RB1Xf0sJSNdUIy9UNPxEn8d7PVOwf2KxYZgpwkatfDXh6wjcpgPghclYC1sotThNzacMPGRW9XLUFYLKH2dLAXy2plAkroUr6KjPvdUwWdZh0L8"
+ shop_name="dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3u",
+ customer_id="5506f5f6-c3e1-48cc-9d04-d295aacc726e",
+ customer_name="bw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZn",
+ transaction_id="3d8c808a-7d66-49c7-8dd1-ec618f5433f3",
+ private_money_id="89ef5ec3-6731-44ff-b99e-d0815a058620",
+ is_modified=True,
+ transaction_types=["payment", "expire", "topup", "cashback", "exchange", "transfer"],
+ transfer_types=["payment", "campaign", "coupon"],
+ description="L9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_10(self):
response = client.send(pp.ListTransfers(
- shop_id="7eb0aff1-f14e-452e-8b7d-61adb380f83c",
- shop_name="4Tq0PqVhzCkKROCStDoZvAY3OKa5oCE4xLFobA9UOrBeN520IjUnvAonmJrl0Qqm11RMoDMOSwDGwLJ7XtGOGgKQwzAg5",
- customer_id="ecc88e49-3c14-489b-abee-d4fd8daef6c4",
- customer_name="gdQyyCPmcszk1DSduCpdgUz5UizzupfDUVzOTa3MaAaf4kTfREjRbk7TIk1gephK43IsijpvrzedeO1cdtY9cqUS5AzQzHdKGL1guEaRrfiOPX45f7SdsQcMHW7he8Z1qLepuyyE02MG8yUNtUKfprHpGaVcCOEeWb7TQI3q8qslujxF3n4fR7Vfp3vRJLnSgiLPjnc4kQ0HdyTor536XOfVM3XXOQ3tGi0CJH7VMgkZVkFMaOxCQ0Il",
- transaction_id="9733a614-fab4-4fcc-a0d3-5b31c67962c8",
- private_money_id="cbeb5039-2bd2-428b-ad68-6fb1d8d8bdfe",
+ shop_id="8e0938b2-bc37-4478-8c82-9432cd7aaf5a",
+ shop_name="ZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N",
+ customer_id="c5f78605-e322-47b0-8074-d300540724a1",
+ customer_name="nRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6Ams",
+ transaction_id="5e82685d-0877-4f1a-a4c0-2b41ec200ecd",
+ private_money_id="0157d928-e41c-411f-b3c9-134a5c5372f2",
is_modified=False,
- transaction_types=[],
- transfer_types=["payment", "cashback", "expire", "transfer"],
- description="FmlvrlMvNLwEsnbNKTS2h75GF8UpjoAlQvJzCU8IgWIQfnPgb4T4DEkgPLD0xZMd5yjnHtiPzKYB9uBkIh8qvqswUq9MIMd1v50tEiK5VU8URPZftDXY7iH91521L9iCZDgOHv8ccbKA9zaXWI"
+ transaction_types=["transfer"],
+ transfer_types=["cashback", "exchange"],
+ description="1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmm"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_11(self):
response = client.send(pp.ListTransfers(
- per_page=6639,
- shop_id="445462f2-5650-4a1d-ade7-3618880ba8bf",
- shop_name="iqGxhGUs6ZnMyMQoClDSK7KRPQ6M6EMYtB6Ep2GnDZJdtjBh5VRBTfV5MJhYQTBRBM7G8j00YInJitv9WP6kwxoiXMMFgIG6MJKNbnVLomjuJJQI4ykecPid861BWO2utY6ykCTVCcIXTPlbcMZgCJ9BjKA9LvljTLcW71b8cClVacDr5l3x4FVfYiLUL8Bb8dzaB45kELqQHfqMF0cAfS47CSQOovJ8c1i3",
- customer_id="2bbf4666-5b65-4dce-8fb1-9f716b286690",
- customer_name="Bnpp3tyKjZPjTs65qzNTqIMvOUP7lDJ32SCMXHu4UsQsifzmvmEGKnmcQWOqm2bxZSUNMN2LXvZ3UB0bY6L3973iqLKkGFIZmfuXhD9mm06njf2aXb7PnD9gNpMDYfCPceKjPow2YL1adnoZFEUP94ii4uT2NJ6DSRSGMdhjjWzKEnHt1GlWmv2y5j3kpGt0e4jNi92dahl",
- transaction_id="bda42c6e-18a8-42ee-99eb-0eff2ebfea08",
- private_money_id="851c313a-c888-43a1-99e0-0d4bb926a292",
- is_modified=True,
- transaction_types=[],
- transfer_types=["transfer", "topup", "expire", "cashback", "coupon"],
- description="PkZF0J60lUnUwRinT2la9EMVbGBQcWz4E8fUZnWcjAk0kMso3CQzadAG14rJr7OIiIwKYtNBz"
+ per_page=488,
+ shop_id="df54a0dd-6886-48e3-9eb1-744bcbbc5799",
+ shop_name="he3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNa",
+ customer_id="c33eb352-e716-48c4-8889-1b33cd354978",
+ customer_name="5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdV",
+ transaction_id="9709a64d-3dda-40c0-8123-e93e26b352bb",
+ private_money_id="d3df41b3-d246-4c73-a7a1-1d42a25c5d17",
+ is_modified=False,
+ transaction_types=["expire", "cashback", "transfer"],
+ transfer_types=["transfer", "cashback", "exchange", "coupon", "payment"],
+ description="iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4j"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_12(self):
response = client.send(pp.ListTransfers(
- page=4465,
- per_page=529,
- shop_id="559ce0b8-c26e-4c01-bb5c-be21df42192a",
- shop_name="ODkJL8EIU81Vy5zPsQOGlQlr06Jl9JLWCZ8neyUVmWBR3xve7r3YSLXQYTyvYaaI2qvRlrSNIrRDPa1eyCiQOxDTwWc9gws9XAUrux74v2ITxjA0PgzICgqeJVlSY26G92wNF5y9aZcAMQT3BxPWw78yOKfPR1NUJQvD2rVGC8",
- customer_id="833e6222-c1b4-4612-8aae-1dca405fd4cb",
- customer_name="YYu6jp9XJncsuSh46krybNv1zjGCQgXpBAn6vYjVqpA4IONiLV0kr6A1DgXWodpkxho8rBfuxAgk4G7K3EbPTtYbjyxowsbeNA1qdSnOGMCPl7IMBQKQv86A0JZpBpvSAXbobD9Ki30vC5rrnazdVnK3PrJ5SiaT9q7d0MByh1j24T8jie07UHeDFjaRvAps3KfAZfCcJF6TIE",
- transaction_id="2798cae5-6e85-4152-bc82-eae3b243e7f2",
- private_money_id="a7391768-dba7-4f69-a04d-c4dee6af5f19",
+ page=7961,
+ per_page=9212,
+ shop_id="34944b80-f7a0-4a8f-a0bf-35b098a0d72f",
+ shop_name="iR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8B",
+ customer_id="dfa2470b-cd49-4470-b657-baa483a5c6d7",
+ customer_name="FtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hA",
+ transaction_id="c05feb53-cc41-43c0-a384-6145e006ed69",
+ private_money_id="e0ce749e-709d-4c62-947d-3dad3ecc919d",
is_modified=True,
- transaction_types=["expire"],
- transfer_types=["expire", "coupon", "campaign"],
- description="qC0B7Kcw0qagkhJ7wfZWTULKa8VECsBZr3IToxXjdyKGc7ZzHUV5fOm8mtNakhvcdUzoLcA59nUhEAXqtCyQcPmsvpgfmd8PIAhkngoJScrC1WRA"
+ transaction_types=["transfer", "expire", "payment", "cashback"],
+ transfer_types=["payment", "topup", "cashback"],
+ description="gL0O7DlAFrkX"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_13(self):
response = client.send(pp.ListTransfers(
- to="2021-02-14T04:41:34.000000+09:00",
- page=5519,
- per_page=8002,
- shop_id="5cb8e7a4-db54-4107-a2bd-70923811a5d3",
- shop_name="rzSbRU1v2KZFFhdMjCCzsHpBmrvRb2UjrXmXby0g0KQCQJco6Fst7K2jJcCqUZTewzuJ3F92QKd3C9M0vBcKWIUBdcBNwq9T0OG7VRzcPfWGO1YJqrl83WexbWjPBIcMUJ3obVqULs7P",
- customer_id="3932f409-f473-4812-b809-d0c77e8b8d7b",
- customer_name="UAdxQTQ69L5ufP3C8GoKbqWo6okozRxG7O1lnWZInpqxewkSnO8G8BVdp2SnU56fm1",
- transaction_id="f3c38910-0015-42a0-9f66-aa74aa523a9c",
- private_money_id="5d7977f5-2fb8-4652-aef3-12e461c631e5",
+ to="2024-12-26T05:07:54.000000Z",
+ page=9559,
+ per_page=3103,
+ shop_id="c8f7459d-a5e9-449d-ace8-6fc9e9cba764",
+ shop_name="Wu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n",
+ customer_id="bc3b3d35-3a3b-4ef7-8e00-c950836451f1",
+ customer_name="rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoF",
+ transaction_id="8e5f9fc7-0c78-45d6-9b4a-f9aca2f6c400",
+ private_money_id="0f13b18f-f82f-4d0e-bddb-f97f92b4e81b",
is_modified=True,
- transaction_types=["payment", "exchange", "expire", "transfer", "topup"],
- transfer_types=["transfer", "exchange", "campaign", "cashback"],
- description="gBjKxJ1kVUP7sJk9W7sPqDCWwYS94nlMA9QMeCafNqHwyMdjdwcWi3JTYLChkb6TlitzWaW4uPhPny3cB55XyFtx17QBRLdwgp38D246YReej2SSevahES9poV0ViKFLpI4REDYg"
+ transaction_types=["transfer", "expire", "cashback", "payment", "topup", "exchange"],
+ transfer_types=["expire", "payment", "coupon", "transfer", "exchange"],
+ description="FM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4Hh"
))
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-08-05T20:19:22.000000Z",
+ to="2021-10-27T22:54:24.000000Z",
+ page=4595,
+ per_page=9873,
+ shop_id="97ea2819-df07-4519-83f3-63a720ee8158",
+ shop_name="RcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe",
+ customer_id="05d4f41b-ffb1-4b32-9c4d-f5de27647728",
+ customer_name="UV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm",
+ transaction_id="95053d39-13f2-4223-b0ee-42b07be42c32",
+ private_money_id="c90c61b2-c99a-47fc-883b-ed0ede21c1b3",
+ is_modified=False,
+ transaction_types=["payment", "expire", "exchange"],
+ transfer_types=["transfer", "campaign", "coupon", "topup", "cashback", "expire", "exchange"],
+ description="mfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoS"
))
self.assertNotEqual(response.status_code, 400)
@@ -2313,322 +2932,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="2024-03-04T02:22:10.000000Z"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_v2_2(self):
response = client.send(pp.ListTransfersV2(
- start="2018-06-28T12:53:42.000000+09:00",
- to="2025-08-05T21:35:39.000000+09:00"
+ start="2021-08-02T20:44:46.000000Z",
+ to="2025-07-12T23:45:11.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="b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbv",
+ start="2024-10-23T21:03:31.000000Z",
+ to="2025-11-27T20:30:09.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=["exchange", "expire"],
+ description="APBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatD",
+ start="2020-07-17T18:33:53.000000Z",
+ to="2024-06-28T08:48:35.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=41,
+ transfer_types=["exchange", "expire", "payment", "transfer", "campaign"],
+ description="kHySUJYrKI48UyLazcdaqg9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7",
+ start="2024-10-17T19:16:10.000000Z",
+ to="2024-06-14T10:38:10.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="aa07af00-d48b-41bf-8565-f64f5e55068a",
+ per_page=312,
+ transfer_types=["cashback", "topup"],
+ description="Xj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9f",
+ start="2024-08-28T00:27:30.000000Z",
+ to="2025-08-23T08:15: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="d84350f0-ddf1-4d8d-af6c-54298f6f5572",
+ prev_page_cursor_id="43db52c5-e154-4695-ae8d-255ce9ad55e7",
+ per_page=507,
+ transfer_types=["transfer"],
+ description="TWfR4Gx21zM7WIQGDsPs",
+ start="2024-09-04T14:13:28.000000Z",
+ to="2020-02-04T11:26:02.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=["cashback", "topup", "exchange", "payment", "transfer", "expire"],
+ next_page_cursor_id="16cbd953-33de-4d2d-a268-87aeec679542",
+ prev_page_cursor_id="7d07b1ec-43c3-4296-8a50-b05eaac589ea",
+ per_page=629,
+ transfer_types=["cashback", "transfer", "coupon", "exchange", "campaign", "topup"],
+ description="8jW",
+ start="2022-11-06T01:28:18.000000Z",
+ to="2022-02-22T11:09:30.000000Z"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_v2_9(self):
response = client.send(pp.ListTransfersV2(
- is_modified=False,
- transaction_types=["exchange", "cashback", "transfer"],
- next_page_cursor_id="e2590801-5e40-461b-8110-539d51d51d2f",
- prev_page_cursor_id="a4a03b6f-faa6-48fe-88a4-d0f9078a983d",
- per_page=304,
- transfer_types=["exchange", "cashback"],
- description="yexDJw4m5W5NSAarqtGtlcKJp9gTWhEWSlBiVnl9lORTBFy0IWWO4H8KmbVB2M5EGOlNZgqvSi38sr7tIAdAm2GfCQqu6PVWox7el",
- start="2017-03-04T01:54:13.000000+09:00",
- to="2017-05-10T23:34:31.000000+09:00"
+ is_modified=True,
+ transaction_types=["topup", "transfer", "payment"],
+ next_page_cursor_id="e0b443a0-26e8-4506-b2df-3408b3447660",
+ prev_page_cursor_id="c928fa90-fdf9-4648-917f-b54bb0f21426",
+ per_page=540,
+ transfer_types=["payment", "exchange", "topup", "cashback", "coupon", "expire", "transfer"],
+ description="BeZkmIh2UeN7Z047tEp9",
+ start="2021-11-26T13:55:11.000000Z",
+ to="2023-10-02T13:36:13.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="0d77e3ee-1adf-4015-a11c-49cd0ffbe9cb",
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=["exchange", "expire"],
+ next_page_cursor_id="2c02bb54-064f-478e-a834-f84bea5a7507",
+ prev_page_cursor_id="0fc77107-1eec-448f-bc5f-85c647ddda58",
+ per_page=76,
+ transfer_types=["cashback", "campaign"],
+ description="VTYrrSHZ1a0tz4E",
+ start="2020-11-15T23:27:24.000000Z",
+ to="2025-11-16T18:12:36.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",
- 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_id="1b2ec1eb-b080-43fc-a513-46a68ee01b75",
+ private_money_id="ced201e8-057b-4489-9d1a-0555fe25db28",
+ is_modified=False,
+ transaction_types=["transfer", "payment", "expire"],
+ next_page_cursor_id="f02842a4-ee1e-4735-b122-300ec40eba10",
+ prev_page_cursor_id="c0f95adf-a8ba-4af9-8102-a699e1982cd9",
+ per_page=88,
+ transfer_types=["campaign", "coupon"],
+ description="IlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKR",
+ start="2020-06-03T16:10:52.000000Z",
+ to="2025-02-10T00:48:07.000000Z"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_v2_12(self):
response = client.send(pp.ListTransfersV2(
- customer_name="umX9lPF6p8o2y11Yrgt4LCmHaJMs2PMcoeItTVcWkxXihexQXo312p3Wls1sE7BHULcZQtWWfaD4rWZB2GIm3dWvJq3fHzlHa1nO6pf4h9ws9kLnk6c",
- transaction_id="b0c32819-3ece-4962-80e2-d630b93993a3",
- private_money_id="8e0a0ca0-6efb-46ca-8484-644a76a3e7dd",
+ customer_name="LQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NS",
+ transaction_id="ef055748-b020-455f-89ca-aa2cb0902cb7",
+ private_money_id="badb7eed-3262-4963-b5f1-2c1942433be2",
is_modified=False,
- transaction_types=["exchange", "topup", "transfer", "cashback", "payment", "expire"],
- next_page_cursor_id="14f80a79-934c-4bab-aa49-e047b893ed1c",
- prev_page_cursor_id="ca367023-56ba-4d95-8719-96ec05e940be",
- per_page=404,
- transfer_types=["payment", "topup", "transfer", "cashback", "campaign"],
- description="mHAR3RBnK72f11paMW4hGPanWOZJLbDfcebA2uxdCspznoi6atFNTbrEABXoODKwUOy71",
- start="2020-10-10T07:12:50.000000+09:00",
- to="2023-04-11T15:30:10.000000+09:00"
+ transaction_types=["expire", "transfer"],
+ next_page_cursor_id="6a569978-f7c1-44ab-90b4-f0c1cf8636ea",
+ prev_page_cursor_id="eedee249-b5fc-41b4-b7f0-77af7a2a55a8",
+ per_page=168,
+ transfer_types=["cashback", "coupon"],
+ description="Cpt80Gz",
+ start="2024-01-01T20:57:21.000000Z",
+ to="2022-03-05T03:51:34.000000Z"
))
self.assertNotEqual(response.status_code, 400)
def test_list_transfers_v2_13(self):
response = client.send(pp.ListTransfersV2(
- customer_id="a0327969-162f-4fed-9828-f97fd44ac862",
- customer_name="yuBcqQnQ9Lj9uq1rjYyblkDRghHjQDZezbRZC9FxfNOIHrbpOq6mcQRKL5CG2GPSQQB1U6IjRsZr2eFWgbnzGrBQcbaSK3iX1ZFYsGd1YMLCaCs0F5pkoUcbMvLHGSU2LTCLPQ5GJELxIJ85m7pWO5Oq5sU8iwoJ735Qje9VnUZQt0pzes3TegY2AoCAsHwCP5A6Scunsmt5agjEkUDn1nh1J0PoLY33AeuLX1vt0Xc",
- transaction_id="d3bdf3b0-ee95-4544-8f8b-87d06be1c6c9",
- private_money_id="2dd136f3-5908-487b-aabe-a695d5a68eef",
- is_modified=True,
- transaction_types=[],
- next_page_cursor_id="9033c9f9-954a-474b-8a86-87a41fd8fefa",
- prev_page_cursor_id="25b98bce-65d2-43a7-9d95-2e2ce43ebb06",
- per_page=356,
- transfer_types=["transfer", "topup"],
- description="TrsJZ4LsdIfCC8uQL",
- start="2016-06-19T21:09:18.000000+09:00",
- to="2020-07-22T17:47:49.000000+09:00"
+ customer_id="7502c452-de57-4f2f-9d16-b08c17e147e5",
+ customer_name="6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAn",
+ transaction_id="2f47606c-9fc6-412a-9419-e445e7281ee7",
+ private_money_id="d698f283-e9cd-4c3c-afed-df29f2c4acf9",
+ is_modified=False,
+ transaction_types=["topup", "exchange", "cashback"],
+ next_page_cursor_id="1e44ec96-0005-4560-a45b-ac4e113d2bb0",
+ prev_page_cursor_id="6b3a5a00-49d4-4fff-b882-b3302f5b5517",
+ per_page=994,
+ transfer_types=["exchange", "campaign"],
+ description="RyTXgPVT4AzeoZEOYuu1RyqlWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcNHBIUB",
+ start="2023-07-05T12:43:37.000000Z",
+ to="2026-03-03T04:14:49.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="0lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3",
+ customer_id="00963245-ed46-4137-9390-b9d765e11f07",
+ customer_name="LL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MIK7GdyM50XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8",
+ transaction_id="e6fd8fd3-0a10-4e13-872e-0ab8fad0c670",
+ private_money_id="68f1c321-e0ab-4ec8-bbb3-f665f5cbf271",
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=["transfer"],
+ next_page_cursor_id="fe2387e3-3dac-461e-9d4f-bfd20c291033",
+ prev_page_cursor_id="8b7fd5fc-59d4-43c6-92a9-15882c18e20e",
+ per_page=830,
+ transfer_types=["payment", "exchange", "expire", "transfer", "cashback", "campaign"],
+ description="Mtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlL",
+ start="2021-05-14T18:48:16.000000Z",
+ to="2020-03-03T21:11:03.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",
+ shop_id="8b728882-75f4-4c72-9309-7db056d04204",
+ shop_name="Xml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHU",
+ customer_id="fea8c76e-72c3-4795-8ef6-2de3ddbb0889",
+ customer_name="A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP",
+ transaction_id="92a363af-de84-4c37-b15b-b4041567490a",
+ private_money_id="c254a1a6-7a24-4e5d-9003-ced8ababa9dc",
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"
+ transaction_types=["topup", "payment", "transfer", "exchange", "cashback"],
+ next_page_cursor_id="2f299f3a-50d9-42a1-9cc0-33de36a863fa",
+ prev_page_cursor_id="000c7587-8288-434e-aace-177bdde60311",
+ per_page=705,
+ transfer_types=["payment", "exchange", "expire"],
+ description="WADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CT",
+ start="2022-11-27T21:54:46.000000Z",
+ to="2020-02-20T08:17:30.000000Z"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_organizations_0(self):
+ response = client.send(pp.ListOrganizations(
+ "92af510d-4464-4dd0-bd77-012f47758a6b"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_organizations_1(self):
+ response = client.send(pp.ListOrganizations(
+ "92af510d-4464-4dd0-bd77-012f47758a6b",
+ code="2g7"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_organizations_2(self):
+ response = client.send(pp.ListOrganizations(
+ "92af510d-4464-4dd0-bd77-012f47758a6b",
+ name="YhFuX",
+ code="tax2gH7m"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_organizations_3(self):
+ response = client.send(pp.ListOrganizations(
+ "92af510d-4464-4dd0-bd77-012f47758a6b",
+ per_page=1264,
+ name="sTYA",
+ code="gSjd1Lu"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_organizations_4(self):
+ response = client.send(pp.ListOrganizations(
+ "92af510d-4464-4dd0-bd77-012f47758a6b",
+ page=3647,
+ per_page=3762,
+ name="4DllEfWL",
+ code="x2f1"
))
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"
+ "jIk5LFEcZYZR1K1UL",
+ "gGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDa",
+ ["b52faae9-1826-464a-8626-87e18f4ee4dd", "15714ef6-f366-49c9-bc07-5c6c914de2f3"],
+ "Qjs1Uxv98u@oxa9.com",
+ "cfqdBZBSSy@uPsL.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"
+ "jIk5LFEcZYZR1K1UL",
+ "gGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDa",
+ ["b52faae9-1826-464a-8626-87e18f4ee4dd", "15714ef6-f366-49c9-bc07-5c6c914de2f3"],
+ "Qjs1Uxv98u@oxa9.com",
+ "cfqdBZBSSy@uPsL.com",
+ contact_name="c14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN"
))
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"
+ "jIk5LFEcZYZR1K1UL",
+ "gGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDa",
+ ["b52faae9-1826-464a-8626-87e18f4ee4dd", "15714ef6-f366-49c9-bc07-5c6c914de2f3"],
+ "Qjs1Uxv98u@oxa9.com",
+ "cfqdBZBSSy@uPsL.com",
+ bank_account_holder_name="ヲ",
+ contact_name="i8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGkENDSkRyfWKAxjQWjCB8nFcqmENfDor1zgwF9x3xZsR5bLJPhH3FEHzbfU4cD6smAeqngifjNikq"
))
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"
+ "jIk5LFEcZYZR1K1UL",
+ "gGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDa",
+ ["b52faae9-1826-464a-8626-87e18f4ee4dd", "15714ef6-f366-49c9-bc07-5c6c914de2f3"],
+ "Qjs1Uxv98u@oxa9.com",
+ "cfqdBZBSSy@uPsL.com",
+ bank_account="1543",
+ bank_account_holder_name="「",
+ contact_name="YhNwFWUAKOnWlhna0lYNQbEnbMVdbi9G5aE3q4gTN93gHJA1FfneXYRV1FBu9VqwmK2QWEkaIk3Nf304AeRoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJ"
))
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"
+ "jIk5LFEcZYZR1K1UL",
+ "gGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDa",
+ ["b52faae9-1826-464a-8626-87e18f4ee4dd", "15714ef6-f366-49c9-bc07-5c6c914de2f3"],
+ "Qjs1Uxv98u@oxa9.com",
+ "cfqdBZBSSy@uPsL.com",
+ bank_account_type="saving",
+ bank_account="139190",
+ bank_account_holder_name=" ",
+ contact_name="rkMeAKNU2qNMrw4Jay2YBOful"
))
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",
+ "jIk5LFEcZYZR1K1UL",
+ "gGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDa",
+ ["b52faae9-1826-464a-8626-87e18f4ee4dd", "15714ef6-f366-49c9-bc07-5c6c914de2f3"],
+ "Qjs1Uxv98u@oxa9.com",
+ "cfqdBZBSSy@uPsL.com",
+ bank_branch_code="592",
bank_account_type="other",
- bank_account="98",
- bank_account_holder_name="(",
- contact_name="nCdyvxKvSOqTvlYodFyg21jiUhByaB66BNcapTyLZWxad9qMqfjUCaVImVTzD7ogGgbbuuhXvkkv63jx716j9qYeQTBsHYxIvY8A2kLLFzDvGgwT6RWA89QL9Vp03GIkTp5cuONNVFc9v9gdz5hWfe1"
+ bank_account="7",
+ bank_account_holder_name="「",
+ contact_name="8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMV"
))
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",
+ "jIk5LFEcZYZR1K1UL",
+ "gGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDa",
+ ["b52faae9-1826-464a-8626-87e18f4ee4dd", "15714ef6-f366-49c9-bc07-5c6c914de2f3"],
+ "Qjs1Uxv98u@oxa9.com",
+ "cfqdBZBSSy@uPsL.com",
+ bank_branch_name="4l9WdfwN1GBXrbSDIY",
bank_branch_code="",
bank_account_type="other",
- bank_account="047167",
- bank_account_holder_name="Z",
- contact_name="vsUjS1TQRpGXwusKVKoDVo20K4pvhym0ixofoZrqcO9xmrGI7Yq8b7zKf4Zjq1K3jlOjYQfsbEScihoRIGPs251h35D6RqOUv7GYFIehbCx0by4HajPsFnZyPkDxfEbj7EZcJNWpppH7JtG7uLWNnv9bkjUCUVfq92VQxP0FMeHm2Gc8mWOktzQrw5GjJ8uGQSasHDUHsEK1qalH"
+ bank_account="903553",
+ bank_account_holder_name="ヲ",
+ contact_name="V50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmfQbT09Lp665rg0d7eGITtIklkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNve"
))
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"
+ "jIk5LFEcZYZR1K1UL",
+ "gGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDa",
+ ["b52faae9-1826-464a-8626-87e18f4ee4dd", "15714ef6-f366-49c9-bc07-5c6c914de2f3"],
+ "Qjs1Uxv98u@oxa9.com",
+ "cfqdBZBSSy@uPsL.com",
+ bank_code="7953",
+ bank_branch_name="6",
+ bank_branch_code="456",
+ bank_account_type="current",
+ bank_account="646220",
+ bank_account_holder_name="\\",
+ contact_name="3CmVmPz2b"
))
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"
+ "jIk5LFEcZYZR1K1UL",
+ "gGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDa",
+ ["b52faae9-1826-464a-8626-87e18f4ee4dd", "15714ef6-f366-49c9-bc07-5c6c914de2f3"],
+ "Qjs1Uxv98u@oxa9.com",
+ "cfqdBZBSSy@uPsL.com",
+ bank_name="cH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6r",
+ bank_code="0776",
+ bank_branch_name="VRdoj",
+ bank_branch_code="797",
+ bank_account_type="saving",
+ bank_account="",
+ bank_account_holder_name="ヲ",
+ contact_name="InHQBhMIrdZJT9MnQgGfElkSct56tB3QvYjy8mUgDyXQYOSshpGMCke10"
))
self.assertNotEqual(response.status_code, 400)
@@ -2639,355 +3298,386 @@ def test_list_shops_0(self):
def test_list_shops_1(self):
response = client.send(pp.ListShops(
- per_page=2911
+ per_page=5181
))
self.assertNotEqual(response.status_code, 400)
def test_list_shops_2(self):
response = client.send(pp.ListShops(
- page=3096,
- per_page=7801
+ page=924,
+ per_page=4071
))
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=1825,
+ per_page=8689
))
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="KjBHnAmdlKiU",
+ with_disabled=False,
+ page=1978,
+ per_page=9074
))
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="ianI8FqIXq@zelG.com",
+ external_id="DONUAJfl2HMto7yaW0Gkt1pOBZo",
+ with_disabled=True,
+ page=4345,
+ per_page=3926
))
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="06-686-798",
+ email="52VUdQ3t63@Wpys.com",
+ external_id="20fNhPhFK8mUwq4sfxVOVqIgogobrlT",
+ with_disabled=False,
+ page=5468,
+ per_page=2476
))
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="vrKruisPGcjRxKz0hnHtPEmOFzye10sMn1hLqgZ4Scflk2JdjznjOojFztUyYyUwwyS",
+ tel="02-047940",
+ email="UpzKyj3BEv@Yp1T.com",
+ external_id="uySIy9vMfjs9RSVIuRLJamUgod9vJRMh5la",
+ with_disabled=True,
+ page=1729,
+ per_page=8832
))
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="711-3745",
+ address="pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L7gW6pVOxZ4jRFNa6hoBOihdHvejLf7HUNUhMpEnczyOhMWAPbHXytdjUT8FkE6WXDem2rgSzz35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2Zanh",
+ tel="08-1336995",
+ email="jaN6dYZY4p@9bZg.com",
+ external_id="scBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8k",
+ with_disabled=False,
+ page=6983,
+ per_page=6202
))
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="cO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4",
+ postal_code="275-0514",
+ address="B3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW4",
+ tel="04404-9058",
+ email="x6Zw3ANkre@MSni.com",
+ external_id="b4Yb3t6kmvyhjD7",
+ with_disabled=True,
+ page=4362,
+ per_page=802
))
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="24c19886-62fe-4f2d-b10a-26bba866bfec",
+ name="gzqIh5MLpUpAeuRnJqWXlTP",
+ postal_code="1300030",
+ address="CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3hyN01xWKpyfSJX1OiNUbqHXuSEWeM8VLmM8qznKIn9uBoqN3XKkwmXFnLL0vhZmz7rucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34hD1uxIbudPgKcAH4LqtvnYdJrs",
+ tel="087-0809825",
+ email="ccKSjPsnaJ@y0xS.com",
+ external_id="aUZ3KYipGveNp11WiSr08u",
+ with_disabled=True,
+ page=7748,
+ per_page=3750
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_shops_11(self):
+ response = client.send(pp.ListShops(
+ organization_code="-r",
+ private_money_id="729f95da-8162-41e7-888d-ef45617a7e96",
+ name="46DL0EY9Dfg2K2KSBJ32yceHkpeJS53rQYrIERvl0KriuNlhP5RwfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMT",
+ postal_code="183-9211",
+ address="b4F279GcsdDtM3uSEYbuaOy1AtJbZFvX4DTrnYj6rE9HuWGm5xmBEPErYjV24xKSbfZiVFE1mx2zG",
+ tel="0188645654",
+ email="I30JyBIPqd@CDvW.com",
+ external_id="nTRvriMMqT",
+ with_disabled=False,
+ page=2049,
+ per_page=5538
))
self.assertNotEqual(response.status_code, 400)
def test_create_shop_0(self):
response = client.send(pp.CreateShop(
- "txsN8hQh23jWL68GyttBaIaA6bT2oimSP8aDw1fwYQo1a8Jvio1NlXmWokT3fCZ0aqdulZZGglvs1mmHvcGJdXuMvjofsG8E4KIFxs3y0EBuTM1S0iPJraQIMtAPJ1JN9CtWW30Uo4UAg9arJ4XCMrwN15cIxDvF6fUC0OQCualYkGbJ73b3nYCrV9uDJehyXJGfZSkx4G3NTiGEBvJP8jVkcC8"
+ "8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBa"
))
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"
+ "8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBa",
+ organization_code="Bw-1-p--TE7Y-3R4-sV"
))
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--"
+ "8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBa",
+ shop_external_id="ihNu2f4606Zw3XOfvqGLqQiqaG2p9ir",
+ organization_code="CN6Tc-P0-h-Z7Vd-R1QKh7"
))
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"
+ "8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBa",
+ shop_email="JGBC1o5Rc9@6wfm.com",
+ shop_external_id="VrWrKd8Zckn",
+ organization_code="--KfDWMg2-2X--K7qE6-38JgxL1S-6-M"
))
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-"
+ "8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBa",
+ shop_tel="08-86-0212",
+ shop_email="ekxj6KVFbs@IqYg.com",
+ shop_external_id="l99",
+ organization_code="-Fx5929--9--D6xF-0-G-4--"
))
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"
+ "8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBa",
+ shop_address="IeJyhTlRgTT2NxSiphZRlLoLjMmLSHQhe4tHPdlvKxC8QojNKN0zqICt7BPEI",
+ shop_tel="061-5089-9188",
+ shop_email="xaPzoaDv6U@6SXL.com",
+ shop_external_id="Had9cOSRej1Twb2rvpiwJLSyh",
+ organization_code="-c8-Zb-56--B7-k---p--SOd8"
))
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----"
+ "8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBa",
+ shop_postal_code="3776878",
+ shop_address="F0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8WbkxbWTp66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6GGJ1GXo5UP",
+ shop_tel="0096-533",
+ shop_email="rEGcY5I6vY@JqEc.com",
+ shop_external_id="nsSsP2ceIvKP9bgYanQbVQM9Z6RG0kCsPd",
+ organization_code="QQ-31c97F4v-OahJ"
))
self.assertNotEqual(response.status_code, 400)
def test_create_shop_v2_0(self):
response = client.send(pp.CreateShopV2(
- "96ZecqU3VE5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw9nHGh382d4IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1epC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCur"
+ "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE"
))
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"]
+ "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE",
+ can_topup_private_money_ids=["1d4fc23d-35fb-42ba-9f31-bbe80da3a8bd", "b7523360-3ac5-4c0c-8786-fda0cdbda3bc", "6dfc5bb2-db27-49c5-8691-f76ba0a75deb", "c84572dd-065e-440c-9032-ba0dbc6193ae", "2d58df56-9425-4008-9d49-79167295efd0", "2b10f1f9-aa02-473e-b77b-5d48383aaa3e", "4c403e89-a085-4557-b724-efc593789e5e", "3b7a5ae5-91a7-4d5c-b7a8-a9a9b52a70fe"]
))
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=[]
+ "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE",
+ private_money_ids=["d8dfba6b-43c2-48b9-badd-8e207b381308", "95937bbc-621f-4d12-8229-9642fe742928", "8c2074b1-389e-4d18-9983-fd4e371fac2f", "bc376943-66ec-4e7f-933a-ebc5709d6830"],
+ can_topup_private_money_ids=["b439f16e-a33b-4838-b7c1-c6332fafc38a", "a7547d92-2f06-4e89-b00c-f76c863ce2b6", "16e5e3c0-e10b-4176-9cdb-f773338d9290", "14f655f0-d85c-46be-9b3f-34ff5258974e", "1c97342a-7014-443b-9bac-4fdd6f01a7d7", "9b7ce308-d6bf-46c8-b988-3f755e696e38", "ab3091ae-39f8-48b4-99a6-42dff95c9471", "5a68800c-8596-4032-bc92-26edac99e578"]
))
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"]
+ "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE",
+ organization_code="-RL--v--7973-gZsa-t0",
+ private_money_ids=["c646f284-8614-409f-ab10-ee8d46d030ff", "5f07daa2-0f0b-4576-a7f7-f24da1c66764", "0a3ffcfd-7f43-4336-99f3-a41a64c3c9a5", "0e6ebc85-941b-4a51-962a-3506fa317942", "37057106-964d-4406-b682-c33186778905", "786d25b5-b842-4d53-82cc-ae5222df5154", "675ac042-2fb4-449c-b09c-3d689daa9bf0", "4ce7836a-ff62-46de-b402-e7018b5851b6"],
+ can_topup_private_money_ids=["22c7329d-8dab-491d-91fd-d5849fa8b21c", "440b88ff-2ba0-4dc8-970e-6365cf4ab4af", "2b09da44-002e-4da8-8bac-b58320d33981", "77b88c78-bbde-4bd8-96e4-081f1feb6bc5", "dc6a7fe7-e426-4f8a-a0b3-574fa019c6ff", "86b32d97-e378-4efb-a8df-4647f63b846c", "94418ef3-8e5a-46e1-9624-9d53c0a80e3f"]
))
self.assertNotEqual(response.status_code, 400)
def test_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"]
+ "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE",
+ external_id="joQ6ff",
+ organization_code="37a0EMxE15GAS-ggI81--O2-t",
+ private_money_ids=["4b2a7e91-c6c6-4def-8b62-952a5f1622b7"],
+ can_topup_private_money_ids=[]
))
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"]
+ "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE",
+ email="jYgx3gTJKy@6dBb.com",
+ external_id="YYVRZ4jdyfDGYQa0QPCC60HT399N8hk",
+ organization_code="---ZA7o454H8-3--2-P-92p-h-F7X3u",
+ private_money_ids=["a360186d-7e10-49c9-b1e4-2ba77c3b3998", "5ac313ed-69c0-4976-9fa0-75baa08f82d4", "94ea973c-8356-4a38-9ed2-c042ff96f8fa", "d8341aa3-8899-4d1a-9f70-6a15390ea6de"],
+ can_topup_private_money_ids=["bcddb5b0-3380-46e7-aa69-b1781ae93bf3", "b2277304-e182-4b99-8b5a-9510530aa3d7", "93bd386f-2155-4fab-93e5-d44f4fef0152", "340a4a3a-bacc-41b9-9438-20a31ed476ad", "1ee4c4d1-219f-4e3e-8476-e93914dd405b", "1a248e54-600e-4dd7-b3df-5c043da5762f", "0589a6f4-4aff-4fef-976e-59f20c10f216", "4d0bbbf5-94b5-4fc4-bd01-5f2e0cd2aef8"]
))
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"]
+ "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE",
+ tel="02-2716289",
+ email="R4daTST401@zYU9.com",
+ external_id="O5bmxo",
+ organization_code="21v-PA--8",
+ private_money_ids=["f9e15c0e-1d28-453a-a975-730a022b6491", "f145e3a1-d506-4774-b3de-4f04b212bab0", "3ca2b36f-445f-4388-9206-17a809bf05f3", "70aa5107-0453-40cc-a311-db5f89d60c60", "20782fe9-9d26-45a8-b40a-0e46d4789816", "f75d8514-b4c1-45d7-9eea-6476944f2b9a", "ad9963a3-ebce-482f-a27f-494679e8a56c", "e38ec102-3cfd-41cd-84a9-cc47ffd9c668", "bd55871b-3acf-4c00-b7cd-776a57527f0a", "ab4ad005-0fef-4e0d-9fae-b684cc5754a9"],
+ can_topup_private_money_ids=["d48528e9-d448-4b4c-a2f4-a44e19e6620d", "62858739-55d9-47bb-b179-dfb71bf80fa0", "5543418d-1b52-45de-b553-782de5b2dbe5", "1004dc98-062e-417b-acb4-b122c2e4ff7c", "cbcf6df2-af71-43ea-b144-f4b68eff0bed", "e7a67824-d91d-4742-b267-36be8188d3ab"]
))
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"]
+ "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE",
+ address="z0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lY",
+ tel="0424-270-738",
+ email="lQeLzTg9FC@P6bo.com",
+ external_id="kANEWZ0xko5",
+ organization_code="2By-J--1-Gp89-7-C---2--HA9a-Jye",
+ private_money_ids=["cb1affe6-0055-47b3-9b80-3bd439bf55aa", "efffde14-f5c3-488c-b1c1-25fc069e8f38", "d0f43b66-a3d6-45b5-9c03-bfeef84419eb", "b6b03683-907a-48f9-a107-5b4d85a6316f"],
+ can_topup_private_money_ids=["c812412c-d410-4948-8e8b-104698adc9ea", "e53b51ce-4f31-4cb6-8df4-e1315c75ea4e", "2b70ca17-9707-49ce-ae88-84de3f45a5fc", "1c20eaa4-ebfb-4e86-9430-86923737bf97", "8165ffcc-595b-4709-96d3-75ee0b3b8dd7", "ca20ee9b-28f9-4320-8c43-15497e5859e9"]
))
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"]
+ "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE",
+ postal_code="1381991",
+ address="yCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hj",
+ tel="04265-4850",
+ email="QOLtlkRPIA@eI3C.com",
+ external_id="woSJ0t0xwzgZ3",
+ organization_code="",
+ private_money_ids=["a293ec16-f815-4210-9073-8df4085b720a", "5e745902-f29d-4e15-a9f1-776a21eae237", "67229903-c86a-4ca8-8aaf-5db1a95a9558", "f4428aa8-2018-4961-bae4-5db03f8e3005", "781c38c0-897f-4b4d-9730-d5d1c2553615", "48608f45-8415-40b8-a287-a926e9dd5ff3", "db65c1e9-c691-46b7-be57-fdeb56918886", "839228f4-74fb-4eef-a16d-f65449b03e53"],
+ can_topup_private_money_ids=["45ab6949-7188-4bfd-adf3-deb32aa99c00", "4af6e773-8b06-4c73-bdf3-513a5c44d3b0", "fb9613e2-8dd3-455a-b1fc-2b6344f9c3a0", "66e0c7d2-0187-4635-b204-bfdd62185cbd"]
))
self.assertNotEqual(response.status_code, 400)
def test_get_shop_0(self):
response = client.send(pp.GetShop(
- "c7d33c82-4db4-47b3-b0de-f09941ac0ce3"
+ "97a6a400-27cd-4844-89bd-5a6728da9a96"
))
self.assertNotEqual(response.status_code, 400)
def test_update_shop_0(self):
response = client.send(pp.UpdateShop(
- "1bbb746a-5c11-4c71-b1cc-895e07238985"
+ "79730e08-bc85-44b0-847c-58afb26ed907"
))
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"]
+ "79730e08-bc85-44b0-847c-58afb26ed907",
+ 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=[]
+ "79730e08-bc85-44b0-847c-58afb26ed907",
+ can_topup_private_money_ids=["923525c2-b844-4414-9232-05e5ff431718", "2cffdc74-cb11-4e36-8c05-44119128dad2", "3193dd38-9339-41f6-9282-4807c885f481", "f806a765-a4e8-4559-895a-7ae2615ddcbf", "c96ae27c-b9cd-4268-b625-25cdbaafb710", "8586262f-49e6-47bf-a503-03bb2df6977d", "9658ed1e-04aa-4653-a841-edb8e44b5244", "908165b4-d940-44e0-85f6-32b72d26c00f", "2e3f1e1a-bf21-47cf-9cb7-e680fdf09ebe"],
+ status="active"
))
self.assertNotEqual(response.status_code, 400)
def test_update_shop_3(self):
response = client.send(pp.UpdateShop(
- "1bbb746a-5c11-4c71-b1cc-895e07238985",
- external_id="d3BmnZxBBpR9nxMbDW2W",
- private_money_ids=["466c0391-85b9-49a5-aefe-bec9f17a6c41", "0a9003f5-717b-4776-8ab0-cab717da3083", "2754c912-b7d4-4f39-bd23-9c3c35fcc64b", "ff2e4aa7-26c8-45d4-aafd-2aa6e7071d92", "6f6ac7bd-3718-4516-875e-594b58e1659a", "dfc48ed8-a598-4a99-8911-5d39d2a6535d"],
- can_topup_private_money_ids=["0ae9bcaf-542b-4fe3-972e-0022ffbf553c", "5dc42ffd-1427-4fb3-a230-756efae02d3b", "06011fd6-5a9a-4948-a426-0f644c452a6f"]
+ "79730e08-bc85-44b0-847c-58afb26ed907",
+ private_money_ids=["9885c747-0754-4b37-b04c-832f9d1167a1", "81201ac0-ee90-450a-915d-92b283a73614", "f10c6465-4af0-4511-b868-148e76a70713", "56e6a8d8-cb94-4f76-ae08-ad1330b0d366"],
+ can_topup_private_money_ids=["df8b51f2-cbdf-4ffe-9471-7d7f76fe8201", "646e9318-231f-490c-a7f7-53bc32725ac3", "7a7d65aa-a585-478b-b72b-017ad48a03dd", "7ef3ef76-4f1f-42c7-b61b-72038cfd8f35", "32a1d374-4729-4ffc-830e-b55862e8fe42", "61edf939-6eb3-47fd-9fb4-beb12334d3c1", "8a5b38e4-47ab-441b-845d-a1d16ae6e1a1", "674bcb1c-aee0-4ba6-ba8a-5e53b4ba968e", "80589076-5a72-49b2-bd00-55eaa46f64c4", "b5bb3d32-6e00-4ede-83d0-235eba69f142"],
+ 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"]
+ "79730e08-bc85-44b0-847c-58afb26ed907",
+ external_id="Eg6qDXhSH8haf",
+ private_money_ids=["377d2e09-0084-42f9-853b-4130bc346f2d", "1ac6c21d-850d-45c0-b344-d589be5aa228", "6cc9893e-f182-412e-946e-f44d2b5db9d0", "4eeabefc-557c-4810-b441-205e1d34e9b7", "a9ad5a26-6e54-4590-9a25-1533c6829584", "72f4c4c5-9aae-4db2-ae25-e2245c201e11", "098b7ec3-4ba4-4c80-9bb8-1aca95917aa0", "3293505a-2ee3-481b-b116-b3c9d04ee163", "5ee3fb19-2571-415a-a9c2-eb321e7b1f6e", "3278bc7b-886b-4b3e-9e82-bd68e6d341ad"],
+ can_topup_private_money_ids=["7a9a3fb5-84d6-42f5-ae6e-e6a43816bee8", "3ff40a32-a939-4b1a-ac98-7071b3c259fd", "86cfcbd7-ded1-4b5a-ba10-9f316ffcd5ab", "4746e334-e201-4ef8-8238-c1b9f00700b1", "add80cf2-01d0-4de0-9637-c346fa1a063e", "53563263-e064-4b87-a108-26440a046a80", "9ff31b65-4012-4e10-9e5b-5ec2545afeb6"],
+ status="disabled"
))
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"]
+ "79730e08-bc85-44b0-847c-58afb26ed907",
+ email="vcOZ1uNBAd@r6lf.com",
+ external_id="zbfqKlnsG40wZo0RT90mTv9ime",
+ private_money_ids=["094322e9-25a6-4f3e-99b6-d4b279373a42", "c9c34063-d8b0-458f-ae35-217984cf1178", "2a5f035f-efae-46a7-a778-32586fadc776", "50ad7ebb-354b-4006-a4df-2144aaba6be1", "349fe32a-e318-4f30-8d5f-0563edf0f317", "fc55b7b2-9476-4d35-bc4e-7cf60b6b7bbe", "396c6fc5-f352-4fff-921b-888fc4e05db1", "d5c2afef-fd0b-44f6-953b-1a6f88d74210", "24b42053-9a4d-4614-b889-d77520ef0b2b", "8f0408f7-7414-413c-9fef-f569440d7e73"],
+ can_topup_private_money_ids=["c9443f33-8f0c-433d-8615-b1680bf7fbcb", "e853b0cf-778e-4574-8841-7bef4119283f", "34e24629-048d-4f58-88a7-3137560b7d27", "1935306f-0970-462c-94f5-b2619b1b44e5"],
+ status="disabled"
))
self.assertNotEqual(response.status_code, 400)
def test_update_shop_6(self):
response = client.send(pp.UpdateShop(
- "1bbb746a-5c11-4c71-b1cc-895e07238985",
- address="3qtgKMvjDsKXEFhYl0BRpqUDYmqwBJzhV6dtnsmaJHCLyhHLjUCzekHgQwDCfsWS6JXTLuG14K9HQGpPICoaRhYRcaR59QCffGIaaiPRXQUB9KSDwnfHx9gXjCberbb7S8DARwQI05I6eJLYrFtVTc8XF6Iz7He5QYfhFsP0lBKY5Zym6qbNd5Gezpxyuuv2alBrKW",
- tel="04008708731",
- email="VHCWblj8QD@bDxz.com",
- external_id="olTpcO7N2cnroE2",
- private_money_ids=["e6126752-7bf0-44eb-8949-ff9894dfbbc9", "6c39f20a-07a3-4f76-9dad-ed9263274fe8", "93deb7b8-1aa3-4da4-a045-bfbf3386b98a", "53eb93f2-c521-496a-9d63-646c44ad88b3", "cfad8563-86fa-4b31-ae4e-aa5ed8a0f1ca", "4408da8d-2516-4663-885f-b65ee7f8ecf7", "8d41ae0b-acc8-466c-8e2c-5cd8ee9e689d", "9edc0770-2513-4f8d-97ea-dcc5a7b08728", "18083187-4ed5-4386-9178-340da1006446", "27998550-7798-431a-b95a-b49f34912262"],
- can_topup_private_money_ids=["6d3278ce-e389-438a-b8fe-281a643b057d", "6d86dd52-0219-466e-9637-23bd5304ae88", "b262c417-fa9c-4d26-a451-dd938291a11c"]
+ "79730e08-bc85-44b0-847c-58afb26ed907",
+ tel="00-8125841",
+ email="rFSjbB1hiR@jTNS.com",
+ external_id="U46DKPvyktKcWCyKm4tG2F",
+ private_money_ids=["b37e8ae5-7c03-4dae-9fd7-fb5862325978", "36eb65d0-8b4e-4936-92e9-0ecd44c21256", "82837668-4286-4fda-ad1f-94829086e990", "706f4d6d-ff47-4aea-9e30-d61108add354", "27a38d8d-6d4d-4c91-8ea3-b3eaef1475d0", "c5f62e06-7f17-4426-92ac-f1a83e64c546", "4fc42fcc-6da7-4908-98cd-0b2b27293b1e", "4dcee2b0-d25c-468f-bec4-5a4c24fca67c", "78c18a88-f764-47f7-8015-8d569a8c6fd8", "7988f124-15a2-4b31-aa24-1c1f3f0f923f"],
+ can_topup_private_money_ids=[],
+ status="active"
))
self.assertNotEqual(response.status_code, 400)
def test_update_shop_7(self):
response = client.send(pp.UpdateShop(
- "1bbb746a-5c11-4c71-b1cc-895e07238985",
- postal_code="991-6759",
- address="2KNkDfzWRiioT9QYFPklAn30gj1CmaOUBeCZvfeO7Sgh2QcnuYHCBxXNgm1qjvh6lwQ5YfQRfoj2wOYmg9391o91QzyCQzu6PMATfONJfxW9vGUYm5paU0VcU72VDfrMfAvz54ATPoiAdZgk",
- tel="055594-2253",
- email="007xOusoKd@SFtN.com",
- external_id="kw4qjPQJ7jTB834R",
- private_money_ids=["8e19438a-8a79-4242-9aeb-7e77fc0c2373", "71eaa4ff-ff49-4d7d-836a-f6da4e577988", "ff4c8589-5792-4a1b-9f31-15f0bbd072b1", "6c0025fc-990c-44e2-add4-e41bf35479cd", "4f999de1-c144-4b3b-a972-22ce23116fb4", "c26cbc47-bd32-4125-a014-7e1390d527a9", "22d2c146-1e18-4013-969a-54e3aba56417", "80e9cb52-3dc1-4c49-8c54-13d0981cd917"],
- can_topup_private_money_ids=["f6851f51-1394-40cc-bba3-5505bf3e0e78", "25b56e66-2efa-4485-b7a6-830c9f77fa0d", "48922c88-e2a4-4baf-9159-fd0a722e55fa", "05871c71-811b-4069-a019-7258bf6c21f6", "4c9fdc04-4431-40a7-a364-50dc3c27cdc2"]
+ "79730e08-bc85-44b0-847c-58afb26ed907",
+ address="fPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EE",
+ tel="052-0491-9945",
+ email="BrmndiCNxX@XwjF.com",
+ external_id="RAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j",
+ private_money_ids=["a5ab3533-b49b-43ff-a507-0bae901ca15e", "4a9013ad-7082-4a3b-a493-f22cfe809c44", "acf091e3-799b-4270-9a75-85ff0a3de75d", "f14fea1d-27b9-49e9-8ee9-8b8f7d30d0c0", "2ebe0345-930a-451c-b709-c6e3bc72d66f"],
+ can_topup_private_money_ids=["f5427be5-1b9e-43a2-84d1-0633483129b6", "8538da80-0fce-43d2-a5b2-c62c9624cc49", "21b9ace0-02ea-41bc-a879-aabf1879aac2", "e6bd7634-da84-4ba7-9bbe-1c76d4a21acb", "8b3a6610-93ac-4809-bbd1-5fdd85bba8b7"],
+ status="active"
))
self.assertNotEqual(response.status_code, 400)
def test_update_shop_8(self):
response = client.send(pp.UpdateShop(
- "1bbb746a-5c11-4c71-b1cc-895e07238985",
- name="YjUZmnwyS1mAzTO6PEOOvujUYEjG1bsd93HwfuPWrouBgDO",
- postal_code="1471981",
- address="cuEYpTU2CQDBEdrTGpzQaoH7roprIUCAGYbFfz98qEYs3fTBqIMEk6UFEGcRCIsN4Zfz8ZjlCqkGEh1KM2WnPd3zzJU6PO3sdcI8PDT08v74BI2VPe8qds4I2MEA4gJjHtGd0BbRBDVeSYn8uvrsJwmXqAKgViXf2eJim1RdN4XCU5aG5xcoPdJ6AA1qyCCpsvposWm2l41CxysbDiZ7jcWk9v3rFUsJH",
- tel="089039-7525",
- email="HWJNhtXiYy@5phV.com",
- external_id="xCRdiZLpJEvBgW4klcH2n",
- private_money_ids=["e5bdbf79-6230-4bbd-8e3c-33107e87dad5", "59d21014-28fb-486d-a172-52033e4a7844", "605c6d4f-befe-4ef1-a6c0-998dba80741d", "c1b69323-66c2-40ac-86af-4c59e32f364e", "5f2d6eee-751f-474d-ad24-37cc9f8a058f", "15cb1d94-5b09-4761-b023-6ba202431539", "7682a948-55a0-4c9e-8cd3-fbe8b9556d3f"],
- can_topup_private_money_ids=["3b9dc5f7-0e15-4a9d-8b06-3126f3bd9df5", "95b9ef20-1ec2-47da-9c3f-62cebf498d1b", "98f92f48-6af7-4048-8cf5-47460e5d62fe", "316160b2-5273-4efd-916f-0d2b17607d72", "65d9b182-2ad2-4592-b0d0-0773a45ae85f", "7efe4b5a-3028-4517-b480-e0fe23bff0c5", "ce1c79b7-ec36-44ad-81f7-65b81b9476cf", "3f10b77c-2427-4100-8058-99827749ad6a", "50eee773-bc75-41e4-9291-987004a9b043"]
+ "79730e08-bc85-44b0-847c-58afb26ed907",
+ postal_code="237-1703",
+ address="Cjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG76qE4T1vOrKA4IwgS5AgijWRyxneekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJAVzV6vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U",
+ tel="04-42-610",
+ email="HKqYzk7GBG@1DZK.com",
+ external_id="BRFerhSu",
+ private_money_ids=["128b3e97-2200-4214-a2b2-bb7e371cbb21", "6a3bc367-9347-44bc-a2e7-123e512f87e1"],
+ can_topup_private_money_ids=["640b19f0-0b03-47a8-8630-82ee9a6dcfed", "8c5f834c-fc4d-4d1a-a6dc-16ee560b2307", "433fd12b-7b49-43af-9c59-42d4ec62a710", "a0a706fb-25d1-4764-be1e-50bab17f1c9b", "9611cef1-3192-4c83-bc1d-f0c83706b100", "31fe607f-9324-434a-9a25-6ab807cf05d7", "76ab9909-596e-46c0-8418-5d48161c9a8f"],
+ status="disabled"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_shop_9(self):
+ response = client.send(pp.UpdateShop(
+ "79730e08-bc85-44b0-847c-58afb26ed907",
+ name="VfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1",
+ postal_code="051-9562",
+ address="T2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2A",
+ tel="0429007-5087",
+ email="1V16DlcE5m@r4I9.com",
+ external_id="qCPq1klPYI",
+ private_money_ids=["03a74be9-f7b4-4d7e-a61c-1367a873a25a", "321df47a-8cde-4c2e-b0bb-f90d410cf32e", "e1140cc6-fd9e-45e6-8782-5e3934f3db99", "b2490f76-1f3b-445d-8420-acc3418c5852", "ff3f331a-3696-442c-8d94-87c45afc9fa5"],
+ can_topup_private_money_ids=["84cdb638-b9ca-4bb5-b99e-b84f7786305b", "b01b001c-98f4-44e3-af5f-26eb61ab243c", "4bc11f86-237f-4e1d-ab3e-7aa89137b5c5", "a6cda5df-7a84-4216-a84d-ea4d0ac938d6", "01024e5e-0d9b-485d-89e8-d46db38ecacb"],
+ status="disabled"
))
self.assertNotEqual(response.status_code, 400)
@@ -2998,497 +3688,545 @@ def test_get_private_moneys_0(self):
def test_get_private_moneys_1(self):
response = client.send(pp.GetPrivateMoneys(
- per_page=4872
+ per_page=5299
))
self.assertNotEqual(response.status_code, 400)
def test_get_private_moneys_2(self):
response = client.send(pp.GetPrivateMoneys(
- page=7705,
- per_page=7080
+ page=6796,
+ per_page=1258
))
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="aS3qLR873-i-2m5ZG9-807s-2-i",
+ page=4191,
+ per_page=4017
))
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"
+ "ff54fc91-7642-4ae0-919d-07e4e7d7a11f"
))
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
+ "ff54fc91-7642-4ae0-919d-07e4e7d7a11f",
+ page=13
))
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
+ "ff54fc91-7642-4ae0-919d-07e4e7d7a11f",
+ per_page=627,
+ page=3171
))
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"
+ "ff54fc91-7642-4ae0-919d-07e4e7d7a11f",
+ start="2024-11-05T18:59:45.000000Z",
+ to="2020-09-03T19:49:23.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
+ "ff54fc91-7642-4ae0-919d-07e4e7d7a11f",
+ start="2021-04-04T15:41:36.000000Z",
+ to="2022-07-23T21:24:52.000000Z",
+ page=6486
))
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
+ "ff54fc91-7642-4ae0-919d-07e4e7d7a11f",
+ start="2023-03-13T13:21:42.000000Z",
+ to="2026-01-12T13:46:50.000000Z",
+ per_page=6895,
+ page=2455
))
self.assertNotEqual(response.status_code, 400)
def test_get_private_money_summary_0(self):
response = client.send(pp.GetPrivateMoneySummary(
- "1b466ba8-55d0-40a0-8b9b-3c4e820dad5f"
+ "e8a6c2da-79ee-489b-936f-02677817e878"
))
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"
+ "e8a6c2da-79ee-489b-936f-02677817e878",
+ to="2022-02-21T20:18:06.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"
+ "e8a6c2da-79ee-489b-936f-02677817e878",
+ start="2020-05-17T00:49:18.000000Z",
+ to="2020-12-07T20:20:30.000000Z"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_get_customer_cards_0(self):
+ response = client.send(pp.GetCustomerCards(
+ "80ccf0e2-b363-43b4-a8f7-e85d3882f8ec"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_get_customer_cards_1(self):
+ response = client.send(pp.GetCustomerCards(
+ "80ccf0e2-b363-43b4-a8f7-e85d3882f8ec",
+ per_page=94
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_get_customer_cards_2(self):
+ response = client.send(pp.GetCustomerCards(
+ "80ccf0e2-b363-43b4-a8f7-e85d3882f8ec",
+ page=7230,
+ per_page=62
))
self.assertNotEqual(response.status_code, 400)
def test_list_customer_transactions_0(self):
response = client.send(pp.ListCustomerTransactions(
- "05b16a54-5888-47c7-a866-6d99ba6a6c01"
+ "2132ceb0-1e50-47b2-842a-567f37ca2208"
))
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
+ "2132ceb0-1e50-47b2-842a-567f37ca2208",
+ per_page=7538
))
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
+ "2132ceb0-1e50-47b2-842a-567f37ca2208",
+ page=9065,
+ per_page=5172
))
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
+ "2132ceb0-1e50-47b2-842a-567f37ca2208",
+ to="2020-10-22T23:31:16.000000Z",
+ page=8189,
+ per_page=7380
))
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
+ "2132ceb0-1e50-47b2-842a-567f37ca2208",
+ start="2021-05-13T16:08:43.000000Z",
+ to="2022-01-28T20:35:55.000000Z",
+ page=1972,
+ per_page=6606
))
self.assertNotEqual(response.status_code, 400)
def test_list_customer_transactions_5(self):
response = client.send(pp.ListCustomerTransactions(
- "05b16a54-5888-47c7-a866-6d99ba6a6c01",
- is_modified=True,
- start="2025-08-08T19:15:15.000000+09:00",
- to="2016-06-23T11:03:31.000000+09:00",
- page=6121,
- per_page=1352
+ "2132ceb0-1e50-47b2-842a-567f37ca2208",
+ is_modified=False,
+ start="2022-02-09T05:00:48.000000Z",
+ to="2023-07-11T23:03:57.000000Z",
+ page=4460,
+ per_page=2624
))
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",
+ "2132ceb0-1e50-47b2-842a-567f37ca2208",
+ type="topup",
is_modified=True,
- start="2022-10-03T04:47:28.000000+09:00",
- to="2020-06-28T15:24:41.000000+09:00",
- page=4552,
- per_page=8478
+ start="2022-09-18T20:50:12.000000Z",
+ to="2021-11-28T23:59:41.000000Z",
+ page=4663,
+ per_page=6852
))
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
+ "2132ceb0-1e50-47b2-842a-567f37ca2208",
+ receiver_customer_id="4c384bec-6dee-409d-a830-b96e4d4efb8a",
+ type="expire",
+ is_modified=False,
+ start="2021-02-14T03:14:00.000000Z",
+ to="2024-08-14T22:35:33.000000Z",
+ page=3214,
+ per_page=70
))
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",
+ "2132ceb0-1e50-47b2-842a-567f37ca2208",
+ sender_customer_id="a1dcf9f7-dc35-447e-8412-f9b8f0787633",
+ receiver_customer_id="47af603c-80ca-4332-975f-fc453e211f42",
+ type="payment",
is_modified=False,
- start="2016-11-22T14:49:47.000000+09:00",
- to="2023-09-25T01:21:44.000000+09:00",
- page=7699,
- per_page=7048
+ start="2024-11-12T16:05:48.000000Z",
+ to="2023-11-30T16:04:38.000000Z",
+ page=7185,
+ per_page=9592
))
self.assertNotEqual(response.status_code, 400)
def test_get_bulk_transaction_0(self):
response = client.send(pp.GetBulkTransaction(
- "8300a4b9-cfd7-4739-abb1-07e548bc1afd"
+ "774f7d6e-0e80-413f-871b-c9ad0aa54f65"
))
self.assertNotEqual(response.status_code, 400)
def test_list_bulk_transaction_jobs_0(self):
response = client.send(pp.ListBulkTransactionJobs(
- "1e4cffcb-fa3a-4e0b-889d-159adda948b7"
+ "852eee3b-f35b-4508-9588-d9d4de2e22af"
))
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
+ "852eee3b-f35b-4508-9588-d9d4de2e22af",
+ per_page=8470
))
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
+ "852eee3b-f35b-4508-9588-d9d4de2e22af",
+ page=4071,
+ per_page=5065
))
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
+ "5ca2bbb1-3216-48f0-b171-26ec05dfcc03",
+ "63d7205e-21c9-48a8-a0bd-bb1d4eb5cc68",
+ 7688.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
+ "5ca2bbb1-3216-48f0-b171-26ec05dfcc03",
+ "63d7205e-21c9-48a8-a0bd-bb1d4eb5cc68",
+ 7688.0,
+ expires_in=2305
))
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
+ "5ca2bbb1-3216-48f0-b171-26ec05dfcc03",
+ "63d7205e-21c9-48a8-a0bd-bb1d4eb5cc68",
+ 7688.0,
+ description="KkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJ",
+ expires_in=4682
))
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(
+ "1cbf2b06-cf32-46e0-a6eb-f3ef0282918b"
))
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(
+ "ddb0dd59-258d-4611-878e-db9420db9586"
))
self.assertNotEqual(response.status_code, 400)
def test_update_cashtray_0(self):
response = client.send(pp.UpdateCashtray(
- "eb79417e-11ba-41b0-97ba-a66dfab9dd91"
+ "2d39a92c-e0bd-4586-a492-a61b1264550a"
))
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
+ "2d39a92c-e0bd-4586-a492-a61b1264550a",
+ expires_in=6558
))
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
+ "2d39a92c-e0bd-4586-a492-a61b1264550a",
+ description="uaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6Xqlqr",
+ expires_in=4874
))
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
+ "2d39a92c-e0bd-4586-a492-a61b1264550a",
+ amount=3257.0,
+ description="ptmz4nyVSUDS2rGPI8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89",
+ expires_in=2117
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_campaigns_0(self):
+ response = client.send(pp.ListCampaigns(
+ "fd800db0-acbf-4388-a854-baf08f22a10a"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_campaigns_1(self):
+ response = client.send(pp.ListCampaigns(
+ "fd800db0-acbf-4388-a854-baf08f22a10a",
+ per_page=29
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_campaigns_2(self):
+ response = client.send(pp.ListCampaigns(
+ "fd800db0-acbf-4388-a854-baf08f22a10a",
+ page=9391,
+ per_page=38
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_campaigns_3(self):
+ response = client.send(pp.ListCampaigns(
+ "fd800db0-acbf-4388-a854-baf08f22a10a",
+ available_to="2022-03-04T06:42:31.000000Z",
+ page=1796,
+ per_page=36
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_campaigns_4(self):
+ response = client.send(pp.ListCampaigns(
+ "fd800db0-acbf-4388-a854-baf08f22a10a",
+ available_from="2022-04-27T15:23:38.000000Z",
+ available_to="2020-01-23T22:52:17.000000Z",
+ page=7546,
+ per_page=25
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_campaigns_5(self):
+ response = client.send(pp.ListCampaigns(
+ "fd800db0-acbf-4388-a854-baf08f22a10a",
+ is_ongoing=False,
+ available_from="2024-12-16T18:45:53.000000Z",
+ available_to="2023-03-17T19:45:26.000000Z",
+ page=3011,
+ per_page=12
))
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"
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["7d030ef8-b390-445b-83c6-fa2f553d7a5c", "9b9f94af-bed8-4f23-8fb7-012db8a494d0", "a4127608-18af-4d44-89e7-4d986dd00b2d", "3d07d367-8e72-4afa-aece-075712154f8a", "02a68cc2-0856-4209-b05d-c205f76bbef0", "f8ad3e0f-26b9-4a8d-88c2-1dc251ce480f", "2d45c754-752c-4a54-b0ab-5d29a60c80b6", "48c0cf9c-73c1-4fc7-b04d-be9a9fb9930e"]
))
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"
- }
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["41b855cd-9622-4aa3-a08f-cb9d174e0e3e", "8a4c09cf-109e-447e-bd81-2133f1385ce2", "3c841774-d0c0-4f48-ad59-fca373af6f9c"],
+ bear_point_shop_id="e90da617-e947-49e9-aac2-052876cbb814"
))
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"
- }
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["2ad1fb98-df2d-470a-9bd1-73e1d20744ec", "248aa002-1b75-41b6-839c-e000e75c8512", "0c5d789e-4263-4168-a7ba-ec3be5bcdca2", "a369adc4-0317-4bd6-b220-18d0eb4a55e3", "08abf01a-b1ea-4a0d-940c-8bdca1423ca4"],
+ description="2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i",
+ bear_point_shop_id="404d2fa8-e331-4cf2-aa1d-bce3b4fd5861"
))
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"
- }
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["b3b32ad2-d47d-4fab-b47e-4e8c77cbbec5", "84cf6c57-2e6d-4315-9005-ad0147fde34a", "126b13d2-d259-459a-855c-003048149296", "d298cbaa-d098-459e-b6df-7067f4066ccc"],
+ status="disabled",
+ description="Gn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9",
+ bear_point_shop_id="9529ebcc-27aa-4a9a-a724-498458d7e7b6"
))
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"
- }
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["bafd2a34-8def-4512-97ef-f7d2b622fcf8", "2b446b1c-fd4b-442b-91be-73b5cc37bacb", "77d4269c-f20c-47a6-9e85-a1526012cd18", "f7d464f2-5ead-4833-a916-022824af3d86", "ab536a68-b0fb-448e-b865-c4679ca7bb8e"],
+ point_expires_at="2020-05-07T23:44:06.000000Z",
+ status="disabled",
+ description="CN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXd",
+ bear_point_shop_id="b029329b-46bc-446e-9f1a-e8c54d0890ce"
))
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"
- }
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_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"],
+ point_expires_in_days=5471,
+ point_expires_at="2023-02-16T20:10:15.000000Z",
+ status="enabled",
+ description="iPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpV",
+ bear_point_shop_id="1979b09d-d582-47ac-93eb-d7532b65a0e4"
))
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"
- }
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["55097a89-80af-4a42-a440-eeff2e8a5b82", "7829c4d1-020f-439a-bcfa-9471262e0558"],
+ is_exclusive=True,
+ point_expires_in_days=7136,
+ point_expires_at="2024-06-04T13:59:51.000000Z",
+ status="disabled",
+ description="Ck88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2A",
+ bear_point_shop_id="b57222e6-53ad-4315-8f2d-ca0c5531a82b"
))
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"
- }
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["49011f99-2921-42b5-a31a-c7377846026e", "f49c3173-5a53-45db-b8f0-d654f739af0a", "3739a38c-d88b-4ab7-a9f7-b84e413bf7ec", "17c38589-2f9d-4b39-9843-38cb3af5f505", "d909de4e-0980-4a35-bf00-fcafb9fc69f9", "9b392018-fa40-48a0-a89f-7ec3cb7e04a0", "f0cdaa73-2302-4014-84cd-c1bec2415f18"],
+ subject="all",
+ is_exclusive=True,
+ point_expires_in_days=5012,
+ point_expires_at="2024-10-22T19:39:13.000000Z",
+ status="disabled",
+ description="6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz",
+ bear_point_shop_id="044a3830-c575-4044-a5ef-7711eafd233d"
))
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"
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["1dc51783-f87b-4cb2-8712-ef272d10b961", "f770e2e0-3f78-4f11-a885-e43f3814f8a6", "570004cc-1789-4a85-8da9-eb6add3ac78b", "f528585a-9d82-4ca6-a84d-fa7e8c924137", "a4d8b217-ea07-41e6-8218-9abe663e2bf4", "d8b5e245-6e2c-4ea4-ac9f-80693b593d4b", "b5116a27-77d0-4bfc-bac0-aad15d90194c"],
+ 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=False,
+ point_expires_in_days=7115,
+ point_expires_at="2022-05-08T02:45:03.000000Z",
+ status="enabled",
+ description="tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3",
+ bear_point_shop_id="3ac17578-6ad0-4c51-baa1-c2502b58ffa5"
))
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",
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["6056ebbb-a787-4abe-97bf-ad5aabca754d", "7c22c7ba-c0e1-43b3-a354-fced31ede7bb", "90c893aa-a810-41d4-bff3-603dafb2eb6c"],
product_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
@@ -3513,33 +4251,13 @@ def test_create_campaign_10(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
}],
- 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",
@@ -3555,56 +4273,81 @@ def test_create_campaign_11(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, 2, 3, 1],
- applicable_time_ranges=[{
- "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
}, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
}, {
- "from": "12:00",
- "to": "23:59"
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
}],
- applicable_shop_ids=["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"
- }
+ subject="money",
+ is_exclusive=False,
+ point_expires_in_days=6,
+ point_expires_at="2022-03-18T09:03:54.000000Z",
+ status="disabled",
+ description="00PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoX",
+ bear_point_shop_id="0f58ed12-6757-4a8e-84a2-5ab381847212"
))
self.assertNotEqual(response.status_code, 400)
- def test_create_campaign_12(self):
+ 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",
- subject="all",
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["ca3f93a4-28a8-41d2-bc2c-c9f19bd0ed6c", "ef0af12b-4f17-4bd4-8898-3e2ce859c485", "d2de2059-5ffb-4cf7-8dde-700741016714", "6442c90f-854f-40bf-a580-5e1715c1dd73"],
+ 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
+ }],
amount_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
@@ -3620,6 +4363,53 @@ def test_create_campaign_12(self):
"point_amount_unit": "percent",
"subject_more_than_or_equal": 1000,
"subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_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=2386,
+ point_expires_at="2021-06-24T11:48:48.000000Z",
+ status="enabled",
+ description="umGQVfUsw4hfYXr8Tws7k4",
+ bear_point_shop_id="08c1287b-3fb8-4192-b08c-e18740a510ff"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_11(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["77b27466-25aa-46cc-8d87-f50e2f247b1b", "eb9d67fb-f920-4561-8f0b-7f28f82d049c", "4fb98b15-9034-43b4-bf17-0eced34e104a", "01ff14cd-212b-419b-8398-c7c3c9acb665", "d892228b-964a-4938-aaec-0613e4a6c82d", "27046f73-61c3-45e6-9eb1-b2da5e20cf11", "4d8f562f-97c7-49ae-ad7d-a6e6a581fa65", "0f3ba77f-9cb6-41e7-9319-7998146464b6"],
+ applicable_days_of_week=[0, 2, 6],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}],
product_based_point_rules=[{
"point_amount": 5,
@@ -3651,14 +4441,37 @@ 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",
- "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=[2],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=4601,
+ point_expires_at="2026-02-26T05:09:33.000000Z",
+ status="disabled",
+ description="GU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYc",
+ bear_point_shop_id="e932099e-7370-4add-aeaa-dd04a84fc893"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_12(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["840a6d3e-6292-4984-b5a4-88b80f42df25"],
applicable_time_ranges=[{
"from": "12:00",
"to": "23:59"
@@ -3674,43 +4487,11 @@ def test_create_campaign_12(self):
}, {
"from": "12:00",
"to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
}],
- applicable_shop_ids=["4412b72f-e87b-4a94-bbf3-26299824d007", "973ae698-f750-4821-9fe4-e5b1f21eb564", "034470d6-bfb4-4dfc-a0ed-caaf04bdc62a"],
- minimum_number_for_combination_purchase=5470,
- exist_in_each_product_groups=False,
- max_point_amount=7126,
- max_total_point_amount=9863,
- dest_private_money_id="4f3c775c-92e5-4817-b6c7-5befd7dccefd",
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_create_campaign_13(self):
- response = client.send(pp.CreateCampaign(
- "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs",
- "a3dd2a8c-a0c8-4a92-9f88-255c868fa801",
- "2019-03-03T02:07:28.000000+09:00",
- "2023-07-26T09:59:50.000000+09:00",
- 4686,
- "payment",
- is_exclusive=False,
- subject="money",
- amount_based_point_rules=[{
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
- }, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ applicable_days_of_week=[4, 3, 1, 0, 4],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}],
product_based_point_rules=[{
"point_amount": 5,
@@ -3742,20 +4523,68 @@ def test_create_campaign_13(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
}],
- applicable_days_of_week=[6, 0, 5, 5],
+ subject="money",
+ is_exclusive=True,
+ point_expires_in_days=6474,
+ point_expires_at="2025-06-18T02:42:27.000000Z",
+ status="disabled",
+ description="DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51Au",
+ bear_point_shop_id="ffadecd5-d9fd-44c0-bbbc-85bdfeba7a3c"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_13(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["cf97f8ee-eb79-4248-9d76-3e35b1f9945d", "922b6637-de72-49a6-84e2-a399c3c390f6", "6a0d631d-241a-4eed-b5bf-348cddebc04c", "5ef02a0f-309a-4537-8271-3b59367794e4", "09b701b2-6638-48d9-996c-d104d020ba71", "d3205ead-a305-4534-a4d0-49d4b40e7652"],
+ minimum_number_of_products=8796,
applicable_time_ranges=[{
"from": "12:00",
"to": "23:59"
@@ -3777,36 +4606,32 @@ def test_create_campaign_13(self):
}, {
"from": "12:00",
"to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
}],
- applicable_shop_ids=["9479d6d5-33f5-4dbb-af5c-892ddee283af", "1ab52c18-9d5c-49dd-839a-2a8dd54b0818", "e410730e-8a4a-43d6-9dcb-3825d37908b5", "57bba400-25a3-43dd-8cc1-593deaf4ee47", "6d2da28c-9053-4165-acde-c1e90d379586", "02d7d411-1cd7-4857-a8c0-8a252dd067c5"],
- minimum_number_for_combination_purchase=9268,
- exist_in_each_product_groups=False,
- max_point_amount=6200,
- max_total_point_amount=9283,
- dest_private_money_id="b2c24a4e-7ce5-4362-aeb7-fb322545d972",
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_create_campaign_14(self):
- response = client.send(pp.CreateCampaign(
- "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs",
- "a3dd2a8c-a0c8-4a92-9f88-255c868fa801",
- "2019-03-03T02:07:28.000000+09:00",
- "2023-07-26T09:59:50.000000+09:00",
- 4686,
- "payment",
- point_expires_in_days=481,
- is_exclusive=False,
- subject="money",
- amount_based_point_rules=[{
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ applicable_days_of_week=[2, 0, 2, 4, 3, 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_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}],
product_based_point_rules=[{
"point_amount": 5,
@@ -3827,54 +4652,6 @@ def test_create_campaign_14(self):
"is_multiply_by_count": True,
"required_count": 2
}],
- applicable_days_of_week=[0, 3, 5, 3, 6, 0, 5, 4],
- applicable_time_ranges=[{
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }],
- applicable_shop_ids=["14ca9a8b-050b-4f3a-818c-0bf87d1d95a6", "53fe7815-2ef5-478f-92ba-5468132e8f14", "6016d087-3eb6-4a1a-9ebf-89b6ead1a6b1", "85796cd5-edb8-4816-be8a-16321a3d54e2", "3cb38187-3230-443c-bcf9-0f2705aacd2f", "151fb790-362a-41e5-9986-1aef9c532a1f", "cdbaff35-7d06-42fa-a64f-70c19e8cbf27", "3c3d08ab-7967-4a3b-a453-a5cc921c7e2a", "07365ed6-1640-4b0b-8ee2-4f3180027931", "c65a8ce8-005a-4eca-ae57-fe2ca3c34e45"],
- minimum_number_for_combination_purchase=7866,
- exist_in_each_product_groups=True,
- max_point_amount=538,
- max_total_point_amount=9877,
- dest_private_money_id="6484e7e8-7a8a-421c-bbce-fe1fac01cce4",
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_create_campaign_15(self):
- response = client.send(pp.CreateCampaign(
- "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52Y9Vo2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTs",
- "a3dd2a8c-a0c8-4a92-9f88-255c868fa801",
- "2019-03-03T02:07:28.000000+09:00",
- "2023-07-26T09:59:50.000000+09:00",
- 4686,
- "payment",
- point_expires_at="2021-01-01T13:57:44.000000+09:00",
- point_expires_in_days=4438,
- is_exclusive=True,
- subject="all",
amount_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
@@ -3920,48 +4697,61 @@ def test_create_campaign_15(self):
"point_amount_unit": "percent",
"subject_more_than_or_equal": 1000,
"subject_less_than": 5000
- }],
- product_based_point_rules=[{
+ }, {
"point_amount": 5,
"point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
}],
- applicable_days_of_week=[1, 1, 3, 1],
- applicable_time_ranges=[{
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }],
- applicable_shop_ids=["53183c74-811a-4a3c-b07d-220b7bc3e150"],
- minimum_number_for_combination_purchase=1165,
- exist_in_each_product_groups=False,
- max_point_amount=480,
- max_total_point_amount=7822,
- dest_private_money_id="7dbac46f-f891-433c-ae57-b29c53b02649",
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=7903,
+ point_expires_at="2024-04-18T21:46:05.000000Z",
+ status="disabled",
+ description="txlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnIC",
+ bear_point_shop_id="b74c1a25-6788-4c0a-ba08-bc225a5bc4c2"
))
self.assertNotEqual(response.status_code, 400)
- def test_create_campaign_16(self):
+ 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",
- status="enabled",
- point_expires_at="2021-06-04T07:55:30.000000+09:00",
- point_expires_in_days=9766,
- is_exclusive=False,
- subject="money",
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["bc66c96d-b42a-4547-8202-684b2523cebb", "a65e7169-048c-416f-b014-43aca29040a0", "081e6cf2-9e3d-4eae-a181-21d6f005e700", "d37e07b9-4cc6-427d-8975-7c345153ff37", "4a785fbe-17be-47d7-94e9-707d598c2c06", "6127c3df-2344-43e7-827c-2b947884536e", "9ce4d227-cd39-42d6-8aea-c89ba01a9d5f", "e5db62c5-2744-4089-b1de-22b7124c5d16", "cb1f736b-702e-4d6a-a84e-d93aabe8d129", "e9aee72f-0ff2-4f25-be32-edbeca7f851c"],
+ minimum_number_of_amount=2052,
+ minimum_number_of_products=7560,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[0, 3, 4],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
amount_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
@@ -3982,27 +4772,39 @@ def test_create_campaign_16(self):
"point_amount_unit": "percent",
"subject_more_than_or_equal": 1000,
"subject_less_than": 5000
- }],
- product_based_point_rules=[{
- "point_amount": 5,
- "point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
}, {
"point_amount": 5,
"point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
}, {
"point_amount": 5,
"point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
}],
- applicable_days_of_week=[],
+ subject="money",
+ is_exclusive=True,
+ point_expires_in_days=8988,
+ point_expires_at="2023-04-25T19:35:42.000000Z",
+ status="disabled",
+ description="IsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6",
+ bear_point_shop_id="e7a93a19-5f6f-4022-be1a-bbcf3d8b4af0"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_15(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["2948b319-2b0d-4008-8c6e-5d8314d81c92", "cbf452d8-65b5-4170-a165-b586c41d9aa6", "ce538f26-3b70-44f2-9857-2574578a5ad0", "06352c53-1cc7-44da-b2cc-6a399f86463b", "e719873f-27fd-42d5-a472-546d9c8a3581", "16b0a614-face-4925-ba12-92021ec74355"],
+ minimum_number_for_combination_purchase=6548,
+ minimum_number_of_amount=4505,
+ minimum_number_of_products=8372,
applicable_time_ranges=[{
"from": "12:00",
"to": "23:59"
@@ -4024,144 +4826,113 @@ def test_create_campaign_16(self):
}, {
"from": "12:00",
"to": "23:59"
+ }],
+ applicable_days_of_week=[2, 2, 6, 1, 6, 0, 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"
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "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",
- "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_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, 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"
+ "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
+ }],
+ 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"
- }],
- 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 +4952,56 @@ 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=1555,
+ point_expires_at="2025-03-31T01:50:01.000000Z",
+ status="disabled",
+ description="J7yB2uIbdTxo63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8",
+ bear_point_shop_id="3e7b77d2-c6a9-4eb4-a5e2-621d76522a19"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_16(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["5ed2ee68-8292-43cf-a4e1-8ec25f1774a9", "c99b8a8c-32f7-43c7-8c00-86a102cde81b", "bf55398e-a68b-42d6-968e-11c8aaffc677", "0f8137f4-65ce-4833-9ac1-d746578e5b86"],
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=4019,
+ minimum_number_of_amount=4273,
+ minimum_number_of_products=3415,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[1, 2, 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_based_point_rules=[{
"point_amount": 5,
@@ -4236,207 +5057,77 @@ 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
- }],
- applicable_days_of_week=[],
- 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"
- }],
- applicable_shop_ids=["f5822a34-75cf-4bc2-a5c2-bd97ef8c32e4", "0143d27f-e96d-4e13-90fe-3ec16f86ba4b", "90a5fee9-0577-47af-8b2a-0e98a1080f0d", "8758ea6b-dd19-4294-97d6-1a4dacdc2ae5", "d3dd4ec7-d38a-4ff7-af94-0b5e7335c463", "a6e05010-250f-4bdc-aeb0-e49970bdb5f4", "1a82271f-e565-4d6c-80d6-b698b9698e7d", "7b829275-f20b-4932-b495-742f3c16038a"],
- minimum_number_for_combination_purchase=5967,
- exist_in_each_product_groups=False,
- max_point_amount=6027,
- max_total_point_amount=9202,
- dest_private_money_id="29877b46-9825-42b3-8f5e-00e958920599",
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_list_campaigns_0(self):
- response = client.send(pp.ListCampaigns(
- "86b887e9-ffcf-4a75-aaa1-c9d2cdf8b927"
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_list_campaigns_1(self):
- response = client.send(pp.ListCampaigns(
- "86b887e9-ffcf-4a75-aaa1-c9d2cdf8b927",
- per_page=2193
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_list_campaigns_2(self):
- response = client.send(pp.ListCampaigns(
- "86b887e9-ffcf-4a75-aaa1-c9d2cdf8b927",
- page=6395,
- per_page=5370
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_list_campaigns_3(self):
- response = client.send(pp.ListCampaigns(
- "86b887e9-ffcf-4a75-aaa1-c9d2cdf8b927",
- is_ongoing=True,
- page=7970,
- per_page=4015
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_get_campaign_0(self):
- response = client.send(pp.GetCampaign(
- "c7da7402-0838-4b4d-be12-ed63035b186a"
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_0(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff"
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_1(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_2(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- max_total_point_amount=6985,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_3(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- max_point_amount=483,
- max_total_point_amount=5324,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_4(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- exist_in_each_product_groups=True,
- max_point_amount=3283,
- max_total_point_amount=203,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_5(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- minimum_number_for_combination_purchase=8693,
- exist_in_each_product_groups=True,
- max_point_amount=6573,
- max_total_point_amount=6922,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_6(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- applicable_shop_ids=[],
- minimum_number_for_combination_purchase=5529,
- exist_in_each_product_groups=False,
- max_point_amount=2652,
- max_total_point_amount=4799,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_7(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- applicable_time_ranges=[{
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "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
}, {
- "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=["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"
- }
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=5000,
+ point_expires_at="2020-10-22T11:18:16.000000Z",
+ status="enabled",
+ description="YnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd2",
+ bear_point_shop_id="ee6dc6b1-26a8-4995-bdcc-141c8befc116"
))
self.assertNotEqual(response.status_code, 400)
- def test_update_campaign_8(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- applicable_days_of_week=[6, 6, 3, 5, 4, 4, 1, 6],
+ def test_create_campaign_17(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["bf27061c-56fc-49a9-a1a5-5a9c1f0e5d39"],
+ max_point_amount=1206,
+ exist_in_each_product_groups=False,
+ minimum_number_for_combination_purchase=2237,
+ minimum_number_of_amount=9538,
+ minimum_number_of_products=3554,
applicable_time_ranges=[{
"from": "12:00",
"to": "23:59"
@@ -4452,37 +5143,7 @@ def test_update_campaign_8(self):
}, {
"from": "12:00",
"to": "23:59"
- }],
- applicable_shop_ids=["adc67640-ed95-4bc5-8c92-a9d6a1de17c6", "7b596a2a-1549-4dec-87a2-0dbc7db3109f", "2b78ff8a-e53b-4d69-8c5d-a41fdf3cbd08", "1fa80e1e-d3c7-472c-95eb-fafadb55251a", "50f25c44-9177-41f2-93f4-8a80a12c1944"],
- minimum_number_for_combination_purchase=8825,
- exist_in_each_product_groups=True,
- max_point_amount=9265,
- max_total_point_amount=5977,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_9(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- product_based_point_rules=[{
- "point_amount": 5,
- "point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
- }],
- applicable_days_of_week=[0, 4, 3],
- applicable_time_ranges=[{
"from": "12:00",
"to": "23:59"
}, {
@@ -4492,66 +5153,34 @@ def test_update_campaign_9(self):
"from": "12:00",
"to": "23:59"
}],
- applicable_shop_ids=["070feac5-6ce5-4c46-8d94-2b9b5c31cdb0", "dc748dc7-7236-4cfb-ac63-cb9b1662393a", "f4a1e78a-dea1-4537-8ec1-3dc0aed6627c", "10c0732c-6eca-486c-a680-e165a4293178", "94eb190b-2b3a-4146-a13b-3d8008861f6f"],
- minimum_number_for_combination_purchase=4472,
- exist_in_each_product_groups=False,
- max_point_amount=665,
- max_total_point_amount=2582,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_10(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- amount_based_point_rules=[{
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ applicable_days_of_week=[2, 6, 2, 5, 0],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}],
product_based_point_rules=[{
"point_amount": 5,
@@ -4607,91 +5236,53 @@ 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
- }],
- applicable_days_of_week=[4, 2, 1, 4, 0, 1, 3, 5, 2],
- applicable_time_ranges=[{
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
+ "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"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }],
- applicable_shop_ids=["b89b426d-a28f-430d-ad62-abc51bf41957", "147a04f9-7b3e-4946-aa48-710e9e403ba2", "981a9933-26bf-40a9-a3ba-cd9a9341727f", "db10d525-2566-46b4-b824-b947dcc46f95", "ee15b4e5-a94e-4056-b957-2e310e1e8064", "7d83b6c9-1dda-4cba-ad17-910e67ef3f98"],
- minimum_number_for_combination_purchase=9780,
- exist_in_each_product_groups=False,
- max_point_amount=1700,
- max_total_point_amount=5708,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_11(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- subject="money",
- amount_based_point_rules=[{
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
}, {
"point_amount": 5,
"point_amount_unit": "percent",
"subject_more_than_or_equal": 1000,
"subject_less_than": 5000
- }, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
- }],
- product_based_point_rules=[{
- "point_amount": 5,
- "point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
- }, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
}],
- applicable_days_of_week=[3, 1, 6, 1, 2, 3, 1, 6, 2, 0],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=2656,
+ point_expires_at="2025-02-16T01:49:08.000000Z",
+ status="enabled",
+ description="0OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtR",
+ bear_point_shop_id="7d8d0b5f-c27b-492d-aa68-c830506c48bc"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_18(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["e0178961-1bdd-4d76-97ef-f8ac011241ed", "90ec9e37-fe03-4c2e-9b69-f3532eeaed92", "88c7fc25-518e-4a5c-bcc6-ef9d5c316fc9", "0f5f5081-79cf-44b4-b55a-d3640da3c890", "3c7ec724-2774-470b-8a80-4b475d42776e", "b50d44b6-3d48-40bc-9c24-bf57236b4791", "911dab9b-1a25-4ccc-9d3c-53ab375e7c42"],
+ max_total_point_amount=9431,
+ max_point_amount=9842,
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=3384,
+ minimum_number_of_amount=7115,
+ minimum_number_of_products=2848,
applicable_time_ranges=[{
"from": "12:00",
"to": "23:59"
@@ -4713,104 +5304,53 @@ def test_update_campaign_11(self):
}, {
"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
- }, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
- }, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
- }],
- product_based_point_rules=[],
- applicable_days_of_week=[4, 2, 6],
- applicable_time_ranges=[{
"from": "12:00",
"to": "23:59"
}, {
"from": "12:00",
"to": "23:59"
+ }],
+ applicable_days_of_week=[6, 1, 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"
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "from": "12:00",
- "to": "23:59"
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "from": "12:00",
- "to": "23:59"
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "from": "12:00",
- "to": "23:59"
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "from": "12:00",
- "to": "23:59"
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "from": "12:00",
- "to": "23:59"
- }],
- applicable_shop_ids=["a831071f-df3c-4f2b-b4df-b0b3151f8647", "c76ba9a8-1d34-4e0f-9839-5718996d4a68", "282a2390-f87b-4c28-a975-16c73e7e82fa", "ad268cfd-0339-49cd-94e6-1a5cc2301792", "ded62e9e-e3b8-402e-a2f2-0e287a87e529", "5d109cf4-8fc8-4768-9d95-2b81059f088a", "ee7c7f5d-bda4-48f1-9db6-2e197c2b622c", "7a60f5de-bd99-4d3b-b68c-b7544ae18121"],
- minimum_number_for_combination_purchase=4924,
- exist_in_each_product_groups=True,
- max_point_amount=2627,
- max_total_point_amount=6475,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_13(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- point_expires_in_days=6368,
- is_exclusive=True,
- subject="money",
- amount_based_point_rules=[{
- "point_amount": 5,
- "point_amount_unit": "percent",
- "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,
"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,
@@ -4851,77 +5391,111 @@ def test_update_campaign_13(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=[2, 3, 1, 0, 6],
+ subject="money",
+ is_exclusive=False,
+ point_expires_in_days=5584,
+ point_expires_at="2022-11-27T14:56:55.000000Z",
+ status="disabled",
+ description="yRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJ",
+ bear_point_shop_id="7b804381-8d75-4f20-b49a-b801d39ba53b"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_19(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["8ca82f33-86f7-41c2-9737-d473651b8291", "455c64e3-677d-4b57-92ab-0d6cf7288059", "201a1969-78aa-405f-9272-20f2c8525b2b", "c9883fea-362f-4136-989e-1b24c370216d", "92f100a0-437f-4bd8-84d9-54eff37a6571"],
+ dest_private_money_id="a04274a7-1b56-4ec5-be9e-bc7f561e8376",
+ max_total_point_amount=2935,
+ max_point_amount=2854,
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=5368,
+ minimum_number_of_amount=6210,
+ minimum_number_of_products=6117,
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=["ba85e3dc-a2f8-4fb2-8f20-27bbe9d8381d", "4bfedff2-8599-49ac-a3d6-66af40877bcd", "6ac00018-4574-4828-8d51-2f700aa67acc", "6b50d850-fd85-4f07-83e5-5a2ee60eded0", "b9731fa4-16b9-4064-bacc-4ef8f2002096", "b3952eb5-d0f4-45ad-bcad-9332e57f556c", "776a97dc-03e7-4fd7-8e3d-042e66fe28a8", "1189a76f-23ca-4ed1-996f-7bcf4c73b215", "58223f53-902d-476d-85c1-7f6353efd375", "7489cb9d-67cc-48c0-a996-bbaf46e92b56"],
- minimum_number_for_combination_purchase=4129,
- exist_in_each_product_groups=False,
- max_point_amount=6898,
- max_total_point_amount=5909,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_14(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- point_expires_at="2023-05-22T05:15:36.000000+09:00",
- point_expires_in_days=3881,
- is_exclusive=False,
- subject="all",
- amount_based_point_rules=[{
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ applicable_days_of_week=[4, 3, 6, 5],
+ 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_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
}, {
"point_amount": 5,
"point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
}, {
"point_amount": 5,
"point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
}, {
"point_amount": 5,
"point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
}, {
"point_amount": 5,
"point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
- }],
- product_based_point_rules=[{
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
"point_amount": 5,
"point_amount_unit": "percent",
"product_code": "4912345678904",
@@ -4940,98 +5514,93 @@ def test_update_campaign_14(self):
"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"
+ 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"
- }],
- applicable_shop_ids=["88681cdf-6e09-4707-8132-0c17b66b406f", "565b6044-d0b1-4eeb-a25c-3a32007ed679"],
- minimum_number_for_combination_purchase=1053,
- exist_in_each_product_groups=False,
- max_point_amount=1466,
- max_total_point_amount=7987,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_15(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- status="disabled",
- point_expires_at="2023-06-17T16:10:08.000000+09:00",
- point_expires_in_days=5145,
- is_exclusive=True,
- subject="money",
- amount_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
"subject_more_than_or_equal": 1000,
"subject_less_than": 5000
+ }],
+ subject="money",
+ is_exclusive=True,
+ point_expires_in_days=9413,
+ point_expires_at="2020-11-02T22:18:52.000000Z",
+ status="disabled",
+ description="uaSpYl1TGEiugglxJJBGt0dcPbtQc4uSkk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3eTBlP1za",
+ bear_point_shop_id="0a19e7fd-1e31-4118-ae37-9dbdf9e353c9"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_20(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["5735c800-05bc-4a21-9729-880145ff8b1c", "f7fdf44d-2880-476c-9d72-e9bd3f7406df", "093ed6d6-5e31-4e13-a579-601eaa4ee730", "268334a5-f346-4223-9331-277fc0332c01"],
+ applicable_account_metadata={
+ "key": "sex",
+ "value": "male"
+ },
+ dest_private_money_id="3a3e0db3-5c92-4471-8337-36fdb9adad69",
+ max_total_point_amount=3522,
+ max_point_amount=8179,
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=2680,
+ minimum_number_of_amount=3710,
+ minimum_number_of_products=9236,
+ 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"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "from": "12:00",
+ "to": "23:59"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "from": "12:00",
+ "to": "23:59"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "from": "12:00",
+ "to": "23:59"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "from": "12:00",
+ "to": "23:59"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[6, 0],
+ 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_based_point_rules=[{
- "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",
@@ -5080,35 +5649,6 @@ def test_update_campaign_15(self):
"is_multiply_by_count": True,
"required_count": 2
}],
- applicable_days_of_week=[3, 3, 0, 2, 1, 2, 6, 0],
- applicable_time_ranges=[{
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }],
- applicable_shop_ids=["38f27d79-9a4c-4cbe-822a-8923a92e4c05", "0e5359b2-078e-41eb-bd8f-a6fce8406c6c", "ce4ca98b-ccdf-4e22-ac13-269a573e08fb", "9de2b62f-93c4-440a-8a40-42b12f355172", "4927d58c-c133-447b-8cbc-976a9079b05f", "458e0f26-f33e-4387-8393-c29a167b564c", "7e92cecf-4832-4782-b058-3f8747bd5619", "9af50069-7161-4390-8cdc-9e07d278e62b"],
- minimum_number_for_combination_purchase=7549,
- exist_in_each_product_groups=True,
- max_point_amount=9515,
- max_total_point_amount=3722,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_16(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- description="c9g0DX8Wq75NNOSKErJuxzhPvCMr0kZtscw8OT2IAWVb28SeWG8Bm8n",
- status="enabled",
- point_expires_at="2020-03-08T15:19:02.000000+09:00",
- point_expires_in_days=2385,
- is_exclusive=True,
- subject="all",
amount_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
@@ -5139,16 +5679,67 @@ def test_update_campaign_16(self):
"point_amount_unit": "percent",
"subject_more_than_or_equal": 1000,
"subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=True,
+ point_expires_in_days=2476,
+ point_expires_at="2023-09-11T10:51:33.000000Z",
+ status="disabled",
+ description="4XfUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozoz",
+ bear_point_shop_id="4abeceac-1148-480b-932c-bd76a0051f89"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_21(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["3d00caa0-ee9e-43a4-b701-9f03d7944570", "b98bea53-60d5-40ac-aaee-fd32a72d3329", "f55092a9-9df6-4471-97f7-25e9bd7f7975", "011f763c-6131-46b4-9189-4e442fdffad6", "28a2cf09-8f3f-4248-bd47-f1a0334f90cf"],
+ applicable_transaction_metadata={
+ "key": "rank",
+ "value": "bronze"
+ },
+ applicable_account_metadata={
+ "key": "sex",
+ "value": "male"
+ },
+ dest_private_money_id="d4cecef2-50db-47f3-a119-8b13b623cfa8",
+ max_total_point_amount=2250,
+ max_point_amount=8396,
+ exist_in_each_product_groups=False,
+ minimum_number_for_combination_purchase=5391,
+ minimum_number_of_amount=9774,
+ minimum_number_of_products=3266,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[5, 2, 6, 4, 2, 6, 1],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "classification_code": "c123"
}, {
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_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,
@@ -5198,49 +5789,13 @@ def test_update_campaign_16(self):
"product_code": "4912345678904",
"is_multiply_by_count": True,
"required_count": 2
- }],
- applicable_days_of_week=[3, 0, 5, 4, 0],
- applicable_time_ranges=[{
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
}, {
- "from": "12:00",
- "to": "23:59"
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
}],
- applicable_shop_ids=["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",
@@ -5251,39 +5806,62 @@ def test_update_campaign_17(self):
"point_amount_unit": "percent",
"subject_more_than_or_equal": 1000,
"subject_less_than": 5000
- }],
- product_based_point_rules=[{
- "point_amount": 5,
- "point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
}, {
"point_amount": 5,
"point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
}, {
"point_amount": 5,
"point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
}, {
"point_amount": 5,
"point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
}, {
"point_amount": 5,
"point_amount_unit": "percent",
- "product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
}],
- applicable_days_of_week=[4, 5, 3, 3],
+ subject="all",
+ is_exclusive=True,
+ point_expires_in_days=3860,
+ point_expires_at="2021-05-13T09:47:55.000000Z",
+ status="enabled",
+ description="jKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP",
+ bear_point_shop_id="07ac6128-9bad-4835-bd0d-f1af17913a5e"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_22(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ applicable_shop_ids=["3b720d61-2d7e-4419-8461-f57f72b08268", "f5e53ff6-f607-4faa-af28-1a71255b7e49", "355bf09c-8e66-4f17-978d-e9b3ac14dc48", "84564237-8fc8-4532-a732-382a3d081cd8", "b1b97a6d-09b9-4171-b968-73edd4434300"],
+ budget_caps_amount=1502919932,
+ applicable_transaction_metadata={
+ "key": "rank",
+ "value": "bronze"
+ },
+ applicable_account_metadata={
+ "key": "sex",
+ "value": "male"
+ },
+ dest_private_money_id="e19206a1-798b-46f2-8bc9-5d7a18eefa8c",
+ max_total_point_amount=2829,
+ max_point_amount=4143,
+ exist_in_each_product_groups=False,
+ minimum_number_for_combination_purchase=1389,
+ minimum_number_of_amount=4875,
+ minimum_number_of_products=6288,
applicable_time_ranges=[{
"from": "12:00",
"to": "23:59"
@@ -5302,43 +5880,24 @@ def test_update_campaign_17(self):
}, {
"from": "12:00",
"to": "23:59"
+ }],
+ applicable_days_of_week=[5, 2],
+ 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"
}],
- 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",
@@ -5375,63 +5934,166 @@ 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
- }],
- applicable_days_of_week=[3, 4, 1, 4, 1],
- applicable_time_ranges=[{
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
+ "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=["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"
- }
+ subject="money",
+ is_exclusive=False,
+ point_expires_in_days=5552,
+ point_expires_at="2020-10-02T00:14:24.000000Z",
+ status="enabled",
+ description="gMO9grD73ccOw2h3Fa222nHBaN6510b",
+ bear_point_shop_id="048dd806-ee8c-4a9f-815d-dcc8f6655be4"
))
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",
+ def test_create_campaign_23(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["069024d6-3189-43d2-92d6-5bae8e24ec9f", "c14d9b98-981f-44f1-b44a-786281ee1ab7", "8bd8cc8c-a3c7-4395-8cc1-dd8b5577d818", "b9fd765f-5735-48ea-86e5-6912637239dd", "f7c75754-2f68-4f86-a1d7-063f74979522", "da7b0793-7535-4a71-9012-bff253082d0e", "4ca5fcb3-c4aa-4097-a193-9ff9d94e07c5", "44209de4-37b4-4ca3-80e4-be817beaeed8"]
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_24(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["ffa25075-fd4c-418c-b0f2-4c59788ca0a3", "47439d73-7541-4ea7-bae0-e6868ac97591", "19e3cdb4-f95b-4333-809f-b44d261553ed", "7b26edc0-3628-4df8-8692-7236873e4968"],
+ bear_point_shop_id="9246eb09-2292-40f6-b055-118c7ed03d3e"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_25(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["dc7d4ce7-c333-401a-bc19-f687c25d38c9", "014fdfce-0f70-4dff-b683-1e6967b26cb2", "e60e9b0f-51a0-4bab-bc12-4342201bc537"],
+ description="flubMg8I3PF",
+ bear_point_shop_id="4111dba0-01dd-4e27-9128-c0fa93b24958"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_26(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["b86d95a0-2c98-41bb-9357-c0f5109f2d38", "8b100673-5c8b-4163-a9af-b22bbc28de2d", "faec44bc-28e8-4e71-977e-de2000a516f7", "8e636ed7-f6cb-41cc-8983-e3f36b6e56e7", "48017178-7d6f-4a92-b885-1fa198a1f5dc", "e51de9ab-8aa8-4e86-99de-34a8cb1405da", "61ac1f43-7351-4632-b4b4-7e31e03fb762", "ac103fec-3e89-4786-bb0a-ba89b2f85bcd", "1bce5174-e11d-4053-8f7f-1d5ad55ce648"],
+ status="disabled",
+ description="WLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1",
+ bear_point_shop_id="23d2aca0-c866-40a8-b9e2-d0388befa367"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_27(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["7ffa20c9-8398-4e17-83cc-fdd0c8697ef1", "52f34884-bbf1-427e-af11-e8f70b7f01b4", "30d3411e-eca1-4cff-b126-2ea74b14d3c7", "9588bfb8-9d66-46cb-9c52-c41f501054dd", "b31ab973-4be9-4f2b-acea-305a0382fcd4", "c925a11f-9492-4ab9-ad5e-a541efc53e43"],
+ point_expires_at="2021-05-28T14:19:14.000000Z",
status="enabled",
- point_expires_at="2025-06-30T22:44:26.000000+09:00",
- point_expires_in_days=8640,
- is_exclusive=False,
+ description="FhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4",
+ bear_point_shop_id="abef2a19-7ced-4feb-b8b8-c6098b728b79"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_28(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["5b0a69fe-0c2c-46ea-a052-beea24d755fe", "fe2f8397-3ab6-4670-b093-b923babbc04a", "4b89074c-4217-4d90-98ee-f76c91366a2d", "b61b9b65-24e3-4738-83ca-072d2cb8850f", "c727e64f-b25f-4c62-bfd8-2975ac0209d2", "a9cb86f3-efd0-4cd6-a546-eb989c28e995", "86d7a14a-6363-4109-b33f-e28ebdfffa28", "d49e01cf-d3c3-45c2-b9df-d06499c0d117", "85f3d28b-3e5a-4988-88ab-58964a4951b0", "851d2b15-49eb-4887-8901-72b075db872a"],
+ point_expires_in_days=263,
+ point_expires_at="2023-07-26T04:21:34.000000Z",
+ status="disabled",
+ description="7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0O",
+ bear_point_shop_id="dd8e7727-94e1-4d1f-b153-fcbd505cc87a"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_29(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["6dc11dde-93a7-41ee-a6fe-4e4581a32a21", "495198c0-e074-40ff-8040-0c78a350d1ba", "afe847c1-f396-49db-96eb-7145472401a0", "b723ee14-f43c-466d-b708-9f737c661909", "7d3eaed7-3a0f-4a71-bf89-02824751b8fc", "75a2f5af-0328-4abb-8323-17f4747d086a", "972dcc7a-6f20-4d8f-bcef-eb3a23d8292b", "911150bb-af55-457f-a874-ad92aca3bedb", "6b0d642f-2900-4cd7-b841-be9916cd3594"],
+ is_exclusive=True,
+ point_expires_in_days=5063,
+ point_expires_at="2025-11-29T19:41:40.000000Z",
+ status="disabled",
+ description="A3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7",
+ bear_point_shop_id="66c26141-485c-450d-956a-77cf10ac5c10"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_30(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["5d426137-f1e2-444a-b42d-765ddc7f74cf", "40654fb7-cec4-406e-816e-1b95e078d93b", "7ce4b1e3-9ab0-4f81-bb1d-a56d8eaea039"],
subject="money",
+ is_exclusive=True,
+ point_expires_in_days=789,
+ point_expires_at="2020-12-10T08:08:38.000000Z",
+ status="disabled",
+ description="GM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0X",
+ bear_point_shop_id="acffc85e-27e9-40a0-8367-3e300de1727c"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_31(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["03707b8c-5305-445c-ba14-acafd330fb1c", "13feee63-a951-4a95-add2-b4ec6109e1ef", "c943f56e-59f2-4314-8f31-3f5c664de7ce", "3cb66281-137c-472b-b4c9-43ef4b03168f", "a6c572a6-9b60-41e3-970d-7dfb8de1eff5", "872d06db-8e4b-4fc3-a311-dfa36c361c5b", "82add0a9-051e-4e5a-8431-4c0dedf246e8", "7ab24cde-9396-40e4-98c3-3ae7ce9bd3f9", "b6be0ac1-e04c-46e8-8c8a-c391c6d5b424"],
amount_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
@@ -5453,6 +6115,25 @@ def test_update_campaign_19(self):
"subject_more_than_or_equal": 1000,
"subject_less_than": 5000
}],
+ subject="money",
+ is_exclusive=True,
+ point_expires_in_days=4571,
+ point_expires_at="2024-06-01T05:00:57.000000Z",
+ status="disabled",
+ description="xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA",
+ bear_point_shop_id="9d34fdb9-83b3-4205-a68f-136af84fc7a6"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_32(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["570451eb-57f0-4514-92d6-75ffbe55c59c", "78b76287-33bd-417c-8584-fa17461ee7ad", "23ab6245-b1a5-4083-b16f-63877570dcce", "4411c1b8-1647-40aa-8edb-2f5a86bf0979", "abd7b474-4d02-47d5-96d8-4ae070c3250e", "2455333b-548c-4cf3-ab60-9aa9ec899cf0", "d2cd27b1-c334-41f6-a596-49d0e81f26e0"],
product_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
@@ -5489,13 +6170,60 @@ def test_update_campaign_19(self):
"product_code": "4912345678904",
"is_multiply_by_count": True,
"required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
}, {
"point_amount": 5,
"point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="money",
+ is_exclusive=True,
+ point_expires_in_days=7934,
+ point_expires_at="2022-09-08T05:55:52.000000Z",
+ status="disabled",
+ description="1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcb",
+ bear_point_shop_id="e227c67b-755a-4790-9dd2-6e1649dd0296"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_33(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["9b186a19-4543-4847-9803-1a5e41565abb", "373ce51f-5457-4794-85c6-7c2c585eaaec", "a14f94ff-777b-4e4d-81e8-bd476785bef1", "d9f3f504-9c1b-4f4d-9fe2-6d9e26665709", "1f02ca66-3a6f-40f1-881b-90424838dc22", "94196eca-a5bf-4f60-807d-366ccedabd8e", "c4605a1f-650b-4ba7-bae1-016f0d252eac"],
+ blacklisted_product_rules=[{
"product_code": "4912345678904",
- "is_multiply_by_count": True,
- "required_count": 2
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_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",
@@ -5508,51 +6236,6 @@ def test_update_campaign_19(self):
"is_multiply_by_count": True,
"required_count": 2
}],
- applicable_days_of_week=[5, 3, 1, 1, 3, 3],
- applicable_time_ranges=[{
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }, {
- "from": "12:00",
- "to": "23:59"
- }],
- applicable_shop_ids=["c42e79c6-6bbb-4b65-b549-a915beb5df9a", "b93fa81a-2f42-4404-9528-ec7eef12246d", "fb3771ec-03b3-4968-849e-fd2eef5e87b3", "cbaebc36-7626-4b31-a78a-7988ab728475", "31664059-5548-4383-9d89-a601b32ac56a", "b328b3cf-2349-46ed-af90-46a56ab65fa2", "51b6e800-2f86-40da-95ab-1d90ad35ffbc", "13c634e8-e160-4223-8f53-fa8697722e4f", "20994828-6374-4638-9514-3940aa4bfdce"],
- minimum_number_for_combination_purchase=6522,
- exist_in_each_product_groups=False,
- max_point_amount=8035,
- max_total_point_amount=2578,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_20(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- starts_at="2024-02-06T16:58:32.000000+09:00",
- ends_at="2018-05-10T19:51:29.000000+09:00",
- priority=6463,
- event="payment",
- description="Gme5CA27ltkwLNnQtyV2QJ",
- status="disabled",
- point_expires_at="2018-05-24T09:32:58.000000+09:00",
- point_expires_in_days=1600,
- is_exclusive=False,
- subject="all",
amount_based_point_rules=[{
"point_amount": 5,
"point_amount_unit": "percent",
@@ -5569,119 +6252,108 @@ def test_update_campaign_20(self):
"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],
- applicable_time_ranges=[{
- "from": "12:00",
- "to": "23:59"
+ subject="all",
+ is_exclusive=True,
+ point_expires_in_days=8858,
+ point_expires_at="2020-10-13T13:09:30.000000Z",
+ status="disabled",
+ description="2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGh",
+ bear_point_shop_id="913f025b-5d48-429d-b6e7-654f82fed2d9"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_34(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["294d9a45-59be-4b1c-aa23-892f1c12584f", "5bb5a978-ffca-4e26-9330-ee9f81010233", "bb78271e-c578-48d6-b36e-ee53e5809e47", "803e5fd0-2c1c-41f6-b4c3-18bf74fd78ba", "d6c5e53f-db01-4898-b139-07099d00cbe1"],
+ applicable_days_of_week=[5, 2, 0, 4, 3, 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"
}, {
- "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"
}],
- applicable_shop_ids=["7be5fbfc-5121-4f11-9f8d-d92a2d365ba4", "f00a5657-9973-48c9-80a5-3e285cbc2b18", "5d876dd2-3a78-4a4c-89ab-c0a8747110a2"],
- minimum_number_for_combination_purchase=8720,
- exist_in_each_product_groups=True,
- max_point_amount=4840,
- max_total_point_amount=9396,
- applicable_account_metadata={
- "key": "sex",
- "value": "male"
- }
- ))
- self.assertNotEqual(response.status_code, 400)
-
- def test_update_campaign_21(self):
- response = client.send(pp.UpdateCampaign(
- "80db920c-14b6-4bd6-a117-8ca291a457ff",
- name="3wnSfVCO7XYJmoO0uhcJraMmDaSEahfn300LCaHLSroJkepEoifMTQ44ocvwtomMfjQ73GX2yquqoxmpJQvrLat0xlnzVZch13fLL8IaybXOFsTe5kGdJyjn39kuUAVwNBecCVcfQFB6zhe4zCjHFhQi2UCzxxgdtQx1Yj4cppg0SxOu0ayiRvxTn",
- starts_at="2018-07-10T01:18:26.000000+09:00",
- ends_at="2023-09-30T01:33:44.000000+09:00",
- priority=3482,
- event="payment",
- description="nHVMhD4r87dViYbNhwHBT9cSJc7HHGuapEaMsGd77SVXYGZA1EEVZp38NbYd6BPccNKfybJvzwpWAlSZO0eB2VJdZjjB0xRzUNUpofUOthUvaBWHSD95mCwqz0uQMfHDC0caZdfhivWlaI8SRhD29ZtnzslLBpLYCsl",
- status="enabled",
- point_expires_at="2021-10-12T07:37:22.000000+09:00",
- point_expires_in_days=4790,
- is_exclusive=True,
- subject="all",
- amount_based_point_rules=[{
- "point_amount": 5,
- "point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
- }, {
+ 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
}, {
"point_amount": 5,
"point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
}, {
"point_amount": 5,
"point_amount_unit": "percent",
- "subject_more_than_or_equal": 1000,
- "subject_less_than": 5000
- }],
- product_based_point_rules=[{
- "point_amount": 5,
- "point_amount_unit": "percent",
"product_code": "4912345678904",
"is_multiply_by_count": True,
"required_count": 2
@@ -5692,9 +6364,4599 @@ def test_update_campaign_21(self):
"is_multiply_by_count": True,
"required_count": 2
}],
- applicable_days_of_week=[5, 5, 0],
- applicable_time_ranges=[{
- "from": "12:00",
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_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=4772,
+ point_expires_at="2025-07-06T05:04:36.000000Z",
+ status="enabled",
+ description="fDtmp",
+ bear_point_shop_id="e628f74d-e8fc-480e-a75f-ef78343b6549"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_35(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["5ddacc57-88b5-426c-a38b-a48d20fa7b92", "7f828aea-0cae-47c9-b624-b509f68a5979", "8b1eafe6-3b67-428e-9057-78b8079ccc94", "2e123efa-03ba-404f-aeef-7980468db861"],
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[1, 6, 3, 2, 1, 3, 4],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=True,
+ point_expires_in_days=2088,
+ point_expires_at="2022-09-06T20:52:24.000000Z",
+ status="disabled",
+ description="oXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTn",
+ bear_point_shop_id="5b08d1d9-159b-45db-825c-837456f3c8b6"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_36(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["65501e84-c999-4ad8-b38a-3dda2032524d", "ba475320-e63b-44f2-9da7-9aadcf5a14e1"],
+ minimum_number_of_products=259,
+ 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, 5, 2, 4, 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_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=2727,
+ point_expires_at="2020-12-27T14:29:34.000000Z",
+ status="enabled",
+ description="zuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmU",
+ bear_point_shop_id="31198bd1-6adf-463b-abc7-c8275e9b66da"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_37(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["1e118498-22cd-4cf2-b4b2-5035a0382dd6"],
+ minimum_number_of_amount=9361,
+ minimum_number_of_products=4824,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[1, 3, 4, 0, 2, 2, 2, 0, 5, 4],
+ 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
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_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=2699,
+ point_expires_at="2021-05-31T22:04:59.000000Z",
+ status="enabled",
+ description="5eAINi4DCh9E1p",
+ bear_point_shop_id="fabdc7e9-0b8d-4d6f-a890-976d9eb39105"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_38(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["bdb54781-c926-4fbd-9ef6-ee1439973859", "a7ad1d81-1630-4af9-b0a5-cb19359c6889", "ce403e12-eb69-4a4c-a991-db67312bbb59", "d121e86d-1861-4168-a073-bfc59e68137c", "6ddf32e6-d6cc-41ad-bde1-606ac23bcd92", "d4b6b745-cab3-47ac-b897-024344e90653"],
+ minimum_number_for_combination_purchase=3583,
+ minimum_number_of_amount=2922,
+ minimum_number_of_products=2199,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[6, 0],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=5949,
+ point_expires_at="2024-01-21T20:43:04.000000Z",
+ status="disabled",
+ description="CbSM5b6x",
+ bear_point_shop_id="def3c999-6c00-4278-9614-fe4344765ae9"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_39(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["30059139-0680-4e98-a461-145385d5fdfe", "45714937-210d-4f1b-9c27-c51661fb2a70", "52ae1a06-6755-468f-beee-3e3893fe549d", "f2bd9af3-8248-45bf-84c5-9106a3698700", "7ae01634-1dbb-4946-87b3-d3068d89936b", "9872e563-3ce6-4530-83df-a5e88b8dedf2", "4b046ba6-4651-42b4-a133-d8722f477850", "41841089-1ae7-4a54-a820-20de743b0e8d"],
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=9628,
+ minimum_number_of_amount=7297,
+ minimum_number_of_products=1356,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[0, 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
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="money",
+ is_exclusive=False,
+ point_expires_in_days=2958,
+ point_expires_at="2021-11-28T17:51:58.000000Z",
+ status="enabled",
+ description="qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRx",
+ bear_point_shop_id="cbab03ad-51d2-4869-9143-5a80ee002bab"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_40(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["dbe4cb90-f035-4351-b093-8402a8813f26"],
+ max_point_amount=2370,
+ exist_in_each_product_groups=False,
+ minimum_number_for_combination_purchase=393,
+ minimum_number_of_amount=543,
+ minimum_number_of_products=17,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[5, 4, 6, 2],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="money",
+ is_exclusive=True,
+ point_expires_in_days=6013,
+ point_expires_at="2025-05-17T06:12:23.000000Z",
+ status="enabled",
+ description="U9Sc7TWp",
+ bear_point_shop_id="e2806fde-3868-4226-8cfc-ac27813bca55"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_41(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["6dc8d8c3-0fc6-4bae-baa8-c73f86ccac0e", "198f8bd1-22c0-4e4f-8a92-31a7c42ec2ec", "1c2c0ede-6902-495f-8e95-16e84aba1c82", "9ced69ca-15c3-4b9d-8093-85ff90d67ffa", "38de7b53-2588-4449-ae10-9607ea820c02", "8e933775-5e33-4d9d-8c34-a60511756f6f", "86435d96-aba5-49c2-9f30-b4874dc7ca83", "34e5548c-07a3-4351-8b6a-c88c3734a4ea", "ef1110a9-4356-4ea2-989c-44209f465be4", "521bd2e7-c436-4cf7-836e-7d174246e7d0"],
+ max_total_point_amount=4533,
+ max_point_amount=6497,
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=4233,
+ minimum_number_of_amount=5441,
+ minimum_number_of_products=5242,
+ 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, 2, 4, 0, 1, 5, 3, 0, 6, 4],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_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=True,
+ point_expires_in_days=9075,
+ point_expires_at="2021-06-08T00:25:38.000000Z",
+ status="disabled",
+ description="2rRd10bnDEPKoSGR",
+ bear_point_shop_id="d24e516e-36cd-4a34-bdae-122240b1aeb0"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_42(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["ec139d3b-f18c-4220-98c0-2686db7c185d", "a9bb4b64-9f02-4e62-a426-7b32bdd3dc0b"],
+ dest_private_money_id="463d0884-3aec-4cf3-93a3-0048c761ca8d",
+ max_total_point_amount=5518,
+ max_point_amount=3527,
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=2127,
+ minimum_number_of_amount=6794,
+ minimum_number_of_products=5041,
+ 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=[4, 5, 4, 6, 2, 6, 1, 2, 6],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="money",
+ is_exclusive=True,
+ point_expires_in_days=9123,
+ point_expires_at="2020-08-18T16:44:28.000000Z",
+ status="enabled",
+ description="SR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRY",
+ bear_point_shop_id="6de13e9c-5ed4-4e66-85f8-3adcff680c67"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_43(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["0416c6d2-16a8-46e1-8fea-373c3a8e368f", "0ed18b9f-99a9-4ca4-9ecd-108a14ab0d36", "b1e514f3-d851-47de-a592-69bce870310e"],
+ applicable_account_metadata={
+ "key": "sex",
+ "value": "male"
+ },
+ dest_private_money_id="f049dabc-5c20-4f52-afe7-0d633bb3db25",
+ max_total_point_amount=8379,
+ max_point_amount=3031,
+ exist_in_each_product_groups=False,
+ minimum_number_for_combination_purchase=1102,
+ minimum_number_of_amount=9049,
+ minimum_number_of_products=2971,
+ 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=[4, 2, 0, 6, 5, 5, 4, 3],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=7319,
+ point_expires_at="2020-06-24T14:04:19.000000Z",
+ status="enabled",
+ description="Fy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887",
+ bear_point_shop_id="9dab27fb-ac27-4f6e-9a88-664ed67effab"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_44(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["b794e6b1-6be5-4e00-a8b2-353f70e3b008", "918404ad-73aa-4a9b-9a36-e37d68e8f05a", "8b1db1df-328d-482c-9a57-40eb6ec42460", "9b0f6cbd-6465-45ca-9184-52107d4576a5", "365342a5-6593-4c79-9d0f-59fedd00846d", "cf1f6e37-235d-4fee-96a4-5a1bacdcb3b7", "b58a33c3-50fd-49fd-9c47-a52b70d21dbf"],
+ applicable_transaction_metadata={
+ "key": "rank",
+ "value": "bronze"
+ },
+ applicable_account_metadata={
+ "key": "sex",
+ "value": "male"
+ },
+ dest_private_money_id="1cc65284-5f6d-410a-aa64-2d0aa0eb5299",
+ max_total_point_amount=4385,
+ max_point_amount=2995,
+ exist_in_each_product_groups=False,
+ minimum_number_for_combination_purchase=4586,
+ minimum_number_of_amount=8585,
+ minimum_number_of_products=5844,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[2],
+ 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
+ }],
+ 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=8220,
+ point_expires_at="2025-04-02T00:05:39.000000Z",
+ status="disabled",
+ description="PU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySS",
+ bear_point_shop_id="a1654987-13a1-42ea-a146-f1f8e4aebef9"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_campaign_45(self):
+ response = client.send(pp.CreateCampaign(
+ "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou",
+ "ad4c1d63-f179-4042-a281-658f939209e2",
+ "2022-05-26T22:20:53.000000Z",
+ "2022-07-23T11:21:13.000000Z",
+ 3464,
+ "topup",
+ blacklisted_shop_ids=["7d5bc730-6849-4a47-8358-9e26134a4eed"],
+ budget_caps_amount=1191152507,
+ applicable_transaction_metadata={
+ "key": "rank",
+ "value": "bronze"
+ },
+ applicable_account_metadata={
+ "key": "sex",
+ "value": "male"
+ },
+ dest_private_money_id="56903fbe-a4a1-4be0-b34f-f46229458f59",
+ max_total_point_amount=296,
+ max_point_amount=6180,
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=7323,
+ minimum_number_of_amount=4387,
+ minimum_number_of_products=7126,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[6, 0, 1, 5, 4, 3, 0, 3],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "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=1541,
+ point_expires_at="2023-05-27T00:11:55.000000Z",
+ status="disabled",
+ description="QhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQ",
+ bear_point_shop_id="e9d2bfdd-6f25-4092-9bef-c3dea56bc1aa"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_get_campaign_0(self):
+ response = client.send(pp.GetCampaign(
+ "7c0fa487-25c7-4ca6-9884-43abfdb9e44c"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_0(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["73a98db8-1068-4d54-bd35-320fa6906df6", "8f8b478c-772e-4c7a-a27f-a0db6988c3e2", "cc7793c6-9a79-49ab-b34c-9b8ab707f3d6", "9f2e97a1-0f00-4fa9-a057-353014dd365e", "098e6eb3-ead1-438f-beb8-caf306e65215", "45ba1367-26eb-418e-80f7-28fd012ae7e2", "257a431a-b388-4cfb-b4bb-dfb79e788fba", "c07f4d62-1cf9-4807-96bc-c7287abc6e63", "9757e3e4-b806-46ad-8961-e2b683566c2c", "b5199512-1ebc-4ff3-9caa-df218da70d32"]
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_1(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["70d15613-8b96-4d4f-adde-5882a6f93cff", "fe978c69-d953-44b4-a934-f09727da735e", "52177dc0-46fc-41b8-abfa-995944b8d311", "353d81a7-af0e-45d9-be75-51d330ea62e5", "1d486cf2-7ed6-4967-b435-7f78d36998f0", "791dfadf-278d-4e54-aa05-5021e586dbbd", "fc9a53e8-c071-4eeb-b828-500b1073507c", "1fdf15d7-685c-4275-8e34-6b0b311a5c4f", "69fa406b-c705-4f59-86ed-01d57c8ed36e", "fb0107eb-72c1-408f-9bc6-020f77f58e2d"],
+ name="rW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_2(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["70b20e1f-8409-4d60-82b9-74263cb50104", "f10b90cf-f6ee-41f1-8761-65e6090c2a35", "38138069-9f11-4e22-99d4-ea7805779e29", "9194abe1-78cb-4027-80c8-2f2bc788b722", "06344df4-02b4-4b2f-9d48-21d8f06a08ab", "006945bb-1278-403f-89f0-98cdd16ae028", "8a090b7a-12aa-4db5-8cdc-2665793f2167", "08f7a8b3-e7d4-41c6-8a6e-b40c51d9efcf", "58d790ba-02cd-4683-941d-dc0f5c079082", "0a8421d8-fd7b-4a3b-ace3-90e3f43dc172"],
+ starts_at="2025-01-03T16:27:51.000000Z",
+ name="SM"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_3(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["4a276522-f01c-45bf-8e65-397c961200d2", "c6f13b6b-be53-4568-93d3-be5b454096cb", "4c027159-46ba-42ee-a8f2-f912a05a8f2e", "2e03bb95-b6af-4638-a84a-2c4aa2df618a", "7d453036-d07d-4e72-b188-a64a7caff1b5"],
+ ends_at="2023-01-28T17:36:56.000000Z",
+ starts_at="2020-11-22T11:20:21.000000Z",
+ name="KWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_4(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["6805eef2-b1dd-401f-8550-1d70d9323e0a", "7733d391-13f2-4a26-96ae-909f5d26e66a", "113a91f0-78bf-444e-a365-0faf88668ee1"],
+ priority=5807,
+ ends_at="2022-11-20T06:45:28.000000Z",
+ starts_at="2020-08-18T13:30:54.000000Z",
+ name="JXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPA"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_5(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["e1574a3a-85b5-4e54-9bfb-97e15a2b5f98", "11272b0d-63cf-44d3-a903-be4ae961cc24", "eafd9672-24c6-4cf7-8f95-725497373a36", "1170f0c9-28dc-45cd-93d4-49d16b634c29", "777760df-aae0-41d1-8444-1533cf0910e1", "7f935bda-74d3-4c4c-b556-3ee0bed6ea23", "ee66d8ba-ce27-4835-8bc0-aa8da0d78da3", "6c479e2b-3276-47dd-baa9-0923b9c17373"],
+ event="payment",
+ priority=7077,
+ ends_at="2020-09-20T01:15:55.000000Z",
+ starts_at="2024-03-26T03:20:52.000000Z",
+ name="5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3g"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_6(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["137006a6-1a47-4bdb-9195-631ce5a8d00f", "473402ed-3f47-4065-b039-a7afbd8a3765", "5fdd500f-76d8-4bec-8bf4-97d0ef72d111", "08748fe7-3271-49d3-8130-e345728e2ed2", "5903c6a1-8961-459e-96c7-f4181b3f997a", "da4338b4-d436-4bf6-883a-d782d4498b12", "ccfa1c2d-3149-45ad-8369-11c1871b2cb4", "a58b3c06-72e8-42bc-bbe2-a00906a58f28", "52b862e5-b315-4c31-b9db-f1c9450e54b3"],
+ description="CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2",
+ event="topup",
+ priority=1100,
+ ends_at="2026-02-27T13:17:25.000000Z",
+ starts_at="2024-08-11T01:20:56.000000Z",
+ name="ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_7(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["fd0a61a4-9c17-4bd8-aac1-068078d3f267", "d592dc00-7912-4f99-83ee-15a81449dedc", "b4645ace-a7ff-4867-8dd0-281be8cda479", "90ba7754-6a98-4761-b3a7-3cf16862f031", "40bb2449-cc2c-41c6-91e5-ae787cce948a"],
+ status="enabled",
+ description="HoOsY3XmfSCMMI0hPIOcfptkBj",
+ event="topup",
+ priority=2987,
+ ends_at="2022-12-22T05:15:18.000000Z",
+ starts_at="2022-07-23T00:13:10.000000Z",
+ name="HuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcu"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_8(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["1103bed0-7cb8-46d0-a1fd-dc3a6e980646"],
+ point_expires_at="2024-08-15T15:56:25.000000Z",
+ status="disabled",
+ description="bqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpH",
+ event="topup",
+ priority=4893,
+ ends_at="2021-10-08T16:42:06.000000Z",
+ starts_at="2022-02-17T05:06:21.000000Z",
+ name="K3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_9(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["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"],
+ point_expires_in_days=8405,
+ point_expires_at="2021-01-14T13:46:47.000000Z",
+ status="enabled",
+ description="6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vq",
+ event="topup",
+ priority=4491,
+ ends_at="2020-10-09T00:44:20.000000Z",
+ starts_at="2022-11-09T18:41:45.000000Z",
+ name="7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZO"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_10(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["c00754b7-baf7-4fd2-9da5-b1a5d4d415a2", "dd2d0f2a-3b2a-40d1-a796-4c2953449a28"],
+ is_exclusive=False,
+ point_expires_in_days=5644,
+ point_expires_at="2024-11-09T21:51:01.000000Z",
+ status="disabled",
+ description="Yhb78o",
+ event="payment",
+ priority=9008,
+ ends_at="2022-01-28T11:09:00.000000Z",
+ starts_at="2020-07-08T08:57:55.000000Z",
+ name="E9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvo"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_11(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["e0ba71f1-985a-4c36-98a9-8d15d90f0147", "c127a851-c52e-47fb-9bf0-dfe3a0f53478", "f3a826eb-a486-4b4c-821b-21310379eb80", "e63b99bd-50e9-43fc-9788-dfe9ed6c336d", "e6b59f82-8f9c-4d98-b09c-20a4ac27d658", "4f492af0-73f9-45b9-9889-e85277929052", "4bc76a34-8160-4e46-8681-c28a2e660d10"],
+ subject="money",
+ is_exclusive=True,
+ point_expires_in_days=1650,
+ point_expires_at="2026-01-15T16:18:41.000000Z",
+ status="disabled",
+ description="Bd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtj",
+ event="topup",
+ priority=4984,
+ ends_at="2022-09-26T22:03:53.000000Z",
+ starts_at="2023-02-09T04:21:12.000000Z",
+ name="n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTM"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_12(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["a184e23a-78bf-46d2-87a8-da47c349e929", "9b6386db-4768-46fd-a689-a44cf8039dbe", "fc48cdcb-7c2e-42a4-b408-780d5054c7ed", "e8bf8fe4-b1a3-4a86-8e38-62c3ffb3b87c", "33809c3f-5e95-46f6-84a4-a33e0af1905e", "652d0f87-3e52-4a7f-981b-1e2e782d8693", "3d345a92-4d3a-4115-be7e-a1acf05a1f4a", "da2bcded-e979-4acd-8da3-6b9a30b43b55", "73cd5d28-a1db-47f1-97be-8333f08b716e"],
+ 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=9232,
+ point_expires_at="2020-04-01T10:27:44.000000Z",
+ status="disabled",
+ description="dEzZzYqTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD",
+ event="topup",
+ priority=3467,
+ ends_at="2024-11-30T15:35:35.000000Z",
+ starts_at="2024-09-06T07:09:37.000000Z",
+ name="O97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZ"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_13(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["93b9e9ab-dc40-40c7-9b91-4b787bf8215b", "43e68d55-6d2d-43a7-975e-604aacec2514", "e66b3241-d72b-4e94-81e5-f3a59f67895b", "4bbcfec8-ed65-477f-83d5-e2792208c767", "efbf2a11-44b7-41b8-a5c3-9bde9e7d6c70", "e6809971-0077-4abf-a662-7256318b29e1", "8756d323-bf89-46c7-9926-1d6052b19e49", "ed81c0ba-1b84-4838-a2cd-0c554150dbe7"],
+ 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
+ }],
+ subject="all",
+ is_exclusive=True,
+ point_expires_in_days=8139,
+ point_expires_at="2025-03-02T22:12:53.000000Z",
+ status="enabled",
+ description="LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFr",
+ event="external-transaction",
+ priority=9831,
+ ends_at="2022-01-19T00:27:15.000000Z",
+ starts_at="2020-02-02T08:09:27.000000Z",
+ name="9a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTH"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_14(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["202bf3eb-c276-4fbe-a2d9-6651d4b7cc16", "0e2c3824-a82a-4e83-809d-11d4fd3723eb"],
+ 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
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=417,
+ point_expires_at="2021-07-30T18:26:40.000000Z",
+ status="disabled",
+ description="mTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcv",
+ event="external-transaction",
+ priority=7650,
+ ends_at="2022-03-13T19:20:21.000000Z",
+ starts_at="2023-09-12T14:44:39.000000Z",
+ name="vyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_15(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["aa2703a8-f0ce-4e34-ac3a-72791434c864", "924b6ac3-155e-4c7d-b042-7cbbbe9188fa", "d54e5687-35d4-4f82-a8ed-5967464a92cf", "dafeafa8-4f94-4b49-aa49-2d884fd95a15"],
+ applicable_days_of_week=[4, 0],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_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=5049,
+ point_expires_at="2024-02-20T18:09:16.000000Z",
+ status="disabled",
+ description="YMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGR",
+ event="topup",
+ priority=7749,
+ ends_at="2023-10-30T14:49:49.000000Z",
+ starts_at="2022-12-08T07:29:49.000000Z",
+ name="ImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_16(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["5f858d27-b59c-41b6-b121-47b1b5b1eb01", "d82f7a4c-63e8-4558-9c8a-72925a1aea82", "43fde752-12c6-4cbc-a031-0cd7218113ea", "e3d50f44-ae58-4365-9860-05edefa43b59", "53cad42c-ae0e-4673-b3d7-6323fbfcb7fd", "3df14bd6-bf0e-46d1-81e1-01307cdbf483", "448547db-6080-4614-932c-2e132b2d98b9"],
+ 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, 5, 1, 0, 4, 1, 1, 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
+ }],
+ 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=7408,
+ point_expires_at="2025-12-05T18:37:50.000000Z",
+ status="enabled",
+ description="WhsZ81p0D8THD4dpuhx",
+ event="external-transaction",
+ priority=9078,
+ ends_at="2022-01-02T07:17:27.000000Z",
+ starts_at="2020-11-05T08:57:28.000000Z",
+ name="PfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8Eg"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_17(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["c9ba2a57-52a9-484f-a11c-9a2a4be39b4f", "422a7a69-fd69-4f4f-92a8-a65cb9858c36", "7ddbd537-b10c-4e48-ae3b-aa1ba562f05e", "7c97d2ff-7457-493a-9951-61430b722589", "c7a2ca2a-19e5-45aa-afd0-91579f69392e", "d8b2ed3d-9704-47eb-8c6e-a159ffeb00b7", "50cf1ff9-f535-4820-8afe-509426d25dd0", "c0c45832-dbbc-4c0e-b6ae-c49ab5a19b2f"],
+ minimum_number_of_products=4949,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[2, 4, 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_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="money",
+ is_exclusive=True,
+ point_expires_in_days=7869,
+ point_expires_at="2023-08-05T22:03:27.000000Z",
+ status="enabled",
+ description="5U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBK",
+ event="external-transaction",
+ priority=5343,
+ ends_at="2025-07-04T08:18:29.000000Z",
+ starts_at="2024-08-20T16:02:18.000000Z",
+ name="DDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_18(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["c78df6dd-9403-49c8-baa7-7fb2ce2e961c"],
+ minimum_number_of_amount=6577,
+ minimum_number_of_products=7266,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[6, 6, 5, 5, 2, 4, 6, 3, 5],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ 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=3053,
+ point_expires_at="2021-09-05T04:56:14.000000Z",
+ status="enabled",
+ description="AD82QrpYaKuslNraOesyAiawWiyWk",
+ event="payment",
+ priority=6099,
+ ends_at="2021-06-14T21:34:59.000000Z",
+ starts_at="2021-05-14T09:24:03.000000Z",
+ name="bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZCl"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_19(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["aa9c8056-53e1-426a-bfaf-8f00ea201576", "4c745c75-6b8b-46c7-9f1a-7fb5afaa6efd"],
+ minimum_number_for_combination_purchase=47,
+ minimum_number_of_amount=3613,
+ minimum_number_of_products=7199,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[5, 3, 2, 2, 0, 5, 0, 1, 6, 1],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ 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=5168,
+ point_expires_at="2020-07-29T18:52:39.000000Z",
+ status="enabled",
+ description="SB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9TezTj3A085y5hWQ",
+ event="payment",
+ priority=8977,
+ ends_at="2020-01-29T05:35:47.000000Z",
+ starts_at="2022-06-16T00:43:21.000000Z",
+ name="gdeDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1melep"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_20(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["e67d1dcc-61df-4228-85ee-4677c308c9c9", "026e8de0-0e73-468a-ab55-de11761be225", "30ca42e3-2ed3-4edc-9b6d-9da06a206fa5", "9cb20b76-9f62-4734-874f-c60d2d7e75db", "49763bd5-91f1-4bc3-bab9-9c633dd3e347", "d3cc3444-d022-4a8b-97c9-2ce839b5c9bc", "eceab63e-fa06-40fd-acd0-bd8990e16c74", "5ede6208-b6b5-453b-870f-e0b21724d17a", "70b371d0-cb37-4c59-9332-12c4df180e28", "b46ec211-fca1-42d7-941a-fd7505cfcff3"],
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=5848,
+ minimum_number_of_amount=2148,
+ minimum_number_of_products=4029,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[4],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=True,
+ point_expires_in_days=1332,
+ point_expires_at="2024-12-21T01:28:21.000000Z",
+ status="enabled",
+ description="jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCH",
+ event="payment",
+ priority=9112,
+ ends_at="2025-12-08T09:46:48.000000Z",
+ starts_at="2025-08-03T08:57:41.000000Z",
+ name="Rk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMg"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_21(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["39bcc4fa-0541-4778-adb3-266eb6977418", "03ef139f-73a5-49f5-9b43-b074afa2926d", "ddc016b4-86f4-4cc0-8d1a-04b43050fda5", "2e215af2-02d1-4337-bd98-e15493ba6ccd", "4201375d-28d7-4340-a03e-92166e700277"],
+ max_point_amount=7645,
+ exist_in_each_product_groups=False,
+ minimum_number_for_combination_purchase=9636,
+ minimum_number_of_amount=7976,
+ minimum_number_of_products=9919,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[1, 6, 1, 1, 6, 5, 1, 0, 3],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=5093,
+ point_expires_at="2021-04-20T22:14:33.000000Z",
+ status="enabled",
+ description="koAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz",
+ event="payment",
+ priority=804,
+ ends_at="2024-07-16T14:28:33.000000Z",
+ starts_at="2025-05-20T19:43:19.000000Z",
+ name="zSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPg"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_22(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["93336af9-6227-4d95-8bfd-ea9ab781991e"],
+ max_total_point_amount=5378,
+ max_point_amount=7411,
+ exist_in_each_product_groups=False,
+ minimum_number_for_combination_purchase=8289,
+ minimum_number_of_amount=4548,
+ minimum_number_of_products=9636,
+ 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, 6, 1, 2, 3, 2, 4, 6, 3, 4],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_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
+ }],
+ subject="money",
+ is_exclusive=False,
+ point_expires_in_days=3119,
+ point_expires_at="2021-01-13T19:20:20.000000Z",
+ status="disabled",
+ description="S1CRG8HTOfVnvp3qGXZFBsOSpPHbl",
+ event="payment",
+ priority=8000,
+ ends_at="2021-10-11T17:20:28.000000Z",
+ starts_at="2025-07-24T00:33:58.000000Z",
+ name="UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_23(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["0a5dec39-4520-45c4-b645-8ab87eba05d5", "a9438cac-abd6-445d-b0a6-91bc0c011eea", "804ce6a4-dfb2-4b22-9971-f45dc22261c3", "9c045312-062d-4d8a-82bb-b7bbde366d31", "a0b0abb5-37f9-4c56-a796-d74afb9224ab", "2a7bc35a-3770-41e3-adb8-bf18bf60320d", "3e1e7ccb-2da3-43bf-96a3-f99903431ca7", "dad77621-7670-4e3d-80c8-b006e4675284"],
+ applicable_account_metadata={
+ "key": "sex",
+ "value": "male"
+ },
+ max_total_point_amount=5698,
+ max_point_amount=1235,
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=6853,
+ minimum_number_of_amount=5599,
+ minimum_number_of_products=5391,
+ 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, 0, 1, 6, 5, 5, 3, 6],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="money",
+ is_exclusive=True,
+ point_expires_in_days=2739,
+ point_expires_at="2020-10-16T04:26:44.000000Z",
+ status="enabled",
+ description="cmC1vS6JUWIFuWHifSCeHqDX4OovF1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0R",
+ event="topup",
+ priority=2300,
+ ends_at="2020-07-31T05:21:10.000000Z",
+ starts_at="2020-12-09T14:26:02.000000Z",
+ name="JHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0kXmsTMdugDsmRtGnF7L4"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_24(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["ba1619ac-dd06-40c6-8ec3-e35740d64dfd", "89143c15-9f19-4d8f-b262-4c9a07297b5b"],
+ applicable_transaction_metadata={
+ "key": "rank",
+ "value": "bronze"
+ },
+ applicable_account_metadata={
+ "key": "sex",
+ "value": "male"
+ },
+ max_total_point_amount=7776,
+ max_point_amount=9495,
+ exist_in_each_product_groups=False,
+ minimum_number_for_combination_purchase=3189,
+ minimum_number_of_amount=1504,
+ minimum_number_of_products=936,
+ 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, 3, 2, 0, 0, 1, 0, 3],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_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
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_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=6539,
+ point_expires_at="2022-10-19T01:27:31.000000Z",
+ status="enabled",
+ description="D2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsMYGbxzOIV2r2JtDEGxgzX90xQ1qEwnOj",
+ event="payment",
+ priority=1279,
+ ends_at="2021-09-10T02:17:08.000000Z",
+ starts_at="2023-12-02T04:44:50.000000Z",
+ name="jMdE2ZgqC6g"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_25(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ applicable_shop_ids=["1161078f-0209-4695-a21e-7831ebff1f01", "560a31c5-a983-4f7c-8eaf-6dfcae5038fc", "79ccd857-18cf-477c-9088-9c815d186646", "8c88ea4d-d275-47dc-a186-d8f9a0606c67", "5e75d99a-b7ac-45ab-9a9d-ea6f3330f49a", "c023a264-c927-4495-b888-ac6e262e0b75", "505cdf88-0c66-40a7-a632-f1e20e8237ad", "29f2a092-167b-4591-95f7-e2458c0e30a8", "4789c68b-35bd-4433-928b-6caad38c0444", "861c51a5-006a-4b1f-adef-75c75eb88e3b"],
+ budget_caps_amount=163422978,
+ applicable_transaction_metadata={
+ "key": "rank",
+ "value": "bronze"
+ },
+ applicable_account_metadata={
+ "key": "sex",
+ "value": "male"
+ },
+ max_total_point_amount=9705,
+ max_point_amount=2172,
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=6077,
+ minimum_number_of_amount=2799,
+ minimum_number_of_products=4987,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[1],
+ 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
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_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=1219,
+ point_expires_at="2020-09-24T20:37:23.000000Z",
+ status="disabled",
+ description="410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0XdBqvz2LZqSb1Cr9GvJk1u6JVnb04lQy4ktenk93ttYPJhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoTFQeHIP",
+ event="payment",
+ priority=989,
+ ends_at="2022-02-23T01:32:57.000000Z",
+ starts_at="2020-01-31T07:46:39.000000Z",
+ name="BDhi4oQ1t1s3zE32Vk24Ceen1NSjytDUp3byZcFEPnIDVyEjs1xIVAG7PJaXsPv"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_26(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["92717825-fc79-4ba3-b77b-f2ca3128e74c", "a65c1cfc-49e0-4491-abd0-f35c6eee21d7", "2b8e12d4-da34-41d0-972c-86a4c22c63cf", "f5bf83ca-fe4b-4526-89cb-b5df9208349d", "79ef4408-1d5c-40d5-821b-f34b6ad9e03e", "d1da43e6-4876-40c1-a1e4-68415b57cbe4", "e58a16a5-061e-4ad6-a814-7f5292b35638", "759d2371-3fc6-43d7-b02f-c4352c61470e", "93a49aac-c694-4374-9085-a78dd38f41a8"]
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_27(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["cd87c796-059a-4b15-a18e-15cf35179592", "47c4816b-5281-47ea-bbbb-5d24cafd38b6", "fd657598-610e-4940-9e2b-922bf8a00a37", "46309728-a026-427a-8489-e84f0078d701"],
+ name="hzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPSNst44xBM1tMMoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR3LjzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_28(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["a199e4cc-3057-4aec-bddf-2cd778634bab", "1a61ea52-5bf1-4d45-aabd-738642a14955", "3ca8e8b1-acd2-4eb3-88d6-c2e65a371a3b", "53a7f675-58ed-48ca-b26b-8e868936c521", "e196802a-e23a-4678-8197-b2b16a871d5f", "3c359297-aa0d-49a8-973a-4ed26cae677c", "82efb120-15c2-4868-ab4a-8c8763a00f6e", "8cd8fdf2-654b-45ee-b6d4-6c348af39298"],
+ starts_at="2021-06-29T18:32:59.000000Z",
+ name="Yf7XzEp3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_29(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["d495e7a5-6ca0-47b2-988f-d4eb1b2a1ca7", "c1e36f21-8528-474c-a1be-5459bd1bb3c1", "65e4ded1-4e51-4c6e-8e57-59f15389cf35"],
+ ends_at="2025-11-22T02:11:22.000000Z",
+ starts_at="2024-12-16T19:06:23.000000Z",
+ name="k8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkL"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_30(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["9a2f8a29-67c1-4871-8ee7-86001520e5f7", "3c7f7f53-1c3e-4e60-af64-80e4433124e9", "f0c2ff7f-2c0e-4c3e-b590-76060a15b3ea", "97168357-e6d4-47e7-aedf-b084b7946b28", "17f0607c-91b1-4531-ad01-33f05aec5c78", "437085bd-e7e1-4ebc-827d-2756dd0ff949", "76fa938c-e559-46e7-91fc-b207204e1f95", "b67dee8e-5e90-486f-b582-35c7ee214bde", "cb5a4e2a-4776-45a5-827d-001f74ecfcaf", "48e10069-6b07-4326-884b-460033befc3f"],
+ priority=6647,
+ ends_at="2022-12-08T18:07:59.000000Z",
+ starts_at="2020-04-21T20:54:59.000000Z",
+ name="3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCDrt0LJOE3QgwrCcszhfH09"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_31(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["e51b69bc-e70f-4ede-81d9-24a8c0f3660c", "198f38b5-28bb-474f-b4e8-83569cd61177", "6ccce250-346d-408b-b6ba-2548850f4c5b", "dd2e48d8-5442-45c6-8c00-d753662175de", "6e40bbb5-43ed-4517-a101-98bf154824ab"],
+ event="external-transaction",
+ priority=1417,
+ ends_at="2022-03-28T16:37:30.000000Z",
+ starts_at="2021-03-03T19:49:24.000000Z",
+ name="aN7ByqCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxVOS8aVOpiS1EeKe2EnvF9kW30yXFj5pEZQNOtIwcrR2Tap7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfz"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_32(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["673a9f7d-0b91-49ca-acbc-200d53b4d1db", "b6d4ee47-1592-4f6e-a288-9a47906aae68", "789a1dda-1273-46cb-a47d-e756c3e5c472", "58352109-53a0-4545-ac54-d52d8a9e0cf8", "e8720112-20cc-42bb-8dc5-9bf41eb7a11f", "83fb8934-bdc7-4146-832b-e37627c174a3", "457c3478-f79f-4dc1-9fac-384b3fdba93b", "e6303eda-53c7-41a3-8e32-6bdbd13d30bf", "5550591d-0468-458b-9a8a-de6b7f840bae"],
+ description="rp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN6p0E72qWtOk3QUVbESEWPtcFyu37VMAkI2ylOPtFPfUfw5cNQlmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9FjiQcyxviUOica",
+ event="payment",
+ priority=2751,
+ ends_at="2020-10-12T02:19:07.000000Z",
+ starts_at="2025-10-26T17:53:42.000000Z",
+ name="qLE3MkcTFrJK4NHPvl4VhqOdqyKHcIOPhbvogj2mEAT9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbRE9tWUhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLz"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_33(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["6b83d01f-422d-49cf-97e0-e7b095f6b09c", "46404a45-4658-4b02-a68a-8e94ce301689", "94ffacc7-b0fd-4953-ab03-66c08c2f542a", "463f6ea0-729e-48a4-82b9-2c73bdbda2cd", "e3c79a2f-e37b-4ac3-96ec-f242f28ad113", "72068316-69fc-4e93-a561-f27ed23c9446"],
+ status="enabled",
+ description="ZBNIprWMfHv0Adc0Cr3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXonmfKJhNI2H30S",
+ 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_34(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["15ba9359-fe08-4693-bfbf-1ade484f089c"],
+ point_expires_at="2021-06-07T05:07:11.000000Z",
+ status="disabled",
+ description="FDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVupSap8p4f5efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3GWqnvnIS00nrMnQNFRYYqQB2LOvvxaJWdM6RyNE08AoCyr23XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcU",
+ event="payment",
+ priority=8116,
+ ends_at="2020-05-08T14:45:55.000000Z",
+ starts_at="2023-04-16T11:22:24.000000Z",
+ name="ZxW6C1o0zvPKHwlN5cgpKhTDjrt62aO0gTJKvsFX8pCgUNdYXQChONhwWGHDaQRst"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_35(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["05b86921-0b3c-4bbd-8d05-04fa86c63df9", "8baa1790-5166-43c3-8dab-514350da505b", "3eb51a2a-c3b6-4372-b4da-185e5254fac9", "ff4ac835-b43a-467a-af67-e889c581ccb9", "7228aa16-21e2-4ffe-84ae-4255b44303ec", "e953e198-5255-4cca-9e0f-eec27570d5c2"],
+ point_expires_in_days=8650,
+ point_expires_at="2021-06-10T22:32:07.000000Z",
+ status="disabled",
+ description="9Fd6Y7e4aTjbZiLOaWRsEnzqZ6lGrz0tQnP1Co4x4AXMvzQhY1JlrHqbdULcyqcFghqKIiyi3aAuGXWsNdhyWJyqrPAKmmZGZJNC4j2awHXlJF9A7cu6AxfU8HIO6LO5Dd5XiFWL9oU011XoGoCpelX",
+ event="topup",
+ priority=8672,
+ ends_at="2023-02-27T11:56:57.000000Z",
+ starts_at="2020-06-18T07:28:22.000000Z",
+ name="PpOt9Y3msxtcs0WRQEq2AUltkkF5RV8aSNO9GQnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_36(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["347299c0-12c9-476a-bb19-e8b9e3138ba4", "3a51ac97-9266-479b-bf28-756eafd35342", "25488e62-01a2-48bb-894b-813828fec5e4", "f1808153-f10a-40bb-9d8c-fe2e1d1e034a", "4c466291-9870-42c1-924e-1a06a1ae8c15", "682de48b-9536-41f7-89d8-dac9ac85d7d1", "59c16462-5726-46e0-9421-9157a9e214c0", "d6346deb-ea65-457b-839a-b0fc55edfc77", "568edd25-c323-47d8-be57-ef028fb842b1"],
+ is_exclusive=True,
+ point_expires_in_days=2280,
+ point_expires_at="2020-06-09T00:08:51.000000Z",
+ status="enabled",
+ description="vxeuhtqc0lVuVevBpKZFsUJPsCckORoCtdXbeAqJmttYcSXDoCgwypQnQUsnWOKMZ3rJ8aRGwz6VDq2kLV7UR9Ys1BTbKj9Qe",
+ event="topup",
+ priority=4557,
+ ends_at="2026-02-16T19:19:02.000000Z",
+ starts_at="2022-08-13T22:16:39.000000Z",
+ name="U46l1ev23Q5PTPgtt4yAIzCwP1Z0JVfF9RSrf0Q1pmhWHNJvae7EjBkQNn9uWl9JunPyftwg9sZ6EOXmzMsMVDhb"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_37(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["43d6957a-3ebe-40dd-a73e-43e62d4040c6", "adf1ebf6-ccd5-47ec-bd33-58ac6d0120d5"],
+ subject="money",
+ is_exclusive=False,
+ point_expires_in_days=444,
+ point_expires_at="2024-12-18T22:04:11.000000Z",
+ status="enabled",
+ description="5TLVhbhll0GP4QAkQeOPrTAo5HhYx5jCaGbLEuJCfBO4W1IV2UViZVHRWPkdj3cWX27LHxVCRXJ7RR9vhNIu31vkGd5KFMjSHWQRA9E535lViSyzzCHjVEEg0SpYDFFDY1quxNkSS",
+ event="payment",
+ priority=2081,
+ ends_at="2022-12-20T01:17:17.000000Z",
+ starts_at="2020-11-27T00:07:31.000000Z",
+ name="LOUldc17zrM7imjJVYnMFmZVKbnQskJ4SJWYdnxMj"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_38(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["a5b03b0e-970c-479e-88b9-b6f20f6a4bec", "4621b770-5b86-4663-8abc-3f576c66995c", "5f054977-a331-44d6-8409-6067f3502b40", "7ca699b5-cc09-46c1-b36a-34c9b65d9fa5"],
+ 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=4053,
+ point_expires_at="2024-05-07T17:49:15.000000Z",
+ status="enabled",
+ description="Dn7VAyGhf1a2i4Xb006Y5FN9bW9vksFBm8sMwbh1WFtpEmCrFqNwdLZ15QmFMvlNaa2goLZ5E9OEvOUIiBwbJ5GuqfgOe9nVnbOf1mceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiP",
+ event="topup",
+ priority=5836,
+ ends_at="2022-02-14T18:04:25.000000Z",
+ starts_at="2024-03-04T06:27:38.000000Z",
+ name="hYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8UioFkI4pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L6y5R4kNHRMXQTzW1iBiUI5JGbGoEyKdo0WvNvuZ2zOymd6UzJ163lry8C4rDtJNzcEFdrvo427ISByum8MIrVugVBfTif3qpXYgZnZ3LJOu3iwipHdsS3ShjnA4Sr1gSN2P"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_39(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["0cf95aec-b5f0-4b79-b7a9-645ba98e0f71", "d237a86e-3527-4f6b-b128-793b1ee769a6", "ed415e4a-40c7-491c-86db-6b7b9047bc21", "96da3455-78a4-4357-971f-58de46390022", "52b95c63-588c-40df-82ae-d68f76c870f3", "1cbc1fb7-844f-4a4b-b22b-876189a34d37"],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=5761,
+ point_expires_at="2023-12-14T00:56:05.000000Z",
+ status="disabled",
+ description="nVCa3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsFLw1OF89AbrhaWMPvJ4w9BbWGLWxTOnqHU20ukx1FDQpVqtvlq3pwtYNpqFJFhJ6HuYWnqyIUhAD4rpz6whWSFAXMqy8UduAdQ5IH0TK2HSat5A6ikNbGO6nv206MCoq10cKjOOA",
+ event="external-transaction",
+ priority=8026,
+ ends_at="2021-04-11T23:25:22.000000Z",
+ starts_at="2020-10-16T12:14:15.000000Z",
+ name="MJkEXTJUvgY"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_40(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["e8f39192-b97b-4f8a-9071-c648c6cb1693", "94c4dfa0-d69b-49cc-952d-e2e801433c55", "17f4632a-aa79-41d7-9408-dda44753a4eb", "82aa7cce-bfb1-4794-93c6-89b8030790d8", "9199b477-5e6c-4cb2-b246-aa56e7c584b9", "bfffbacc-1750-4d45-aa10-29c71c3dc6af"],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=5163,
+ point_expires_at="2024-11-19T16:21:18.000000Z",
+ status="disabled",
+ description="EHZ0zFFEN3CsRlByNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvII6xukRoB486IcnSrXwZGPsDFfbhpjo6CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FAjM",
+ 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_update_campaign_41(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["16032a8e-a4ba-4571-8787-d1f8966b2652", "073aa586-6941-40f5-b443-14a3d172348a"],
+ applicable_days_of_week=[1, 2, 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_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=454,
+ point_expires_at="2024-01-28T10:18:01.000000Z",
+ status="enabled",
+ description="XjU1Rl6vF7n9cWf",
+ event="payment",
+ priority=4083,
+ ends_at="2020-06-17T22:57:10.000000Z",
+ starts_at="2025-05-19T09:51:34.000000Z",
+ name="ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_42(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["0fec9e34-4367-48b3-baac-02c9caed8b6e", "bbf4e3e1-ac46-42eb-80e7-d6c5f3b3c5c5", "f7fbd29b-cf4b-46e5-a42f-12726e9ed04d", "bd807d77-583e-47e4-a7c8-27f5a96169eb", "bb3188f0-56c3-4969-a3fc-d8c8049e59c2", "93ff0a21-126a-40b6-b466-f2a92ef2bddf"],
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[4, 4, 6, 4],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_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=5123,
+ point_expires_at="2025-01-28T18:42:06.000000Z",
+ status="disabled",
+ description="3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4S8a9Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouP",
+ event="topup",
+ priority=7366,
+ ends_at="2020-06-24T05:36:51.000000Z",
+ starts_at="2024-04-25T06:28:35.000000Z",
+ name="d3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH287FkS1AdoZmrqVFQp8fp9IpDGNT32XXjSeAsfsowmrnytFnDNPErJC0T6j8TSBN1GRIxfJ3UGUU"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_43(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["67c8405f-4f4d-41a4-ada9-aa1e1c14059f", "435a14b2-2b1d-4aea-88ad-7044c138f37a"],
+ minimum_number_of_products=3969,
+ 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=[2, 2, 4, 6, 5, 5, 1, 5, 5, 4],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=3818,
+ point_expires_at="2021-12-12T09:02:22.000000Z",
+ status="enabled",
+ description="E6L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3",
+ event="topup",
+ priority=1627,
+ ends_at="2025-01-28T04:56:30.000000Z",
+ starts_at="2024-04-02T17:58:06.000000Z",
+ name="uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNRasJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1TG2yJEOhnrWkQVh8G8vXFKeuF0FhTncNlMmgEuaHAHntz60OEH7JgjiAw3cGa"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_44(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["41422f22-f94c-4235-88cb-c64858a39770"],
+ minimum_number_of_amount=1386,
+ minimum_number_of_products=6183,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[1, 2, 3, 5, 1, 4, 0],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_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=True,
+ point_expires_in_days=9033,
+ point_expires_at="2024-05-01T12:04:54.000000Z",
+ status="enabled",
+ description="VYRMoN8ciCbZWnzcDnK4LA4gWzsFxrEWGQmIqwq80GWYOCdqp3aMw45RftnlC78XMJnZ0CKAQudtFEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm",
+ event="payment",
+ priority=4,
+ ends_at="2021-12-03T23:41:39.000000Z",
+ starts_at="2020-07-24T14:51:59.000000Z",
+ name="3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3s3mbWjjaocKJS9JHlwFlJcsltjjmodDQEUxDaghv7DnSC5Rfu0C0uKFwmpPkPjblE3KxRrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0MuCLswxDV9drgRK"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_45(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["5d6f6900-2ce8-4460-bbfc-be88f553e1cc", "d36072de-5a60-495b-9304-40f68816775b", "0c86c896-315f-415a-b2cb-302129438ed1", "3a8e4ecf-7fd2-4fe0-b89c-c0cd70328b16", "f950c6fc-387b-48c8-b219-ba6fa9545e3a", "0a387ad1-c06f-4136-aaaa-96a0b4c8b6a5", "e815d240-0022-42fb-8ddb-eb83a73947b6", "39a98f36-c08c-4a80-9732-db790caacbb8", "a89c8504-55ab-4ccb-b2ad-3d16c4f530da"],
+ minimum_number_for_combination_purchase=9952,
+ minimum_number_of_amount=1998,
+ minimum_number_of_products=2413,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[1, 3, 4, 6, 1, 2, 4],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_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=9436,
+ point_expires_at="2023-10-01T20:44:13.000000Z",
+ status="enabled",
+ description="14cZJ7e4Q9GCUyL2v9u3mWzZwKqxzujrUlmkKRdRXeieY6AmMB38WCqGZQWNed5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN5",
+ event="topup",
+ priority=2743,
+ ends_at="2025-12-02T21:20:51.000000Z",
+ starts_at="2023-03-30T13:52:26.000000Z",
+ name="atnkU3QijXWL36Ne9BIyD0VsxUMLq2pynj2i9JShHMs7dpHbhmzmDvsuxdQFF1b9FFVS"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_46(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["ec98395d-3c29-4ffe-b8ce-db8aff6c37c0", "9a13bb40-72d2-46a7-8168-25addc0df628", "d4433259-e65e-4bb3-9443-7f655432967c", "a881e995-1c28-4ec7-a707-ab33a7580eb8", "4e6f0733-1e46-4b2f-b966-03e608ddde84"],
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=6434,
+ minimum_number_of_amount=7985,
+ minimum_number_of_products=7263,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[6, 5, 4, 2, 1, 3],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_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
+ }],
+ subject="money",
+ is_exclusive=True,
+ point_expires_in_days=1480,
+ point_expires_at="2021-02-19T12:44:36.000000Z",
+ status="enabled",
+ description="T5H1YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6dE59eFWe4PxHJhHM6PRObQxj3f4w8El4HGgfInUuZUZacdXJKlldoDuv9TA2XHRXocL0a2ENjq4YdkJGWgFmKTEIA1MAf2HgecIl74FyRST7ScfdaiXI0aphnQp",
+ event="payment",
+ priority=265,
+ ends_at="2025-03-10T10:11:20.000000Z",
+ starts_at="2024-07-06T20:07:55.000000Z",
+ name="JpxMwBWB66twUXazpjqxEREjqmyqJkEdfkYviMgBpZAYBbcvRZzaI37"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_47(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["79d272eb-788c-49b5-bba9-77d1e4654ba1", "12857a70-a0db-40ec-8c35-e69c2f3d65c7"],
+ max_point_amount=2811,
+ exist_in_each_product_groups=False,
+ minimum_number_for_combination_purchase=6196,
+ minimum_number_of_amount=9344,
+ minimum_number_of_products=8191,
+ 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=[1, 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_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=True,
+ point_expires_in_days=1883,
+ point_expires_at="2020-01-05T03:38:04.000000Z",
+ status="enabled",
+ description="SE0IrKdpz0FXntwLwsP6PlvtKfS7z",
+ event="external-transaction",
+ priority=2027,
+ ends_at="2025-07-06T22:54:46.000000Z",
+ starts_at="2026-01-21T11:52:50.000000Z",
+ name="Hoi0oeAT0NWEwBSET0oVnBy6crZKnvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB304Jmf05hgJ0rNiPO7Acqsb1X8oQj9wf9SU4WjLK1VT02GEDFloz09QK5UFuC5JXRVayFf6oyQZu56A1wWzKTTxm1brwQKhHT3R75Hu8YJJm39h1WaxT"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_48(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["e7ba11f4-b63e-40b5-957f-e4d3badc4f8d"],
+ max_total_point_amount=7004,
+ max_point_amount=4539,
+ exist_in_each_product_groups=False,
+ minimum_number_for_combination_purchase=9538,
+ minimum_number_of_amount=6763,
+ minimum_number_of_products=3865,
+ 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, 2, 1, 2, 6],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_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
+ }],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=7622,
+ point_expires_at="2020-03-31T15:05:30.000000Z",
+ status="disabled",
+ description="QNsufaSx2VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVEFmUe",
+ event="topup",
+ priority=9447,
+ ends_at="2020-11-12T13:35:34.000000Z",
+ starts_at="2025-12-16T03:36:36.000000Z",
+ name="605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8B2QP"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_49(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["cbeb2539-621a-4059-97bc-c8155d4ceedc", "8f488832-fa52-4f40-8d5b-d270ddf44df3"],
+ applicable_account_metadata={
+ "key": "sex",
+ "value": "male"
+ },
+ max_total_point_amount=6054,
+ max_point_amount=619,
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=4838,
+ minimum_number_of_amount=1316,
+ minimum_number_of_products=9778,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }],
+ applicable_days_of_week=[2, 2, 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_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_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
+ }],
+ subject="all",
+ is_exclusive=True,
+ point_expires_in_days=4867,
+ point_expires_at="2023-07-14T04:04:36.000000Z",
+ status="disabled",
+ description="31cQtfbPCATbfETgM8KooCtS8z1fc4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ",
+ event="external-transaction",
+ priority=3224,
+ ends_at="2021-04-30T14:51:38.000000Z",
+ starts_at="2021-08-21T04:40:18.000000Z",
+ name="bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72QaNrZpzYfcTDxwidoKxhgH4IlA44068ievlutMBS788il7UEqSzLy9xJx"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_50(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["75127634-8e68-417f-9b48-a7bafd6ddcc0", "4e5f1ee2-964f-4841-9858-d59e5b70b602"],
+ applicable_transaction_metadata={
+ "key": "rank",
+ "value": "bronze"
+ },
+ applicable_account_metadata={
+ "key": "sex",
+ "value": "male"
+ },
+ max_total_point_amount=2091,
+ max_point_amount=3034,
+ exist_in_each_product_groups=True,
+ minimum_number_for_combination_purchase=4823,
+ minimum_number_of_amount=1212,
+ minimum_number_of_products=616,
+ applicable_time_ranges=[{
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
+ "to": "23:59"
+ }, {
+ "from": "12:00",
"to": "23:59"
}, {
"from": "12:00",
@@ -5715,22 +10977,2231 @@ def test_update_campaign_21(self):
"from": "12:00",
"to": "23:59"
}],
- applicable_shop_ids=["7872ece2-626e-48b9-a80c-0baeaffeb415", "8da393e4-bf8d-4758-9f39-cd4fe0b9a8c3"],
- minimum_number_for_combination_purchase=4711,
- exist_in_each_product_groups=True,
- max_point_amount=6018,
- max_total_point_amount=6105,
+ applicable_days_of_week=[2, 3, 5, 1, 2, 6, 0],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ 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=4086,
+ point_expires_at="2021-11-07T05:54:49.000000Z",
+ status="disabled",
+ description="V64qe5o2B2OlLXdk5kJbuw4YuJbyUdwtweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424DF7dkePprAJuqXJLC9DlGjqYc53kHtf9cD7bpNKlOmIqFEpEzlkbZXsHeK96R7zZjofXop8q4Bfps6VchHwOSBaSPaNKxM4bPYPan8UYIRAISeS032n",
+ event="external-transaction",
+ priority=1791,
+ ends_at="2024-01-12T14:14:17.000000Z",
+ starts_at="2020-04-29T02:37:41.000000Z",
+ name="XrTBWthKP8SFB1epaCsenfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXw"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_campaign_51(self):
+ response = client.send(pp.UpdateCampaign(
+ "fcd70c25-ffdc-4fba-9b84-31be578d0de2",
+ blacklisted_shop_ids=["fab8e0e6-c366-443b-bcd8-2255185b601d", "dacde49c-01db-4822-b4dc-840657f08c3e", "fb5b1058-6fc2-433b-967b-b0e6c1784bb9", "2980f2ef-4ae6-418a-a232-8bcddc2a3c61", "27d392c2-830f-4792-949a-ebf9ae6defce"],
+ budget_caps_amount=2045387233,
+ applicable_transaction_metadata={
+ "key": "rank",
+ "value": "bronze"
+ },
applicable_account_metadata={
"key": "sex",
"value": "male"
- }
+ },
+ max_total_point_amount=8553,
+ max_point_amount=4516,
+ exist_in_each_product_groups=False,
+ minimum_number_for_combination_purchase=2850,
+ minimum_number_of_amount=6000,
+ minimum_number_of_products=5003,
+ 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=[2, 2, 4, 0, 3, 2, 0, 4],
+ blacklisted_product_rules=[{
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }, {
+ "product_code": "4912345678904",
+ "classification_code": "c123"
+ }],
+ product_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }, {
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "product_code": "4912345678904",
+ "is_multiply_by_count": True,
+ "required_count": 2
+ }],
+ amount_based_point_rules=[{
+ "point_amount": 5,
+ "point_amount_unit": "percent",
+ "subject_more_than_or_equal": 1000,
+ "subject_less_than": 5000
+ }],
+ subject="all",
+ is_exclusive=False,
+ point_expires_in_days=4368,
+ point_expires_at="2026-01-27T10:44:08.000000Z",
+ status="disabled",
+ description="YOPlAj5UlMDxo6iDarlMDzJC7wMAkFYNemkzZpvDvog0lglLv2T90aOF7qLZJG6mWFW8mYG8iBpA9wK7FerKmMDJDN9kjnEAtWkM10yTZC",
+ event="payment",
+ priority=7028,
+ ends_at="2022-04-24T06:47:56.000000Z",
+ starts_at="2023-12-07T18:02:37.000000Z",
+ name="5N"
))
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-11-27T07:21:06.000000Z",
+ "2023-03-28T10:40:37.000000Z"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_terminate_user_stats_0(self):
+ response = client.send(pp.TerminateUserStats(
+ "cdfd21a2-2c66-4cae-a35d-cceadd40eb84"
+ ))
+ 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=3189
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_webhooks_2(self):
+ response = client.send(pp.ListWebhooks(
+ page=8843,
+ per_page=5272
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_webhook_0(self):
+ response = client.send(pp.CreateWebhook(
+ "bulk_shops",
+ "XhJHyZx"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_delete_webhook_0(self):
+ response = client.send(pp.DeleteWebhook(
+ "ecf16d17-21bc-4b65-b3bc-8f60c83f0284"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_webhook_0(self):
+ response = client.send(pp.UpdateWebhook(
+ "963b4390-0f60-47ad-ad38-7df9d5775e76"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_webhook_1(self):
+ response = client.send(pp.UpdateWebhook(
+ "963b4390-0f60-47ad-ad38-7df9d5775e76",
+ task="process_user_stats_operation"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_webhook_2(self):
+ response = client.send(pp.UpdateWebhook(
+ "963b4390-0f60-47ad-ad38-7df9d5775e76",
+ 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(
+ "963b4390-0f60-47ad-ad38-7df9d5775e76",
+ url="EczL",
+ is_active=True,
+ task="process_user_stats_operation"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_user_device_0(self):
+ response = client.send(pp.CreateUserDevice(
+ "a7def01a-1eb3-4362-a42c-3b8e0fb0b227"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_user_device_1(self):
+ response = client.send(pp.CreateUserDevice(
+ "a7def01a-1eb3-4362-a42c-3b8e0fb0b227",
+ 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(
+ "3ff0a825-b20f-41e3-824d-14d3b2b58c20"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_activate_user_device_0(self):
+ response = client.send(pp.ActivateUserDevice(
+ "b72e1875-5acb-4ebd-a4f1-2b3381de0046"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_delete_bank_0(self):
+ response = client.send(pp.DeleteBank(
+ "27c89ff3-f609-400e-9582-9f28f67f359e",
+ "5c879eec-177d-4647-a28a-e7ebe047f1c8"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_banks_0(self):
+ response = client.send(pp.ListBanks(
+ "4ef65e07-5126-4515-af31-7dff375b33d0"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_banks_1(self):
+ response = client.send(pp.ListBanks(
+ "4ef65e07-5126-4515-af31-7dff375b33d0",
+ private_money_id="ad52b093-43be-46a3-a878-7de2538e9c20"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_bank_0(self):
+ response = client.send(pp.CreateBank(
+ "27e326e2-071b-4eff-9432-6e75ff5a1b26",
+ "6963beab-ea6d-424f-9a98-51836523fc9f",
+ "RVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77",
+ "PuYo1FVSdDE8cTf3i5qFGBC"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_bank_1(self):
+ response = client.send(pp.CreateBank(
+ "27e326e2-071b-4eff-9432-6e75ff5a1b26",
+ "6963beab-ea6d-424f-9a98-51836523fc9f",
+ "RVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77",
+ "PuYo1FVSdDE8cTf3i5qFGBC",
+ birthdate="HYp"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_bank_2(self):
+ response = client.send(pp.CreateBank(
+ "27e326e2-071b-4eff-9432-6e75ff5a1b26",
+ "6963beab-ea6d-424f-9a98-51836523fc9f",
+ "RVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77",
+ "PuYo1FVSdDE8cTf3i5qFGBC",
+ email="L8ODBvwgaM@Ac0J.com",
+ birthdate="V"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_bank_topup_transaction_0(self):
+ response = client.send(pp.CreateBankTopupTransaction(
+ "4d15e082-c7ba-4ea2-ae76-fd903ffadb18",
+ "d324585f-aee8-436c-87c0-3b9727d97331",
+ 7422,
+ "a756d814-3d74-43eb-8307-20f25a0be9d9",
+ "39bbe201-2351-4e48-90d1-7f684b857809"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_bank_topup_transaction_1(self):
+ response = client.send(pp.CreateBankTopupTransaction(
+ "4d15e082-c7ba-4ea2-ae76-fd903ffadb18",
+ "d324585f-aee8-436c-87c0-3b9727d97331",
+ 7422,
+ "a756d814-3d74-43eb-8307-20f25a0be9d9",
+ "39bbe201-2351-4e48-90d1-7f684b857809",
+ receiver_user_id="701e2d7f-ad81-4568-9273-910389280d40"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_coupons_0(self):
+ response = client.send(pp.ListCoupons(
+ "8633b2b2-d5d0-43c9-8e61-bcfbb2feaea7"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_coupons_1(self):
+ response = client.send(pp.ListCoupons(
+ "8633b2b2-d5d0-43c9-8e61-bcfbb2feaea7",
+ per_page=2071
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_coupons_2(self):
+ response = client.send(pp.ListCoupons(
+ "8633b2b2-d5d0-43c9-8e61-bcfbb2feaea7",
+ page=8108,
+ per_page=2366
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_coupons_3(self):
+ response = client.send(pp.ListCoupons(
+ "8633b2b2-d5d0-43c9-8e61-bcfbb2feaea7",
+ available_to="2023-01-25T15:53:19.000000Z",
+ page=1379,
+ per_page=5801
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_coupons_4(self):
+ response = client.send(pp.ListCoupons(
+ "8633b2b2-d5d0-43c9-8e61-bcfbb2feaea7",
+ available_from="2024-11-18T14:10:25.000000Z",
+ available_to="2025-05-19T16:45:37.000000Z",
+ page=3296,
+ per_page=8712
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_coupons_5(self):
+ response = client.send(pp.ListCoupons(
+ "8633b2b2-d5d0-43c9-8e61-bcfbb2feaea7",
+ available_shop_name="xx6iPX8wNV",
+ available_from="2025-08-19T00:15:27.000000Z",
+ available_to="2026-02-27T01:46:24.000000Z",
+ page=1348,
+ per_page=1366
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_coupons_6(self):
+ response = client.send(pp.ListCoupons(
+ "8633b2b2-d5d0-43c9-8e61-bcfbb2feaea7",
+ issued_shop_name="iEzApKM66Z",
+ available_shop_name="k",
+ available_from="2021-06-30T08:48:05.000000Z",
+ available_to="2024-07-30T03:27:11.000000Z",
+ page=2951,
+ per_page=2061
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_coupons_7(self):
+ response = client.send(pp.ListCoupons(
+ "8633b2b2-d5d0-43c9-8e61-bcfbb2feaea7",
+ coupon_name="o1oTp",
+ issued_shop_name="c",
+ available_shop_name="DOIWVwoFQc",
+ available_from="2021-04-01T14:02:21.000000Z",
+ available_to="2020-10-08T09:31:11.000000Z",
+ page=9818,
+ per_page=9827
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_list_coupons_8(self):
+ response = client.send(pp.ListCoupons(
+ "8633b2b2-d5d0-43c9-8e61-bcfbb2feaea7",
+ coupon_id="Klivy",
+ coupon_name="CrM",
+ issued_shop_name="SNsOLmKd",
+ available_shop_name="XC",
+ available_from="2021-06-12T10:02:03.000000Z",
+ available_to="2020-03-16T12:14:13.000000Z",
+ page=7526,
+ per_page=6147
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_0(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=1010
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_1(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=1686,
+ num_recipients_cap=5848
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_2(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=9871,
+ storage_id="afad2e2a-42bc-4009-8720-18da94aa0ed3",
+ num_recipients_cap=1302
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_3(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=7866,
+ min_amount=9786,
+ storage_id="22f381c1-7c34-4d5d-a7b9-63851d9528bc",
+ num_recipients_cap=7427
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_4(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=5743,
+ usage_limit=4776,
+ min_amount=8253,
+ storage_id="a0a38211-0c20-422c-84b8-95c8b4a86ead",
+ num_recipients_cap=2462
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_5(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=8661,
+ code="wypAtZ",
+ usage_limit=272,
+ min_amount=7084,
+ storage_id="6cc37105-951b-4c2a-b382-980666433ca5",
+ num_recipients_cap=511
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_6(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=9948,
+ is_public=True,
+ code="SDOAS6m6",
+ usage_limit=215,
+ min_amount=3262,
+ storage_id="762e1f92-1034-4b08-88ac-ae79a6f1569d",
+ num_recipients_cap=7884
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_7(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=7870,
+ is_hidden=False,
+ is_public=False,
+ code="r4636lRXT",
+ usage_limit=7666,
+ min_amount=2847,
+ storage_id="68524588-a469-403f-8dd0-2902327b4cab",
+ num_recipients_cap=8049
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_8(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=8059,
+ is_disabled=True,
+ is_hidden=True,
+ is_public=False,
+ code="0j1CI3l6J",
+ usage_limit=6129,
+ min_amount=260,
+ storage_id="1ef2286a-949e-412f-8d58-82feb37b4112",
+ num_recipients_cap=8535
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_9(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=818,
+ display_ends_at="2020-09-08T05:06:46.000000Z",
+ is_disabled=False,
+ is_hidden=False,
+ is_public=False,
+ code="mPOolq1eiW",
+ usage_limit=6208,
+ min_amount=9645,
+ storage_id="3731253a-c275-4c7e-8e1a-fa5e66df94c8",
+ num_recipients_cap=8224
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_10(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=6616,
+ display_starts_at="2020-04-28T01:39:42.000000Z",
+ display_ends_at="2024-09-22T07:01:32.000000Z",
+ is_disabled=False,
+ is_hidden=True,
+ is_public=True,
+ code="YmrfHw",
+ usage_limit=1408,
+ min_amount=933,
+ storage_id="beeaeb57-00b6-4fa3-9fc1-c51021177765",
+ num_recipients_cap=4636
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_11(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=2975,
+ discount_upper_limit=6390,
+ display_starts_at="2024-05-11T13:02:03.000000Z",
+ display_ends_at="2024-12-17T08:29:00.000000Z",
+ is_disabled=True,
+ is_hidden=False,
+ is_public=False,
+ code="ykyD",
+ usage_limit=1176,
+ min_amount=6165,
+ storage_id="aa9c5415-9f26-4402-b86a-1bdb9b1bb7d1",
+ num_recipients_cap=1641
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_12(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=9389,
+ description="XvqsNkUwpnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD62pE",
+ discount_upper_limit=6245,
+ display_starts_at="2020-12-10T16:38:06.000000Z",
+ display_ends_at="2020-07-21T13:22:52.000000Z",
+ is_disabled=False,
+ is_hidden=True,
+ is_public=True,
+ code="8Ib",
+ usage_limit=3189,
+ min_amount=1338,
+ storage_id="56887dd7-9492-40e9-9408-adb9f665a61e",
+ num_recipients_cap=564
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_13(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=8157,
+ is_shop_specified=True,
+ available_shop_ids=["38ef4c02-2759-4781-8f7a-94d70cd2aea9", "f8bc3f0a-2107-4200-ae6f-acc5a9a23d7a", "8cf8b0ed-f1b8-4bc1-b203-89c114a7f5c7", "456e8e3c-30ec-4481-99a1-9b3d4711150c", "4b121196-3a0f-4b1f-a0b9-18a3357de80f", "fb6a15f9-0ee9-468b-b6d8-125b1f6c6d07"]
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_14(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=1218,
+ is_shop_specified=False,
+ available_shop_ids=["3bd876e6-291c-4bde-918f-48367cc50054", "4d06fe09-d8dc-4cd8-acbb-ffcda8f10669", "8a89df5c-a6ff-44c1-9484-271764bbc96f", "3ee0712e-6eac-4a0e-81a2-fa8c91862d25", "159a24d3-924f-417b-89e7-c6f395afaeff", "da236641-7246-41fb-8d03-f152fe5f7d3a", "81493dee-9d41-4617-b6d2-faf128556a1c", "eee33aca-a0a2-4983-b6ba-92b3eb1aef5d", "dbd27c9e-3e83-43a6-840f-e6d97d1b8786"],
+ num_recipients_cap=8554
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_15(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=7065,
+ is_shop_specified=True,
+ available_shop_ids=["2f765f9a-e502-41b6-bdd3-9b558cdbfb02", "9102ed55-f5dc-4286-8b06-84f864b008e6"],
+ storage_id="2492e9bb-ff83-4295-bec8-188d775087aa",
+ num_recipients_cap=2917
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_16(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=277,
+ is_shop_specified=False,
+ available_shop_ids=["8fb5a6da-7472-4fde-9553-1c8d7e04186a", "c3608ba7-ceef-426a-b4ba-b2c5f758ec60", "dbefb119-fca9-4482-a039-4f1d5e665fa5", "f7e2d75c-6030-4b28-b668-7c1b5057236a", "fc9c371d-5312-43cf-82a8-87cfa824875d", "ef88911d-9c5b-4684-983a-99c435a5c2d3", "913d999b-35cb-40e6-98e8-261f12e7ee12"],
+ min_amount=1500,
+ storage_id="64ba7e0f-b5a8-4ed2-a899-2a874924d4e6",
+ num_recipients_cap=1202
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_17(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=6652,
+ is_shop_specified=True,
+ available_shop_ids=["245cc19f-d07e-4bc0-88a7-a3317ed81eb8", "84e92175-0db3-499a-9c6c-a1d72af6c37f", "3c6ee5dc-ba06-4d1e-80d3-5308aa2df88a", "7a407a72-6636-4b62-b8c2-a8c0bbd54bf8", "a47930ab-e1a9-4568-b12c-79a415afc738", "c7254560-8da6-460a-8be8-aefa4f8f124c", "00b59d04-11ca-4613-8b7c-9a47a2b9648a"],
+ usage_limit=5907,
+ min_amount=4626,
+ storage_id="53348d22-896c-4983-b723-b281067718bf",
+ num_recipients_cap=1288
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_18(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=2032,
+ is_shop_specified=False,
+ available_shop_ids=["95a08fa0-053e-4e3b-ac67-e78f7b0e5c75", "e5c98039-6f60-4593-b969-3b29d5b5984c", "7218e02c-326b-4594-8c84-80c7c59ca1dc", "0ae949fd-5fe3-459a-a552-9ac8bc443330", "64f5b6b9-4ef0-49b3-8da8-bfc43ed4673f", "31151e02-6dea-4c7b-a7a4-22e6ccfe7321"],
+ code="UXXM",
+ usage_limit=4469,
+ min_amount=9257,
+ storage_id="482fb8c6-2d16-4cc0-8f58-9a5fdce165f6",
+ num_recipients_cap=642
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_19(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=1748,
+ is_shop_specified=True,
+ available_shop_ids=["428f08b8-e855-4010-b2f3-c878cf4e46b5", "01abd918-26a3-4aab-964d-497d7306cf5f", "95c1cd5e-38a3-49b8-b5a3-b61400a0dfa8", "e0c4f361-3c1c-409f-ab9d-5ee3944fb545", "3be6d049-ba25-4179-b851-9b7a17180d60", "c41d11b7-7d44-4891-bf0b-eb3b53bfbb85", "f652f834-a101-4709-b6a9-a996f9bfa29f", "337517bf-047d-4112-93a5-e3c7cc662094", "209fa416-9502-4f90-8a9f-a28398b0a066", "8a78dc45-1364-4d70-8bc4-d4916201dfac"],
+ is_public=True,
+ code="RVkFLT",
+ usage_limit=4483,
+ min_amount=1900,
+ storage_id="7f58953e-4ef8-4d70-b827-3cdb4e15e5d3",
+ num_recipients_cap=3902
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_20(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=5065,
+ is_shop_specified=False,
+ available_shop_ids=["775f7e63-f658-4a0c-a573-c42df3f93010", "abca8ce3-67f2-4bed-931d-8312a5499d7d", "0d1df6aa-2844-4e35-a20d-8e5e5d46b1ee", "3a7f84a3-eeeb-4cf0-b754-6f056fe33409", "b880dd11-0b21-40c8-a8c7-62bfd6b99fec", "e6e806f9-7e48-44b3-b415-5fbb38563aa5"],
+ is_hidden=False,
+ is_public=False,
+ code="HB4",
+ usage_limit=9975,
+ min_amount=3374,
+ storage_id="b9163fc8-bf46-47e2-bd43-6947410f5978",
+ num_recipients_cap=18
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_21(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=9118,
+ is_shop_specified=False,
+ available_shop_ids=["f72ab37a-f540-49f1-b832-e0f727da9e13", "2882adde-3d28-4bad-8774-31e1cf098bc0", "202b3fcb-3197-4970-b531-f63f50c856f1", "4a2fb4e4-1308-42ed-8d69-2acb81ed42db", "076c0bee-197e-441e-87dd-91b2f51aeb32", "2146c00b-6046-408f-b3e3-570a1f585d28", "758c0fad-ab13-47f4-a949-c2731c76f80d", "b1d39c27-7df8-4bad-bb90-ce546f9f36d4", "75fed3d6-7d9e-405d-8b32-f4b4c2d01557"],
+ is_disabled=False,
+ is_hidden=False,
+ is_public=False,
+ code="MjgCaf4v1F",
+ usage_limit=1797,
+ min_amount=4829,
+ storage_id="662984b7-f38d-4797-8f29-ce084fa99f21",
+ num_recipients_cap=9979
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_22(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=6279,
+ is_shop_specified=True,
+ available_shop_ids=["caffd5fd-0fac-4e32-b415-9428601126d4", "f6cbc03f-6af6-4692-96a5-b8d9915df679", "12a3d008-d17a-4f9d-90c7-dc7e97f93309"],
+ display_ends_at="2024-06-27T13:52:35.000000Z",
+ is_disabled=False,
+ is_hidden=False,
+ is_public=True,
+ code="YLIX",
+ usage_limit=1926,
+ min_amount=4600,
+ storage_id="7e5d2524-e78d-4ef1-af60-ceeef966c26b",
+ num_recipients_cap=6942
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_23(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=71,
+ is_shop_specified=False,
+ available_shop_ids=["17318e58-1aec-44ca-9870-c17b7706774a", "a95d8fd2-8851-48f7-abdb-ee70488e4a39"],
+ display_starts_at="2025-02-05T21:12:10.000000Z",
+ display_ends_at="2025-09-23T16:33:50.000000Z",
+ is_disabled=True,
+ is_hidden=True,
+ is_public=False,
+ code="cv0p2u",
+ usage_limit=889,
+ min_amount=5735,
+ storage_id="d802a5ed-b5c8-4ea2-904b-bdf122bc9547",
+ num_recipients_cap=3856
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_24(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=6817,
+ is_shop_specified=False,
+ available_shop_ids=["d0baede5-89cd-4ef4-a1c6-579a01d4b674", "dd4b9597-0e6f-4bb3-921d-f0be80bbb787"],
+ discount_upper_limit=6529,
+ display_starts_at="2020-08-25T02:45:20.000000Z",
+ display_ends_at="2023-12-02T16:17:18.000000Z",
+ is_disabled=True,
+ is_hidden=True,
+ is_public=True,
+ code="MyD",
+ usage_limit=2080,
+ min_amount=7579,
+ storage_id="ba85673b-dbb0-4c91-8aa9-a0ab00ce5929",
+ num_recipients_cap=8340
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_25(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_amount=4204,
+ is_shop_specified=True,
+ available_shop_ids=["3bc820d7-b47e-4d05-8645-e52327f9df25", "d58e3e94-bfb8-4c17-b55a-6a6abd902427", "4abb60e2-5755-49aa-bde1-d2ae26ab5320", "f2011f1e-1a54-49e0-85ac-b2ba6984e53a", "cbe6028b-884e-4f03-8e68-b9eda39236f8"],
+ description="ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwmdx9H0OP7RXsy9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTKy9baAXpUrNxQgJv2d1RjRDvxxlQFhM2eopmIlmvqzqnGOYbg6rdqjemTbEPE7it6",
+ discount_upper_limit=638,
+ display_starts_at="2022-04-08T22:22:02.000000Z",
+ display_ends_at="2023-10-28T07:41:12.000000Z",
+ is_disabled=True,
+ is_hidden=False,
+ is_public=False,
+ code="8VlzyCNb",
+ usage_limit=9594,
+ min_amount=2821,
+ storage_id="8d0e40b8-760f-4e7a-be63-d4c1e7d9c89f",
+ num_recipients_cap=5581
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_26(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=9046.0
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_27(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=5947.0,
+ num_recipients_cap=5012
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_28(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=7291.0,
+ storage_id="ace23c30-29f1-47e6-a12b-4168c2cac219",
+ num_recipients_cap=2630
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_29(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=369.0,
+ min_amount=3362,
+ storage_id="f3fbab53-3b16-499e-979f-7c2d06061d70",
+ num_recipients_cap=45
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_30(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=2914.0,
+ usage_limit=5133,
+ min_amount=2013,
+ storage_id="d21c1ed7-c693-4611-bfeb-98381a9b168b",
+ num_recipients_cap=3261
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_31(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=2689.0,
+ code="IjmXf3",
+ usage_limit=9443,
+ min_amount=4338,
+ storage_id="6b94fe2c-42ef-416b-b556-404265758c8c",
+ num_recipients_cap=6029
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_32(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=7482.0,
+ is_public=False,
+ code="QlsA8T5n",
+ usage_limit=8544,
+ min_amount=1041,
+ storage_id="7fa93c2d-ecd5-4213-8df5-6ac44e682fa1",
+ num_recipients_cap=8308
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_33(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=7044.0,
+ is_hidden=True,
+ is_public=True,
+ code="PmGiUo",
+ usage_limit=3865,
+ min_amount=5926,
+ storage_id="5110a70f-bd3a-4450-8bf4-0b652a6ff37a",
+ num_recipients_cap=281
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_34(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=1209.0,
+ is_disabled=False,
+ is_hidden=False,
+ is_public=True,
+ code="x3GETJuun",
+ usage_limit=7967,
+ min_amount=6928,
+ storage_id="9855d24d-b9ce-4a9c-889f-5992ffb28e28",
+ num_recipients_cap=2849
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_35(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=823.0,
+ display_ends_at="2025-08-18T12:28:05.000000Z",
+ is_disabled=True,
+ is_hidden=False,
+ is_public=False,
+ code="gDI0zSm63c",
+ usage_limit=7457,
+ min_amount=4925,
+ storage_id="f65ecabd-7fb4-4c19-b9fa-41e1f6fc79b1",
+ num_recipients_cap=3741
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_36(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=8254.0,
+ display_starts_at="2020-06-02T12:27:19.000000Z",
+ display_ends_at="2025-08-11T17:07:22.000000Z",
+ is_disabled=False,
+ is_hidden=False,
+ is_public=False,
+ code="pDZJ",
+ usage_limit=6489,
+ min_amount=1227,
+ storage_id="8fa6fea1-0fe0-486f-be61-e49580dec78d",
+ num_recipients_cap=4571
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_37(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=7335.0,
+ discount_upper_limit=4721,
+ display_starts_at="2022-07-17T22:48:38.000000Z",
+ display_ends_at="2025-11-18T07:59:13.000000Z",
+ is_disabled=True,
+ is_hidden=True,
+ is_public=False,
+ code="M",
+ usage_limit=7983,
+ min_amount=1570,
+ storage_id="65b788ea-d6b7-4165-8996-b4bb813fe192",
+ num_recipients_cap=5866
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_38(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=5671.0,
+ description="gfPr68fP2A8RCqVjIMZulltZtjgMfuDxn3QgsidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0KtoQaeaW3v7wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltqUbvpNyoJI0vqJ8n0",
+ discount_upper_limit=9180,
+ display_starts_at="2020-09-12T06:49:19.000000Z",
+ display_ends_at="2020-11-13T03:49:41.000000Z",
+ is_disabled=True,
+ is_hidden=False,
+ is_public=False,
+ code="Ys",
+ usage_limit=4240,
+ min_amount=2364,
+ storage_id="deb81485-6bcb-4261-92cd-ccc0d431c816",
+ num_recipients_cap=9460
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_39(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=1375.0,
+ is_shop_specified=True,
+ available_shop_ids=["94f3e9ca-09d5-4561-a359-5904b768520a", "e06d6fb2-6128-427d-bbf2-0c915b030899"]
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_40(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=4572.0,
+ is_shop_specified=False,
+ available_shop_ids=["a601ba51-e0cf-43b4-a7a9-22a0f300327d", "29af131d-3892-4c98-adc7-eec82c0d35c3", "cdca3e8f-72dd-4766-ac62-24d50fde4a56", "b7860db5-5326-4499-826b-272e89466c13", "60e12422-dde3-4420-aff1-1ea11f00c814", "04c47a0c-8e59-48e9-a253-b28a86798a4e", "8bc0d96c-ec87-470a-9f21-5a4491f6ac59", "f569aa43-937b-4cb6-8b4d-a6c501a11c57", "e8a1b8ab-2407-4165-9966-e07aa0d69ea6", "edac4d5f-672b-4be9-a906-81c8281ba306"],
+ num_recipients_cap=7604
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_41(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=3725.0,
+ is_shop_specified=False,
+ available_shop_ids=["0d0a4fff-0f6b-4fce-b06a-bb77c70ed7c3", "880b5923-799f-49d0-996a-4fae23b42ac1", "8b00516b-2ffa-4681-a079-ba5935c5a2b2", "6aa0d81b-8b7b-416b-be6d-7d55f249bb65", "1344a88a-6932-494a-8ab5-e53ce5fc06b3", "7cb28ed5-8ab3-44ce-b60a-1ebc987016c6", "c10e4730-9223-422f-a5b2-5d36d111b270", "55544862-5ecf-4312-b3c8-e374a0a24af4", "d86192ac-bc6c-4c47-9534-98a3c3c80165", "ca635514-b2f9-4c22-a97d-40e15a286bf4"],
+ storage_id="ca70818b-c44d-4249-bfba-633791d922de",
+ num_recipients_cap=3007
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_42(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=8485.0,
+ is_shop_specified=False,
+ available_shop_ids=["15db1399-77d6-4afe-86b3-8d90749d9b64", "d9671301-d217-47fd-b4f5-c717601b74e7", "d45c2b4a-4953-487a-bfb1-fb174bcd73ab", "4f99a151-deb3-47ae-9717-187c61ffc78e", "58a4743d-e476-4f5e-9f1e-148effeb658a"],
+ min_amount=9024,
+ storage_id="6a7c9c15-dd90-486f-8b18-1c76bdb4b758",
+ num_recipients_cap=7759
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_43(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=5762.0,
+ is_shop_specified=False,
+ available_shop_ids=["5a4c64e7-9b87-4746-befc-94f3faff757c", "6838c396-6ed7-4d3e-93b0-7bbf55da83b5", "e9c8aaaa-7c07-4817-97ab-1680ff3064b1", "2c583b26-ab2c-46aa-962a-89390907ef97"],
+ usage_limit=2686,
+ min_amount=4705,
+ storage_id="713bc4a8-e73f-4358-b513-5e8bb8f787c7",
+ num_recipients_cap=5131
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_44(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=1622.0,
+ is_shop_specified=True,
+ available_shop_ids=["43cb7d3d-d552-4b3b-913b-206c6a9727d5", "915bf5aa-5f07-41d6-a786-a8fc5c9f1923"],
+ code="9CZ2ZsB",
+ usage_limit=1256,
+ min_amount=1115,
+ storage_id="47e462ed-4560-4b2f-8ac2-330b5132dc84",
+ num_recipients_cap=454
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_45(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=1742.0,
+ is_shop_specified=True,
+ available_shop_ids=["60978628-184a-4cf0-b259-55cc3a4a8e6e", "708ef750-893b-4681-b5e5-a169c5c100a0", "c090c674-c349-4c18-bd2a-8961156a6742"],
+ is_public=False,
+ code="8AWa",
+ usage_limit=2246,
+ min_amount=8674,
+ storage_id="332d2db8-f816-424a-a85d-87cb69aad343",
+ num_recipients_cap=5859
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_46(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=4501.0,
+ is_shop_specified=True,
+ available_shop_ids=["8a5be9bb-748b-45fc-867e-19cc432311d5", "0149e31a-7fdd-4d4a-93c7-f6302b102666"],
+ is_hidden=True,
+ is_public=False,
+ code="dQ9bvT",
+ usage_limit=9939,
+ min_amount=1324,
+ storage_id="52c0d8cd-ddfb-4611-ac20-9a1c7ce46ec2",
+ num_recipients_cap=3149
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_47(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=1361.0,
+ is_shop_specified=False,
+ available_shop_ids=["ab97e497-5779-4da3-8097-010059221f7c", "3d20d7e8-90b8-432b-b252-9b38d8fd0b2b", "3d5ba579-213e-42ff-a6f6-4cb5c4ae723f", "fb87a66f-84da-4d31-8138-22cc6fb7c628", "b9f2770a-f3dd-4d75-82e3-d1bfb2ea979f", "fef45a10-fb09-4510-9354-39038b8523fe", "923971db-f0da-4f2c-b72a-ab07ad57904a", "c35c5d79-ef2d-45f4-b8af-14af7d592dbe"],
+ is_disabled=False,
+ is_hidden=False,
+ is_public=False,
+ code="EpR",
+ usage_limit=2561,
+ min_amount=5014,
+ storage_id="a65d2018-2d66-4cd8-84d9-18085418b978",
+ num_recipients_cap=5959
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_48(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=2756.0,
+ is_shop_specified=False,
+ available_shop_ids=["c1043990-297e-4a65-a7b8-fd3cd5666dce", "750a4c49-ebd4-43cf-b52a-986edc02062c"],
+ display_ends_at="2023-12-11T00:16:23.000000Z",
+ is_disabled=True,
+ is_hidden=True,
+ is_public=True,
+ code="eGMfsCgw",
+ usage_limit=2506,
+ min_amount=243,
+ storage_id="bfee603e-119a-4600-b6f1-b460924b695c",
+ num_recipients_cap=5283
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_49(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=1584.0,
+ is_shop_specified=True,
+ available_shop_ids=["c1f3a1f6-6d11-4011-8df5-f371b738b71b", "49515f3b-82d4-44b6-b9a5-f64f197fede4", "1fda0b9b-ea93-42bb-b00e-4fad70fa2e35"],
+ display_starts_at="2020-05-24T12:05:18.000000Z",
+ display_ends_at="2021-09-23T08:07:02.000000Z",
+ is_disabled=False,
+ is_hidden=True,
+ is_public=True,
+ code="GOh83wDY",
+ usage_limit=1173,
+ min_amount=3929,
+ storage_id="c8b2e354-15b1-4244-acec-75bc60215009",
+ num_recipients_cap=542
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_50(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=6958.0,
+ is_shop_specified=True,
+ available_shop_ids=["7dc03135-3e6a-49f1-8054-e968f46d9f6c", "9b685221-9330-4e76-a0bd-db30894b794c", "83b41cec-90c1-41ac-b731-17f347fba678", "116d5ff3-6fbe-4126-b970-090b35c6674b", "e30e9292-2cc0-445f-97d0-21d47f412dc0", "b192043c-b3d5-49c2-8456-a53df585e95d"],
+ discount_upper_limit=9320,
+ display_starts_at="2024-07-19T23:58:41.000000Z",
+ display_ends_at="2024-09-10T08:28:18.000000Z",
+ is_disabled=False,
+ is_hidden=False,
+ is_public=False,
+ code="rS",
+ usage_limit=5211,
+ min_amount=7787,
+ storage_id="fcd052bb-52e2-4962-a691-7aa73858b892",
+ num_recipients_cap=9464
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_create_coupon_51(self):
+ response = client.send(pp.CreateCoupon(
+ "bec1fcf0-019a-4039-aa7a-b109a9efe825",
+ "AmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokG",
+ "2021-08-05T20:00:25.000000Z",
+ "2025-07-23T10:33:48.000000Z",
+ "3128856b-5aa7-4252-a9a1-25c12d4ebc1e",
+ discount_percentage=5802.0,
+ is_shop_specified=False,
+ available_shop_ids=["69c9cc15-0675-4ee2-aff9-ac4ccf79045c", "33b441d0-36fe-4d09-b2f2-d384680874d9", "2fae0532-67e2-4174-b52b-2f78ff39f50e", "4f49e85f-9d86-40c8-b8bd-2c39f5dbaed9", "97d7136f-9b70-478f-bb68-4976547b4193", "6aae2c0f-bb53-434c-a3fe-a3f13b2f1081", "60f6de22-87ac-4145-a77a-ccd237adde05", "27acd474-b7fb-4cb6-a8d8-f888e53f329f", "e20af2d4-edd2-4e3e-b3fb-8c27488ee66f"],
+ description="pLSuhWGSp4IuNXEvAYv341undTljbWPhfpiwPMjupC65xVDnAJbsKD6b895iftqbY67Ut2zsAKH6lKT6gJXbaEKAddoUM0CRdaSDeoQ9lXXELG9oQdgpEse81VvpXr3HeuSevupI3Lg6cydG4CQY3zROLCcC3cDzGwCmJXHiF5C2aKJupg0Hph0EUCWBeCDLYnE6H",
+ discount_upper_limit=5275,
+ display_starts_at="2022-05-12T21:39:18.000000Z",
+ display_ends_at="2025-04-15T01:52:22.000000Z",
+ is_disabled=False,
+ is_hidden=True,
+ is_public=True,
+ code="G",
+ usage_limit=30,
+ min_amount=5433,
+ storage_id="efe96e69-2268-42f2-881c-18d28c1021ea",
+ num_recipients_cap=5695
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_get_coupon_0(self):
+ response = client.send(pp.GetCoupon(
+ "8679d6ea-ded7-40cd-b92b-62c5d201af04"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_0(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=6165
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_1(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=5823,
+ name="xBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6F3HhJclpvEl0kBLWjkCR0Mj5I3Hq"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_2(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=3119,
+ description="506kx1IdZKDkCNCl989Inr9h5bKrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtOnbZ68JstsOcxw5PoatcF0TU5W5omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc2ISnCuuu6HEZICTUsFd55cysKpzPw06buTFvYo4vEubGw6jVHah2jNyPqoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPTZ",
+ name="7efHV"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_3(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=3971,
+ discount_upper_limit=4628,
+ description="p4Du6bqVzq0H9hN",
+ name="IpWOGRlL4QDCIWrLzYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCFjnlF5wS89FXtStGks"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_4(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=5578,
+ starts_at="2022-07-15T22:44:35.000000Z",
+ discount_upper_limit=3939,
+ description="3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCisIe5qHDsMdG7wbTKEpXzySqqc4sXPad6xuwUqi64YRTY",
+ name="sOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZFtSWx4aRE"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_5(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=2189,
+ ends_at="2025-11-23T01:16:23.000000Z",
+ starts_at="2025-06-15T06:55:15.000000Z",
+ discount_upper_limit=5810,
+ description="zs2ylIq5ZtrGXVCQUhbREfojZVoiIjURbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkE",
+ name="Bp2LxsthHBe9EWUoT5QLe9Yg2CBY3rucfBues6uHoyn0kY9tu08AkjC0WPKbQvYow9FaOH3zD7SQmRuyNCMpGLgUAKK4AYXSt"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_6(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=3366,
+ display_starts_at="2021-07-14T06:22:18.000000Z",
+ ends_at="2021-01-13T22:30:53.000000Z",
+ starts_at="2021-12-06T08:50:28.000000Z",
+ discount_upper_limit=3325,
+ description="GYGCT6FSvry2ciGzpWdg5yn158",
+ name="N5eaT1Y"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_7(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=6869,
+ display_ends_at="2024-07-29T20:16:16.000000Z",
+ display_starts_at="2025-03-12T01:47:26.000000Z",
+ ends_at="2020-02-13T00:06:12.000000Z",
+ starts_at="2020-04-23T21:14:56.000000Z",
+ discount_upper_limit=7237,
+ description="MBFK5RCvbOFISTKPBIbnB4IlVfzK",
+ name="eAZtwqv4AGYkQ5YWzuO0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_8(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=1728,
+ is_disabled=True,
+ display_ends_at="2024-09-21T03:26:35.000000Z",
+ display_starts_at="2020-06-06T16:28:46.000000Z",
+ ends_at="2022-12-09T21:45:17.000000Z",
+ starts_at="2025-12-22T23:37:53.000000Z",
+ discount_upper_limit=6138,
+ description="XEIrL5tEVsPccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsL",
+ name="vK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8qJafcwBDpLTRN1a0lar5cvmWk6H"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_9(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=1448,
+ is_hidden=False,
+ is_disabled=True,
+ display_ends_at="2025-08-28T16:47:16.000000Z",
+ display_starts_at="2025-05-27T23:54:16.000000Z",
+ ends_at="2020-04-01T04:44:53.000000Z",
+ starts_at="2023-09-09T05:09:30.000000Z",
+ discount_upper_limit=6500,
+ description="56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5PsH9YtmnNiOZyV9AO3DnB1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7Bosaw",
+ name="L51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8rNkq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxa"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_10(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=7750,
+ is_public=True,
+ is_hidden=True,
+ is_disabled=True,
+ display_ends_at="2025-06-18T05:45:20.000000Z",
+ display_starts_at="2021-11-25T08:00:46.000000Z",
+ ends_at="2022-11-07T18:17:53.000000Z",
+ starts_at="2022-08-24T18:18:31.000000Z",
+ discount_upper_limit=4534,
+ description="9v",
+ name="aYb020lVhpK1u"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_11(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=874,
+ code="AV4SIGQkI",
+ is_public=True,
+ is_hidden=False,
+ is_disabled=False,
+ display_ends_at="2021-10-27T05:23:50.000000Z",
+ display_starts_at="2020-10-03T11:02:07.000000Z",
+ ends_at="2024-01-06T10:48:32.000000Z",
+ starts_at="2024-08-15T12:04:41.000000Z",
+ discount_upper_limit=2378,
+ description="ZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKvyAHQ0Cmh0GR2iNpQgbrTS2HEffP70DHCUohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBpAMRk3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9FitjutUJJsIkCXGENUTk",
+ name="zcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0j"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_12(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=5339,
+ usage_limit=3668,
+ code="CKr7da3",
+ is_public=True,
+ is_hidden=False,
+ is_disabled=False,
+ display_ends_at="2022-02-12T00:52:45.000000Z",
+ display_starts_at="2023-05-13T08:40:49.000000Z",
+ ends_at="2024-08-02T17:07:25.000000Z",
+ starts_at="2024-05-06T00:04:46.000000Z",
+ discount_upper_limit=6290,
+ description="DSrYQmTFD8MK4LhwIRladKEnUCUBMTsHjSLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl1nws6Ne3S7kdpHli9FCf9",
+ name="vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_13(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=1850,
+ min_amount=3093,
+ usage_limit=5884,
+ code="U1tkn",
+ is_public=True,
+ is_hidden=True,
+ is_disabled=True,
+ display_ends_at="2022-01-04T06:53:58.000000Z",
+ display_starts_at="2021-01-14T08:42:38.000000Z",
+ ends_at="2023-12-03T22:58:38.000000Z",
+ starts_at="2023-01-11T11:08:50.000000Z",
+ discount_upper_limit=5022,
+ description="puz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dK",
+ name="R3uo3pyHQKCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z9k4WtlP60t1pGDCB7WpLioRLUylhwp3jBXylmnzTDYQPTQEhEDpiIl"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_14(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=6200,
+ is_shop_specified=True,
+ min_amount=987,
+ usage_limit=6931,
+ code="uXhFr",
+ is_public=False,
+ is_hidden=True,
+ is_disabled=False,
+ display_ends_at="2025-02-28T02:29:08.000000Z",
+ display_starts_at="2020-04-30T13:19:54.000000Z",
+ ends_at="2022-02-14T20:53:02.000000Z",
+ starts_at="2020-03-27T12:59:24.000000Z",
+ discount_upper_limit=5857,
+ description="CFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3a7y1jkUDzYlQVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWug",
+ name="VW8sRaEhx8aJkSJHuUfzU3cxqLSG8S4aP0CNMNfb6VowWU"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_15(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=6077,
+ available_shop_ids=["356df466-b6be-4c82-babb-599446113e5c", "1fb0a2ef-f860-4d76-bad0-4db7baf83fdf", "890d0d56-c57d-444c-b565-109b004c382b", "8b293add-6b15-4062-9c0d-092e07f5f663", "4ed66791-1b69-4bea-a32a-c05c1a565598", "9f6f3fcc-1d74-4bfd-96db-17e85c83276d", "ea380cec-f84d-49b6-ab05-120ebe317d82"],
+ is_shop_specified=False,
+ min_amount=9845,
+ usage_limit=7607,
+ code="CNg4a",
+ is_public=False,
+ is_hidden=True,
+ is_disabled=False,
+ display_ends_at="2026-01-20T06:36:59.000000Z",
+ display_starts_at="2020-09-10T20:51:03.000000Z",
+ ends_at="2023-11-20T17:04:41.000000Z",
+ starts_at="2023-09-16T02:03:45.000000Z",
+ discount_upper_limit=2091,
+ description="CFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomWlXA8y2vwAsTNYaeLyV7CWdrmk7DR",
+ name="yx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_16(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=9397,
+ storage_id="44fec4ab-4040-4ecb-b807-ca723ed9f356",
+ available_shop_ids=["2c182f17-473d-429d-aaf8-fde8f2a247fa", "0304e98f-aa37-4d08-9e9f-6344ef71bf07", "187bde1a-f57a-4592-9f42-42793d907114", "65046d7b-c63c-46ad-b74b-c1c9114d787f", "953e9de3-1529-4e13-a9cd-6c88e6b2f616"],
+ is_shop_specified=True,
+ min_amount=2478,
+ usage_limit=8172,
+ code="S",
+ is_public=False,
+ is_hidden=True,
+ is_disabled=True,
+ display_ends_at="2021-08-30T22:39:28.000000Z",
+ display_starts_at="2021-09-17T05:01:20.000000Z",
+ ends_at="2021-04-14T07:28:19.000000Z",
+ starts_at="2021-07-14T19:20:48.000000Z",
+ discount_upper_limit=9717,
+ description="BHj0xIlmI7crwjgiJmBq8x2BMoiejWmPY8qwKCFWRUhTWJtrSHM5KvGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wpFlmsWusC8RGaBKUJdHLf9kwaxRbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1B",
+ name="6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9VDX3NEhsO0rjGagOIQ6x9sSfu0zX8zdCniT7rbp4RdF8jzLLX07kGwmR"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_17(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=9480,
+ num_recipients_cap=5595,
+ storage_id="ad931e52-0738-40b9-8451-c23dccbc0192",
+ available_shop_ids=["9ed75999-d3ca-4185-8ec4-d37ea9b02e26", "8b51451f-7379-4aba-a59d-6e905d29e3d1", "4ef66dc3-a66e-4ff0-a828-142c3a3c58a1", "efb11c86-2603-4d96-b2e8-2019c81b3b69", "96cddeb7-c671-4f68-8728-1b60f7354533", "ebe69116-138e-44cb-90fc-fc34206fe997", "a05ca6a3-cd54-48b3-b79f-6057f4c82769", "37bd1739-63e7-4d39-88ee-62031ce5a881"],
+ is_shop_specified=False,
+ min_amount=6549,
+ usage_limit=8538,
+ code="h",
+ is_public=True,
+ is_hidden=False,
+ is_disabled=False,
+ display_ends_at="2024-07-05T00:14:52.000000Z",
+ display_starts_at="2022-08-01T01:29:00.000000Z",
+ ends_at="2025-01-15T16:19:20.000000Z",
+ starts_at="2021-08-22T11:12:41.000000Z",
+ discount_upper_limit=5907,
+ description="q9TM1kLnMOaPoayQ1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIECbUavopCer6amUqWii2uDVrmTki6pqO0f8cnptMkBRjmpnnbeCg4xum",
+ name="oxK0oT4F795unttA065Yr03Qzj1SYSblk7QSMdkkKPrtzfsCSKaR3OFn1WKJz5hhBZBCZgSERTDaoK9I"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_18(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=6367,
+ discount_percentage=3338.0
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_19(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=1393,
+ discount_percentage=423.0,
+ name="ITw9RXh5"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_20(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=3727,
+ discount_percentage=9129.0,
+ description="aBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq6VpVqu1DpFd0JaBsPBEjjxsN82R5bV74h6MclFLskpVJhF8OvhWGp3gTZC60RTw4fZ8z",
+ name="WBqSC3vDIMcnooU2vsEkhFzbMP7H4x70jy8CyXSjsNQfhm4JdiSR8LU0sAxVpKo9"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_21(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=5758,
+ discount_percentage=626.0,
+ discount_upper_limit=7352,
+ description="nCR4b3VVcnR7ySaTJSLXaRbjFaOCY9HY0faJMcRsZ3tfn14pqdpY2gOVzxC2AMFcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVF",
+ name="aAmwoPiUeFs2qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_22(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=6163,
+ discount_percentage=4823.0,
+ starts_at="2024-01-28T20:21:35.000000Z",
+ discount_upper_limit=5108,
+ description="KGTOoDsggK2zVvIrNmjPyMt7JZTknlcSLOAfgHki7iEU",
+ name="EZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOlUDOeBSRiyqeameMaY0bgN8gTUkelv3hkGmk4iWQZAVafOla"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_23(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=8802,
+ discount_percentage=7401.0,
+ ends_at="2024-06-11T22:29:55.000000Z",
+ starts_at="2022-07-14T05:56:43.000000Z",
+ discount_upper_limit=6725,
+ description="loh2DXft8ZR3ZIT5H8aSOl3MDXnG9yHqEAThwDuq1zewsMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDIn3iuFQrrgeXzyNXNrNkeWa9hWsLSo6RhlRrNdmMatyDW12s5SKsd06fYHa9pHdUJ2NkpD9X",
+ name="Rln1g4q1Amzena"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_24(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=2465,
+ discount_percentage=955.0,
+ display_starts_at="2022-07-17T20:57:31.000000Z",
+ ends_at="2021-12-16T17:20:25.000000Z",
+ starts_at="2025-07-10T23:41:15.000000Z",
+ discount_upper_limit=2419,
+ description="X5BEVEkSwN7Jl7UfMqNeIWxDQ5mYkDBp76iPlz0WyF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD",
+ name="23BKTCZPKhRk3w9r2MS5qnBpeG29hBWbNKIGuoy"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_25(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=6743,
+ discount_percentage=3140.0,
+ display_ends_at="2025-12-04T11:03:36.000000Z",
+ display_starts_at="2020-09-06T18:15:00.000000Z",
+ ends_at="2023-07-13T22:46:11.000000Z",
+ starts_at="2024-10-22T02:02:42.000000Z",
+ discount_upper_limit=7240,
+ description="U5bcdtREmG3PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCxlziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTz",
+ name="jO10bQwyTU6ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9q8fRCMt2pzYekawpUouvYHKlj0GUL0Fcnz7fEngR6"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_26(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=3910,
+ discount_percentage=6195.0,
+ is_disabled=False,
+ display_ends_at="2022-09-11T11:16:59.000000Z",
+ display_starts_at="2025-09-29T07:20:20.000000Z",
+ ends_at="2023-12-01T11:44:33.000000Z",
+ starts_at="2024-01-15T10:23:18.000000Z",
+ discount_upper_limit=6125,
+ description="wYrg",
+ name="gT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Z"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_27(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=4401,
+ discount_percentage=6958.0,
+ is_hidden=True,
+ is_disabled=True,
+ display_ends_at="2024-08-29T19:52:43.000000Z",
+ display_starts_at="2020-10-29T08:43:56.000000Z",
+ ends_at="2024-09-06T12:53:47.000000Z",
+ starts_at="2022-04-05T18:32:43.000000Z",
+ discount_upper_limit=1037,
+ description="Ug3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7mxn7kYGzShazSiZH6DDfNqfsVRi3zxzsVzVJ",
+ name="LxpF9uCjOUSNMH9fWh27PiOpr"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_28(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=8136,
+ discount_percentage=6720.0,
+ is_public=False,
+ is_hidden=False,
+ is_disabled=False,
+ display_ends_at="2021-03-20T17:33:12.000000Z",
+ display_starts_at="2023-07-26T06:27:00.000000Z",
+ ends_at="2023-05-17T11:08:47.000000Z",
+ starts_at="2025-01-16T08:28:44.000000Z",
+ discount_upper_limit=7912,
+ description="b0Gko8iE0P3Cu0AOaTlKzyVFYYoK00acoGlEqYYGWZUMgU5LJ8ned",
+ name="bEkL6VCbZlYCZFu0YjXrvick1kbCzvMElblaTUs"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_29(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=1515,
+ discount_percentage=8574.0,
+ code="WTi4s",
+ is_public=True,
+ is_hidden=True,
+ is_disabled=False,
+ display_ends_at="2025-02-06T20:21:56.000000Z",
+ display_starts_at="2025-12-29T11:13:45.000000Z",
+ ends_at="2025-02-20T09:44:46.000000Z",
+ starts_at="2020-09-23T13:15:22.000000Z",
+ discount_upper_limit=9364,
+ description="XYZ6Fkp0v2rObj5KP7CaX5R9O7hnOQMfDj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq2k3ETquM3SQujWFDE153B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1zaeUGprRtPpZgZzOhv",
+ name="mvIjVKe7aM7QiN4L"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_30(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=5776,
+ discount_percentage=7690.0,
+ usage_limit=4651,
+ code="TtB8",
+ is_public=True,
+ is_hidden=True,
+ is_disabled=True,
+ display_ends_at="2025-10-27T12:24:41.000000Z",
+ display_starts_at="2020-08-09T17:30:29.000000Z",
+ ends_at="2023-06-22T01:18:06.000000Z",
+ starts_at="2022-02-07T10:31:34.000000Z",
+ discount_upper_limit=3135,
+ description="9clYyKl8cUsYw8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSBniTvgiFcfFWfXoobW27D2zSsjxSJQCC2TKE3m70u0i2E7e3WCog3HknLhb4mGHjaX24jJAlJFQ82MhyQQoipgFNSux0jeobdQD1VXjUggH7qMtHhSfZ",
+ name="dXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcs"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_31(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=9704,
+ discount_percentage=2908.0,
+ min_amount=6894,
+ usage_limit=4846,
+ code="lOPQ",
+ is_public=True,
+ is_hidden=False,
+ is_disabled=False,
+ display_ends_at="2024-02-03T15:35:39.000000Z",
+ display_starts_at="2024-04-27T00:39:07.000000Z",
+ ends_at="2020-09-24T07:39:00.000000Z",
+ starts_at="2023-03-24T22:26:50.000000Z",
+ discount_upper_limit=8504,
+ description="0GqQVfPuvUPiEFV6mDyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1Cipp2CPMRifbrHbdPk0z0U5np6zSSSsJChBCfGVrTTzFE",
+ name="A3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w3aEMSDM7H6DKpMVCMs6A"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_32(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=2384,
+ discount_percentage=9515.0,
+ is_shop_specified=True,
+ min_amount=334,
+ usage_limit=2868,
+ code="VGIihJYcZH",
+ is_public=False,
+ is_hidden=True,
+ is_disabled=False,
+ display_ends_at="2021-09-13T08:55:13.000000Z",
+ display_starts_at="2024-09-22T10:05:45.000000Z",
+ ends_at="2020-03-02T13:11:46.000000Z",
+ starts_at="2025-10-21T12:38:36.000000Z",
+ discount_upper_limit=3403,
+ description="rb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClPPAh3ydu7juMaO7kqGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hs",
+ name="vYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWk"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_33(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=3224,
+ discount_percentage=7527.0,
+ available_shop_ids=["b904e961-2f87-4e53-92f8-b9e9c5b65a6b", "59511102-bc17-4161-aa44-4194a6dc3fe8", "9a87666b-99a4-44f9-b1e5-0039562ea3cd", "32c50455-34cd-497d-b85a-70d9ba9c8339", "529526e5-582a-458d-85a1-8e0f82a47e42", "5418e944-4a06-445e-94bd-eda1d4b48a5f"],
+ is_shop_specified=True,
+ min_amount=8158,
+ usage_limit=5533,
+ code="I18oRpg",
+ is_public=False,
+ is_hidden=True,
+ is_disabled=False,
+ display_ends_at="2020-07-12T03:31:37.000000Z",
+ display_starts_at="2021-01-26T06:13:40.000000Z",
+ ends_at="2020-10-05T17:19:27.000000Z",
+ starts_at="2025-02-18T19:46:55.000000Z",
+ discount_upper_limit=3433,
+ description="EO",
+ name="fsuO3LMtzPm5pmHiztzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2Z23Mwd98ip"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_34(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=3466,
+ discount_percentage=8891.0,
+ storage_id="4f9ae496-d9fe-45fe-a481-3d549f75e9d5",
+ available_shop_ids=["5c325251-94dd-4bad-83d8-4d5fee45c5d0"],
+ is_shop_specified=False,
+ min_amount=8705,
+ usage_limit=8460,
+ code="LDZ6t",
+ is_public=False,
+ is_hidden=True,
+ is_disabled=False,
+ display_ends_at="2022-06-30T08:35:26.000000Z",
+ display_starts_at="2020-06-01T20:33:29.000000Z",
+ ends_at="2024-08-05T11:15:31.000000Z",
+ starts_at="2025-04-23T10:00:19.000000Z",
+ discount_upper_limit=2932,
+ description="biaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcI",
+ name="C0MaOVTzOYUS4YiFzadS1dG4VhCAXdvLcusNkP92lEHAtBr5uMSg7mI2h9L5UgNjF9pGXPoR6V6EH9o"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_35(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_amount=8767,
+ discount_percentage=946.0,
+ num_recipients_cap=9375,
+ storage_id="a3815f45-abbd-4e38-a01d-522151dd266d",
+ available_shop_ids=["de30b7e7-c137-4310-98b4-e8f49109694a", "b3989364-96a1-4079-8a10-153562f6ffcc", "d19a71ec-b6e1-4c62-9c32-e8db6f7e46fc", "a21eb25e-5439-4ae7-a6d5-312bba9e22a4", "ad9b632a-7a51-4836-a854-5895d31903fb", "497e4ad1-e5cc-42b3-9605-501e0f646b30", "51e0c287-d3b6-42c7-a883-064919bea4d4", "35f86c3a-08a2-4fcd-8c08-ca2ae4afecab"],
+ is_shop_specified=False,
+ min_amount=8904,
+ usage_limit=8924,
+ code="fb29",
+ is_public=True,
+ is_hidden=False,
+ is_disabled=False,
+ display_ends_at="2025-09-15T13:50:21.000000Z",
+ display_starts_at="2022-07-23T05:03:18.000000Z",
+ ends_at="2021-11-29T20:41:07.000000Z",
+ starts_at="2020-12-23T07:10:15.000000Z",
+ discount_upper_limit=7830,
+ description="oPsLAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aRw08aQ0rfHosccmXhG1yeE5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JEew3",
+ name="k7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVUwFU1amkd1FBZBysFgH8TiyAaF4dUSAbqyi68iyJ302s"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_36(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=3665.0
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_37(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=9214.0,
+ name="l233vCftoqwC5tymvF1K23X2uYu46ypSW9PxtiaID1S"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_38(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=3267.0,
+ description="fz9yEel",
+ name="oF9a26c2RLHzQWOO42l0o0g8SXRzZ3pUKHHeXuuwg12Ygg3AsTOryINKyRmJ3gWCDcmsuvkMrJePtG"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_39(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=1583.0,
+ discount_upper_limit=1000,
+ description="v4aIw1aGtGR3fEQezBo8XnXONHGXDMcl8tuhVdB5KkP8PHvZEmmcBKkGsr9sdEDTBkey7pr4d2jpaf36YY6mrG9Y2ztoKUUUx5B1bSO8xEgnoe60dnWTCVmm3x115QsBZT6dCGgqZsePkl6iY0bdXM6Nza2rTctUJQmh",
+ name="gNd3qkWY4lVW5zCUF3zWzIdrHm6OsiyHBxsWBtx4G7cLViMBy"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_40(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=8515.0,
+ starts_at="2022-06-04T09:04:38.000000Z",
+ discount_upper_limit=5454,
+ description="zcDCX5bbsPzVUGeD2BWp2XUNEsAtEjlivj0NhalsavWYZduuXynvh05rJdAnnKPkjJzRbGyuQYyb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qpLKYfd3JbJX5QcdKyJ1DmsToKu4w1tRUaP7awM87Mt7bWysOyzqkBrGaMjb1sugqjE",
+ name="eek3DeIDBfKsRBbYLkU2TfJXzuBqG"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_41(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=3879.0,
+ ends_at="2021-10-25T08:25:43.000000Z",
+ starts_at="2023-01-02T05:46:46.000000Z",
+ discount_upper_limit=5330,
+ description="FsmxaxT8Xwuc649dznjsqwxML0aHpiMuFL917lUTrE8EACTMWkW53gnqE0TT1OD00WYy85d5RKAlbrPQ0st0t7yJcv8GqBqgGEHafl",
+ name="jNP9k7uydClg9A7an27PrVxBqiE9YWo8xjmzBGJVwTTanAXyFj"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_42(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=7711.0,
+ display_starts_at="2020-08-16T06:20:07.000000Z",
+ ends_at="2023-10-02T05:22:19.000000Z",
+ starts_at="2022-01-04T19:19:02.000000Z",
+ discount_upper_limit=3425,
+ description="g3gPPvlq0FFntKGY10p27NPGQTdAXKNGuLNgDO4Ma1ptA22IkyjkgPuZUMAq2NjJocNYKTrm2m1ssPqyT3XyCFCrR8uZnHFgU1ZOwuoeukDxIIOg9CcbCgtxt4qQAP06TDLYKBc2zPf6wToG8lTKcMPiFJX3LNKTomMc8",
+ name="nROYRP673oHx5N3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX05IlCZ5tUdSwXVRIVCnlZj6NtOwX2FI8Wr1369uaTF42abkgSmtEHAWzKVmwmqN4ax1Q1Fha"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_43(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=3340.0,
+ display_ends_at="2020-01-11T01:16:15.000000Z",
+ display_starts_at="2023-06-25T09:11:09.000000Z",
+ ends_at="2025-04-06T21:10:08.000000Z",
+ starts_at="2021-06-04T15:43:00.000000Z",
+ discount_upper_limit=2440,
+ description="o1JxRbdO7sJMkOiIt9zNKCX0Vzis",
+ name="XLLiEpULitiIsW57odiOHhS8DsZfAQRFK6oTTeP8tTTuInowX2TMHi2vDKbmu8"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_44(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=3766.0,
+ is_disabled=False,
+ display_ends_at="2025-03-16T22:23:29.000000Z",
+ display_starts_at="2021-09-08T20:51:00.000000Z",
+ ends_at="2023-09-27T07:29:52.000000Z",
+ starts_at="2025-11-02T22:00:43.000000Z",
+ discount_upper_limit=4002,
+ description="aAY4yQaiw0JpUpNfjrUKaUCU4cuncfOgZgC0vnz9vdHX3zI21M9POKUqkrXt",
+ name="AeLmERqX5bwDROtzb2hizqeaCyQX"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_45(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=3212.0,
+ is_hidden=True,
+ is_disabled=False,
+ display_ends_at="2023-10-23T23:25:17.000000Z",
+ display_starts_at="2026-02-07T15:21:56.000000Z",
+ ends_at="2025-10-12T04:19:13.000000Z",
+ starts_at="2025-02-23T15:30:30.000000Z",
+ discount_upper_limit=7820,
+ description="4kt1s5IzgftNOCeiOWbpouk4VaYSYsKX6oU3L46cfTNsJ74FdhPrGorQztiuU",
+ name="RWZ5r1OnryKkdpmM"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_46(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=6662.0,
+ is_public=True,
+ is_hidden=False,
+ is_disabled=False,
+ display_ends_at="2023-11-25T10:11:21.000000Z",
+ display_starts_at="2021-12-26T23:44:20.000000Z",
+ ends_at="2025-06-18T12:19:51.000000Z",
+ starts_at="2022-11-06T08:53:04.000000Z",
+ discount_upper_limit=1642,
+ description="ScgSjEKEvn9tkKJsfEeEirDJBvMOLUpWvpkfaBwAHAugbJ1KgmPImdwaTBcNwqaqeRCH16a6zzUqrHdosHdbmLywqukvEUDGTtuu5mLHhGQ9yekqoyNLKN2h7BNq3rRMob2yqEgXsK",
+ name="X0DNjA5LloLW2ZGwTADg0EGo2tY"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_47(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=6192.0,
+ code="vAA",
+ is_public=True,
+ is_hidden=False,
+ is_disabled=True,
+ display_ends_at="2020-09-25T10:56:21.000000Z",
+ display_starts_at="2023-08-02T02:17:03.000000Z",
+ ends_at="2025-08-16T07:54:20.000000Z",
+ starts_at="2023-05-24T09:13:31.000000Z",
+ discount_upper_limit=4267,
+ description="c3Hcr3rYtMZs1YhEQlphw1DkmThPoIdPA7X1r8JTPyIk7mw82VAIRkHcNMgqN77FQwuiGtQW4pnFSkfz0ZAYuHKErS89ga8rAwXpAiqwTxt1HL4wWzmkMDA4SVfWD13Zj3L9DQPYajb0tVdWEdtL2ujHbA770c9iXi2Q1VWdznJovLhT0BrHHw3tEdBOJZ",
+ name="cfpIFBg2EP1IMpzVlOR0ZjHbJ4pIYeH1mIjK91BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2IgQjODYIDOJbPEulQIv"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_48(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=339.0,
+ usage_limit=9361,
+ code="AL",
+ is_public=False,
+ is_hidden=True,
+ is_disabled=False,
+ display_ends_at="2023-08-08T19:52:42.000000Z",
+ display_starts_at="2023-11-30T12:56:20.000000Z",
+ ends_at="2021-07-15T07:04:19.000000Z",
+ starts_at="2021-07-22T20:47:52.000000Z",
+ discount_upper_limit=3153,
+ description="r6y6a28m0nRuldHpSuEUpdPie9qQ2GFfC0at9jn8DwInc5YWbNc2E2NkkIcBn5byBGxSlhAbqrppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEli1NcEVyTrbdyJqmh3WRfGT9d54NzUibZax1gbEqwtEhHNUjZJEl7H6aHeFVmJSAKrLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm",
+ name="BuCe0yTSEIanUYTV2eUYLa0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf7"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_49(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=8474.0,
+ min_amount=6205,
+ usage_limit=2838,
+ code="VOo81",
+ is_public=False,
+ is_hidden=False,
+ is_disabled=False,
+ display_ends_at="2025-06-16T12:54:39.000000Z",
+ display_starts_at="2021-03-05T11:08:08.000000Z",
+ ends_at="2023-05-25T06:21:02.000000Z",
+ starts_at="2021-10-27T14:02:36.000000Z",
+ discount_upper_limit=3945,
+ description="XTT33lqYdKQ0h3ghVZk7eOE9tcwx8MOKl5MRsa1MFEYPOVzvP",
+ name="XDUkbgX2oBshUtXGZ9lfp9TwgYPOmismihXWyqdhqoMR6oAdT5yPsPRTmUYdZdYDDGZDuZn0XgqQIqTu14tS"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_50(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=2813.0,
+ is_shop_specified=False,
+ min_amount=9905,
+ usage_limit=1777,
+ code="YdRTW",
+ is_public=True,
+ is_hidden=True,
+ is_disabled=True,
+ display_ends_at="2024-07-21T03:26:22.000000Z",
+ display_starts_at="2020-08-03T05:45:32.000000Z",
+ ends_at="2023-01-18T12:24:02.000000Z",
+ starts_at="2022-11-09T08:37:33.000000Z",
+ discount_upper_limit=6542,
+ description="gZiB4q5yXIKvcyeytZUeCOzn479Q7e7CQ6mogs",
+ name="i4OQ6jQwM"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_51(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=3136.0,
+ available_shop_ids=["38233856-7d51-477a-9eae-fec53c44a37b"],
+ is_shop_specified=True,
+ min_amount=221,
+ usage_limit=4250,
+ code="3CTZR",
+ is_public=False,
+ is_hidden=True,
+ is_disabled=False,
+ display_ends_at="2024-03-04T01:35:29.000000Z",
+ display_starts_at="2020-12-09T09:29:55.000000Z",
+ ends_at="2023-07-05T09:46:04.000000Z",
+ starts_at="2023-11-10T19:01:01.000000Z",
+ discount_upper_limit=7535,
+ description="O937wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5QfKEnNvZa51B6RuNHWw3kkEIImb7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6FlBm7k1iTzlm9ILQGKVJoUCSY35cdkgvsbAYCbaEHjTHUmx8bpMxYByLz0xsJRhRVsB9HjzBAZfWzO75yHWR5FLMa9CO3GmqQepv7doxpRjgZI2VSDvLJkkZMMdEANfWVavAje3",
+ name="PJg4zkA5dwRQrAEDCEBzCTk0pN"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_52(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=3649.0,
+ storage_id="c058940d-8ac7-416b-ab2e-b207909d9c3a",
+ available_shop_ids=["665b3978-72ae-4aeb-94ea-f7a86ea7d516", "f5a22904-01b3-450d-9cf9-f81d5a0177dc"],
+ is_shop_specified=False,
+ min_amount=5380,
+ usage_limit=5158,
+ code="QjLE9oT",
+ is_public=True,
+ is_hidden=True,
+ is_disabled=True,
+ display_ends_at="2022-05-28T02:23:42.000000Z",
+ display_starts_at="2021-09-18T22:30:51.000000Z",
+ ends_at="2022-06-06T23:58:49.000000Z",
+ starts_at="2021-11-12T07:20:19.000000Z",
+ discount_upper_limit=6941,
+ description="Zg4O5dK9OBTn3gY0HIwJr5Xn6R9PIw5eC52tvIBnMyMg4CnT2dj7ORUTt4jEgn4792da7QYy7V605lzcBixerwgOsZo2yFQXiifPwyEPkMTjwK5UmBamQcUvvHD25XYGaGoRml",
+ name="kWpVKSQYACWhdJgT5oXIAxp1c5Q2vG7By91KC2xkwbMvR"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_update_coupon_53(self):
+ response = client.send(pp.UpdateCoupon(
+ "448103ee-3eb4-417b-a6d1-3fb3f421a1fc",
+ discount_percentage=6941.0,
+ num_recipients_cap=4127,
+ storage_id="9dc7a7d7-4ae6-4cd5-bb3a-aea7403f8bc1",
+ available_shop_ids=["6e8a4468-f9e8-4736-986e-0b19b555df5a", "7c7937fa-7017-4a90-849c-f98426f1bbb0", "19e87ef9-33ca-43d9-a752-85afab0b6816", "f77d2c1e-c825-427f-87ae-ec8e7e66a0a3", "6b3dc0c1-a587-404d-b681-9a25e05b39ef", "63b2f954-b48c-4f09-a27a-106c9f72d711", "1273abea-30db-4a2e-a298-6adaeeba7f8c", "7af79c3f-fc59-447e-955c-1dd3cf02c715", "58f58739-cf62-4d15-9936-e871a891af12", "0640bded-4a8d-4e72-93a9-e1c02549a1c6"],
+ is_shop_specified=False,
+ min_amount=3652,
+ usage_limit=4606,
+ code="Vxdn1z0TuA",
+ is_public=True,
+ is_hidden=True,
+ is_disabled=True,
+ display_ends_at="2020-12-03T05:00:55.000000Z",
+ display_starts_at="2023-10-26T06:04:20.000000Z",
+ ends_at="2025-02-23T21:47:53.000000Z",
+ starts_at="2022-10-11T20:59:05.000000Z",
+ discount_upper_limit=8287,
+ description="GnuuGnm3um0ZKYlqHYAPfacx4ba4pxXiFCicQd3QQrdtpp5IlW8KnTaroT8w3801ZxeZpTa0FFkkUFLVCDKp9TvCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7EhkzGk22yYle2ZOPXJOiEYcNwwBKhoxCdqw8SDS6L7O6ohLm8HBuYz7E9ZuYBAHz0v",
+ name="45u4SHdXpfYeqMtcfd8wxcygIW1kAzyAHjkW0eFslSf8NaBTyV6GBT8tDHI0zWcr0sMpkdiHO"
+ ))
+ self.assertNotEqual(response.status_code, 400)
+
+ def test_get_seven_bank_atm_session_0(self):
+ response = client.send(pp.GetSevenBankAtmSession(
+ "l5xIQiAP"
))
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)